_Z23CreateTemporaryGLSLFileRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
   25|  1.42k|std::string CreateTemporaryGLSLFile(const std::string &shader_content) {
   26|  1.42k|  std::string temp_dir = fs::temp_directory_path().string();
   27|  1.42k|  std::string temp_file =
   28|  1.42k|      temp_dir + "/temp_shader_" + std::to_string(rand()) + ".glsl";
   29|  1.42k|  std::ofstream ofs(temp_file);
   30|  1.42k|  ofs << shader_content;
   31|  1.42k|  ofs.close();
   32|  1.42k|  return temp_file;
   33|  1.42k|}
LLVMFuzzerTestOneInput:
   35|  1.42k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   36|       |  // Create temporary glsl file with valid structure and fuzzed data
   37|       |  // std::string shader_content = GenerateShaderContent(data, size);
   38|  1.42k|  std::string payload(reinterpret_cast<const char *>(data), size);
   39|  1.42k|  std::string temp_shader_file = CreateTemporaryGLSLFile(payload);
   40|       |
   41|       |  // Initialize FileCompiler and options
   42|  1.42k|  glslc::FileCompiler file_compiler;
   43|  1.42k|  file_compiler.options().SetSuppressWarnings();
   44|  1.42k|  file_compiler.AddIncludeDirectory(fs::temp_directory_path().string());
   45|  1.42k|  file_compiler.SetOutputFileName("-");
   46|       |
   47|  1.42k|  file_compiler.SetSpirvBinaryOutputFormat(
   48|  1.42k|      glslc::FileCompiler::SpirvBinaryEmissionFormat::WGSL);
   49|       |
   50|  1.42k|  glslc::InputFileSpec input_spec = {temp_shader_file,
   51|  1.42k|                                     shaderc_glsl_fragment_shader,
   52|  1.42k|                                     shaderc_source_language_glsl, "main"};
   53|       |
   54|       |  // Fuzz common CompileShaderFile
   55|  1.42k|  file_compiler.CompileShaderFile(input_spec);
   56|       |
   57|       |  // Fuzz Preprocessing
   58|  1.42k|  file_compiler.SetPreprocessingOnlyFlag();
   59|  1.42k|  file_compiler.ValidateOptions(1);
   60|  1.42k|  file_compiler.CompileShaderFile(input_spec);
   61|       |
   62|       |  // Fuzz CompileShaderFile with DisassemblyFlag
   63|  1.42k|  file_compiler.SetDisassemblyFlag();
   64|  1.42k|  file_compiler.CompileShaderFile(input_spec);
   65|       |
   66|       |  // Cleanup the temporary file
   67|  1.42k|  fs::remove(temp_shader_file);
   68|       |
   69|  1.42k|  return 0;
   70|  1.42k|}

_ZN5glslc12FileCompiler17CompileShaderFileERKNS_13InputFileSpecE:
   69|  4.26k|bool FileCompiler::CompileShaderFile(const InputFileSpec& input_file) {
   70|  4.26k|  std::vector<char> input_data;
   71|  4.26k|  std::string path = input_file.name;
   72|  4.26k|  if (!shaderc_util::ReadFile(path, &input_data)) {
  ------------------
  |  Branch (72:7): [True: 0, False: 4.26k]
  ------------------
   73|      0|    return false;
   74|      0|  }
   75|       |
   76|  4.26k|  std::string output_file_name = GetOutputFileName(input_file.name);
   77|  4.26k|  string_piece error_file_name = input_file.name;
   78|       |
   79|  4.26k|  if (error_file_name == "-") {
  ------------------
  |  Branch (79:7): [True: 0, False: 4.26k]
  ------------------
   80|       |    // If the input file was stdin, we want to output errors as <stdin>.
   81|      0|    error_file_name = "<stdin>";
   82|      0|  }
   83|       |
   84|  4.26k|  string_piece source_string = "";
   85|  4.26k|  if (!input_data.empty()) {
  ------------------
  |  Branch (85:7): [True: 4.26k, False: 0]
  ------------------
   86|  4.26k|    source_string = {&input_data.front(),
   87|  4.26k|                     &input_data.front() + input_data.size()};
   88|  4.26k|  }
   89|       |
   90|  4.26k|  std::unique_ptr<FileIncluder> includer(
   91|  4.26k|      new FileIncluder(&include_file_finder_));
   92|       |  // Get a reference to the dependency trace before we pass the ownership to
   93|       |  // shaderc::CompileOptions.
   94|  4.26k|  const auto& used_source_files = includer->file_path_trace();
   95|  4.26k|  options_.SetIncluder(std::move(includer));
   96|       |
   97|  4.26k|  if (input_file.stage == shaderc_spirv_assembly) {
  ------------------
  |  Branch (97:7): [True: 0, False: 4.26k]
  ------------------
   98|       |    // Only act if the requested target is SPIR-V binary.
   99|      0|    if (output_type_ == OutputType::SpirvBinary) {
  ------------------
  |  Branch (99:9): [True: 0, False: 0]
  ------------------
  100|      0|      const auto result =
  101|      0|          compiler_.AssembleToSpv(source_string.data(), source_string.size());
  102|      0|      return EmitCompiledResult(result, input_file.name, output_file_name,
  103|      0|                                error_file_name, used_source_files);
  104|      0|    } else {
  105|      0|      return true;
  106|      0|    }
  107|      0|  }
  108|       |
  109|       |  // Set the language.  Since we only use the options object in this
  110|       |  // method, then it's ok to always set it without resetting it after
  111|       |  // compilation.  A subsequent compilation will set it again anyway.
  112|  4.26k|  options_.SetSourceLanguage(input_file.language);
  113|       |
  114|  4.26k|  switch (output_type_) {
  ------------------
  |  Branch (114:11): [True: 4.26k, False: 0]
  ------------------
  115|  1.42k|    case OutputType::SpirvBinary: {
  ------------------
  |  Branch (115:5): [True: 1.42k, False: 2.84k]
  ------------------
  116|  1.42k|      const auto result = compiler_.CompileGlslToSpv(
  117|  1.42k|          source_string.data(), source_string.size(), input_file.stage,
  118|  1.42k|          error_file_name.data(), input_file.entry_point_name.c_str(),
  119|  1.42k|          options_);
  120|  1.42k|      return EmitCompiledResult(result, input_file.name, output_file_name,
  121|  1.42k|                                error_file_name, used_source_files);
  122|      0|    }
  123|      0|    case OutputType::SpirvAssemblyText: {
  ------------------
  |  Branch (123:5): [True: 0, False: 4.26k]
  ------------------
  124|      0|      const auto result = compiler_.CompileGlslToSpvAssembly(
  125|      0|          source_string.data(), source_string.size(), input_file.stage,
  126|      0|          error_file_name.data(), input_file.entry_point_name.c_str(),
  127|      0|          options_);
  128|      0|      return EmitCompiledResult(result, input_file.name, output_file_name,
  129|      0|                                error_file_name, used_source_files);
  130|      0|    }
  131|  2.84k|    case OutputType::PreprocessedText: {
  ------------------
  |  Branch (131:5): [True: 2.84k, False: 1.42k]
  ------------------
  132|  2.84k|      const auto result = compiler_.PreprocessGlsl(
  133|  2.84k|          source_string.data(), source_string.size(), input_file.stage,
  134|  2.84k|          error_file_name.data(), options_);
  135|  2.84k|      return EmitCompiledResult(result, input_file.name, output_file_name,
  136|  2.84k|                                error_file_name, used_source_files);
  137|      0|    }
  138|  4.26k|  }
  139|      0|  return false;
  140|  4.26k|}
_ZN5glslc12FileCompiler19AddIncludeDirectoryERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  293|  1.42k|void FileCompiler::AddIncludeDirectory(const std::string& path) {
  294|  1.42k|  include_file_finder_.search_path().push_back(path);
  295|  1.42k|}
_ZN5glslc12FileCompiler18SetDisassemblyFlagEv:
  304|  1.42k|void FileCompiler::SetDisassemblyFlag() {
  305|  1.42k|  if (!PreprocessingOnly()) {
  ------------------
  |  Branch (305:7): [True: 0, False: 1.42k]
  ------------------
  306|      0|    output_type_ = OutputType::SpirvAssemblyText;
  307|      0|    needs_linking_ = false;
  308|      0|    file_extension_ = ".spvasm";
  309|      0|  }
  310|  1.42k|}
_ZN5glslc12FileCompiler24SetPreprocessingOnlyFlagEv:
  312|  1.42k|void FileCompiler::SetPreprocessingOnlyFlag() {
  313|  1.42k|  output_type_ = OutputType::PreprocessedText;
  314|  1.42k|  needs_linking_ = false;
  315|  1.42k|  if (output_file_name_.empty()) {
  ------------------
  |  Branch (315:7): [True: 0, False: 1.42k]
  ------------------
  316|      0|    output_file_name_ = "-";
  317|      0|  }
  318|  1.42k|}
_ZN5glslc12FileCompiler15ValidateOptionsEm:
  320|  1.42k|bool FileCompiler::ValidateOptions(size_t num_files) {
  321|  1.42k|  if (num_files == 0) {
  ------------------
  |  Branch (321:7): [True: 0, False: 1.42k]
  ------------------
  322|      0|    std::cerr << "glslc: error: no input files" << std::endl;
  323|      0|    return false;
  324|      0|  }
  325|       |
  326|  1.42k|  if (num_files > 1 && needs_linking_) {
  ------------------
  |  Branch (326:7): [True: 0, False: 1.42k]
  |  Branch (326:24): [True: 0, False: 0]
  ------------------
  327|      0|    std::cerr << "glslc: error: linking multiple files is not supported yet. "
  328|      0|                 "Use -c to compile files individually."
  329|      0|              << std::endl;
  330|      0|    return false;
  331|      0|  }
  332|       |
  333|       |  // If we are outputting many object files, we cannot specify -o. Also
  334|       |  // if we are preprocessing multiple files they must be to stdout.
  335|  1.42k|  if (num_files > 1 && ((!PreprocessingOnly() && !needs_linking_ &&
  ------------------
  |  Branch (335:7): [True: 0, False: 1.42k]
  |  Branch (335:7): [True: 0, False: 1.42k]
  |  Branch (335:26): [True: 0, False: 0]
  |  Branch (335:50): [True: 0, False: 0]
  ------------------
  336|      0|                         !output_file_name_.empty()) ||
  ------------------
  |  Branch (336:26): [True: 0, False: 0]
  ------------------
  337|      0|                        (PreprocessingOnly() && output_file_name_ != "-"))) {
  ------------------
  |  Branch (337:26): [True: 0, False: 0]
  |  Branch (337:49): [True: 0, False: 0]
  ------------------
  338|      0|    std::cerr << "glslc: error: cannot specify -o when generating multiple"
  339|      0|                 " output files"
  340|      0|              << std::endl;
  341|      0|    return false;
  342|      0|  }
  343|       |
  344|       |  // If we have dependency info dumping handler instantiated, we should check
  345|       |  // its validity.
  346|  1.42k|  if (dependency_info_dumping_handler_) {
  ------------------
  |  Branch (346:7): [True: 0, False: 1.42k]
  ------------------
  347|      0|    std::string dependency_info_dumping_hander_error_msg;
  348|      0|    if (!dependency_info_dumping_handler_->IsValid(
  ------------------
  |  Branch (348:9): [True: 0, False: 0]
  ------------------
  349|      0|            &dependency_info_dumping_hander_error_msg, num_files)) {
  350|      0|      std::cerr << "glslc: error: " << dependency_info_dumping_hander_error_msg
  351|      0|                << std::endl;
  352|      0|      return false;
  353|      0|    }
  354|      0|  }
  355|       |
  356|       |  // If the output format is specified to be a binary, a list of hex numbers or
  357|       |  // a C-style initializer list, the output must be in SPIR-V binary code form.
  358|  1.42k|  if (binary_emission_format_ != SpirvBinaryEmissionFormat::Unspecified) {
  ------------------
  |  Branch (358:7): [True: 1.42k, False: 0]
  ------------------
  359|  1.42k|    if (output_type_ != OutputType::SpirvBinary) {
  ------------------
  |  Branch (359:9): [True: 1.42k, False: 0]
  ------------------
  360|  1.42k|      std::cerr << "glslc: error: cannot emit output as a ";
  361|  1.42k|      switch (binary_emission_format_) {
  ------------------
  |  Branch (361:15): [True: 1.42k, False: 0]
  ------------------
  362|      0|        case SpirvBinaryEmissionFormat::Binary:
  ------------------
  |  Branch (362:9): [True: 0, False: 1.42k]
  ------------------
  363|      0|          std::cerr << "binary";
  364|      0|          break;
  365|      0|        case SpirvBinaryEmissionFormat::Numbers:
  ------------------
  |  Branch (365:9): [True: 0, False: 1.42k]
  ------------------
  366|      0|          std::cerr << "list of hex numbers";
  367|      0|          break;
  368|      0|        case SpirvBinaryEmissionFormat::CInitList:
  ------------------
  |  Branch (368:9): [True: 0, False: 1.42k]
  ------------------
  369|      0|          std::cerr << "C-style initializer list";
  370|      0|          break;
  371|  1.42k|        case SpirvBinaryEmissionFormat::WGSL:
  ------------------
  |  Branch (371:9): [True: 1.42k, False: 0]
  ------------------
  372|  1.42k|          std::cerr << "WGSL source program";
  373|  1.42k|          break;
  374|      0|        case SpirvBinaryEmissionFormat::Unspecified:
  ------------------
  |  Branch (374:9): [True: 0, False: 1.42k]
  ------------------
  375|       |          // The compiler should never be here at runtime. This case is added to
  376|       |          // complete the switch cases.
  377|      0|          break;
  378|  1.42k|      }
  379|  1.42k|      std::cerr << " when only preprocessing the source" << std::endl;
  380|  1.42k|      return false;
  381|  1.42k|    }
  382|      0|    if (dependency_info_dumping_handler_ &&
  ------------------
  |  Branch (382:9): [True: 0, False: 0]
  ------------------
  383|      0|        dependency_info_dumping_handler_->DumpingAsCompilationOutput()) {
  ------------------
  |  Branch (383:9): [True: 0, False: 0]
  ------------------
  384|      0|      std::cerr << "glslc: error: cannot dump dependency info when specifying "
  385|      0|                   "any binary output format"
  386|      0|                << std::endl;
  387|      0|      return false;
  388|      0|    }
  389|      0|  }
  390|       |
  391|      0|  if (binary_emission_format_ == SpirvBinaryEmissionFormat::WGSL) {
  ------------------
  |  Branch (391:7): [True: 0, False: 0]
  ------------------
  392|      0|#if SHADERC_ENABLE_WGSL_OUTPUT != 1
  393|      0|    std::cerr << "glslc: error: can't output WGSL: glslc was built without "
  394|      0|                 "WGSL output support"
  395|      0|              << std::endl;
  396|      0|    return false;
  397|      0|#endif
  398|      0|  }
  399|       |
  400|      0|  return true;
  401|      0|}
_ZN5glslc12FileCompiler17GetOutputFileNameENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  407|  4.26k|std::string FileCompiler::GetOutputFileName(std::string input_filename) {
  408|  4.26k|  if (output_file_name_.empty()) {
  ------------------
  |  Branch (408:7): [True: 0, False: 4.26k]
  ------------------
  409|      0|    return needs_linking_ ? std::string("a.spv")
  ------------------
  |  Branch (409:12): [True: 0, False: 0]
  ------------------
  410|      0|                          : GetCandidateOutputFileName(input_filename);
  411|  4.26k|  } else {
  412|  4.26k|    return output_file_name_.str();
  413|  4.26k|  }
  414|  4.26k|}
_ZN5glslc12FileCompiler18EmitCompiledResultIN7shaderc17CompilationResultIjEEEEbRKT_RKNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEESG_N12shaderc_util12string_pieceERKNS8_13unordered_setISE_NS8_4hashISE_EENS8_8equal_toISE_EENSC_ISE_EEEE:
  146|  1.42k|    const std::unordered_set<std::string>& used_source_files) {
  147|  1.42k|  total_errors_ += result.GetNumErrors();
  148|  1.42k|  total_warnings_ += result.GetNumWarnings();
  149|       |
  150|  1.42k|  bool compilation_success =
  151|  1.42k|      result.GetCompilationStatus() == shaderc_compilation_status_success;
  152|       |
  153|       |  // Handle the error message for failing to deduce the shader kind.
  154|  1.42k|  if (result.GetCompilationStatus() ==
  ------------------
  |  Branch (154:7): [True: 0, False: 1.42k]
  ------------------
  155|  1.42k|      shaderc_compilation_status_invalid_stage) {
  156|      0|    auto glsl_or_hlsl_extension = GetGlslOrHlslExtension(error_file_name);
  157|      0|    if (glsl_or_hlsl_extension != "") {
  ------------------
  |  Branch (157:9): [True: 0, False: 0]
  ------------------
  158|      0|      std::cerr << "glslc: error: "
  159|      0|                << "'" << error_file_name << "': "
  160|      0|                << "." << glsl_or_hlsl_extension
  161|      0|                << " file encountered but no -fshader-stage specified ahead";
  162|      0|    } else if (error_file_name == "<stdin>") {
  ------------------
  |  Branch (162:16): [True: 0, False: 0]
  ------------------
  163|      0|      std::cerr
  164|      0|          << "glslc: error: '-': -fshader-stage required when input is from "
  165|      0|             "standard "
  166|      0|             "input \"-\"";
  167|      0|    } else {
  168|      0|      std::cerr << "glslc: error: "
  169|      0|                << "'" << error_file_name << "': "
  170|      0|                << "file not recognized: File format not recognized";
  171|      0|    }
  172|      0|    std::cerr << "\n";
  173|       |
  174|      0|    return false;
  175|      0|  }
  176|       |
  177|       |  // Get a string_piece which refers to the normal compilation output for now.
  178|       |  // This string_piece might be redirected to the dependency info to be dumped
  179|       |  // later, if the handler is instantiated to dump as normal compilation output,
  180|       |  // and the original compilation output should be blocked. Otherwise it won't
  181|       |  // be touched. The main output stream dumps this string_piece later.
  182|  1.42k|  string_piece compilation_output(
  183|  1.42k|      reinterpret_cast<const char*>(result.cbegin()),
  184|  1.42k|      reinterpret_cast<const char*>(result.cend()));
  185|       |
  186|       |  // If we have dependency info dumping handler instantiated, we should dump
  187|       |  // dependency info first. This may redirect the compilation output
  188|       |  // string_piece to dependency info.
  189|  1.42k|  std::string potential_dependency_info_output;
  190|  1.42k|  if (dependency_info_dumping_handler_) {
  ------------------
  |  Branch (190:7): [True: 0, False: 1.42k]
  ------------------
  191|      0|    if (!dependency_info_dumping_handler_->DumpDependencyInfo(
  ------------------
  |  Branch (191:9): [True: 0, False: 0]
  ------------------
  192|      0|            GetCandidateOutputFileName(input_file), error_file_name.data(),
  193|      0|            &potential_dependency_info_output, used_source_files)) {
  194|      0|      return false;
  195|      0|    }
  196|      0|    if (!potential_dependency_info_output.empty()) {
  ------------------
  |  Branch (196:9): [True: 0, False: 0]
  ------------------
  197|       |      // If the potential_dependency_info_output string is not empty, it means
  198|       |      // we should dump dependency info as normal compilation output. Redirect
  199|       |      // the compilation output string_piece to the dependency info stored in
  200|       |      // potential_dependency_info_output to make it happen.
  201|      0|      compilation_output = potential_dependency_info_output;
  202|      0|    }
  203|      0|  }
  204|       |
  205|  1.42k|  std::ostream* out = nullptr;
  206|  1.42k|  std::ofstream potential_file_stream;
  207|  1.42k|  if (compilation_success) {
  ------------------
  |  Branch (207:7): [True: 42, False: 1.37k]
  ------------------
  208|     42|    out = shaderc_util::GetOutputStream(output_file_name,
  209|     42|                                        &potential_file_stream, &std::cerr);
  210|     42|    if (!out || out->fail()) {
  ------------------
  |  Branch (210:9): [True: 0, False: 42]
  |  Branch (210:17): [True: 0, False: 42]
  ------------------
  211|       |      // An error message has already been emitted to the stderr stream.
  212|      0|      return false;
  213|      0|    }
  214|       |
  215|       |    // Write compilation output to output file. If an output format for SPIR-V
  216|       |    // binary code is specified, it is handled here.
  217|     42|    switch (binary_emission_format_) {
  ------------------
  |  Branch (217:13): [True: 42, False: 0]
  ------------------
  218|      0|      case SpirvBinaryEmissionFormat::Unspecified:
  ------------------
  |  Branch (218:7): [True: 0, False: 42]
  ------------------
  219|      0|      case SpirvBinaryEmissionFormat::Binary:
  ------------------
  |  Branch (219:7): [True: 0, False: 42]
  ------------------
  220|       |        // The output format is unspecified or specified as binary output.
  221|       |        // On Windows, the output stream must be set to binary mode.  By
  222|       |        // default the standard output stream is set to text mode, which
  223|       |        // translates newlines (\n) to carriage-return newline pairs
  224|       |        // (\r\n).
  225|      0|        if (out == &std::cout) shaderc_util::FlushAndSetBinaryModeOnStdout();
  ------------------
  |  Branch (225:13): [True: 0, False: 0]
  ------------------
  226|      0|        out->write(compilation_output.data(), compilation_output.size());
  227|      0|        if (out == &std::cout) shaderc_util::FlushAndSetTextModeOnStdout();
  ------------------
  |  Branch (227:13): [True: 0, False: 0]
  ------------------
  228|      0|        break;
  229|      0|      case SpirvBinaryEmissionFormat::Numbers:
  ------------------
  |  Branch (229:7): [True: 0, False: 42]
  ------------------
  230|       |        // The output format is specified to be a list of hex numbers, the
  231|       |        // compilation output must be in SPIR-V binary code form.
  232|      0|        assert(output_type_ == OutputType::SpirvBinary);
  233|      0|        if (EmitSpirvBinaryAsCommaSeparatedNumbers(result, out)) {
  ------------------
  |  Branch (233:13): [True: 0, False: 0]
  ------------------
  234|       |          // Only emits the end-of-line character when the emitted compilation
  235|       |          // result is not empty.
  236|      0|          *out << std::endl;
  237|      0|        }
  238|      0|        break;
  239|      0|      case SpirvBinaryEmissionFormat::CInitList:
  ------------------
  |  Branch (239:7): [True: 0, False: 42]
  ------------------
  240|       |        // The output format is specified to be a C-style initializer list, the
  241|       |        // compilation output must be in SPIR-V binary code form.
  242|      0|        assert(output_type_ == OutputType::SpirvBinary);
  243|      0|        if (result.begin() != result.end()) {
  ------------------
  |  Branch (243:13): [True: 0, False: 0]
  ------------------
  244|       |          // Only emits the '{' when the compilation result is not empty.
  245|      0|          *out << "{";
  246|      0|        }
  247|      0|        if (EmitSpirvBinaryAsCommaSeparatedNumbers(result, out)) {
  ------------------
  |  Branch (247:13): [True: 0, False: 0]
  ------------------
  248|       |          // Only emits the end-of-line character when the emitted compilation
  249|       |          // result is not empty.
  250|      0|          *out << "}" << std::endl;
  251|      0|        }
  252|      0|        break;
  253|     42|      case SpirvBinaryEmissionFormat::WGSL: {
  ------------------
  |  Branch (253:7): [True: 42, False: 0]
  ------------------
  254|       |#if SHADERC_ENABLE_WGSL_OUTPUT == 1
  255|       |        tint::Context ctx;
  256|       |        tint::reader::spirv::Parser spv_reader(
  257|       |            &ctx, std::vector<uint32_t>(result.begin(), result.end()));
  258|       |        if (!spv_reader.Parse()) {
  259|       |          std::cout << "error: failed to convert SPIR-V binary to WGSL: "
  260|       |                    << spv_reader.error() << std::endl;
  261|       |          return false;
  262|       |        }
  263|       |        tint::writer::wgsl::Generator wgsl_writer(spv_reader.module());
  264|       |        if (!wgsl_writer.Generate()) {
  265|       |          std::cout << "error: failed to convert to WGSL: "
  266|       |                    << wgsl_writer.error() << std::endl;
  267|       |          return false;
  268|       |        }
  269|       |        *out << wgsl_writer.result();
  270|       |#endif  // SHADERC_ENABLE_WGSL_OUTPUT==1
  271|     42|        break;
  272|      0|      }
  273|     42|    }
  274|     42|  }
  275|       |
  276|       |  // Write error message to std::cerr.
  277|  1.42k|  std::cerr << result.GetErrorMessage();
  278|  1.42k|  if (out && out->fail()) {
  ------------------
  |  Branch (278:7): [True: 42, False: 1.37k]
  |  Branch (278:14): [True: 0, False: 42]
  ------------------
  279|       |    // Something wrong happened on output.
  280|      0|    if (out == &std::cout) {
  ------------------
  |  Branch (280:9): [True: 0, False: 0]
  ------------------
  281|      0|      std::cerr << "glslc: error: error writing to standard output"
  282|      0|                << std::endl;
  283|      0|    } else {
  284|      0|      std::cerr << "glslc: error: error writing to output file: '"
  285|      0|                << output_file_name_ << "'" << std::endl;
  286|      0|    }
  287|      0|    return false;
  288|      0|  }
  289|       |
  290|  1.42k|  return compilation_success;
  291|  1.42k|}
_ZN5glslc12FileCompiler18EmitCompiledResultIN7shaderc17CompilationResultIcEEEEbRKT_RKNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEESG_N12shaderc_util12string_pieceERKNS8_13unordered_setISE_NS8_4hashISE_EENS8_8equal_toISE_EENSC_ISE_EEEE:
  146|  2.84k|    const std::unordered_set<std::string>& used_source_files) {
  147|  2.84k|  total_errors_ += result.GetNumErrors();
  148|  2.84k|  total_warnings_ += result.GetNumWarnings();
  149|       |
  150|  2.84k|  bool compilation_success =
  151|  2.84k|      result.GetCompilationStatus() == shaderc_compilation_status_success;
  152|       |
  153|       |  // Handle the error message for failing to deduce the shader kind.
  154|  2.84k|  if (result.GetCompilationStatus() ==
  ------------------
  |  Branch (154:7): [True: 0, False: 2.84k]
  ------------------
  155|  2.84k|      shaderc_compilation_status_invalid_stage) {
  156|      0|    auto glsl_or_hlsl_extension = GetGlslOrHlslExtension(error_file_name);
  157|      0|    if (glsl_or_hlsl_extension != "") {
  ------------------
  |  Branch (157:9): [True: 0, False: 0]
  ------------------
  158|      0|      std::cerr << "glslc: error: "
  159|      0|                << "'" << error_file_name << "': "
  160|      0|                << "." << glsl_or_hlsl_extension
  161|      0|                << " file encountered but no -fshader-stage specified ahead";
  162|      0|    } else if (error_file_name == "<stdin>") {
  ------------------
  |  Branch (162:16): [True: 0, False: 0]
  ------------------
  163|      0|      std::cerr
  164|      0|          << "glslc: error: '-': -fshader-stage required when input is from "
  165|      0|             "standard "
  166|      0|             "input \"-\"";
  167|      0|    } else {
  168|      0|      std::cerr << "glslc: error: "
  169|      0|                << "'" << error_file_name << "': "
  170|      0|                << "file not recognized: File format not recognized";
  171|      0|    }
  172|      0|    std::cerr << "\n";
  173|       |
  174|      0|    return false;
  175|      0|  }
  176|       |
  177|       |  // Get a string_piece which refers to the normal compilation output for now.
  178|       |  // This string_piece might be redirected to the dependency info to be dumped
  179|       |  // later, if the handler is instantiated to dump as normal compilation output,
  180|       |  // and the original compilation output should be blocked. Otherwise it won't
  181|       |  // be touched. The main output stream dumps this string_piece later.
  182|  2.84k|  string_piece compilation_output(
  183|  2.84k|      reinterpret_cast<const char*>(result.cbegin()),
  184|  2.84k|      reinterpret_cast<const char*>(result.cend()));
  185|       |
  186|       |  // If we have dependency info dumping handler instantiated, we should dump
  187|       |  // dependency info first. This may redirect the compilation output
  188|       |  // string_piece to dependency info.
  189|  2.84k|  std::string potential_dependency_info_output;
  190|  2.84k|  if (dependency_info_dumping_handler_) {
  ------------------
  |  Branch (190:7): [True: 0, False: 2.84k]
  ------------------
  191|      0|    if (!dependency_info_dumping_handler_->DumpDependencyInfo(
  ------------------
  |  Branch (191:9): [True: 0, False: 0]
  ------------------
  192|      0|            GetCandidateOutputFileName(input_file), error_file_name.data(),
  193|      0|            &potential_dependency_info_output, used_source_files)) {
  194|      0|      return false;
  195|      0|    }
  196|      0|    if (!potential_dependency_info_output.empty()) {
  ------------------
  |  Branch (196:9): [True: 0, False: 0]
  ------------------
  197|       |      // If the potential_dependency_info_output string is not empty, it means
  198|       |      // we should dump dependency info as normal compilation output. Redirect
  199|       |      // the compilation output string_piece to the dependency info stored in
  200|       |      // potential_dependency_info_output to make it happen.
  201|      0|      compilation_output = potential_dependency_info_output;
  202|      0|    }
  203|      0|  }
  204|       |
  205|  2.84k|  std::ostream* out = nullptr;
  206|  2.84k|  std::ofstream potential_file_stream;
  207|  2.84k|  if (compilation_success) {
  ------------------
  |  Branch (207:7): [True: 1.03k, False: 1.80k]
  ------------------
  208|  1.03k|    out = shaderc_util::GetOutputStream(output_file_name,
  209|  1.03k|                                        &potential_file_stream, &std::cerr);
  210|  1.03k|    if (!out || out->fail()) {
  ------------------
  |  Branch (210:9): [True: 0, False: 1.03k]
  |  Branch (210:17): [True: 0, False: 1.03k]
  ------------------
  211|       |      // An error message has already been emitted to the stderr stream.
  212|      0|      return false;
  213|      0|    }
  214|       |
  215|       |    // Write compilation output to output file. If an output format for SPIR-V
  216|       |    // binary code is specified, it is handled here.
  217|  1.03k|    switch (binary_emission_format_) {
  ------------------
  |  Branch (217:13): [True: 1.03k, False: 0]
  ------------------
  218|      0|      case SpirvBinaryEmissionFormat::Unspecified:
  ------------------
  |  Branch (218:7): [True: 0, False: 1.03k]
  ------------------
  219|      0|      case SpirvBinaryEmissionFormat::Binary:
  ------------------
  |  Branch (219:7): [True: 0, False: 1.03k]
  ------------------
  220|       |        // The output format is unspecified or specified as binary output.
  221|       |        // On Windows, the output stream must be set to binary mode.  By
  222|       |        // default the standard output stream is set to text mode, which
  223|       |        // translates newlines (\n) to carriage-return newline pairs
  224|       |        // (\r\n).
  225|      0|        if (out == &std::cout) shaderc_util::FlushAndSetBinaryModeOnStdout();
  ------------------
  |  Branch (225:13): [True: 0, False: 0]
  ------------------
  226|      0|        out->write(compilation_output.data(), compilation_output.size());
  227|      0|        if (out == &std::cout) shaderc_util::FlushAndSetTextModeOnStdout();
  ------------------
  |  Branch (227:13): [True: 0, False: 0]
  ------------------
  228|      0|        break;
  229|      0|      case SpirvBinaryEmissionFormat::Numbers:
  ------------------
  |  Branch (229:7): [True: 0, False: 1.03k]
  ------------------
  230|       |        // The output format is specified to be a list of hex numbers, the
  231|       |        // compilation output must be in SPIR-V binary code form.
  232|      0|        assert(output_type_ == OutputType::SpirvBinary);
  233|      0|        if (EmitSpirvBinaryAsCommaSeparatedNumbers(result, out)) {
  ------------------
  |  Branch (233:13): [True: 0, False: 0]
  ------------------
  234|       |          // Only emits the end-of-line character when the emitted compilation
  235|       |          // result is not empty.
  236|      0|          *out << std::endl;
  237|      0|        }
  238|      0|        break;
  239|      0|      case SpirvBinaryEmissionFormat::CInitList:
  ------------------
  |  Branch (239:7): [True: 0, False: 1.03k]
  ------------------
  240|       |        // The output format is specified to be a C-style initializer list, the
  241|       |        // compilation output must be in SPIR-V binary code form.
  242|      0|        assert(output_type_ == OutputType::SpirvBinary);
  243|      0|        if (result.begin() != result.end()) {
  ------------------
  |  Branch (243:13): [True: 0, False: 0]
  ------------------
  244|       |          // Only emits the '{' when the compilation result is not empty.
  245|      0|          *out << "{";
  246|      0|        }
  247|      0|        if (EmitSpirvBinaryAsCommaSeparatedNumbers(result, out)) {
  ------------------
  |  Branch (247:13): [True: 0, False: 0]
  ------------------
  248|       |          // Only emits the end-of-line character when the emitted compilation
  249|       |          // result is not empty.
  250|      0|          *out << "}" << std::endl;
  251|      0|        }
  252|      0|        break;
  253|  1.03k|      case SpirvBinaryEmissionFormat::WGSL: {
  ------------------
  |  Branch (253:7): [True: 1.03k, False: 0]
  ------------------
  254|       |#if SHADERC_ENABLE_WGSL_OUTPUT == 1
  255|       |        tint::Context ctx;
  256|       |        tint::reader::spirv::Parser spv_reader(
  257|       |            &ctx, std::vector<uint32_t>(result.begin(), result.end()));
  258|       |        if (!spv_reader.Parse()) {
  259|       |          std::cout << "error: failed to convert SPIR-V binary to WGSL: "
  260|       |                    << spv_reader.error() << std::endl;
  261|       |          return false;
  262|       |        }
  263|       |        tint::writer::wgsl::Generator wgsl_writer(spv_reader.module());
  264|       |        if (!wgsl_writer.Generate()) {
  265|       |          std::cout << "error: failed to convert to WGSL: "
  266|       |                    << wgsl_writer.error() << std::endl;
  267|       |          return false;
  268|       |        }
  269|       |        *out << wgsl_writer.result();
  270|       |#endif  // SHADERC_ENABLE_WGSL_OUTPUT==1
  271|  1.03k|        break;
  272|      0|      }
  273|  1.03k|    }
  274|  1.03k|  }
  275|       |
  276|       |  // Write error message to std::cerr.
  277|  2.84k|  std::cerr << result.GetErrorMessage();
  278|  2.84k|  if (out && out->fail()) {
  ------------------
  |  Branch (278:7): [True: 1.03k, False: 1.80k]
  |  Branch (278:14): [True: 0, False: 1.03k]
  ------------------
  279|       |    // Something wrong happened on output.
  280|      0|    if (out == &std::cout) {
  ------------------
  |  Branch (280:9): [True: 0, False: 0]
  ------------------
  281|      0|      std::cerr << "glslc: error: error writing to standard output"
  282|      0|                << std::endl;
  283|      0|    } else {
  284|      0|      std::cerr << "glslc: error: error writing to output file: '"
  285|      0|                << output_file_name_ << "'" << std::endl;
  286|      0|    }
  287|      0|    return false;
  288|      0|  }
  289|       |
  290|  2.84k|  return compilation_success;
  291|  2.84k|}

_ZN5glslc12FileCompilerC2Ev:
   53|  1.42k|      : output_type_(OutputType::SpirvBinary),
   54|  1.42k|        binary_emission_format_(SpirvBinaryEmissionFormat::Unspecified),
   55|  1.42k|        needs_linking_(true),
   56|  1.42k|        total_warnings_(0),
   57|  1.42k|        total_errors_(0) {}
_ZN5glslc12FileCompiler7optionsEv:
  121|  1.42k|  shaderc::CompileOptions& options() { return options_; }
_ZN5glslc12FileCompiler17SetOutputFileNameERKN12shaderc_util12string_pieceE:
   83|  1.42k|  void SetOutputFileName(const shaderc_util::string_piece& file) {
   84|  1.42k|    output_file_name_ = file;
   85|  1.42k|  }
_ZN5glslc12FileCompiler26SetSpirvBinaryOutputFormatENS0_25SpirvBinaryEmissionFormatE:
   88|  1.42k|  void SetSpirvBinaryOutputFormat(SpirvBinaryEmissionFormat format) {
   89|  1.42k|    binary_emission_format_ = format;
   90|  1.42k|  }
_ZN5glslc12FileCompiler17PreprocessingOnlyEv:
  195|  1.42k|  bool PreprocessingOnly() {
  196|  1.42k|    return output_type_ == OutputType::PreprocessedText;
  197|  1.42k|  }

_ZN5glslc22MakeErrorIncludeResultEPKc:
   24|    347|shaderc_include_result* MakeErrorIncludeResult(const char* message) {
   25|    347|  return new shaderc_include_result{"", 0, message, strlen(message)};
   26|    347|}
_ZN5glslc12FileIncluderD2Ev:
   28|  4.26k|FileIncluder::~FileIncluder() = default;
_ZN5glslc12FileIncluder10GetIncludeEPKc20shaderc_include_typeS2_m:
   32|    351|    const char* requesting_source, size_t) {
   33|       |
   34|    351|  const std::string full_path =
   35|    351|      (include_type == shaderc_include_type_relative)
  ------------------
  |  Branch (35:7): [True: 174, False: 177]
  ------------------
   36|    351|          ? file_finder_.FindRelativeReadableFilepath(requesting_source,
   37|    174|                                                      requested_source)
   38|    351|          : file_finder_.FindReadableFilepath(requested_source);
   39|       |
   40|    351|  if (full_path.empty())
  ------------------
  |  Branch (40:7): [True: 347, False: 4]
  ------------------
   41|    347|    return MakeErrorIncludeResult("Cannot find or open include file.");
   42|       |
   43|       |  // In principle, several threads could be resolving includes at the same
   44|       |  // time.  Protect the included_files.
   45|       |
   46|       |  // Read the file and save its full path and contents into stable addresses.
   47|      4|  FileInfo* new_file_info = new FileInfo{full_path, {}};
   48|      4|  if (!shaderc_util::ReadFile(full_path, &(new_file_info->contents))) {
  ------------------
  |  Branch (48:7): [True: 0, False: 4]
  ------------------
   49|      0|    return MakeErrorIncludeResult("Cannot read file");
   50|      0|  }
   51|       |
   52|      4|  included_files_.insert(full_path);
   53|       |
   54|      4|  return new shaderc_include_result{
   55|      4|      new_file_info->full_path.data(), new_file_info->full_path.length(),
   56|      4|      new_file_info->contents.data(), new_file_info->contents.size(),
   57|      4|      new_file_info};
   58|      4|}
_ZN5glslc12FileIncluder14ReleaseIncludeEP22shaderc_include_result:
   60|    351|void FileIncluder::ReleaseInclude(shaderc_include_result* include_result) {
   61|    351|  FileInfo* info = static_cast<FileInfo*>(include_result->user_data);
   62|    351|  delete info;
   63|    351|  delete include_result;
   64|    351|}

_ZN5glslc12FileIncluderC2EPKN12shaderc_util10FileFinderE:
   40|  4.26k|      : file_finder_(*file_finder) {}
_ZNK5glslc12FileIncluder15file_path_traceEv:
   55|  4.26k|  const std::unordered_set<std::string>& file_path_trace() const {
   56|  4.26k|    return included_files_;
   57|  4.26k|  }

_ZN7shaderc8CompilerC2Ev:
  401|  1.42k|  Compiler() : compiler_(shaderc_compiler_initialize()) {}
_ZN7shaderc14CompileOptionsC2Ev:
  142|  1.42k|  CompileOptions() { options_ = shaderc_compile_options_initialize(); }
_ZN7shaderc14CompileOptionsD2Ev:
  143|  1.42k|  ~CompileOptions() { shaderc_compile_options_release(options_); }
_ZN7shaderc8CompilerD2Ev:
  402|  1.42k|  ~Compiler() { shaderc_compiler_release(compiler_); }
_ZN7shaderc14CompileOptions19SetSuppressWarningsEv:
  241|  1.42k|  void SetSuppressWarnings() {
  242|  1.42k|    shaderc_compile_options_set_suppress_warnings(options_);
  243|  1.42k|  }
_ZN7shaderc14CompileOptions11SetIncluderEONSt3__110unique_ptrINS0_17IncluderInterfaceENS1_14default_deleteIS3_EEEE:
  209|  4.26k|  void SetIncluder(std::unique_ptr<IncluderInterface>&& includer) {
  210|  4.26k|    includer_ = std::move(includer);
  211|  4.26k|    shaderc_compile_options_set_include_callbacks(
  212|  4.26k|        options_,
  213|  4.26k|        [](void* user_data, const char* requested_source, int type,
  214|  4.26k|           const char* requesting_source, size_t include_depth) {
  215|  4.26k|          auto* sub_includer = static_cast<IncluderInterface*>(user_data);
  216|  4.26k|          return sub_includer->GetInclude(
  217|  4.26k|              requested_source, static_cast<shaderc_include_type>(type),
  218|  4.26k|              requesting_source, include_depth);
  219|  4.26k|        },
  220|  4.26k|        [](void* user_data, shaderc_include_result* include_result) {
  221|  4.26k|          auto* sub_includer = static_cast<IncluderInterface*>(user_data);
  222|  4.26k|          return sub_includer->ReleaseInclude(include_result);
  223|  4.26k|        },
  224|  4.26k|        includer_.get());
  225|  4.26k|  }
_ZN7shaderc14CompileOptions17SetSourceLanguageE23shaderc_source_language:
  246|  4.26k|  void SetSourceLanguage(shaderc_source_language lang) {
  247|  4.26k|    shaderc_compile_options_set_source_language(options_, lang);
  248|  4.26k|  }
_ZNK7shaderc8Compiler16CompileGlslToSpvEPKcm19shaderc_shader_kindS2_S2_RKNS_14CompileOptionsE:
  441|  1.42k|                                        const CompileOptions& options) const {
  442|  1.42k|    shaderc_compilation_result_t compilation_result = shaderc_compile_into_spv(
  443|  1.42k|        compiler_, source_text, source_text_size, shader_kind, input_file_name,
  444|  1.42k|        entry_point_name, options.options_);
  445|  1.42k|    return SpvCompilationResult(compilation_result);
  446|  1.42k|  }
_ZNK7shaderc8Compiler14PreprocessGlslEPKcm19shaderc_shader_kindS2_RKNS_14CompileOptionsE:
  608|  2.84k|      const CompileOptions& options) const {
  609|  2.84k|    shaderc_compilation_result_t compilation_result =
  610|  2.84k|        shaderc_compile_into_preprocessed_text(
  611|  2.84k|            compiler_, source_text, source_text_size, shader_kind,
  612|  2.84k|            input_file_name, "main", options.options_);
  613|  2.84k|    return PreprocessedSourceCompilationResult(compilation_result);
  614|  2.84k|  }
_ZN7shaderc14CompileOptions17IncluderInterfaceD2Ev:
  203|  4.26k|    virtual ~IncluderInterface() = default;
_ZZN7shaderc14CompileOptions11SetIncluderEONSt3__110unique_ptrINS0_17IncluderInterfaceENS1_14default_deleteIS3_EEEEENKUlPvPKciSA_mE_clES8_SA_iSA_m:
  214|    351|           const char* requesting_source, size_t include_depth) {
  215|    351|          auto* sub_includer = static_cast<IncluderInterface*>(user_data);
  216|    351|          return sub_includer->GetInclude(
  217|    351|              requested_source, static_cast<shaderc_include_type>(type),
  218|    351|              requesting_source, include_depth);
  219|    351|        },
_ZZN7shaderc14CompileOptions11SetIncluderEONSt3__110unique_ptrINS0_17IncluderInterfaceENS1_14default_deleteIS3_EEEEENKUlPvP22shaderc_include_resultE_clES8_SA_:
  220|    351|        [](void* user_data, shaderc_include_result* include_result) {
  221|    351|          auto* sub_includer = static_cast<IncluderInterface*>(user_data);
  222|    351|          return sub_includer->ReleaseInclude(include_result);
  223|    351|        },
_ZN7shaderc17CompilationResultIjEC2EP26shaderc_compilation_result:
   49|  1.42k|      : compilation_result_(compilation_result) {}
_ZN7shaderc17CompilationResultIcEC2EP26shaderc_compilation_result:
   49|  2.84k|      : compilation_result_(compilation_result) {}
_ZN7shaderc17CompilationResultIjED2Ev:
   51|  1.42k|  ~CompilationResult() { shaderc_result_release(compilation_result_); }
_ZN7shaderc17CompilationResultIcED2Ev:
   51|  2.84k|  ~CompilationResult() { shaderc_result_release(compilation_result_); }
_ZNK7shaderc17CompilationResultIjE12GetNumErrorsEv:
  117|  1.42k|  size_t GetNumErrors() const {
  118|  1.42k|    if (!compilation_result_) {
  ------------------
  |  Branch (118:9): [True: 0, False: 1.42k]
  ------------------
  119|      0|      return 0;
  120|      0|    }
  121|  1.42k|    return shaderc_result_get_num_errors(compilation_result_);
  122|  1.42k|  }
_ZNK7shaderc17CompilationResultIjE14GetNumWarningsEv:
  109|  1.42k|  size_t GetNumWarnings() const {
  110|  1.42k|    if (!compilation_result_) {
  ------------------
  |  Branch (110:9): [True: 0, False: 1.42k]
  ------------------
  111|      0|      return 0;
  112|      0|    }
  113|  1.42k|    return shaderc_result_get_num_warnings(compilation_result_);
  114|  1.42k|  }
_ZNK7shaderc17CompilationResultIjE20GetCompilationStatusEv:
   77|  2.84k|  shaderc_compilation_status GetCompilationStatus() const {
   78|  2.84k|    if (!compilation_result_) {
  ------------------
  |  Branch (78:9): [True: 0, False: 2.84k]
  ------------------
   79|      0|      return shaderc_compilation_status_null_result_object;
   80|      0|    }
   81|  2.84k|    return shaderc_result_get_compilation_status(compilation_result_);
   82|  2.84k|  }
_ZNK7shaderc17CompilationResultIjE6cbeginEv:
   87|  2.84k|  const_iterator cbegin() const {
   88|  2.84k|    if (!compilation_result_) return nullptr;
  ------------------
  |  Branch (88:9): [True: 0, False: 2.84k]
  ------------------
   89|  2.84k|    return reinterpret_cast<const_iterator>(
   90|  2.84k|        shaderc_result_get_bytes(compilation_result_));
   91|  2.84k|  }
_ZNK7shaderc17CompilationResultIjE4cendEv:
   96|  1.42k|  const_iterator cend() const {
   97|  1.42k|    if (!compilation_result_) return nullptr;
  ------------------
  |  Branch (97:9): [True: 0, False: 1.42k]
  ------------------
   98|  1.42k|    return cbegin() +
   99|  1.42k|           shaderc_result_get_length(compilation_result_) /
  100|  1.42k|               sizeof(OutputElementType);
  101|  1.42k|  }
_ZNK7shaderc17CompilationResultIjE15GetErrorMessageEv:
   67|  1.42k|  std::string GetErrorMessage() const {
   68|  1.42k|    if (!compilation_result_) {
  ------------------
  |  Branch (68:9): [True: 0, False: 1.42k]
  ------------------
   69|      0|      return "";
   70|      0|    }
   71|  1.42k|    return shaderc_result_get_error_message(compilation_result_);
   72|  1.42k|  }
_ZNK7shaderc17CompilationResultIcE12GetNumErrorsEv:
  117|  2.84k|  size_t GetNumErrors() const {
  118|  2.84k|    if (!compilation_result_) {
  ------------------
  |  Branch (118:9): [True: 0, False: 2.84k]
  ------------------
  119|      0|      return 0;
  120|      0|    }
  121|  2.84k|    return shaderc_result_get_num_errors(compilation_result_);
  122|  2.84k|  }
_ZNK7shaderc17CompilationResultIcE14GetNumWarningsEv:
  109|  2.84k|  size_t GetNumWarnings() const {
  110|  2.84k|    if (!compilation_result_) {
  ------------------
  |  Branch (110:9): [True: 0, False: 2.84k]
  ------------------
  111|      0|      return 0;
  112|      0|    }
  113|  2.84k|    return shaderc_result_get_num_warnings(compilation_result_);
  114|  2.84k|  }
_ZNK7shaderc17CompilationResultIcE20GetCompilationStatusEv:
   77|  5.68k|  shaderc_compilation_status GetCompilationStatus() const {
   78|  5.68k|    if (!compilation_result_) {
  ------------------
  |  Branch (78:9): [True: 0, False: 5.68k]
  ------------------
   79|      0|      return shaderc_compilation_status_null_result_object;
   80|      0|    }
   81|  5.68k|    return shaderc_result_get_compilation_status(compilation_result_);
   82|  5.68k|  }
_ZNK7shaderc17CompilationResultIcE6cbeginEv:
   87|  5.68k|  const_iterator cbegin() const {
   88|  5.68k|    if (!compilation_result_) return nullptr;
  ------------------
  |  Branch (88:9): [True: 0, False: 5.68k]
  ------------------
   89|  5.68k|    return reinterpret_cast<const_iterator>(
   90|  5.68k|        shaderc_result_get_bytes(compilation_result_));
   91|  5.68k|  }
_ZNK7shaderc17CompilationResultIcE4cendEv:
   96|  2.84k|  const_iterator cend() const {
   97|  2.84k|    if (!compilation_result_) return nullptr;
  ------------------
  |  Branch (97:9): [True: 0, False: 2.84k]
  ------------------
   98|  2.84k|    return cbegin() +
   99|  2.84k|           shaderc_result_get_length(compilation_result_) /
  100|  2.84k|               sizeof(OutputElementType);
  101|  2.84k|  }
_ZNK7shaderc17CompilationResultIcE15GetErrorMessageEv:
   67|  2.84k|  std::string GetErrorMessage() const {
   68|  2.84k|    if (!compilation_result_) {
  ------------------
  |  Branch (68:9): [True: 0, False: 2.84k]
  ------------------
   69|      0|      return "";
   70|      0|    }
   71|  2.84k|    return shaderc_result_get_error_message(compilation_result_);
   72|  2.84k|  }

shaderc_compile_options_initialize:
  394|  1.42k|shaderc_compile_options_t shaderc_compile_options_initialize() {
  395|  1.42k|  return new (std::nothrow) shaderc_compile_options;
  396|  1.42k|}
shaderc_compile_options_release:
  406|  1.42k|void shaderc_compile_options_release(shaderc_compile_options_t options) {
  407|  1.42k|  delete options;
  408|  1.42k|}
shaderc_compile_options_set_source_language:
  417|  4.26k|    shaderc_compile_options_t options, shaderc_source_language set_lang) {
  418|  4.26k|  auto lang = shaderc_util::Compiler::SourceLanguage::GLSL;
  419|  4.26k|  if (set_lang == shaderc_source_language_hlsl)
  ------------------
  |  Branch (419:7): [True: 0, False: 4.26k]
  ------------------
  420|      0|    lang = shaderc_util::Compiler::SourceLanguage::HLSL;
  421|  4.26k|  options->compiler.SetSourceLanguage(lang);
  422|  4.26k|}
shaderc_compile_options_set_include_callbacks:
  479|  4.26k|    shaderc_include_result_release_fn result_releaser, void* user_data) {
  480|  4.26k|  options->include_resolver = resolver;
  481|  4.26k|  options->include_result_releaser = result_releaser;
  482|  4.26k|  options->include_user_data = user_data;
  483|  4.26k|}
shaderc_compile_options_set_suppress_warnings:
  486|  1.42k|    shaderc_compile_options_t options) {
  487|  1.42k|  options->compiler.SetSuppressWarnings();
  488|  1.42k|}
shaderc_compiler_initialize:
  601|  1.42k|shaderc_compiler_t shaderc_compiler_initialize() {
  602|  1.42k|  shaderc_compiler_t compiler = new (std::nothrow) shaderc_compiler;
  603|  1.42k|  if (compiler) {
  ------------------
  |  Branch (603:7): [True: 1.42k, False: 0]
  ------------------
  604|  1.42k|    compiler->initializer.reset(new shaderc_util::GlslangInitializer);
  605|  1.42k|  }
  606|  1.42k|  return compiler;
  607|  1.42k|}
shaderc_compiler_release:
  609|  1.42k|void shaderc_compiler_release(shaderc_compiler_t compiler) { delete compiler; }
shaderc_compile_into_spv:
  694|  1.42k|    const shaderc_compile_options_t additional_options) {
  695|  1.42k|  return CompileToSpecifiedOutputType(
  696|  1.42k|      compiler, source_text, source_text_size, shader_kind, input_file_name,
  697|  1.42k|      entry_point_name, additional_options,
  698|  1.42k|      shaderc_util::Compiler::OutputType::SpirvBinary);
  699|  1.42k|}
shaderc_compile_into_preprocessed_text:
  716|  2.84k|    const shaderc_compile_options_t additional_options) {
  717|  2.84k|  return CompileToSpecifiedOutputType(
  718|  2.84k|      compiler, source_text, source_text_size, shader_kind, input_file_name,
  719|  2.84k|      entry_point_name, additional_options,
  720|  2.84k|      shaderc_util::Compiler::OutputType::PreprocessedText);
  721|  2.84k|}
shaderc_result_get_length:
  763|  4.26k|size_t shaderc_result_get_length(const shaderc_compilation_result_t result) {
  764|  4.26k|  if (!result) return 0;
  ------------------
  |  Branch (764:7): [True: 0, False: 4.26k]
  ------------------
  765|  4.26k|  return result->output_data_size;
  766|  4.26k|}
shaderc_result_get_num_warnings:
  769|  4.26k|    const shaderc_compilation_result_t result) {
  770|  4.26k|  if (!result) return 0;
  ------------------
  |  Branch (770:7): [True: 0, False: 4.26k]
  ------------------
  771|  4.26k|  return result->num_warnings;
  772|  4.26k|}
shaderc_result_get_num_errors:
  775|  4.26k|    const shaderc_compilation_result_t result) {
  776|  4.26k|  if (!result) return 0;
  ------------------
  |  Branch (776:7): [True: 0, False: 4.26k]
  ------------------
  777|  4.26k|  return result->num_errors;
  778|  4.26k|}
shaderc_result_get_bytes:
  781|  8.52k|    const shaderc_compilation_result_t result) {
  782|  8.52k|  if (!result) return nullptr;
  ------------------
  |  Branch (782:7): [True: 0, False: 8.52k]
  ------------------
  783|  8.52k|  return result->GetBytes();
  784|  8.52k|}
shaderc_result_release:
  786|  4.26k|void shaderc_result_release(shaderc_compilation_result_t result) {
  787|  4.26k|  delete result;
  788|  4.26k|}
shaderc_result_get_error_message:
  791|  4.26k|    const shaderc_compilation_result_t result) {
  792|  4.26k|  if (!result) return nullptr;
  ------------------
  |  Branch (792:7): [True: 0, False: 4.26k]
  ------------------
  793|  4.26k|  return result->messages.c_str();
  794|  4.26k|}
shaderc_result_get_compilation_status:
  797|  8.52k|    const shaderc_compilation_result_t result) {
  798|  8.52k|  if (!result) return shaderc_compilation_status_null_result_object;
  ------------------
  |  Branch (798:7): [True: 0, False: 8.52k]
  ------------------
  799|  8.52k|  return result->compilation_status;
  800|  8.52k|}
shaderc.cc:_ZN12_GLOBAL__N_128CompileToSpecifiedOutputTypeEP16shaderc_compilerPKcm19shaderc_shader_kindS3_S3_P23shaderc_compile_optionsN12shaderc_util8Compiler10OutputTypeE:
  617|  4.26k|    shaderc_util::Compiler::OutputType output_type) {
  618|  4.26k|  auto* result = new (std::nothrow) shaderc_compilation_result_vector;
  619|  4.26k|  if (!result) return nullptr;
  ------------------
  |  Branch (619:7): [True: 0, False: 4.26k]
  ------------------
  620|       |
  621|  4.26k|  if (!input_file_name) {
  ------------------
  |  Branch (621:7): [True: 0, False: 4.26k]
  ------------------
  622|      0|    result->messages = "Input file name string was null.";
  623|      0|    result->num_errors = 1;
  624|      0|    result->compilation_status = shaderc_compilation_status_compilation_error;
  625|      0|    return result;
  626|      0|  }
  627|  4.26k|  result->compilation_status = shaderc_compilation_status_invalid_stage;
  628|  4.26k|  bool compilation_succeeded = false;  // In case we exit early.
  629|  4.26k|  std::vector<uint32_t> compilation_output_data;
  630|  4.26k|  size_t compilation_output_data_size_in_bytes = 0u;
  631|  4.26k|  if (!compiler->initializer) return result;
  ------------------
  |  Branch (631:7): [True: 0, False: 4.26k]
  ------------------
  632|  4.26k|  TRY_IF_EXCEPTIONS_ENABLED {
  ------------------
  |  |   36|  4.26k|#define TRY_IF_EXCEPTIONS_ENABLED try
  ------------------
  633|  4.26k|    std::stringstream errors;
  634|  4.26k|    size_t total_warnings = 0;
  635|  4.26k|    size_t total_errors = 0;
  636|  4.26k|    std::string input_file_name_str(input_file_name);
  637|  4.26k|    EShLanguage forced_stage = GetForcedStage(shader_kind);
  638|  4.26k|    shaderc_util::string_piece source_string =
  639|  4.26k|        shaderc_util::string_piece(source_text, source_text + source_text_size);
  640|  4.26k|    StageDeducer stage_deducer(shader_kind);
  641|  4.26k|    if (additional_options) {
  ------------------
  |  Branch (641:9): [True: 4.26k, False: 0]
  ------------------
  642|  4.26k|      InternalFileIncluder includer(additional_options->include_resolver,
  643|  4.26k|                                    additional_options->include_result_releaser,
  644|  4.26k|                                    additional_options->include_user_data);
  645|       |      // Depends on return value optimization to avoid extra copy.
  646|  4.26k|      std::tie(compilation_succeeded, compilation_output_data,
  647|  4.26k|               compilation_output_data_size_in_bytes) =
  648|  4.26k|          additional_options->compiler.Compile(
  649|  4.26k|              source_string, forced_stage, input_file_name_str,
  650|  4.26k|              entry_point_name,
  651|       |              // stage_deducer has a flag: error_, which we need to check later.
  652|       |              // We need to make this a reference wrapper, so that std::function
  653|       |              // won't make a copy for this callable object.
  654|  4.26k|              std::ref(stage_deducer), includer, output_type, &errors,
  655|  4.26k|              &total_warnings, &total_errors);
  656|  4.26k|    } else {
  657|       |      // Compile with default options.
  658|      0|      InternalFileIncluder includer;
  659|      0|      std::tie(compilation_succeeded, compilation_output_data,
  660|      0|               compilation_output_data_size_in_bytes) =
  661|      0|          shaderc_util::Compiler().Compile(
  662|      0|              source_string, forced_stage, input_file_name_str,
  663|      0|              entry_point_name, std::ref(stage_deducer), includer, output_type,
  664|      0|              &errors, &total_warnings, &total_errors);
  665|      0|    }
  666|       |
  667|  4.26k|    result->messages = errors.str();
  668|  4.26k|    result->SetOutputData(std::move(compilation_output_data));
  669|  4.26k|    result->output_data_size = compilation_output_data_size_in_bytes;
  670|  4.26k|    result->num_warnings = total_warnings;
  671|  4.26k|    result->num_errors = total_errors;
  672|  4.26k|    if (compilation_succeeded) {
  ------------------
  |  Branch (672:9): [True: 1.07k, False: 3.18k]
  ------------------
  673|  1.07k|      result->compilation_status = shaderc_compilation_status_success;
  674|  3.18k|    } else {
  675|       |      // Check whether the error is caused by failing to deduce the shader
  676|       |      // stage. If it is the case, set the error type to shader kind error.
  677|       |      // Otherwise, set it to compilation error.
  678|  3.18k|      result->compilation_status =
  679|  3.18k|          stage_deducer.error() ? shaderc_compilation_status_invalid_stage
  ------------------
  |  Branch (679:11): [True: 0, False: 3.18k]
  ------------------
  680|  3.18k|                                : shaderc_compilation_status_compilation_error;
  681|  3.18k|    }
  682|  4.26k|  }
  683|  4.26k|  CATCH_IF_EXCEPTIONS_ENABLED(...) {
  684|      0|    result->compilation_status = shaderc_compilation_status_internal_error;
  685|      0|  }
  686|  4.26k|  return result;
  687|  4.26k|}
shaderc.cc:_ZN12_GLOBAL__N_114GetForcedStageE19shaderc_shader_kind:
   46|  4.26k|EShLanguage GetForcedStage(shaderc_shader_kind kind) {
   47|  4.26k|  switch (kind) {
  ------------------
  |  Branch (47:11): [True: 4.26k, False: 0]
  ------------------
   48|      0|    case shaderc_glsl_vertex_shader:
  ------------------
  |  Branch (48:5): [True: 0, False: 4.26k]
  ------------------
   49|      0|      return EShLangVertex;
   50|  4.26k|    case shaderc_glsl_fragment_shader:
  ------------------
  |  Branch (50:5): [True: 4.26k, False: 0]
  ------------------
   51|  4.26k|      return EShLangFragment;
   52|      0|    case shaderc_glsl_compute_shader:
  ------------------
  |  Branch (52:5): [True: 0, False: 4.26k]
  ------------------
   53|      0|      return EShLangCompute;
   54|      0|    case shaderc_glsl_geometry_shader:
  ------------------
  |  Branch (54:5): [True: 0, False: 4.26k]
  ------------------
   55|      0|      return EShLangGeometry;
   56|      0|    case shaderc_glsl_tess_control_shader:
  ------------------
  |  Branch (56:5): [True: 0, False: 4.26k]
  ------------------
   57|      0|      return EShLangTessControl;
   58|      0|    case shaderc_glsl_tess_evaluation_shader:
  ------------------
  |  Branch (58:5): [True: 0, False: 4.26k]
  ------------------
   59|      0|      return EShLangTessEvaluation;
   60|       |
   61|      0|    case shaderc_glsl_raygen_shader:
  ------------------
  |  Branch (61:5): [True: 0, False: 4.26k]
  ------------------
   62|      0|      return EShLangRayGenNV;
   63|      0|    case shaderc_glsl_anyhit_shader:
  ------------------
  |  Branch (63:5): [True: 0, False: 4.26k]
  ------------------
   64|      0|      return EShLangAnyHitNV;
   65|      0|    case shaderc_glsl_closesthit_shader:
  ------------------
  |  Branch (65:5): [True: 0, False: 4.26k]
  ------------------
   66|      0|      return EShLangClosestHitNV;
   67|      0|    case shaderc_glsl_miss_shader:
  ------------------
  |  Branch (67:5): [True: 0, False: 4.26k]
  ------------------
   68|      0|      return EShLangMissNV;
   69|      0|    case shaderc_glsl_intersection_shader:
  ------------------
  |  Branch (69:5): [True: 0, False: 4.26k]
  ------------------
   70|      0|      return EShLangIntersectNV;
   71|      0|    case shaderc_glsl_callable_shader:
  ------------------
  |  Branch (71:5): [True: 0, False: 4.26k]
  ------------------
   72|      0|      return EShLangCallableNV;
   73|      0|    case shaderc_glsl_task_shader:
  ------------------
  |  Branch (73:5): [True: 0, False: 4.26k]
  ------------------
   74|      0|      return EShLangTaskNV;
   75|      0|    case shaderc_glsl_mesh_shader:
  ------------------
  |  Branch (75:5): [True: 0, False: 4.26k]
  ------------------
   76|      0|      return EShLangMeshNV;
   77|       |
   78|      0|    case shaderc_glsl_infer_from_source:
  ------------------
  |  Branch (78:5): [True: 0, False: 4.26k]
  ------------------
   79|      0|    case shaderc_glsl_default_vertex_shader:
  ------------------
  |  Branch (79:5): [True: 0, False: 4.26k]
  ------------------
   80|      0|    case shaderc_glsl_default_fragment_shader:
  ------------------
  |  Branch (80:5): [True: 0, False: 4.26k]
  ------------------
   81|      0|    case shaderc_glsl_default_compute_shader:
  ------------------
  |  Branch (81:5): [True: 0, False: 4.26k]
  ------------------
   82|      0|    case shaderc_glsl_default_geometry_shader:
  ------------------
  |  Branch (82:5): [True: 0, False: 4.26k]
  ------------------
   83|      0|    case shaderc_glsl_default_tess_control_shader:
  ------------------
  |  Branch (83:5): [True: 0, False: 4.26k]
  ------------------
   84|      0|    case shaderc_glsl_default_tess_evaluation_shader:
  ------------------
  |  Branch (84:5): [True: 0, False: 4.26k]
  ------------------
   85|      0|    case shaderc_glsl_default_raygen_shader:
  ------------------
  |  Branch (85:5): [True: 0, False: 4.26k]
  ------------------
   86|      0|    case shaderc_glsl_default_anyhit_shader:
  ------------------
  |  Branch (86:5): [True: 0, False: 4.26k]
  ------------------
   87|      0|    case shaderc_glsl_default_closesthit_shader:
  ------------------
  |  Branch (87:5): [True: 0, False: 4.26k]
  ------------------
   88|      0|    case shaderc_glsl_default_miss_shader:
  ------------------
  |  Branch (88:5): [True: 0, False: 4.26k]
  ------------------
   89|      0|    case shaderc_glsl_default_intersection_shader:
  ------------------
  |  Branch (89:5): [True: 0, False: 4.26k]
  ------------------
   90|      0|    case shaderc_glsl_default_callable_shader:
  ------------------
  |  Branch (90:5): [True: 0, False: 4.26k]
  ------------------
   91|      0|    case shaderc_glsl_default_task_shader:
  ------------------
  |  Branch (91:5): [True: 0, False: 4.26k]
  ------------------
   92|      0|    case shaderc_glsl_default_mesh_shader:
  ------------------
  |  Branch (92:5): [True: 0, False: 4.26k]
  ------------------
   93|      0|    case shaderc_spirv_assembly:
  ------------------
  |  Branch (93:5): [True: 0, False: 4.26k]
  ------------------
   94|      0|      return EShLangCount;
   95|  4.26k|  }
   96|  4.26k|  assert(0 && "Unhandled shaderc_shader_kind");
   97|      0|  return EShLangCount;
   98|  4.26k|}
shaderc.cc:_ZN12_GLOBAL__N_112StageDeducerC2E19shaderc_shader_kind:
  113|  4.26k|      : kind_(kind), error_(false) {}
shaderc.cc:_ZN12_GLOBAL__N_120InternalFileIncluderC2EPFP22shaderc_include_resultPvPKciS5_mEPFvS3_S2_ES3_:
  204|  4.26k|      : resolver_(resolver),
  205|  4.26k|        result_releaser_(result_releaser),
  206|  4.26k|        user_data_(user_data) {}
shaderc.cc:_ZN12_GLOBAL__N_120InternalFileIncluder16include_delegateEPKcS2_N12shaderc_util16CountingIncluder11IncludeTypeEm:
  240|    351|      IncludeType type, size_t include_depth) override {
  241|    351|    if (!AreValidCallbacks()) {
  ------------------
  |  Branch (241:9): [True: 0, False: 351]
  ------------------
  242|      0|      static const char kUnexpectedIncludeError[] =
  243|      0|          "#error unexpected include directive";
  244|      0|      return new glslang::TShader::Includer::IncludeResult{
  245|      0|          "", kUnexpectedIncludeError, strlen(kUnexpectedIncludeError),
  246|      0|          nullptr};
  247|      0|    }
  248|    351|    shaderc_include_result* include_result =
  249|    351|        resolver_(user_data_, requested_source, GetIncludeType(type),
  250|    351|                  requesting_source, include_depth);
  251|       |    // Make a glslang IncludeResult from a shaderc_include_result.  The
  252|       |    // user_data member of the IncludeResult is a pointer to the
  253|       |    // shaderc_include_result object, so we can later release the latter.
  254|    351|    return new glslang::TShader::Includer::IncludeResult{
  255|    351|        std::string(include_result->source_name,
  256|    351|                    include_result->source_name_length),
  257|    351|        include_result->content, include_result->content_length,
  258|    351|        include_result};
  259|    351|  }
shaderc.cc:_ZNK12_GLOBAL__N_120InternalFileIncluder17AreValidCallbacksEv:
  212|    351|  bool AreValidCallbacks() const {
  213|    351|    return resolver_ != nullptr && result_releaser_ != nullptr;
  ------------------
  |  Branch (213:12): [True: 351, False: 0]
  |  Branch (213:36): [True: 351, False: 0]
  ------------------
  214|    351|  }
shaderc.cc:_ZN12_GLOBAL__N_120InternalFileIncluder14GetIncludeTypeEN12shaderc_util16CountingIncluder11IncludeTypeE:
  218|    351|  shaderc_include_type GetIncludeType(IncludeType type) {
  219|    351|    switch (type) {
  220|    174|      case IncludeType::Local:
  ------------------
  |  Branch (220:7): [True: 174, False: 177]
  ------------------
  221|    174|        return shaderc_include_type_relative;
  222|    177|      case IncludeType::System:
  ------------------
  |  Branch (222:7): [True: 177, False: 174]
  ------------------
  223|    177|        return shaderc_include_type_standard;
  224|      0|      default:
  ------------------
  |  Branch (224:7): [True: 0, False: 351]
  ------------------
  225|      0|        break;
  226|    351|    }
  227|    351|    assert(0 && "Unhandled IncludeType");
  228|      0|    return shaderc_include_type_relative;
  229|    351|  }
shaderc.cc:_ZN12_GLOBAL__N_120InternalFileIncluder16release_delegateEPN7glslang7TShader8Includer13IncludeResultE:
  263|    358|      glslang::TShader::Includer::IncludeResult* result) override {
  264|    358|    if (result && result_releaser_) {
  ------------------
  |  Branch (264:9): [True: 351, False: 7]
  |  Branch (264:19): [True: 351, False: 0]
  ------------------
  265|    351|      result_releaser_(user_data_,
  266|    351|                       static_cast<shaderc_include_result*>(result->userData));
  267|    351|    }
  268|    358|    delete result;
  269|    358|  }
shaderc.cc:_ZNK12_GLOBAL__N_112StageDeducer5errorEv:
  136|  3.18k|  bool error() const { return error_; }

_ZN26shaderc_compilation_resultD2Ev:
   31|  4.26k|  virtual ~shaderc_compilation_result() {}
_ZN33shaderc_compilation_result_vectorD2Ev:
   54|  4.26k|  ~shaderc_compilation_result_vector() = default;
_ZNK33shaderc_compilation_result_vector8GetBytesEv:
   60|  8.52k|  const char* GetBytes() const override {
   61|  8.52k|    return reinterpret_cast<const char*>(output_data_.data());
   62|  8.52k|  }
_ZN33shaderc_compilation_result_vector13SetOutputDataEONSt3__16vectorIjNS0_9allocatorIjEEEE:
   56|  4.26k|  void SetOutputData(std::vector<uint32_t>&& data) {
   57|  4.26k|    output_data_ = std::move(data);
   58|  4.26k|  }

_ZN12shaderc_util8CompilerC2Ev:
  188|  1.42k|      : default_version_(110),
  189|  1.42k|        default_profile_(ENoProfile),
  190|  1.42k|        force_version_profile_(false),
  191|  1.42k|        warnings_as_errors_(false),
  192|  1.42k|        suppress_warnings_(false),
  193|  1.42k|        generate_debug_info_(false),
  194|  1.42k|        generate_nonsemantic_debug_info_(false),
  195|  1.42k|        generate_nonsemantic_debug_source_(false),
  196|  1.42k|        enabled_opt_passes_(),
  197|  1.42k|        target_env_(TargetEnv::Vulkan),
  198|  1.42k|        target_env_version_(TargetEnvVersion::Default),
  199|  1.42k|        target_spirv_version_(SpirvVersion::v1_0),
  200|  1.42k|        target_spirv_version_is_forced_(false),
  201|  1.42k|        source_language_(SourceLanguage::GLSL),
  202|  1.42k|        limits_(kDefaultTBuiltInResource),
  203|  1.42k|        auto_bind_uniforms_(false),
  204|  1.42k|        auto_combined_image_sampler_(false),
  205|       |        auto_binding_base_(),
  206|  1.42k|        auto_map_locations_(false),
  207|  1.42k|        preserve_bindings_(false),
  208|  1.42k|        hlsl_iomap_(false),
  209|  1.42k|        hlsl_offsets_(false),
  210|  1.42k|        hlsl_legalization_enabled_(true),
  211|  1.42k|        hlsl_functionality1_enabled_(false),
  212|  1.42k|        hlsl_16bit_types_enabled_(false),
  213|  1.42k|        invert_y_enabled_(false),
  214|  1.42k|        nan_clamp_(false),
  215|  1.42k|        hlsl_explicit_bindings_() {}
_ZN12shaderc_util17GlslangClientInfoC2Ev:
  638|  7.10k|  GlslangClientInfo() {}

_ZN12shaderc_util16CountingIncluderC2Ev:
   36|  4.26k|  CountingIncluder() {
   37|  4.26k|    num_include_directives_.store(0);
   38|  4.26k|  }
_ZN12shaderc_util16CountingIncluder13includeSystemEPKcS2_m:
   52|    177|      size_t include_depth) final {
   53|    177|    ++num_include_directives_;
   54|    177|    include_mutex_.lock();
   55|    177|    auto result = include_delegate(requested_source, requesting_source,
   56|    177|                                   IncludeType::System, include_depth);
   57|    177|    include_mutex_.unlock();
   58|    177|    return result;
   59|    177|  }
_ZN12shaderc_util16CountingIncluder12includeLocalEPKcS2_m:
   64|    174|      size_t include_depth) final {
   65|    174|    ++num_include_directives_;
   66|    174|    include_mutex_.lock();
   67|    174|    auto result = include_delegate(requested_source, requesting_source,
   68|    174|                                   IncludeType::Local, include_depth);
   69|    174|    include_mutex_.unlock();
   70|    174|    return result;
   71|    174|  }
_ZN12shaderc_util16CountingIncluder14releaseIncludeEPN7glslang7TShader8Includer13IncludeResultE:
   74|    358|  void releaseInclude(glslang::TShader::Includer::IncludeResult* result) final {
   75|    358|    release_delegate(result);
   76|    358|  }
_ZNK12shaderc_util16CountingIncluder22num_include_directivesEv:
   78|  1.03k|  int num_include_directives() const { return num_include_directives_.load(); }

_ZN12shaderc_util10FileFinder11search_pathEv:
   49|  1.42k|  std::vector<std::string>& search_path() { return search_path_; }

_ZN12shaderc_util6formatINSt3__113unordered_mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES8_NS1_4hashIS8_EENS1_8equal_toIS8_EENS6_INS1_4pairIKS8_S8_EEEEEEEES8_RKT_RSE_SL_SL_:
   26|  4.26k|                   const std::string& infix, const std::string& postfix) {
   27|  4.26k|  std::stringstream s;
   28|  4.26k|  for (const auto& pair : map) {
  ------------------
  |  Branch (28:25): [True: 0, False: 4.26k]
  ------------------
   29|      0|    s << prefix << pair.first << infix << pair.second << postfix;
   30|      0|  }
   31|  4.26k|  return s.str();
   32|  4.26k|}

_ZN12shaderc_util11posix_mutexC2Ev:
   81|  4.26k|  posix_mutex() { pthread_mutex_init(&mutex_, nullptr); }
_ZN12shaderc_util11posix_mutexD2Ev:
   83|  4.26k|  ~posix_mutex() { pthread_mutex_destroy(&mutex_); }
_ZN12shaderc_util11posix_mutex4lockEv:
   90|    351|  void lock() { pthread_mutex_lock(&mutex_); }
_ZN12shaderc_util11posix_mutex6unlockEv:
   94|    351|  void unlock() { pthread_mutex_unlock(&mutex_); }

_ZN12shaderc_util12string_pieceC2Ev:
   35|  13.6M|  constexpr string_piece() {}
_ZN12shaderc_util12string_pieceC2EPKc:
   43|  84.9M|  string_piece(const char* string) : begin_(string), end_(string) {
   44|  84.9M|    if (string) {
  ------------------
  |  Branch (44:9): [True: 84.9M, False: 0]
  ------------------
   45|  84.9M|      end_ += strlen(string);
   46|  84.9M|    }
   47|  84.9M|  }
_ZN12shaderc_util12string_pieceC2EPKcS2_:
   38|  77.4M|      : begin_(begin), end_(end) {
   39|       |    assert((begin == nullptr) == (end == nullptr) &&
   40|  77.4M|           "either both begin and end must be nullptr or neither must be");
   41|  77.4M|  }
_ZN12shaderc_util12string_pieceC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   49|  17.1k|  string_piece(const std::string& str) {
   50|  17.1k|    if (!str.empty()) {
  ------------------
  |  Branch (50:9): [True: 17.1k, False: 0]
  ------------------
   51|  17.1k|      begin_ = &(str.front());
   52|  17.1k|      end_ = &(str.back()) + 1;
   53|  17.1k|    }
   54|  17.1k|  }
_ZN12shaderc_util12string_pieceC2ERKS0_:
   56|  89.3M|  string_piece(const string_piece& other) {
   57|  89.3M|    begin_ = other.begin_;
   58|  89.3M|    end_ = other.end_;
   59|  89.3M|  }
_ZN12shaderc_util12string_piece5clearEv:
   64|  13.6M|  void clear() {
   65|  13.6M|    begin_ = nullptr;
   66|  13.6M|    end_ = nullptr;
   67|  13.6M|  }
_ZNK12shaderc_util12string_piece4dataEv:
   71|  3.88M|  const char* data() const { return begin_; }
_ZNK12shaderc_util12string_piece3strEv:
   74|  4.43k|  std::string str() const { return std::string(begin_, end_); }
_ZNK12shaderc_util12string_piece6substrEmm:
   77|  20.4M|  string_piece substr(size_t pos, size_t len = npos) const {
   78|  20.4M|    assert(pos <= size());
   79|  20.4M|    assert(len == npos || pos + len <= size());
   80|  20.4M|    return string_piece(begin_ + pos, len == npos ? end_ : begin_ + pos + len);
  ------------------
  |  Branch (80:39): [True: 7.75M, False: 12.7M]
  ------------------
   81|  20.4M|  }
_ZNK12shaderc_util12string_piece17find_first_not_ofERKS0_m:
  103|  3.87M|                           size_t pos = 0) const {
  104|  3.87M|    if (pos >= size()) {
  ------------------
  |  Branch (104:9): [True: 0, False: 3.87M]
  ------------------
  105|      0|      return npos;
  106|      0|    }
  107|  9.41M|    for (auto it = begin_ + pos; it != end_; ++it) {
  ------------------
  |  Branch (107:34): [True: 9.41M, False: 0]
  ------------------
  108|  9.41M|      if (to_search.find_first_of(*it) == npos) {
  ------------------
  |  Branch (108:11): [True: 3.87M, False: 5.54M]
  ------------------
  109|  3.87M|        return it - begin_;
  110|  3.87M|      }
  111|  9.41M|    }
  112|      0|    return npos;
  113|  3.87M|  }
_ZNK12shaderc_util12string_piece13find_first_ofERKS0_m:
  125|  41.4M|  size_t find_first_of(const string_piece& to_search, size_t pos = 0) const {
  126|  41.4M|    if (pos >= size()) {
  ------------------
  |  Branch (126:9): [True: 5.33k, False: 41.4M]
  ------------------
  127|  5.33k|      return npos;
  128|  5.33k|    }
  129|   635M|    for (auto it = begin_ + pos; it != end_; ++it) {
  ------------------
  |  Branch (129:34): [True: 616M, False: 19.3M]
  ------------------
  130|   616M|      for (char c : to_search) {
  ------------------
  |  Branch (130:19): [True: 616M, False: 594M]
  ------------------
  131|   616M|        if (c == *it) {
  ------------------
  |  Branch (131:13): [True: 22.0M, False: 594M]
  ------------------
  132|  22.0M|          return it - begin_;
  133|  22.0M|        }
  134|   616M|      }
  135|   616M|    }
  136|  19.3M|    return npos;
  137|  41.4M|  }
_ZNK12shaderc_util12string_piece13find_first_ofEcm:
  141|  41.4M|  size_t find_first_of(char to_search, size_t pos = 0) const {
  142|  41.4M|    return find_first_of(string_piece(&to_search, &to_search + 1), pos);
  143|  41.4M|  }
_ZNK12shaderc_util12string_piece6lstripERKS0_:
  197|  7.74M|  string_piece lstrip(const string_piece& chars_to_strip) const {
  198|  7.74M|    iterator begin = begin_;
  199|  7.74M|    for (; begin < end_; ++begin)
  ------------------
  |  Branch (199:12): [True: 7.74M, False: 0]
  ------------------
  200|  7.74M|      if (chars_to_strip.find_first_of(*begin) == npos) break;
  ------------------
  |  Branch (200:11): [True: 7.74M, False: 130]
  ------------------
  201|  7.74M|    if (begin >= end_) return string_piece();
  ------------------
  |  Branch (201:9): [True: 0, False: 7.74M]
  ------------------
  202|  7.74M|    return string_piece(begin, end_);
  203|  7.74M|  }
_ZNK12shaderc_util12string_piece6rstripERKS0_:
  206|  7.74M|  string_piece rstrip(const string_piece& chars_to_strip) const {
  207|  7.74M|    iterator end = end_;
  208|  11.5M|    for (; begin_ < end; --end)
  ------------------
  |  Branch (208:12): [True: 11.5M, False: 0]
  ------------------
  209|  11.5M|      if (chars_to_strip.find_first_of(*(end - 1)) == npos) break;
  ------------------
  |  Branch (209:11): [True: 7.74M, False: 3.77M]
  ------------------
  210|  7.74M|    if (begin_ >= end) return string_piece();
  ------------------
  |  Branch (210:9): [True: 0, False: 7.74M]
  ------------------
  211|  7.74M|    return string_piece(begin_, end);
  212|  7.74M|  }
_ZNK12shaderc_util12string_piece5stripERKS0_:
  216|  7.74M|  string_piece strip(const string_piece& chars_to_strip) const {
  217|  7.74M|    return lstrip(chars_to_strip).rstrip(chars_to_strip);
  218|  7.74M|  }
_ZNK12shaderc_util12string_piece16strip_whitespaceEv:
  220|  7.74M|  string_piece strip_whitespace() const { return strip(" \t\n\r\f\v"); }
_ZNK12shaderc_util12string_pieceeqERKS0_:
  226|  67.4M|  bool operator==(const string_piece& other) const {
  227|       |    // Either end_ and _begin_ are nullptr or neither of them are.
  228|  67.4M|    assert(((end_ == nullptr) == (begin_ == nullptr)));
  229|  67.4M|    assert(((other.end_ == nullptr) == (other.begin_ == nullptr)));
  230|  67.4M|    if (size() != other.size()) {
  ------------------
  |  Branch (230:9): [True: 67.4M, False: 27.4k]
  ------------------
  231|  67.4M|      return false;
  232|  67.4M|    }
  233|  27.4k|    return (memcmp(begin_, other.begin_, end_ - begin_) == 0);
  234|  67.4M|  }
_ZNK12shaderc_util12string_pieceneERKS0_:
  236|  1.07k|  bool operator!=(const string_piece& other) const {
  237|  1.07k|    return !operator==(other);
  238|  1.07k|  }
_ZNK12shaderc_util12string_piece5beginEv:
  241|   622M|  iterator begin() const { return begin_; }
_ZNK12shaderc_util12string_piece3endEv:
  244|   653M|  iterator end() const { return end_; }
_ZNK12shaderc_util12string_piece4backEv:
  251|    521|  const char& back() const {
  252|       |    assert(!empty());
  253|    521|    return *(end_ - 1);
  254|    521|  }
_ZNK12shaderc_util12string_piece11starts_withERKS0_:
  258|  5.92M|  bool starts_with(const string_piece& other) const {
  259|  5.92M|    const char* iter = begin_;
  260|  5.92M|    const char* other_iter = other.begin();
  261|  33.1M|    while (iter != end_ && other_iter != other.end()) {
  ------------------
  |  Branch (261:12): [True: 33.1M, False: 0]
  |  Branch (261:28): [True: 29.2M, False: 3.88M]
  ------------------
  262|  29.2M|      if (*iter++ != *other_iter++) {
  ------------------
  |  Branch (262:11): [True: 2.04M, False: 27.2M]
  ------------------
  263|  2.04M|        return false;
  264|  2.04M|      }
  265|  29.2M|    }
  266|  3.88M|    return other_iter == other.end();
  267|  5.92M|  }
_ZNK12shaderc_util12string_piece4findERKS0_m:
  273|  1.03k|  size_t find(const string_piece& substr, size_t pos = 0) const {
  274|  1.03k|    if (empty()) return npos;
  ------------------
  |  Branch (274:9): [True: 0, False: 1.03k]
  ------------------
  275|  1.03k|    if (pos >= size()) return npos;
  ------------------
  |  Branch (275:9): [True: 0, False: 1.03k]
  ------------------
  276|  1.03k|    if (substr.empty()) return 0;
  ------------------
  |  Branch (276:9): [True: 0, False: 1.03k]
  ------------------
  277|  1.03k|    for (auto it = begin_ + pos;
  278|  52.2k|         end() - it >= static_cast<decltype(end() - it)>(substr.size()); ++it) {
  ------------------
  |  Branch (278:10): [True: 52.2k, False: 0]
  ------------------
  279|  52.2k|      if (string_piece(it, end()).starts_with(substr)) return it - begin_;
  ------------------
  |  Branch (279:11): [True: 1.03k, False: 51.1k]
  ------------------
  280|  52.2k|    }
  281|      0|    return npos;
  282|  1.03k|  }
_ZNK12shaderc_util12string_piece5emptyEv:
  293|  12.3M|  bool empty() const { return begin_ == end_; }
_ZNK12shaderc_util12string_piece4sizeEv:
  296|   184M|  size_t size() const { return end_ - begin_; }
_ZNK12shaderc_util12string_piece10get_fieldsEcb:
  302|  5.33k|                                       bool keep_delimiter = false) const {
  303|  5.33k|    std::vector<string_piece> fields;
  304|  5.33k|    size_t first = 0;
  305|  5.33k|    size_t field_break = find_first_of(delimiter);
  306|  4.99M|    while (field_break != npos) {
  ------------------
  |  Branch (306:12): [True: 4.99M, False: 5.33k]
  ------------------
  307|  4.99M|      fields.push_back(substr(first, field_break - first + keep_delimiter));
  308|  4.99M|      first = field_break + 1;
  309|  4.99M|      field_break = find_first_of(delimiter, first);
  310|  4.99M|    }
  311|  5.33k|    if (size() - first > 0) {
  ------------------
  |  Branch (311:9): [True: 0, False: 5.33k]
  ------------------
  312|      0|      fields.push_back(substr(first, size() - first));
  313|      0|    }
  314|  5.33k|    return fields;
  315|  5.33k|  }
_ZN12shaderc_utillsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_12string_pieceE:
  327|  13.3M|inline std::ostream& operator<<(std::ostream& os, const string_piece& piece) {
  328|       |  // Either end_ and _begin_ are nullptr or neither of them are.
  329|  13.3M|  assert(((piece.end_ == nullptr) == (piece.begin_ == nullptr)));
  330|  13.3M|  if (piece.end_ != piece.begin_) {
  ------------------
  |  Branch (330:7): [True: 13.3M, False: 0]
  ------------------
  331|  13.3M|    os.write(piece.begin_, piece.end_ - piece.begin_);
  332|  13.3M|  }
  333|  13.3M|  return os;
  334|  13.3M|}
_ZN12shaderc_utileqEPKcNS_12string_pieceE:
  336|  63.6M|inline bool operator==(const char* first, const string_piece second) {
  337|  63.6M|  return second == string_piece(first);
  338|  63.6M|}

_ZN12shaderc_util14IsKnownVersionEi:
   25|  1.03k|inline bool IsKnownVersion(int version) {
   26|  1.03k|  switch (version) {
   27|      0|    case 100:
  ------------------
  |  Branch (27:5): [True: 0, False: 1.03k]
  ------------------
   28|      0|    case 110:
  ------------------
  |  Branch (28:5): [True: 0, False: 1.03k]
  ------------------
   29|      0|    case 120:
  ------------------
  |  Branch (29:5): [True: 0, False: 1.03k]
  ------------------
   30|      0|    case 130:
  ------------------
  |  Branch (30:5): [True: 0, False: 1.03k]
  ------------------
   31|      6|    case 140:
  ------------------
  |  Branch (31:5): [True: 6, False: 1.03k]
  ------------------
   32|    296|    case 150:
  ------------------
  |  Branch (32:5): [True: 290, False: 746]
  ------------------
   33|    296|    case 300:
  ------------------
  |  Branch (33:5): [True: 0, False: 1.03k]
  ------------------
   34|    336|    case 310:
  ------------------
  |  Branch (34:5): [True: 40, False: 996]
  ------------------
   35|    348|    case 320:
  ------------------
  |  Branch (35:5): [True: 12, False: 1.02k]
  ------------------
   36|    348|    case 330:
  ------------------
  |  Branch (36:5): [True: 0, False: 1.03k]
  ------------------
   37|    376|    case 400:
  ------------------
  |  Branch (37:5): [True: 28, False: 1.00k]
  ------------------
   38|    380|    case 410:
  ------------------
  |  Branch (38:5): [True: 4, False: 1.03k]
  ------------------
   39|    380|    case 420:
  ------------------
  |  Branch (39:5): [True: 0, False: 1.03k]
  ------------------
   40|    532|    case 430:
  ------------------
  |  Branch (40:5): [True: 152, False: 884]
  ------------------
   41|    652|    case 440:
  ------------------
  |  Branch (41:5): [True: 120, False: 916]
  ------------------
   42|    974|    case 450:
  ------------------
  |  Branch (42:5): [True: 322, False: 714]
  ------------------
   43|  1.03k|    case 460:
  ------------------
  |  Branch (43:5): [True: 62, False: 974]
  ------------------
   44|  1.03k|      return true;
   45|      0|    default:
  ------------------
  |  Branch (45:5): [True: 0, False: 1.03k]
  ------------------
   46|      0|      break;
   47|  1.03k|  }
   48|      0|  return false;
   49|  1.03k|}

_ZN12shaderc_util18GlslangInitializerC2Ev:
  126|  1.42k|GlslangInitializer::GlslangInitializer() {
  127|  1.42k|  const std::lock_guard<std::mutex> glslang_lock(GetGlslangMutex());
  128|       |
  129|  1.42k|  if (initialize_count_ == 0) {
  ------------------
  |  Branch (129:7): [True: 1.42k, False: 0]
  ------------------
  130|  1.42k|    glslang::InitializeProcess();
  131|  1.42k|  }
  132|       |
  133|  1.42k|  initialize_count_++;
  134|  1.42k|}
_ZN12shaderc_util18GlslangInitializerD2Ev:
  136|  1.42k|GlslangInitializer::~GlslangInitializer() {
  137|  1.42k|  const std::lock_guard<std::mutex> glslang_lock(GetGlslangMutex());
  138|       |
  139|  1.42k|  initialize_count_--;
  140|       |
  141|  1.42k|  if (initialize_count_ == 0) {
  ------------------
  |  Branch (141:7): [True: 1.42k, False: 0]
  ------------------
  142|  1.42k|    glslang::FinalizeProcess();
  143|  1.42k|  }
  144|  1.42k|}
_ZNK12shaderc_util8Compiler7CompileERKNS_12string_pieceE11EShLanguageRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEPKcRKNS5_8functionIFS4_PNS5_13basic_ostreamIcS8_EES3_EEERNS_16CountingIncluderENS0_10OutputTypeESJ_PmSR_:
  176|  4.26k|    size_t* total_errors) const {
  177|       |  // Compilation results to be returned:
  178|       |  // Initialize the result tuple as a failed compilation. In error cases, we
  179|       |  // should return result_tuple directly without setting its members.
  180|  4.26k|  auto result_tuple =
  181|  4.26k|      std::make_tuple(false, std::vector<uint32_t>(), (size_t)0u);
  182|       |  // Get the reference of the members of the result tuple. We should set their
  183|       |  // values for succeeded compilation before returning the result tuple.
  184|  4.26k|  bool& succeeded = std::get<0>(result_tuple);
  185|  4.26k|  std::vector<uint32_t>& compilation_output_data = std::get<1>(result_tuple);
  186|  4.26k|  size_t& compilation_output_data_size_in_bytes = std::get<2>(result_tuple);
  187|       |
  188|       |  // glslang takes source lengths as int; a size_t that does not fit would be
  189|       |  // truncated (negative -> glslang falls back to strlen() on a buffer that is
  190|       |  // not required to be NUL-terminated). Reject oversized inputs up front.
  191|  4.26k|  if (input_source_string.size() > static_cast<size_t>(INT_MAX)) {
  ------------------
  |  Branch (191:7): [True: 0, False: 4.26k]
  ------------------
  192|      0|    *error_stream << error_tag
  193|      0|                  << ": error: shader source exceeds INT_MAX bytes\n";
  194|      0|    *total_errors = 1;
  195|      0|    return result_tuple;
  196|      0|  }
  197|       |
  198|       |  // Check target environment.
  199|  4.26k|  const auto target_client_info = GetGlslangClientInfo(
  200|  4.26k|      error_tag, target_env_, target_env_version_, target_spirv_version_,
  201|  4.26k|      target_spirv_version_is_forced_);
  202|  4.26k|  if (!target_client_info.error.empty()) {
  ------------------
  |  Branch (202:7): [True: 0, False: 4.26k]
  ------------------
  203|      0|    *error_stream << target_client_info.error;
  204|      0|    *total_warnings = 0;
  205|      0|    *total_errors = 1;
  206|      0|    return result_tuple;
  207|      0|  }
  208|       |
  209|       |#if !SHADERC_ENABLE_HLSL
  210|       |  if (source_language_ == SourceLanguage::HLSL) {
  211|       |    std::string err =
  212|       |        "Shaderc was built without HLSL support. See "
  213|       |        "https://github.com/KhronosGroup/glslang/issues/4210";
  214|       |    *error_stream << err << '\n';
  215|       |    succeeded = false;
  216|       |    compilation_output_data = ConvertStringToVector(err);
  217|       |    compilation_output_data_size_in_bytes = err.size();
  218|       |    return result_tuple;
  219|       |  }
  220|       |#endif
  221|       |
  222|  4.26k|  EShLanguage used_shader_stage = forced_shader_stage;
  223|  4.26k|  const std::string macro_definitions =
  224|  4.26k|      shaderc_util::format(predefined_macros_, "#define ", " ", "\n");
  225|  4.26k|  const std::string pound_extension =
  226|  4.26k|      "#extension GL_GOOGLE_include_directive : enable\n";
  227|  4.26k|  const std::string preamble = macro_definitions + pound_extension;
  228|       |
  229|  4.26k|  std::string preprocessed_shader;
  230|       |
  231|       |  // If only preprocessing, we definitely need to preprocess. Otherwise, if
  232|       |  // we don't know the stage until now, we need the preprocessed shader to
  233|       |  // deduce the shader stage.
  234|  4.26k|  if (output_type == OutputType::PreprocessedText ||
  ------------------
  |  Branch (234:7): [True: 2.84k, False: 1.42k]
  ------------------
  235|  2.84k|      used_shader_stage == EShLangCount) {
  ------------------
  |  Branch (235:7): [True: 0, False: 1.42k]
  ------------------
  236|  2.84k|    bool success;
  237|  2.84k|    std::string glslang_errors;
  238|  2.84k|    std::tie(success, preprocessed_shader, glslang_errors) =
  239|  2.84k|        PreprocessShader(error_tag, input_source_string, preamble, includer);
  240|       |
  241|  2.84k|    success &= PrintFilteredErrors(error_tag, error_stream, warnings_as_errors_,
  242|  2.84k|                                   /* suppress_warnings = */ true,
  243|  2.84k|                                   glslang_errors.c_str(), total_warnings,
  244|  2.84k|                                   total_errors);
  245|  2.84k|    if (!success) return result_tuple;
  ------------------
  |  Branch (245:9): [True: 1.80k, False: 1.03k]
  ------------------
  246|       |    // Because of the behavior change of the #line directive, the #line
  247|       |    // directive introducing each file's content must use the syntax for the
  248|       |    // specified version. So we need to probe this shader's version and
  249|       |    // profile.
  250|  1.03k|    int version;
  251|  1.03k|    EProfile profile;
  252|  1.03k|    std::tie(version, profile) = DeduceVersionProfile(preprocessed_shader);
  253|  1.03k|    const bool is_for_next_line = LineDirectiveIsForNextLine(version, profile);
  254|       |
  255|  1.03k|    preprocessed_shader =
  256|  1.03k|        CleanupPreamble(preprocessed_shader, error_tag, pound_extension,
  257|  1.03k|                        includer.num_include_directives(), is_for_next_line);
  258|       |
  259|  1.03k|    if (output_type == OutputType::PreprocessedText) {
  ------------------
  |  Branch (259:9): [True: 1.03k, False: 0]
  ------------------
  260|       |      // Set the values of the result tuple.
  261|  1.03k|      succeeded = true;
  262|  1.03k|      compilation_output_data = ConvertStringToVector(preprocessed_shader);
  263|  1.03k|      compilation_output_data_size_in_bytes = preprocessed_shader.size();
  264|  1.03k|      return result_tuple;
  265|  1.03k|    } else if (used_shader_stage == EShLangCount) {
  ------------------
  |  Branch (265:16): [True: 0, False: 0]
  ------------------
  266|      0|      std::string errors;
  267|      0|      std::tie(used_shader_stage, errors) =
  268|      0|          GetShaderStageFromSourceCode(error_tag, preprocessed_shader);
  269|      0|      if (!errors.empty()) {
  ------------------
  |  Branch (269:11): [True: 0, False: 0]
  ------------------
  270|      0|        *error_stream << errors;
  271|      0|        return result_tuple;
  272|      0|      }
  273|      0|      if (used_shader_stage == EShLangCount) {
  ------------------
  |  Branch (273:11): [True: 0, False: 0]
  ------------------
  274|      0|        if ((used_shader_stage = stage_callback(error_stream, error_tag)) ==
  ------------------
  |  Branch (274:13): [True: 0, False: 0]
  ------------------
  275|      0|            EShLangCount) {
  276|      0|          return result_tuple;
  277|      0|        }
  278|      0|      }
  279|      0|    }
  280|  1.03k|  }
  281|       |
  282|       |  // Parsing requires its own Glslang symbol tables.
  283|  1.42k|  glslang::TShader shader(used_shader_stage);
  284|  1.42k|  const char* shader_strings = input_source_string.data();
  285|  1.42k|  const int shader_lengths = static_cast<int>(input_source_string.size());
  286|  1.42k|  const char* string_names = error_tag.c_str();
  287|  1.42k|  shader.setStringsWithLengthsAndNames(&shader_strings, &shader_lengths,
  288|  1.42k|                                       &string_names, 1);
  289|  1.42k|  shader.setPreamble(preamble.c_str());
  290|  1.42k|  shader.setEntryPoint(entry_point_name);
  291|  1.42k|  shader.setAutoMapBindings(auto_bind_uniforms_);
  292|  1.42k|  if (auto_combined_image_sampler_) {
  ------------------
  |  Branch (292:7): [True: 0, False: 1.42k]
  ------------------
  293|      0|    shader.setTextureSamplerTransformMode(
  294|      0|        EShTexSampTransUpgradeTextureRemoveSampler);
  295|      0|  }
  296|  1.42k|  shader.setAutoMapLocations(auto_map_locations_);
  297|  1.42k|  const auto& bases = auto_binding_base_[static_cast<int>(used_shader_stage)];
  298|  1.42k|  shader.setShiftImageBinding(bases[static_cast<int>(UniformKind::Image)]);
  299|  1.42k|  shader.setShiftSamplerBinding(bases[static_cast<int>(UniformKind::Sampler)]);
  300|  1.42k|  shader.setShiftTextureBinding(bases[static_cast<int>(UniformKind::Texture)]);
  301|  1.42k|  shader.setShiftUboBinding(bases[static_cast<int>(UniformKind::Buffer)]);
  302|  1.42k|  shader.setShiftSsboBinding(
  303|  1.42k|      bases[static_cast<int>(UniformKind::StorageBuffer)]);
  304|  1.42k|  shader.setShiftUavBinding(
  305|  1.42k|      bases[static_cast<int>(UniformKind::UnorderedAccessView)]);
  306|  1.42k|#if SHADERC_ENABLE_HLSL
  307|  1.42k|  shader.setHlslIoMapping(hlsl_iomap_);
  308|  1.42k|#endif
  309|  1.42k|  shader.setResourceSetBinding(
  310|  1.42k|      hlsl_explicit_bindings_[static_cast<int>(used_shader_stage)]);
  311|  1.42k|  shader.setEnvClient(target_client_info.client,
  312|  1.42k|                      target_client_info.client_version);
  313|  1.42k|  shader.setEnvTarget(target_client_info.target_language,
  314|  1.42k|                      target_client_info.target_language_version);
  315|  1.42k|#if SHADERC_ENABLE_HLSL
  316|  1.42k|  if (hlsl_functionality1_enabled_) {
  ------------------
  |  Branch (316:7): [True: 0, False: 1.42k]
  ------------------
  317|      0|    shader.setEnvTargetHlslFunctionality1();
  318|      0|  }
  319|  1.42k|#endif
  320|  1.42k|  if (vulkan_rules_relaxed_) {
  ------------------
  |  Branch (320:7): [True: 0, False: 1.42k]
  ------------------
  321|      0|    glslang::EShSource language = glslang::EShSourceNone;
  322|      0|    switch (source_language_) {
  ------------------
  |  Branch (322:13): [True: 0, False: 0]
  ------------------
  323|      0|      case SourceLanguage::GLSL:
  ------------------
  |  Branch (323:7): [True: 0, False: 0]
  ------------------
  324|      0|        language = glslang::EShSourceGlsl;
  325|      0|        break;
  326|      0|      case SourceLanguage::HLSL:
  ------------------
  |  Branch (326:7): [True: 0, False: 0]
  ------------------
  327|      0|        language = glslang::EShSourceHlsl;
  328|      0|        break;
  329|      0|    }
  330|       |    // This option will only be used if the Vulkan client is used.
  331|       |    // If new versions of GL_KHR_vulkan_glsl come out, it would make sense to
  332|       |    // let callers specify which version to use. For now, just use 100.
  333|      0|    shader.setEnvInput(language, used_shader_stage, glslang::EShClientVulkan,
  334|      0|                       100);
  335|      0|    shader.setEnvInputVulkanRulesRelaxed();
  336|      0|  }
  337|  1.42k|  shader.setInvertY(invert_y_enabled_);
  338|  1.42k|  shader.setNanMinMaxClamp(nan_clamp_);
  339|       |
  340|  1.42k|  const EShMessages rules =
  341|  1.42k|      GetMessageRules(target_env_, source_language_, hlsl_offsets_,
  342|  1.42k|                      hlsl_16bit_types_enabled_, generate_debug_info_);
  343|       |
  344|  1.42k|  bool success = shader.parse(&limits_, default_version_, default_profile_,
  345|  1.42k|                              force_version_profile_, kNotForwardCompatible,
  346|  1.42k|                              rules, includer);
  347|       |
  348|  1.42k|  success &= PrintFilteredErrors(error_tag, error_stream, warnings_as_errors_,
  349|  1.42k|                                 suppress_warnings_, shader.getInfoLog(),
  350|  1.42k|                                 total_warnings, total_errors);
  351|  1.42k|  if (!success) return result_tuple;
  ------------------
  |  Branch (351:7): [True: 1.37k, False: 43]
  ------------------
  352|       |
  353|     43|  glslang::TProgram program;
  354|     43|  program.addShader(&shader);
  355|     43|  success = program.link(EShMsgDefault) && program.mapIO();
  ------------------
  |  Branch (355:13): [True: 42, False: 1]
  |  Branch (355:44): [True: 42, False: 0]
  ------------------
  356|     43|  success &= PrintFilteredErrors(error_tag, error_stream, warnings_as_errors_,
  357|     43|                                 suppress_warnings_, program.getInfoLog(),
  358|     43|                                 total_warnings, total_errors);
  359|     43|  if (!success) return result_tuple;
  ------------------
  |  Branch (359:7): [True: 1, False: 42]
  ------------------
  360|       |
  361|       |  // 'spirv' is an alias for the compilation_output_data. This alias is added
  362|       |  // to serve as an input for the call to DissassemblyBinary.
  363|     42|  std::vector<uint32_t>& spirv = compilation_output_data;
  364|     42|  glslang::SpvOptions options;
  365|     42|  options.generateDebugInfo = generate_debug_info_;
  366|     42|  options.emitNonSemanticShaderDebugInfo = generate_nonsemantic_debug_info_;
  367|     42|  options.emitNonSemanticShaderDebugSource = generate_nonsemantic_debug_source_;
  368|     42|  options.disableOptimizer = true;
  369|     42|  options.optimizeSize = false;
  370|       |  // Note the call to GlslangToSpv also populates compilation_output_data.
  371|     42|  glslang::GlslangToSpv(*program.getIntermediate(used_shader_stage), spirv,
  372|     42|                        &options);
  373|       |
  374|       |  // Set the tool field (the top 16-bits) in the generator word to
  375|       |  // 'Shaderc over Glslang'.
  376|     42|  const uint32_t shaderc_generator_word = 13;  // From SPIR-V XML Registry
  377|     42|  const uint32_t generator_word_index = 2;     // SPIR-V 2.3: Physical layout
  378|     42|  assert(spirv.size() > generator_word_index);
  379|     42|  spirv[generator_word_index] =
  380|     42|      (spirv[generator_word_index] & 0xffff) | (shaderc_generator_word << 16);
  381|       |
  382|     42|  std::vector<PassId> opt_passes;
  383|       |
  384|     42|  if (hlsl_legalization_enabled_ && source_language_ == SourceLanguage::HLSL) {
  ------------------
  |  Branch (384:7): [True: 42, False: 0]
  |  Branch (384:37): [True: 0, False: 42]
  ------------------
  385|       |    // If from HLSL, run this passes to "legalize" the SPIR-V for Vulkan
  386|       |    // eg. forward and remove memory writes of opaque types.
  387|      0|    opt_passes.push_back(PassId::kLegalizationPasses);
  388|      0|  }
  389|       |
  390|     42|  opt_passes.insert(opt_passes.end(), enabled_opt_passes_.begin(),
  391|     42|                    enabled_opt_passes_.end());
  392|       |
  393|     42|  if (!opt_passes.empty()) {
  ------------------
  |  Branch (393:7): [True: 0, False: 42]
  ------------------
  394|      0|    spvtools::OptimizerOptions opt_options;
  395|      0|    opt_options.set_preserve_bindings(preserve_bindings_);
  396|      0|    opt_options.set_max_id_bound(max_id_bound_);
  397|       |
  398|      0|    std::string opt_errors;
  399|      0|    if (!SpirvToolsOptimize(target_env_, target_env_version_, opt_passes,
  ------------------
  |  Branch (399:9): [True: 0, False: 0]
  ------------------
  400|      0|                            opt_options, &spirv, &opt_errors)) {
  401|      0|      *error_stream << "shaderc: internal error: compilation succeeded but "
  402|      0|                       "failed to optimize: "
  403|      0|                    << opt_errors << "\n";
  404|      0|      return result_tuple;
  405|      0|    }
  406|      0|  }
  407|       |
  408|     42|  if (output_type == OutputType::SpirvAssemblyText) {
  ------------------
  |  Branch (408:7): [True: 0, False: 42]
  ------------------
  409|      0|    std::string text_or_error;
  410|      0|    if (!SpirvToolsDisassemble(target_env_, target_env_version_, spirv,
  ------------------
  |  Branch (410:9): [True: 0, False: 0]
  ------------------
  411|      0|                               &text_or_error)) {
  412|      0|      *error_stream << "shaderc: internal error: compilation succeeded but "
  413|      0|                       "failed to disassemble: "
  414|      0|                    << text_or_error << "\n";
  415|      0|      return result_tuple;
  416|      0|    }
  417|      0|    succeeded = true;
  418|      0|    compilation_output_data = ConvertStringToVector(text_or_error);
  419|      0|    compilation_output_data_size_in_bytes = text_or_error.size();
  420|      0|    return result_tuple;
  421|     42|  } else {
  422|     42|    succeeded = true;
  423|       |    // Note compilation_output_data is already populated in GlslangToSpv().
  424|     42|    compilation_output_data_size_in_bytes = spirv.size() * sizeof(spirv[0]);
  425|     42|    return result_tuple;
  426|     42|  }
  427|     42|}
_ZN12shaderc_util8Compiler17SetSourceLanguageENS0_14SourceLanguageE:
  447|  4.26k|void Compiler::SetSourceLanguage(Compiler::SourceLanguage lang) {
  448|  4.26k|  source_language_ = lang;
  449|  4.26k|}
_ZN12shaderc_util8Compiler19SetSuppressWarningsEv:
  525|  1.42k|void Compiler::SetSuppressWarnings() { suppress_warnings_ = true; }
_ZNK12shaderc_util8Compiler16PreprocessShaderERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_12string_pieceESC_RNS_16CountingIncluderE:
  529|  2.84k|    const string_piece& shader_preamble, CountingIncluder& includer) const {
  530|       |  // The stage does not matter for preprocessing.
  531|  2.84k|  glslang::TShader shader(EShLangVertex);
  532|  2.84k|  const char* shader_strings = shader_source.data();
  533|  2.84k|  const int shader_lengths = static_cast<int>(shader_source.size());
  534|  2.84k|  const char* string_names = error_tag.c_str();
  535|  2.84k|  shader.setStringsWithLengthsAndNames(&shader_strings, &shader_lengths,
  536|  2.84k|                                       &string_names, 1);
  537|  2.84k|  shader.setPreamble(shader_preamble.data());
  538|  2.84k|  auto target_client_info = GetGlslangClientInfo(
  539|  2.84k|      error_tag, target_env_, target_env_version_, target_spirv_version_,
  540|  2.84k|      target_spirv_version_is_forced_);
  541|  2.84k|  if (!target_client_info.error.empty()) {
  ------------------
  |  Branch (541:7): [True: 0, False: 2.84k]
  ------------------
  542|      0|    return std::make_tuple(false, "", target_client_info.error);
  543|      0|  }
  544|  2.84k|  shader.setEnvClient(target_client_info.client,
  545|  2.84k|                      target_client_info.client_version);
  546|  2.84k|#if SHADERC_ENABLE_HLSL
  547|  2.84k|  if (hlsl_functionality1_enabled_) {
  ------------------
  |  Branch (547:7): [True: 0, False: 2.84k]
  ------------------
  548|      0|    shader.setEnvTargetHlslFunctionality1();
  549|      0|  }
  550|  2.84k|#endif
  551|  2.84k|  shader.setInvertY(invert_y_enabled_);
  552|  2.84k|  shader.setNanMinMaxClamp(nan_clamp_);
  553|       |
  554|       |  // The preprocessor might be sensitive to the target environment.
  555|       |  // So combine the existing rules with the just-give-me-preprocessor-output
  556|       |  // flag.
  557|  2.84k|  const auto rules = static_cast<EShMessages>(
  558|  2.84k|      EShMsgOnlyPreprocessor |
  559|  2.84k|      GetMessageRules(target_env_, source_language_, hlsl_offsets_,
  560|  2.84k|                      hlsl_16bit_types_enabled_, false));
  561|       |
  562|  2.84k|  std::string preprocessed_shader;
  563|  2.84k|  const bool success = shader.preprocess(
  564|  2.84k|      &limits_, default_version_, default_profile_, force_version_profile_,
  565|  2.84k|      kNotForwardCompatible, rules, &preprocessed_shader, includer);
  566|       |
  567|  2.84k|  if (success) {
  ------------------
  |  Branch (567:7): [True: 1.07k, False: 1.76k]
  ------------------
  568|  1.07k|    return std::make_tuple(true, preprocessed_shader, shader.getInfoLog());
  569|  1.07k|  }
  570|  1.76k|  return std::make_tuple(false, "", shader.getInfoLog());
  571|  2.84k|}
_ZNK12shaderc_util8Compiler15CleanupPreambleERKNS_12string_pieceES3_S3_ib:
  577|  1.03k|                                      bool is_for_next_line) const {
  578|       |  // Those #define directives in preamble will become empty lines after
  579|       |  // preprocessing. We also injected an #extension directive to turn on #include
  580|       |  // directive support. In the original preprocessing output from glslang, it
  581|       |  // appears before the user source string. We need to do proper adjustment:
  582|       |  // * Remove empty lines generated from #define directives in preamble.
  583|       |  // * If there is no #include directive in the source code, we do not need to
  584|       |  //   output the injected #extension directive. Otherwise,
  585|       |  // * If there exists a #version directive in the source code, it should be
  586|       |  //   placed at the first line. Its original line will be filled with an empty
  587|       |  //   line as placeholder to maintain the code structure.
  588|       |
  589|  1.03k|  const std::vector<string_piece> lines =
  590|  1.03k|      preprocessed_shader.get_fields('\n', /* keep_delimiter = */ true);
  591|       |
  592|  1.03k|  std::ostringstream output_stream;
  593|       |
  594|  1.03k|  size_t pound_extension_index = lines.size();
  595|  1.03k|  size_t pound_version_index = lines.size();
  596|  3.54k|  for (size_t i = 0; i < lines.size(); ++i) {
  ------------------
  |  Branch (596:22): [True: 3.54k, False: 0]
  ------------------
  597|  3.54k|    if (lines[i] == pound_extension) {
  ------------------
  |  Branch (597:9): [True: 1.03k, False: 2.50k]
  ------------------
  598|  1.03k|      pound_extension_index = std::min(i, pound_extension_index);
  599|  2.50k|    } else if (lines[i].starts_with("#version")) {
  ------------------
  |  Branch (599:16): [True: 1.03k, False: 1.46k]
  ------------------
  600|       |      // In a preprocessed shader, directives are in a canonical format, so we
  601|       |      // can confidently compare to '#version' verbatim, without worrying about
  602|       |      // whitespace.
  603|  1.03k|      pound_version_index = i;
  604|  1.03k|      if (num_include_directives > 0) output_stream << lines[i];
  ------------------
  |  Branch (604:11): [True: 0, False: 1.03k]
  ------------------
  605|  1.03k|      break;
  606|  1.03k|    }
  607|  3.54k|  }
  608|       |  // We know that #extension directive exists and appears before #version
  609|       |  // directive (if any).
  610|  1.03k|  assert(pound_extension_index < lines.size());
  611|       |
  612|  1.03k|  for (size_t i = 0; i < pound_extension_index; ++i) {
  ------------------
  |  Branch (612:22): [True: 0, False: 1.03k]
  ------------------
  613|       |    // All empty lines before the #line directive we injected are generated by
  614|       |    // preprocessing preamble. Do not output them.
  615|      0|    if (lines[i].strip_whitespace().empty()) continue;
  ------------------
  |  Branch (615:9): [True: 0, False: 0]
  ------------------
  616|      0|    output_stream << lines[i];
  617|      0|  }
  618|       |
  619|  1.03k|  if (num_include_directives > 0) {
  ------------------
  |  Branch (619:7): [True: 0, False: 1.03k]
  ------------------
  620|      0|    output_stream << pound_extension;
  621|       |    // Also output a #line directive for the main file.
  622|      0|    output_stream << GetLineDirective(is_for_next_line, error_tag);
  623|      0|  }
  624|       |
  625|   447k|  for (size_t i = pound_extension_index + 1; i < lines.size(); ++i) {
  ------------------
  |  Branch (625:46): [True: 446k, False: 1.03k]
  ------------------
  626|   446k|    if (i == pound_version_index) {
  ------------------
  |  Branch (626:9): [True: 1.03k, False: 445k]
  ------------------
  627|  1.03k|      if (num_include_directives > 0) {
  ------------------
  |  Branch (627:11): [True: 0, False: 1.03k]
  ------------------
  628|      0|        output_stream << "\n";
  629|  1.03k|      } else {
  630|  1.03k|        output_stream << lines[i];
  631|  1.03k|      }
  632|   445k|    } else {
  633|   445k|      output_stream << lines[i];
  634|   445k|    }
  635|   446k|  }
  636|       |
  637|  1.03k|  return output_stream.str();
  638|  1.03k|}
_ZNK12shaderc_util8Compiler20DeduceVersionProfileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  736|  1.03k|    const std::string& preprocessed_shader) const {
  737|  1.03k|  int version = default_version_;
  738|  1.03k|  EProfile profile = default_profile_;
  739|  1.03k|  if (!force_version_profile_) {
  ------------------
  |  Branch (739:7): [True: 1.03k, False: 0]
  ------------------
  740|  1.03k|    std::tie(version, profile) =
  741|  1.03k|        GetVersionProfileFromSourceCode(preprocessed_shader);
  742|  1.03k|    if (version == 0 && profile == ENoProfile) {
  ------------------
  |  Branch (742:9): [True: 0, False: 1.03k]
  |  Branch (742:25): [True: 0, False: 0]
  ------------------
  743|      0|      version = default_version_;
  744|      0|      profile = default_profile_;
  745|      0|    }
  746|  1.03k|  }
  747|  1.03k|  return std::make_pair(version, profile);
  748|  1.03k|}
_ZNK12shaderc_util8Compiler31GetVersionProfileFromSourceCodeERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  751|  1.03k|    const std::string& preprocessed_shader) const {
  752|  1.03k|  string_piece pound_version = preprocessed_shader;
  753|  1.03k|  const size_t pound_version_loc = pound_version.find("#version");
  754|  1.03k|  if (pound_version_loc == string_piece::npos) {
  ------------------
  |  Branch (754:7): [True: 0, False: 1.03k]
  ------------------
  755|      0|    return std::make_pair(0, ENoProfile);
  756|      0|  }
  757|  1.03k|  pound_version =
  758|  1.03k|      pound_version.substr(pound_version_loc + std::strlen("#version"));
  759|  1.03k|  pound_version = pound_version.substr(0, pound_version.find_first_of("\n"));
  760|       |
  761|  1.03k|  std::string version_profile;
  762|  5.29k|  for (const auto character : pound_version) {
  ------------------
  |  Branch (762:29): [True: 5.29k, False: 1.03k]
  ------------------
  763|  5.29k|    if (character != ' ') version_profile += character;
  ------------------
  |  Branch (763:9): [True: 4.00k, False: 1.28k]
  ------------------
  764|  5.29k|  }
  765|       |
  766|  1.03k|  int version;
  767|  1.03k|  EProfile profile;
  768|  1.03k|  if (!ParseVersionProfile(version_profile, &version, &profile)) {
  ------------------
  |  Branch (768:7): [True: 0, False: 1.03k]
  ------------------
  769|      0|    return std::make_pair(0, ENoProfile);
  770|      0|  }
  771|  1.03k|  return std::make_pair(version, profile);
  772|  1.03k|}
_ZN12shaderc_util21ConvertStringToVectorERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  777|  1.03k|std::vector<uint32_t> ConvertStringToVector(const std::string& str) {
  778|  1.03k|  size_t num_bytes_str = str.size() + 1u;
  779|  1.03k|  size_t vector_length =
  780|  1.03k|      (num_bytes_str + sizeof(uint32_t) - 1) / sizeof(uint32_t);
  781|  1.03k|  std::vector<uint32_t> result_vec(vector_length, 0);
  782|  1.03k|  std::strncpy(reinterpret_cast<char*>(result_vec.data()), str.c_str(),
  783|  1.03k|               str.size());
  784|  1.03k|  return result_vec;
  785|  1.03k|}
_ZN12shaderc_util20GetGlslangClientInfoERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS_8Compiler9TargetEnvENS9_16TargetEnvVersionENS9_12SpirvVersionEb:
  791|  7.10k|    bool spv_version_is_forced) {
  792|  7.10k|  GlslangClientInfo result;
  793|  7.10k|  std::ostringstream errs;
  794|       |
  795|  7.10k|  using shaderc_util::Compiler;
  796|  7.10k|  switch (env) {
  797|  7.10k|    case Compiler::TargetEnv::Vulkan:
  ------------------
  |  Branch (797:5): [True: 7.10k, False: 0]
  ------------------
  798|  7.10k|      result.client = glslang::EShClientVulkan;
  799|  7.10k|      if (env_version == Compiler::TargetEnvVersion::Default ||
  ------------------
  |  Branch (799:11): [True: 7.10k, False: 0]
  ------------------
  800|  7.10k|          env_version == Compiler::TargetEnvVersion::Vulkan_1_0) {
  ------------------
  |  Branch (800:11): [True: 0, False: 0]
  ------------------
  801|  7.10k|        result.client_version = glslang::EShTargetVulkan_1_0;
  802|  7.10k|      } else if (env_version == Compiler::TargetEnvVersion::Vulkan_1_1) {
  ------------------
  |  Branch (802:18): [True: 0, False: 0]
  ------------------
  803|      0|        result.client_version = glslang::EShTargetVulkan_1_1;
  804|      0|        result.target_language_version = glslang::EShTargetSpv_1_3;
  805|      0|      } else if (env_version == Compiler::TargetEnvVersion::Vulkan_1_2) {
  ------------------
  |  Branch (805:18): [True: 0, False: 0]
  ------------------
  806|      0|        result.client_version = glslang::EShTargetVulkan_1_2;
  807|      0|        result.target_language_version = glslang::EShTargetSpv_1_5;
  808|      0|      } else if (env_version == Compiler::TargetEnvVersion::Vulkan_1_3) {
  ------------------
  |  Branch (808:18): [True: 0, False: 0]
  ------------------
  809|      0|        result.client_version = glslang::EShTargetVulkan_1_3;
  810|      0|        result.target_language_version = glslang::EShTargetSpv_1_6;
  811|      0|      } else if (env_version == Compiler::TargetEnvVersion::Vulkan_1_4) {
  ------------------
  |  Branch (811:18): [True: 0, False: 0]
  ------------------
  812|      0|        result.client_version = glslang::EShTargetVulkan_1_4;
  813|      0|        result.target_language_version = glslang::EShTargetSpv_1_6;
  814|      0|      } else {
  815|      0|        errs << "error:" << error_tag << ": Invalid target client version "
  816|      0|             << static_cast<uint32_t>(env_version) << " for Vulkan environment "
  817|      0|             << int(env);
  818|      0|      }
  819|  7.10k|      break;
  820|      0|    case Compiler::TargetEnv::OpenGLCompat:
  ------------------
  |  Branch (820:5): [True: 0, False: 7.10k]
  ------------------
  821|      0|      errs << "error: OpenGL compatibility profile is not supported";
  822|      0|      break;
  823|      0|    case Compiler::TargetEnv::OpenGL:
  ------------------
  |  Branch (823:5): [True: 0, False: 7.10k]
  ------------------
  824|      0|      result.client = glslang::EShClientOpenGL;
  825|      0|      if (env_version == Compiler::TargetEnvVersion::Default ||
  ------------------
  |  Branch (825:11): [True: 0, False: 0]
  ------------------
  826|      0|          env_version == Compiler::TargetEnvVersion::OpenGL_4_5) {
  ------------------
  |  Branch (826:11): [True: 0, False: 0]
  ------------------
  827|      0|        result.client_version = glslang::EShTargetOpenGL_450;
  828|      0|      } else {
  829|      0|        errs << "error:" << error_tag << ": Invalid target client version "
  830|      0|             << static_cast<uint32_t>(env_version) << " for OpenGL environment "
  831|      0|             << int(env);
  832|      0|      }
  833|      0|      break;
  834|      0|    default:
  ------------------
  |  Branch (834:5): [True: 0, False: 7.10k]
  ------------------
  835|      0|      errs << "error:" << error_tag << ": Invalid target client environment "
  836|      0|           << int(env);
  837|      0|      break;
  838|  7.10k|  }
  839|       |
  840|  7.10k|  if (spv_version_is_forced && errs.str().empty()) {
  ------------------
  |  Branch (840:7): [True: 0, False: 7.10k]
  |  Branch (840:7): [True: 0, False: 7.10k]
  |  Branch (840:32): [True: 0, False: 0]
  ------------------
  841|      0|    switch (spv_version) {
  842|      0|      case Compiler::SpirvVersion::v1_0:
  ------------------
  |  Branch (842:7): [True: 0, False: 0]
  ------------------
  843|      0|        result.target_language_version = glslang::EShTargetSpv_1_0;
  844|      0|        break;
  845|      0|      case Compiler::SpirvVersion::v1_1:
  ------------------
  |  Branch (845:7): [True: 0, False: 0]
  ------------------
  846|      0|        result.target_language_version = glslang::EShTargetSpv_1_1;
  847|      0|        break;
  848|      0|      case Compiler::SpirvVersion::v1_2:
  ------------------
  |  Branch (848:7): [True: 0, False: 0]
  ------------------
  849|      0|        result.target_language_version = glslang::EShTargetSpv_1_2;
  850|      0|        break;
  851|      0|      case Compiler::SpirvVersion::v1_3:
  ------------------
  |  Branch (851:7): [True: 0, False: 0]
  ------------------
  852|      0|        result.target_language_version = glslang::EShTargetSpv_1_3;
  853|      0|        break;
  854|      0|      case Compiler::SpirvVersion::v1_4:
  ------------------
  |  Branch (854:7): [True: 0, False: 0]
  ------------------
  855|      0|        result.target_language_version = glslang::EShTargetSpv_1_4;
  856|      0|        break;
  857|      0|      case Compiler::SpirvVersion::v1_5:
  ------------------
  |  Branch (857:7): [True: 0, False: 0]
  ------------------
  858|      0|        result.target_language_version = glslang::EShTargetSpv_1_5;
  859|      0|        break;
  860|      0|      case Compiler::SpirvVersion::v1_6:
  ------------------
  |  Branch (860:7): [True: 0, False: 0]
  ------------------
  861|      0|        result.target_language_version = glslang::EShTargetSpv_1_6;
  862|      0|        break;
  863|      0|      default:
  ------------------
  |  Branch (863:7): [True: 0, False: 0]
  ------------------
  864|      0|        errs << "error:" << error_tag << ": Unknown SPIR-V version " << std::hex
  865|      0|             << uint32_t(spv_version);
  866|      0|        break;
  867|      0|    }
  868|      0|  }
  869|  7.10k|  result.error = errs.str();
  870|  7.10k|  return result;
  871|  7.10k|}
compiler.cc:_ZN12_GLOBAL__N_115GetGlslangMutexEv:
  115|  2.84k|std::mutex& GetGlslangMutex() {
  116|  2.84k|  static std::mutex glslang_mutex;
  117|  2.84k|  return glslang_mutex;
  118|  2.84k|}
compiler.cc:_ZN12_GLOBAL__N_126LineDirectiveIsForNextLineEi8EProfile:
   47|  1.03k|inline bool LineDirectiveIsForNextLine(int version, EProfile profile) {
   48|  1.03k|  return profile == EEsProfile || version >= 330;
  ------------------
  |  Branch (48:10): [True: 52, False: 984]
  |  Branch (48:35): [True: 688, False: 296]
  ------------------
   49|  1.03k|}
compiler.cc:_ZN12_GLOBAL__N_115GetMessageRulesEN12shaderc_util8Compiler9TargetEnvENS1_14SourceLanguageEbbb:
   82|  4.26k|                            bool debug_info) {
   83|  4.26k|  using shaderc_util::Compiler;
   84|  4.26k|  EShMessages result = EShMsgCascadingErrors;
   85|  4.26k|  if (lang == Compiler::SourceLanguage::HLSL) {
  ------------------
  |  Branch (85:7): [True: 0, False: 4.26k]
  ------------------
   86|      0|    result = static_cast<EShMessages>(result | EShMsgReadHlsl);
   87|      0|  }
   88|  4.26k|  switch (env) {
  ------------------
  |  Branch (88:11): [True: 4.26k, False: 0]
  ------------------
   89|      0|    case Compiler::TargetEnv::OpenGLCompat:
  ------------------
  |  Branch (89:5): [True: 0, False: 4.26k]
  ------------------
   90|       |      // The compiler will have already errored out before now.
   91|       |      // But we need to handle this enum.
   92|      0|      break;
   93|      0|    case Compiler::TargetEnv::OpenGL:
  ------------------
  |  Branch (93:5): [True: 0, False: 4.26k]
  ------------------
   94|      0|      result = static_cast<EShMessages>(result | EShMsgSpvRules);
   95|      0|      break;
   96|  4.26k|    case Compiler::TargetEnv::Vulkan:
  ------------------
  |  Branch (96:5): [True: 4.26k, False: 0]
  ------------------
   97|  4.26k|      result =
   98|  4.26k|          static_cast<EShMessages>(result | EShMsgSpvRules | EShMsgVulkanRules);
   99|  4.26k|      break;
  100|  4.26k|  }
  101|  4.26k|  if (hlsl_offsets) {
  ------------------
  |  Branch (101:7): [True: 0, False: 4.26k]
  ------------------
  102|      0|    result = static_cast<EShMessages>(result | EShMsgHlslOffsets);
  103|      0|  }
  104|  4.26k|  if (hlsl_16bit_types) {
  ------------------
  |  Branch (104:7): [True: 0, False: 4.26k]
  ------------------
  105|      0|    result = static_cast<EShMessages>(result | EShMsgHlslEnable16BitTypes);
  106|      0|  }
  107|  4.26k|  if (debug_info) {
  ------------------
  |  Branch (107:7): [True: 0, False: 4.26k]
  ------------------
  108|      0|    result = static_cast<EShMessages>(result | EShMsgDebugInfo);
  109|      0|  }
  110|  4.26k|  return result;
  111|  4.26k|}

_ZNK12shaderc_util10FileFinder20FindReadableFilepathERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   34|    347|    const std::string& filename) const {
   35|    347|  assert(!filename.empty());
   36|    347|  static const auto for_reading = std::ios_base::in;
   37|    347|  std::filebuf opener;
   38|    347|  for (const auto& prefix : search_path_) {
  ------------------
  |  Branch (38:27): [True: 347, False: 347]
  ------------------
   39|    347|    const std::string prefixed_filename =
   40|    347|        prefix + MaybeSlash(prefix) + filename;
   41|    347|    if (opener.open(prefixed_filename, for_reading)) return prefixed_filename;
  ------------------
  |  Branch (41:9): [True: 0, False: 347]
  ------------------
   42|    347|  }
   43|    347|  return "";
   44|    347|}
_ZNK12shaderc_util10FileFinder28FindRelativeReadableFilepathERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
   47|    174|    const std::string& requesting_file, const std::string& filename) const {
   48|    174|  assert(!filename.empty());
   49|       |
   50|    174|  string_piece dir_name(requesting_file);
   51|       |
   52|    174|  size_t last_slash = requesting_file.find_last_of("/\\");
   53|    174|  if (last_slash != std::string::npos) {
  ------------------
  |  Branch (53:7): [True: 174, False: 0]
  ------------------
   54|    174|    dir_name = string_piece(requesting_file.c_str(),
   55|    174|                            requesting_file.c_str() + last_slash);
   56|    174|  }
   57|       |
   58|    174|  if (dir_name.size() == requesting_file.size()) {
  ------------------
  |  Branch (58:7): [True: 0, False: 174]
  ------------------
   59|      0|    dir_name.clear();
   60|      0|  }
   61|       |
   62|    174|  static const auto for_reading = std::ios_base::in;
   63|    174|  std::filebuf opener;
   64|    174|  const std::string relative_filename =
   65|    174|      dir_name.str() + MaybeSlash(dir_name) + filename;
   66|    174|  if (opener.open(relative_filename, for_reading)) return relative_filename;
  ------------------
  |  Branch (66:7): [True: 4, False: 170]
  ------------------
   67|       |
   68|    170|  return FindReadableFilepath(filename);
   69|    174|}
file_finder.cc:_ZN12_GLOBAL__N_110MaybeSlashERKN12shaderc_util12string_pieceE:
   25|    521|std::string MaybeSlash(const shaderc_util::string_piece& path) {
   26|    521|  return (path.empty() || path.back() == '/') ? "" : "/";
  ------------------
  |  Branch (26:11): [True: 0, False: 521]
  |  Branch (26:27): [True: 0, False: 521]
  ------------------
   27|    521|}

_ZN12shaderc_util8ReadFileERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPNS0_6vectorIcS5_EE:
   79|  4.26k|              std::vector<char>* input_data) {
   80|  4.26k|  std::istream* stream = &std::cin;
   81|  4.26k|  std::ifstream input_file;
   82|  4.26k|  if (input_file_name != "-") {
  ------------------
  |  Branch (82:7): [True: 4.26k, False: 0]
  ------------------
   83|  4.26k|    input_file.open(input_file_name, std::ios_base::binary);
   84|  4.26k|    stream = &input_file;
   85|  4.26k|    if (input_file.fail()) {
  ------------------
  |  Branch (85:9): [True: 0, False: 4.26k]
  ------------------
   86|      0|      std::cerr << "glslc: error: cannot open input file: '" << input_file_name
   87|      0|                << "'";
   88|      0|      if (access(input_file_name.c_str(), R_OK) != 0) {
  ------------------
  |  Branch (88:11): [True: 0, False: 0]
  ------------------
   89|      0|        OutputFileErrorMessage(errno);
   90|      0|        return false;
   91|      0|      }
   92|      0|      std::cerr << std::endl;
   93|      0|      return false;
   94|      0|    }
   95|  4.26k|  }
   96|  4.26k|  *input_data = std::vector<char>((std::istreambuf_iterator<char>(*stream)),
   97|  4.26k|                                  std::istreambuf_iterator<char>());
   98|  4.26k|  return true;
   99|  4.26k|}
_ZN12shaderc_util15GetOutputStreamERKNS_12string_pieceEPNSt3__114basic_ofstreamIcNS3_11char_traitsIcEEEEPNS3_13basic_ostreamIcS6_EE:
  102|  1.07k|                              std::ofstream* file_stream, std::ostream* err) {
  103|  1.07k|  std::ostream* stream = &std::cout;
  104|  1.07k|  if (output_filename != "-") {
  ------------------
  |  Branch (104:7): [True: 0, False: 1.07k]
  ------------------
  105|      0|    file_stream->open(output_filename.str(), std::ios_base::binary);
  106|      0|    stream = file_stream;
  107|      0|    if (file_stream->fail()) {
  ------------------
  |  Branch (107:9): [True: 0, False: 0]
  ------------------
  108|      0|      *err << "glslc: error: cannot open output file: '" << output_filename
  109|      0|           << "'";
  110|      0|      if (access(output_filename.str().c_str(), W_OK) != 0) {
  ------------------
  |  Branch (110:11): [True: 0, False: 0]
  ------------------
  111|      0|        OutputFileErrorMessage(errno);
  112|      0|        return nullptr;
  113|      0|      }
  114|      0|      std::cerr << std::endl;
  115|      0|      return nullptr;
  116|      0|    }
  117|      0|  }
  118|  1.07k|  return stream;
  119|  1.07k|}

_ZN12shaderc_util18ParseGlslangOutputERKNS_12string_pieceEbbPS0_S3_S3_:
  137|  4.54M|                               string_piece* line_number, string_piece* rest) {
  138|  4.54M|  string_piece rest_of_message(message);
  139|  4.54M|  source_name->clear();
  140|  4.54M|  line_number->clear();
  141|  4.54M|  rest->clear();
  142|       |
  143|       |  // The glslang warning/error messages are typically of the following form:
  144|       |  //   <message-type> <location-specification> <message-body>
  145|       |  //
  146|       |  // <message-type> can be "WARNING:", "ERROR:", or "Warning, ". "WARNING:"
  147|       |  // means a warning message for a certain line, while "Warning, " means a
  148|       |  // global one.
  149|       |  //
  150|       |  // <location-specification> is of the form:
  151|       |  //   <filename-or-string-number>:<line-number>:
  152|       |  // It doesn't exist if the warning/error message is a global one.
  153|       |  //
  154|       |  // See Glslang's TInfoSink class implementation for details.
  155|       |
  156|  4.54M|  bool is_error = false;
  157|       |
  158|       |  // Handle <message-type>.
  159|  4.54M|  switch (DeduceMessageType(&rest_of_message)) {
  160|    594|    case MessageType::Warning:
  ------------------
  |  Branch (160:5): [True: 594, False: 4.53M]
  ------------------
  161|    594|      if (suppress_warnings) return MessageType::Ignored;
  ------------------
  |  Branch (161:11): [True: 594, False: 0]
  ------------------
  162|      0|      break;
  163|  3.87M|    case MessageType::Error:
  ------------------
  |  Branch (163:5): [True: 3.87M, False: 664k]
  ------------------
  164|  3.87M|      is_error = true;
  165|  3.87M|      break;
  166|      0|    case MessageType::GlobalWarning:
  ------------------
  |  Branch (166:5): [True: 0, False: 4.54M]
  ------------------
  167|      0|      if (suppress_warnings) return MessageType::Ignored;
  ------------------
  |  Branch (167:11): [True: 0, False: 0]
  ------------------
  168|      0|      *rest = rest_of_message;
  169|      0|      return warnings_as_errors ? MessageType::GlobalError
  ------------------
  |  Branch (169:14): [True: 0, False: 0]
  ------------------
  170|      0|                                : MessageType::GlobalWarning;
  171|   663k|    case MessageType::Unknown:
  ------------------
  |  Branch (171:5): [True: 663k, False: 3.87M]
  ------------------
  172|   663k|      *rest = rest_of_message;
  173|   663k|      return MessageType::Unknown;
  174|      0|    default:
  ------------------
  |  Branch (174:5): [True: 0, False: 4.54M]
  ------------------
  175|      0|      break;
  176|  4.54M|  }
  177|       |
  178|  3.87M|  rest_of_message = rest_of_message.strip_whitespace();
  179|  3.87M|  if (rest_of_message.empty()) return MessageType::Unknown;
  ------------------
  |  Branch (179:7): [True: 0, False: 3.87M]
  ------------------
  180|       |
  181|       |  // Now we have stripped the <message-type>. Try to see if we can find
  182|       |  // a <location-specification>.
  183|  3.87M|  if (DeduceLocationSpec(&rest_of_message, source_name, line_number)) {
  ------------------
  |  Branch (183:7): [True: 3.87M, False: 5.03k]
  ------------------
  184|  3.87M|    *rest = rest_of_message;
  185|  3.87M|    return (is_error || warnings_as_errors) ? MessageType::Error
  ------------------
  |  Branch (185:13): [True: 3.87M, False: 0]
  |  Branch (185:25): [True: 0, False: 0]
  ------------------
  186|  3.87M|                                            : MessageType::Warning;
  187|  3.87M|  } else {
  188|       |    // No <location-specification>. This is a global warning/error message.
  189|       |    // A special kind of global message is summary message, which should
  190|       |    // start with a number.
  191|  5.03k|    *rest = rest_of_message;
  192|  5.03k|    if (IsSummaryMessage(rest_of_message)) {
  ------------------
  |  Branch (192:9): [True: 3.14k, False: 1.88k]
  ------------------
  193|  3.14k|      return (is_error || warnings_as_errors) ? MessageType::ErrorSummary
  ------------------
  |  Branch (193:15): [True: 3.14k, False: 0]
  |  Branch (193:27): [True: 0, False: 0]
  ------------------
  194|  3.14k|                                              : MessageType::WarningSummary;
  195|  3.14k|    }
  196|  1.88k|    return (is_error || warnings_as_errors) ? MessageType::GlobalError
  ------------------
  |  Branch (196:13): [True: 1.88k, False: 0]
  |  Branch (196:25): [True: 0, False: 0]
  ------------------
  197|  1.88k|                                            : MessageType::GlobalWarning;
  198|  5.03k|  }
  199|      0|  return MessageType::Unknown;
  200|  3.87M|}
_ZN12shaderc_util27SanitizeFilenameForMessagesERKNS_12string_pieceE:
  206|  4.30k|string_piece SanitizeFilenameForMessages(const string_piece& file_name) {
  207|  4.30k|  constexpr size_t kMaxLength = 1024;
  208|  4.30k|  size_t safe_len = file_name.find_first_of('\n');
  209|  4.30k|  if (safe_len == string_piece::npos) {
  ------------------
  |  Branch (209:7): [True: 4.30k, False: 0]
  ------------------
  210|  4.30k|    safe_len = file_name.size();
  211|  4.30k|  }
  212|  4.30k|  safe_len = std::min(safe_len, kMaxLength);
  213|  4.30k|  return file_name.substr(0, safe_len);
  214|  4.30k|}
_ZN12shaderc_util19PrintFilteredErrorsERKNS_12string_pieceEPNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEEbbPKcPmSB_:
  219|  4.30k|                         size_t* total_warnings, size_t* total_errors) {
  220|  4.30k|  const char* ignored_error_strings[] = {
  221|  4.30k|      "Warning, version 310 is not yet complete; most version-specific "
  222|  4.30k|      "features are present, but some are missing.",
  223|  4.30k|      "Warning, version 400 is not yet complete; most version-specific "
  224|  4.30k|      "features are present, but some are missing.",
  225|  4.30k|      "Warning, version 410 is not yet complete; most version-specific "
  226|  4.30k|      "features are present, but some are missing.",
  227|  4.30k|      "Warning, version 420 is not yet complete; most version-specific "
  228|  4.30k|      "features are present, but some are missing.",
  229|  4.30k|      "Warning, version 430 is not yet complete; most version-specific "
  230|  4.30k|      "features are present, but some are missing.",
  231|  4.30k|      "Warning, version 440 is not yet complete; most version-specific "
  232|  4.30k|      "features are present, but some are missing.",
  233|  4.30k|      "Warning, version 450 is not yet complete; most version-specific "
  234|  4.30k|      "features are present, but some are missing.",
  235|  4.30k|      "Linked vertex stage:", "Linked fragment stage:",
  236|  4.30k|      "Linked tessellation control stage:",
  237|  4.30k|      "Linked tessellation evaluation stage:", "Linked geometry stage:",
  238|  4.30k|      "Linked compute stage:", ""};
  239|  4.30k|  size_t existing_total_errors = *total_errors;
  240|       |
  241|       |  // Use a sanitized filename fallback.  The fallback is emitted once per
  242|       |  // '\n'-split fragment of |error_list|, but glslang embeds |file_name|
  243|       |  // verbatim (including any '\n' bytes) into |error_list|. A newline-bearing
  244|       |  // |file_name| of length L therefore yields O(L) fragments each emitting
  245|       |  // O(L) bytes -> O(L^2) output.  Cap the fallback to the first line
  246|       |  // and to a reasonably short length.
  247|  4.30k|  auto safe_file_name = SanitizeFilenameForMessages(file_name);
  248|       |
  249|  4.30k|  string_piece error_messages(error_list);
  250|       |
  251|  4.54M|  for (const string_piece& message : error_messages.get_fields('\n')) {
  ------------------
  |  Branch (251:36): [True: 4.54M, False: 4.30k]
  ------------------
  252|  4.54M|    if (std::find(std::begin(ignored_error_strings),
  ------------------
  |  Branch (252:9): [True: 4.54M, False: 3.20k]
  ------------------
  253|  4.54M|                  std::end(ignored_error_strings),
  254|  4.54M|                  message) == std::end(ignored_error_strings)) {
  255|  4.54M|      string_piece source_name;
  256|  4.54M|      string_piece line_number;
  257|  4.54M|      string_piece rest;
  258|  4.54M|      const MessageType type =
  259|  4.54M|          ParseGlslangOutput(message, warnings_as_errors, suppress_warnings,
  260|  4.54M|                             &source_name, &line_number, &rest);
  261|  4.54M|      string_piece name = safe_file_name;
  262|  4.54M|      if (!source_name.empty()) {
  ------------------
  |  Branch (262:11): [True: 3.87M, False: 669k]
  ------------------
  263|       |        // -1 is the string number for the preamble injected by us.
  264|  3.87M|        name = source_name == "-1" ? "<command line>" : source_name;
  ------------------
  |  Branch (264:16): [True: 0, False: 3.87M]
  ------------------
  265|  3.87M|      }
  266|  4.54M|      switch (type) {
  ------------------
  |  Branch (266:15): [True: 4.54M, False: 0]
  ------------------
  267|  3.87M|        case MessageType::Error:
  ------------------
  |  Branch (267:9): [True: 3.87M, False: 669k]
  ------------------
  268|  3.87M|        case MessageType::Warning:
  ------------------
  |  Branch (268:9): [True: 0, False: 4.54M]
  ------------------
  269|  3.87M|          assert(!name.empty() && !line_number.empty() && !rest.empty());
  270|  3.87M|          *error_stream << name << ":" << line_number << ": "
  271|  3.87M|                        << (type == MessageType::Error ? "error: "
  ------------------
  |  Branch (271:29): [True: 3.87M, False: 0]
  ------------------
  272|  3.87M|                                                       : "warning: ")
  273|  3.87M|                        << rest.strip_whitespace() << std::endl;
  274|  3.87M|          *total_errors += type == MessageType::Error;
  275|  3.87M|          *total_warnings += type == MessageType::Warning;
  276|  3.87M|          break;
  277|  3.14k|        case MessageType::ErrorSummary:
  ------------------
  |  Branch (277:9): [True: 3.14k, False: 4.53M]
  ------------------
  278|  3.14k|        case MessageType::WarningSummary:
  ------------------
  |  Branch (278:9): [True: 0, False: 4.54M]
  ------------------
  279|  3.14k|          break;
  280|  1.88k|        case MessageType::GlobalError:
  ------------------
  |  Branch (280:9): [True: 1.88k, False: 4.53M]
  ------------------
  281|  1.88k|        case MessageType::GlobalWarning:
  ------------------
  |  Branch (281:9): [True: 0, False: 4.54M]
  ------------------
  282|  1.88k|          assert(!rest.empty());
  283|  1.88k|          *total_errors += type == MessageType::GlobalError;
  284|  1.88k|          *total_warnings += type == MessageType::GlobalWarning;
  285|  1.88k|          *error_stream << name << ": "
  286|  1.88k|                        << (type == MessageType::GlobalError ? "error"
  ------------------
  |  Branch (286:29): [True: 1.88k, False: 0]
  ------------------
  287|  1.88k|                                                             : "warning")
  288|  1.88k|                        << ": " << rest.strip_whitespace() << std::endl;
  289|  1.88k|          break;
  290|   663k|        case MessageType::Unknown:
  ------------------
  |  Branch (290:9): [True: 663k, False: 3.87M]
  ------------------
  291|   663k|          *error_stream << name << ":";
  292|   663k|          *error_stream << " " << message << std::endl;
  293|   663k|          break;
  294|    594|        case MessageType::Ignored:
  ------------------
  |  Branch (294:9): [True: 594, False: 4.53M]
  ------------------
  295|    594|          break;
  296|  4.54M|      }
  297|  4.54M|    }
  298|  4.54M|  }
  299|  4.30k|  return (existing_total_errors == *total_errors);
  300|  4.30k|}
message.cc:_ZN12shaderc_util12_GLOBAL__N_117DeduceMessageTypeEPNS_12string_pieceE:
   29|  4.54M|MessageType DeduceMessageType(string_piece* message) {
   30|  4.54M|  static const char kErrorMessage[] = "ERROR: ";
   31|  4.54M|  static const char kWarningMessage[] = "WARNING: ";
   32|  4.54M|  static const char kGlobalWarningMessage[] = "Warning, ";
   33|       |
   34|  4.54M|  if (message->starts_with(kErrorMessage)) {
  ------------------
  |  Branch (34:7): [True: 3.87M, False: 664k]
  ------------------
   35|  3.87M|    *message = message->substr(::strlen(kErrorMessage));
   36|  3.87M|    return MessageType::Error;
   37|  3.87M|  } else if (message->starts_with(kWarningMessage)) {
  ------------------
  |  Branch (37:14): [True: 594, False: 663k]
  ------------------
   38|    594|    *message = message->substr(::strlen(kWarningMessage));
   39|    594|    return MessageType::Warning;
   40|   663k|  } else if (message->starts_with(kGlobalWarningMessage)) {
  ------------------
  |  Branch (40:14): [True: 0, False: 663k]
  ------------------
   41|      0|    *message = message->substr(::strlen(kGlobalWarningMessage));
   42|      0|    return MessageType::GlobalWarning;
   43|      0|  }
   44|   663k|  return MessageType::Unknown;
   45|  4.54M|}
message.cc:_ZN12shaderc_util12_GLOBAL__N_118DeduceLocationSpecEPNS_12string_pieceES2_S2_:
   54|  3.87M|                        string_piece* line_number) {
   55|  3.87M|  if (!message || message->empty()) {
  ------------------
  |  Branch (55:7): [True: 0, False: 3.87M]
  |  Branch (55:19): [True: 0, False: 3.87M]
  ------------------
   56|      0|    return false;
   57|      0|  }
   58|       |
   59|       |  // When we find a pattern like this:
   60|       |  //     colon
   61|       |  //     digits
   62|       |  //     colon
   63|       |  //     space
   64|       |  // Then deduce that the source_name is the text before the first colon,
   65|       |  // the line number is the digits, and the message is the text after the
   66|       |  // second colon.
   67|       |
   68|  3.87M|  const size_t size = message->size();
   69|  3.87M|  if (size <= 4) {
  ------------------
  |  Branch (69:7): [True: 0, False: 3.87M]
  ------------------
   70|       |    // A valid message must have a colon, a digit, a colon, and a space.
   71|      0|    return false;
   72|      0|  }
   73|       |  // The last possible position of the first colon.
   74|  3.87M|  const size_t first_colon_cutoff = size - 4;
   75|       |  // The last possible position of the second colon.
   76|  3.87M|  const size_t next_colon_cutoff = size - 2;
   77|       |
   78|  3.87M|  for (size_t first_colon_pos = message->find_first_of(':'), next_colon_pos = 0;
   79|       |
   80|       |       // There is a first colon, and it's not too close to the end
   81|  3.87M|       (first_colon_pos != string_piece::npos) &&
  ------------------
  |  Branch (81:8): [True: 3.87M, False: 3.21k]
  ------------------
   82|  3.87M|       (first_colon_pos <= first_colon_cutoff);
  ------------------
  |  Branch (82:8): [True: 3.87M, False: 0]
  ------------------
   83|       |
   84|       |       // Try the next pair of colons.
   85|  3.87M|       first_colon_pos = next_colon_pos) {
   86|       |    // We're guaranteed to have at least 3 more characters.
   87|       |    // Guarantee progress toward the end of the string.
   88|  3.87M|    next_colon_pos = message->find_first_of(':', first_colon_pos + 1);
   89|  3.87M|    if ((next_colon_pos == string_piece::npos) ||
  ------------------
  |  Branch (89:9): [True: 1.81k, False: 3.87M]
  ------------------
   90|  3.87M|        (next_colon_pos > next_colon_cutoff)) {
  ------------------
  |  Branch (90:9): [True: 0, False: 3.87M]
  ------------------
   91|       |      // No valid solution.
   92|  1.81k|      return false;
   93|  1.81k|    }
   94|  3.87M|    if (first_colon_pos + 1 == next_colon_pos) {
  ------------------
  |  Branch (94:9): [True: 0, False: 3.87M]
  ------------------
   95|       |      // There is no room for digits.
   96|      0|      continue;
   97|      0|    }
   98|  3.87M|    if ((message->data()[next_colon_pos + 1] != ' ')) {
  ------------------
  |  Branch (98:9): [True: 130, False: 3.87M]
  ------------------
   99|       |      // There is no space character after the second colon.
  100|    130|      continue;
  101|    130|    }
  102|  3.87M|    if (message->find_first_not_of("0123456789", first_colon_pos + 1) ==
  ------------------
  |  Branch (102:9): [True: 3.87M, False: 33]
  ------------------
  103|  3.87M|        next_colon_pos) {
  104|       |      // We found the first solution.
  105|  3.87M|      *source_name = message->substr(0, first_colon_pos);
  106|  3.87M|      *line_number = message->substr(first_colon_pos + 1,
  107|  3.87M|                                     next_colon_pos - 1 - first_colon_pos);
  108|  3.87M|      *message = message->substr(next_colon_pos + 2);
  109|  3.87M|      return true;
  110|  3.87M|    }
  111|  3.87M|  }
  112|       |
  113|  3.21k|  return false;
  114|  3.87M|}
message.cc:_ZN12shaderc_util12_GLOBAL__N_116IsSummaryMessageERKNS_12string_pieceE:
  117|  5.03k|bool IsSummaryMessage(const string_piece& message) {
  118|  5.03k|  const size_t space_loc = message.find_first_of(' ');
  119|  5.03k|  if (space_loc == string_piece::npos) return false;
  ------------------
  |  Branch (119:7): [True: 0, False: 5.03k]
  ------------------
  120|  5.03k|  const string_piece number = message.substr(0, space_loc);
  121|  5.03k|  const string_piece rest = message.substr(space_loc + 1);
  122|  5.03k|  if (!std::all_of(number.begin(), number.end(), [](char c) {
  ------------------
  |  Branch (122:7): [True: 1.88k, False: 3.14k]
  ------------------
  123|       |        // Cast to unsigned char to avoid undefined behaviour in ::isdigit.
  124|       |
  125|  5.03k|        return ::isdigit(static_cast<unsigned char>(c));
  126|  5.03k|      }))
  127|  1.88k|    return false;
  128|  3.14k|  if (!rest.starts_with("compilation errors.")) return false;
  ------------------
  |  Branch (128:7): [True: 0, False: 3.14k]
  ------------------
  129|  3.14k|  return true;
  130|  3.14k|}
message.cc:_ZZN12shaderc_util12_GLOBAL__N_116IsSummaryMessageERKNS_12string_pieceEENK3$_0clEc:
  122|  7.17k|  if (!std::all_of(number.begin(), number.end(), [](char c) {
  123|       |        // Cast to unsigned char to avoid undefined behaviour in ::isdigit.
  124|       |
  125|  7.17k|        return ::isdigit(static_cast<unsigned char>(c));
  126|  7.17k|      }))

_ZN12shaderc_util19ParseVersionProfileERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPiP8EProfile:
   32|  1.03k|                         EProfile* profile) {
   33|  1.03k|  if (version_profile.size() < kMinVersionProfileLength ||
  ------------------
  |  Branch (33:7): [True: 0, False: 1.03k]
  ------------------
   34|  1.03k|      version_profile.size() > kMaxVersionProfileLength ||
  ------------------
  |  Branch (34:7): [True: 0, False: 1.03k]
  ------------------
   35|  1.03k|      !::isdigit(static_cast<unsigned char>(version_profile.front())))
  ------------------
  |  Branch (35:7): [True: 0, False: 1.03k]
  ------------------
   36|      0|    return false;
   37|       |
   38|  1.03k|  std::string profile_string;
   39|  1.03k|  std::istringstream(version_profile) >> *version >> profile_string;
   40|       |
   41|  1.03k|  if (!IsKnownVersion(*version)) {
  ------------------
  |  Branch (41:7): [True: 0, False: 1.03k]
  ------------------
   42|      0|    return false;
   43|      0|  }
   44|  1.03k|  if (profile_string.empty()) {
  ------------------
  |  Branch (44:7): [True: 786, False: 250]
  ------------------
   45|    786|    *profile = ENoProfile;
   46|    786|  } else if (profile_string == "core") {
  ------------------
  |  Branch (46:14): [True: 198, False: 52]
  ------------------
   47|    198|    *profile = ECoreProfile;
   48|    198|  } else if (profile_string == "es") {
  ------------------
  |  Branch (48:14): [True: 52, False: 0]
  ------------------
   49|     52|    *profile = EEsProfile;
   50|     52|  } else if (profile_string == "compatibility") {
  ------------------
  |  Branch (50:14): [True: 0, False: 0]
  ------------------
   51|      0|    *profile = ECompatibilityProfile;
   52|      0|  } else {
   53|      0|    return false;
   54|      0|  }
   55|       |
   56|  1.03k|  return true;
   57|  1.03k|}

_ZN7glslang24GetSpirvGeneratorVersionEv:
13180|     42|{
13181|       |    // return 1; // start
13182|       |    // return 2; // EOpAtomicCounterDecrement gets a post decrement, to map between GLSL -> SPIR-V
13183|       |    // return 3; // change/correct barrier-instruction operands, to match memory model group decisions
13184|       |    // return 4; // some deeper access chains: for dynamic vector component, and local Boolean component
13185|       |    // return 5; // make OpArrayLength result type be an int with signedness of 0
13186|       |    // return 6; // revert version 5 change, which makes a different (new) kind of incorrect code,
13187|       |                 // versions 4 and 6 each generate OpArrayLength as it has long been done
13188|       |    // return 7; // GLSL volatile keyword maps to both SPIR-V decorations Volatile and Coherent
13189|       |    // return 8; // switch to new dead block eliminator; use OpUnreachable
13190|       |    // return 9; // don't include opaque function parameters in OpEntryPoint global's operand list
13191|       |    // return 10; // Generate OpFUnordNotEqual for != comparisons
13192|     42|    return 11; // Make OpEmitMeshTasksEXT a terminal instruction
13193|     42|}
_ZN7glslang12GlslangToSpvERKNS_13TIntermediateERNSt3__16vectorIjNS3_9allocatorIjEEEEPNS_10SpvOptionsE:
13253|     42|{
13254|     42|    spv::SpvBuildLogger logger;
13255|     42|    GlslangToSpv(intermediate, spirv, &logger, options);
13256|     42|}
_ZN7glslang12GlslangToSpvERKNS_13TIntermediateERNSt3__16vectorIjNS3_9allocatorIjEEEEPN3spv14SpvBuildLoggerEPNS_10SpvOptionsE:
13260|     42|{
13261|     42|    TIntermNode* root = intermediate.getTreeRoot();
13262|       |
13263|     42|    if (root == nullptr)
  ------------------
  |  Branch (13263:9): [True: 0, False: 42]
  ------------------
13264|      0|        return;
13265|       |
13266|     42|    SpvOptions defaultOptions;
13267|     42|    if (options == nullptr)
  ------------------
  |  Branch (13267:9): [True: 0, False: 42]
  ------------------
13268|      0|        options = &defaultOptions;
13269|       |
13270|     42|    GetThreadPoolAllocator().push();
13271|       |
13272|     42|    TGlslangToSpvTraverser it(intermediate.getSpv().spv, &intermediate, logger, *options);
13273|     42|    root->traverse(&it);
13274|     42|    it.finishSpv(options->compileOnly);
13275|     42|    it.dumpSpv(spirv);
13276|       |
13277|     42|#if ENABLE_OPT
13278|       |    // If from HLSL, run spirv-opt to "legalize" the SPIR-V for Vulkan
13279|       |    // eg. forward and remove memory writes of opaque types.
13280|     42|    bool prelegalization = intermediate.getSource() == EShSourceHlsl;
13281|     42|    if ((prelegalization || options->optimizeSize || options->optimizePerformance) && !options->disableOptimizer) {
  ------------------
  |  Branch (13281:10): [True: 0, False: 42]
  |  Branch (13281:29): [True: 0, False: 42]
  |  Branch (13281:54): [True: 0, False: 42]
  |  Branch (13281:87): [True: 0, False: 0]
  ------------------
13282|      0|        SpirvToolsTransform(intermediate, spirv, logger, options, prelegalization);
13283|      0|        prelegalization = false;
13284|      0|    }
13285|     42|    else if (options->stripDebugInfo) {
  ------------------
  |  Branch (13285:14): [True: 0, False: 42]
  ------------------
13286|       |        // Strip debug info even if optimization is disabled.
13287|      0|        SpirvToolsStripDebugInfo(intermediate, spirv, logger);
13288|      0|    }
13289|       |
13290|     42|    if (options->validate)
  ------------------
  |  Branch (13290:9): [True: 0, False: 42]
  ------------------
13291|      0|        SpirvToolsValidate(intermediate, spirv, logger, prelegalization);
13292|       |
13293|     42|    if (options->disassemble)
  ------------------
  |  Branch (13293:9): [True: 0, False: 42]
  ------------------
13294|      0|        SpirvToolsDisassemble(std::cout, spirv);
13295|       |
13296|     42|#endif
13297|       |
13298|     42|    GetThreadPoolAllocator().pop();
13299|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverserC2EjPKN7glslang13TIntermediateEPN3spv14SpvBuildLoggerERNS1_10SpvOptionsE:
 1782|     42|        TIntermTraverser(true, false, true),
 1783|     42|        options(options),
 1784|     42|        shaderEntry(nullptr), currentFunction(nullptr), entryPoint(nullptr),
 1785|     42|        sequenceDepth(0),
 1786|     42|        opacityMicromapEnableConstId(spv::NoResult),
 1787|     42|        logger(buildLogger),
 1788|     42|        builder(spvVersion, (glslang::GetKhronosToolId() << 16) | glslang::GetSpirvGeneratorVersion(), logger),
 1789|     42|        inEntryPoint(false), entryPointTerminated(false), linkageOnly(false),
 1790|     42|        glslangIntermediate(glslangIntermediate),
 1791|     42|        nanMinMaxClamp(glslangIntermediate->getNanMinMaxClamp()),
 1792|     42|        nonSemanticDebugPrintf(0),
 1793|     42|        taskPayloadID(0),
 1794|     42|        descHeapLayout(*this)
 1795|     42|{
 1796|     42|    bool isMeshShaderExt = (glslangIntermediate->getRequestedExtensions().find(glslang::E_GL_EXT_mesh_shader) !=
 1797|     42|                            glslangIntermediate->getRequestedExtensions().end());
 1798|     42|    spv::ExecutionModel executionModel = TranslateExecutionModel(glslangIntermediate->getStage(), isMeshShaderExt);
 1799|       |
 1800|     42|    builder.clearAccessChain();
 1801|     42|    builder.setSource(TranslateSourceLanguage(glslangIntermediate->getSource(), glslangIntermediate->getProfile()),
 1802|     42|                      glslangIntermediate->getVersion());
 1803|       |
 1804|     42|    if (options.emitNonSemanticShaderDebugSource)
  ------------------
  |  Branch (1804:9): [True: 0, False: 42]
  ------------------
 1805|      0|            this->options.emitNonSemanticShaderDebugInfo = true;
 1806|     42|    if (options.emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (1806:9): [True: 0, False: 42]
  ------------------
 1807|      0|            this->options.generateDebugInfo = true;
 1808|       |
 1809|     42|    if (this->options.generateDebugInfo) {
  ------------------
  |  Branch (1809:9): [True: 0, False: 42]
  ------------------
 1810|      0|        if (this->options.emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (1810:13): [True: 0, False: 0]
  ------------------
 1811|      0|            builder.setEmitNonSemanticShaderDebugInfo(this->options.emitNonSemanticShaderDebugSource);
 1812|      0|        }
 1813|      0|        else {
 1814|      0|            builder.setEmitSpirvDebugInfo();
 1815|      0|        }
 1816|      0|        builder.setDebugMainSourceFile(glslangIntermediate->getSourceFile());
 1817|       |
 1818|       |        // Set the source shader's text
 1819|      0|        std::string text;
 1820|       |
 1821|       |        // If for SPV version 1.0, include
 1822|       |        // a preamble in comments stating the OpModuleProcessed instructions.
 1823|       |        // Otherwise, emit those as actual instructions.
 1824|       |        //
 1825|       |        // ...Except when using ShaderDebugInfo we DON'T want these as it will mess up the line
 1826|       |        // number, instead the user has opt'ed in for ShaderDebugInfo instead, so they will want
 1827|       |        // to parse those instead
 1828|       |        // https://github.com/KhronosGroup/glslang/issues/3863
 1829|      0|        const bool add_comments =
 1830|      0|            glslangIntermediate->getSpv().spv < glslang::EShTargetSpv_1_1 && !options.emitNonSemanticShaderDebugSource;
  ------------------
  |  Branch (1830:13): [True: 0, False: 0]
  |  Branch (1830:78): [True: 0, False: 0]
  ------------------
 1831|       |
 1832|      0|        const std::vector<std::string>& processes = glslangIntermediate->getProcesses();
 1833|      0|        for (int p = 0; p < (int)processes.size(); ++p) {
  ------------------
  |  Branch (1833:25): [True: 0, False: 0]
  ------------------
 1834|      0|            if (add_comments) {
  ------------------
  |  Branch (1834:17): [True: 0, False: 0]
  ------------------
 1835|      0|                text.append("// OpModuleProcessed ");
 1836|      0|                text.append(processes[p]);
 1837|      0|                text.append("\n");
 1838|      0|            } else if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_1) {
  ------------------
  |  Branch (1838:24): [True: 0, False: 0]
  ------------------
 1839|       |                // OpModuleProcessed added in SPIR-V 1.1
 1840|      0|                builder.addModuleProcessed(processes[p]);
 1841|      0|            }
 1842|      0|        }
 1843|      0|        if (add_comments && (int)processes.size() > 0)
  ------------------
  |  Branch (1843:13): [True: 0, False: 0]
  |  Branch (1843:29): [True: 0, False: 0]
  ------------------
 1844|      0|            text.append("#line 1\n");
 1845|      0|        text.append(glslangIntermediate->getSourceText());
 1846|      0|        builder.setSourceText(text);
 1847|       |        // Pass name and text for all included files
 1848|      0|        const std::map<std::string, std::string>& include_txt = glslangIntermediate->getIncludeText();
 1849|      0|        for (auto iItr = include_txt.begin(); iItr != include_txt.end(); ++iItr)
  ------------------
  |  Branch (1849:47): [True: 0, False: 0]
  ------------------
 1850|      0|            builder.addInclude(iItr->first, iItr->second);
 1851|     42|    } else if (this->options.emitSourceFileName) {
  ------------------
  |  Branch (1851:16): [True: 0, False: 42]
  ------------------
 1852|      0|        builder.setEmitSourceFileName(glslangIntermediate->getSourceFile());
 1853|      0|    }
 1854|       |
 1855|     42|    builder.setUseReplicatedComposites(glslangIntermediate->usingReplicatedComposites());
 1856|       |
 1857|     42|    stdBuiltins = builder.import("GLSL.std.450");
 1858|       |
 1859|     42|    spv::AddressingModel addressingModel = spv::AddressingModel::Logical;
 1860|     42|    spv::MemoryModel memoryModel = spv::MemoryModel::GLSL450;
 1861|       |
 1862|     42|    if (glslangIntermediate->usingPhysicalStorageBuffer()) {
  ------------------
  |  Branch (1862:9): [True: 0, False: 42]
  ------------------
 1863|      0|        addressingModel = spv::AddressingModel::PhysicalStorageBuffer64EXT;
 1864|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_physical_storage_buffer, spv::Spv_1_5);
 1865|      0|        builder.addCapability(spv::Capability::PhysicalStorageBufferAddressesEXT);
 1866|      0|    }
 1867|     42|    if (glslangIntermediate->usingVulkanMemoryModel()) {
  ------------------
  |  Branch (1867:9): [True: 0, False: 42]
  ------------------
 1868|      0|        memoryModel = spv::MemoryModel::VulkanKHR;
 1869|      0|        builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
 1870|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_vulkan_memory_model, spv::Spv_1_5);
 1871|      0|    }
 1872|     42|    builder.setMemoryModel(addressingModel, memoryModel);
 1873|       |
 1874|     42|    if (glslangIntermediate->usingVariablePointers()) {
  ------------------
  |  Branch (1874:9): [True: 0, False: 42]
  ------------------
 1875|      0|        builder.addCapability(spv::Capability::VariablePointers);
 1876|      0|    }
 1877|       |
 1878|       |    // If not linking, there is no entry point
 1879|     42|    if (!options.compileOnly) {
  ------------------
  |  Branch (1879:9): [True: 42, False: 0]
  ------------------
 1880|     42|        shaderEntry = builder.makeEntryPoint(glslangIntermediate->getEntryPointName().c_str());
 1881|     42|        entryPoint =
 1882|     42|            builder.addEntryPoint(executionModel, shaderEntry, glslangIntermediate->getEntryPointName().c_str());
 1883|     42|    }
 1884|       |
 1885|       |    // Add the source extensions
 1886|     42|    const auto& sourceExtensions = glslangIntermediate->getRequestedExtensions();
 1887|    282|    for (auto it = sourceExtensions.begin(); it != sourceExtensions.end(); ++it)
  ------------------
  |  Branch (1887:46): [True: 240, False: 42]
  ------------------
 1888|    240|        builder.addSourceExtension(it->c_str());
 1889|       |
 1890|       |    // Add the top-level modes for this shader.
 1891|       |
 1892|     42|    if (glslangIntermediate->getXfbMode()) {
  ------------------
  |  Branch (1892:9): [True: 0, False: 42]
  ------------------
 1893|      0|        builder.addCapability(spv::Capability::TransformFeedback);
 1894|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::Xfb);
 1895|      0|    }
 1896|       |
 1897|     42|    if (glslangIntermediate->getLayoutPrimitiveCulling()) {
  ------------------
  |  Branch (1897:9): [True: 0, False: 42]
  ------------------
 1898|      0|        builder.addCapability(spv::Capability::RayTraversalPrimitiveCullingKHR);
 1899|      0|    }
 1900|       |
 1901|       |    // gl_RayFlagsForceOpacityMicromap2StateEXT was referenced. The SPIR-V RayFlags
 1902|       |    // bit ForceOpacityMicromap2StateKHR requires the RayTracingOpacityMicromapEXT
 1903|       |    // capability. Emit it here so it applies uniformly to ray-tracing-pipeline
 1904|       |    // stages and any stage running ray queries.
 1905|     42|    if (glslangIntermediate->getUsesOpacityMicromap2StateFlag()) {
  ------------------
  |  Branch (1905:9): [True: 0, False: 42]
  ------------------
 1906|      0|        builder.addCapability(spv::Capability::RayTracingOpacityMicromapEXT);
 1907|      0|        builder.addExtension("SPV_EXT_opacity_micromap");
 1908|      0|    }
 1909|       |
 1910|     42|    if (glslangIntermediate->getSubgroupUniformControlFlow()) {
  ------------------
  |  Branch (1910:9): [True: 0, False: 42]
  ------------------
 1911|      0|        builder.addExtension(spv::E_SPV_KHR_subgroup_uniform_control_flow);
 1912|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::SubgroupUniformControlFlowKHR);
 1913|      0|    }
 1914|     42|    if (glslangIntermediate->getMaximallyReconverges()) {
  ------------------
  |  Branch (1914:9): [True: 0, False: 42]
  ------------------
 1915|      0|        builder.addExtension(spv::E_SPV_KHR_maximal_reconvergence);
 1916|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::MaximallyReconvergesKHR);
 1917|      0|    }
 1918|       |
 1919|     42|    if (glslangIntermediate->getQuadDerivMode())
  ------------------
  |  Branch (1919:9): [True: 0, False: 42]
  ------------------
 1920|      0|    {
 1921|      0|        builder.addCapability(spv::Capability::QuadControlKHR);
 1922|      0|        builder.addExtension(spv::E_SPV_KHR_quad_control);
 1923|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::QuadDerivativesKHR);
 1924|      0|    }
 1925|       |
 1926|     42|    if (glslangIntermediate->getReqFullQuadsMode())
  ------------------
  |  Branch (1926:9): [True: 0, False: 42]
  ------------------
 1927|      0|    {
 1928|      0|        builder.addCapability(spv::Capability::QuadControlKHR);
 1929|      0|        builder.addExtension(spv::E_SPV_KHR_quad_control);
 1930|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::RequireFullQuadsKHR);
 1931|      0|    }
 1932|       |
 1933|     42|    if (glslangIntermediate->usingShader64BitIndexing())
  ------------------
  |  Branch (1933:9): [True: 0, False: 42]
  ------------------
 1934|      0|    {
 1935|      0|        builder.addCapability(spv::Capability::Shader64BitIndexingEXT);
 1936|      0|        builder.addExtension(spv::E_SPV_EXT_shader_64bit_indexing);
 1937|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::Shader64BitIndexingEXT);
 1938|      0|    }
 1939|       |
 1940|     42|    spv::ExecutionMode mode;
 1941|     42|    switch (glslangIntermediate->getStage()) {
 1942|      0|    case EShLangVertex:
  ------------------
  |  Branch (1942:5): [True: 0, False: 42]
  ------------------
 1943|      0|        builder.addCapability(spv::Capability::Shader);
 1944|      0|        break;
 1945|       |
 1946|     42|    case EShLangFragment:
  ------------------
  |  Branch (1946:5): [True: 42, False: 0]
  ------------------
 1947|     42|        builder.addCapability(spv::Capability::Shader);
 1948|     42|        if (glslangIntermediate->getPixelCenterInteger())
  ------------------
  |  Branch (1948:13): [True: 0, False: 42]
  ------------------
 1949|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::PixelCenterInteger);
 1950|       |
 1951|     42|        if (glslangIntermediate->getOriginUpperLeft())
  ------------------
  |  Branch (1951:13): [True: 42, False: 0]
  ------------------
 1952|     42|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::OriginUpperLeft);
 1953|      0|        else
 1954|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::OriginLowerLeft);
 1955|       |
 1956|     42|        if (glslangIntermediate->getEarlyFragmentTests())
  ------------------
  |  Branch (1956:13): [True: 0, False: 42]
  ------------------
 1957|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::EarlyFragmentTests);
 1958|       |
 1959|     42|        if (glslangIntermediate->getEarlyAndLateFragmentTestsAMD())
  ------------------
  |  Branch (1959:13): [True: 0, False: 42]
  ------------------
 1960|      0|        {
 1961|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::EarlyAndLateFragmentTestsAMD);
 1962|      0|            builder.addExtension(spv::E_SPV_AMD_shader_early_and_late_fragment_tests);
 1963|      0|        }
 1964|       |
 1965|     42|        if (glslangIntermediate->getPostDepthCoverage()) {
  ------------------
  |  Branch (1965:13): [True: 0, False: 42]
  ------------------
 1966|      0|            builder.addCapability(spv::Capability::SampleMaskPostDepthCoverage);
 1967|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::PostDepthCoverage);
 1968|      0|            builder.addExtension(spv::E_SPV_KHR_post_depth_coverage);
 1969|      0|        }
 1970|       |
 1971|     42|        if (glslangIntermediate->getNonCoherentColorAttachmentReadEXT()) {
  ------------------
  |  Branch (1971:13): [True: 0, False: 42]
  ------------------
 1972|      0|            builder.addCapability(spv::Capability::TileImageColorReadAccessEXT);
 1973|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::NonCoherentColorAttachmentReadEXT);
 1974|      0|            builder.addExtension(spv::E_SPV_EXT_shader_tile_image);
 1975|      0|        }
 1976|       |
 1977|     42|        if (glslangIntermediate->getNonCoherentDepthAttachmentReadEXT()) {
  ------------------
  |  Branch (1977:13): [True: 0, False: 42]
  ------------------
 1978|      0|            builder.addCapability(spv::Capability::TileImageDepthReadAccessEXT);
 1979|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::NonCoherentDepthAttachmentReadEXT);
 1980|      0|            builder.addExtension(spv::E_SPV_EXT_shader_tile_image);
 1981|      0|        }
 1982|       |
 1983|     42|        if (glslangIntermediate->getNonCoherentStencilAttachmentReadEXT()) {
  ------------------
  |  Branch (1983:13): [True: 0, False: 42]
  ------------------
 1984|      0|            builder.addCapability(spv::Capability::TileImageStencilReadAccessEXT);
 1985|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::NonCoherentStencilAttachmentReadEXT);
 1986|      0|            builder.addExtension(spv::E_SPV_EXT_shader_tile_image);
 1987|      0|        }
 1988|       |
 1989|     42|        if (glslangIntermediate->getNonCoherentTileAttachmentReadQCOM()) {
  ------------------
  |  Branch (1989:13): [True: 0, False: 42]
  ------------------
 1990|      0|            builder.addCapability(spv::Capability::TileShadingQCOM);
 1991|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::NonCoherentTileAttachmentReadQCOM);
 1992|      0|            builder.addExtension(spv::E_SPV_QCOM_tile_shading);
 1993|      0|        }
 1994|       |
 1995|     42|        if (glslangIntermediate->isDepthReplacing())
  ------------------
  |  Branch (1995:13): [True: 0, False: 42]
  ------------------
 1996|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::DepthReplacing);
 1997|       |
 1998|     42|        if (glslangIntermediate->isStencilReplacing())
  ------------------
  |  Branch (1998:13): [True: 0, False: 42]
  ------------------
 1999|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::StencilRefReplacingEXT);
 2000|       |
 2001|     42|        switch(glslangIntermediate->getDepth()) {
 2002|      0|        case glslang::EldGreater:   mode = spv::ExecutionMode::DepthGreater;   break;
  ------------------
  |  Branch (2002:9): [True: 0, False: 42]
  ------------------
 2003|      0|        case glslang::EldLess:      mode = spv::ExecutionMode::DepthLess;      break;
  ------------------
  |  Branch (2003:9): [True: 0, False: 42]
  ------------------
 2004|      0|        case glslang::EldUnchanged: mode = spv::ExecutionMode::DepthUnchanged; break;
  ------------------
  |  Branch (2004:9): [True: 0, False: 42]
  ------------------
 2005|     42|        default:                    mode = spv::ExecutionMode::Max;            break;
  ------------------
  |  Branch (2005:9): [True: 42, False: 0]
  ------------------
 2006|     42|        }
 2007|       |
 2008|     42|        if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2008:13): [True: 0, False: 42]
  ------------------
 2009|      0|            builder.addExecutionMode(shaderEntry, mode);
 2010|       |
 2011|     42|        switch (glslangIntermediate->getStencil()) {
 2012|      0|        case glslang::ElsRefUnchangedFrontAMD:  mode = spv::ExecutionMode::StencilRefUnchangedFrontAMD; break;
  ------------------
  |  Branch (2012:9): [True: 0, False: 42]
  ------------------
 2013|      0|        case glslang::ElsRefGreaterFrontAMD:    mode = spv::ExecutionMode::StencilRefGreaterFrontAMD;   break;
  ------------------
  |  Branch (2013:9): [True: 0, False: 42]
  ------------------
 2014|      0|        case glslang::ElsRefLessFrontAMD:       mode = spv::ExecutionMode::StencilRefLessFrontAMD;      break;
  ------------------
  |  Branch (2014:9): [True: 0, False: 42]
  ------------------
 2015|      0|        case glslang::ElsRefUnchangedBackAMD:   mode = spv::ExecutionMode::StencilRefUnchangedBackAMD;  break;
  ------------------
  |  Branch (2015:9): [True: 0, False: 42]
  ------------------
 2016|      0|        case glslang::ElsRefGreaterBackAMD:     mode = spv::ExecutionMode::StencilRefGreaterBackAMD;    break;
  ------------------
  |  Branch (2016:9): [True: 0, False: 42]
  ------------------
 2017|      0|        case glslang::ElsRefLessBackAMD:        mode = spv::ExecutionMode::StencilRefLessBackAMD;       break;
  ------------------
  |  Branch (2017:9): [True: 0, False: 42]
  ------------------
 2018|     42|        default:                       mode = spv::ExecutionMode::Max;                         break;
  ------------------
  |  Branch (2018:9): [True: 42, False: 0]
  ------------------
 2019|     42|        }
 2020|       |
 2021|     42|        if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2021:13): [True: 0, False: 42]
  ------------------
 2022|      0|            builder.addExecutionMode(shaderEntry, (spv::ExecutionMode)mode);
 2023|     42|        switch (glslangIntermediate->getInterlockOrdering()) {
 2024|      0|        case glslang::EioPixelInterlockOrdered:         mode = spv::ExecutionMode::PixelInterlockOrderedEXT;
  ------------------
  |  Branch (2024:9): [True: 0, False: 42]
  ------------------
 2025|      0|            break;
 2026|      0|        case glslang::EioPixelInterlockUnordered:       mode = spv::ExecutionMode::PixelInterlockUnorderedEXT;
  ------------------
  |  Branch (2026:9): [True: 0, False: 42]
  ------------------
 2027|      0|            break;
 2028|      0|        case glslang::EioSampleInterlockOrdered:        mode = spv::ExecutionMode::SampleInterlockOrderedEXT;
  ------------------
  |  Branch (2028:9): [True: 0, False: 42]
  ------------------
 2029|      0|            break;
 2030|      0|        case glslang::EioSampleInterlockUnordered:      mode = spv::ExecutionMode::SampleInterlockUnorderedEXT;
  ------------------
  |  Branch (2030:9): [True: 0, False: 42]
  ------------------
 2031|      0|            break;
 2032|      0|        case glslang::EioShadingRateInterlockOrdered:   mode = spv::ExecutionMode::ShadingRateInterlockOrderedEXT;
  ------------------
  |  Branch (2032:9): [True: 0, False: 42]
  ------------------
 2033|      0|            break;
 2034|      0|        case glslang::EioShadingRateInterlockUnordered: mode = spv::ExecutionMode::ShadingRateInterlockUnorderedEXT;
  ------------------
  |  Branch (2034:9): [True: 0, False: 42]
  ------------------
 2035|      0|            break;
 2036|     42|        default:                                        mode = spv::ExecutionMode::Max;
  ------------------
  |  Branch (2036:9): [True: 42, False: 0]
  ------------------
 2037|     42|            break;
 2038|     42|        }
 2039|     42|        if (mode != spv::ExecutionMode::Max) {
  ------------------
  |  Branch (2039:13): [True: 0, False: 42]
  ------------------
 2040|      0|            builder.addExecutionMode(shaderEntry, (spv::ExecutionMode)mode);
 2041|      0|            if (mode == spv::ExecutionMode::ShadingRateInterlockOrderedEXT ||
  ------------------
  |  Branch (2041:17): [True: 0, False: 0]
  ------------------
 2042|      0|                mode == spv::ExecutionMode::ShadingRateInterlockUnorderedEXT) {
  ------------------
  |  Branch (2042:17): [True: 0, False: 0]
  ------------------
 2043|      0|                builder.addCapability(spv::Capability::FragmentShaderShadingRateInterlockEXT);
 2044|      0|            } else if (mode == spv::ExecutionMode::PixelInterlockOrderedEXT ||
  ------------------
  |  Branch (2044:24): [True: 0, False: 0]
  ------------------
 2045|      0|                       mode == spv::ExecutionMode::PixelInterlockUnorderedEXT) {
  ------------------
  |  Branch (2045:24): [True: 0, False: 0]
  ------------------
 2046|      0|                builder.addCapability(spv::Capability::FragmentShaderPixelInterlockEXT);
 2047|      0|            } else {
 2048|      0|                builder.addCapability(spv::Capability::FragmentShaderSampleInterlockEXT);
 2049|      0|            }
 2050|      0|            builder.addExtension(spv::E_SPV_EXT_fragment_shader_interlock);
 2051|      0|        }
 2052|     42|    break;
 2053|       |
 2054|      0|    case EShLangCompute: {
  ------------------
  |  Branch (2054:5): [True: 0, False: 42]
  ------------------
 2055|      0|        builder.addCapability(spv::Capability::Shader);
 2056|      0|        bool needSizeId = false;
 2057|      0|        for (int dim = 0; dim < 3; ++dim) {
  ------------------
  |  Branch (2057:27): [True: 0, False: 0]
  ------------------
 2058|      0|            if ((glslangIntermediate->getLocalSizeSpecId(dim) != glslang::TQualifier::layoutNotSet)) {
  ------------------
  |  Branch (2058:17): [True: 0, False: 0]
  ------------------
 2059|      0|                needSizeId = true;
 2060|      0|                break;
 2061|      0|            }
 2062|      0|        }
 2063|      0|        if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_6 && needSizeId) {
  ------------------
  |  Branch (2063:13): [True: 0, False: 0]
  |  Branch (2063:79): [True: 0, False: 0]
  ------------------
 2064|      0|            std::vector<spv::Id> dimConstId;
 2065|      0|            for (int dim = 0; dim < 3; ++dim) {
  ------------------
  |  Branch (2065:31): [True: 0, False: 0]
  ------------------
 2066|      0|                bool specConst = (glslangIntermediate->getLocalSizeSpecId(dim) != glslang::TQualifier::layoutNotSet);
 2067|      0|                dimConstId.push_back(builder.makeUintConstant(glslangIntermediate->getLocalSize(dim), specConst));
 2068|      0|                if (specConst) {
  ------------------
  |  Branch (2068:21): [True: 0, False: 0]
  ------------------
 2069|      0|                    builder.addDecoration(dimConstId.back(), spv::Decoration::SpecId,
 2070|      0|                                          glslangIntermediate->getLocalSizeSpecId(dim));
 2071|      0|                    needSizeId = true;
 2072|      0|                }
 2073|      0|            }
 2074|      0|            builder.addExecutionModeId(shaderEntry, spv::ExecutionMode::LocalSizeId, dimConstId);
 2075|      0|        } else {
 2076|      0|            if (glslangIntermediate->getTileShadingRateQCOM(0) >= 1 || glslangIntermediate->getTileShadingRateQCOM(1) >= 1 || glslangIntermediate->getTileShadingRateQCOM(2) >= 1) {
  ------------------
  |  Branch (2076:17): [True: 0, False: 0]
  |  Branch (2076:72): [True: 0, False: 0]
  |  Branch (2076:127): [True: 0, False: 0]
  ------------------
 2077|      0|                auto rate_x = glslangIntermediate->getTileShadingRateQCOM(0);
 2078|      0|                auto rate_y = glslangIntermediate->getTileShadingRateQCOM(1);
 2079|      0|                auto rate_z = glslangIntermediate->getTileShadingRateQCOM(2);
 2080|      0|                rate_x = ( rate_x == 0 ? 1u : rate_x );
  ------------------
  |  Branch (2080:28): [True: 0, False: 0]
  ------------------
 2081|      0|                rate_y = ( rate_y == 0 ? 1u : rate_y );
  ------------------
  |  Branch (2081:28): [True: 0, False: 0]
  ------------------
 2082|      0|                rate_z = ( rate_z == 0 ? 1u : rate_z );
  ------------------
  |  Branch (2082:28): [True: 0, False: 0]
  ------------------
 2083|      0|                builder.addExecutionMode(shaderEntry, spv::ExecutionMode::TileShadingRateQCOM, rate_x, rate_y, rate_z);
 2084|      0|            } else {
 2085|      0|                builder.addExecutionMode(shaderEntry, spv::ExecutionMode::LocalSize, glslangIntermediate->getLocalSize(0),
 2086|      0|                                                                                   glslangIntermediate->getLocalSize(1),
 2087|      0|                                                                                   glslangIntermediate->getLocalSize(2));
 2088|      0|            }
 2089|      0|        }
 2090|      0|        addDerivativeGroupExecutionMode(builder, *glslangIntermediate, shaderEntry);
 2091|       |
 2092|      0|        if (glslangIntermediate->getNonCoherentTileAttachmentReadQCOM()) {
  ------------------
  |  Branch (2092:13): [True: 0, False: 0]
  ------------------
 2093|      0|            builder.addCapability(spv::Capability::TileShadingQCOM);
 2094|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::NonCoherentTileAttachmentReadQCOM);
 2095|      0|            builder.addExtension(spv::E_SPV_QCOM_tile_shading);
 2096|      0|        }
 2097|       |
 2098|      0|        break;
 2099|     42|    }
 2100|      0|    case EShLangTessEvaluation:
  ------------------
  |  Branch (2100:5): [True: 0, False: 42]
  ------------------
 2101|      0|    case EShLangTessControl:
  ------------------
  |  Branch (2101:5): [True: 0, False: 42]
  ------------------
 2102|      0|        builder.addCapability(spv::Capability::Tessellation);
 2103|       |
 2104|      0|        glslang::TLayoutGeometry primitive;
 2105|       |
 2106|      0|        if (glslangIntermediate->getStage() == EShLangTessControl) {
  ------------------
  |  Branch (2106:13): [True: 0, False: 0]
  ------------------
 2107|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::OutputVertices,
 2108|      0|                glslangIntermediate->getVertices());
 2109|      0|            primitive = glslangIntermediate->getOutputPrimitive();
 2110|      0|        } else {
 2111|      0|            primitive = glslangIntermediate->getInputPrimitive();
 2112|      0|        }
 2113|       |
 2114|      0|        switch (primitive) {
 2115|      0|        case glslang::ElgTriangles:           mode = spv::ExecutionMode::Triangles;     break;
  ------------------
  |  Branch (2115:9): [True: 0, False: 0]
  ------------------
 2116|      0|        case glslang::ElgQuads:               mode = spv::ExecutionMode::Quads;         break;
  ------------------
  |  Branch (2116:9): [True: 0, False: 0]
  ------------------
 2117|      0|        case glslang::ElgIsolines:            mode = spv::ExecutionMode::Isolines;      break;
  ------------------
  |  Branch (2117:9): [True: 0, False: 0]
  ------------------
 2118|      0|        default:                              mode = spv::ExecutionMode::Max;           break;
  ------------------
  |  Branch (2118:9): [True: 0, False: 0]
  ------------------
 2119|      0|        }
 2120|      0|        if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2120:13): [True: 0, False: 0]
  ------------------
 2121|      0|            builder.addExecutionMode(shaderEntry, mode);
 2122|       |
 2123|      0|        switch (glslangIntermediate->getVertexSpacing()) {
 2124|      0|        case glslang::EvsEqual:            mode = spv::ExecutionMode::SpacingEqual;          break;
  ------------------
  |  Branch (2124:9): [True: 0, False: 0]
  ------------------
 2125|      0|        case glslang::EvsFractionalEven:   mode = spv::ExecutionMode::SpacingFractionalEven; break;
  ------------------
  |  Branch (2125:9): [True: 0, False: 0]
  ------------------
 2126|      0|        case glslang::EvsFractionalOdd:    mode = spv::ExecutionMode::SpacingFractionalOdd;  break;
  ------------------
  |  Branch (2126:9): [True: 0, False: 0]
  ------------------
 2127|      0|        default:                           mode = spv::ExecutionMode::Max;                   break;
  ------------------
  |  Branch (2127:9): [True: 0, False: 0]
  ------------------
 2128|      0|        }
 2129|      0|        if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2129:13): [True: 0, False: 0]
  ------------------
 2130|      0|            builder.addExecutionMode(shaderEntry, mode);
 2131|       |
 2132|      0|        switch (glslangIntermediate->getVertexOrder()) {
 2133|      0|        case glslang::EvoCw:     mode = spv::ExecutionMode::VertexOrderCw;  break;
  ------------------
  |  Branch (2133:9): [True: 0, False: 0]
  ------------------
 2134|      0|        case glslang::EvoCcw:    mode = spv::ExecutionMode::VertexOrderCcw; break;
  ------------------
  |  Branch (2134:9): [True: 0, False: 0]
  ------------------
 2135|      0|        default:                 mode = spv::ExecutionMode::Max;            break;
  ------------------
  |  Branch (2135:9): [True: 0, False: 0]
  ------------------
 2136|      0|        }
 2137|      0|        if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2137:13): [True: 0, False: 0]
  ------------------
 2138|      0|            builder.addExecutionMode(shaderEntry, mode);
 2139|       |
 2140|      0|        if (glslangIntermediate->getPointMode())
  ------------------
  |  Branch (2140:13): [True: 0, False: 0]
  ------------------
 2141|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::PointMode);
 2142|      0|        break;
 2143|       |
 2144|      0|    case EShLangGeometry:
  ------------------
  |  Branch (2144:5): [True: 0, False: 42]
  ------------------
 2145|      0|        builder.addCapability(spv::Capability::Geometry);
 2146|      0|        switch (glslangIntermediate->getInputPrimitive()) {
 2147|      0|        case glslang::ElgPoints:             mode = spv::ExecutionMode::InputPoints;             break;
  ------------------
  |  Branch (2147:9): [True: 0, False: 0]
  ------------------
 2148|      0|        case glslang::ElgLines:              mode = spv::ExecutionMode::InputLines;              break;
  ------------------
  |  Branch (2148:9): [True: 0, False: 0]
  ------------------
 2149|      0|        case glslang::ElgLinesAdjacency:     mode = spv::ExecutionMode::InputLinesAdjacency;     break;
  ------------------
  |  Branch (2149:9): [True: 0, False: 0]
  ------------------
 2150|      0|        case glslang::ElgTriangles:          mode = spv::ExecutionMode::Triangles;               break;
  ------------------
  |  Branch (2150:9): [True: 0, False: 0]
  ------------------
 2151|      0|        case glslang::ElgTrianglesAdjacency: mode = spv::ExecutionMode::InputTrianglesAdjacency; break;
  ------------------
  |  Branch (2151:9): [True: 0, False: 0]
  ------------------
 2152|      0|        default:                             mode = spv::ExecutionMode::Max;                     break;
  ------------------
  |  Branch (2152:9): [True: 0, False: 0]
  ------------------
 2153|      0|        }
 2154|      0|        if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2154:13): [True: 0, False: 0]
  ------------------
 2155|      0|            builder.addExecutionMode(shaderEntry, mode);
 2156|       |
 2157|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::Invocations, glslangIntermediate->getInvocations());
 2158|       |
 2159|      0|        switch (glslangIntermediate->getOutputPrimitive()) {
 2160|      0|        case glslang::ElgPoints:        mode = spv::ExecutionMode::OutputPoints;                 break;
  ------------------
  |  Branch (2160:9): [True: 0, False: 0]
  ------------------
 2161|      0|        case glslang::ElgLineStrip:     mode = spv::ExecutionMode::OutputLineStrip;              break;
  ------------------
  |  Branch (2161:9): [True: 0, False: 0]
  ------------------
 2162|      0|        case glslang::ElgTriangleStrip: mode = spv::ExecutionMode::OutputTriangleStrip;          break;
  ------------------
  |  Branch (2162:9): [True: 0, False: 0]
  ------------------
 2163|      0|        default:                        mode = spv::ExecutionMode::Max;                          break;
  ------------------
  |  Branch (2163:9): [True: 0, False: 0]
  ------------------
 2164|      0|        }
 2165|      0|        if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2165:13): [True: 0, False: 0]
  ------------------
 2166|      0|            builder.addExecutionMode(shaderEntry, mode);
 2167|      0|        builder.addExecutionMode(shaderEntry, spv::ExecutionMode::OutputVertices, glslangIntermediate->getVertices());
 2168|      0|        break;
 2169|       |
 2170|      0|    case EShLangRayGen:
  ------------------
  |  Branch (2170:5): [True: 0, False: 42]
  ------------------
 2171|      0|    case EShLangIntersect:
  ------------------
  |  Branch (2171:5): [True: 0, False: 42]
  ------------------
 2172|      0|    case EShLangAnyHit:
  ------------------
  |  Branch (2172:5): [True: 0, False: 42]
  ------------------
 2173|      0|    case EShLangClosestHit:
  ------------------
  |  Branch (2173:5): [True: 0, False: 42]
  ------------------
 2174|      0|    case EShLangMiss:
  ------------------
  |  Branch (2174:5): [True: 0, False: 42]
  ------------------
 2175|      0|    case EShLangCallable:
  ------------------
  |  Branch (2175:5): [True: 0, False: 42]
  ------------------
 2176|      0|    {
 2177|      0|        auto& extensions = glslangIntermediate->getRequestedExtensions();
 2178|      0|        if (extensions.find("GL_NV_ray_tracing") == extensions.end()) {
  ------------------
  |  Branch (2178:13): [True: 0, False: 0]
  ------------------
 2179|      0|            builder.addCapability(spv::Capability::RayTracingKHR);
 2180|      0|            builder.addExtension("SPV_KHR_ray_tracing");
 2181|      0|        }
 2182|      0|        else {
 2183|      0|            builder.addCapability(spv::Capability::RayTracingNV);
 2184|      0|            builder.addExtension("SPV_NV_ray_tracing");
 2185|      0|        }
 2186|      0|        if (glslangIntermediate->getStage() != EShLangRayGen && glslangIntermediate->getStage() != EShLangCallable) {
  ------------------
  |  Branch (2186:13): [True: 0, False: 0]
  |  Branch (2186:65): [True: 0, False: 0]
  ------------------
 2187|      0|            if (extensions.find("GL_EXT_ray_cull_mask") != extensions.end()) {
  ------------------
  |  Branch (2187:17): [True: 0, False: 0]
  ------------------
 2188|      0|                builder.addCapability(spv::Capability::RayCullMaskKHR);
 2189|      0|                builder.addExtension("SPV_KHR_ray_cull_mask");
 2190|      0|            }
 2191|      0|            if (extensions.find("GL_EXT_ray_tracing_position_fetch") != extensions.end()) {
  ------------------
  |  Branch (2191:17): [True: 0, False: 0]
  ------------------
 2192|      0|                builder.addCapability(spv::Capability::RayTracingPositionFetchKHR);
 2193|      0|                builder.addExtension("SPV_KHR_ray_tracing_position_fetch");
 2194|      0|            }
 2195|      0|        }
 2196|      0|        break;
 2197|      0|    }
 2198|      0|    case EShLangTask:
  ------------------
  |  Branch (2198:5): [True: 0, False: 42]
  ------------------
 2199|      0|    case EShLangMesh:
  ------------------
  |  Branch (2199:5): [True: 0, False: 42]
  ------------------
 2200|      0|        if(isMeshShaderExt) {
  ------------------
  |  Branch (2200:12): [True: 0, False: 0]
  ------------------
 2201|      0|            builder.addCapability(spv::Capability::MeshShadingEXT);
 2202|      0|            builder.addExtension(spv::E_SPV_EXT_mesh_shader);
 2203|      0|        } else {
 2204|      0|            builder.addCapability(spv::Capability::MeshShadingNV);
 2205|      0|            builder.addExtension(spv::E_SPV_NV_mesh_shader);
 2206|      0|        }
 2207|      0|        if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_6) {
  ------------------
  |  Branch (2207:13): [True: 0, False: 0]
  ------------------
 2208|      0|            std::vector<spv::Id> dimConstId;
 2209|      0|            for (int dim = 0; dim < 3; ++dim) {
  ------------------
  |  Branch (2209:31): [True: 0, False: 0]
  ------------------
 2210|      0|                bool specConst = (glslangIntermediate->getLocalSizeSpecId(dim) != glslang::TQualifier::layoutNotSet);
 2211|      0|                dimConstId.push_back(builder.makeUintConstant(glslangIntermediate->getLocalSize(dim), specConst));
 2212|      0|                if (specConst) {
  ------------------
  |  Branch (2212:21): [True: 0, False: 0]
  ------------------
 2213|      0|                    builder.addDecoration(dimConstId.back(), spv::Decoration::SpecId,
 2214|      0|                                          glslangIntermediate->getLocalSizeSpecId(dim));
 2215|      0|                }
 2216|      0|            }
 2217|      0|            builder.addExecutionModeId(shaderEntry, spv::ExecutionMode::LocalSizeId, dimConstId);
 2218|      0|        } else {
 2219|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::LocalSize, glslangIntermediate->getLocalSize(0),
 2220|      0|                                                                               glslangIntermediate->getLocalSize(1),
 2221|      0|                                                                               glslangIntermediate->getLocalSize(2));
 2222|      0|        }
 2223|      0|        addDerivativeGroupExecutionMode(builder, *glslangIntermediate, shaderEntry);
 2224|      0|        if (glslangIntermediate->getStage() == EShLangMesh) {
  ------------------
  |  Branch (2224:13): [True: 0, False: 0]
  ------------------
 2225|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::OutputVertices,
 2226|      0|                glslangIntermediate->getVertices());
 2227|      0|            builder.addExecutionMode(shaderEntry, spv::ExecutionMode::OutputPrimitivesNV,
 2228|      0|                glslangIntermediate->getPrimitives());
 2229|       |
 2230|      0|            switch (glslangIntermediate->getOutputPrimitive()) {
 2231|      0|            case glslang::ElgPoints:        mode = spv::ExecutionMode::OutputPoints;      break;
  ------------------
  |  Branch (2231:13): [True: 0, False: 0]
  ------------------
 2232|      0|            case glslang::ElgLines:         mode = spv::ExecutionMode::OutputLinesNV;     break;
  ------------------
  |  Branch (2232:13): [True: 0, False: 0]
  ------------------
 2233|      0|            case glslang::ElgTriangles:     mode = spv::ExecutionMode::OutputTrianglesNV; break;
  ------------------
  |  Branch (2233:13): [True: 0, False: 0]
  ------------------
 2234|      0|            default:                        mode = spv::ExecutionMode::Max;               break;
  ------------------
  |  Branch (2234:13): [True: 0, False: 0]
  ------------------
 2235|      0|            }
 2236|      0|            if (mode != spv::ExecutionMode::Max)
  ------------------
  |  Branch (2236:17): [True: 0, False: 0]
  ------------------
 2237|      0|                builder.addExecutionMode(shaderEntry, (spv::ExecutionMode)mode);
 2238|      0|        }
 2239|      0|        break;
 2240|       |
 2241|      0|    default:
  ------------------
  |  Branch (2241:5): [True: 0, False: 42]
  ------------------
 2242|      0|        break;
 2243|     42|    }
 2244|       |
 2245|       |    //
 2246|       |    // Add SPIR-V requirements (GL_EXT_spirv_intrinsics)
 2247|       |    //
 2248|     42|    if (glslangIntermediate->hasSpirvRequirement()) {
  ------------------
  |  Branch (2248:9): [True: 0, False: 42]
  ------------------
 2249|      0|        const glslang::TSpirvRequirement& spirvRequirement = glslangIntermediate->getSpirvRequirement();
 2250|       |
 2251|       |        // Add SPIR-V extension requirement
 2252|      0|        for (auto& extension : spirvRequirement.extensions)
  ------------------
  |  Branch (2252:30): [True: 0, False: 0]
  ------------------
 2253|      0|            builder.addExtension(extension.c_str());
 2254|       |
 2255|       |        // Add SPIR-V capability requirement
 2256|      0|        for (auto capability : spirvRequirement.capabilities)
  ------------------
  |  Branch (2256:30): [True: 0, False: 0]
  ------------------
 2257|      0|            builder.addCapability(static_cast<spv::Capability>(capability));
 2258|      0|    }
 2259|       |
 2260|       |    //
 2261|       |    // Add SPIR-V execution mode qualifiers (GL_EXT_spirv_intrinsics)
 2262|       |    //
 2263|     42|    if (glslangIntermediate->hasSpirvExecutionMode()) {
  ------------------
  |  Branch (2263:9): [True: 0, False: 42]
  ------------------
 2264|      0|        const glslang::TSpirvExecutionMode spirvExecutionMode = glslangIntermediate->getSpirvExecutionMode();
 2265|       |
 2266|       |        // Add spirv_execution_mode
 2267|      0|        for (const auto& mode : spirvExecutionMode.modes) {
  ------------------
  |  Branch (2267:31): [True: 0, False: 0]
  ------------------
 2268|      0|            for (const auto& operands : mode.second) {
  ------------------
  |  Branch (2268:39): [True: 0, False: 0]
  ------------------
 2269|      0|                if (!operands.empty()) {
  ------------------
  |  Branch (2269:21): [True: 0, False: 0]
  ------------------
 2270|      0|                    std::vector<unsigned> literals;
 2271|      0|                    TranslateLiterals(operands, literals);
 2272|      0|                    builder.addExecutionMode(shaderEntry, static_cast<spv::ExecutionMode>(mode.first), literals);
 2273|      0|                } else {
 2274|      0|                    builder.addExecutionMode(shaderEntry, static_cast<spv::ExecutionMode>(mode.first));
 2275|      0|                }
 2276|      0|            }
 2277|      0|        }
 2278|       |
 2279|       |        // Add spirv_execution_mode_id
 2280|      0|        for (const auto& modeId : spirvExecutionMode.modeIds) {
  ------------------
  |  Branch (2280:33): [True: 0, False: 0]
  ------------------
 2281|      0|            for (const auto& extraOperands : modeId.second) {
  ------------------
  |  Branch (2281:44): [True: 0, False: 0]
  ------------------
 2282|      0|                std::vector<spv::Id> operandIds;
 2283|      0|                assert(!extraOperands.empty());
 2284|      0|                for (auto extraOperand : extraOperands) {
  ------------------
  |  Branch (2284:40): [True: 0, False: 0]
  ------------------
 2285|      0|                    if (extraOperand->getType().getQualifier().isSpecConstant()) {
  ------------------
  |  Branch (2285:25): [True: 0, False: 0]
  ------------------
 2286|       |                        // A bare specialization constant is referenced by the <id> of its symbol.
 2287|       |                        // A specialization-constant expression (e.g. sc + 1) is not a symbol node, so
 2288|       |                        // emit it as a spec-constant-op and reference that result <id> instead of
 2289|       |                        // dereferencing a null symbol.
 2290|      0|                        if (auto* specSymbol = extraOperand->getAsSymbolNode()) {
  ------------------
  |  Branch (2290:35): [True: 0, False: 0]
  ------------------
 2291|      0|                            operandIds.push_back(getSymbolId(specSymbol));
 2292|      0|                        } else {
 2293|      0|                            const_cast<glslang::TIntermTyped*>(extraOperand)->traverse(this);
 2294|      0|                            operandIds.push_back(accessChainLoad(extraOperand->getType()));
 2295|      0|                        }
 2296|      0|                    } else {
 2297|      0|                        operandIds.push_back(createSpvConstant(*extraOperand));
 2298|      0|                    }
 2299|      0|                }
 2300|      0|                builder.addExecutionModeId(shaderEntry, static_cast<spv::ExecutionMode>(modeId.first), operandIds);
 2301|      0|            }
 2302|      0|        }
 2303|      0|    }
 2304|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_121DescHeapLayoutEmitterC2ERNS_22TGlslangToSpvTraverserE:
 6888|     42|    : traverser(traverser)
 6889|     42|{
 6890|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_123TranslateExecutionModelE11EShLanguageb:
  430|     42|{
  431|     42|    switch (stage) {
  432|      0|    case EShLangVertex:           return spv::ExecutionModel::Vertex;
  ------------------
  |  Branch (432:5): [True: 0, False: 42]
  ------------------
  433|     42|    case EShLangFragment:         return spv::ExecutionModel::Fragment;
  ------------------
  |  Branch (433:5): [True: 42, False: 0]
  ------------------
  434|      0|    case EShLangCompute:          return spv::ExecutionModel::GLCompute;
  ------------------
  |  Branch (434:5): [True: 0, False: 42]
  ------------------
  435|      0|    case EShLangTessControl:      return spv::ExecutionModel::TessellationControl;
  ------------------
  |  Branch (435:5): [True: 0, False: 42]
  ------------------
  436|      0|    case EShLangTessEvaluation:   return spv::ExecutionModel::TessellationEvaluation;
  ------------------
  |  Branch (436:5): [True: 0, False: 42]
  ------------------
  437|      0|    case EShLangGeometry:         return spv::ExecutionModel::Geometry;
  ------------------
  |  Branch (437:5): [True: 0, False: 42]
  ------------------
  438|      0|    case EShLangRayGen:           return spv::ExecutionModel::RayGenerationKHR;
  ------------------
  |  Branch (438:5): [True: 0, False: 42]
  ------------------
  439|      0|    case EShLangIntersect:        return spv::ExecutionModel::IntersectionKHR;
  ------------------
  |  Branch (439:5): [True: 0, False: 42]
  ------------------
  440|      0|    case EShLangAnyHit:           return spv::ExecutionModel::AnyHitKHR;
  ------------------
  |  Branch (440:5): [True: 0, False: 42]
  ------------------
  441|      0|    case EShLangClosestHit:       return spv::ExecutionModel::ClosestHitKHR;
  ------------------
  |  Branch (441:5): [True: 0, False: 42]
  ------------------
  442|      0|    case EShLangMiss:             return spv::ExecutionModel::MissKHR;
  ------------------
  |  Branch (442:5): [True: 0, False: 42]
  ------------------
  443|      0|    case EShLangCallable:         return spv::ExecutionModel::CallableKHR;
  ------------------
  |  Branch (443:5): [True: 0, False: 42]
  ------------------
  444|      0|    case EShLangTask:             return (isMeshShaderEXT)? spv::ExecutionModel::TaskEXT : spv::ExecutionModel::TaskNV;
  ------------------
  |  Branch (444:5): [True: 0, False: 42]
  |  Branch (444:42): [True: 0, False: 0]
  ------------------
  445|      0|    case EShLangMesh:             return (isMeshShaderEXT)? spv::ExecutionModel::MeshEXT : spv::ExecutionModel::MeshNV;
  ------------------
  |  Branch (445:5): [True: 0, False: 42]
  |  Branch (445:42): [True: 0, False: 0]
  ------------------
  446|      0|    default:
  ------------------
  |  Branch (446:5): [True: 0, False: 42]
  ------------------
  447|       |        assert(0);
  448|      0|        return spv::ExecutionModel::Fragment;
  449|     42|    }
  450|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_123TranslateSourceLanguageEN7glslang9EShSourceE8EProfile:
  408|     42|{
  409|     42|    switch (source) {
  410|     42|    case glslang::EShSourceGlsl:
  ------------------
  |  Branch (410:5): [True: 42, False: 0]
  ------------------
  411|     42|        switch (profile) {
  412|      0|        case ENoProfile:
  ------------------
  |  Branch (412:9): [True: 0, False: 42]
  ------------------
  413|     40|        case ECoreProfile:
  ------------------
  |  Branch (413:9): [True: 40, False: 2]
  ------------------
  414|     40|        case ECompatibilityProfile:
  ------------------
  |  Branch (414:9): [True: 0, False: 42]
  ------------------
  415|     40|            return spv::SourceLanguage::GLSL;
  416|      2|        case EEsProfile:
  ------------------
  |  Branch (416:9): [True: 2, False: 40]
  ------------------
  417|      2|            return spv::SourceLanguage::ESSL;
  418|      0|        default:
  ------------------
  |  Branch (418:9): [True: 0, False: 42]
  ------------------
  419|      0|            return spv::SourceLanguage::Unknown;
  420|     42|        }
  421|      0|    case glslang::EShSourceHlsl:
  ------------------
  |  Branch (421:5): [True: 0, False: 42]
  ------------------
  422|      0|        return spv::SourceLanguage::HLSL;
  423|      0|    default:
  ------------------
  |  Branch (423:5): [True: 0, False: 42]
  ------------------
  424|      0|        return spv::SourceLanguage::Unknown;
  425|     42|    }
  426|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser11getSymbolIdEPKN7glslang13TIntermSymbolE:
12387|  10.6k|{
12388|  10.6k|    auto iter = symbolValues.find(symbol->getId());
12389|  10.6k|    spv::Id id;
12390|  10.6k|    if (symbolValues.end() != iter) {
  ------------------
  |  Branch (12390:9): [True: 9.43k, False: 1.25k]
  ------------------
12391|  9.43k|        id = iter->second;
12392|  9.43k|        return id;
12393|  9.43k|    }
12394|       |
12395|       |    // it was not found, create it
12396|  1.25k|    spv::BuiltIn builtIn = TranslateBuiltInDecoration(symbol->getQualifier().builtIn, false);
12397|  1.25k|    auto forcedType = getForcedType(symbol->getQualifier().builtIn, symbol->getType());
12398|       |
12399|       |    // There are pairs of symbols that map to the same SPIR-V built-in:
12400|       |    // gl_ObjectToWorldEXT and gl_ObjectToWorld3x4EXT, and gl_WorldToObjectEXT
12401|       |    // and gl_WorldToObject3x4EXT. SPIR-V forbids having two OpVariables
12402|       |    // with the same BuiltIn in the same storage class, so we must re-use one.
12403|  1.25k|    const bool mayNeedToReuseBuiltIn =
12404|  1.25k|        builtIn == spv::BuiltIn::ObjectToWorldKHR ||
  ------------------
  |  Branch (12404:9): [True: 0, False: 1.25k]
  ------------------
12405|  1.25k|        builtIn == spv::BuiltIn::WorldToObjectKHR;
  ------------------
  |  Branch (12405:9): [True: 0, False: 1.25k]
  ------------------
12406|       |
12407|       |    // EXT_descriptor_heap
12408|  1.25k|    const bool needToRemapDescHeap =
12409|  1.25k|        builtIn == spv::BuiltIn::ResourceHeapEXT || builtIn == spv::BuiltIn::SamplerHeapEXT;
  ------------------
  |  Branch (12409:9): [True: 0, False: 1.25k]
  |  Branch (12409:53): [True: 0, False: 1.25k]
  ------------------
12410|       |
12411|  1.25k|    if (mayNeedToReuseBuiltIn || needToRemapDescHeap) {
  ------------------
  |  Branch (12411:9): [True: 0, False: 1.25k]
  |  Branch (12411:34): [True: 0, False: 1.25k]
  ------------------
12412|      0|        auto iter = builtInVariableIds.find(uint32_t(builtIn));
12413|      0|        if (builtInVariableIds.end() != iter) {
  ------------------
  |  Branch (12413:13): [True: 0, False: 0]
  ------------------
12414|      0|            id = iter->second;
12415|      0|            symbolValues[symbol->getId()] = id;
12416|      0|            if (needToRemapDescHeap && options.emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (12416:17): [True: 0, False: 0]
  |  Branch (12416:40): [True: 0, False: 0]
  ------------------
12417|       |                // Preserve each source declaration even though all views reuse
12418|       |                // one built-in. A heap view has no standalone OpVariable that
12419|       |                // can be used as a DebugGlobalVariable's location.
12420|      0|                const auto savedAccessChain = builder.getAccessChain();
12421|      0|                builder.setDebugSourceLocation(symbol->getLoc().line, symbol->getLoc().getFilename());
12422|      0|                spv::Id debugTypeId = convertGlslangToDebugType(symbol->getType());
12423|      0|                builder.setAccessChain(savedAccessChain);
12424|      0|                builder.setDebugSourceLocation(symbol->getLoc().line, symbol->getLoc().getFilename());
12425|      0|                builder.createDebugGlobalVariable(debugTypeId, symbol->getName().c_str(),
12426|      0|                                                  builder.makeDebugInfoNone());
12427|      0|            }
12428|      0|            if (forcedType.second != spv::NoType)
  ------------------
  |  Branch (12428:17): [True: 0, False: 0]
  ------------------
12429|      0|                forceType[id] = forcedType.second;
12430|      0|            return id;
12431|      0|        }
12432|      0|    }
12433|       |
12434|  1.25k|    if (symbol->getBasicType() == glslang::EbtFunction) {
  ------------------
  |  Branch (12434:9): [True: 0, False: 1.25k]
  ------------------
12435|      0|        return 0;
12436|      0|    }
12437|       |
12438|  1.25k|    id = createSpvVariable(symbol, forcedType.first);
12439|       |
12440|  1.25k|    if (mayNeedToReuseBuiltIn) {
  ------------------
  |  Branch (12440:9): [True: 0, False: 1.25k]
  ------------------
12441|      0|        builtInVariableIds.insert({uint32_t(builtIn), id});
12442|      0|    }
12443|       |
12444|  1.25k|    symbolValues[symbol->getId()] = id;
12445|  1.25k|    if (forcedType.second != spv::NoType)
  ------------------
  |  Branch (12445:9): [True: 0, False: 1.25k]
  ------------------
12446|      0|        forceType[id] = forcedType.second;
12447|       |
12448|  1.25k|    if (symbol->getBasicType() != glslang::EbtBlock) {
  ------------------
  |  Branch (12448:9): [True: 1.19k, False: 63]
  ------------------
12449|  1.19k|        builder.addDecoration(id, TranslatePrecisionDecoration(symbol->getType()));
12450|  1.19k|        builder.addDecoration(id, TranslateInterpolationDecoration(symbol->getType().getQualifier()));
12451|  1.19k|        builder.addDecoration(id, TranslateAuxiliaryStorageDecoration(symbol->getType().getQualifier()));
12452|  1.19k|        addMeshNVDecoration(id, /*member*/ -1, symbol->getType().getQualifier());
12453|  1.19k|        if (symbol->getQualifier().hasComponent())
  ------------------
  |  Branch (12453:13): [True: 0, False: 1.19k]
  ------------------
12454|      0|            builder.addDecoration(id, spv::Decoration::Component, symbol->getQualifier().layoutComponent);
12455|  1.19k|        if (symbol->getQualifier().hasIndex())
  ------------------
  |  Branch (12455:13): [True: 0, False: 1.19k]
  ------------------
12456|      0|            builder.addDecoration(id, spv::Decoration::Index, symbol->getQualifier().layoutIndex);
12457|  1.19k|        if (symbol->getType().getQualifier().hasSpecConstantId()) {
  ------------------
  |  Branch (12457:13): [True: 103, False: 1.08k]
  ------------------
12458|    103|            builder.addDecoration(id, spv::Decoration::SpecId, symbol->getType().getQualifier().layoutSpecConstantId);
12459|       |            // GL_EXT_opacity_micromap_ray_query_mode: if gl_EnableOpacityMicromapEXT is materialized (i.e.
12460|       |            // it is read somewhere), remember its spec constant so finishSpv() references this same one for
12461|       |            // the OpacityMicromapIdKHR execution mode rather than synthesizing a duplicate SpecId.
12462|    103|            if (glslangIntermediate->getEnableOpacityMicromapSpecId() != glslang::TQualifier::layoutNotSet &&
  ------------------
  |  Branch (12462:17): [True: 0, False: 103]
  ------------------
12463|      0|                symbol->getName() == "gl_EnableOpacityMicromapEXT")
  ------------------
  |  Branch (12463:17): [True: 0, False: 0]
  ------------------
12464|      0|                opacityMicromapEnableConstId = id;
12465|    103|        }
12466|       |        // atomic counters use this:
12467|  1.19k|        if (symbol->getQualifier().hasOffset())
  ------------------
  |  Branch (12467:13): [True: 0, False: 1.19k]
  ------------------
12468|      0|            builder.addDecoration(id, spv::Decoration::Offset, symbol->getQualifier().layoutOffset);
12469|  1.19k|    }
12470|       |
12471|  1.25k|    if (symbol->getQualifier().hasLocation()) {
  ------------------
  |  Branch (12471:9): [True: 74, False: 1.17k]
  ------------------
12472|     74|        if (!(glslangIntermediate->isRayTracingStage() &&
  ------------------
  |  Branch (12472:15): [True: 0, False: 74]
  ------------------
12473|      0|              (glslangIntermediate->IsRequestedExtension(glslang::E_GL_EXT_ray_tracing) ||
  ------------------
  |  Branch (12473:16): [True: 0, False: 0]
  ------------------
12474|      0|               glslangIntermediate->IsRequestedExtension(glslang::E_GL_NV_shader_invocation_reorder) ||
  ------------------
  |  Branch (12474:16): [True: 0, False: 0]
  ------------------
12475|      0|               glslangIntermediate->IsRequestedExtension(glslang::E_GL_EXT_shader_invocation_reorder))
  ------------------
  |  Branch (12475:16): [True: 0, False: 0]
  ------------------
12476|      0|              && (builder.getStorageClass(id) == spv::StorageClass::RayPayloadKHR ||
  ------------------
  |  Branch (12476:19): [True: 0, False: 0]
  ------------------
12477|      0|                  builder.getStorageClass(id) == spv::StorageClass::IncomingRayPayloadKHR ||
  ------------------
  |  Branch (12477:19): [True: 0, False: 0]
  ------------------
12478|      0|                  builder.getStorageClass(id) == spv::StorageClass::CallableDataKHR ||
  ------------------
  |  Branch (12478:19): [True: 0, False: 0]
  ------------------
12479|      0|                  builder.getStorageClass(id) == spv::StorageClass::IncomingCallableDataKHR ||
  ------------------
  |  Branch (12479:19): [True: 0, False: 0]
  ------------------
12480|      0|                  builder.getStorageClass(id) == spv::StorageClass::HitObjectAttributeEXT ||
  ------------------
  |  Branch (12480:19): [True: 0, False: 0]
  ------------------
12481|     74|                  builder.getStorageClass(id) == spv::StorageClass::HitObjectAttributeNV))) {
  ------------------
  |  Branch (12481:19): [True: 0, False: 0]
  ------------------
12482|       |            // Location values are used to link TraceRayKHR/ExecuteCallableKHR/HitObjectGetAttributesNV
12483|       |            // to corresponding variables but are not valid in SPIRV since they are supported only
12484|       |            // for Input/Output Storage classes.
12485|     74|            builder.addDecoration(id, spv::Decoration::Location, symbol->getQualifier().layoutLocation);
12486|     74|        }
12487|     74|    }
12488|       |
12489|  1.25k|    builder.addDecoration(id, TranslateInvariantDecoration(symbol->getType().getQualifier()));
12490|  1.25k|    if (symbol->getQualifier().hasStream() && glslangIntermediate->isMultiStream()) {
  ------------------
  |  Branch (12490:9): [True: 0, False: 1.25k]
  |  Branch (12490:47): [True: 0, False: 0]
  ------------------
12491|      0|        builder.addCapability(spv::Capability::GeometryStreams);
12492|      0|        builder.addDecoration(id, spv::Decoration::Stream, symbol->getQualifier().layoutStream);
12493|      0|    }
12494|  1.25k|    if (symbol->getQualifier().hasSet())
  ------------------
  |  Branch (12494:9): [True: 95, False: 1.15k]
  ------------------
12495|     95|        builder.addDecoration(id, spv::Decoration::DescriptorSet, symbol->getQualifier().layoutSet);
12496|  1.15k|    else if (IsDescriptorResource(symbol->getType())) {
  ------------------
  |  Branch (12496:14): [True: 143, False: 1.01k]
  ------------------
12497|       |        // default to 0
12498|    143|        builder.addDecoration(id, spv::Decoration::DescriptorSet, 0);
12499|    143|    }
12500|  1.25k|    if (symbol->getQualifier().hasBinding())
  ------------------
  |  Branch (12500:9): [True: 238, False: 1.01k]
  ------------------
12501|    238|        builder.addDecoration(id, spv::Decoration::Binding, symbol->getQualifier().layoutBinding);
12502|  1.01k|    else if (IsDescriptorResource(symbol->getType())) {
  ------------------
  |  Branch (12502:14): [True: 0, False: 1.01k]
  ------------------
12503|       |        // default to 0
12504|      0|        builder.addDecoration(id, spv::Decoration::Binding, 0);
12505|      0|    }
12506|  1.25k|    if (symbol->getQualifier().hasAttachment())
  ------------------
  |  Branch (12506:9): [True: 4, False: 1.24k]
  ------------------
12507|      4|        builder.addDecoration(id, spv::Decoration::InputAttachmentIndex, symbol->getQualifier().layoutAttachment);
12508|  1.25k|    if (glslangIntermediate->getXfbMode()) {
  ------------------
  |  Branch (12508:9): [True: 0, False: 1.25k]
  ------------------
12509|      0|        builder.addCapability(spv::Capability::TransformFeedback);
12510|      0|        if (symbol->getQualifier().hasXfbBuffer()) {
  ------------------
  |  Branch (12510:13): [True: 0, False: 0]
  ------------------
12511|      0|            builder.addDecoration(id, spv::Decoration::XfbBuffer, symbol->getQualifier().layoutXfbBuffer);
12512|      0|            unsigned stride = glslangIntermediate->getXfbStride(symbol->getQualifier().layoutXfbBuffer);
12513|      0|            if (stride != glslang::TQualifier::layoutXfbStrideEnd)
  ------------------
  |  Branch (12513:17): [True: 0, False: 0]
  ------------------
12514|      0|                builder.addDecoration(id, spv::Decoration::XfbStride, stride);
12515|      0|        }
12516|      0|        if (symbol->getQualifier().hasXfbOffset())
  ------------------
  |  Branch (12516:13): [True: 0, False: 0]
  ------------------
12517|      0|            builder.addDecoration(id, spv::Decoration::Offset, symbol->getQualifier().layoutXfbOffset);
12518|      0|    }
12519|       |
12520|       |    // add built-in variable decoration
12521|  1.25k|    if (builtIn != spv::BuiltIn::Max) {
  ------------------
  |  Branch (12521:9): [True: 0, False: 1.25k]
  ------------------
12522|       |        // WorkgroupSize deprecated in spirv1.6
12523|      0|        if (glslangIntermediate->getSpv().spv < glslang::EShTargetSpv_1_6 ||
  ------------------
  |  Branch (12523:13): [True: 0, False: 0]
  ------------------
12524|      0|            builtIn != spv::BuiltIn::WorkgroupSize)
  ------------------
  |  Branch (12524:13): [True: 0, False: 0]
  ------------------
12525|      0|            builder.addDecoration(id, spv::Decoration::BuiltIn, (int)builtIn);
12526|      0|    }
12527|       |
12528|       |    // Add volatile decoration to HelperInvocation for spirv1.6 and beyond
12529|  1.25k|    if (builtIn == spv::BuiltIn::HelperInvocation &&
  ------------------
  |  Branch (12529:9): [True: 0, False: 1.25k]
  ------------------
12530|      0|        !glslangIntermediate->usingVulkanMemoryModel() &&
  ------------------
  |  Branch (12530:9): [True: 0, False: 0]
  ------------------
12531|      0|        glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_6) {
  ------------------
  |  Branch (12531:9): [True: 0, False: 0]
  ------------------
12532|      0|        builder.addDecoration(id, spv::Decoration::Volatile);
12533|      0|    }
12534|       |
12535|       |    // Subgroup builtins which have input storage class are volatile for ray tracing stages.
12536|  1.25k|    if (symbol->getType().isImage() || symbol->getQualifier().isPipeInput()) {
  ------------------
  |  Branch (12536:9): [True: 84, False: 1.16k]
  |  Branch (12536:40): [True: 67, False: 1.10k]
  ------------------
12537|    151|        std::vector<spv::Decoration> memory;
12538|    151|        TranslateMemoryDecoration(symbol->getType().getQualifier(), memory,
12539|    151|            glslangIntermediate->usingVulkanMemoryModel());
12540|    179|        for (unsigned int i = 0; i < memory.size(); ++i)
  ------------------
  |  Branch (12540:34): [True: 28, False: 151]
  ------------------
12541|     28|            builder.addDecoration(id, memory[i]);
12542|    151|    }
12543|       |
12544|  1.25k|    if (builtIn == spv::BuiltIn::SampleMask) {
  ------------------
  |  Branch (12544:9): [True: 0, False: 1.25k]
  ------------------
12545|      0|          spv::Decoration decoration;
12546|       |          // GL_NV_sample_mask_override_coverage extension
12547|      0|          if (glslangIntermediate->getLayoutOverrideCoverage())
  ------------------
  |  Branch (12547:15): [True: 0, False: 0]
  ------------------
12548|      0|              decoration = spv::Decoration::OverrideCoverageNV;
12549|      0|          else
12550|      0|              decoration = spv::Decoration::Max;
12551|      0|        builder.addDecoration(id, decoration);
12552|      0|        if (decoration != spv::Decoration::Max) {
  ------------------
  |  Branch (12552:13): [True: 0, False: 0]
  ------------------
12553|      0|            builder.addCapability(spv::Capability::SampleMaskOverrideCoverageNV);
12554|      0|            builder.addExtension(spv::E_SPV_NV_sample_mask_override_coverage);
12555|      0|        }
12556|      0|    }
12557|  1.25k|    else if (builtIn == spv::BuiltIn::Layer) {
  ------------------
  |  Branch (12557:14): [True: 0, False: 1.25k]
  ------------------
12558|       |        // SPV_NV_viewport_array2 extension
12559|      0|        if (symbol->getQualifier().layoutViewportRelative) {
  ------------------
  |  Branch (12559:13): [True: 0, False: 0]
  ------------------
12560|      0|            builder.addDecoration(id, spv::Decoration::ViewportRelativeNV);
12561|      0|            builder.addCapability(spv::Capability::ShaderViewportMaskNV);
12562|      0|            builder.addExtension(spv::E_SPV_NV_viewport_array2);
12563|      0|        }
12564|      0|        if (symbol->getQualifier().layoutSecondaryViewportRelativeOffset != -2048) {
  ------------------
  |  Branch (12564:13): [True: 0, False: 0]
  ------------------
12565|      0|            builder.addDecoration(id, spv::Decoration::SecondaryViewportRelativeNV,
12566|      0|                                  symbol->getQualifier().layoutSecondaryViewportRelativeOffset);
12567|      0|            builder.addCapability(spv::Capability::ShaderStereoViewNV);
12568|      0|            builder.addExtension(spv::E_SPV_NV_stereo_view_rendering);
12569|      0|        }
12570|      0|    }
12571|       |
12572|  1.25k|    if (symbol->getQualifier().layoutPassthrough) {
  ------------------
  |  Branch (12572:9): [True: 0, False: 1.25k]
  ------------------
12573|      0|        builder.addDecoration(id, spv::Decoration::PassthroughNV);
12574|      0|        builder.addCapability(spv::Capability::GeometryShaderPassthroughNV);
12575|      0|        builder.addExtension(spv::E_SPV_NV_geometry_shader_passthrough);
12576|      0|    }
12577|  1.25k|    if (symbol->getQualifier().pervertexNV) {
  ------------------
  |  Branch (12577:9): [True: 0, False: 1.25k]
  ------------------
12578|      0|        builder.addDecoration(id, spv::Decoration::PerVertexNV);
12579|      0|        builder.addCapability(spv::Capability::FragmentBarycentricNV);
12580|      0|        builder.addExtension(spv::E_SPV_NV_fragment_shader_barycentric);
12581|      0|    }
12582|       |
12583|  1.25k|    if (symbol->getQualifier().pervertexEXT) {
  ------------------
  |  Branch (12583:9): [True: 0, False: 1.25k]
  ------------------
12584|      0|        builder.addDecoration(id, spv::Decoration::PerVertexKHR);
12585|      0|        builder.addCapability(spv::Capability::FragmentBarycentricKHR);
12586|      0|        builder.addExtension(spv::E_SPV_KHR_fragment_shader_barycentric);
12587|      0|    }
12588|       |
12589|  1.25k|    if (glslangIntermediate->getHlslFunctionality1() && symbol->getType().getQualifier().semanticName != nullptr) {
  ------------------
  |  Branch (12589:9): [True: 0, False: 1.25k]
  |  Branch (12589:57): [True: 0, False: 0]
  ------------------
12590|      0|        builder.addExtension("SPV_GOOGLE_hlsl_functionality1");
12591|      0|        builder.addDecoration(id, spv::Decoration::HlslSemanticGOOGLE,
12592|      0|                              symbol->getType().getQualifier().semanticName);
12593|      0|    }
12594|       |
12595|  1.25k|    if (symbol->isReference()) {
  ------------------
  |  Branch (12595:9): [True: 0, False: 1.25k]
  ------------------
12596|      0|        builder.addDecoration(id, symbol->getType().getQualifier().restrict ?
  ------------------
  |  Branch (12596:35): [True: 0, False: 0]
  ------------------
12597|      0|            spv::Decoration::RestrictPointerEXT : spv::Decoration::AliasedPointerEXT);
12598|      0|    }
12599|       |
12600|       |    // Add SPIR-V decorations (GL_EXT_spirv_intrinsics)
12601|  1.25k|    if (symbol->getType().getQualifier().hasSpirvDecorate())
  ------------------
  |  Branch (12601:9): [True: 0, False: 1.25k]
  ------------------
12602|      0|        applySpirvDecorate(symbol->getType(), id, {});
12603|       |
12604|  1.25k|    if (symbol->getQualifier().hasBank()) {
  ------------------
  |  Branch (12604:9): [True: 0, False: 1.25k]
  ------------------
12605|      0|        builder.addExtension(spv::E_SPV_NV_push_constant_bank);
12606|      0|        builder.addCapability(spv::Capability::PushConstantBanksNV);
12607|      0|        builder.addDecoration(id, spv::Decoration::BankNV, symbol->getQualifier().layoutBank);
12608|      0|    }
12609|       |
12610|  1.25k|    if (symbol->getQualifier().hasMemberOffset()) {
  ------------------
  |  Branch (12610:9): [True: 0, False: 1.25k]
  ------------------
12611|      0|        builder.addExtension(spv::E_SPV_NV_push_constant_bank);
12612|      0|        builder.addCapability(spv::Capability::PushConstantBanksNV);
12613|      0|        builder.addDecoration(id, spv::Decoration::MemberOffsetNV, symbol->getQualifier().layoutMemberOffset);
12614|      0|    }
12615|       |
12616|  1.25k|    return id;
12617|  1.25k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser26TranslateBuiltInDecorationEN7glslang16TBuiltInVariableEb:
  801|  1.49k|{
  802|  1.49k|    switch (builtIn) {
  803|      0|    case glslang::EbvPointSize:
  ------------------
  |  Branch (803:5): [True: 0, False: 1.49k]
  ------------------
  804|       |        // Defer adding the capability until the built-in is actually used.
  805|      0|        if (! memberDeclaration) {
  ------------------
  |  Branch (805:13): [True: 0, False: 0]
  ------------------
  806|      0|            switch (glslangIntermediate->getStage()) {
  807|      0|            case EShLangGeometry:
  ------------------
  |  Branch (807:13): [True: 0, False: 0]
  ------------------
  808|      0|                builder.addCapability(spv::Capability::GeometryPointSize);
  809|      0|                break;
  810|      0|            case EShLangTessControl:
  ------------------
  |  Branch (810:13): [True: 0, False: 0]
  ------------------
  811|      0|            case EShLangTessEvaluation:
  ------------------
  |  Branch (811:13): [True: 0, False: 0]
  ------------------
  812|      0|                builder.addCapability(spv::Capability::TessellationPointSize);
  813|      0|                break;
  814|      0|            default:
  ------------------
  |  Branch (814:13): [True: 0, False: 0]
  ------------------
  815|      0|                break;
  816|      0|            }
  817|      0|        }
  818|      0|        return spv::BuiltIn::PointSize;
  819|       |
  820|      0|    case glslang::EbvPosition:             return spv::BuiltIn::Position;
  ------------------
  |  Branch (820:5): [True: 0, False: 1.49k]
  ------------------
  821|      0|    case glslang::EbvVertexId:             return spv::BuiltIn::VertexId;
  ------------------
  |  Branch (821:5): [True: 0, False: 1.49k]
  ------------------
  822|      0|    case glslang::EbvInstanceId:           return spv::BuiltIn::InstanceId;
  ------------------
  |  Branch (822:5): [True: 0, False: 1.49k]
  ------------------
  823|      0|    case glslang::EbvVertexIndex:          return spv::BuiltIn::VertexIndex;
  ------------------
  |  Branch (823:5): [True: 0, False: 1.49k]
  ------------------
  824|      0|    case glslang::EbvInstanceIndex:        return spv::BuiltIn::InstanceIndex;
  ------------------
  |  Branch (824:5): [True: 0, False: 1.49k]
  ------------------
  825|       |
  826|      0|    case glslang::EbvFragCoord:            return spv::BuiltIn::FragCoord;
  ------------------
  |  Branch (826:5): [True: 0, False: 1.49k]
  ------------------
  827|      0|    case glslang::EbvPointCoord:           return spv::BuiltIn::PointCoord;
  ------------------
  |  Branch (827:5): [True: 0, False: 1.49k]
  ------------------
  828|      0|    case glslang::EbvFace:                 return spv::BuiltIn::FrontFacing;
  ------------------
  |  Branch (828:5): [True: 0, False: 1.49k]
  ------------------
  829|      0|    case glslang::EbvFragDepth:            return spv::BuiltIn::FragDepth;
  ------------------
  |  Branch (829:5): [True: 0, False: 1.49k]
  ------------------
  830|       |
  831|      0|    case glslang::EbvNumWorkGroups:        return spv::BuiltIn::NumWorkgroups;
  ------------------
  |  Branch (831:5): [True: 0, False: 1.49k]
  ------------------
  832|      0|    case glslang::EbvWorkGroupSize:        return spv::BuiltIn::WorkgroupSize;
  ------------------
  |  Branch (832:5): [True: 0, False: 1.49k]
  ------------------
  833|      0|    case glslang::EbvWorkGroupId:          return spv::BuiltIn::WorkgroupId;
  ------------------
  |  Branch (833:5): [True: 0, False: 1.49k]
  ------------------
  834|      0|    case glslang::EbvLocalInvocationId:    return spv::BuiltIn::LocalInvocationId;
  ------------------
  |  Branch (834:5): [True: 0, False: 1.49k]
  ------------------
  835|      0|    case glslang::EbvLocalInvocationIndex: return spv::BuiltIn::LocalInvocationIndex;
  ------------------
  |  Branch (835:5): [True: 0, False: 1.49k]
  ------------------
  836|      0|    case glslang::EbvGlobalInvocationId:   return spv::BuiltIn::GlobalInvocationId;
  ------------------
  |  Branch (836:5): [True: 0, False: 1.49k]
  ------------------
  837|       |
  838|       |    // These *Distance capabilities logically belong here, but if the member is declared and
  839|       |    // then never used, consumers of SPIR-V prefer the capability not be declared.
  840|       |    // They are now generated when used, rather than here when declared.
  841|       |    // Potentially, the specification should be more clear what the minimum
  842|       |    // use needed is to trigger the capability.
  843|       |    //
  844|      0|    case glslang::EbvClipDistance:
  ------------------
  |  Branch (844:5): [True: 0, False: 1.49k]
  ------------------
  845|      0|        if (!memberDeclaration)
  ------------------
  |  Branch (845:13): [True: 0, False: 0]
  ------------------
  846|      0|            builder.addCapability(spv::Capability::ClipDistance);
  847|      0|        return spv::BuiltIn::ClipDistance;
  848|       |
  849|      0|    case glslang::EbvCullDistance:
  ------------------
  |  Branch (849:5): [True: 0, False: 1.49k]
  ------------------
  850|      0|        if (!memberDeclaration)
  ------------------
  |  Branch (850:13): [True: 0, False: 0]
  ------------------
  851|      0|            builder.addCapability(spv::Capability::CullDistance);
  852|      0|        return spv::BuiltIn::CullDistance;
  853|       |
  854|      0|    case glslang::EbvViewportIndex:
  ------------------
  |  Branch (854:5): [True: 0, False: 1.49k]
  ------------------
  855|      0|        if (glslangIntermediate->getStage() == EShLangGeometry ||
  ------------------
  |  Branch (855:13): [True: 0, False: 0]
  ------------------
  856|      0|            glslangIntermediate->getStage() == EShLangFragment) {
  ------------------
  |  Branch (856:13): [True: 0, False: 0]
  ------------------
  857|      0|            builder.addCapability(spv::Capability::MultiViewport);
  858|      0|        }
  859|      0|        if (glslangIntermediate->getStage() == EShLangVertex ||
  ------------------
  |  Branch (859:13): [True: 0, False: 0]
  ------------------
  860|      0|            glslangIntermediate->getStage() == EShLangTessControl ||
  ------------------
  |  Branch (860:13): [True: 0, False: 0]
  ------------------
  861|      0|            glslangIntermediate->getStage() == EShLangTessEvaluation) {
  ------------------
  |  Branch (861:13): [True: 0, False: 0]
  ------------------
  862|       |
  863|      0|            if (builder.getSpvVersion() < spv::Spv_1_5) {
  ------------------
  |  Branch (863:17): [True: 0, False: 0]
  ------------------
  864|      0|                builder.addIncorporatedExtension(spv::E_SPV_EXT_shader_viewport_index_layer, spv::Spv_1_5);
  865|      0|                builder.addCapability(spv::Capability::ShaderViewportIndexLayerEXT);
  866|      0|            }
  867|      0|            else
  868|      0|                builder.addCapability(spv::Capability::ShaderViewportIndex);
  869|      0|        }
  870|      0|        return spv::BuiltIn::ViewportIndex;
  871|       |
  872|      0|    case glslang::EbvSampleId:
  ------------------
  |  Branch (872:5): [True: 0, False: 1.49k]
  ------------------
  873|      0|        builder.addCapability(spv::Capability::SampleRateShading);
  874|      0|        return spv::BuiltIn::SampleId;
  875|       |
  876|      0|    case glslang::EbvSamplePosition:
  ------------------
  |  Branch (876:5): [True: 0, False: 1.49k]
  ------------------
  877|      0|        builder.addCapability(spv::Capability::SampleRateShading);
  878|      0|        return spv::BuiltIn::SamplePosition;
  879|       |
  880|      0|    case glslang::EbvSampleMask:
  ------------------
  |  Branch (880:5): [True: 0, False: 1.49k]
  ------------------
  881|      0|        return spv::BuiltIn::SampleMask;
  882|       |
  883|      0|    case glslang::EbvLayer:
  ------------------
  |  Branch (883:5): [True: 0, False: 1.49k]
  ------------------
  884|      0|        if (glslangIntermediate->getStage() == EShLangMesh) {
  ------------------
  |  Branch (884:13): [True: 0, False: 0]
  ------------------
  885|      0|            return spv::BuiltIn::Layer;
  886|      0|        }
  887|      0|        if (glslangIntermediate->getStage() == EShLangGeometry ||
  ------------------
  |  Branch (887:13): [True: 0, False: 0]
  ------------------
  888|      0|            glslangIntermediate->getStage() == EShLangFragment) {
  ------------------
  |  Branch (888:13): [True: 0, False: 0]
  ------------------
  889|      0|            builder.addCapability(spv::Capability::Geometry);
  890|      0|        }
  891|      0|        if (glslangIntermediate->getStage() == EShLangVertex ||
  ------------------
  |  Branch (891:13): [True: 0, False: 0]
  ------------------
  892|      0|            glslangIntermediate->getStage() == EShLangTessControl ||
  ------------------
  |  Branch (892:13): [True: 0, False: 0]
  ------------------
  893|      0|            glslangIntermediate->getStage() == EShLangTessEvaluation) {
  ------------------
  |  Branch (893:13): [True: 0, False: 0]
  ------------------
  894|       |
  895|      0|            if (builder.getSpvVersion() < spv::Spv_1_5) {
  ------------------
  |  Branch (895:17): [True: 0, False: 0]
  ------------------
  896|      0|                builder.addIncorporatedExtension(spv::E_SPV_EXT_shader_viewport_index_layer, spv::Spv_1_5);
  897|      0|                builder.addCapability(spv::Capability::ShaderViewportIndexLayerEXT);
  898|      0|            } else
  899|      0|                builder.addCapability(spv::Capability::ShaderLayer);
  900|      0|        }
  901|      0|        return spv::BuiltIn::Layer;
  902|       |
  903|      0|    case glslang::EbvBaseVertex:
  ------------------
  |  Branch (903:5): [True: 0, False: 1.49k]
  ------------------
  904|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_shader_draw_parameters, spv::Spv_1_3);
  905|      0|        builder.addCapability(spv::Capability::DrawParameters);
  906|      0|        return spv::BuiltIn::BaseVertex;
  907|       |
  908|      0|    case glslang::EbvBaseInstance:
  ------------------
  |  Branch (908:5): [True: 0, False: 1.49k]
  ------------------
  909|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_shader_draw_parameters, spv::Spv_1_3);
  910|      0|        builder.addCapability(spv::Capability::DrawParameters);
  911|      0|        return spv::BuiltIn::BaseInstance;
  912|       |
  913|      0|    case glslang::EbvDrawId:
  ------------------
  |  Branch (913:5): [True: 0, False: 1.49k]
  ------------------
  914|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_shader_draw_parameters, spv::Spv_1_3);
  915|      0|        builder.addCapability(spv::Capability::DrawParameters);
  916|      0|        return spv::BuiltIn::DrawIndex;
  917|       |
  918|      0|    case glslang::EbvPrimitiveId:
  ------------------
  |  Branch (918:5): [True: 0, False: 1.49k]
  ------------------
  919|      0|        if (glslangIntermediate->getStage() == EShLangFragment)
  ------------------
  |  Branch (919:13): [True: 0, False: 0]
  ------------------
  920|      0|            builder.addCapability(spv::Capability::Geometry);
  921|      0|        return spv::BuiltIn::PrimitiveId;
  922|       |
  923|      0|    case glslang::EbvFragStencilRef:
  ------------------
  |  Branch (923:5): [True: 0, False: 1.49k]
  ------------------
  924|      0|        builder.addExtension(spv::E_SPV_EXT_shader_stencil_export);
  925|      0|        builder.addCapability(spv::Capability::StencilExportEXT);
  926|      0|        return spv::BuiltIn::FragStencilRefEXT;
  927|       |
  928|      0|    case glslang::EbvShadingRateKHR:
  ------------------
  |  Branch (928:5): [True: 0, False: 1.49k]
  ------------------
  929|      0|        builder.addExtension(spv::E_SPV_KHR_fragment_shading_rate);
  930|      0|        builder.addCapability(spv::Capability::FragmentShadingRateKHR);
  931|      0|        return spv::BuiltIn::ShadingRateKHR;
  932|       |
  933|      0|    case glslang::EbvPrimitiveShadingRateKHR:
  ------------------
  |  Branch (933:5): [True: 0, False: 1.49k]
  ------------------
  934|      0|        builder.addExtension(spv::E_SPV_KHR_fragment_shading_rate);
  935|      0|        builder.addCapability(spv::Capability::FragmentShadingRateKHR);
  936|      0|        return spv::BuiltIn::PrimitiveShadingRateKHR;
  937|       |
  938|      0|    case glslang::EbvInvocationId:         return spv::BuiltIn::InvocationId;
  ------------------
  |  Branch (938:5): [True: 0, False: 1.49k]
  ------------------
  939|      0|    case glslang::EbvTessLevelInner:       return spv::BuiltIn::TessLevelInner;
  ------------------
  |  Branch (939:5): [True: 0, False: 1.49k]
  ------------------
  940|      0|    case glslang::EbvTessLevelOuter:       return spv::BuiltIn::TessLevelOuter;
  ------------------
  |  Branch (940:5): [True: 0, False: 1.49k]
  ------------------
  941|      0|    case glslang::EbvTessCoord:            return spv::BuiltIn::TessCoord;
  ------------------
  |  Branch (941:5): [True: 0, False: 1.49k]
  ------------------
  942|      0|    case glslang::EbvPatchVertices:        return spv::BuiltIn::PatchVertices;
  ------------------
  |  Branch (942:5): [True: 0, False: 1.49k]
  ------------------
  943|      0|    case glslang::EbvHelperInvocation:     return spv::BuiltIn::HelperInvocation;
  ------------------
  |  Branch (943:5): [True: 0, False: 1.49k]
  ------------------
  944|       |
  945|      0|    case glslang::EbvSubGroupSize:
  ------------------
  |  Branch (945:5): [True: 0, False: 1.49k]
  ------------------
  946|      0|        builder.addExtension(spv::E_SPV_KHR_shader_ballot);
  947|      0|        builder.addCapability(spv::Capability::SubgroupBallotKHR);
  948|      0|        return spv::BuiltIn::SubgroupSize;
  949|       |
  950|      0|    case glslang::EbvSubGroupInvocation:
  ------------------
  |  Branch (950:5): [True: 0, False: 1.49k]
  ------------------
  951|      0|        builder.addExtension(spv::E_SPV_KHR_shader_ballot);
  952|      0|        builder.addCapability(spv::Capability::SubgroupBallotKHR);
  953|      0|        return spv::BuiltIn::SubgroupLocalInvocationId;
  954|       |
  955|      0|    case glslang::EbvSubGroupEqMask:
  ------------------
  |  Branch (955:5): [True: 0, False: 1.49k]
  ------------------
  956|      0|        builder.addExtension(spv::E_SPV_KHR_shader_ballot);
  957|      0|        builder.addCapability(spv::Capability::SubgroupBallotKHR);
  958|      0|        return spv::BuiltIn::SubgroupEqMask;
  959|       |
  960|      0|    case glslang::EbvSubGroupGeMask:
  ------------------
  |  Branch (960:5): [True: 0, False: 1.49k]
  ------------------
  961|      0|        builder.addExtension(spv::E_SPV_KHR_shader_ballot);
  962|      0|        builder.addCapability(spv::Capability::SubgroupBallotKHR);
  963|      0|        return spv::BuiltIn::SubgroupGeMask;
  964|       |
  965|      0|    case glslang::EbvSubGroupGtMask:
  ------------------
  |  Branch (965:5): [True: 0, False: 1.49k]
  ------------------
  966|      0|        builder.addExtension(spv::E_SPV_KHR_shader_ballot);
  967|      0|        builder.addCapability(spv::Capability::SubgroupBallotKHR);
  968|      0|        return spv::BuiltIn::SubgroupGtMask;
  969|       |
  970|      0|    case glslang::EbvSubGroupLeMask:
  ------------------
  |  Branch (970:5): [True: 0, False: 1.49k]
  ------------------
  971|      0|        builder.addExtension(spv::E_SPV_KHR_shader_ballot);
  972|      0|        builder.addCapability(spv::Capability::SubgroupBallotKHR);
  973|      0|        return spv::BuiltIn::SubgroupLeMask;
  974|       |
  975|      0|    case glslang::EbvSubGroupLtMask:
  ------------------
  |  Branch (975:5): [True: 0, False: 1.49k]
  ------------------
  976|      0|        builder.addExtension(spv::E_SPV_KHR_shader_ballot);
  977|      0|        builder.addCapability(spv::Capability::SubgroupBallotKHR);
  978|      0|        return spv::BuiltIn::SubgroupLtMask;
  979|       |
  980|      0|    case glslang::EbvNumSubgroups:
  ------------------
  |  Branch (980:5): [True: 0, False: 1.49k]
  ------------------
  981|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
  982|      0|        return spv::BuiltIn::NumSubgroups;
  983|       |
  984|      0|    case glslang::EbvSubgroupID:
  ------------------
  |  Branch (984:5): [True: 0, False: 1.49k]
  ------------------
  985|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
  986|      0|        return spv::BuiltIn::SubgroupId;
  987|       |
  988|      0|    case glslang::EbvSubgroupSize2:
  ------------------
  |  Branch (988:5): [True: 0, False: 1.49k]
  ------------------
  989|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
  990|      0|        return spv::BuiltIn::SubgroupSize;
  991|       |
  992|      0|    case glslang::EbvSubgroupInvocation2:
  ------------------
  |  Branch (992:5): [True: 0, False: 1.49k]
  ------------------
  993|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
  994|      0|        return spv::BuiltIn::SubgroupLocalInvocationId;
  995|       |
  996|      0|    case glslang::EbvSubgroupEqMask2:
  ------------------
  |  Branch (996:5): [True: 0, False: 1.49k]
  ------------------
  997|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
  998|      0|        builder.addCapability(spv::Capability::GroupNonUniformBallot);
  999|      0|        return spv::BuiltIn::SubgroupEqMask;
 1000|       |
 1001|      0|    case glslang::EbvSubgroupGeMask2:
  ------------------
  |  Branch (1001:5): [True: 0, False: 1.49k]
  ------------------
 1002|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
 1003|      0|        builder.addCapability(spv::Capability::GroupNonUniformBallot);
 1004|      0|        return spv::BuiltIn::SubgroupGeMask;
 1005|       |
 1006|      0|    case glslang::EbvSubgroupGtMask2:
  ------------------
  |  Branch (1006:5): [True: 0, False: 1.49k]
  ------------------
 1007|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
 1008|      0|        builder.addCapability(spv::Capability::GroupNonUniformBallot);
 1009|      0|        return spv::BuiltIn::SubgroupGtMask;
 1010|       |
 1011|      0|    case glslang::EbvSubgroupLeMask2:
  ------------------
  |  Branch (1011:5): [True: 0, False: 1.49k]
  ------------------
 1012|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
 1013|      0|        builder.addCapability(spv::Capability::GroupNonUniformBallot);
 1014|      0|        return spv::BuiltIn::SubgroupLeMask;
 1015|       |
 1016|      0|    case glslang::EbvSubgroupLtMask2:
  ------------------
  |  Branch (1016:5): [True: 0, False: 1.49k]
  ------------------
 1017|      0|        builder.addCapability(spv::Capability::GroupNonUniform);
 1018|      0|        builder.addCapability(spv::Capability::GroupNonUniformBallot);
 1019|      0|        return spv::BuiltIn::SubgroupLtMask;
 1020|       |
 1021|      0|    case glslang::EbvBaryCoordNoPersp:
  ------------------
  |  Branch (1021:5): [True: 0, False: 1.49k]
  ------------------
 1022|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
 1023|      0|        return spv::BuiltIn::BaryCoordNoPerspAMD;
 1024|       |
 1025|      0|    case glslang::EbvBaryCoordNoPerspCentroid:
  ------------------
  |  Branch (1025:5): [True: 0, False: 1.49k]
  ------------------
 1026|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
 1027|      0|        return spv::BuiltIn::BaryCoordNoPerspCentroidAMD;
 1028|       |
 1029|      0|    case glslang::EbvBaryCoordNoPerspSample:
  ------------------
  |  Branch (1029:5): [True: 0, False: 1.49k]
  ------------------
 1030|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
 1031|      0|        return spv::BuiltIn::BaryCoordNoPerspSampleAMD;
 1032|       |
 1033|      0|    case glslang::EbvBaryCoordSmooth:
  ------------------
  |  Branch (1033:5): [True: 0, False: 1.49k]
  ------------------
 1034|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
 1035|      0|        return spv::BuiltIn::BaryCoordSmoothAMD;
 1036|       |
 1037|      0|    case glslang::EbvBaryCoordSmoothCentroid:
  ------------------
  |  Branch (1037:5): [True: 0, False: 1.49k]
  ------------------
 1038|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
 1039|      0|        return spv::BuiltIn::BaryCoordSmoothCentroidAMD;
 1040|       |
 1041|      0|    case glslang::EbvBaryCoordSmoothSample:
  ------------------
  |  Branch (1041:5): [True: 0, False: 1.49k]
  ------------------
 1042|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
 1043|      0|        return spv::BuiltIn::BaryCoordSmoothSampleAMD;
 1044|       |
 1045|      0|    case glslang::EbvBaryCoordPullModel:
  ------------------
  |  Branch (1045:5): [True: 0, False: 1.49k]
  ------------------
 1046|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
 1047|      0|        return spv::BuiltIn::BaryCoordPullModelAMD;
 1048|       |
 1049|      0|    case glslang::EbvDeviceIndex:
  ------------------
  |  Branch (1049:5): [True: 0, False: 1.49k]
  ------------------
 1050|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_device_group, spv::Spv_1_3);
 1051|      0|        builder.addCapability(spv::Capability::DeviceGroup);
 1052|      0|        return spv::BuiltIn::DeviceIndex;
 1053|       |
 1054|      0|    case glslang::EbvViewIndex:
  ------------------
  |  Branch (1054:5): [True: 0, False: 1.49k]
  ------------------
 1055|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_multiview, spv::Spv_1_3);
 1056|      0|        builder.addCapability(spv::Capability::MultiView);
 1057|      0|        return spv::BuiltIn::ViewIndex;
 1058|       |
 1059|      0|    case glslang::EbvFragSizeEXT:
  ------------------
  |  Branch (1059:5): [True: 0, False: 1.49k]
  ------------------
 1060|      0|        builder.addExtension(spv::E_SPV_EXT_fragment_invocation_density);
 1061|      0|        builder.addCapability(spv::Capability::FragmentDensityEXT);
 1062|      0|        return spv::BuiltIn::FragSizeEXT;
 1063|       |
 1064|      0|    case glslang::EbvFragInvocationCountEXT:
  ------------------
  |  Branch (1064:5): [True: 0, False: 1.49k]
  ------------------
 1065|      0|        builder.addExtension(spv::E_SPV_EXT_fragment_invocation_density);
 1066|      0|        builder.addCapability(spv::Capability::FragmentDensityEXT);
 1067|      0|        return spv::BuiltIn::FragInvocationCountEXT;
 1068|       |
 1069|      0|    case glslang::EbvViewportMaskNV:
  ------------------
  |  Branch (1069:5): [True: 0, False: 1.49k]
  ------------------
 1070|      0|        if (!memberDeclaration) {
  ------------------
  |  Branch (1070:13): [True: 0, False: 0]
  ------------------
 1071|      0|            builder.addExtension(spv::E_SPV_NV_viewport_array2);
 1072|      0|            builder.addCapability(spv::Capability::ShaderViewportMaskNV);
 1073|      0|        }
 1074|      0|        return spv::BuiltIn::ViewportMaskNV;
 1075|      0|    case glslang::EbvSecondaryPositionNV:
  ------------------
  |  Branch (1075:5): [True: 0, False: 1.49k]
  ------------------
 1076|      0|        if (!memberDeclaration) {
  ------------------
  |  Branch (1076:13): [True: 0, False: 0]
  ------------------
 1077|      0|            builder.addExtension(spv::E_SPV_NV_stereo_view_rendering);
 1078|      0|            builder.addCapability(spv::Capability::ShaderStereoViewNV);
 1079|      0|        }
 1080|      0|        return spv::BuiltIn::SecondaryPositionNV;
 1081|      0|    case glslang::EbvSecondaryViewportMaskNV:
  ------------------
  |  Branch (1081:5): [True: 0, False: 1.49k]
  ------------------
 1082|      0|        if (!memberDeclaration) {
  ------------------
  |  Branch (1082:13): [True: 0, False: 0]
  ------------------
 1083|      0|            builder.addExtension(spv::E_SPV_NV_stereo_view_rendering);
 1084|      0|            builder.addCapability(spv::Capability::ShaderStereoViewNV);
 1085|      0|        }
 1086|      0|        return spv::BuiltIn::SecondaryViewportMaskNV;
 1087|      0|    case glslang::EbvPositionPerViewNV:
  ------------------
  |  Branch (1087:5): [True: 0, False: 1.49k]
  ------------------
 1088|      0|        if (!memberDeclaration) {
  ------------------
  |  Branch (1088:13): [True: 0, False: 0]
  ------------------
 1089|      0|            builder.addExtension(spv::E_SPV_NVX_multiview_per_view_attributes);
 1090|      0|            builder.addCapability(spv::Capability::PerViewAttributesNV);
 1091|      0|        }
 1092|      0|        return spv::BuiltIn::PositionPerViewNV;
 1093|      0|    case glslang::EbvViewportMaskPerViewNV:
  ------------------
  |  Branch (1093:5): [True: 0, False: 1.49k]
  ------------------
 1094|      0|        if (!memberDeclaration) {
  ------------------
  |  Branch (1094:13): [True: 0, False: 0]
  ------------------
 1095|      0|            builder.addExtension(spv::E_SPV_NVX_multiview_per_view_attributes);
 1096|      0|            builder.addCapability(spv::Capability::PerViewAttributesNV);
 1097|      0|        }
 1098|      0|        return spv::BuiltIn::ViewportMaskPerViewNV;
 1099|      0|    case glslang::EbvFragFullyCoveredNV:
  ------------------
  |  Branch (1099:5): [True: 0, False: 1.49k]
  ------------------
 1100|      0|        builder.addExtension(spv::E_SPV_EXT_fragment_fully_covered);
 1101|      0|        builder.addCapability(spv::Capability::FragmentFullyCoveredEXT);
 1102|      0|        return spv::BuiltIn::FullyCoveredEXT;
 1103|      0|    case glslang::EbvFragmentSizeNV:
  ------------------
  |  Branch (1103:5): [True: 0, False: 1.49k]
  ------------------
 1104|      0|        builder.addExtension(spv::E_SPV_NV_shading_rate);
 1105|      0|        builder.addCapability(spv::Capability::ShadingRateNV);
 1106|      0|        return spv::BuiltIn::FragmentSizeNV;
 1107|      0|    case glslang::EbvInvocationsPerPixelNV:
  ------------------
  |  Branch (1107:5): [True: 0, False: 1.49k]
  ------------------
 1108|      0|        builder.addExtension(spv::E_SPV_NV_shading_rate);
 1109|      0|        builder.addCapability(spv::Capability::ShadingRateNV);
 1110|      0|        return spv::BuiltIn::InvocationsPerPixelNV;
 1111|       |
 1112|       |    // ray tracing
 1113|      0|    case glslang::EbvLaunchId:
  ------------------
  |  Branch (1113:5): [True: 0, False: 1.49k]
  ------------------
 1114|      0|        return spv::BuiltIn::LaunchIdKHR;
 1115|      0|    case glslang::EbvLaunchSize:
  ------------------
  |  Branch (1115:5): [True: 0, False: 1.49k]
  ------------------
 1116|      0|        return spv::BuiltIn::LaunchSizeKHR;
 1117|      0|    case glslang::EbvWorldRayOrigin:
  ------------------
  |  Branch (1117:5): [True: 0, False: 1.49k]
  ------------------
 1118|      0|        return spv::BuiltIn::WorldRayOriginKHR;
 1119|      0|    case glslang::EbvWorldRayDirection:
  ------------------
  |  Branch (1119:5): [True: 0, False: 1.49k]
  ------------------
 1120|      0|        return spv::BuiltIn::WorldRayDirectionKHR;
 1121|      0|    case glslang::EbvObjectRayOrigin:
  ------------------
  |  Branch (1121:5): [True: 0, False: 1.49k]
  ------------------
 1122|      0|        return spv::BuiltIn::ObjectRayOriginKHR;
 1123|      0|    case glslang::EbvObjectRayDirection:
  ------------------
  |  Branch (1123:5): [True: 0, False: 1.49k]
  ------------------
 1124|      0|        return spv::BuiltIn::ObjectRayDirectionKHR;
 1125|      0|    case glslang::EbvRayTmin:
  ------------------
  |  Branch (1125:5): [True: 0, False: 1.49k]
  ------------------
 1126|      0|        return spv::BuiltIn::RayTminKHR;
 1127|      0|    case glslang::EbvRayTmax:
  ------------------
  |  Branch (1127:5): [True: 0, False: 1.49k]
  ------------------
 1128|      0|        return spv::BuiltIn::RayTmaxKHR;
 1129|      0|    case glslang::EbvCullMask:
  ------------------
  |  Branch (1129:5): [True: 0, False: 1.49k]
  ------------------
 1130|      0|        return spv::BuiltIn::CullMaskKHR;
 1131|      0|    case glslang::EbvPositionFetch:
  ------------------
  |  Branch (1131:5): [True: 0, False: 1.49k]
  ------------------
 1132|      0|        return spv::BuiltIn::HitTriangleVertexPositionsKHR;
 1133|      0|    case glslang::EbvInstanceCustomIndex:
  ------------------
  |  Branch (1133:5): [True: 0, False: 1.49k]
  ------------------
 1134|      0|        return spv::BuiltIn::InstanceCustomIndexKHR;
 1135|      0|    case glslang::EbvHitKind:
  ------------------
  |  Branch (1135:5): [True: 0, False: 1.49k]
  ------------------
 1136|      0|        return spv::BuiltIn::HitKindKHR;
 1137|      0|    case glslang::EbvObjectToWorld:
  ------------------
  |  Branch (1137:5): [True: 0, False: 1.49k]
  ------------------
 1138|      0|    case glslang::EbvObjectToWorld3x4:
  ------------------
  |  Branch (1138:5): [True: 0, False: 1.49k]
  ------------------
 1139|      0|        return spv::BuiltIn::ObjectToWorldKHR;
 1140|      0|    case glslang::EbvWorldToObject:
  ------------------
  |  Branch (1140:5): [True: 0, False: 1.49k]
  ------------------
 1141|      0|    case glslang::EbvWorldToObject3x4:
  ------------------
  |  Branch (1141:5): [True: 0, False: 1.49k]
  ------------------
 1142|      0|        return spv::BuiltIn::WorldToObjectKHR;
 1143|      0|    case glslang::EbvIncomingRayFlags:
  ------------------
  |  Branch (1143:5): [True: 0, False: 1.49k]
  ------------------
 1144|      0|        return spv::BuiltIn::IncomingRayFlagsKHR;
 1145|      0|    case glslang::EbvGeometryIndex:
  ------------------
  |  Branch (1145:5): [True: 0, False: 1.49k]
  ------------------
 1146|      0|        return spv::BuiltIn::RayGeometryIndexKHR;
 1147|      0|    case glslang::EbvCurrentRayTimeNV:
  ------------------
  |  Branch (1147:5): [True: 0, False: 1.49k]
  ------------------
 1148|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
 1149|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
 1150|      0|        return spv::BuiltIn::CurrentRayTimeNV;
 1151|      0|    case glslang::EbvMicroTrianglePositionNV:
  ------------------
  |  Branch (1151:5): [True: 0, False: 1.49k]
  ------------------
 1152|      0|        builder.addCapability(spv::Capability::RayTracingDisplacementMicromapNV);
 1153|      0|        builder.addExtension("SPV_NV_displacement_micromap");
 1154|      0|        return spv::BuiltIn::HitMicroTriangleVertexPositionsNV;
 1155|      0|    case glslang::EbvMicroTriangleBaryNV:
  ------------------
  |  Branch (1155:5): [True: 0, False: 1.49k]
  ------------------
 1156|      0|        builder.addCapability(spv::Capability::RayTracingDisplacementMicromapNV);
 1157|      0|        builder.addExtension("SPV_NV_displacement_micromap");
 1158|      0|        return spv::BuiltIn::HitMicroTriangleVertexBarycentricsNV;
 1159|      0|    case glslang::EbvHitKindFrontFacingMicroTriangleNV:
  ------------------
  |  Branch (1159:5): [True: 0, False: 1.49k]
  ------------------
 1160|      0|        builder.addCapability(spv::Capability::RayTracingDisplacementMicromapNV);
 1161|      0|        builder.addExtension("SPV_NV_displacement_micromap");
 1162|      0|        return spv::BuiltIn::HitKindFrontFacingMicroTriangleNV;
 1163|      0|    case glslang::EbvHitKindBackFacingMicroTriangleNV:
  ------------------
  |  Branch (1163:5): [True: 0, False: 1.49k]
  ------------------
 1164|      0|        builder.addCapability(spv::Capability::RayTracingDisplacementMicromapNV);
 1165|      0|        builder.addExtension("SPV_NV_displacement_micromap");
 1166|      0|        return spv::BuiltIn::HitKindBackFacingMicroTriangleNV;
 1167|      0|    case glslang::EbvClusterIDNV:
  ------------------
  |  Branch (1167:5): [True: 0, False: 1.49k]
  ------------------
 1168|      0|        builder.addCapability(spv::Capability::RayTracingClusterAccelerationStructureNV);
 1169|      0|        builder.addExtension("SPV_NV_cluster_acceleration_structure");
 1170|      0|        return spv::BuiltIn::ClusterIDNV;
 1171|      0|    case glslang::EbvHitIsSphereNV:
  ------------------
  |  Branch (1171:5): [True: 0, False: 1.49k]
  ------------------
 1172|      0|        builder.addCapability(spv::Capability::RayTracingSpheresGeometryNV);
 1173|      0|        builder.addExtension("SPV_NV_linear_swept_spheres");
 1174|      0|        return spv::BuiltIn::HitIsSphereNV;
 1175|      0|    case glslang::EbvHitIsLSSNV:
  ------------------
  |  Branch (1175:5): [True: 0, False: 1.49k]
  ------------------
 1176|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 1177|      0|        builder.addExtension("SPV_NV_linear_swept_spheres");
 1178|      0|        return spv::BuiltIn::HitIsLSSNV;
 1179|      0|    case glslang::EbvHitSpherePositionNV:
  ------------------
  |  Branch (1179:5): [True: 0, False: 1.49k]
  ------------------
 1180|      0|        builder.addCapability(spv::Capability::RayTracingSpheresGeometryNV);
 1181|      0|        builder.addExtension("SPV_NV_linear_swept_spheres");
 1182|      0|        return spv::BuiltIn::HitSpherePositionNV;
 1183|      0|    case glslang::EbvHitSphereRadiusNV:
  ------------------
  |  Branch (1183:5): [True: 0, False: 1.49k]
  ------------------
 1184|      0|        builder.addCapability(spv::Capability::RayTracingSpheresGeometryNV);
 1185|      0|        builder.addExtension("SPV_NV_linear_swept_spheres");
 1186|      0|        return spv::BuiltIn::HitSphereRadiusNV;
 1187|      0|    case glslang::EbvHitLSSPositionsNV:
  ------------------
  |  Branch (1187:5): [True: 0, False: 1.49k]
  ------------------
 1188|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 1189|      0|        builder.addExtension("SPV_NV_linear_swept_spheres");
 1190|      0|        return spv::BuiltIn::HitLSSPositionsNV;
 1191|      0|    case glslang::EbvHitLSSRadiiNV:
  ------------------
  |  Branch (1191:5): [True: 0, False: 1.49k]
  ------------------
 1192|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 1193|      0|        builder.addExtension("SPV_NV_linear_swept_spheres");
 1194|      0|        return spv::BuiltIn::HitLSSRadiiNV;
 1195|       |
 1196|       |    // barycentrics
 1197|      0|    case glslang::EbvBaryCoordNV:
  ------------------
  |  Branch (1197:5): [True: 0, False: 1.49k]
  ------------------
 1198|      0|        builder.addExtension(spv::E_SPV_NV_fragment_shader_barycentric);
 1199|      0|        builder.addCapability(spv::Capability::FragmentBarycentricNV);
 1200|      0|        return spv::BuiltIn::BaryCoordNV;
 1201|      0|    case glslang::EbvBaryCoordNoPerspNV:
  ------------------
  |  Branch (1201:5): [True: 0, False: 1.49k]
  ------------------
 1202|      0|        builder.addExtension(spv::E_SPV_NV_fragment_shader_barycentric);
 1203|      0|        builder.addCapability(spv::Capability::FragmentBarycentricNV);
 1204|      0|        return spv::BuiltIn::BaryCoordNoPerspNV;
 1205|       |
 1206|      0|    case glslang::EbvBaryCoordEXT:
  ------------------
  |  Branch (1206:5): [True: 0, False: 1.49k]
  ------------------
 1207|      0|        builder.addExtension(spv::E_SPV_KHR_fragment_shader_barycentric);
 1208|      0|        builder.addCapability(spv::Capability::FragmentBarycentricKHR);
 1209|      0|        return spv::BuiltIn::BaryCoordKHR;
 1210|      0|    case glslang::EbvBaryCoordNoPerspEXT:
  ------------------
  |  Branch (1210:5): [True: 0, False: 1.49k]
  ------------------
 1211|      0|        builder.addExtension(spv::E_SPV_KHR_fragment_shader_barycentric);
 1212|      0|        builder.addCapability(spv::Capability::FragmentBarycentricKHR);
 1213|      0|        return spv::BuiltIn::BaryCoordNoPerspKHR;
 1214|       |
 1215|       |    // mesh shaders
 1216|      0|    case glslang::EbvTaskCountNV:
  ------------------
  |  Branch (1216:5): [True: 0, False: 1.49k]
  ------------------
 1217|      0|        return spv::BuiltIn::TaskCountNV;
 1218|      0|    case glslang::EbvPrimitiveCountNV:
  ------------------
  |  Branch (1218:5): [True: 0, False: 1.49k]
  ------------------
 1219|      0|        return spv::BuiltIn::PrimitiveCountNV;
 1220|      0|    case glslang::EbvPrimitiveIndicesNV:
  ------------------
  |  Branch (1220:5): [True: 0, False: 1.49k]
  ------------------
 1221|      0|        return spv::BuiltIn::PrimitiveIndicesNV;
 1222|      0|    case glslang::EbvClipDistancePerViewNV:
  ------------------
  |  Branch (1222:5): [True: 0, False: 1.49k]
  ------------------
 1223|      0|        return spv::BuiltIn::ClipDistancePerViewNV;
 1224|      0|    case glslang::EbvCullDistancePerViewNV:
  ------------------
  |  Branch (1224:5): [True: 0, False: 1.49k]
  ------------------
 1225|      0|        return spv::BuiltIn::CullDistancePerViewNV;
 1226|      0|    case glslang::EbvLayerPerViewNV:
  ------------------
  |  Branch (1226:5): [True: 0, False: 1.49k]
  ------------------
 1227|      0|        return spv::BuiltIn::LayerPerViewNV;
 1228|      0|    case glslang::EbvMeshViewCountNV:
  ------------------
  |  Branch (1228:5): [True: 0, False: 1.49k]
  ------------------
 1229|      0|        return spv::BuiltIn::MeshViewCountNV;
 1230|      0|    case glslang::EbvMeshViewIndicesNV:
  ------------------
  |  Branch (1230:5): [True: 0, False: 1.49k]
  ------------------
 1231|      0|        return spv::BuiltIn::MeshViewIndicesNV;
 1232|       |
 1233|       |    // SPV_EXT_mesh_shader
 1234|      0|    case glslang::EbvPrimitivePointIndicesEXT:
  ------------------
  |  Branch (1234:5): [True: 0, False: 1.49k]
  ------------------
 1235|      0|        return spv::BuiltIn::PrimitivePointIndicesEXT;
 1236|      0|    case glslang::EbvPrimitiveLineIndicesEXT:
  ------------------
  |  Branch (1236:5): [True: 0, False: 1.49k]
  ------------------
 1237|      0|        return spv::BuiltIn::PrimitiveLineIndicesEXT;
 1238|      0|    case glslang::EbvPrimitiveTriangleIndicesEXT:
  ------------------
  |  Branch (1238:5): [True: 0, False: 1.49k]
  ------------------
 1239|      0|        return spv::BuiltIn::PrimitiveTriangleIndicesEXT;
 1240|      0|    case glslang::EbvCullPrimitiveEXT:
  ------------------
  |  Branch (1240:5): [True: 0, False: 1.49k]
  ------------------
 1241|      0|        return spv::BuiltIn::CullPrimitiveEXT;
 1242|       |
 1243|       |    // sm builtins
 1244|      0|    case glslang::EbvWarpsPerSM:
  ------------------
  |  Branch (1244:5): [True: 0, False: 1.49k]
  ------------------
 1245|      0|        builder.addExtension(spv::E_SPV_NV_shader_sm_builtins);
 1246|      0|        builder.addCapability(spv::Capability::ShaderSMBuiltinsNV);
 1247|      0|        return spv::BuiltIn::WarpsPerSMNV;
 1248|      0|    case glslang::EbvSMCount:
  ------------------
  |  Branch (1248:5): [True: 0, False: 1.49k]
  ------------------
 1249|      0|        builder.addExtension(spv::E_SPV_NV_shader_sm_builtins);
 1250|      0|        builder.addCapability(spv::Capability::ShaderSMBuiltinsNV);
 1251|      0|        return spv::BuiltIn::SMCountNV;
 1252|      0|    case glslang::EbvWarpID:
  ------------------
  |  Branch (1252:5): [True: 0, False: 1.49k]
  ------------------
 1253|      0|        builder.addExtension(spv::E_SPV_NV_shader_sm_builtins);
 1254|      0|        builder.addCapability(spv::Capability::ShaderSMBuiltinsNV);
 1255|      0|        return spv::BuiltIn::WarpIDNV;
 1256|      0|    case glslang::EbvSMID:
  ------------------
  |  Branch (1256:5): [True: 0, False: 1.49k]
  ------------------
 1257|      0|        builder.addExtension(spv::E_SPV_NV_shader_sm_builtins);
 1258|      0|        builder.addCapability(spv::Capability::ShaderSMBuiltinsNV);
 1259|      0|        return spv::BuiltIn::SMIDNV;
 1260|       |
 1261|       |   // ARM builtins
 1262|      0|    case glslang::EbvCoreCountARM:
  ------------------
  |  Branch (1262:5): [True: 0, False: 1.49k]
  ------------------
 1263|      0|        builder.addExtension(spv::E_SPV_ARM_core_builtins);
 1264|      0|        builder.addCapability(spv::Capability::CoreBuiltinsARM);
 1265|      0|        return spv::BuiltIn::CoreCountARM;
 1266|      0|    case glslang::EbvCoreIDARM:
  ------------------
  |  Branch (1266:5): [True: 0, False: 1.49k]
  ------------------
 1267|      0|        builder.addExtension(spv::E_SPV_ARM_core_builtins);
 1268|      0|        builder.addCapability(spv::Capability::CoreBuiltinsARM);
 1269|      0|        return spv::BuiltIn::CoreIDARM;
 1270|      0|    case glslang::EbvCoreMaxIDARM:
  ------------------
  |  Branch (1270:5): [True: 0, False: 1.49k]
  ------------------
 1271|      0|        builder.addExtension(spv::E_SPV_ARM_core_builtins);
 1272|      0|        builder.addCapability(spv::Capability::CoreBuiltinsARM);
 1273|      0|        return spv::BuiltIn::CoreMaxIDARM;
 1274|      0|    case glslang::EbvWarpIDARM:
  ------------------
  |  Branch (1274:5): [True: 0, False: 1.49k]
  ------------------
 1275|      0|        builder.addExtension(spv::E_SPV_ARM_core_builtins);
 1276|      0|        builder.addCapability(spv::Capability::CoreBuiltinsARM);
 1277|      0|        return spv::BuiltIn::WarpIDARM;
 1278|      0|    case glslang::EbvWarpMaxIDARM:
  ------------------
  |  Branch (1278:5): [True: 0, False: 1.49k]
  ------------------
 1279|      0|        builder.addExtension(spv::E_SPV_ARM_core_builtins);
 1280|      0|        builder.addCapability(spv::Capability::CoreBuiltinsARM);
 1281|      0|        return spv::BuiltIn::WarpMaxIDARM;
 1282|       |
 1283|       |    // QCOM builtins
 1284|      0|    case glslang::EbvTileOffsetQCOM:
  ------------------
  |  Branch (1284:5): [True: 0, False: 1.49k]
  ------------------
 1285|      0|        builder.addExtension(spv::E_SPV_QCOM_tile_shading);
 1286|      0|        return spv::BuiltIn::TileOffsetQCOM;
 1287|      0|    case glslang::EbvTileDimensionQCOM:
  ------------------
  |  Branch (1287:5): [True: 0, False: 1.49k]
  ------------------
 1288|      0|        builder.addExtension(spv::E_SPV_QCOM_tile_shading);
 1289|      0|        return spv::BuiltIn::TileDimensionQCOM;
 1290|      0|    case glslang::EbvTileApronSizeQCOM:
  ------------------
  |  Branch (1290:5): [True: 0, False: 1.49k]
  ------------------
 1291|      0|        builder.addExtension(spv::E_SPV_QCOM_tile_shading);
 1292|      0|        return spv::BuiltIn::TileApronSizeQCOM;
 1293|       |
 1294|       |    // SPV_EXT_descriptor_heap
 1295|      0|    case glslang::EbvSamplerHeapEXT:
  ------------------
  |  Branch (1295:5): [True: 0, False: 1.49k]
  ------------------
 1296|      0|        builder.addExtension(spv::E_SPV_EXT_descriptor_heap);
 1297|      0|        builder.addExtension(spv::E_SPV_KHR_untyped_pointers);
 1298|      0|        builder.addCapability(spv::Capability::DescriptorHeapEXT);
 1299|      0|        builder.addCapability(spv::Capability::UntypedPointersKHR);
 1300|       |        // Add SamplerHeapEXT Symbol for spv level.
 1301|      0|        if (builtInVariableIds.find(uint32_t(spv::BuiltIn::SamplerHeapEXT)) == builtInVariableIds.end()) {
  ------------------
  |  Branch (1301:13): [True: 0, False: 0]
  ------------------
 1302|      0|            spv::Id samplerHeapEXT =
 1303|      0|                builder.createUntypedVariable(spv::NoPrecision, spv::StorageClass::UniformConstant, "sampler_heap");
 1304|      0|            if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_4)
  ------------------
  |  Branch (1304:17): [True: 0, False: 0]
  ------------------
 1305|      0|                entryPoint->addIdOperand(samplerHeapEXT);
 1306|      0|            builder.addDecoration(samplerHeapEXT, spv::Decoration::BuiltIn, (int)spv::BuiltIn::SamplerHeapEXT);
 1307|      0|            builtInVariableIds.insert({uint32_t(spv::BuiltIn::SamplerHeapEXT), samplerHeapEXT});
 1308|      0|        }
 1309|      0|        return spv::BuiltIn::SamplerHeapEXT;
 1310|      0|    case glslang::EbvResourceHeapEXT:
  ------------------
  |  Branch (1310:5): [True: 0, False: 1.49k]
  ------------------
 1311|      0|        builder.addExtension(spv::E_SPV_EXT_descriptor_heap);
 1312|      0|        builder.addExtension(spv::E_SPV_KHR_untyped_pointers);
 1313|      0|        builder.addCapability(spv::Capability::DescriptorHeapEXT);
 1314|      0|        builder.addCapability(spv::Capability::UntypedPointersKHR);
 1315|       |        // Add ResourceHeapEXT Symbol for spv level.
 1316|      0|        if (builtInVariableIds.find(uint32_t(spv::BuiltIn::ResourceHeapEXT)) == builtInVariableIds.end()) {
  ------------------
  |  Branch (1316:13): [True: 0, False: 0]
  ------------------
 1317|      0|            spv::Id resourceHeapEXT =
 1318|      0|                builder.createUntypedVariable(spv::NoPrecision, spv::StorageClass::UniformConstant, "resource_heap");
 1319|      0|            if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_4)
  ------------------
  |  Branch (1319:17): [True: 0, False: 0]
  ------------------
 1320|      0|                entryPoint->addIdOperand(resourceHeapEXT);
 1321|      0|            builder.addDecoration(resourceHeapEXT, spv::Decoration::BuiltIn, (int)spv::BuiltIn::ResourceHeapEXT);
 1322|      0|            builtInVariableIds.insert({uint32_t(spv::BuiltIn::ResourceHeapEXT), resourceHeapEXT});
 1323|      0|        }
 1324|      0|        return spv::BuiltIn::ResourceHeapEXT;
 1325|       |
 1326|  1.49k|    default:
  ------------------
  |  Branch (1326:5): [True: 1.49k, False: 0]
  ------------------
 1327|  1.49k|        return spv::BuiltIn::Max;
 1328|  1.49k|    }
 1329|  1.49k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser13getForcedTypeEN7glslang16TBuiltInVariableERKNS1_5TTypeE:
 2928|  1.25k|{
 2929|  1.25k|    switch(glslangBuiltIn)
 2930|  1.25k|    {
 2931|      0|        case glslang::EbvSubGroupEqMask:
  ------------------
  |  Branch (2931:9): [True: 0, False: 1.25k]
  ------------------
 2932|      0|        case glslang::EbvSubGroupGeMask:
  ------------------
  |  Branch (2932:9): [True: 0, False: 1.25k]
  ------------------
 2933|      0|        case glslang::EbvSubGroupGtMask:
  ------------------
  |  Branch (2933:9): [True: 0, False: 1.25k]
  ------------------
 2934|      0|        case glslang::EbvSubGroupLeMask:
  ------------------
  |  Branch (2934:9): [True: 0, False: 1.25k]
  ------------------
 2935|      0|        case glslang::EbvSubGroupLtMask: {
  ------------------
  |  Branch (2935:9): [True: 0, False: 1.25k]
  ------------------
 2936|       |            // these require changing a 64-bit scaler -> a vector of 32-bit components
 2937|      0|            if (glslangType.isVector())
  ------------------
  |  Branch (2937:17): [True: 0, False: 0]
  ------------------
 2938|      0|                break;
 2939|      0|            spv::Id ivec4_type = builder.makeVectorType(builder.makeUintType(32), 4);
 2940|      0|            spv::Id uint64_type = builder.makeUintType(64);
 2941|      0|            std::pair<spv::Id, spv::Id> ret(ivec4_type, uint64_type);
 2942|      0|            return ret;
 2943|      0|        }
 2944|       |        // There are no SPIR-V builtins defined for these and map onto original non-transposed
 2945|       |        // builtins. During visitBinary we insert a transpose
 2946|      0|        case glslang::EbvWorldToObject3x4:
  ------------------
  |  Branch (2946:9): [True: 0, False: 1.25k]
  ------------------
 2947|      0|        case glslang::EbvObjectToWorld3x4: {
  ------------------
  |  Branch (2947:9): [True: 0, False: 1.25k]
  ------------------
 2948|      0|            spv::Id mat43 = builder.makeMatrixType(builder.makeFloatType(32), 4, 3);
 2949|      0|            spv::Id mat34 = builder.makeMatrixType(builder.makeFloatType(32), 3, 4);
 2950|      0|            std::pair<spv::Id, spv::Id> ret(mat43, mat34);
 2951|      0|            return ret;
 2952|      0|        }
 2953|  1.25k|        default:
  ------------------
  |  Branch (2953:9): [True: 1.25k, False: 0]
  ------------------
 2954|  1.25k|            break;
 2955|  1.25k|    }
 2956|       |
 2957|  1.25k|    std::pair<spv::Id, spv::Id> ret(spv::NoType, spv::NoType);
 2958|  1.25k|    return ret;
 2959|  1.25k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser15makeArraySizeIdERKN7glslang11TArraySizesEibb:
 7424|     66|{
 7425|       |    // First, see if this is sized with a node, meaning a specialization constant:
 7426|     66|    glslang::TIntermTyped* specNode = arraySizes.getDimNode(dim);
 7427|     66|    if (specNode != nullptr) {
  ------------------
  |  Branch (7427:9): [True: 0, False: 66]
  ------------------
 7428|       |        // Evaluating a type's size must not replace its caller's access chain.
 7429|      0|        const auto savedAccessChain = builder.getAccessChain();
 7430|      0|        builder.clearAccessChain();
 7431|      0|        SpecConstantOpModeGuard spec_constant_op_mode_setter(&builder);
 7432|      0|        spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
 7433|      0|        specNode->traverse(this);
 7434|      0|        const spv::Id size = accessChainLoad(specNode->getAsTyped()->getType());
 7435|      0|        builder.setAccessChain(savedAccessChain);
 7436|      0|        return size;
 7437|      0|    }
 7438|       |
 7439|       |    // Otherwise, need a compile-time (front end) size, get it:
 7440|     66|    int size = arraySizes.getDimSize(dim);
 7441|       |
 7442|     66|    if (!allowZero)
  ------------------
  |  Branch (7442:9): [True: 66, False: 0]
  ------------------
 7443|     66|        assert(size > 0);
 7444|       |
 7445|     66|    if (boolType) {
  ------------------
  |  Branch (7445:9): [True: 0, False: 66]
  ------------------
 7446|      0|        return builder.makeBoolConstant(size);
 7447|     66|    } else {
 7448|     66|        return builder.makeUintConstant(size);
 7449|     66|    }
 7450|     66|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_112_GLOBAL__N_123SpecConstantOpModeGuardC2EPN3spv7BuilderE:
   83|  22.2k|        : builder_(builder) {
   84|  22.2k|        previous_flag_ = builder->isInSpecConstCodeGenMode();
   85|  22.2k|    }
GlslangToSpv.cpp:_ZN12_GLOBAL__N_112_GLOBAL__N_123SpecConstantOpModeGuard24turnOnSpecConstantOpModeEv:
   90|  1.30k|    void turnOnSpecConstantOpMode() {
   91|  1.30k|        builder_->setToSpecConstCodeGenMode();
   92|  1.30k|    }
GlslangToSpv.cpp:_ZN12_GLOBAL__N_112_GLOBAL__N_123SpecConstantOpModeGuardD2Ev:
   86|  22.2k|    ~SpecConstantOpModeGuard() {
   87|  22.2k|        previous_flag_ ? builder_->setToSpecConstCodeGenMode()
  ------------------
  |  Branch (87:9): [True: 925, False: 21.3k]
  ------------------
   88|  22.2k|                       : builder_->setToNormalCodeGenMode();
   89|  22.2k|    }
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser12filterMemberERKN7glslang5TTypeE:
 6645|    394|{
 6646|    394|    auto& extensions = glslangIntermediate->getRequestedExtensions();
 6647|       |
 6648|    394|    if (member.getFieldName() == "gl_SecondaryViewportMaskNV" &&
  ------------------
  |  Branch (6648:9): [True: 0, False: 394]
  |  Branch (6648:9): [True: 0, False: 394]
  ------------------
 6649|      0|        extensions.find("GL_NV_stereo_view_rendering") == extensions.end())
  ------------------
  |  Branch (6649:9): [True: 0, False: 0]
  ------------------
 6650|      0|        return true;
 6651|    394|    if (member.getFieldName() == "gl_SecondaryPositionNV" &&
  ------------------
  |  Branch (6651:9): [True: 0, False: 394]
  |  Branch (6651:9): [True: 0, False: 394]
  ------------------
 6652|      0|        extensions.find("GL_NV_stereo_view_rendering") == extensions.end())
  ------------------
  |  Branch (6652:9): [True: 0, False: 0]
  ------------------
 6653|      0|        return true;
 6654|       |
 6655|    394|    if (glslangIntermediate->getStage() == EShLangMesh) {
  ------------------
  |  Branch (6655:9): [True: 0, False: 394]
  ------------------
 6656|      0|        if (member.getFieldName() == "gl_PrimitiveShadingRateEXT" &&
  ------------------
  |  Branch (6656:13): [True: 0, False: 0]
  |  Branch (6656:13): [True: 0, False: 0]
  ------------------
 6657|      0|            extensions.find("GL_EXT_fragment_shading_rate") == extensions.end())
  ------------------
  |  Branch (6657:13): [True: 0, False: 0]
  ------------------
 6658|      0|            return true;
 6659|      0|    }
 6660|       |
 6661|    394|    if (glslangIntermediate->getStage() != EShLangMesh) {
  ------------------
  |  Branch (6661:9): [True: 394, False: 0]
  ------------------
 6662|    394|        if ((member.getFieldName() == "gl_ViewportMask" || member.getFieldName() == "gl_ViewportIndex" ||
  ------------------
  |  Branch (6662:13): [True: 0, False: 394]
  |  Branch (6662:14): [True: 0, False: 394]
  |  Branch (6662:60): [True: 0, False: 394]
  ------------------
 6663|    394|             member.getFieldName() == "gl_Layer") &&
  ------------------
  |  Branch (6663:14): [True: 0, False: 394]
  ------------------
 6664|      0|            extensions.find("GL_NV_viewport_array2") == extensions.end())
  ------------------
  |  Branch (6664:13): [True: 0, False: 0]
  ------------------
 6665|      0|            return true;
 6666|    394|        if (member.getFieldName() == "gl_PositionPerViewNV" &&
  ------------------
  |  Branch (6666:13): [True: 0, False: 394]
  |  Branch (6666:13): [True: 0, False: 394]
  ------------------
 6667|      0|            extensions.find("GL_NVX_multiview_per_view_attributes") == extensions.end())
  ------------------
  |  Branch (6667:13): [True: 0, False: 0]
  ------------------
 6668|      0|            return true;
 6669|    394|        if (member.getFieldName() == "gl_ViewportMaskPerViewNV" &&
  ------------------
  |  Branch (6669:13): [True: 0, False: 394]
  |  Branch (6669:13): [True: 0, False: 394]
  ------------------
 6670|      0|            extensions.find("GL_NVX_multiview_per_view_attributes") == extensions.end())
  ------------------
  |  Branch (6670:13): [True: 0, False: 0]
  ------------------
 6671|      0|            return true;
 6672|       |        // The front end hides these where it owns a copy of the block. One it never had to
 6673|       |        // copy up, like the sized tessellation gl_in, still has the shared type.
 6674|    394|        if (member.getFieldName() == "gl_ClipDistance" || member.getFieldName() == "gl_CullDistance") {
  ------------------
  |  Branch (6674:13): [True: 0, False: 394]
  |  Branch (6674:59): [True: 0, False: 394]
  ------------------
 6675|      0|            if (glslangIntermediate->getProfile() == EEsProfile &&
  ------------------
  |  Branch (6675:17): [True: 0, False: 0]
  |  Branch (6675:17): [True: 0, False: 0]
  ------------------
 6676|      0|                extensions.find("GL_EXT_clip_cull_distance") == extensions.end())
  ------------------
  |  Branch (6676:17): [True: 0, False: 0]
  ------------------
 6677|      0|                return true;
 6678|      0|            if (member.getFieldName() == "gl_CullDistance" &&
  ------------------
  |  Branch (6678:17): [True: 0, False: 0]
  |  Branch (6678:17): [True: 0, False: 0]
  ------------------
 6679|      0|                glslangIntermediate->getProfile() != EEsProfile && glslangIntermediate->getVersion() < 450 &&
  ------------------
  |  Branch (6679:17): [True: 0, False: 0]
  |  Branch (6679:68): [True: 0, False: 0]
  ------------------
 6680|      0|                extensions.find("GL_ARB_cull_distance") == extensions.end())
  ------------------
  |  Branch (6680:17): [True: 0, False: 0]
  ------------------
 6681|      0|                return true;
 6682|      0|        }
 6683|    394|    }
 6684|       |
 6685|    394|    return false;
 6686|    394|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser17createSpvVariableEPKN7glslang13TIntermSymbolEj:
 5728|  1.25k|{
 5729|       |    // First, steer off constants, which are not SPIR-V variables, but
 5730|       |    // can still have a mapping to a SPIR-V Id.
 5731|       |    // This includes specialization constants.
 5732|  1.25k|    if (node->getQualifier().isConstant()) {
  ------------------
  |  Branch (5732:9): [True: 385, False: 868]
  ------------------
 5733|    385|        spv::Id result = createSpvConstant(*node);
 5734|    385|        if (result != spv::NoResult) {
  ------------------
  |  Branch (5734:13): [True: 385, False: 0]
  ------------------
 5735|    385|            auto name = node->getAsSymbolNode()->getAccessName().c_str();
 5736|    385|            auto typeId = convertGlslangToSpvType(node->getType());
 5737|    385|            builder.createConstVariable(typeId, name, result, currentFunction == nullptr);
 5738|    385|            return result;
 5739|    385|        }
 5740|    385|    }
 5741|       |
 5742|       |    // Now, handle actual variables
 5743|    868|    spv::StorageClass storageClass = TranslateStorageClass(node->getType());
 5744|    868|    spv::Id spvType = forcedType == spv::NoType ? convertGlslangToSpvType(node->getType())
  ------------------
  |  Branch (5744:23): [True: 868, False: 0]
  ------------------
 5745|    868|                                                : forcedType;
 5746|       |
 5747|    868|    const bool contains16BitType = node->getType().contains16BitFloat() ||
  ------------------
  |  Branch (5747:36): [True: 79, False: 789]
  ------------------
 5748|    789|                                   node->getType().contains16BitInt();
  ------------------
  |  Branch (5748:36): [True: 176, False: 613]
  ------------------
 5749|    868|    if (contains16BitType) {
  ------------------
  |  Branch (5749:9): [True: 255, False: 613]
  ------------------
 5750|    255|        switch (storageClass) {
 5751|     34|        case spv::StorageClass::Input:
  ------------------
  |  Branch (5751:9): [True: 34, False: 221]
  ------------------
 5752|     34|        case spv::StorageClass::Output:
  ------------------
  |  Branch (5752:9): [True: 0, False: 255]
  ------------------
 5753|     34|            builder.addIncorporatedExtension(spv::E_SPV_KHR_16bit_storage, spv::Spv_1_3);
 5754|     34|            builder.addCapability(spv::Capability::StorageInputOutput16);
 5755|     34|            break;
 5756|     19|        case spv::StorageClass::Uniform:
  ------------------
  |  Branch (5756:9): [True: 19, False: 236]
  ------------------
 5757|     19|            builder.addIncorporatedExtension(spv::E_SPV_KHR_16bit_storage, spv::Spv_1_3);
 5758|     19|            if (node->getType().getQualifier().storage == glslang::EvqBuffer)
  ------------------
  |  Branch (5758:17): [True: 1, False: 18]
  ------------------
 5759|      1|                builder.addCapability(spv::Capability::StorageUniformBufferBlock16);
 5760|     18|            else
 5761|     18|                builder.addCapability(spv::Capability::StorageUniform16);
 5762|     19|            break;
 5763|      0|        case spv::StorageClass::PushConstant:
  ------------------
  |  Branch (5763:9): [True: 0, False: 255]
  ------------------
 5764|      0|            builder.addIncorporatedExtension(spv::E_SPV_KHR_16bit_storage, spv::Spv_1_3);
 5765|      0|            builder.addCapability(spv::Capability::StoragePushConstant16);
 5766|      0|            break;
 5767|      0|        case spv::StorageClass::StorageBuffer:
  ------------------
  |  Branch (5767:9): [True: 0, False: 255]
  ------------------
 5768|      0|        case spv::StorageClass::PhysicalStorageBufferEXT:
  ------------------
  |  Branch (5768:9): [True: 0, False: 255]
  ------------------
 5769|      0|            builder.addIncorporatedExtension(spv::E_SPV_KHR_16bit_storage, spv::Spv_1_3);
 5770|      0|            builder.addCapability(spv::Capability::StorageUniformBufferBlock16);
 5771|      0|            break;
 5772|      0|        case spv::StorageClass::TileAttachmentQCOM:
  ------------------
  |  Branch (5772:9): [True: 0, False: 255]
  ------------------
 5773|      0|            builder.addCapability(spv::Capability::TileShadingQCOM);
 5774|      0|            break;
 5775|    202|        default:
  ------------------
  |  Branch (5775:9): [True: 202, False: 53]
  ------------------
 5776|    202|            if (storageClass == spv::StorageClass::Workgroup &&
  ------------------
  |  Branch (5776:17): [True: 0, False: 202]
  ------------------
 5777|      0|                node->getType().getBasicType() == glslang::EbtBlock) {
  ------------------
  |  Branch (5777:17): [True: 0, False: 0]
  ------------------
 5778|      0|                builder.addCapability(spv::Capability::WorkgroupMemoryExplicitLayout16BitAccessKHR);
 5779|      0|                break;
 5780|      0|            }
 5781|    202|            if (node->getType().contains16BitFloat())
  ------------------
  |  Branch (5781:17): [True: 68, False: 134]
  ------------------
 5782|     68|                builder.addCapability(spv::Capability::Float16);
 5783|    202|            if (node->getType().contains16BitInt())
  ------------------
  |  Branch (5783:17): [True: 134, False: 68]
  ------------------
 5784|    134|                builder.addCapability(spv::Capability::Int16);
 5785|    202|            break;
 5786|    255|        }
 5787|    255|    }
 5788|       |
 5789|    868|    if (node->getType().contains8BitInt()) {
  ------------------
  |  Branch (5789:9): [True: 2, False: 866]
  ------------------
 5790|      2|        if (storageClass == spv::StorageClass::PushConstant) {
  ------------------
  |  Branch (5790:13): [True: 0, False: 2]
  ------------------
 5791|      0|            builder.addIncorporatedExtension(spv::E_SPV_KHR_8bit_storage, spv::Spv_1_5);
 5792|      0|            builder.addCapability(spv::Capability::StoragePushConstant8);
 5793|      2|        } else if (storageClass == spv::StorageClass::Uniform) {
  ------------------
  |  Branch (5793:20): [True: 2, False: 0]
  ------------------
 5794|      2|            builder.addIncorporatedExtension(spv::E_SPV_KHR_8bit_storage, spv::Spv_1_5);
 5795|      2|            builder.addCapability(spv::Capability::UniformAndStorageBuffer8BitAccess);
 5796|      2|        } else if (storageClass == spv::StorageClass::StorageBuffer) {
  ------------------
  |  Branch (5796:20): [True: 0, False: 0]
  ------------------
 5797|      0|            builder.addIncorporatedExtension(spv::E_SPV_KHR_8bit_storage, spv::Spv_1_5);
 5798|      0|            builder.addCapability(spv::Capability::StorageBuffer8BitAccess);
 5799|      0|        } else if (storageClass == spv::StorageClass::Workgroup &&
  ------------------
  |  Branch (5799:20): [True: 0, False: 0]
  ------------------
 5800|      0|                   node->getType().getBasicType() == glslang::EbtBlock) {
  ------------------
  |  Branch (5800:20): [True: 0, False: 0]
  ------------------
 5801|      0|            builder.addCapability(spv::Capability::WorkgroupMemoryExplicitLayout8BitAccessKHR);
 5802|      0|        } else {
 5803|      0|            builder.addCapability(spv::Capability::Int8);
 5804|      0|        }
 5805|      2|    }
 5806|       |
 5807|    868|    const char* name = node->getName().c_str();
 5808|    868|    if (glslang::IsAnonymous(name))
  ------------------
  |  Branch (5808:9): [True: 38, False: 830]
  ------------------
 5809|     38|        name = "";
 5810|       |
 5811|    868|    spv::Id initializer = spv::NoResult;
 5812|       |
 5813|    868|    if (node->getType().getQualifier().storage == glslang::EvqUniform && !node->getConstArray().empty()) {
  ------------------
  |  Branch (5813:9): [True: 222, False: 646]
  |  Branch (5813:74): [True: 0, False: 222]
  ------------------
 5814|      0|        int nextConst = 0;
 5815|      0|        initializer = createSpvConstantFromConstUnionArray(node->getType(),
 5816|      0|                                                           node->getConstArray(),
 5817|      0|                                                           nextConst,
 5818|      0|                                                           false /* specConst */);
 5819|    868|    } else if (node->getType().getQualifier().isNullInit()) {
  ------------------
  |  Branch (5819:16): [True: 0, False: 868]
  ------------------
 5820|      0|        initializer = builder.makeNullConstant(spvType);
 5821|      0|    }
 5822|       |
 5823|    868|    spv::Id var = builder.createVariable(spv::NoPrecision, storageClass, spvType, name, initializer, false);
 5824|       |
 5825|    868|    if (options.emitNonSemanticShaderDebugInfo && storageClass != spv::StorageClass::Function) {
  ------------------
  |  Branch (5825:9): [True: 0, False: 868]
  |  Branch (5825:51): [True: 0, False: 0]
  ------------------
 5826|       |        // Create variable alias for retargeted symbols if any.
 5827|       |        // Notably, this is only applicable to built-in variables so that it is okay to only use name as the key.
 5828|      0|        auto [itBegin, itEnd] = glslangIntermediate->getBuiltinAliasLookup().equal_range(name);
 5829|      0|        for (auto it = itBegin; it != itEnd; ++it) {
  ------------------
  |  Branch (5829:33): [True: 0, False: 0]
  ------------------
 5830|      0|            builder.createDebugGlobalVariable(builder.getDebugType(spvType), it->second.c_str(), var);
 5831|      0|        }
 5832|      0|    }
 5833|       |
 5834|    868|    std::vector<spv::Decoration> topLevelDecorations;
 5835|    868|    glslang::TQualifier typeQualifier = node->getType().getQualifier();
 5836|    868|    TranslateMemoryDecoration(typeQualifier, topLevelDecorations, glslangIntermediate->usingVulkanMemoryModel());
 5837|    868|    for (auto deco : topLevelDecorations) {
  ------------------
  |  Branch (5837:20): [True: 28, False: 868]
  ------------------
 5838|     28|        builder.addDecoration(var, deco);
 5839|     28|    }
 5840|    868|    return var;
 5841|    868|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser23convertGlslangToSpvTypeERKN7glslang5TTypeEb:
 5902|  10.3k|{
 5903|  10.3k|    return convertGlslangToSpvType(type, getExplicitLayout(type), type.getQualifier(), false, forwardReferenceOnly);
 5904|  10.3k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser23convertGlslangToSpvTypeERKN7glslang5TTypeENS1_14TLayoutPackingERKNS1_10TQualifierEbb:
 6072|  10.5k|{
 6073|  10.5k|    spv::Id spvType = spv::NoResult;
 6074|       |
 6075|  10.5k|    switch (type.getBasicType()) {
 6076|    105|    case glslang::EbtVoid:
  ------------------
  |  Branch (6076:5): [True: 105, False: 10.4k]
  ------------------
 6077|    105|        spvType = builder.makeVoidType();
 6078|    105|        assert (! type.isArray());
 6079|    105|        break;
 6080|    739|    case glslang::EbtBool:
  ------------------
  |  Branch (6080:5): [True: 739, False: 9.83k]
  ------------------
 6081|       |        // "transparent" bool doesn't exist in SPIR-V.  The GLSL convention is
 6082|       |        // a 32-bit int where non-0 means true.
 6083|    739|        if (explicitLayout != glslang::ElpNone)
  ------------------
  |  Branch (6083:13): [True: 0, False: 739]
  ------------------
 6084|      0|            spvType = builder.makeUintType(32);
 6085|    739|        else
 6086|    739|            spvType = builder.makeBoolType();
 6087|    739|        break;
 6088|  2.38k|    case glslang::EbtInt:
  ------------------
  |  Branch (6088:5): [True: 2.38k, False: 8.18k]
  ------------------
 6089|  2.38k|        spvType = builder.makeIntType(32);
 6090|  2.38k|        break;
 6091|    413|    case glslang::EbtUint:
  ------------------
  |  Branch (6091:5): [True: 413, False: 10.1k]
  ------------------
 6092|    413|        spvType = builder.makeUintType(32);
 6093|    413|        break;
 6094|  1.84k|    case glslang::EbtFloat:
  ------------------
  |  Branch (6094:5): [True: 1.84k, False: 8.72k]
  ------------------
 6095|  1.84k|        spvType = builder.makeFloatType(32);
 6096|  1.84k|        break;
 6097|     36|    case glslang::EbtDouble:
  ------------------
  |  Branch (6097:5): [True: 36, False: 10.5k]
  ------------------
 6098|     36|        spvType = builder.makeFloatType(64);
 6099|     36|        break;
 6100|  1.36k|    case glslang::EbtFloat16:
  ------------------
  |  Branch (6100:5): [True: 1.36k, False: 9.20k]
  ------------------
 6101|  1.36k|        spvType = builder.makeFloatType(16);
 6102|  1.36k|        break;
 6103|      0|    case glslang::EbtBFloat16:
  ------------------
  |  Branch (6103:5): [True: 0, False: 10.5k]
  ------------------
 6104|      0|        spvType = builder.makeBFloat16Type();
 6105|      0|        break;
 6106|      0|    case glslang::EbtFloatE5M2:
  ------------------
  |  Branch (6106:5): [True: 0, False: 10.5k]
  ------------------
 6107|      0|        spvType = builder.makeFloatE5M2Type();
 6108|      0|        break;
 6109|      0|    case glslang::EbtFloatE4M3:
  ------------------
  |  Branch (6109:5): [True: 0, False: 10.5k]
  ------------------
 6110|      0|        spvType = builder.makeFloatE4M3Type();
 6111|      0|        break;
 6112|      0|    case glslang::EbtFloatE2M1:
  ------------------
  |  Branch (6112:5): [True: 0, False: 10.5k]
  ------------------
 6113|      0|        spvType = builder.makeFloatE2M1Type();
 6114|      0|        break;
 6115|      0|    case glslang::EbtFloatE3M2:
  ------------------
  |  Branch (6115:5): [True: 0, False: 10.5k]
  ------------------
 6116|      0|        spvType = builder.makeFloatE3M2Type();
 6117|      0|        break;
 6118|      0|    case glslang::EbtFloatE2M3:
  ------------------
  |  Branch (6118:5): [True: 0, False: 10.5k]
  ------------------
 6119|      0|        spvType = builder.makeFloatE2M3Type();
 6120|      0|        break;
 6121|      0|    case glslang::EbtFloatUE8M0:
  ------------------
  |  Branch (6121:5): [True: 0, False: 10.5k]
  ------------------
 6122|      0|        spvType = builder.makeFloatUE8M0Type();
 6123|      0|        break;
 6124|      0|    case glslang::EbtFloatMXINT8:
  ------------------
  |  Branch (6124:5): [True: 0, False: 10.5k]
  ------------------
 6125|      0|        spvType = builder.makeFloatMXINT8Type();
 6126|      0|        break;
 6127|     34|    case glslang::EbtInt8:
  ------------------
  |  Branch (6127:5): [True: 34, False: 10.5k]
  ------------------
 6128|     34|        spvType = builder.makeIntType(8);
 6129|     34|        break;
 6130|     36|    case glslang::EbtUint8:
  ------------------
  |  Branch (6130:5): [True: 36, False: 10.5k]
  ------------------
 6131|     36|        spvType = builder.makeUintType(8);
 6132|     36|        break;
 6133|  1.06k|    case glslang::EbtInt16:
  ------------------
  |  Branch (6133:5): [True: 1.06k, False: 9.51k]
  ------------------
 6134|  1.06k|        spvType = builder.makeIntType(16);
 6135|  1.06k|        break;
 6136|  1.42k|    case glslang::EbtUint16:
  ------------------
  |  Branch (6136:5): [True: 1.42k, False: 9.14k]
  ------------------
 6137|  1.42k|        spvType = builder.makeUintType(16);
 6138|  1.42k|        break;
 6139|    421|    case glslang::EbtInt64:
  ------------------
  |  Branch (6139:5): [True: 421, False: 10.1k]
  ------------------
 6140|    421|        spvType = builder.makeIntType(64);
 6141|    421|        break;
 6142|    392|    case glslang::EbtUint64:
  ------------------
  |  Branch (6142:5): [True: 392, False: 10.1k]
  ------------------
 6143|    392|        spvType = builder.makeUintType(64);
 6144|    392|        break;
 6145|      0|    case glslang::EbtAtomicUint:
  ------------------
  |  Branch (6145:5): [True: 0, False: 10.5k]
  ------------------
 6146|      0|        builder.addCapability(spv::Capability::AtomicStorage);
 6147|      0|        spvType = builder.makeUintType(32);
 6148|      0|        break;
 6149|      5|    case glslang::EbtAccStruct:
  ------------------
  |  Branch (6149:5): [True: 5, False: 10.5k]
  ------------------
 6150|      5|        switch (glslangIntermediate->getStage()) {
 6151|      0|        case EShLangRayGen:
  ------------------
  |  Branch (6151:9): [True: 0, False: 5]
  ------------------
 6152|      0|        case EShLangIntersect:
  ------------------
  |  Branch (6152:9): [True: 0, False: 5]
  ------------------
 6153|      0|        case EShLangAnyHit:
  ------------------
  |  Branch (6153:9): [True: 0, False: 5]
  ------------------
 6154|      0|        case EShLangClosestHit:
  ------------------
  |  Branch (6154:9): [True: 0, False: 5]
  ------------------
 6155|      0|        case EShLangMiss:
  ------------------
  |  Branch (6155:9): [True: 0, False: 5]
  ------------------
 6156|      0|        case EShLangCallable:
  ------------------
  |  Branch (6156:9): [True: 0, False: 5]
  ------------------
 6157|       |            // these all should have the RayTracingNV/KHR capability already
 6158|      0|            break;
 6159|      5|        default:
  ------------------
  |  Branch (6159:9): [True: 5, False: 0]
  ------------------
 6160|      5|            {
 6161|      5|                auto& extensions = glslangIntermediate->getRequestedExtensions();
 6162|      5|                if (extensions.find("GL_EXT_ray_query") != extensions.end()) {
  ------------------
  |  Branch (6162:21): [True: 5, False: 0]
  ------------------
 6163|      5|                    builder.addExtension(spv::E_SPV_KHR_ray_query);
 6164|      5|                    builder.addCapability(spv::Capability::RayQueryKHR);
 6165|      5|                }
 6166|      5|            }
 6167|      5|            break;
 6168|      5|        }
 6169|      5|        spvType = builder.makeAccelerationStructureType();
 6170|      5|        break;
 6171|      5|    case glslang::EbtRayQuery:
  ------------------
  |  Branch (6171:5): [True: 5, False: 10.5k]
  ------------------
 6172|      5|        {
 6173|      5|            auto& extensions = glslangIntermediate->getRequestedExtensions();
 6174|      5|            if (extensions.find("GL_EXT_ray_query") != extensions.end()) {
  ------------------
  |  Branch (6174:17): [True: 5, False: 0]
  ------------------
 6175|      5|                builder.addExtension(spv::E_SPV_KHR_ray_query);
 6176|      5|                builder.addCapability(spv::Capability::RayQueryKHR);
 6177|      5|            }
 6178|      5|            spvType = builder.makeRayQueryType();
 6179|      5|        }
 6180|      5|        break;
 6181|      0|    case glslang::EbtReference:
  ------------------
  |  Branch (6181:5): [True: 0, False: 10.5k]
  ------------------
 6182|      0|        {
 6183|       |            // Make the forward pointer, then recurse to convert the structure type, then
 6184|       |            // patch up the forward pointer with a real pointer type.
 6185|      0|            if (forwardPointers.find(type.getReferentType()) == forwardPointers.end()) {
  ------------------
  |  Branch (6185:17): [True: 0, False: 0]
  ------------------
 6186|      0|                spv::Id debugType = spv::NoType;
 6187|      0|                if (options.emitNonSemanticShaderDebugInfo &&
  ------------------
  |  Branch (6187:21): [True: 0, False: 0]
  ------------------
 6188|      0|                    glslangIntermediate->getSource() == glslang::EShSourceGlsl) {
  ------------------
  |  Branch (6188:21): [True: 0, False: 0]
  ------------------
 6189|       |                    // Array wrapping happens below, after the element pointer is resolved.
 6190|       |                    // Its debug type must also describe only that pointer.
 6191|      0|                    glslang::TType referenceType;
 6192|      0|                    referenceType.shallowCopy(type);
 6193|      0|                    referenceType.clearArraySizes();
 6194|      0|                    debugType = convertGlslangToDebugType(referenceType, true);
 6195|      0|                }
 6196|      0|                spv::Id forwardId = builder.makeForwardPointer(spv::StorageClass::PhysicalStorageBufferEXT, debugType);
 6197|      0|                forwardPointers[type.getReferentType()] = forwardId;
 6198|      0|            }
 6199|      0|            spvType = forwardPointers[type.getReferentType()];
 6200|      0|            if (!forwardReferenceOnly) {
  ------------------
  |  Branch (6200:17): [True: 0, False: 0]
  ------------------
 6201|      0|                spv::Id referentType = convertGlslangToSpvType(*type.getReferentType());
 6202|      0|                builder.makePointerFromForwardPointer(spv::StorageClass::PhysicalStorageBufferEXT,
 6203|      0|                                                      forwardPointers[type.getReferentType()],
 6204|      0|                                                      referentType);
 6205|      0|            }
 6206|      0|        }
 6207|      0|        break;
 6208|    209|    case glslang::EbtSampler:
  ------------------
  |  Branch (6208:5): [True: 209, False: 10.3k]
  ------------------
 6209|    209|        {
 6210|    209|            const glslang::TSampler& sampler = type.getSampler();
 6211|    209|            std::string debugName;
 6212|       |
 6213|    209|            if (sampler.isPureSampler()) {
  ------------------
  |  Branch (6213:17): [True: 4, False: 205]
  ------------------
 6214|      4|                if (options.emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (6214:21): [True: 0, False: 4]
  ------------------
 6215|      0|                    if (glslangIntermediate->getSource() == glslang::EShSourceGlsl) {
  ------------------
  |  Branch (6215:25): [True: 0, False: 0]
  ------------------
 6216|      0|                        debugName = sampler.getString();
 6217|      0|                    }
 6218|      0|                    else {
 6219|      0|                        debugName = "type.sampler";
 6220|      0|                    }
 6221|      0|                }
 6222|      4|                spvType = builder.makeSamplerType(debugName.c_str());
 6223|    205|            } else {
 6224|       |                // an image is present, make its type
 6225|    205|                if (options.emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (6225:21): [True: 0, False: 205]
  ------------------
 6226|      0|                    if (glslangIntermediate->getSource() == glslang::EShSourceGlsl) {
  ------------------
  |  Branch (6226:25): [True: 0, False: 0]
  ------------------
 6227|      0|                        debugName = sampler.removeCombined().getString();
 6228|      0|                    }
 6229|      0|                    else {
 6230|      0|                        switch (sampler.dim) {
 6231|      0|                        case glslang::Esd1D:           debugName = "type.1d.image"; break;
  ------------------
  |  Branch (6231:25): [True: 0, False: 0]
  ------------------
 6232|      0|                        case glslang::Esd2D:           debugName = "type.2d.image"; break;
  ------------------
  |  Branch (6232:25): [True: 0, False: 0]
  ------------------
 6233|      0|                        case glslang::Esd3D:           debugName = "type.3d.image"; break;
  ------------------
  |  Branch (6233:25): [True: 0, False: 0]
  ------------------
 6234|      0|                        case glslang::EsdCube:         debugName = "type.cube.image"; break;
  ------------------
  |  Branch (6234:25): [True: 0, False: 0]
  ------------------
 6235|      0|                        default:                       debugName = "type.image"; break;
  ------------------
  |  Branch (6235:25): [True: 0, False: 0]
  ------------------
 6236|      0|                        }
 6237|      0|                    }
 6238|      0|                }
 6239|    205|                spvType = builder.makeImageType(getSampledType(sampler), TranslateDimensionality(sampler),
 6240|    205|                                                sampler.isShadow(), sampler.isArrayed(), sampler.isMultiSample(),
 6241|    205|                                                sampler.isImageClass() ? 2 : 1, TranslateImageFormat(type), debugName.c_str());
  ------------------
  |  Branch (6241:49): [True: 88, False: 117]
  ------------------
 6242|    205|                if (sampler.isCombined() &&
  ------------------
  |  Branch (6242:21): [True: 97, False: 108]
  ------------------
 6243|     97|                    (!sampler.isBuffer() || glslangIntermediate->getSpv().spv < glslang::EShTargetSpv_1_6)) {
  ------------------
  |  Branch (6243:22): [True: 95, False: 2]
  |  Branch (6243:45): [True: 2, False: 0]
  ------------------
 6244|       |                    // Already has both image and sampler, make the combined type. Only combine sampler to
 6245|       |                    // buffer if before SPIR-V 1.6.
 6246|     97|                    if (options.emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (6246:25): [True: 0, False: 97]
  ------------------
 6247|      0|                        if (glslangIntermediate->getSource() == glslang::EShSourceGlsl) {
  ------------------
  |  Branch (6247:29): [True: 0, False: 0]
  ------------------
 6248|      0|                            debugName = sampler.getString();
 6249|      0|                        }
 6250|      0|                        else {
 6251|      0|                            debugName = "type.sampled.image";
 6252|      0|                        }
 6253|      0|                    }
 6254|     97|                    spvType = builder.makeSampledImageType(spvType, debugName.c_str());
 6255|     97|                }
 6256|    205|            }
 6257|    209|        }
 6258|    209|        break;
 6259|    209|    case glslang::EbtStruct:
  ------------------
  |  Branch (6259:5): [True: 22, False: 10.5k]
  ------------------
 6260|     85|    case glslang::EbtBlock:
  ------------------
  |  Branch (6260:5): [True: 63, False: 10.5k]
  ------------------
 6261|     85|        {
 6262|       |            // If it's an inner declared heap buffer or uniform block, using OpTypeBufferEXT
 6263|       |            // to convert it to an untyped type.
 6264|     85|            if (type.getQualifier().layoutDescriptorHeap && type.getQualifier().descriptorHeapDescriptorNode) {
  ------------------
  |  Branch (6264:17): [True: 0, False: 85]
  |  Branch (6264:61): [True: 0, False: 0]
  ------------------
 6265|      0|                spvType = builder.makeUntypedPointer(TranslateStorageClass(type), true);
 6266|      0|                break;
 6267|      0|            }
 6268|       |
 6269|       |            // If we've seen this struct type, return it
 6270|     85|            const glslang::TTypeList* glslangMembers = type.getStruct();
 6271|       |
 6272|       |            // Try to share structs for different layouts, but not yet for other
 6273|       |            // kinds of qualification (primarily not yet including interpolant qualification).
 6274|     85|            if (! HasNonLayoutQualifiers(type, qualifier))
  ------------------
  |  Branch (6274:17): [True: 85, False: 0]
  ------------------
 6275|     85|                spvType = structMap[explicitLayout][qualifier.layoutMatrix][glslangMembers];
 6276|     85|            if (spvType != spv::NoResult)
  ------------------
  |  Branch (6276:17): [True: 10, False: 75]
  ------------------
 6277|     10|                break;
 6278|       |
 6279|       |            // else, we haven't seen it...
 6280|     75|            if (type.getBasicType() == glslang::EbtBlock)
  ------------------
  |  Branch (6280:17): [True: 63, False: 12]
  ------------------
 6281|     63|                memberRemapper[glslangMembers].resize(glslangMembers->size());
 6282|     75|            spvType = convertGlslangStructToSpvType(type, glslangMembers, explicitLayout, qualifier);
 6283|     75|        }
 6284|      0|        break;
 6285|      0|    case glslang::EbtString:
  ------------------
  |  Branch (6285:5): [True: 0, False: 10.5k]
  ------------------
 6286|       |        // no type used for OpString
 6287|      0|        return 0;
 6288|       |
 6289|      0|    case glslang::EbtHitObjectNV: {
  ------------------
  |  Branch (6289:5): [True: 0, False: 10.5k]
  ------------------
 6290|      0|        builder.addExtension(spv::E_SPV_NV_shader_invocation_reorder);
 6291|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 6292|      0|        spvType = builder.makeHitObjectNVType();
 6293|      0|    }
 6294|      0|    break;
 6295|       |
 6296|      0|    case glslang::EbtHitObjectEXT: {
  ------------------
  |  Branch (6296:5): [True: 0, False: 10.5k]
  ------------------
 6297|      0|        builder.addExtension(spv::E_SPV_EXT_shader_invocation_reorder);
 6298|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderEXT);
 6299|      0|        spvType = builder.makeHitObjectEXTType();
 6300|      0|    }
 6301|      0|    break;
 6302|      0|    case glslang::EbtSpirvType: {
  ------------------
  |  Branch (6302:5): [True: 0, False: 10.5k]
  ------------------
 6303|       |        // GL_EXT_spirv_intrinsics
 6304|      0|        const auto& spirvType = type.getSpirvType();
 6305|      0|        const auto& spirvInst = spirvType.spirvInst;
 6306|       |
 6307|      0|        std::vector<spv::IdImmediate> operands;
 6308|      0|        for (const auto& typeParam : spirvType.typeParams) {
  ------------------
  |  Branch (6308:36): [True: 0, False: 0]
  ------------------
 6309|      0|            if (typeParam.getAsConstant() != nullptr) {
  ------------------
  |  Branch (6309:17): [True: 0, False: 0]
  ------------------
 6310|       |                // Constant expression
 6311|      0|                auto constant = typeParam.getAsConstant();
 6312|      0|                if (constant->isLiteral()) {
  ------------------
  |  Branch (6312:21): [True: 0, False: 0]
  ------------------
 6313|      0|                    if (constant->getBasicType() == glslang::EbtFloat) {
  ------------------
  |  Branch (6313:25): [True: 0, False: 0]
  ------------------
 6314|      0|                        float floatValue = static_cast<float>(constant->getConstArray()[0].getDConst());
 6315|      0|                        unsigned literal;
 6316|      0|                        static_assert(sizeof(literal) == sizeof(floatValue), "sizeof(unsigned) != sizeof(float)");
 6317|      0|                        memcpy(&literal, &floatValue, sizeof(literal));
 6318|      0|                        operands.push_back({false, literal});
 6319|      0|                    } else if (constant->getBasicType() == glslang::EbtInt) {
  ------------------
  |  Branch (6319:32): [True: 0, False: 0]
  ------------------
 6320|      0|                        unsigned literal = constant->getConstArray()[0].getIConst();
 6321|      0|                        operands.push_back({false, literal});
 6322|      0|                    } else if (constant->getBasicType() == glslang::EbtUint) {
  ------------------
  |  Branch (6322:32): [True: 0, False: 0]
  ------------------
 6323|      0|                        unsigned literal = constant->getConstArray()[0].getUConst();
 6324|      0|                        operands.push_back({false, literal});
 6325|      0|                    } else if (constant->getBasicType() == glslang::EbtBool) {
  ------------------
  |  Branch (6325:32): [True: 0, False: 0]
  ------------------
 6326|      0|                        unsigned literal = constant->getConstArray()[0].getBConst();
 6327|      0|                        operands.push_back({false, literal});
 6328|      0|                    } else if (constant->getBasicType() == glslang::EbtString) {
  ------------------
  |  Branch (6328:32): [True: 0, False: 0]
  ------------------
 6329|      0|                        auto str = constant->getConstArray()[0].getSConst()->c_str();
 6330|      0|                        unsigned literal = 0;
 6331|      0|                        char* literalPtr = reinterpret_cast<char*>(&literal);
 6332|      0|                        unsigned charCount = 0;
 6333|      0|                        char ch = 0;
 6334|      0|                        do {
 6335|      0|                            ch = *(str++);
 6336|      0|                            *(literalPtr++) = ch;
 6337|      0|                            ++charCount;
 6338|      0|                            if (charCount == 4) {
  ------------------
  |  Branch (6338:33): [True: 0, False: 0]
  ------------------
 6339|      0|                                operands.push_back({false, literal});
 6340|      0|                                literalPtr = reinterpret_cast<char*>(&literal);
 6341|      0|                                charCount = 0;
 6342|      0|                            }
 6343|      0|                        } while (ch != 0);
  ------------------
  |  Branch (6343:34): [True: 0, False: 0]
  ------------------
 6344|       |
 6345|       |                        // Partial literal is padded with 0
 6346|      0|                        if (charCount > 0) {
  ------------------
  |  Branch (6346:29): [True: 0, False: 0]
  ------------------
 6347|      0|                            for (; charCount < 4; ++charCount)
  ------------------
  |  Branch (6347:36): [True: 0, False: 0]
  ------------------
 6348|      0|                                *(literalPtr++) = 0;
 6349|      0|                            operands.push_back({false, literal});
 6350|      0|                        }
 6351|      0|                    } else
 6352|      0|                        assert(0); // Unexpected type
 6353|      0|                } else
 6354|      0|                    operands.push_back({true, createSpvConstant(*constant)});
 6355|      0|            } else {
 6356|       |                // Type specifier
 6357|      0|                assert(typeParam.getAsType() != nullptr);
 6358|      0|                operands.push_back({true, convertGlslangToSpvType(*typeParam.getAsType())});
 6359|      0|            }
 6360|      0|        }
 6361|       |
 6362|      0|        assert(spirvInst.set == ""); // Currently, couldn't be extended instructions.
 6363|      0|        spvType = builder.makeGenericType(static_cast<spv::Op>(spirvInst.id), operands);
 6364|       |
 6365|      0|        break;
 6366|     85|    }
 6367|      0|    case glslang::EbtTensorLayoutNV:
  ------------------
  |  Branch (6367:5): [True: 0, False: 10.5k]
  ------------------
 6368|      0|    {
 6369|      0|        builder.addCapability(spv::Capability::TensorAddressingNV);
 6370|      0|        builder.addExtension(spv::E_SPV_NV_tensor_addressing);
 6371|       |
 6372|      0|        std::vector<spv::IdImmediate> operands;
 6373|      0|        for (uint32_t i = 0; i < 2; ++i) {
  ------------------
  |  Branch (6373:30): [True: 0, False: 0]
  ------------------
 6374|      0|            operands.push_back({true, makeArraySizeId(*type.getTypeParameters()->arraySizes, i, true)});
 6375|      0|        }
 6376|      0|        spvType = builder.makeGenericType(spv::Op::OpTypeTensorLayoutNV, operands);
 6377|      0|        break;
 6378|     85|    }
 6379|      0|    case glslang::EbtTensorViewNV:
  ------------------
  |  Branch (6379:5): [True: 0, False: 10.5k]
  ------------------
 6380|      0|    {
 6381|      0|        builder.addCapability(spv::Capability::TensorAddressingNV);
 6382|      0|        builder.addExtension(spv::E_SPV_NV_tensor_addressing);
 6383|       |
 6384|      0|        uint32_t dim = type.getTypeParameters()->arraySizes->getDimSize(0);
 6385|      0|        assert(dim >= 1 && dim <= 5);
 6386|      0|        std::vector<spv::IdImmediate> operands;
 6387|      0|        for (uint32_t i = 0; i < dim + 2; ++i) {
  ------------------
  |  Branch (6387:30): [True: 0, False: 0]
  ------------------
 6388|      0|            operands.push_back({true, makeArraySizeId(*type.getTypeParameters()->arraySizes, i, true, i==1)});
 6389|      0|        }
 6390|      0|        spvType = builder.makeGenericType(spv::Op::OpTypeTensorViewNV, operands);
 6391|      0|        break;
 6392|     85|    }
 6393|      0|    default:
  ------------------
  |  Branch (6393:5): [True: 0, False: 10.5k]
  ------------------
 6394|      0|        assert(0);
 6395|      0|        break;
 6396|  10.5k|    }
 6397|       |
 6398|  10.5k|    if (type.isMatrix())
  ------------------
  |  Branch (6398:9): [True: 74, False: 10.4k]
  ------------------
 6399|     74|        spvType = builder.makeMatrixType(spvType, type.getMatrixCols(), type.getMatrixRows());
 6400|  10.4k|    else {
 6401|       |        // If this variable has a vector element count greater than 1, create a SPIR-V vector
 6402|  10.4k|        if (type.getVectorSize() > 1)
  ------------------
  |  Branch (6402:13): [True: 5.80k, False: 4.69k]
  ------------------
 6403|  5.80k|            spvType = builder.makeVectorType(spvType, type.getVectorSize());
 6404|  10.4k|    }
 6405|       |
 6406|  10.5k|    if (type.isCoopMatNV()) {
  ------------------
  |  Branch (6406:9): [True: 0, False: 10.5k]
  ------------------
 6407|      0|        builder.addCapability(spv::Capability::CooperativeMatrixNV);
 6408|      0|        builder.addExtension(spv::E_SPV_NV_cooperative_matrix);
 6409|       |
 6410|      0|        if (type.getBasicType() == glslang::EbtFloat16)
  ------------------
  |  Branch (6410:13): [True: 0, False: 0]
  ------------------
 6411|      0|            builder.addCapability(spv::Capability::Float16);
 6412|      0|        if (type.getBasicType() == glslang::EbtUint8 ||
  ------------------
  |  Branch (6412:13): [True: 0, False: 0]
  ------------------
 6413|      0|            type.getBasicType() == glslang::EbtInt8) {
  ------------------
  |  Branch (6413:13): [True: 0, False: 0]
  ------------------
 6414|      0|            builder.addCapability(spv::Capability::Int8);
 6415|      0|        }
 6416|       |
 6417|      0|        spv::Id scope = makeArraySizeId(*type.getTypeParameters()->arraySizes, 1);
 6418|      0|        spv::Id rows = makeArraySizeId(*type.getTypeParameters()->arraySizes, 2);
 6419|      0|        spv::Id cols = makeArraySizeId(*type.getTypeParameters()->arraySizes, 3);
 6420|       |
 6421|      0|        spvType = builder.makeCooperativeMatrixTypeNV(spvType, scope, rows, cols);
 6422|      0|    }
 6423|       |
 6424|  10.5k|    if (type.isCoopMatKHR()) {
  ------------------
  |  Branch (6424:9): [True: 0, False: 10.5k]
  ------------------
 6425|      0|        builder.addCapability(spv::Capability::CooperativeMatrixKHR);
 6426|      0|        builder.addExtension(spv::E_SPV_KHR_cooperative_matrix);
 6427|       |
 6428|      0|        if (type.getBasicType() == glslang::EbtBFloat16) {
  ------------------
  |  Branch (6428:13): [True: 0, False: 0]
  ------------------
 6429|      0|            builder.addExtension(spv::E_SPV_KHR_bfloat16);
 6430|      0|            builder.addCapability(spv::Capability::BFloat16CooperativeMatrixKHR);
 6431|      0|        }
 6432|       |
 6433|      0|        if (type.getBasicType() == glslang::EbtFloatE5M2 || type.getBasicType() == glslang::EbtFloatE4M3) {
  ------------------
  |  Branch (6433:13): [True: 0, False: 0]
  |  Branch (6433:61): [True: 0, False: 0]
  ------------------
 6434|      0|            builder.addExtension(spv::E_SPV_EXT_float8);
 6435|      0|            builder.addCapability(spv::Capability::Float8CooperativeMatrixEXT);
 6436|      0|        }
 6437|       |
 6438|      0|        if (type.getBasicType() == glslang::EbtFloat16)
  ------------------
  |  Branch (6438:13): [True: 0, False: 0]
  ------------------
 6439|      0|            builder.addCapability(spv::Capability::Float16);
 6440|      0|        if (type.getBasicType() == glslang::EbtUint8 || type.getBasicType() == glslang::EbtInt8) {
  ------------------
  |  Branch (6440:13): [True: 0, False: 0]
  |  Branch (6440:57): [True: 0, False: 0]
  ------------------
 6441|      0|            builder.addCapability(spv::Capability::Int8);
 6442|      0|        }
 6443|       |
 6444|      0|        spv::Id scope = makeArraySizeId(*type.getTypeParameters()->arraySizes, 0);
 6445|      0|        spv::Id rows = makeArraySizeId(*type.getTypeParameters()->arraySizes, 1);
 6446|      0|        spv::Id cols = makeArraySizeId(*type.getTypeParameters()->arraySizes, 2);
 6447|      0|        spv::Id use = makeArraySizeId(*type.getTypeParameters()->arraySizes, 3, true);
 6448|       |
 6449|      0|        spvType = builder.makeCooperativeMatrixTypeKHR(spvType, scope, rows, cols, use);
 6450|      0|    }
 6451|  10.5k|    else if (type.isTensorARM()) {
  ------------------
  |  Branch (6451:14): [True: 0, False: 10.5k]
  ------------------
 6452|      0|        builder.addCapability(spv::Capability::TensorsARM);
 6453|      0|        builder.addExtension(spv::E_SPV_ARM_tensors);
 6454|      0|        if (type.getBasicType() == glslang::EbtInt8 || type.getBasicType() == glslang::EbtUint8) {
  ------------------
  |  Branch (6454:13): [True: 0, False: 0]
  |  Branch (6454:56): [True: 0, False: 0]
  ------------------
 6455|      0|            builder.addCapability(spv::Capability::Int8);
 6456|      0|        } else if (type.getBasicType() == glslang::EbtInt16 ||
  ------------------
  |  Branch (6456:20): [True: 0, False: 0]
  ------------------
 6457|      0|                   type.getBasicType() == glslang::EbtUint16) {
  ------------------
  |  Branch (6457:20): [True: 0, False: 0]
  ------------------
 6458|      0|            builder.addCapability(spv::Capability::Int16);
 6459|      0|        } else if (type.getBasicType() == glslang::EbtInt64 ||
  ------------------
  |  Branch (6459:20): [True: 0, False: 0]
  ------------------
 6460|      0|                   type.getBasicType() == glslang::EbtUint64) {
  ------------------
  |  Branch (6460:20): [True: 0, False: 0]
  ------------------
 6461|      0|            builder.addCapability(spv::Capability::Int64);
 6462|      0|        } else if (type.getBasicType() == glslang::EbtFloat16) {
  ------------------
  |  Branch (6462:20): [True: 0, False: 0]
  ------------------
 6463|      0|            builder.addCapability(spv::Capability::Float16);
 6464|      0|        }
 6465|       |
 6466|      0|        spv::Id rank = makeArraySizeId(*type.getTypeParameters()->arraySizes, 0);
 6467|       |
 6468|      0|        spvType = builder.makeTensorTypeARM(spvType, rank);
 6469|      0|    }
 6470|       |
 6471|  10.5k|    if (type.isCoopVecNV()) {
  ------------------
  |  Branch (6471:9): [True: 0, False: 10.5k]
  ------------------
 6472|      0|        builder.addCapability(spv::Capability::CooperativeVectorNV);
 6473|      0|        builder.addExtension(spv::E_SPV_NV_cooperative_vector);
 6474|       |
 6475|      0|        if (type.getBasicType() == glslang::EbtFloat16)
  ------------------
  |  Branch (6475:13): [True: 0, False: 0]
  ------------------
 6476|      0|            builder.addCapability(spv::Capability::Float16);
 6477|      0|        if (type.getBasicType() == glslang::EbtUint8 || type.getBasicType() == glslang::EbtInt8) {
  ------------------
  |  Branch (6477:13): [True: 0, False: 0]
  |  Branch (6477:57): [True: 0, False: 0]
  ------------------
 6478|      0|            builder.addCapability(spv::Capability::Int8);
 6479|      0|        }
 6480|       |
 6481|      0|        spv::Id components = makeArraySizeId(*type.getTypeParameters()->arraySizes, 0);
 6482|       |
 6483|      0|        spvType = builder.makeCooperativeVectorTypeNV(spvType, components);
 6484|      0|    }
 6485|       |
 6486|  10.5k|    if (type.isLongVector()) {
  ------------------
  |  Branch (6486:9): [True: 0, False: 10.5k]
  ------------------
 6487|       |        // SPIR-V LongVectorEXT not needed when component count is literal 2-4.
 6488|      0|        const bool needLongVectorCap = type.hasSpecConstantVectorComponents() ||
  ------------------
  |  Branch (6488:40): [True: 0, False: 0]
  ------------------
 6489|      0|            (type.getTypeParameters()->arraySizes->getDimSize(0) < 2 ||
  ------------------
  |  Branch (6489:14): [True: 0, False: 0]
  ------------------
 6490|      0|             type.getTypeParameters()->arraySizes->getDimSize(0) > 4);
  ------------------
  |  Branch (6490:14): [True: 0, False: 0]
  ------------------
 6491|      0|        if (needLongVectorCap) {
  ------------------
  |  Branch (6491:13): [True: 0, False: 0]
  ------------------
 6492|      0|            builder.addCapability(spv::Capability::LongVectorEXT);
 6493|      0|            builder.addExtension(spv::E_SPV_EXT_long_vector);
 6494|      0|        }
 6495|       |
 6496|      0|        if (type.getBasicType() == glslang::EbtFloat16)
  ------------------
  |  Branch (6496:13): [True: 0, False: 0]
  ------------------
 6497|      0|            builder.addCapability(spv::Capability::Float16);
 6498|      0|        if (type.getBasicType() == glslang::EbtUint8 || type.getBasicType() == glslang::EbtInt8) {
  ------------------
  |  Branch (6498:13): [True: 0, False: 0]
  |  Branch (6498:57): [True: 0, False: 0]
  ------------------
 6499|      0|            builder.addCapability(spv::Capability::Int8);
 6500|      0|        }
 6501|       |
 6502|      0|        if (type.hasSpecConstantVectorComponents()) {
  ------------------
  |  Branch (6502:13): [True: 0, False: 0]
  ------------------
 6503|      0|            spv::Id components = makeArraySizeId(*type.getTypeParameters()->arraySizes, 0);
 6504|      0|            spvType = builder.makeCooperativeVectorTypeNV(spvType, components);
 6505|      0|        } else {
 6506|      0|            spvType = builder.makeVectorType(spvType, type.getTypeParameters()->arraySizes->getDimSize(0));
 6507|      0|        }
 6508|      0|    }
 6509|       |
 6510|  10.5k|    if (type.isArray()) {
  ------------------
  |  Branch (6510:9): [True: 71, False: 10.5k]
  ------------------
 6511|     71|        if (type.getQualifier().layoutDescriptorHeap && containsDescHeapDescriptorType(type)) {
  ------------------
  |  Branch (6511:13): [True: 0, False: 71]
  |  Branch (6511:57): [True: 0, False: 0]
  ------------------
 6512|      0|            std::vector<spv::Id> arrayStrides = descHeapLayout.getOrCreateArrayStrides(type);
 6513|      0|            assert((int)arrayStrides.size() == type.getArraySizes()->getNumDims());
 6514|      0|            int strideIndex = 0;
 6515|       |
 6516|      0|            for (int dim = type.getArraySizes()->getNumDims() - 1; dim > 0; --dim) {
  ------------------
  |  Branch (6516:68): [True: 0, False: 0]
  ------------------
 6517|      0|                spvType = builder.makeArrayType(spvType, makeArraySizeId(*type.getArraySizes(), dim), 1);
 6518|      0|                builder.addDecorationId(spvType, spv::Decoration::ArrayStrideIdEXT, arrayStrides[strideIndex++]);
 6519|      0|            }
 6520|       |
 6521|      0|            if (type.isSizedArray() && !type.isImplicitlySizedArray())
  ------------------
  |  Branch (6521:17): [True: 0, False: 0]
  |  Branch (6521:40): [True: 0, False: 0]
  ------------------
 6522|      0|                spvType = builder.makeArrayType(spvType, makeArraySizeId(*type.getArraySizes(), 0), 1);
 6523|      0|            else
 6524|      0|                spvType = builder.makeRuntimeArray(spvType);
 6525|      0|            builder.addDecorationId(spvType, spv::Decoration::ArrayStrideIdEXT, arrayStrides[strideIndex]);
 6526|     71|        } else {
 6527|     71|            glslang::TLayoutPacking arrayLayout = type.getQualifier().layoutDescriptorHeap ? glslang::ElpScalar : explicitLayout;
  ------------------
  |  Branch (6527:51): [True: 0, False: 71]
  ------------------
 6528|     71|            int stride = 0;  // keep this 0 unless doing an explicit layout; 0 will mean no decoration, no stride
 6529|       |
 6530|       |            // Do all but the outer dimension
 6531|     71|            if (type.getArraySizes()->getNumDims() > 1) {
  ------------------
  |  Branch (6531:17): [True: 0, False: 71]
  ------------------
 6532|       |                // We need to decorate array strides for types needing explicit layout, except blocks.
 6533|      0|                if (arrayLayout != glslang::ElpNone && type.getBasicType() != glslang::EbtBlock) {
  ------------------
  |  Branch (6533:21): [True: 0, False: 0]
  |  Branch (6533:56): [True: 0, False: 0]
  ------------------
 6534|       |                    // Use a dummy glslang type for querying internal strides of
 6535|       |                    // arrays of arrays, but using just a one-dimensional array.
 6536|      0|                    glslang::TType simpleArrayType(type, 0); // deference type of the array
 6537|      0|                    while (simpleArrayType.getArraySizes()->getNumDims() > 1)
  ------------------
  |  Branch (6537:28): [True: 0, False: 0]
  ------------------
 6538|      0|                        simpleArrayType.getArraySizes()->dereference();
 6539|       |
 6540|       |                    // Will compute the higher-order strides here, rather than making a whole
 6541|       |                    // pile of types and doing repetitive recursion on their contents.
 6542|      0|                    stride = getArrayStride(simpleArrayType, arrayLayout, qualifier.layoutMatrix);
 6543|      0|                }
 6544|       |
 6545|       |                // make the arrays
 6546|      0|                for (int dim = type.getArraySizes()->getNumDims() - 1; dim > 0; --dim) {
  ------------------
  |  Branch (6546:72): [True: 0, False: 0]
  ------------------
 6547|      0|                    spvType = builder.makeArrayType(spvType, makeArraySizeId(*type.getArraySizes(), dim), stride);
 6548|      0|                    if (stride > 0)
  ------------------
  |  Branch (6548:25): [True: 0, False: 0]
  ------------------
 6549|      0|                        builder.addDecoration(spvType, spv::Decoration::ArrayStride, stride);
 6550|      0|                    stride *= type.getArraySizes()->getDimSize(dim);
 6551|      0|                }
 6552|     71|            } else {
 6553|       |                // single-dimensional array, and don't yet have stride
 6554|       |                // We need to decorate array strides for types needing explicit layout, except blocks.
 6555|     71|                if (arrayLayout != glslang::ElpNone && type.getBasicType() != glslang::EbtBlock)
  ------------------
  |  Branch (6555:21): [True: 7, False: 64]
  |  Branch (6555:56): [True: 7, False: 0]
  ------------------
 6556|      7|                    stride = getArrayStride(type, arrayLayout, qualifier.layoutMatrix);
 6557|     71|            }
 6558|       |
 6559|       |            // Do the outer dimension, which might not be known for a runtime-sized array.
 6560|       |            // (Unsized arrays that survive through linking will be runtime-sized arrays)
 6561|     71|            const bool useRuntimeDescHeapArray =
 6562|     71|                type.getQualifier().layoutDescriptorHeap && type.isImplicitlySizedArray();
  ------------------
  |  Branch (6562:17): [True: 0, False: 71]
  |  Branch (6562:61): [True: 0, False: 0]
  ------------------
 6563|     71|            if (type.isSizedArray() && !useRuntimeDescHeapArray)
  ------------------
  |  Branch (6563:17): [True: 66, False: 5]
  |  Branch (6563:40): [True: 66, False: 0]
  ------------------
 6564|     66|                spvType = builder.makeArrayType(spvType, makeArraySizeId(*type.getArraySizes(), 0), stride);
 6565|      5|            else {
 6566|       |                // If we see an runtime array in a buffer_reference, it is not a descriptor
 6567|      5|                if (!lastBufferBlockMember && type.getBasicType() != glslang::EbtReference &&
  ------------------
  |  Branch (6567:21): [True: 0, False: 5]
  |  Branch (6567:47): [True: 0, False: 0]
  ------------------
 6568|      0|                    !type.getQualifier().layoutDescriptorHeap) {
  ------------------
  |  Branch (6568:21): [True: 0, False: 0]
  ------------------
 6569|      0|                    builder.addIncorporatedExtension("SPV_EXT_descriptor_indexing", spv::Spv_1_5);
 6570|      0|                    builder.addCapability(spv::Capability::RuntimeDescriptorArrayEXT);
 6571|      0|                }
 6572|      5|                spvType = builder.makeRuntimeArray(spvType);
 6573|      5|            }
 6574|     71|            if (stride > 0)
  ------------------
  |  Branch (6574:17): [True: 7, False: 64]
  ------------------
 6575|      7|                builder.addDecoration(spvType, spv::Decoration::ArrayStride, stride);
 6576|     71|        }
 6577|     71|    }
 6578|       |
 6579|  10.5k|    return spvType;
 6580|  10.5k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser14getSampledTypeERKN7glslang8TSamplerE:
 5845|    205|{
 5846|    205|    switch (sampler.type) {
 5847|      6|        case glslang::EbtInt:      return builder.makeIntType(32);
  ------------------
  |  Branch (5847:9): [True: 6, False: 199]
  ------------------
 5848|      6|        case glslang::EbtUint:     return builder.makeUintType(32);
  ------------------
  |  Branch (5848:9): [True: 6, False: 199]
  ------------------
 5849|     79|        case glslang::EbtFloat:    return builder.makeFloatType(32);
  ------------------
  |  Branch (5849:9): [True: 79, False: 126]
  ------------------
 5850|     64|        case glslang::EbtFloat16:
  ------------------
  |  Branch (5850:9): [True: 64, False: 141]
  ------------------
 5851|     64|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float_fetch);
 5852|     64|            builder.addCapability(spv::Capability::Float16ImageAMD);
 5853|     64|            return builder.makeFloatType(16);
 5854|     25|        case glslang::EbtInt64:
  ------------------
  |  Branch (5854:9): [True: 25, False: 180]
  ------------------
 5855|     25|            builder.addExtension(spv::E_SPV_EXT_shader_image_int64);
 5856|     25|            builder.addCapability(spv::Capability::Int64ImageEXT);
 5857|     25|            return builder.makeIntType(64);
 5858|     25|        case glslang::EbtUint64:
  ------------------
  |  Branch (5858:9): [True: 25, False: 180]
  ------------------
 5859|     25|            builder.addExtension(spv::E_SPV_EXT_shader_image_int64);
 5860|     25|            builder.addCapability(spv::Capability::Int64ImageEXT);
 5861|     25|            return builder.makeUintType(64);
 5862|      0|        default:
  ------------------
  |  Branch (5862:9): [True: 0, False: 205]
  ------------------
 5863|       |            assert(0);
 5864|      0|            return builder.makeFloatType(32);
 5865|    205|    }
 5866|    205|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_123TranslateDimensionalityERKN7glslang8TSamplerE:
  454|    205|{
  455|    205|    switch (sampler.dim) {
  456|     42|    case glslang::Esd1D:      return spv::Dim::Dim1D;
  ------------------
  |  Branch (456:5): [True: 42, False: 163]
  ------------------
  457|     90|    case glslang::Esd2D:      return spv::Dim::Dim2D;
  ------------------
  |  Branch (457:5): [True: 90, False: 115]
  ------------------
  458|     16|    case glslang::Esd3D:      return spv::Dim::Dim3D;
  ------------------
  |  Branch (458:5): [True: 16, False: 189]
  ------------------
  459|     42|    case glslang::EsdCube:    return spv::Dim::Cube;
  ------------------
  |  Branch (459:5): [True: 42, False: 163]
  ------------------
  460|      0|    case glslang::EsdRect:    return spv::Dim::Rect;
  ------------------
  |  Branch (460:5): [True: 0, False: 205]
  ------------------
  461|     11|    case glslang::EsdBuffer:  return spv::Dim::Buffer;
  ------------------
  |  Branch (461:5): [True: 11, False: 194]
  ------------------
  462|      4|    case glslang::EsdSubpass: return spv::Dim::SubpassData;
  ------------------
  |  Branch (462:5): [True: 4, False: 201]
  ------------------
  463|      0|    case glslang::EsdAttachmentEXT: return spv::Dim::TileImageDataEXT;
  ------------------
  |  Branch (463:5): [True: 0, False: 205]
  ------------------
  464|      0|    default:
  ------------------
  |  Branch (464:5): [True: 0, False: 205]
  ------------------
  465|       |        assert(0);
  466|      0|        return spv::Dim::Dim2D;
  467|    205|    }
  468|    205|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser20TranslateImageFormatERKN7glslang5TTypeE:
 1333|    205|{
 1334|    205|    assert(type.getBasicType() == glslang::EbtSampler);
 1335|       |
 1336|       |    // Check for capabilities
 1337|    205|    switch (type.getQualifier().getFormat()) {
 1338|      0|    case glslang::ElfRg32f:
  ------------------
  |  Branch (1338:5): [True: 0, False: 205]
  ------------------
 1339|      7|    case glslang::ElfRg16f:
  ------------------
  |  Branch (1339:5): [True: 7, False: 198]
  ------------------
 1340|      7|    case glslang::ElfR11fG11fB10f:
  ------------------
  |  Branch (1340:5): [True: 0, False: 205]
  ------------------
 1341|      7|    case glslang::ElfR16f:
  ------------------
  |  Branch (1341:5): [True: 0, False: 205]
  ------------------
 1342|      7|    case glslang::ElfRgba16:
  ------------------
  |  Branch (1342:5): [True: 0, False: 205]
  ------------------
 1343|      7|    case glslang::ElfRgb10A2:
  ------------------
  |  Branch (1343:5): [True: 0, False: 205]
  ------------------
 1344|      7|    case glslang::ElfRg16:
  ------------------
  |  Branch (1344:5): [True: 0, False: 205]
  ------------------
 1345|      7|    case glslang::ElfRg8:
  ------------------
  |  Branch (1345:5): [True: 0, False: 205]
  ------------------
 1346|      7|    case glslang::ElfR16:
  ------------------
  |  Branch (1346:5): [True: 0, False: 205]
  ------------------
 1347|      7|    case glslang::ElfR8:
  ------------------
  |  Branch (1347:5): [True: 0, False: 205]
  ------------------
 1348|      7|    case glslang::ElfRgba16Snorm:
  ------------------
  |  Branch (1348:5): [True: 0, False: 205]
  ------------------
 1349|      7|    case glslang::ElfRg16Snorm:
  ------------------
  |  Branch (1349:5): [True: 0, False: 205]
  ------------------
 1350|      7|    case glslang::ElfRg8Snorm:
  ------------------
  |  Branch (1350:5): [True: 0, False: 205]
  ------------------
 1351|      7|    case glslang::ElfR16Snorm:
  ------------------
  |  Branch (1351:5): [True: 0, False: 205]
  ------------------
 1352|      7|    case glslang::ElfR8Snorm:
  ------------------
  |  Branch (1352:5): [True: 0, False: 205]
  ------------------
 1353|       |
 1354|      7|    case glslang::ElfRg32i:
  ------------------
  |  Branch (1354:5): [True: 0, False: 205]
  ------------------
 1355|      7|    case glslang::ElfRg16i:
  ------------------
  |  Branch (1355:5): [True: 0, False: 205]
  ------------------
 1356|      7|    case glslang::ElfRg8i:
  ------------------
  |  Branch (1356:5): [True: 0, False: 205]
  ------------------
 1357|      7|    case glslang::ElfR16i:
  ------------------
  |  Branch (1357:5): [True: 0, False: 205]
  ------------------
 1358|      7|    case glslang::ElfR8i:
  ------------------
  |  Branch (1358:5): [True: 0, False: 205]
  ------------------
 1359|       |
 1360|      7|    case glslang::ElfRgb10a2ui:
  ------------------
  |  Branch (1360:5): [True: 0, False: 205]
  ------------------
 1361|      7|    case glslang::ElfRg32ui:
  ------------------
  |  Branch (1361:5): [True: 0, False: 205]
  ------------------
 1362|      7|    case glslang::ElfRg16ui:
  ------------------
  |  Branch (1362:5): [True: 0, False: 205]
  ------------------
 1363|      7|    case glslang::ElfRg8ui:
  ------------------
  |  Branch (1363:5): [True: 0, False: 205]
  ------------------
 1364|      7|    case glslang::ElfR16ui:
  ------------------
  |  Branch (1364:5): [True: 0, False: 205]
  ------------------
 1365|      7|    case glslang::ElfR8ui:
  ------------------
  |  Branch (1365:5): [True: 0, False: 205]
  ------------------
 1366|      7|        builder.addCapability(spv::Capability::StorageImageExtendedFormats);
 1367|      7|        break;
 1368|       |
 1369|     25|    case glslang::ElfR64ui:
  ------------------
  |  Branch (1369:5): [True: 25, False: 180]
  ------------------
 1370|     50|    case glslang::ElfR64i:
  ------------------
  |  Branch (1370:5): [True: 25, False: 180]
  ------------------
 1371|     50|        builder.addExtension(spv::E_SPV_EXT_shader_image_int64);
 1372|     50|        builder.addCapability(spv::Capability::Int64ImageEXT);
 1373|     50|        break;
 1374|    148|    default:
  ------------------
  |  Branch (1374:5): [True: 148, False: 57]
  ------------------
 1375|    148|        break;
 1376|    205|    }
 1377|       |
 1378|       |    // do the translation
 1379|    205|    switch (type.getQualifier().getFormat()) {
 1380|    121|    case glslang::ElfNone:          return spv::ImageFormat::Unknown;
  ------------------
  |  Branch (1380:5): [True: 121, False: 84]
  ------------------
 1381|      0|    case glslang::ElfRgba32f:       return spv::ImageFormat::Rgba32f;
  ------------------
  |  Branch (1381:5): [True: 0, False: 205]
  ------------------
 1382|     27|    case glslang::ElfRgba16f:       return spv::ImageFormat::Rgba16f;
  ------------------
  |  Branch (1382:5): [True: 27, False: 178]
  ------------------
 1383|      0|    case glslang::ElfR32f:          return spv::ImageFormat::R32f;
  ------------------
  |  Branch (1383:5): [True: 0, False: 205]
  ------------------
 1384|      0|    case glslang::ElfRgba8:         return spv::ImageFormat::Rgba8;
  ------------------
  |  Branch (1384:5): [True: 0, False: 205]
  ------------------
 1385|      0|    case glslang::ElfRgba8Snorm:    return spv::ImageFormat::Rgba8Snorm;
  ------------------
  |  Branch (1385:5): [True: 0, False: 205]
  ------------------
 1386|      0|    case glslang::ElfRg32f:         return spv::ImageFormat::Rg32f;
  ------------------
  |  Branch (1386:5): [True: 0, False: 205]
  ------------------
 1387|      7|    case glslang::ElfRg16f:         return spv::ImageFormat::Rg16f;
  ------------------
  |  Branch (1387:5): [True: 7, False: 198]
  ------------------
 1388|      0|    case glslang::ElfR11fG11fB10f:  return spv::ImageFormat::R11fG11fB10f;
  ------------------
  |  Branch (1388:5): [True: 0, False: 205]
  ------------------
 1389|      0|    case glslang::ElfR16f:          return spv::ImageFormat::R16f;
  ------------------
  |  Branch (1389:5): [True: 0, False: 205]
  ------------------
 1390|      0|    case glslang::ElfRgba16:        return spv::ImageFormat::Rgba16;
  ------------------
  |  Branch (1390:5): [True: 0, False: 205]
  ------------------
 1391|      0|    case glslang::ElfRgb10A2:       return spv::ImageFormat::Rgb10A2;
  ------------------
  |  Branch (1391:5): [True: 0, False: 205]
  ------------------
 1392|      0|    case glslang::ElfRg16:          return spv::ImageFormat::Rg16;
  ------------------
  |  Branch (1392:5): [True: 0, False: 205]
  ------------------
 1393|      0|    case glslang::ElfRg8:           return spv::ImageFormat::Rg8;
  ------------------
  |  Branch (1393:5): [True: 0, False: 205]
  ------------------
 1394|      0|    case glslang::ElfR16:           return spv::ImageFormat::R16;
  ------------------
  |  Branch (1394:5): [True: 0, False: 205]
  ------------------
 1395|      0|    case glslang::ElfR8:            return spv::ImageFormat::R8;
  ------------------
  |  Branch (1395:5): [True: 0, False: 205]
  ------------------
 1396|      0|    case glslang::ElfRgba16Snorm:   return spv::ImageFormat::Rgba16Snorm;
  ------------------
  |  Branch (1396:5): [True: 0, False: 205]
  ------------------
 1397|      0|    case glslang::ElfRg16Snorm:     return spv::ImageFormat::Rg16Snorm;
  ------------------
  |  Branch (1397:5): [True: 0, False: 205]
  ------------------
 1398|      0|    case glslang::ElfRg8Snorm:      return spv::ImageFormat::Rg8Snorm;
  ------------------
  |  Branch (1398:5): [True: 0, False: 205]
  ------------------
 1399|      0|    case glslang::ElfR16Snorm:      return spv::ImageFormat::R16Snorm;
  ------------------
  |  Branch (1399:5): [True: 0, False: 205]
  ------------------
 1400|      0|    case glslang::ElfR8Snorm:       return spv::ImageFormat::R8Snorm;
  ------------------
  |  Branch (1400:5): [True: 0, False: 205]
  ------------------
 1401|      0|    case glslang::ElfRgba32i:       return spv::ImageFormat::Rgba32i;
  ------------------
  |  Branch (1401:5): [True: 0, False: 205]
  ------------------
 1402|      0|    case glslang::ElfRgba16i:       return spv::ImageFormat::Rgba16i;
  ------------------
  |  Branch (1402:5): [True: 0, False: 205]
  ------------------
 1403|      0|    case glslang::ElfRgba8i:        return spv::ImageFormat::Rgba8i;
  ------------------
  |  Branch (1403:5): [True: 0, False: 205]
  ------------------
 1404|      0|    case glslang::ElfR32i:          return spv::ImageFormat::R32i;
  ------------------
  |  Branch (1404:5): [True: 0, False: 205]
  ------------------
 1405|      0|    case glslang::ElfRg32i:         return spv::ImageFormat::Rg32i;
  ------------------
  |  Branch (1405:5): [True: 0, False: 205]
  ------------------
 1406|      0|    case glslang::ElfRg16i:         return spv::ImageFormat::Rg16i;
  ------------------
  |  Branch (1406:5): [True: 0, False: 205]
  ------------------
 1407|      0|    case glslang::ElfRg8i:          return spv::ImageFormat::Rg8i;
  ------------------
  |  Branch (1407:5): [True: 0, False: 205]
  ------------------
 1408|      0|    case glslang::ElfR16i:          return spv::ImageFormat::R16i;
  ------------------
  |  Branch (1408:5): [True: 0, False: 205]
  ------------------
 1409|      0|    case glslang::ElfR8i:           return spv::ImageFormat::R8i;
  ------------------
  |  Branch (1409:5): [True: 0, False: 205]
  ------------------
 1410|      0|    case glslang::ElfRgba32ui:      return spv::ImageFormat::Rgba32ui;
  ------------------
  |  Branch (1410:5): [True: 0, False: 205]
  ------------------
 1411|      0|    case glslang::ElfRgba16ui:      return spv::ImageFormat::Rgba16ui;
  ------------------
  |  Branch (1411:5): [True: 0, False: 205]
  ------------------
 1412|      0|    case glslang::ElfRgba8ui:       return spv::ImageFormat::Rgba8ui;
  ------------------
  |  Branch (1412:5): [True: 0, False: 205]
  ------------------
 1413|      0|    case glslang::ElfR32ui:         return spv::ImageFormat::R32ui;
  ------------------
  |  Branch (1413:5): [True: 0, False: 205]
  ------------------
 1414|      0|    case glslang::ElfRg32ui:        return spv::ImageFormat::Rg32ui;
  ------------------
  |  Branch (1414:5): [True: 0, False: 205]
  ------------------
 1415|      0|    case glslang::ElfRg16ui:        return spv::ImageFormat::Rg16ui;
  ------------------
  |  Branch (1415:5): [True: 0, False: 205]
  ------------------
 1416|      0|    case glslang::ElfRgb10a2ui:     return spv::ImageFormat::Rgb10a2ui;
  ------------------
  |  Branch (1416:5): [True: 0, False: 205]
  ------------------
 1417|      0|    case glslang::ElfRg8ui:         return spv::ImageFormat::Rg8ui;
  ------------------
  |  Branch (1417:5): [True: 0, False: 205]
  ------------------
 1418|      0|    case glslang::ElfR16ui:         return spv::ImageFormat::R16ui;
  ------------------
  |  Branch (1418:5): [True: 0, False: 205]
  ------------------
 1419|      0|    case glslang::ElfR8ui:          return spv::ImageFormat::R8ui;
  ------------------
  |  Branch (1419:5): [True: 0, False: 205]
  ------------------
 1420|     25|    case glslang::ElfR64ui:         return spv::ImageFormat::R64ui;
  ------------------
  |  Branch (1420:5): [True: 25, False: 180]
  ------------------
 1421|     25|    case glslang::ElfR64i:          return spv::ImageFormat::R64i;
  ------------------
  |  Branch (1421:5): [True: 25, False: 180]
  ------------------
 1422|      0|    default:                        return spv::ImageFormat::Max;
  ------------------
  |  Branch (1422:5): [True: 0, False: 205]
  ------------------
 1423|    205|    }
 1424|    205|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122HasNonLayoutQualifiersERKN7glslang5TTypeERKNS0_10TQualifierE:
 1763|    160|{
 1764|       |    // This should list qualifiers that simultaneous satisfy:
 1765|       |    // - struct members might inherit from a struct declaration
 1766|       |    //     (note that non-block structs don't explicitly inherit,
 1767|       |    //      only implicitly, meaning no decoration involved)
 1768|       |    // - affect decorations on the struct members
 1769|       |    //     (note smooth does not, and expecting something like volatile
 1770|       |    //      to effect the whole object)
 1771|       |    // - are not part of the offset/st430/etc or row/column-major layout
 1772|    160|    return qualifier.invariant || (qualifier.hasLocation() && type.getBasicType() == glslang::EbtBlock);
  ------------------
  |  Branch (1772:12): [True: 0, False: 160]
  |  Branch (1772:36): [True: 0, False: 160]
  |  Branch (1772:63): [True: 0, False: 0]
  ------------------
 1773|    160|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser29convertGlslangStructToSpvTypeERKN7glslang5TTypeEPKNS1_7TVectorINS1_8TTypeLocEEENS1_14TLayoutPackingERKNS1_10TQualifierE:
 6695|     75|{
 6696|       |    // Create a vector of struct types for SPIR-V to consume
 6697|     75|    std::vector<spv::Id> spvMembers;
 6698|     75|    int memberDelta = 0;  // how much the member's index changes from glslang to SPIR-V, normally 0,
 6699|       |                          // except sometimes for blocks
 6700|     75|    std::vector<std::pair<glslang::TType*, glslang::TQualifier> > deferredForwardPointers;
 6701|     75|    std::vector<spv::StructMemberDebugInfo> memberDebugInfo;
 6702|    320|    for (int i = 0; i < (int)glslangMembers->size(); i++) {
  ------------------
  |  Branch (6702:21): [True: 245, False: 75]
  ------------------
 6703|    245|        auto& glslangMember = (*glslangMembers)[i];
 6704|    245|        if (glslangMember.type->hiddenMember()) {
  ------------------
  |  Branch (6704:13): [True: 0, False: 245]
  ------------------
 6705|      0|            ++memberDelta;
 6706|      0|            if (type.getBasicType() == glslang::EbtBlock)
  ------------------
  |  Branch (6706:17): [True: 0, False: 0]
  ------------------
 6707|      0|                memberRemapper[glslangMembers][i] = -1;
 6708|    245|        } else {
 6709|    245|            if (type.getBasicType() == glslang::EbtBlock) {
  ------------------
  |  Branch (6709:17): [True: 197, False: 48]
  ------------------
 6710|    197|                if (filterMember(*glslangMember.type)) {
  ------------------
  |  Branch (6710:21): [True: 0, False: 197]
  ------------------
 6711|      0|                    memberDelta++;
 6712|      0|                    memberRemapper[glslangMembers][i] = -1;
 6713|      0|                    continue;
 6714|      0|                }
 6715|    197|                memberRemapper[glslangMembers][i] = i - memberDelta;
 6716|    197|            }
 6717|       |            // modify just this child's view of the qualifier
 6718|    245|            glslang::TQualifier memberQualifier = glslangMember.type->getQualifier();
 6719|    245|            InheritQualifiers(memberQualifier, qualifier);
 6720|       |
 6721|       |            // manually inherit location
 6722|    245|            if (! memberQualifier.hasLocation() && qualifier.hasLocation())
  ------------------
  |  Branch (6722:17): [True: 245, False: 0]
  |  Branch (6722:52): [True: 0, False: 245]
  ------------------
 6723|      0|                memberQualifier.layoutLocation = qualifier.layoutLocation;
 6724|       |
 6725|       |            // recurse
 6726|    245|            bool lastBufferBlockMember = qualifier.storage == glslang::EvqBuffer &&
  ------------------
  |  Branch (6726:42): [True: 64, False: 181]
  ------------------
 6727|     64|                                         i == (int)glslangMembers->size() - 1;
  ------------------
  |  Branch (6727:42): [True: 21, False: 43]
  ------------------
 6728|       |
 6729|       |            // Make forward pointers for any pointer members.
 6730|    245|            if (glslangMember.type->isReference() &&
  ------------------
  |  Branch (6730:17): [True: 0, False: 245]
  |  Branch (6730:17): [True: 0, False: 245]
  ------------------
 6731|      0|                forwardPointers.find(glslangMember.type->getReferentType()) == forwardPointers.end()) {
  ------------------
  |  Branch (6731:17): [True: 0, False: 0]
  ------------------
 6732|      0|                deferredForwardPointers.push_back(std::make_pair(glslangMember.type, memberQualifier));
 6733|      0|            }
 6734|       |
 6735|       |            // Create the member type.
 6736|    245|            auto const spvMember = convertGlslangToSpvType(*glslangMember.type, explicitLayout, memberQualifier, lastBufferBlockMember,
 6737|    245|                glslangMember.type->isReference());
 6738|    245|            spvMembers.push_back(spvMember);
 6739|       |
 6740|       |            // Update the builder with the type's location so that we can create debug types for the structure members.
 6741|       |            // There doesn't exist a "clean" entry point for this information to be passed along to the builder so, for now,
 6742|       |            // it is stored in the builder and consumed during the construction of composite debug types.
 6743|       |            // TODO: This probably warrants further investigation. This approach was decided to be the least ugly of the
 6744|       |            // quick and dirty approaches that were tried.
 6745|       |            // Advantages of this approach:
 6746|       |            //  + Relatively clean. No direct calls into debug type system.
 6747|       |            //  + Handles nested recursive structures.
 6748|       |            // Disadvantages of this approach:
 6749|       |            //  + Not as clean as desired. Traverser queries/sets persistent state. This is fragile.
 6750|       |            //  + Table lookup during creation of composite debug types. This really shouldn't be necessary.
 6751|    245|            if(options.emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (6751:16): [True: 0, False: 245]
  ------------------
 6752|      0|                spv::StructMemberDebugInfo debugInfo{};
 6753|      0|                debugInfo.name = glslangMember.type->getFieldName();
 6754|      0|                debugInfo.line = glslangMember.loc.line;
 6755|      0|                debugInfo.column = glslangMember.loc.column;
 6756|       |
 6757|       |                // Per the GLSL spec, bool variables inside of a uniform or buffer block are generated as uint.
 6758|       |                // But for debug info, we want to represent them as bool because that is the original type in
 6759|       |                // the source code. The bool type can be nested within a vector or a multidimensional array,
 6760|       |                // so we must construct the chain of types up from the scalar bool.
 6761|      0|                if (glslangIntermediate->getSource() == glslang::EShSourceGlsl && explicitLayout != glslang::ElpNone &&
  ------------------
  |  Branch (6761:21): [True: 0, False: 0]
  |  Branch (6761:83): [True: 0, False: 0]
  ------------------
 6762|      0|                    glslangMember.type->getBasicType() == glslang::EbtBool) {
  ------------------
  |  Branch (6762:21): [True: 0, False: 0]
  ------------------
 6763|      0|                    debugInfo.debugTypeOverride = convertGlslangToDebugType(*glslangMember.type);
 6764|      0|                } else if (glslangMember.type->getQualifier().builtIn != glslang::EbvNone) {
  ------------------
  |  Branch (6764:28): [True: 0, False: 0]
  ------------------
 6765|       |                    // TODO - The built-in currently are not provide the correct line/column and spirv-val will validate these when using shaderDebugInfo
 6766|       |                    //
 6767|       |                    // There is a larger issue because even defining the builtIn such as
 6768|       |                    //
 6769|       |                    //      out gl_PerVertex {
 6770|       |                    //         vec4 gl_Position;
 6771|       |                    //     };
 6772|       |                    //
 6773|       |                    // in the shader also doesn't produce the correct line/column
 6774|       |                    // So for now, provide zero, as that is a valid value here
 6775|      0|                    debugInfo.line = 0;
 6776|      0|                    debugInfo.column = 0;
 6777|      0|                }
 6778|       |
 6779|      0|                memberDebugInfo.push_back(debugInfo);
 6780|      0|            }
 6781|    245|        }
 6782|    245|    }
 6783|       |
 6784|       |    // OffsetIdEXT must only be applied to members of structs where the struct
 6785|       |    // contains at least one <<Descriptor,descriptor>> type.
 6786|     75|    const bool useDescHeapIdDecorations = qualifier.layoutDescriptorHeap &&
  ------------------
  |  Branch (6786:43): [True: 0, False: 75]
  ------------------
 6787|      0|        !type.getQualifier().descriptorHeapDescriptorNode && containsDescHeapDescriptorType(type);
  ------------------
  |  Branch (6787:9): [True: 0, False: 0]
  |  Branch (6787:62): [True: 0, False: 0]
  ------------------
 6788|       |
 6789|       |    // Prepare the layout ids before the struct, as required by OpMemberDecorateIdEXT.
 6790|     75|    std::vector<spv::Id> descHeapMemberOffsets;
 6791|     75|    if (useDescHeapIdDecorations) {
  ------------------
  |  Branch (6791:9): [True: 0, False: 75]
  ------------------
 6792|      0|        descHeapMemberOffsets = descHeapLayout.getOrCreateStructMemberOffsets(type);
 6793|      0|        if (useHeapOffsetDecoration(type)) {
  ------------------
  |  Branch (6793:13): [True: 0, False: 0]
  ------------------
 6794|      0|            spv::Id heapOffset = makeHeapOffsetId(type);
 6795|      0|            if (heapOffset != spv::NoResult) {
  ------------------
  |  Branch (6795:17): [True: 0, False: 0]
  ------------------
 6796|       |                // Layout expressions allow narrow integers, but OffsetIdEXT requires 32 bits.
 6797|      0|                spv::Id offsetType = builder.getTypeId(heapOffset);
 6798|      0|                if (builder.getScalarTypeWidth(offsetType) < 32) {
  ------------------
  |  Branch (6798:21): [True: 0, False: 0]
  ------------------
 6799|      0|                    SpecConstantOpModeGuard specConstantMode(&builder);
 6800|      0|                    specConstantMode.turnOnSpecConstantOpMode();
 6801|      0|                    heapOffset = createIntWidthConversion(heapOffset, 0, builder.makeUintType(32), glslang::EbtUint,
 6802|      0|                                                          type.getQualifier().layoutHeapOffsetNode->getBasicType());
 6803|      0|                }
 6804|       |
 6805|       |                // Apply the heap offset only to this copy of the top-level member offsets.
 6806|       |                // Nested layouts and array strides remain relative to their own base.
 6807|      0|                for (spv::Id& memberOffset : descHeapMemberOffsets) {
  ------------------
  |  Branch (6807:44): [True: 0, False: 0]
  ------------------
 6808|      0|                    if (builder.isConstantScalar(memberOffset) && builder.getConstantScalar(memberOffset) == 0)
  ------------------
  |  Branch (6808:25): [True: 0, False: 0]
  |  Branch (6808:67): [True: 0, False: 0]
  ------------------
 6809|      0|                        memberOffset = heapOffset;
 6810|      0|                    else
 6811|      0|                        memberOffset = builder.createSpecConstantOp(spv::Op::OpIAdd, builder.makeUintType(32),
 6812|      0|                                                                    {heapOffset, memberOffset}, {});
 6813|      0|                }
 6814|      0|            }
 6815|      0|        }
 6816|      0|    }
 6817|       |
 6818|       |    // A heap declaration may have already emitted this source struct's debug
 6819|       |    // type without a physical SPIR-V type. Reuse it, and also cache types first
 6820|       |    // encountered through the functional path for later heap declarations.
 6821|     75|    const bool cacheDebugType = options.emitNonSemanticShaderDebugInfo &&
  ------------------
  |  Branch (6821:33): [True: 0, False: 75]
  ------------------
 6822|      0|        glslangIntermediate->getSource() == glslang::EShSourceGlsl;
  ------------------
  |  Branch (6822:9): [True: 0, False: 0]
  ------------------
 6823|     75|    spv::Id debugType = spv::NoType;
 6824|     75|    const auto* sourceMembers = glslangIntermediate->getStructSource(glslangMembers);
 6825|     75|    if (cacheDebugType) {
  ------------------
  |  Branch (6825:9): [True: 0, False: 75]
  ------------------
 6826|      0|        const auto found = debugStructMap.find(sourceMembers);
 6827|      0|        if (found != debugStructMap.end())
  ------------------
  |  Branch (6827:13): [True: 0, False: 0]
  ------------------
 6828|      0|            debugType = found->second;
 6829|      0|    }
 6830|       |
 6831|       |    // Make the SPIR-V type
 6832|     75|    spv::Id spvType = builder.makeStructType(spvMembers, memberDebugInfo, type.getTypeName().c_str(), false, debugType);
 6833|     75|    if (cacheDebugType)
  ------------------
  |  Branch (6833:9): [True: 0, False: 75]
  ------------------
 6834|      0|        debugStructMap[sourceMembers] = builder.getDebugType(spvType);
 6835|     75|    if (! HasNonLayoutQualifiers(type, qualifier))
  ------------------
  |  Branch (6835:9): [True: 75, False: 0]
  ------------------
 6836|     75|        structMap[explicitLayout][qualifier.layoutMatrix][glslangMembers] = spvType;
 6837|       |
 6838|       |    // Decorate it
 6839|     75|    if (useDescHeapIdDecorations) {
  ------------------
  |  Branch (6839:9): [True: 0, False: 75]
  ------------------
 6840|       |        // Only the top-level heap layout struct represents a resourceheap/samplerheap block.
 6841|       |        // If its last member is a runtime array, Vulkan still requires the struct type to
 6842|       |        // carry Block/BufferBlock; nested heap member structs should not get this decoration.
 6843|      0|        const bool isTopLevelHeapStruct =
 6844|      0|            qualifier.storage == glslang::EvqResourceHeap ||
  ------------------
  |  Branch (6844:13): [True: 0, False: 0]
  ------------------
 6845|      0|            qualifier.storage == glslang::EvqSamplerHeap;
  ------------------
  |  Branch (6845:13): [True: 0, False: 0]
  ------------------
 6846|      0|        if (isTopLevelHeapStruct && glslangIntermediate->getSpv().vulkan > 0 && !spvMembers.empty() &&
  ------------------
  |  Branch (6846:13): [True: 0, False: 0]
  |  Branch (6846:37): [True: 0, False: 0]
  |  Branch (6846:81): [True: 0, False: 0]
  ------------------
 6847|      0|            builder.getOpCode(spvMembers.back()) == spv::Op::OpTypeRuntimeArray) {
  ------------------
  |  Branch (6847:13): [True: 0, False: 0]
  ------------------
 6848|      0|            builder.addDecoration(spvType, TranslateBlockDecoration(qualifier.storage,
 6849|      0|                                  glslangIntermediate->usingStorageBuffer()));
 6850|      0|        }
 6851|       |
 6852|      0|        assert(descHeapMemberOffsets.size() == glslangMembers->size());
 6853|      0|        for (int member = 0; member < (int)glslangMembers->size() && member < (int)spvMembers.size(); ++member) {
  ------------------
  |  Branch (6853:30): [True: 0, False: 0]
  |  Branch (6853:70): [True: 0, False: 0]
  ------------------
 6854|      0|            glslang::TType& glslangMember = *(*glslangMembers)[member].type;
 6855|       |
 6856|       |            // Decorate offset.
 6857|      0|            builder.addMemberDecorationIdEXT(spvType, member, spv::Decoration::OffsetIdEXT,
 6858|      0|                                             {descHeapMemberOffsets[member]});
 6859|       |
 6860|       |            // Decorate matrix layout.
 6861|      0|            glslang::TQualifier memberQualifier = glslangMember.getQualifier();
 6862|      0|            InheritQualifiers(memberQualifier, qualifier);
 6863|      0|            if (!glslangMember.isMatrix() || memberQualifier.layoutMatrix == glslang::ElmNone)
  ------------------
  |  Branch (6863:17): [True: 0, False: 0]
  |  Branch (6863:46): [True: 0, False: 0]
  ------------------
 6864|      0|                continue;
 6865|       |
 6866|      0|            builder.addMemberDecoration(spvType, member,
 6867|      0|                                        TranslateLayoutDecoration(glslangMember, memberQualifier.layoutMatrix));
 6868|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::MatrixStride,
 6869|      0|                                        getMatrixStride(glslangMember, glslang::ElpScalar, memberQualifier.layoutMatrix));
 6870|      0|        }
 6871|     75|    } else if (qualifier.layoutDescriptorHeap) {
  ------------------
  |  Branch (6871:16): [True: 0, False: 75]
  ------------------
 6872|      0|        if (!type.getQualifier().descriptorHeapDescriptorNode)
  ------------------
  |  Branch (6872:13): [True: 0, False: 0]
  ------------------
 6873|      0|            decorateStructType(type, glslangMembers, glslang::ElpScalar, qualifier, spvType, spvMembers);
 6874|     75|    } else {
 6875|     75|        decorateStructType(type, glslangMembers, explicitLayout, qualifier, spvType, spvMembers);
 6876|     75|    }
 6877|       |
 6878|     75|    for (int i = 0; i < (int)deferredForwardPointers.size(); ++i) {
  ------------------
  |  Branch (6878:21): [True: 0, False: 75]
  ------------------
 6879|      0|        auto it = deferredForwardPointers[i];
 6880|      0|        convertGlslangToSpvType(*it.first, explicitLayout, it.second, false);
 6881|      0|    }
 6882|       |
 6883|     75|    return spvType;
 6884|     75|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_117InheritQualifiersERN7glslang10TQualifierERKS1_:
 1708|    490|{
 1709|    490|    if (child.layoutMatrix == glslang::ElmNone)
  ------------------
  |  Branch (1709:9): [True: 92, False: 398]
  ------------------
 1710|     92|        child.layoutMatrix = parent.layoutMatrix;
 1711|       |
 1712|    490|    if (parent.invariant)
  ------------------
  |  Branch (1712:9): [True: 0, False: 490]
  ------------------
 1713|      0|        child.invariant = true;
 1714|    490|    if (parent.flat)
  ------------------
  |  Branch (1714:9): [True: 0, False: 490]
  ------------------
 1715|      0|        child.flat = true;
 1716|    490|    if (parent.centroid)
  ------------------
  |  Branch (1716:9): [True: 0, False: 490]
  ------------------
 1717|      0|        child.centroid = true;
 1718|    490|    if (parent.nopersp)
  ------------------
  |  Branch (1718:9): [True: 0, False: 490]
  ------------------
 1719|      0|        child.nopersp = true;
 1720|    490|    if (parent.explicitInterp)
  ------------------
  |  Branch (1720:9): [True: 0, False: 490]
  ------------------
 1721|      0|        child.explicitInterp = true;
 1722|    490|    if (parent.perPrimitiveNV)
  ------------------
  |  Branch (1722:9): [True: 0, False: 490]
  ------------------
 1723|      0|        child.perPrimitiveNV = true;
 1724|    490|    if (parent.perViewNV)
  ------------------
  |  Branch (1724:9): [True: 0, False: 490]
  ------------------
 1725|      0|        child.perViewNV = true;
 1726|    490|    if (parent.perTaskNV)
  ------------------
  |  Branch (1726:9): [True: 0, False: 490]
  ------------------
 1727|      0|        child.perTaskNV = true;
 1728|    490|    if (parent.storage == glslang::EvqtaskPayloadSharedEXT)
  ------------------
  |  Branch (1728:9): [True: 0, False: 490]
  ------------------
 1729|      0|        child.storage = glslang::EvqtaskPayloadSharedEXT;
 1730|    490|    if (parent.patch)
  ------------------
  |  Branch (1730:9): [True: 0, False: 490]
  ------------------
 1731|      0|        child.patch = true;
 1732|    490|    if (parent.sample)
  ------------------
  |  Branch (1732:9): [True: 0, False: 490]
  ------------------
 1733|      0|        child.sample = true;
 1734|    490|    if (parent.coherent)
  ------------------
  |  Branch (1734:9): [True: 0, False: 490]
  ------------------
 1735|      0|        child.coherent = true;
 1736|    490|    if (parent.devicecoherent)
  ------------------
  |  Branch (1736:9): [True: 0, False: 490]
  ------------------
 1737|      0|        child.devicecoherent = true;
 1738|    490|    if (parent.queuefamilycoherent)
  ------------------
  |  Branch (1738:9): [True: 0, False: 490]
  ------------------
 1739|      0|        child.queuefamilycoherent = true;
 1740|    490|    if (parent.workgroupcoherent)
  ------------------
  |  Branch (1740:9): [True: 0, False: 490]
  ------------------
 1741|      0|        child.workgroupcoherent = true;
 1742|    490|    if (parent.subgroupcoherent)
  ------------------
  |  Branch (1742:9): [True: 0, False: 490]
  ------------------
 1743|      0|        child.subgroupcoherent = true;
 1744|    490|    if (parent.shadercallcoherent)
  ------------------
  |  Branch (1744:9): [True: 0, False: 490]
  ------------------
 1745|      0|        child.shadercallcoherent = true;
 1746|    490|    if (parent.nonprivate)
  ------------------
  |  Branch (1746:9): [True: 0, False: 490]
  ------------------
 1747|      0|        child.nonprivate = true;
 1748|    490|    if (parent.volatil)
  ------------------
  |  Branch (1748:9): [True: 0, False: 490]
  ------------------
 1749|      0|        child.volatil = true;
 1750|    490|    if (parent.nontemporal)
  ------------------
  |  Branch (1750:9): [True: 0, False: 490]
  ------------------
 1751|      0|        child.nontemporal = true;
 1752|    490|    if (parent.restrict)
  ------------------
  |  Branch (1752:9): [True: 0, False: 490]
  ------------------
 1753|      0|        child.restrict = true;
 1754|    490|    if (parent.readonly)
  ------------------
  |  Branch (1754:9): [True: 0, False: 490]
  ------------------
 1755|      0|        child.readonly = true;
 1756|    490|    if (parent.writeonly)
  ------------------
  |  Branch (1756:9): [True: 0, False: 490]
  ------------------
 1757|      0|        child.writeonly = true;
 1758|    490|    if (parent.nonUniform)
  ------------------
  |  Branch (1758:9): [True: 0, False: 490]
  ------------------
 1759|      0|        child.nonUniform = true;
 1760|    490|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser24createIntWidthConversionEjijN7glslang10TBasicTypeES2_:
10082|    207|{
10083|       |    // Get the result type width, based on the type to convert to.
10084|    207|    int width = GetNumBits(resultBasicType);
10085|       |
10086|       |    // Get the conversion operation and result type,
10087|       |    // based on the target width, but the source type.
10088|    207|    spv::Id type = spv::NoType;
10089|    207|    spv::Op convOp = spv::Op::OpNop;
10090|    207|    if (isTypeSignedInt(operandBasicType)) {
  ------------------
  |  Branch (10090:9): [True: 110, False: 97]
  ------------------
10091|    110|        convOp = spv::Op::OpSConvert;
10092|    110|        type = builder.makeIntType(width);
10093|    110|    } else {
10094|     97|        convOp = spv::Op::OpUConvert;
10095|     97|        type = builder.makeUintType(width);
10096|     97|    }
10097|       |
10098|    207|    if (builder.getOpCode(destType) == spv::Op::OpTypeCooperativeVectorNV) {
  ------------------
  |  Branch (10098:9): [True: 0, False: 207]
  ------------------
10099|      0|        type = builder.makeCooperativeVectorTypeNV(type, builder.getCooperativeVectorNumComponents(destType));
10100|    207|    } else if (vectorSize > 0)
  ------------------
  |  Branch (10100:16): [True: 95, False: 112]
  ------------------
10101|     95|        type = builder.makeVectorType(type, vectorSize);
10102|    112|    else if (builder.getOpCode(destType) == spv::Op::OpTypeCooperativeMatrixKHR ||
  ------------------
  |  Branch (10102:14): [True: 0, False: 112]
  ------------------
10103|    112|             builder.getOpCode(destType) == spv::Op::OpTypeCooperativeMatrixNV) {
  ------------------
  |  Branch (10103:14): [True: 0, False: 112]
  ------------------
10104|       |
10105|      0|        type = builder.makeCooperativeMatrixTypeWithSameShape(type, destType);
10106|      0|    }
10107|       |
10108|    207|    if (convOp == spv::Op::OpUConvert && specConstUConvertNeedsWorkaround()) {
  ------------------
  |  Branch (10108:9): [True: 97, False: 110]
  |  Branch (10108:42): [True: 50, False: 47]
  ------------------
10109|     50|        return createSpecConstUConvert(type, operand, vectorSize, GetNumBits(operandBasicType), width);
10110|     50|    }
10111|       |
10112|    157|    return builder.createUnaryOp(convOp, type, operand);
10113|    207|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser32specConstUConvertNeedsWorkaroundEv:
10117|    194|{
10118|    194|    return builder.isInSpecConstCodeGenMode() &&
  ------------------
  |  Branch (10118:12): [True: 100, False: 94]
  ------------------
10119|    100|           glslangIntermediate->getSpv().spv < glslang::EShTargetSpv_1_4;
  ------------------
  |  Branch (10119:12): [True: 100, False: 0]
  ------------------
10120|    194|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser23createSpecConstUConvertEjjiii:
10126|    100|{
10127|    100|    spv::Id result = builder.createUnaryOp(spv::Op::OpSConvert, typeId, operand);
10128|    100|    if (resultWidth <= operandWidth)
  ------------------
  |  Branch (10128:9): [True: 50, False: 50]
  ------------------
10129|     50|        return result;
10130|       |
10131|     50|    const spv::Id maskType = builder.makeUintType(resultWidth);
10132|     50|    const unsigned long long maskValue = (1ull << operandWidth) - 1;
10133|     50|    spv::Id mask = resultWidth == 64 ? builder.makeInt64Constant(maskType, maskValue, false)
  ------------------
  |  Branch (10133:20): [True: 26, False: 24]
  ------------------
10134|     50|                                     : builder.makeIntConstant(maskType, static_cast<unsigned>(maskValue), false);
10135|     50|    mask = makeSmearedConstant(mask, vectorSize);
10136|     50|    return builder.createBinOp(spv::Op::OpBitwiseAnd, typeId, result, mask);
10137|    100|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser19makeSmearedConstantEji:
10297|    324|{
10298|    324|    if (vectorSize == 0)
  ------------------
  |  Branch (10298:9): [True: 254, False: 70]
  ------------------
10299|    254|        return constant;
10300|       |
10301|     70|    spv::Id vectorTypeId = builder.makeVectorType(builder.getTypeId(constant), vectorSize);
10302|     70|    std::vector<spv::Id> components;
10303|    210|    for (int c = 0; c < vectorSize; ++c)
  ------------------
  |  Branch (10303:21): [True: 140, False: 70]
  ------------------
10304|    140|        components.push_back(constant);
10305|     70|    return builder.makeCompositeConstant(vectorTypeId, components);
10306|    324|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_124TranslateBlockDecorationEN7glslang17TStorageQualifierEb:
  489|     63|{
  490|     63|    switch (storage) {
  491|     47|    case glslang::EvqUniform:      return spv::Decoration::Block;
  ------------------
  |  Branch (491:5): [True: 47, False: 16]
  ------------------
  492|     16|    case glslang::EvqBuffer:       return useStorageBuffer ? spv::Decoration::Block : spv::Decoration::BufferBlock;
  ------------------
  |  Branch (492:5): [True: 16, False: 47]
  |  Branch (492:43): [True: 0, False: 16]
  ------------------
  493|      0|    case glslang::EvqVaryingIn:    return spv::Decoration::Block;
  ------------------
  |  Branch (493:5): [True: 0, False: 63]
  ------------------
  494|      0|    case glslang::EvqVaryingOut:   return spv::Decoration::Block;
  ------------------
  |  Branch (494:5): [True: 0, False: 63]
  ------------------
  495|      0|    case glslang::EvqShared:       return spv::Decoration::Block;
  ------------------
  |  Branch (495:5): [True: 0, False: 63]
  ------------------
  496|      0|    case glslang::EvqPayload:      return spv::Decoration::Block;
  ------------------
  |  Branch (496:5): [True: 0, False: 63]
  ------------------
  497|      0|    case glslang::EvqPayloadIn:    return spv::Decoration::Block;
  ------------------
  |  Branch (497:5): [True: 0, False: 63]
  ------------------
  498|      0|    case glslang::EvqHitAttr:      return spv::Decoration::Block;
  ------------------
  |  Branch (498:5): [True: 0, False: 63]
  ------------------
  499|      0|    case glslang::EvqCallableData:   return spv::Decoration::Block;
  ------------------
  |  Branch (499:5): [True: 0, False: 63]
  ------------------
  500|      0|    case glslang::EvqCallableDataIn: return spv::Decoration::Block;
  ------------------
  |  Branch (500:5): [True: 0, False: 63]
  ------------------
  501|      0|    case glslang::EvqHitObjectAttrNV: return spv::Decoration::Block;
  ------------------
  |  Branch (501:5): [True: 0, False: 63]
  ------------------
  502|      0|    case glslang::EvqHitObjectAttrEXT: return spv::Decoration::Block;
  ------------------
  |  Branch (502:5): [True: 0, False: 63]
  ------------------
  503|      0|    case glslang::EvqResourceHeap:  return spv::Decoration::Block;
  ------------------
  |  Branch (503:5): [True: 0, False: 63]
  ------------------
  504|      0|    case glslang::EvqSamplerHeap:   return spv::Decoration::Block;
  ------------------
  |  Branch (504:5): [True: 0, False: 63]
  ------------------
  505|      0|    default:
  ------------------
  |  Branch (505:5): [True: 0, False: 63]
  ------------------
  506|      0|        assert(0);
  507|      0|        break;
  508|     63|    }
  509|       |
  510|      0|    return spv::Decoration::Max;
  511|     63|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_125TranslateLayoutDecorationERKN7glslang5TTypeENS0_13TLayoutMatrixE:
  535|    320|{
  536|    320|    if (type.isMatrix()) {
  ------------------
  |  Branch (536:9): [True: 2, False: 318]
  ------------------
  537|      2|        switch (matrixLayout) {
  538|      0|        case glslang::ElmRowMajor:
  ------------------
  |  Branch (538:9): [True: 0, False: 2]
  ------------------
  539|      0|            return spv::Decoration::RowMajor;
  540|      2|        case glslang::ElmColumnMajor:
  ------------------
  |  Branch (540:9): [True: 2, False: 0]
  ------------------
  541|      2|            return spv::Decoration::ColMajor;
  542|      0|        default:
  ------------------
  |  Branch (542:9): [True: 0, False: 2]
  ------------------
  543|       |            // opaque layouts don't need a majorness
  544|      0|            return spv::Decoration::Max;
  545|      2|        }
  546|    318|    } else {
  547|    318|        switch (type.getBasicType()) {
  548|    255|        default:
  ------------------
  |  Branch (548:9): [True: 255, False: 63]
  ------------------
  549|    255|            return spv::Decoration::Max;
  550|      0|            break;
  551|     63|        case glslang::EbtBlock:
  ------------------
  |  Branch (551:9): [True: 63, False: 255]
  ------------------
  552|     63|            switch (type.getQualifier().storage) {
  553|      0|            case glslang::EvqShared:
  ------------------
  |  Branch (553:13): [True: 0, False: 63]
  ------------------
  554|     47|            case glslang::EvqUniform:
  ------------------
  |  Branch (554:13): [True: 47, False: 16]
  ------------------
  555|     63|            case glslang::EvqBuffer:
  ------------------
  |  Branch (555:13): [True: 16, False: 47]
  ------------------
  556|     63|                switch (type.getQualifier().layoutPacking) {
  557|      0|                case glslang::ElpShared:  return spv::Decoration::GLSLShared;
  ------------------
  |  Branch (557:17): [True: 0, False: 63]
  ------------------
  558|      0|                case glslang::ElpPacked:  return spv::Decoration::GLSLPacked;
  ------------------
  |  Branch (558:17): [True: 0, False: 63]
  ------------------
  559|     63|                default:
  ------------------
  |  Branch (559:17): [True: 63, False: 0]
  ------------------
  560|     63|                    return spv::Decoration::Max;
  561|     63|                }
  562|      0|            case glslang::EvqVaryingIn:
  ------------------
  |  Branch (562:13): [True: 0, False: 63]
  ------------------
  563|      0|            case glslang::EvqVaryingOut:
  ------------------
  |  Branch (563:13): [True: 0, False: 63]
  ------------------
  564|      0|                if (type.getQualifier().isTaskMemory()) {
  ------------------
  |  Branch (564:21): [True: 0, False: 0]
  ------------------
  565|      0|                    switch (type.getQualifier().layoutPacking) {
  566|      0|                    case glslang::ElpShared:  return spv::Decoration::GLSLShared;
  ------------------
  |  Branch (566:21): [True: 0, False: 0]
  ------------------
  567|      0|                    case glslang::ElpPacked:  return spv::Decoration::GLSLPacked;
  ------------------
  |  Branch (567:21): [True: 0, False: 0]
  ------------------
  568|      0|                    default: break;
  ------------------
  |  Branch (568:21): [True: 0, False: 0]
  ------------------
  569|      0|                    }
  570|      0|                } else {
  571|      0|                    assert(type.getQualifier().layoutPacking == glslang::ElpNone);
  572|      0|                }
  573|      0|                return spv::Decoration::Max;
  574|      0|            case glslang::EvqPayload:
  ------------------
  |  Branch (574:13): [True: 0, False: 63]
  ------------------
  575|      0|            case glslang::EvqPayloadIn:
  ------------------
  |  Branch (575:13): [True: 0, False: 63]
  ------------------
  576|      0|            case glslang::EvqHitAttr:
  ------------------
  |  Branch (576:13): [True: 0, False: 63]
  ------------------
  577|      0|            case glslang::EvqCallableData:
  ------------------
  |  Branch (577:13): [True: 0, False: 63]
  ------------------
  578|      0|            case glslang::EvqCallableDataIn:
  ------------------
  |  Branch (578:13): [True: 0, False: 63]
  ------------------
  579|      0|            case glslang::EvqHitObjectAttrNV:
  ------------------
  |  Branch (579:13): [True: 0, False: 63]
  ------------------
  580|      0|            case glslang::EvqHitObjectAttrEXT:
  ------------------
  |  Branch (580:13): [True: 0, False: 63]
  ------------------
  581|      0|            case glslang::EvqResourceHeap:
  ------------------
  |  Branch (581:13): [True: 0, False: 63]
  ------------------
  582|      0|            case glslang::EvqSamplerHeap:
  ------------------
  |  Branch (582:13): [True: 0, False: 63]
  ------------------
  583|      0|                return spv::Decoration::Max;
  584|      0|            default:
  ------------------
  |  Branch (584:13): [True: 0, False: 63]
  ------------------
  585|       |                assert(0);
  586|      0|                return spv::Decoration::Max;
  587|     63|            }
  588|    318|        }
  589|    318|    }
  590|    320|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser15getMatrixStrideERKN7glslang5TTypeENS1_14TLayoutPackingENS1_13TLayoutMatrixE:
 7709|      2|{
 7710|      2|    glslang::TType elementType;
 7711|      2|    elementType.shallowCopy(matrixType);
 7712|      2|    elementType.clearArraySizes();
 7713|       |
 7714|      2|    int size;
 7715|      2|    int stride;
 7716|      2|    glslangIntermediate->getMemberAlignment(elementType, size, stride, explicitLayout,
 7717|      2|        matrixLayout == glslang::ElmRowMajor);
 7718|       |
 7719|      2|    return stride;
 7720|      2|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser18decorateStructTypeERKN7glslang5TTypeEPKNS1_7TVectorINS1_8TTypeLocEEENS1_14TLayoutPackingERKNS1_10TQualifierEjRKNSt3__16vectorIjNSE_9allocatorIjEEEE:
 7271|     75|{
 7272|       |    // Name and decorate the non-hidden members
 7273|     75|    int offset = -1;
 7274|     75|    bool memberLocationInvalid = type.isArrayOfArrays() ||
  ------------------
  |  Branch (7274:34): [True: 0, False: 75]
  ------------------
 7275|     75|        (type.isArray() && (type.getQualifier().isArrayedIo(glslangIntermediate->getStage()) == false));
  ------------------
  |  Branch (7275:10): [True: 7, False: 68]
  |  Branch (7275:28): [True: 7, False: 0]
  ------------------
 7276|    320|    for (int i = 0; i < (int)glslangMembers->size(); i++) {
  ------------------
  |  Branch (7276:21): [True: 245, False: 75]
  ------------------
 7277|    245|        glslang::TType& glslangMember = *(*glslangMembers)[i].type;
 7278|    245|        int member = i;
 7279|    245|        if (type.getBasicType() == glslang::EbtBlock) {
  ------------------
  |  Branch (7279:13): [True: 197, False: 48]
  ------------------
 7280|    197|            member = memberRemapper[glslangMembers][i];
 7281|    197|            if (filterMember(glslangMember))
  ------------------
  |  Branch (7281:17): [True: 0, False: 197]
  ------------------
 7282|      0|                continue;
 7283|    197|        }
 7284|       |
 7285|       |        // modify just this child's view of the qualifier
 7286|    245|        glslang::TQualifier memberQualifier = glslangMember.getQualifier();
 7287|    245|        InheritQualifiers(memberQualifier, qualifier);
 7288|       |
 7289|       |        // using -1 above to indicate a hidden member
 7290|    245|        if (member < 0)
  ------------------
  |  Branch (7290:13): [True: 0, False: 245]
  ------------------
 7291|      0|            continue;
 7292|       |
 7293|    245|        builder.addMemberName(spvType, member, glslangMember.getFieldName().c_str());
 7294|    245|        builder.addMemberDecoration(spvType, member,
 7295|    245|                                    TranslateLayoutDecoration(glslangMember, memberQualifier.layoutMatrix));
 7296|    245|        builder.addMemberDecoration(spvType, member, TranslatePrecisionDecoration(glslangMember));
 7297|       |        // Add interpolation and auxiliary storage decorations only to
 7298|       |        // top-level members of Input and Output storage classes
 7299|    245|        if (type.getQualifier().storage == glslang::EvqVaryingIn ||
  ------------------
  |  Branch (7299:13): [True: 0, False: 245]
  ------------------
 7300|    245|            type.getQualifier().storage == glslang::EvqVaryingOut) {
  ------------------
  |  Branch (7300:13): [True: 0, False: 245]
  ------------------
 7301|      0|            if (type.getBasicType() == glslang::EbtBlock ||
  ------------------
  |  Branch (7301:17): [True: 0, False: 0]
  ------------------
 7302|      0|                glslangIntermediate->getSource() == glslang::EShSourceHlsl) {
  ------------------
  |  Branch (7302:17): [True: 0, False: 0]
  ------------------
 7303|      0|                builder.addMemberDecoration(spvType, member, TranslateInterpolationDecoration(memberQualifier));
 7304|      0|                builder.addMemberDecoration(spvType, member, TranslateAuxiliaryStorageDecoration(memberQualifier));
 7305|      0|                addMeshNVDecoration(spvType, member, memberQualifier);
 7306|      0|            }
 7307|      0|        }
 7308|    245|        builder.addMemberDecoration(spvType, member, TranslateInvariantDecoration(memberQualifier));
 7309|       |
 7310|    245|        if (type.getBasicType() == glslang::EbtBlock &&
  ------------------
  |  Branch (7310:13): [True: 197, False: 48]
  ------------------
 7311|    197|            qualifier.storage == glslang::EvqBuffer) {
  ------------------
  |  Branch (7311:13): [True: 44, False: 153]
  ------------------
 7312|       |            // Add memory decorations only to top-level members of shader storage block
 7313|     44|            std::vector<spv::Decoration> memory;
 7314|     44|            TranslateMemoryDecoration(memberQualifier, memory, glslangIntermediate->usingVulkanMemoryModel());
 7315|     44|            for (unsigned int i = 0; i < memory.size(); ++i)
  ------------------
  |  Branch (7315:38): [True: 0, False: 44]
  ------------------
 7316|      0|                builder.addMemberDecoration(spvType, member, memory[i]);
 7317|     44|        }
 7318|       |
 7319|       |        // Location assignment was already completed correctly by the front end,
 7320|       |        // just track whether a member needs to be decorated.
 7321|       |        // Ignore member locations if the container is an array, as that's
 7322|       |        // ill-specified and decisions have been made to not allow this.
 7323|    245|        if (!memberLocationInvalid && memberQualifier.hasLocation())
  ------------------
  |  Branch (7323:13): [True: 217, False: 28]
  |  Branch (7323:39): [True: 0, False: 217]
  ------------------
 7324|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::Location, memberQualifier.layoutLocation);
 7325|       |
 7326|       |        // component, XFB, others
 7327|    245|        if (glslangMember.getQualifier().hasComponent())
  ------------------
  |  Branch (7327:13): [True: 0, False: 245]
  ------------------
 7328|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::Component,
 7329|      0|                                        glslangMember.getQualifier().layoutComponent);
 7330|    245|        if (glslangMember.getQualifier().hasXfbOffset())
  ------------------
  |  Branch (7330:13): [True: 0, False: 245]
  ------------------
 7331|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::Offset,
 7332|      0|                                        glslangMember.getQualifier().layoutXfbOffset);
 7333|    245|        else if (glslangMember.getQualifier().hasMemberOffset()) {
  ------------------
  |  Branch (7333:18): [True: 0, False: 245]
  ------------------
 7334|      0|            builder.addExtension(spv::E_SPV_NV_push_constant_bank);
 7335|      0|            builder.addCapability(spv::Capability::PushConstantBanksNV);
 7336|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::MemberOffsetNV,
 7337|      0|                                        glslangMember.getQualifier().layoutMemberOffset);
 7338|    245|        } else if (explicitLayout != glslang::ElpNone) {
  ------------------
  |  Branch (7338:20): [True: 225, False: 20]
  ------------------
 7339|       |            // figure out what to do with offset, which is accumulating
 7340|    225|            int nextOffset;
 7341|    225|            updateMemberOffset(type, glslangMember, offset, nextOffset, explicitLayout, memberQualifier.layoutMatrix);
 7342|    225|            if (offset >= 0)
  ------------------
  |  Branch (7342:17): [True: 225, False: 0]
  ------------------
 7343|    225|                builder.addMemberDecoration(spvType, member, spv::Decoration::Offset, offset);
 7344|    225|            offset = nextOffset;
 7345|    225|        }
 7346|       |
 7347|    245|        if (glslangMember.isMatrix() && explicitLayout != glslang::ElpNone)
  ------------------
  |  Branch (7347:13): [True: 2, False: 243]
  |  Branch (7347:41): [True: 2, False: 0]
  ------------------
 7348|      2|            builder.addMemberDecoration(spvType, member, spv::Decoration::MatrixStride,
 7349|      2|                                        getMatrixStride(glslangMember, explicitLayout, memberQualifier.layoutMatrix));
 7350|       |
 7351|       |        // built-in variable decorations
 7352|    245|        spv::BuiltIn builtIn = TranslateBuiltInDecoration(glslangMember.getQualifier().builtIn, true);
 7353|       |        // built-in decoration is used to detect AST nodes, but won't be decorated on member variables.
 7354|    245|        if (builtIn != spv::BuiltIn::Max &&
  ------------------
  |  Branch (7354:13): [True: 0, False: 245]
  ------------------
 7355|      0|            builtIn != spv::BuiltIn::ResourceHeapEXT && builtIn != spv::BuiltIn::SamplerHeapEXT)
  ------------------
  |  Branch (7355:13): [True: 0, False: 0]
  |  Branch (7355:57): [True: 0, False: 0]
  ------------------
 7356|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::BuiltIn, (int)builtIn);
 7357|       |
 7358|       |        // nonuniform
 7359|    245|        builder.addMemberDecoration(spvType, member, TranslateNonUniformDecoration(glslangMember.getQualifier()));
 7360|       |
 7361|    245|        if (glslangIntermediate->getHlslFunctionality1() && memberQualifier.semanticName != nullptr) {
  ------------------
  |  Branch (7361:13): [True: 0, False: 245]
  |  Branch (7361:61): [True: 0, False: 0]
  ------------------
 7362|      0|            builder.addExtension("SPV_GOOGLE_hlsl_functionality1");
 7363|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::HlslSemanticGOOGLE,
 7364|      0|                                        memberQualifier.semanticName);
 7365|      0|        }
 7366|       |
 7367|    245|        if (builtIn == spv::BuiltIn::Layer) {
  ------------------
  |  Branch (7367:13): [True: 0, False: 245]
  ------------------
 7368|       |            // SPV_NV_viewport_array2 extension
 7369|      0|            if (glslangMember.getQualifier().layoutViewportRelative){
  ------------------
  |  Branch (7369:17): [True: 0, False: 0]
  ------------------
 7370|      0|                builder.addMemberDecoration(spvType, member, spv::Decoration::ViewportRelativeNV);
 7371|      0|                builder.addCapability(spv::Capability::ShaderViewportMaskNV);
 7372|      0|                builder.addExtension(spv::E_SPV_NV_viewport_array2);
 7373|      0|            }
 7374|      0|            if (glslangMember.getQualifier().layoutSecondaryViewportRelativeOffset != -2048){
  ------------------
  |  Branch (7374:17): [True: 0, False: 0]
  ------------------
 7375|      0|                builder.addMemberDecoration(spvType, member,
 7376|      0|                                            spv::Decoration::SecondaryViewportRelativeNV,
 7377|      0|                                            glslangMember.getQualifier().layoutSecondaryViewportRelativeOffset);
 7378|      0|                builder.addCapability(spv::Capability::ShaderStereoViewNV);
 7379|      0|                builder.addExtension(spv::E_SPV_NV_stereo_view_rendering);
 7380|      0|            }
 7381|      0|        }
 7382|    245|        if (glslangMember.getQualifier().layoutPassthrough) {
  ------------------
  |  Branch (7382:13): [True: 0, False: 245]
  ------------------
 7383|      0|            builder.addMemberDecoration(spvType, member, spv::Decoration::PassthroughNV);
 7384|      0|            builder.addCapability(spv::Capability::GeometryShaderPassthroughNV);
 7385|      0|            builder.addExtension(spv::E_SPV_NV_geometry_shader_passthrough);
 7386|      0|        }
 7387|       |
 7388|       |        // Add SPIR-V decorations (GL_EXT_spirv_intrinsics)
 7389|    245|        if (glslangMember.getQualifier().hasSpirvDecorate())
  ------------------
  |  Branch (7389:13): [True: 0, False: 245]
  ------------------
 7390|      0|            applySpirvDecorate(glslangMember, spvType, member);
 7391|    245|    }
 7392|       |
 7393|       |    // Decorate the structure
 7394|     75|    builder.addDecoration(spvType, TranslateLayoutDecoration(type, qualifier.layoutMatrix));
 7395|     75|    const auto basicType = type.getBasicType();
 7396|     75|    const auto typeStorageQualifier = type.getQualifier().storage;
 7397|     75|    if (basicType == glslang::EbtBlock || qualifier.isBufferType()) {
  ------------------
  |  Branch (7397:9): [True: 63, False: 12]
  |  Branch (7397:43): [True: 0, False: 12]
  ------------------
 7398|     63|        builder.addDecoration(spvType, TranslateBlockDecoration(typeStorageQualifier, glslangIntermediate->usingStorageBuffer()));
 7399|     63|    } else if (basicType == glslang::EbtStruct && glslangIntermediate->getSpv().vulkan > 0) {
  ------------------
  |  Branch (7399:16): [True: 12, False: 0]
  |  Branch (7399:51): [True: 12, False: 0]
  ------------------
 7400|     12|        const auto hasRuntimeArray = !spvMembers.empty() && builder.getOpCode(spvMembers.back()) == spv::Op::OpTypeRuntimeArray;
  ------------------
  |  Branch (7400:38): [True: 12, False: 0]
  |  Branch (7400:61): [True: 0, False: 12]
  ------------------
 7401|     12|        if (hasRuntimeArray) {
  ------------------
  |  Branch (7401:13): [True: 0, False: 12]
  ------------------
 7402|      0|            builder.addDecoration(spvType, TranslateBlockDecoration(typeStorageQualifier, glslangIntermediate->usingStorageBuffer()));
 7403|      0|        }
 7404|     12|    }
 7405|       |
 7406|     75|    if (qualifier.hasHitObjectShaderRecordNV())
  ------------------
  |  Branch (7406:9): [True: 0, False: 75]
  ------------------
 7407|      0|        builder.addDecoration(spvType, spv::Decoration::HitObjectShaderRecordBufferNV);
 7408|       |
 7409|     75|    if (qualifier.hasBank()) {
  ------------------
  |  Branch (7409:9): [True: 0, False: 75]
  ------------------
 7410|      0|        builder.addExtension(spv::E_SPV_NV_push_constant_bank);
 7411|      0|        builder.addCapability(spv::Capability::PushConstantBanksNV);
 7412|      0|        builder.addDecoration(spvType, spv::Decoration::BankNV, qualifier.layoutBank);
 7413|      0|    }
 7414|       |
 7415|     75|    if (qualifier.hasHitObjectShaderRecordEXT())
  ------------------
  |  Branch (7415:9): [True: 0, False: 75]
  ------------------
 7416|      0|        builder.addDecoration(spvType, spv::Decoration::HitObjectShaderRecordBufferEXT);
 7417|     75|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser18updateMemberOffsetERKN7glslang5TTypeES4_RiS5_NS1_14TLayoutPackingENS1_13TLayoutMatrixE:
 7730|    225|{
 7731|       |    // this will get a positive value when deemed necessary
 7732|    225|    nextOffset = -1;
 7733|       |
 7734|       |    // override anything in currentOffset with user-set offset
 7735|    225|    if (memberType.getQualifier().hasOffset())
  ------------------
  |  Branch (7735:9): [True: 137, False: 88]
  ------------------
 7736|    137|        currentOffset = memberType.getQualifier().layoutOffset;
 7737|       |
 7738|       |    // It could be that current linker usage in glslang updated all the layoutOffset,
 7739|       |    // in which case the following code does not matter.  But, that's not quite right
 7740|       |    // once cross-compilation unit GLSL validation is done, as the original user
 7741|       |    // settings are needed in layoutOffset, and then the following will come into play.
 7742|       |
 7743|    225|    if (explicitLayout == glslang::ElpNone) {
  ------------------
  |  Branch (7743:9): [True: 0, False: 225]
  ------------------
 7744|      0|        if (! memberType.getQualifier().hasOffset())
  ------------------
  |  Branch (7744:13): [True: 0, False: 0]
  ------------------
 7745|      0|            currentOffset = -1;
 7746|       |
 7747|      0|        return;
 7748|      0|    }
 7749|       |
 7750|       |    // Getting this far means we need explicit offsets
 7751|    225|    if (currentOffset < 0)
  ------------------
  |  Branch (7751:9): [True: 38, False: 187]
  ------------------
 7752|     38|        currentOffset = 0;
 7753|       |
 7754|       |    // Now, currentOffset is valid (either 0, or from a previous nextOffset),
 7755|       |    // but possibly not yet correctly aligned.
 7756|       |
 7757|    225|    int memberSize;
 7758|    225|    int dummyStride;
 7759|    225|    int memberAlignment = glslangIntermediate->getMemberAlignment(memberType, memberSize, dummyStride, explicitLayout,
 7760|    225|        matrixLayout == glslang::ElmRowMajor);
 7761|       |
 7762|    225|    bool isVectorLike = memberType.isVector();
 7763|    225|    if (memberType.isMatrix()) {
  ------------------
  |  Branch (7763:9): [True: 2, False: 223]
  ------------------
 7764|      2|        if (matrixLayout == glslang::ElmRowMajor)
  ------------------
  |  Branch (7764:13): [True: 0, False: 2]
  ------------------
 7765|      0|            isVectorLike = memberType.getMatrixRows() == 1;
 7766|      2|        else
 7767|      2|            isVectorLike = memberType.getMatrixCols() == 1;
 7768|      2|    }
 7769|       |
 7770|       |    // Adjust alignment for HLSL rules
 7771|       |    // TODO: make this consistent in early phases of code:
 7772|       |    //       adjusting this late means inconsistencies with earlier code, which for reflection is an issue
 7773|       |    // Until reflection is brought in sync with these adjustments, don't apply to $Global,
 7774|       |    // which is the most likely to rely on reflection, and least likely to rely implicit layouts
 7775|    225|    if (glslangIntermediate->usingHlslOffsets() &&
  ------------------
  |  Branch (7775:9): [True: 0, False: 225]
  ------------------
 7776|      0|        ! memberType.isStruct() && structType.getTypeName().compare("$Global") != 0) {
  ------------------
  |  Branch (7776:9): [True: 0, False: 0]
  |  Branch (7776:36): [True: 0, False: 0]
  ------------------
 7777|      0|        int componentSize;
 7778|      0|        int componentAlignment = glslangIntermediate->getBaseAlignmentScalar(memberType, componentSize);
 7779|      0|        if (! memberType.isArray() && isVectorLike && componentAlignment <= 4)
  ------------------
  |  Branch (7779:13): [True: 0, False: 0]
  |  Branch (7779:39): [True: 0, False: 0]
  |  Branch (7779:55): [True: 0, False: 0]
  ------------------
 7780|      0|            memberAlignment = componentAlignment;
 7781|       |
 7782|       |        // Don't add unnecessary padding after this member
 7783|       |        // (undo std140 bumping size to a mutliple of vec4)
 7784|      0|        if (explicitLayout == glslang::ElpStd140) {
  ------------------
  |  Branch (7784:13): [True: 0, False: 0]
  ------------------
 7785|      0|            if (memberType.isMatrix()) {
  ------------------
  |  Branch (7785:17): [True: 0, False: 0]
  ------------------
 7786|      0|                if (matrixLayout == glslang::ElmRowMajor)
  ------------------
  |  Branch (7786:21): [True: 0, False: 0]
  ------------------
 7787|      0|                    memberSize -= componentSize * (4 - memberType.getMatrixCols());
 7788|      0|                else
 7789|      0|                    memberSize -= componentSize * (4 - memberType.getMatrixRows());
 7790|      0|            } else if (memberType.isArray())
  ------------------
  |  Branch (7790:24): [True: 0, False: 0]
  ------------------
 7791|      0|                memberSize -= componentSize * (4 - memberType.getVectorSize());
 7792|      0|        }
 7793|      0|    }
 7794|       |
 7795|       |    // Heap offsets are computed here rather than by fixBlockUniformOffsets.
 7796|       |    // Preserve explicit alignment for heap structs containing only data.
 7797|    225|    if (structType.getQualifier().layoutDescriptorHeap && memberType.getQualifier().hasAlign())
  ------------------
  |  Branch (7797:9): [True: 0, False: 225]
  |  Branch (7797:59): [True: 0, False: 0]
  ------------------
 7798|      0|        memberAlignment = std::max(memberAlignment, memberType.getQualifier().layoutAlign);
 7799|       |
 7800|       |    // Bump up to member alignment
 7801|    225|    glslang::RoundToPow2(currentOffset, memberAlignment);
 7802|       |
 7803|       |    // Bump up to vec4 if there is a bad straddle
 7804|    225|    if (explicitLayout != glslang::ElpScalar && glslangIntermediate->improperStraddle(memberType, memberSize,
  ------------------
  |  Branch (7804:9): [True: 225, False: 0]
  |  Branch (7804:49): [True: 0, False: 225]
  ------------------
 7805|    225|        currentOffset, isVectorLike))
 7806|      0|        glslang::RoundToPow2(currentOffset, 16);
 7807|       |
 7808|    225|    nextOffset = currentOffset + memberSize;
 7809|    225|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser29TranslateNonUniformDecorationERKN7glslang10TQualifierE:
  649|  15.4k|{
  650|  15.4k|    if (qualifier.isNonUniform()) {
  ------------------
  |  Branch (650:9): [True: 0, False: 15.4k]
  ------------------
  651|      0|        builder.addIncorporatedExtension("SPV_EXT_descriptor_indexing", spv::Spv_1_5);
  652|      0|        builder.addCapability(spv::Capability::ShaderNonUniformEXT);
  653|       |
  654|      0|        auto& extensions = glslangIntermediate->getRequestedExtensions();
  655|      0|        if (extensions.find("GL_EXT_descriptor_heap") != extensions.end()) {
  ------------------
  |  Branch (655:13): [True: 0, False: 0]
  ------------------
  656|      0|            builder.addExtension("SPV_EXT_descriptor_heap");
  657|      0|            builder.addCapability(spv::Capability::DescriptorHeapEXT);
  658|      0|        }
  659|      0|        else {
  660|      0|            return spv::Decoration::NonUniformEXT;
  661|      0|        }
  662|      0|    }
  663|       |
  664|  15.4k|    return spv::Decoration::Max;
  665|  15.4k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser14getArrayStrideERKN7glslang5TTypeENS1_14TLayoutPackingENS1_13TLayoutMatrixE:
 7696|      7|{
 7697|      7|    int size;
 7698|      7|    int stride;
 7699|      7|    glslangIntermediate->getMemberAlignment(arrayType, size, stride, explicitLayout,
 7700|      7|        matrixLayout == glslang::ElmRowMajor);
 7701|       |
 7702|      7|    return stride;
 7703|      7|}
GlslangToSpv.cpp:_ZNK12_GLOBAL__N_122TGlslangToSpvTraverser17getExplicitLayoutERKN7glslang5TTypeE:
 7668|  10.3k|{
 7669|       |    // Has to be a block. buffer_type is represented as a struct use in the AST,
 7670|       |    // but its payload still follows uniform/buffer block layout rules.
 7671|  10.3k|    if (type.getBasicType() != glslang::EbtBlock &&
  ------------------
  |  Branch (7671:9): [True: 10.2k, False: 63]
  ------------------
 7672|  10.2k|        !type.getQualifier().isBufferType())
  ------------------
  |  Branch (7672:9): [True: 10.2k, False: 0]
  ------------------
 7673|  10.2k|        return glslang::ElpNone;
 7674|       |
 7675|       |    // has to be a uniform or buffer block or task in/out blocks
 7676|     63|    if (type.getQualifier().storage != glslang::EvqUniform &&
  ------------------
  |  Branch (7676:9): [True: 16, False: 47]
  ------------------
 7677|     16|        type.getQualifier().storage != glslang::EvqBuffer &&
  ------------------
  |  Branch (7677:9): [True: 0, False: 16]
  ------------------
 7678|      0|        type.getQualifier().storage != glslang::EvqShared &&
  ------------------
  |  Branch (7678:9): [True: 0, False: 0]
  ------------------
 7679|      0|        !type.getQualifier().isTaskMemory())
  ------------------
  |  Branch (7679:9): [True: 0, False: 0]
  ------------------
 7680|      0|        return glslang::ElpNone;
 7681|       |
 7682|       |    // return the layout to use
 7683|     63|    switch (type.getQualifier().layoutPacking) {
 7684|     47|    case glslang::ElpStd140:
  ------------------
  |  Branch (7684:5): [True: 47, False: 16]
  ------------------
 7685|     63|    case glslang::ElpStd430:
  ------------------
  |  Branch (7685:5): [True: 16, False: 47]
  ------------------
 7686|     63|    case glslang::ElpScalar:
  ------------------
  |  Branch (7686:5): [True: 0, False: 63]
  ------------------
 7687|     63|        return type.getQualifier().layoutPacking;
 7688|      0|    default:
  ------------------
  |  Branch (7688:5): [True: 0, False: 63]
  ------------------
 7689|      0|        return glslang::ElpNone;
 7690|     63|    }
 7691|     63|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser21TranslateStorageClassERKN7glslang5TTypeE:
 1506|    868|{
 1507|    868|    if (type.getBasicType() == glslang::EbtRayQuery || type.getBasicType() == glslang::EbtHitObjectNV
  ------------------
  |  Branch (1507:9): [True: 5, False: 863]
  |  Branch (1507:56): [True: 0, False: 863]
  ------------------
 1508|    863|        || type.getBasicType() == glslang::EbtHitObjectEXT)
  ------------------
  |  Branch (1508:12): [True: 0, False: 863]
  ------------------
 1509|      5|        return spv::StorageClass::Private;
 1510|    863|    if (type.getQualifier().isSpirvByReference()) {
  ------------------
  |  Branch (1510:9): [True: 0, False: 863]
  ------------------
 1511|      0|        if (type.getQualifier().isParamInput() || type.getQualifier().isParamOutput())
  ------------------
  |  Branch (1511:13): [True: 0, False: 0]
  |  Branch (1511:51): [True: 0, False: 0]
  ------------------
 1512|      0|            return spv::StorageClass::Function;
 1513|      0|    }
 1514|    863|    if (type.getQualifier().isPipeInput())
  ------------------
  |  Branch (1514:9): [True: 67, False: 796]
  ------------------
 1515|     67|        return spv::StorageClass::Input;
 1516|    796|    if (type.getQualifier().isPipeOutput())
  ------------------
  |  Branch (1516:9): [True: 7, False: 789]
  ------------------
 1517|      7|        return spv::StorageClass::Output;
 1518|    789|    if (type.getQualifier().storage == glslang::EvqTileImageEXT || type.isAttachmentEXT()) {
  ------------------
  |  Branch (1518:9): [True: 0, False: 789]
  |  Branch (1518:68): [True: 0, False: 789]
  ------------------
 1519|      0|        builder.addExtension(spv::E_SPV_EXT_shader_tile_image);
 1520|      0|        builder.addCapability(spv::Capability::TileImageColorReadAccessEXT);
 1521|      0|        return spv::StorageClass::TileImageEXT;
 1522|      0|    }
 1523|       |
 1524|    789|    if (type.getQualifier().isTileAttachmentQCOM()) {
  ------------------
  |  Branch (1524:9): [True: 0, False: 789]
  ------------------
 1525|      0|        builder.addExtension(spv::E_SPV_QCOM_tile_shading);
 1526|      0|        builder.addCapability(spv::Capability::TileShadingQCOM);
 1527|      0|        return spv::StorageClass::TileAttachmentQCOM;
 1528|      0|    }
 1529|       |
 1530|    789|    if (glslangIntermediate->getSource() != glslang::EShSourceHlsl ||
  ------------------
  |  Branch (1530:9): [True: 789, False: 0]
  ------------------
 1531|    789|            type.getQualifier().storage == glslang::EvqUniform) {
  ------------------
  |  Branch (1531:13): [True: 0, False: 0]
  ------------------
 1532|    789|        if (type.isAtomic())
  ------------------
  |  Branch (1532:13): [True: 0, False: 789]
  ------------------
 1533|      0|            return spv::StorageClass::AtomicCounter;
 1534|    789|        if (type.containsOpaque() && !glslangIntermediate->getBindlessMode()) {
  ------------------
  |  Branch (1534:13): [True: 175, False: 614]
  |  Branch (1534:38): [True: 175, False: 0]
  ------------------
 1535|    175|            if (type.getQualifier().storage == glslang::EvqResourceHeap ||
  ------------------
  |  Branch (1535:17): [True: 0, False: 175]
  ------------------
 1536|    175|                type.getQualifier().storage == glslang::EvqSamplerHeap)
  ------------------
  |  Branch (1536:17): [True: 0, False: 175]
  ------------------
 1537|      0|                return spv::StorageClass::Uniform;
 1538|    175|            else
 1539|    175|                return spv::StorageClass::UniformConstant;
 1540|    175|        }
 1541|    789|    }
 1542|       |
 1543|    614|    if (type.getQualifier().isUniformOrBuffer() &&
  ------------------
  |  Branch (1543:9): [True: 63, False: 551]
  ------------------
 1544|     63|        type.getQualifier().isShaderRecord()) {
  ------------------
  |  Branch (1544:9): [True: 0, False: 63]
  ------------------
 1545|      0|        return spv::StorageClass::ShaderRecordBufferKHR;
 1546|      0|    }
 1547|       |
 1548|    614|    if (glslangIntermediate->usingStorageBuffer() && type.getQualifier().storage == glslang::EvqBuffer) {
  ------------------
  |  Branch (1548:9): [True: 0, False: 614]
  |  Branch (1548:54): [True: 0, False: 0]
  ------------------
 1549|      0|        builder.addIncorporatedExtension(spv::E_SPV_KHR_storage_buffer_storage_class, spv::Spv_1_3);
 1550|      0|        return spv::StorageClass::StorageBuffer;
 1551|      0|    }
 1552|       |
 1553|    614|    if (type.getQualifier().isUniformOrBuffer()) {
  ------------------
  |  Branch (1553:9): [True: 63, False: 551]
  ------------------
 1554|     63|        if (type.getQualifier().isPushConstant())
  ------------------
  |  Branch (1554:13): [True: 0, False: 63]
  ------------------
 1555|      0|            return spv::StorageClass::PushConstant;
 1556|     63|        if (type.getBasicType() == glslang::EbtBlock ||
  ------------------
  |  Branch (1556:13): [True: 63, False: 0]
  ------------------
 1557|      0|            type.getQualifier().layoutDescriptorHeap ||
  ------------------
  |  Branch (1557:13): [True: 0, False: 0]
  ------------------
 1558|      0|            type.getQualifier().isBufferType())
  ------------------
  |  Branch (1558:13): [True: 0, False: 0]
  ------------------
 1559|     63|            return spv::StorageClass::Uniform;
 1560|      0|        return spv::StorageClass::UniformConstant;
 1561|     63|    }
 1562|       |
 1563|    551|    if (type.getQualifier().storage == glslang::EvqShared && type.getBasicType() == glslang::EbtBlock) {
  ------------------
  |  Branch (1563:9): [True: 0, False: 551]
  |  Branch (1563:62): [True: 0, False: 0]
  ------------------
 1564|      0|        builder.addExtension(spv::E_SPV_KHR_workgroup_memory_explicit_layout);
 1565|      0|        builder.addCapability(spv::Capability::WorkgroupMemoryExplicitLayoutKHR);
 1566|      0|        return spv::StorageClass::Workgroup;
 1567|      0|    }
 1568|       |
 1569|    551|    switch (type.getQualifier().storage) {
 1570|     10|    case glslang::EvqGlobal:        return spv::StorageClass::Private;
  ------------------
  |  Branch (1570:5): [True: 10, False: 541]
  ------------------
 1571|      0|    case glslang::EvqConstReadOnly: return spv::StorageClass::Function;
  ------------------
  |  Branch (1571:5): [True: 0, False: 551]
  ------------------
 1572|    541|    case glslang::EvqTemporary:     return spv::StorageClass::Function;
  ------------------
  |  Branch (1572:5): [True: 541, False: 10]
  ------------------
 1573|      0|    case glslang::EvqShared:           return spv::StorageClass::Workgroup;
  ------------------
  |  Branch (1573:5): [True: 0, False: 551]
  ------------------
 1574|      0|    case glslang::EvqPayload:        return spv::StorageClass::RayPayloadKHR;
  ------------------
  |  Branch (1574:5): [True: 0, False: 551]
  ------------------
 1575|      0|    case glslang::EvqPayloadIn:      return spv::StorageClass::IncomingRayPayloadKHR;
  ------------------
  |  Branch (1575:5): [True: 0, False: 551]
  ------------------
 1576|      0|    case glslang::EvqHitAttr:        return spv::StorageClass::HitAttributeKHR;
  ------------------
  |  Branch (1576:5): [True: 0, False: 551]
  ------------------
 1577|      0|    case glslang::EvqCallableData:   return spv::StorageClass::CallableDataKHR;
  ------------------
  |  Branch (1577:5): [True: 0, False: 551]
  ------------------
 1578|      0|    case glslang::EvqCallableDataIn: return spv::StorageClass::IncomingCallableDataKHR;
  ------------------
  |  Branch (1578:5): [True: 0, False: 551]
  ------------------
 1579|      0|    case glslang::EvqtaskPayloadSharedEXT : return spv::StorageClass::TaskPayloadWorkgroupEXT;
  ------------------
  |  Branch (1579:5): [True: 0, False: 551]
  ------------------
 1580|      0|    case glslang::EvqHitObjectAttrNV: return spv::StorageClass::HitObjectAttributeNV;
  ------------------
  |  Branch (1580:5): [True: 0, False: 551]
  ------------------
 1581|      0|    case glslang::EvqHitObjectAttrEXT: return spv::StorageClass::HitObjectAttributeEXT;
  ------------------
  |  Branch (1581:5): [True: 0, False: 551]
  ------------------
 1582|      0|    case glslang::EvqSpirvStorageClass: return static_cast<spv::StorageClass>(type.getQualifier().spirvStorageClass);
  ------------------
  |  Branch (1582:5): [True: 0, False: 551]
  ------------------
 1583|      0|    default:
  ------------------
  |  Branch (1583:5): [True: 0, False: 551]
  ------------------
 1584|      0|        assert(0);
 1585|      0|        break;
 1586|    551|    }
 1587|       |
 1588|      0|    return spv::StorageClass::Function;
 1589|    551|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser36createSpvConstantFromConstUnionArrayERKN7glslang5TTypeERKNS1_16TConstUnionArrayERib:
12819|  1.98k|{
12820|       |    // vector of constants for SPIR-V
12821|  1.98k|    std::vector<spv::Id> spvConsts;
12822|       |
12823|       |    // Type is used for struct and array constants
12824|  1.98k|    spv::Id typeId = convertGlslangToSpvType(glslangType);
12825|       |
12826|  1.98k|    if (glslangType.isArray()) {
  ------------------
  |  Branch (12826:9): [True: 62, False: 1.92k]
  ------------------
12827|     62|        glslang::TType elementType(glslangType, 0);
12828|    285|        for (int i = 0; i < glslangType.getOuterArraySize(); ++i)
  ------------------
  |  Branch (12828:25): [True: 223, False: 62]
  ------------------
12829|    223|            spvConsts.push_back(createSpvConstantFromConstUnionArray(elementType, consts, nextConst, false));
12830|  1.92k|    } else if (glslangType.isMatrix()) {
  ------------------
  |  Branch (12830:16): [True: 0, False: 1.92k]
  ------------------
12831|      0|        glslang::TType vectorType(glslangType, 0);
12832|      0|        for (int col = 0; col < glslangType.getMatrixCols(); ++col)
  ------------------
  |  Branch (12832:27): [True: 0, False: 0]
  ------------------
12833|      0|            spvConsts.push_back(createSpvConstantFromConstUnionArray(vectorType, consts, nextConst, false));
12834|  1.92k|    } else if (glslangType.isCoopMat()) {
  ------------------
  |  Branch (12834:16): [True: 0, False: 1.92k]
  ------------------
12835|      0|        glslang::TType componentType(glslangType.getBasicType());
12836|      0|        spvConsts.push_back(createSpvConstantFromConstUnionArray(componentType, consts, nextConst, false));
12837|  1.92k|    } else if (glslangType.isStruct()) {
  ------------------
  |  Branch (12837:16): [True: 0, False: 1.92k]
  ------------------
12838|      0|        glslang::TVector<glslang::TTypeLoc>::const_iterator iter;
12839|      0|        for (iter = glslangType.getStruct()->begin(); iter != glslangType.getStruct()->end(); ++iter)
  ------------------
  |  Branch (12839:55): [True: 0, False: 0]
  ------------------
12840|      0|            spvConsts.push_back(createSpvConstantFromConstUnionArray(*iter->type, consts, nextConst, false));
12841|  1.92k|    } else if (glslangType.getVectorSize() > 1 || glslangType.isCoopVecOrLongVector()) {
  ------------------
  |  Branch (12841:16): [True: 798, False: 1.12k]
  |  Branch (12841:51): [True: 0, False: 1.12k]
  ------------------
12842|    798|        unsigned int numComponents = glslangType.isCoopVecOrLongVector() ? glslangType.getTypeParameters()->arraySizes->getDimSize(0) : glslangType.getVectorSize();
  ------------------
  |  Branch (12842:38): [True: 0, False: 798]
  ------------------
12843|  2.89k|        for (unsigned int i = 0; i < numComponents; ++i) {
  ------------------
  |  Branch (12843:34): [True: 2.09k, False: 798]
  ------------------
12844|  2.09k|            bool zero = nextConst >= consts.size();
12845|  2.09k|            switch (glslangType.getBasicType()) {
12846|    994|            case glslang::EbtInt:
  ------------------
  |  Branch (12846:13): [True: 994, False: 1.10k]
  ------------------
12847|    994|                spvConsts.push_back(builder.makeIntConstant(zero ? 0 : consts[nextConst].getIConst()));
  ------------------
  |  Branch (12847:61): [True: 0, False: 994]
  ------------------
12848|    994|                break;
12849|     72|            case glslang::EbtUint:
  ------------------
  |  Branch (12849:13): [True: 72, False: 2.02k]
  ------------------
12850|     72|                spvConsts.push_back(builder.makeUintConstant(zero ? 0u : consts[nextConst].getUConst()));
  ------------------
  |  Branch (12850:62): [True: 0, False: 72]
  ------------------
12851|     72|                break;
12852|    222|            case glslang::EbtFloat:
  ------------------
  |  Branch (12852:13): [True: 222, False: 1.87k]
  ------------------
12853|    222|                spvConsts.push_back(builder.makeFloatConstant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12853:63): [True: 0, False: 222]
  ------------------
12854|    222|                break;
12855|     60|            case glslang::EbtBool:
  ------------------
  |  Branch (12855:13): [True: 60, False: 2.03k]
  ------------------
12856|     60|                spvConsts.push_back(builder.makeBoolConstant(zero ? false : consts[nextConst].getBConst()));
  ------------------
  |  Branch (12856:62): [True: 0, False: 60]
  ------------------
12857|     60|                break;
12858|     72|            case glslang::EbtInt8:
  ------------------
  |  Branch (12858:13): [True: 72, False: 2.02k]
  ------------------
12859|     72|                builder.addCapability(spv::Capability::Int8);
12860|     72|                spvConsts.push_back(builder.makeInt8Constant(zero ? 0 : consts[nextConst].getI8Const()));
  ------------------
  |  Branch (12860:62): [True: 0, False: 72]
  ------------------
12861|     72|                break;
12862|     72|            case glslang::EbtUint8:
  ------------------
  |  Branch (12862:13): [True: 72, False: 2.02k]
  ------------------
12863|     72|                builder.addCapability(spv::Capability::Int8);
12864|     72|                spvConsts.push_back(builder.makeUint8Constant(zero ? 0 : consts[nextConst].getU8Const()));
  ------------------
  |  Branch (12864:63): [True: 0, False: 72]
  ------------------
12865|     72|                break;
12866|    120|            case glslang::EbtInt16:
  ------------------
  |  Branch (12866:13): [True: 120, False: 1.97k]
  ------------------
12867|    120|                builder.addCapability(spv::Capability::Int16);
12868|    120|                spvConsts.push_back(builder.makeInt16Constant(zero ? 0 : consts[nextConst].getI16Const()));
  ------------------
  |  Branch (12868:63): [True: 0, False: 120]
  ------------------
12869|    120|                break;
12870|    144|            case glslang::EbtUint16:
  ------------------
  |  Branch (12870:13): [True: 144, False: 1.95k]
  ------------------
12871|    144|                builder.addCapability(spv::Capability::Int16);
12872|    144|                spvConsts.push_back(builder.makeUint16Constant(zero ? 0 : consts[nextConst].getU16Const()));
  ------------------
  |  Branch (12872:64): [True: 0, False: 144]
  ------------------
12873|    144|                break;
12874|     72|            case glslang::EbtInt64:
  ------------------
  |  Branch (12874:13): [True: 72, False: 2.02k]
  ------------------
12875|     72|                spvConsts.push_back(builder.makeInt64Constant(zero ? 0LL : consts[nextConst].getI64Const()));
  ------------------
  |  Branch (12875:63): [True: 0, False: 72]
  ------------------
12876|     72|                break;
12877|     72|            case glslang::EbtUint64:
  ------------------
  |  Branch (12877:13): [True: 72, False: 2.02k]
  ------------------
12878|     72|                spvConsts.push_back(builder.makeUint64Constant(zero ? 0ULL : consts[nextConst].getU64Const()));
  ------------------
  |  Branch (12878:64): [True: 0, False: 72]
  ------------------
12879|     72|                break;
12880|      0|            case glslang::EbtDouble:
  ------------------
  |  Branch (12880:13): [True: 0, False: 2.09k]
  ------------------
12881|      0|                spvConsts.push_back(builder.makeDoubleConstant(zero ? 0.0 : consts[nextConst].getDConst()));
  ------------------
  |  Branch (12881:64): [True: 0, False: 0]
  ------------------
12882|      0|                break;
12883|    198|            case glslang::EbtFloat16:
  ------------------
  |  Branch (12883:13): [True: 198, False: 1.90k]
  ------------------
12884|    198|                builder.addCapability(spv::Capability::Float16);
12885|    198|                spvConsts.push_back(builder.makeFloat16Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12885:65): [True: 0, False: 198]
  ------------------
12886|    198|                break;
12887|      0|            case glslang::EbtBFloat16:
  ------------------
  |  Branch (12887:13): [True: 0, False: 2.09k]
  ------------------
12888|      0|                spvConsts.push_back(builder.makeBFloat16Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12888:66): [True: 0, False: 0]
  ------------------
12889|      0|                break;
12890|      0|            case glslang::EbtFloatE5M2:
  ------------------
  |  Branch (12890:13): [True: 0, False: 2.09k]
  ------------------
12891|      0|                spvConsts.push_back(builder.makeFloatE5M2Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12891:67): [True: 0, False: 0]
  ------------------
12892|      0|                break;
12893|      0|            case glslang::EbtFloatE4M3:
  ------------------
  |  Branch (12893:13): [True: 0, False: 2.09k]
  ------------------
12894|      0|                spvConsts.push_back(builder.makeFloatE4M3Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12894:67): [True: 0, False: 0]
  ------------------
12895|      0|                break;
12896|      0|            case glslang::EbtFloatE2M1:
  ------------------
  |  Branch (12896:13): [True: 0, False: 2.09k]
  ------------------
12897|      0|                spvConsts.push_back(builder.makeFloatE2M1Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12897:67): [True: 0, False: 0]
  ------------------
12898|      0|                break;
12899|      0|            case glslang::EbtFloatE3M2:
  ------------------
  |  Branch (12899:13): [True: 0, False: 2.09k]
  ------------------
12900|      0|                spvConsts.push_back(builder.makeFloatE3M2Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12900:67): [True: 0, False: 0]
  ------------------
12901|      0|                break;
12902|      0|            case glslang::EbtFloatE2M3:
  ------------------
  |  Branch (12902:13): [True: 0, False: 2.09k]
  ------------------
12903|      0|                spvConsts.push_back(builder.makeFloatE2M3Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12903:67): [True: 0, False: 0]
  ------------------
12904|      0|                break;
12905|      0|            case glslang::EbtFloatUE8M0:
  ------------------
  |  Branch (12905:13): [True: 0, False: 2.09k]
  ------------------
12906|      0|                spvConsts.push_back(builder.makeFloatUE8M0Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12906:68): [True: 0, False: 0]
  ------------------
12907|      0|                break;
12908|      0|            case glslang::EbtFloatMXINT8:
  ------------------
  |  Branch (12908:13): [True: 0, False: 2.09k]
  ------------------
12909|      0|                spvConsts.push_back(builder.makeFloatMXINT8Constant(zero ? 0.0F : (float)consts[nextConst].getDConst()));
  ------------------
  |  Branch (12909:69): [True: 0, False: 0]
  ------------------
12910|      0|                break;
12911|      0|            default:
  ------------------
  |  Branch (12911:13): [True: 0, False: 2.09k]
  ------------------
12912|      0|                assert(0);
12913|      0|                break;
12914|  2.09k|            }
12915|  2.09k|            ++nextConst;
12916|  2.09k|        }
12917|  1.12k|    } else {
12918|       |        // we have a non-aggregate (scalar) constant
12919|  1.12k|        bool zero = nextConst >= consts.size();
12920|  1.12k|        spv::Id scalar = 0;
12921|  1.12k|        switch (glslangType.getBasicType()) {
12922|    660|        case glslang::EbtInt:
  ------------------
  |  Branch (12922:9): [True: 660, False: 464]
  ------------------
12923|    660|            scalar = builder.makeIntConstant(zero ? 0 : consts[nextConst].getIConst(), specConstant);
  ------------------
  |  Branch (12923:46): [True: 0, False: 660]
  ------------------
12924|    660|            break;
12925|     47|        case glslang::EbtUint:
  ------------------
  |  Branch (12925:9): [True: 47, False: 1.07k]
  ------------------
12926|     47|            scalar = builder.makeUintConstant(zero ? 0u : consts[nextConst].getUConst(), specConstant);
  ------------------
  |  Branch (12926:47): [True: 0, False: 47]
  ------------------
12927|     47|            break;
12928|    102|        case glslang::EbtFloat:
  ------------------
  |  Branch (12928:9): [True: 102, False: 1.02k]
  ------------------
12929|    102|            scalar = builder.makeFloatConstant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12929:48): [True: 0, False: 102]
  ------------------
12930|    102|            break;
12931|    158|        case glslang::EbtBool:
  ------------------
  |  Branch (12931:9): [True: 158, False: 966]
  ------------------
12932|    158|            scalar = builder.makeBoolConstant(zero ? false : consts[nextConst].getBConst(), specConstant);
  ------------------
  |  Branch (12932:47): [True: 0, False: 158]
  ------------------
12933|    158|            break;
12934|      1|        case glslang::EbtInt8:
  ------------------
  |  Branch (12934:9): [True: 1, False: 1.12k]
  ------------------
12935|      1|            builder.addCapability(spv::Capability::Int8);
12936|      1|            scalar = builder.makeInt8Constant(zero ? 0 : consts[nextConst].getI8Const(), specConstant);
  ------------------
  |  Branch (12936:47): [True: 0, False: 1]
  ------------------
12937|      1|            break;
12938|      2|        case glslang::EbtUint8:
  ------------------
  |  Branch (12938:9): [True: 2, False: 1.12k]
  ------------------
12939|      2|            builder.addCapability(spv::Capability::Int8);
12940|      2|            scalar = builder.makeUint8Constant(zero ? 0 : consts[nextConst].getU8Const(), specConstant);
  ------------------
  |  Branch (12940:48): [True: 0, False: 2]
  ------------------
12941|      2|            break;
12942|     52|        case glslang::EbtInt16:
  ------------------
  |  Branch (12942:9): [True: 52, False: 1.07k]
  ------------------
12943|     52|            builder.addCapability(spv::Capability::Int16);
12944|     52|            scalar = builder.makeInt16Constant(zero ? 0 : consts[nextConst].getI16Const(), specConstant);
  ------------------
  |  Branch (12944:48): [True: 0, False: 52]
  ------------------
12945|     52|            break;
12946|     51|        case glslang::EbtUint16:
  ------------------
  |  Branch (12946:9): [True: 51, False: 1.07k]
  ------------------
12947|     51|            builder.addCapability(spv::Capability::Int16);
12948|     51|            scalar = builder.makeUint16Constant(zero ? 0 : consts[nextConst].getU16Const(), specConstant);
  ------------------
  |  Branch (12948:49): [True: 0, False: 51]
  ------------------
12949|     51|            break;
12950|     25|        case glslang::EbtInt64:
  ------------------
  |  Branch (12950:9): [True: 25, False: 1.09k]
  ------------------
12951|     25|            scalar = builder.makeInt64Constant(zero ? 0LL : consts[nextConst].getI64Const(), specConstant);
  ------------------
  |  Branch (12951:48): [True: 0, False: 25]
  ------------------
12952|     25|            break;
12953|     26|        case glslang::EbtUint64:
  ------------------
  |  Branch (12953:9): [True: 26, False: 1.09k]
  ------------------
12954|     26|            scalar = builder.makeUint64Constant(zero ? 0ULL : consts[nextConst].getU64Const(), specConstant);
  ------------------
  |  Branch (12954:49): [True: 0, False: 26]
  ------------------
12955|     26|            break;
12956|      0|        case glslang::EbtDouble:
  ------------------
  |  Branch (12956:9): [True: 0, False: 1.12k]
  ------------------
12957|      0|            scalar = builder.makeDoubleConstant(zero ? 0.0 : consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12957:49): [True: 0, False: 0]
  ------------------
12958|      0|            break;
12959|      0|        case glslang::EbtFloat16:
  ------------------
  |  Branch (12959:9): [True: 0, False: 1.12k]
  ------------------
12960|      0|            builder.addCapability(spv::Capability::Float16);
12961|      0|            scalar = builder.makeFloat16Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12961:50): [True: 0, False: 0]
  ------------------
12962|      0|            break;
12963|      0|        case glslang::EbtBFloat16:
  ------------------
  |  Branch (12963:9): [True: 0, False: 1.12k]
  ------------------
12964|      0|            scalar = builder.makeBFloat16Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12964:51): [True: 0, False: 0]
  ------------------
12965|      0|            break;
12966|      0|        case glslang::EbtFloatE5M2:
  ------------------
  |  Branch (12966:9): [True: 0, False: 1.12k]
  ------------------
12967|      0|            scalar = builder.makeFloatE5M2Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12967:52): [True: 0, False: 0]
  ------------------
12968|      0|            break;
12969|      0|        case glslang::EbtFloatE4M3:
  ------------------
  |  Branch (12969:9): [True: 0, False: 1.12k]
  ------------------
12970|      0|            scalar = builder.makeFloatE4M3Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12970:52): [True: 0, False: 0]
  ------------------
12971|      0|            break;
12972|      0|        case glslang::EbtFloatE2M1:
  ------------------
  |  Branch (12972:9): [True: 0, False: 1.12k]
  ------------------
12973|      0|            scalar = builder.makeFloatE2M1Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12973:52): [True: 0, False: 0]
  ------------------
12974|      0|            break;
12975|      0|        case glslang::EbtFloatE3M2:
  ------------------
  |  Branch (12975:9): [True: 0, False: 1.12k]
  ------------------
12976|      0|            scalar = builder.makeFloatE3M2Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12976:52): [True: 0, False: 0]
  ------------------
12977|      0|            break;
12978|      0|        case glslang::EbtFloatE2M3:
  ------------------
  |  Branch (12978:9): [True: 0, False: 1.12k]
  ------------------
12979|      0|            scalar = builder.makeFloatE2M3Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12979:52): [True: 0, False: 0]
  ------------------
12980|      0|            break;
12981|      0|        case glslang::EbtFloatUE8M0:
  ------------------
  |  Branch (12981:9): [True: 0, False: 1.12k]
  ------------------
12982|      0|            scalar = builder.makeFloatUE8M0Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12982:53): [True: 0, False: 0]
  ------------------
12983|      0|            break;
12984|      0|        case glslang::EbtFloatMXINT8:
  ------------------
  |  Branch (12984:9): [True: 0, False: 1.12k]
  ------------------
12985|      0|            scalar = builder.makeFloatMXINT8Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
  ------------------
  |  Branch (12985:54): [True: 0, False: 0]
  ------------------
12986|      0|            break;
12987|      0|        case glslang::EbtReference:
  ------------------
  |  Branch (12987:9): [True: 0, False: 1.12k]
  ------------------
12988|      0|            scalar = builder.makeUint64Constant(zero ? 0ULL : consts[nextConst].getU64Const(), specConstant);
  ------------------
  |  Branch (12988:49): [True: 0, False: 0]
  ------------------
12989|      0|            scalar = builder.createUnaryOp(spv::Op::OpBitcast, typeId, scalar);
12990|      0|            break;
12991|      0|        case glslang::EbtString:
  ------------------
  |  Branch (12991:9): [True: 0, False: 1.12k]
  ------------------
12992|      0|            scalar = builder.getStringId(consts[nextConst].getSConst()->c_str());
12993|      0|            break;
12994|      0|        default:
  ------------------
  |  Branch (12994:9): [True: 0, False: 1.12k]
  ------------------
12995|      0|            assert(0);
12996|      0|            break;
12997|  1.12k|        }
12998|  1.12k|        ++nextConst;
12999|  1.12k|        return scalar;
13000|  1.12k|    }
13001|       |
13002|    860|    return builder.makeCompositeConstant(typeId, spvConsts);
13003|  1.98k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_128TranslatePrecisionDecorationERKN7glslang5TTypeE:
  483|  16.2k|{
  484|  16.2k|    return TranslatePrecisionDecoration(type.getQualifier().precision);
  485|  16.2k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_128TranslatePrecisionDecorationEN7glslang19TPrecisionQualifierE:
  472|  22.5k|{
  473|  22.5k|    switch (glslangPrecision) {
  474|      0|    case glslang::EpqLow:    return spv::Decoration::RelaxedPrecision;
  ------------------
  |  Branch (474:5): [True: 0, False: 22.5k]
  ------------------
  475|    814|    case glslang::EpqMedium: return spv::Decoration::RelaxedPrecision;
  ------------------
  |  Branch (475:5): [True: 814, False: 21.7k]
  ------------------
  476|  21.7k|    default:
  ------------------
  |  Branch (476:5): [True: 21.7k, False: 814]
  ------------------
  477|  21.7k|        return spv::NoPrecision;
  478|  22.5k|    }
  479|  22.5k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser32TranslateInterpolationDecorationERKN7glslang10TQualifierE:
  596|  1.19k|{
  597|  1.19k|    if (qualifier.smooth)
  ------------------
  |  Branch (597:9): [True: 40, False: 1.15k]
  ------------------
  598|       |        // Smooth decoration doesn't exist in SPIR-V 1.0
  599|     40|        return spv::Decoration::Max;
  600|  1.15k|    else if (qualifier.isNonPerspective())
  ------------------
  |  Branch (600:14): [True: 0, False: 1.15k]
  ------------------
  601|      0|        return spv::Decoration::NoPerspective;
  602|  1.15k|    else if (qualifier.flat)
  ------------------
  |  Branch (602:14): [True: 27, False: 1.12k]
  ------------------
  603|     27|        return spv::Decoration::Flat;
  604|  1.12k|    else if (qualifier.isExplicitInterpolation()) {
  ------------------
  |  Branch (604:14): [True: 0, False: 1.12k]
  ------------------
  605|      0|        builder.addExtension(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
  606|      0|        return spv::Decoration::ExplicitInterpAMD;
  607|      0|    }
  608|  1.12k|    else
  609|  1.12k|        return spv::Decoration::Max;
  610|  1.19k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser35TranslateAuxiliaryStorageDecorationERKN7glslang10TQualifierE:
  616|  1.19k|{
  617|  1.19k|    if (qualifier.centroid)
  ------------------
  |  Branch (617:9): [True: 0, False: 1.19k]
  ------------------
  618|      0|        return spv::Decoration::Centroid;
  619|  1.19k|    else if (qualifier.patch)
  ------------------
  |  Branch (619:14): [True: 0, False: 1.19k]
  ------------------
  620|      0|        return spv::Decoration::Patch;
  621|  1.19k|    else if (qualifier.sample) {
  ------------------
  |  Branch (621:14): [True: 0, False: 1.19k]
  ------------------
  622|      0|        builder.addCapability(spv::Capability::SampleRateShading);
  623|      0|        return spv::Decoration::Sample;
  624|      0|    }
  625|       |
  626|  1.19k|    return spv::Decoration::Max;
  627|  1.19k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser19addMeshNVDecorationEjiRKN7glslang10TQualifierE:
12621|  1.19k|{
12622|  1.19k|    bool isMeshShaderExt = (glslangIntermediate->getRequestedExtensions().find(glslang::E_GL_EXT_mesh_shader) !=
12623|  1.19k|                            glslangIntermediate->getRequestedExtensions().end());
12624|       |
12625|  1.19k|    if (member >= 0) {
  ------------------
  |  Branch (12625:9): [True: 0, False: 1.19k]
  ------------------
12626|      0|        if (qualifier.perPrimitiveNV) {
  ------------------
  |  Branch (12626:13): [True: 0, False: 0]
  ------------------
12627|       |            // Need to add capability/extension for fragment shader.
12628|       |            // Mesh shader already adds this by default.
12629|      0|            if (glslangIntermediate->getStage() == EShLangFragment) {
  ------------------
  |  Branch (12629:17): [True: 0, False: 0]
  ------------------
12630|      0|                if(isMeshShaderExt) {
  ------------------
  |  Branch (12630:20): [True: 0, False: 0]
  ------------------
12631|      0|                    builder.addCapability(spv::Capability::MeshShadingEXT);
12632|      0|                    builder.addExtension(spv::E_SPV_EXT_mesh_shader);
12633|      0|                } else {
12634|      0|                    builder.addCapability(spv::Capability::MeshShadingNV);
12635|      0|                    builder.addExtension(spv::E_SPV_NV_mesh_shader);
12636|      0|                }
12637|      0|            }
12638|      0|            builder.addMemberDecoration(id, (unsigned)member, spv::Decoration::PerPrimitiveNV);
12639|      0|        }
12640|      0|        if (qualifier.perViewNV)
  ------------------
  |  Branch (12640:13): [True: 0, False: 0]
  ------------------
12641|      0|            builder.addMemberDecoration(id, (unsigned)member, spv::Decoration::PerViewNV);
12642|      0|        if (qualifier.perTaskNV)
  ------------------
  |  Branch (12642:13): [True: 0, False: 0]
  ------------------
12643|      0|            builder.addMemberDecoration(id, (unsigned)member, spv::Decoration::PerTaskNV);
12644|  1.19k|    } else {
12645|  1.19k|        if (qualifier.perPrimitiveNV) {
  ------------------
  |  Branch (12645:13): [True: 0, False: 1.19k]
  ------------------
12646|       |            // Need to add capability/extension for fragment shader.
12647|       |            // Mesh shader already adds this by default.
12648|      0|            if (glslangIntermediate->getStage() == EShLangFragment) {
  ------------------
  |  Branch (12648:17): [True: 0, False: 0]
  ------------------
12649|      0|                if(isMeshShaderExt) {
  ------------------
  |  Branch (12649:20): [True: 0, False: 0]
  ------------------
12650|      0|                    builder.addCapability(spv::Capability::MeshShadingEXT);
12651|      0|                    builder.addExtension(spv::E_SPV_EXT_mesh_shader);
12652|      0|                } else {
12653|      0|                    builder.addCapability(spv::Capability::MeshShadingNV);
12654|      0|                    builder.addExtension(spv::E_SPV_NV_mesh_shader);
12655|      0|                }
12656|      0|            }
12657|      0|            builder.addDecoration(id, spv::Decoration::PerPrimitiveNV);
12658|      0|        }
12659|  1.19k|        if (qualifier.perViewNV)
  ------------------
  |  Branch (12659:13): [True: 0, False: 1.19k]
  ------------------
12660|      0|            builder.addDecoration(id, spv::Decoration::PerViewNV);
12661|  1.19k|        if (qualifier.perTaskNV)
  ------------------
  |  Branch (12661:13): [True: 0, False: 1.19k]
  ------------------
12662|      0|            builder.addDecoration(id, spv::Decoration::PerTaskNV);
12663|  1.19k|    }
12664|  1.19k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_128TranslateInvariantDecorationERKN7glslang10TQualifierE:
  631|  1.49k|{
  632|  1.49k|    if (qualifier.invariant)
  ------------------
  |  Branch (632:9): [True: 0, False: 1.49k]
  ------------------
  633|      0|        return spv::Decoration::Invariant;
  634|  1.49k|    else
  635|  1.49k|        return spv::Decoration::Max;
  636|  1.49k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_120IsDescriptorResourceERKN7glslang5TTypeE:
 1684|  2.17k|{
 1685|       |    // uniform and buffer blocks are included, unless it is a push_constant
 1686|  2.17k|    if (type.getBasicType() == glslang::EbtBlock)
  ------------------
  |  Branch (1686:9): [True: 53, False: 2.12k]
  ------------------
 1687|     53|        return type.getQualifier().isUniformOrBuffer() &&
  ------------------
  |  Branch (1687:16): [True: 53, False: 0]
  ------------------
 1688|     53|        ! type.getQualifier().isShaderRecord() &&
  ------------------
  |  Branch (1688:9): [True: 53, False: 0]
  ------------------
 1689|     53|        ! type.getQualifier().isPushConstant();
  ------------------
  |  Branch (1689:9): [True: 53, False: 0]
  ------------------
 1690|       |
 1691|       |    // non block...
 1692|       |    // basically samplerXXX/subpass/sampler/texture are all included
 1693|       |    // if they are the global-scope-class, not the function parameter
 1694|       |    // (or local, if they ever exist) class.
 1695|  2.12k|    if (type.getBasicType() == glslang::EbtSampler ||
  ------------------
  |  Branch (1695:9): [True: 90, False: 2.03k]
  ------------------
 1696|  2.03k|        type.getBasicType() == glslang::EbtAccStruct)
  ------------------
  |  Branch (1696:9): [True: 0, False: 2.03k]
  ------------------
 1697|     90|        return type.getQualifier().isUniformOrBuffer();
 1698|       |
 1699|       |    // Tensors are tied to a descriptor.
 1700|  2.03k|    if (type.isTensorARM())
  ------------------
  |  Branch (1700:9): [True: 0, False: 2.03k]
  ------------------
 1701|      0|        return true;
 1702|       |
 1703|       |    // None of the above.
 1704|  2.03k|    return false;
 1705|  2.03k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_125TranslateMemoryDecorationERKN7glslang10TQualifierERNSt3__16vectorIN3spv10DecorationENS4_9allocatorIS7_EEEEb:
  516|  1.07k|{
  517|  1.07k|    if (!useVulkanMemoryModel) {
  ------------------
  |  Branch (517:9): [True: 1.07k, False: 0]
  ------------------
  518|  1.07k|        if (qualifier.isVolatile()) {
  ------------------
  |  Branch (518:13): [True: 28, False: 1.04k]
  ------------------
  519|     28|            memory.push_back(spv::Decoration::Volatile);
  520|     28|            memory.push_back(spv::Decoration::Coherent);
  521|  1.04k|        } else if (qualifier.isCoherent()) {
  ------------------
  |  Branch (521:20): [True: 0, False: 1.04k]
  ------------------
  522|      0|            memory.push_back(spv::Decoration::Coherent);
  523|      0|        }
  524|  1.07k|    }
  525|  1.07k|    if (qualifier.isRestrict())
  ------------------
  |  Branch (525:9): [True: 0, False: 1.07k]
  ------------------
  526|      0|        memory.push_back(spv::Decoration::Restrict);
  527|  1.07k|    if (qualifier.isReadOnly())
  ------------------
  |  Branch (527:9): [True: 0, False: 1.07k]
  ------------------
  528|      0|        memory.push_back(spv::Decoration::NonWritable);
  529|  1.07k|    if (qualifier.isWriteOnly())
  ------------------
  |  Branch (529:9): [True: 0, False: 1.07k]
  ------------------
  530|      0|        memory.push_back(spv::Decoration::NonReadable);
  531|  1.07k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser15accessChainLoadERKN7glslang5TTypeE:
 7489|  12.8k|{
 7490|  12.8k|    spv::Id nominalTypeId = builder.accessChainGetInferredType();
 7491|       |
 7492|  12.8k|    spv::Builder::AccessChain::CoherentFlags coherentFlags = builder.getAccessChain().coherentFlags;
 7493|  12.8k|    coherentFlags |= TranslateCoherent(type);
 7494|       |
 7495|  12.8k|    spv::MemoryAccessMask accessMask = spv::MemoryAccessMask(TranslateMemoryAccess(coherentFlags) & ~spv::MemoryAccessMask::MakePointerAvailableKHR);
 7496|       |    // If the value being loaded is HelperInvocation, SPIR-V 1.6 is being generated (so that
 7497|       |    // SPV_EXT_demote_to_helper_invocation is in core) and the memory model is in use, add
 7498|       |    // the Volatile MemoryAccess semantic.
 7499|  12.8k|    if (type.getQualifier().builtIn == glslang::EbvHelperInvocation &&
  ------------------
  |  Branch (7499:9): [True: 0, False: 12.8k]
  ------------------
 7500|      0|        glslangIntermediate->usingVulkanMemoryModel() &&
  ------------------
  |  Branch (7500:9): [True: 0, False: 0]
  ------------------
 7501|      0|        glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_6) {
  ------------------
  |  Branch (7501:9): [True: 0, False: 0]
  ------------------
 7502|      0|        accessMask = spv::MemoryAccessMask(accessMask | spv::MemoryAccessMask::Volatile);
 7503|      0|    }
 7504|       |
 7505|  12.8k|    unsigned int alignment = builder.getAccessChain().alignment;
 7506|  12.8k|    alignment |= type.getBufferReferenceAlignment();
 7507|       |
 7508|  12.8k|    spv::Id loadedId = builder.accessChainLoad(TranslatePrecisionDecoration(type),
 7509|  12.8k|        TranslateNonUniformDecoration(builder.getAccessChain().coherentFlags),
 7510|  12.8k|        TranslateNonUniformDecoration(type.getQualifier()),
 7511|  12.8k|        nominalTypeId,
 7512|  12.8k|        accessMask,
 7513|  12.8k|        TranslateMemoryScope(coherentFlags),
 7514|  12.8k|        alignment);
 7515|       |
 7516|       |    // Need to convert to abstract types when necessary
 7517|  12.8k|    if (type.getBasicType() == glslang::EbtBool) {
  ------------------
  |  Branch (7517:9): [True: 498, False: 12.3k]
  ------------------
 7518|    498|        loadedId = convertLoadedBoolInUniformToUint(type, nominalTypeId, loadedId);
 7519|    498|    }
 7520|       |
 7521|  12.8k|    if (!builder.getAccessChain().descHeapInfo.descHeapInstId.empty()) {
  ------------------
  |  Branch (7521:9): [True: 0, False: 12.8k]
  ------------------
 7522|      0|        for (auto heapInst : builder.getAccessChain().descHeapInfo.descHeapInstId)
  ------------------
  |  Branch (7522:28): [True: 0, False: 0]
  ------------------
 7523|      0|            heapInst->setTypeId(convertGlslangToSpvType(type));
 7524|      0|        builder.clearAccessChain();
 7525|      0|    }
 7526|       |
 7527|  12.8k|    return loadedId;
 7528|  12.8k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser17TranslateCoherentERKN7glslang5TTypeE:
  747|  20.7k|{
  748|  20.7k|    spv::Builder::AccessChain::CoherentFlags flags = {};
  749|  20.7k|    flags.coherent = type.getQualifier().coherent;
  750|  20.7k|    flags.devicecoherent = type.getQualifier().devicecoherent;
  751|  20.7k|    flags.queuefamilycoherent = type.getQualifier().queuefamilycoherent;
  752|       |    // shared variables are implicitly workgroupcoherent in GLSL.
  753|  20.7k|    flags.workgroupcoherent = type.getQualifier().workgroupcoherent ||
  ------------------
  |  Branch (753:31): [True: 0, False: 20.7k]
  ------------------
  754|  20.7k|                              type.getQualifier().storage == glslang::EvqShared;
  ------------------
  |  Branch (754:31): [True: 0, False: 20.7k]
  ------------------
  755|  20.7k|    flags.subgroupcoherent = type.getQualifier().subgroupcoherent;
  756|  20.7k|    flags.shadercallcoherent = type.getQualifier().shadercallcoherent;
  757|  20.7k|    flags.volatil = type.getQualifier().volatil;
  758|  20.7k|    flags.nontemporal = type.getQualifier().nontemporal;
  759|       |    // *coherent variables are implicitly nonprivate in GLSL
  760|  20.7k|    flags.nonprivate = type.getQualifier().nonprivate ||
  ------------------
  |  Branch (760:24): [True: 0, False: 20.7k]
  ------------------
  761|  20.7k|                       flags.anyCoherent() ||
  ------------------
  |  Branch (761:24): [True: 56, False: 20.6k]
  ------------------
  762|  20.6k|                       flags.volatil;
  ------------------
  |  Branch (762:24): [True: 0, False: 20.6k]
  ------------------
  763|  20.7k|    flags.isImage = type.getBasicType() == glslang::EbtSampler;
  764|  20.7k|    flags.nonUniform = type.getQualifier().nonUniform;
  765|  20.7k|    return flags;
  766|  20.7k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser21TranslateMemoryAccessERKN3spv7Builder11AccessChain13CoherentFlagsE:
  690|  15.6k|{
  691|  15.6k|    spv::MemoryAccessMask mask = spv::MemoryAccessMask::MaskNone;
  692|       |
  693|  15.6k|    if (!glslangIntermediate->usingVulkanMemoryModel() || coherentFlags.isImage)
  ------------------
  |  Branch (693:9): [True: 15.6k, False: 0]
  |  Branch (693:59): [True: 0, False: 0]
  ------------------
  694|  15.6k|        return mask;
  695|       |
  696|      0|    if (coherentFlags.isVolatile() || coherentFlags.anyCoherent()) {
  ------------------
  |  Branch (696:9): [True: 0, False: 0]
  |  Branch (696:39): [True: 0, False: 0]
  ------------------
  697|      0|        mask = mask | spv::MemoryAccessMask::MakePointerAvailableKHR |
  698|      0|                      spv::MemoryAccessMask::MakePointerVisibleKHR;
  699|      0|    }
  700|       |
  701|      0|    if (coherentFlags.nonprivate) {
  ------------------
  |  Branch (701:9): [True: 0, False: 0]
  ------------------
  702|      0|        mask = mask | spv::MemoryAccessMask::NonPrivatePointerKHR;
  703|      0|    }
  704|      0|    if (coherentFlags.volatil) {
  ------------------
  |  Branch (704:9): [True: 0, False: 0]
  ------------------
  705|      0|        mask = mask | spv::MemoryAccessMask::Volatile;
  706|      0|    }
  707|      0|    if (coherentFlags.nontemporal) {
  ------------------
  |  Branch (707:9): [True: 0, False: 0]
  ------------------
  708|      0|        mask = mask | spv::MemoryAccessMask::Nontemporal;
  709|      0|    }
  710|      0|    if (mask != spv::MemoryAccessMask::MaskNone) {
  ------------------
  |  Branch (710:9): [True: 0, False: 0]
  ------------------
  711|      0|        builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
  712|      0|    }
  713|       |
  714|      0|    return mask;
  715|  15.6k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser29TranslateNonUniformDecorationERKN3spv7Builder11AccessChain13CoherentFlagsE:
  670|  17.3k|{
  671|  17.3k|    if (coherentFlags.isNonUniform()) {
  ------------------
  |  Branch (671:9): [True: 0, False: 17.3k]
  ------------------
  672|      0|        builder.addIncorporatedExtension("SPV_EXT_descriptor_indexing", spv::Spv_1_5);
  673|      0|        builder.addCapability(spv::Capability::ShaderNonUniformEXT);
  674|       |
  675|      0|        auto& extensions = glslangIntermediate->getRequestedExtensions();
  676|      0|        if (extensions.find("GL_EXT_descriptor_heap") != extensions.end()) {
  ------------------
  |  Branch (676:13): [True: 0, False: 0]
  ------------------
  677|      0|            builder.addExtension("SPV_EXT_descriptor_heap");
  678|      0|            builder.addCapability(spv::Capability::DescriptorHeapEXT);
  679|      0|        }
  680|      0|        else {
  681|      0|            return spv::Decoration::NonUniformEXT;
  682|      0|        }
  683|      0|    }
  684|       |
  685|  17.3k|    return spv::Decoration::Max;
  686|  17.3k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser20TranslateMemoryScopeERKN3spv7Builder11AccessChain13CoherentFlagsE:
  770|  15.6k|{
  771|  15.6k|    spv::Scope scope = spv::Scope::Max;
  772|       |
  773|  15.6k|    if (coherentFlags.volatil || coherentFlags.coherent) {
  ------------------
  |  Branch (773:9): [True: 0, False: 15.6k]
  |  Branch (773:34): [True: 0, False: 15.6k]
  ------------------
  774|       |        // coherent defaults to Device scope in the old model, QueueFamilyKHR scope in the new model
  775|      0|        scope = glslangIntermediate->usingVulkanMemoryModel() ? spv::Scope::QueueFamilyKHR : spv::Scope::Device;
  ------------------
  |  Branch (775:17): [True: 0, False: 0]
  ------------------
  776|  15.6k|    } else if (coherentFlags.devicecoherent) {
  ------------------
  |  Branch (776:16): [True: 0, False: 15.6k]
  ------------------
  777|      0|        scope = spv::Scope::Device;
  778|  15.6k|    } else if (coherentFlags.queuefamilycoherent) {
  ------------------
  |  Branch (778:16): [True: 0, False: 15.6k]
  ------------------
  779|      0|        scope = spv::Scope::QueueFamilyKHR;
  780|  15.6k|    } else if (coherentFlags.workgroupcoherent) {
  ------------------
  |  Branch (780:16): [True: 0, False: 15.6k]
  ------------------
  781|      0|        scope = spv::Scope::Workgroup;
  782|  15.6k|    } else if (coherentFlags.subgroupcoherent) {
  ------------------
  |  Branch (782:16): [True: 0, False: 15.6k]
  ------------------
  783|      0|        scope = spv::Scope::Subgroup;
  784|  15.6k|    } else if (coherentFlags.shadercallcoherent) {
  ------------------
  |  Branch (784:16): [True: 0, False: 15.6k]
  ------------------
  785|      0|        scope = spv::Scope::ShaderCallKHR;
  786|      0|    }
  787|  15.6k|    if (glslangIntermediate->usingVulkanMemoryModel() && scope == spv::Scope::Device) {
  ------------------
  |  Branch (787:9): [True: 0, False: 15.6k]
  |  Branch (787:58): [True: 0, False: 0]
  ------------------
  788|      0|        builder.addCapability(spv::Capability::VulkanMemoryModelDeviceScopeKHR);
  789|      0|    }
  790|       |
  791|  15.6k|    return scope;
  792|  15.6k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser32convertLoadedBoolInUniformToUintERKN7glslang5TTypeEjj:
 2883|    498|{
 2884|    498|    if (builder.isScalarType(nominalTypeId)) {
  ------------------
  |  Branch (2884:9): [True: 295, False: 203]
  ------------------
 2885|       |        // Conversion for bool
 2886|    295|        spv::Id boolType = builder.makeBoolType();
 2887|    295|        if (nominalTypeId != boolType)
  ------------------
  |  Branch (2887:13): [True: 0, False: 295]
  ------------------
 2888|      0|            return builder.createBinOp(spv::Op::OpINotEqual, boolType, loadedId, builder.makeUintConstant(0));
 2889|    295|    } else if (builder.isVectorType(nominalTypeId)) {
  ------------------
  |  Branch (2889:16): [True: 203, False: 0]
  ------------------
 2890|       |        // Conversion for bvec
 2891|    203|        int vecSize = builder.getNumTypeComponents(nominalTypeId);
 2892|    203|        spv::Id bvecType = builder.makeVectorType(builder.makeBoolType(), vecSize);
 2893|    203|        if (nominalTypeId != bvecType)
  ------------------
  |  Branch (2893:13): [True: 0, False: 203]
  ------------------
 2894|      0|            loadedId = builder.createBinOp(spv::Op::OpINotEqual, bvecType, loadedId,
 2895|      0|                makeSmearedConstant(builder.makeUintConstant(0), vecSize));
 2896|    203|    } else if (builder.isArrayType(nominalTypeId)) {
  ------------------
  |  Branch (2896:16): [True: 0, False: 0]
  ------------------
 2897|       |        // Conversion for bool array
 2898|      0|        spv::Id boolArrayTypeId = convertGlslangToSpvType(type);
 2899|      0|        if (nominalTypeId != boolArrayTypeId)
  ------------------
  |  Branch (2899:13): [True: 0, False: 0]
  ------------------
 2900|      0|        {
 2901|       |            // Use OpCopyLogical from SPIR-V 1.4 if available.
 2902|      0|            if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_4)
  ------------------
  |  Branch (2902:17): [True: 0, False: 0]
  ------------------
 2903|      0|                return builder.createUnaryOp(spv::Op::OpCopyLogical, boolArrayTypeId, loadedId);
 2904|       |
 2905|      0|            glslang::TType glslangElementType(type, 0);
 2906|      0|            spv::Id elementNominalTypeId = builder.getContainedTypeId(nominalTypeId);
 2907|      0|            std::vector<spv::Id> constituents;
 2908|      0|            for (int index = 0; index < type.getOuterArraySize(); ++index) {
  ------------------
  |  Branch (2908:33): [True: 0, False: 0]
  ------------------
 2909|       |                // get the element
 2910|      0|                spv::Id elementValue = builder.createCompositeExtract(loadedId, elementNominalTypeId, index);
 2911|       |
 2912|       |                // recursively convert it
 2913|      0|                spv::Id elementConvertedValue = convertLoadedBoolInUniformToUint(glslangElementType, elementNominalTypeId, elementValue);
 2914|      0|                constituents.push_back(elementConvertedValue);
 2915|      0|            }
 2916|      0|            return builder.createCompositeConstruct(boolArrayTypeId, constituents);
 2917|      0|        }
 2918|      0|    }
 2919|       |
 2920|    498|    return loadedId;
 2921|    498|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser17createSpvConstantERKN7glslang12TIntermTypedE:
12737|    385|{
12738|    385|    assert(node.getQualifier().isConstant());
12739|       |
12740|       |    // Handle front-end constants first (non-specialization constants).
12741|    385|    if (! node.getQualifier().specConstant) {
  ------------------
  |  Branch (12741:9): [True: 8, False: 377]
  ------------------
12742|       |        // hand off to the non-spec-constant path
12743|      8|        assert(node.getAsConstantUnion() != nullptr || node.getAsSymbolNode() != nullptr);
12744|      8|        int nextConst = 0;
12745|      8|        return createSpvConstantFromConstUnionArray(node.getType(), node.getAsConstantUnion() ?
  ------------------
  |  Branch (12745:69): [True: 0, False: 8]
  ------------------
12746|      8|            node.getAsConstantUnion()->getConstArray() : node.getAsSymbolNode()->getConstArray(),
12747|      8|            nextConst, false);
12748|      8|    }
12749|       |
12750|       |    // We now know we have a specialization constant to build
12751|       |
12752|       |    // Extra capabilities may be needed.
12753|    377|    if (node.getType().contains8BitInt())
  ------------------
  |  Branch (12753:9): [True: 3, False: 374]
  ------------------
12754|      3|        builder.addCapability(spv::Capability::Int8);
12755|    377|    if (node.getType().contains16BitFloat())
  ------------------
  |  Branch (12755:9): [True: 0, False: 377]
  ------------------
12756|      0|        builder.addCapability(spv::Capability::Float16);
12757|    377|    if (node.getType().contains16BitInt())
  ------------------
  |  Branch (12757:9): [True: 174, False: 203]
  ------------------
12758|    174|        builder.addCapability(spv::Capability::Int16);
12759|    377|    if (node.getType().contains64BitInt())
  ------------------
  |  Branch (12759:9): [True: 78, False: 299]
  ------------------
12760|     78|        builder.addCapability(spv::Capability::Int64);
12761|    377|    if (node.getType().containsDouble())
  ------------------
  |  Branch (12761:9): [True: 0, False: 377]
  ------------------
12762|      0|        builder.addCapability(spv::Capability::Float64);
12763|       |
12764|       |    // gl_WorkGroupSize is a special case until the front-end handles hierarchical specialization constants,
12765|       |    // even then, it's specialization ids are handled by special case syntax in GLSL: layout(local_size_x = ...
12766|    377|    if (node.getType().getQualifier().builtIn == glslang::EbvWorkGroupSize) {
  ------------------
  |  Branch (12766:9): [True: 0, False: 377]
  ------------------
12767|      0|        std::vector<spv::Id> dimConstId;
12768|      0|        for (int dim = 0; dim < 3; ++dim) {
  ------------------
  |  Branch (12768:27): [True: 0, False: 0]
  ------------------
12769|      0|            bool specConst = (glslangIntermediate->getLocalSizeSpecId(dim) != glslang::TQualifier::layoutNotSet);
12770|      0|            dimConstId.push_back(builder.makeUintConstant(glslangIntermediate->getLocalSize(dim), specConst));
12771|      0|            if (specConst) {
  ------------------
  |  Branch (12771:17): [True: 0, False: 0]
  ------------------
12772|      0|                builder.addDecoration(dimConstId.back(), spv::Decoration::SpecId,
12773|      0|                                      glslangIntermediate->getLocalSizeSpecId(dim));
12774|      0|            }
12775|      0|        }
12776|      0|        return builder.makeCompositeConstant(builder.makeVectorType(builder.makeUintType(32), 3), dimConstId, true);
12777|      0|    }
12778|       |
12779|       |    // An AST node labelled as specialization constant should be a symbol node.
12780|       |    // Its initializer should either be a sub tree with constant nodes, or a constant union array.
12781|    377|    if (auto* sn = node.getAsSymbolNode()) {
  ------------------
  |  Branch (12781:15): [True: 377, False: 0]
  ------------------
12782|    377|        spv::Id result;
12783|       |        // For -gV, make sure the initializer is generated as spec constant ops
12784|       |        // at module scope instead of as run-time instructions inside the current function.
12785|    377|        SpecConstantOpModeGuard spec_constant_op_mode_setter(&builder);
12786|    377|        if (sn->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (12786:13): [True: 377, False: 0]
  ------------------
12787|    377|            spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
12788|    377|        if (auto* sub_tree = sn->getConstSubtree()) {
  ------------------
  |  Branch (12788:19): [True: 274, False: 103]
  ------------------
12789|       |            // Traverse the constant constructor sub tree like generating normal run-time instructions.
12790|       |            // During the AST traversal, if the node is marked as 'specConstant', SpecConstantOpModeGuard
12791|       |            // will set the builder into spec constant op instruction generating mode.
12792|    274|            sub_tree->traverse(this);
12793|    274|            result = accessChainLoad(sub_tree->getType());
12794|    274|        } else if (auto* const_union_array = &sn->getConstArray()) {
  ------------------
  |  Branch (12794:26): [True: 103, False: 0]
  ------------------
12795|    103|            int nextConst = 0;
12796|    103|            result = createSpvConstantFromConstUnionArray(sn->getType(), *const_union_array, nextConst, true);
12797|    103|        } else {
12798|      0|            logger->missingFunctionality("Invalid initializer for spec constant.");
12799|      0|            return spv::NoResult;
12800|      0|        }
12801|    377|        builder.addName(result, sn->getName().c_str());
12802|    377|        return result;
12803|    377|    }
12804|       |
12805|       |    // Neither a front-end constant node, nor a specialization constant node with constant union array or
12806|       |    // constant sub tree as initializer.
12807|      0|    logger->missingFunctionality("Neither a front-end constant nor a spec constant.");
12808|      0|    return spv::NoResult;
12809|    377|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser11visitSymbolEPN7glslang13TIntermSymbolE:
 2378|  10.6k|{
 2379|       |    // We update the line information even though no code might be generated here
 2380|       |    // This is helpful to yield correct lines for control flow instructions
 2381|  10.6k|    if (!linkageOnly) {
  ------------------
  |  Branch (2381:9): [True: 9.71k, False: 981]
  ------------------
 2382|  9.71k|        builder.setDebugSourceLocation(symbol->getLoc().line, symbol->getLoc().getFilename());
 2383|  9.71k|    }
 2384|       |
 2385|  10.6k|    if (symbol->getBasicType() == glslang::EbtFunction) {
  ------------------
  |  Branch (2385:9): [True: 0, False: 10.6k]
  ------------------
 2386|      0|        return;
 2387|      0|    }
 2388|       |
 2389|  10.6k|    SpecConstantOpModeGuard spec_constant_op_mode_setter(&builder);
 2390|       |
 2391|  10.6k|    if (symbol->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (2391:9): [True: 651, False: 10.0k]
  ------------------
 2392|    651|        spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
 2393|  10.6k|#ifdef ENABLE_HLSL
 2394|       |    // Skip symbol handling if it is string-typed
 2395|  10.6k|    if (symbol->getBasicType() == glslang::EbtString)
  ------------------
  |  Branch (2395:9): [True: 0, False: 10.6k]
  ------------------
 2396|      0|        return;
 2397|  10.6k|#endif
 2398|       |
 2399|       |    // getSymbolId() will set up all the IO decorations on the first call.
 2400|       |    // Formal function parameters were mapped during makeFunctions().
 2401|  10.6k|    spv::Id id = getSymbolId(symbol);
 2402|       |
 2403|  10.6k|    if (symbol->getType().getQualifier().isTaskPayload())
  ------------------
  |  Branch (2403:9): [True: 0, False: 10.6k]
  ------------------
 2404|      0|        taskPayloadID = id; // cache the taskPayloadID to be used it as operand for OpEmitMeshTasksEXT
 2405|       |
 2406|  10.6k|    if (builder.isPointer(id)) {
  ------------------
  |  Branch (2406:9): [True: 10.0k, False: 659]
  ------------------
 2407|  10.0k|        if (!symbol->getType().getQualifier().isParamInput() &&
  ------------------
  |  Branch (2407:13): [True: 9.99k, False: 36]
  ------------------
 2408|  9.99k|            !symbol->getType().getQualifier().isParamOutput()) {
  ------------------
  |  Branch (2408:13): [True: 9.99k, False: 0]
  ------------------
 2409|       |            // Include all "static use" and "linkage only" interface variables on the OpEntryPoint instruction
 2410|       |            // Consider adding to the OpEntryPoint interface list.
 2411|       |            // Only looking at structures if they have at least one member.
 2412|  9.99k|            if (!symbol->getType().isStruct() || symbol->getType().getStruct()->size() > 0) {
  ------------------
  |  Branch (2412:17): [True: 9.06k, False: 931]
  |  Branch (2412:50): [True: 931, False: 0]
  ------------------
 2413|  9.99k|                spv::StorageClass sc = builder.getStorageClass(id);
 2414|       |                // Before SPIR-V 1.4, we only want to include Input and Output.
 2415|       |                // Starting with SPIR-V 1.4, we want all globals.
 2416|  9.99k|                if ((glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_4 && builder.isGlobalVariable(id)) ||
  ------------------
  |  Branch (2416:22): [True: 0, False: 9.99k]
  |  Branch (2416:88): [True: 0, False: 0]
  ------------------
 2417|  9.99k|                    (sc == spv::StorageClass::Input || sc == spv::StorageClass::Output)) {
  ------------------
  |  Branch (2417:22): [True: 2.20k, False: 7.79k]
  |  Branch (2417:56): [True: 26, False: 7.76k]
  ------------------
 2418|  2.22k|                    iOSet.insert(id);
 2419|  2.22k|                }
 2420|  9.99k|            }
 2421|  9.99k|        }
 2422|       |
 2423|       |        // If the SPIR-V type is required to be different than the AST type
 2424|       |        // (for ex SubgroupMasks or 3x4 ObjectToWorld/WorldToObject matrices),
 2425|       |        // translate now from the SPIR-V type to the AST type, for the consuming
 2426|       |        // operation.
 2427|       |        // Note this turns it from an l-value to an r-value.
 2428|       |        // Currently, all symbols needing this are inputs; avoid the map lookup when non-input.
 2429|  10.0k|        if (symbol->getType().getQualifier().storage == glslang::EvqVaryingIn)
  ------------------
  |  Branch (2429:13): [True: 2.20k, False: 7.83k]
  ------------------
 2430|  2.20k|            id = translateForcedType(id, symbol->getType());
 2431|  10.0k|    }
 2432|       |
 2433|       |    // Only process non-linkage-only nodes for generating actual static uses
 2434|  10.6k|    if (! linkageOnly || symbol->getQualifier().isSpecConstant()) {
  ------------------
  |  Branch (2434:9): [True: 9.71k, False: 981]
  |  Branch (2434:26): [True: 651, False: 330]
  ------------------
 2435|       |        // Prepare to generate code for the access
 2436|       |
 2437|       |        // L-value chains will be computed left to right.  We're on the symbol now,
 2438|       |        // which is the left-most part of the access chain, so now is "clear" time,
 2439|       |        // followed by setting the base.
 2440|  10.3k|        builder.clearAccessChain();
 2441|       |
 2442|       |        // For now, we consider all user variables as being in memory, so they are pointers,
 2443|       |        // except for
 2444|       |        // A) R-Value arguments to a function, which are an intermediate object.
 2445|       |        //    See comments in handleUserFunctionCall().
 2446|       |        // B) Specialization constants (normal constants don't even come in as a variable),
 2447|       |        //    These are also pure R-values.
 2448|       |        // C) R-Values from type translation, see above call to translateForcedType()
 2449|  10.3k|        glslang::TQualifier qualifier = symbol->getQualifier();
 2450|  10.3k|        if (qualifier.isSpecConstant() || rValueParameters.find(symbol->getId()) != rValueParameters.end() ||
  ------------------
  |  Branch (2450:13): [True: 651, False: 9.71k]
  |  Branch (2450:13): [True: 651, False: 9.71k]
  |  Branch (2450:43): [True: 0, False: 9.71k]
  ------------------
 2451|  9.71k|            (!builder.isPointerType(builder.getTypeId(id)) && !builder.isUntypedPointer(id)))
  ------------------
  |  Branch (2451:14): [True: 0, False: 9.71k]
  |  Branch (2451:63): [True: 0, False: 0]
  ------------------
 2452|    651|            builder.setAccessChainRValue(id);
 2453|  9.71k|        else
 2454|  9.71k|            builder.setAccessChainLValue(id);
 2455|       |
 2456|  10.3k|        if (qualifier.builtIn == glslang::EbvResourceHeapEXT ||
  ------------------
  |  Branch (2456:13): [True: 0, False: 10.3k]
  ------------------
 2457|  10.3k|            qualifier.builtIn == glslang::EbvSamplerHeapEXT) {
  ------------------
  |  Branch (2457:13): [True: 0, False: 10.3k]
  ------------------
 2458|      0|            builder.setAccessChainDescHeapName(symbol->getName().c_str());
 2459|      0|            const glslang::TType& symbolType = symbol->getType();
 2460|       |            // Direct descriptor-heap image arrays have no variable or member to
 2461|       |            // carry NonReadable/NonWritable, so wrap them in a one-member block.
 2462|      0|            const bool wrapDescHeapImageArray =
 2463|      0|                symbolType.getQualifier().layoutDescriptorHeap &&
  ------------------
  |  Branch (2463:17): [True: 0, False: 0]
  ------------------
 2464|      0|                symbolType.isArray() &&
  ------------------
  |  Branch (2464:17): [True: 0, False: 0]
  ------------------
 2465|      0|                symbolType.isImage() &&
  ------------------
  |  Branch (2465:17): [True: 0, False: 0]
  ------------------
 2466|      0|                (symbolType.getQualifier().isReadOnly() || symbolType.getQualifier().isWriteOnly());
  ------------------
  |  Branch (2466:18): [True: 0, False: 0]
  |  Branch (2466:60): [True: 0, False: 0]
  ------------------
 2467|       |
 2468|      0|            if (builder.getAccessChainDescHeapBaseType() == spv::NoResult) {
  ------------------
  |  Branch (2468:17): [True: 0, False: 0]
  ------------------
 2469|      0|                const long long symbolId = symbol->getId();
 2470|      0|                auto cachedBaseType = heapDescHeapBaseType.find(symbolId);
 2471|      0|                if (cachedBaseType == heapDescHeapBaseType.end()) {
  ------------------
  |  Branch (2471:21): [True: 0, False: 0]
  ------------------
 2472|      0|                    spv::Id baseType = convertGlslangToSpvType(symbolType);
 2473|      0|                    if (wrapDescHeapImageArray)
  ------------------
  |  Branch (2473:25): [True: 0, False: 0]
  ------------------
 2474|      0|                        baseType = makeDescHeapImageArrayWrapperType(*symbol, baseType);
 2475|      0|                    cachedBaseType = heapDescHeapBaseType.emplace(symbolId, baseType).first;
 2476|      0|                }
 2477|      0|                builder.setAccessChainDescHeapBaseType(cachedBaseType->second);
 2478|      0|            }
 2479|      0|            if (wrapDescHeapImageArray)
  ------------------
  |  Branch (2479:17): [True: 0, False: 0]
  ------------------
 2480|      0|                builder.accessChainPushDescHeapIndex(builder.makeIntConstant(0));
 2481|      0|            if (!useHeapOffsetDecoration(symbolType)) {
  ------------------
  |  Branch (2481:17): [True: 0, False: 0]
  ------------------
 2482|      0|                spv::Id heapOffset = makeHeapOffsetId(symbolType);
 2483|      0|                if (heapOffset != spv::NoResult)
  ------------------
  |  Branch (2483:21): [True: 0, False: 0]
  ------------------
 2484|      0|                    builder.setAccessChainDescHeapBaseOffset(heapOffset);
 2485|      0|            }
 2486|      0|        }
 2487|  10.3k|    }
 2488|       |
 2489|  10.6k|#ifdef ENABLE_HLSL
 2490|       |    // Process linkage-only nodes for any special additional interface work.
 2491|  10.6k|    if (linkageOnly) {
  ------------------
  |  Branch (2491:9): [True: 981, False: 9.71k]
  ------------------
 2492|    981|        if (glslangIntermediate->getHlslFunctionality1()) {
  ------------------
  |  Branch (2492:13): [True: 0, False: 981]
  ------------------
 2493|       |            // Map implicit counter buffers to their originating buffers, which should have been
 2494|       |            // seen by now, given earlier pruning of unused counters, and preservation of order
 2495|       |            // of declaration.
 2496|      0|            if (symbol->getType().getQualifier().isUniformOrBuffer()) {
  ------------------
  |  Branch (2496:17): [True: 0, False: 0]
  ------------------
 2497|      0|                if (!glslangIntermediate->hasCounterBufferName(symbol->getName())) {
  ------------------
  |  Branch (2497:21): [True: 0, False: 0]
  ------------------
 2498|       |                    // Save possible originating buffers for counter buffers, keyed by
 2499|       |                    // making the potential counter-buffer name.
 2500|      0|                    std::string keyName = symbol->getName().c_str();
 2501|      0|                    keyName = glslangIntermediate->addCounterBufferName(keyName);
 2502|      0|                    counterOriginator[keyName] = symbol;
 2503|      0|                } else {
 2504|       |                    // Handle a counter buffer, by finding the saved originating buffer.
 2505|      0|                    std::string keyName = symbol->getName().c_str();
 2506|      0|                    auto it = counterOriginator.find(keyName);
 2507|      0|                    if (it != counterOriginator.end()) {
  ------------------
  |  Branch (2507:25): [True: 0, False: 0]
  ------------------
 2508|      0|                        id = getSymbolId(it->second);
 2509|      0|                        if (id != spv::NoResult) {
  ------------------
  |  Branch (2509:29): [True: 0, False: 0]
  ------------------
 2510|      0|                            spv::Id counterId = getSymbolId(symbol);
 2511|      0|                            if (counterId != spv::NoResult) {
  ------------------
  |  Branch (2511:33): [True: 0, False: 0]
  ------------------
 2512|      0|                                builder.addExtension("SPV_GOOGLE_hlsl_functionality1");
 2513|      0|                                builder.addDecorationId(id, spv::Decoration::HlslCounterBufferGOOGLE, counterId);
 2514|      0|                            }
 2515|      0|                        }
 2516|      0|                    }
 2517|      0|                }
 2518|      0|            }
 2519|      0|        }
 2520|    981|    }
 2521|  10.6k|#endif
 2522|  10.6k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser19translateForcedTypeEjRKN7glslang5TTypeE:
 2965|  2.20k|{
 2966|  2.20k|    const auto forceIt = forceType.find(object);
 2967|  2.20k|    if (forceIt == forceType.end())
  ------------------
  |  Branch (2967:9): [True: 2.20k, False: 0]
  ------------------
 2968|  2.20k|        return object;
 2969|       |
 2970|      0|    spv::Id desiredTypeId = forceIt->second;
 2971|      0|    spv::Id objectTypeId = builder.getTypeId(object);
 2972|      0|    assert(builder.isPointerType(objectTypeId));
 2973|      0|    objectTypeId = builder.getContainedTypeId(objectTypeId);
 2974|       |
 2975|       |    // The load performed below needs to preserve the same Volatile/Coherent memory access
 2976|       |    // that TGlslangToSpvTraverser::accessChainLoad() would apply
 2977|      0|    spv::Builder::AccessChain::CoherentFlags coherentFlags = TranslateCoherent(type);
 2978|      0|    spv::MemoryAccessMask accessMask =
 2979|      0|        spv::MemoryAccessMask(TranslateMemoryAccess(coherentFlags) & ~spv::MemoryAccessMask::MakePointerAvailableKHR);
 2980|      0|    spv::Scope memoryScope = TranslateMemoryScope(coherentFlags);
 2981|       |
 2982|      0|    if (builder.isVectorType(objectTypeId) &&
  ------------------
  |  Branch (2982:9): [True: 0, False: 0]
  ------------------
 2983|      0|        builder.getScalarTypeWidth(builder.getContainedTypeId(objectTypeId)) == 32) {
  ------------------
  |  Branch (2983:9): [True: 0, False: 0]
  ------------------
 2984|      0|        if (builder.getScalarTypeWidth(desiredTypeId) == 64) {
  ------------------
  |  Branch (2984:13): [True: 0, False: 0]
  ------------------
 2985|       |            // handle 32-bit v.xy* -> 64-bit
 2986|      0|            builder.clearAccessChain();
 2987|      0|            builder.setAccessChainLValue(object);
 2988|      0|            object = builder.accessChainLoad(spv::NoPrecision, spv::Decoration::Max, spv::Decoration::Max, objectTypeId,
 2989|      0|                                             accessMask, memoryScope);
 2990|      0|            std::vector<spv::Id> components;
 2991|      0|            components.push_back(builder.createCompositeExtract(object, builder.getContainedTypeId(objectTypeId), 0));
 2992|      0|            components.push_back(builder.createCompositeExtract(object, builder.getContainedTypeId(objectTypeId), 1));
 2993|       |
 2994|      0|            spv::Id vecType = builder.makeVectorType(builder.getContainedTypeId(objectTypeId), 2);
 2995|      0|            return builder.createUnaryOp(spv::Op::OpBitcast, desiredTypeId,
 2996|      0|                                         builder.createCompositeConstruct(vecType, components));
 2997|      0|        } else {
 2998|      0|            logger->missingFunctionality("forcing 32-bit vector type to non 64-bit scalar");
 2999|      0|        }
 3000|      0|    } else if (builder.isMatrixType(objectTypeId)) {
  ------------------
  |  Branch (3000:16): [True: 0, False: 0]
  ------------------
 3001|       |            // There are no SPIR-V builtins defined for 3x4 variants of ObjectToWorld/WorldToObject
 3002|       |            // and we insert a transpose after loading the original non-transposed builtins
 3003|      0|            builder.clearAccessChain();
 3004|      0|            builder.setAccessChainLValue(object);
 3005|      0|            object = builder.accessChainLoad(spv::NoPrecision, spv::Decoration::Max, spv::Decoration::Max, objectTypeId,
 3006|      0|                                             accessMask, memoryScope);
 3007|      0|            return builder.createUnaryOp(spv::Op::OpTranspose, desiredTypeId, object);
 3008|       |
 3009|      0|    } else  {
 3010|      0|        logger->missingFunctionality("forcing non 32-bit vector type");
 3011|      0|    }
 3012|       |
 3013|      0|    return object;
 3014|      0|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser18visitConstantUnionEPN7glslang20TIntermConstantUnionE:
 5562|  1.65k|{
 5563|  1.65k|    if (node->getQualifier().isSpirvLiteral())
  ------------------
  |  Branch (5563:9): [True: 0, False: 1.65k]
  ------------------
 5564|      0|        return; // Translated to a literal value, skip further processing
 5565|       |
 5566|  1.65k|    int nextConst = 0;
 5567|  1.65k|    spv::Id constant = createSpvConstantFromConstUnionArray(node->getType(), node->getConstArray(), nextConst, false);
 5568|       |
 5569|  1.65k|    builder.clearAccessChain();
 5570|  1.65k|    builder.setAccessChainRValue(constant);
 5571|  1.65k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser11visitBinaryEN7glslang6TVisitEPNS1_13TIntermBinaryE:
 2597|  5.04k|{
 2598|  5.04k|    builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 2599|       |
 2600|  5.04k|    SpecConstantOpModeGuard spec_constant_op_mode_setter(&builder);
 2601|  5.04k|    if (node->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (2601:9): [True: 1, False: 5.04k]
  ------------------
 2602|      1|        spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
 2603|       |
 2604|       |    // First, handle special cases
 2605|  5.04k|    switch (node->getOp()) {
 2606|  1.61k|    case glslang::EOpAssign:
  ------------------
  |  Branch (2606:5): [True: 1.61k, False: 3.43k]
  ------------------
 2607|  2.64k|    case glslang::EOpAddAssign:
  ------------------
  |  Branch (2607:5): [True: 1.03k, False: 4.01k]
  ------------------
 2608|  2.65k|    case glslang::EOpSubAssign:
  ------------------
  |  Branch (2608:5): [True: 12, False: 5.03k]
  ------------------
 2609|  2.67k|    case glslang::EOpMulAssign:
  ------------------
  |  Branch (2609:5): [True: 12, False: 5.03k]
  ------------------
 2610|  2.67k|    case glslang::EOpVectorTimesMatrixAssign:
  ------------------
  |  Branch (2610:5): [True: 0, False: 5.04k]
  ------------------
 2611|  2.67k|    case glslang::EOpVectorTimesScalarAssign:
  ------------------
  |  Branch (2611:5): [True: 2, False: 5.04k]
  ------------------
 2612|  2.67k|    case glslang::EOpMatrixTimesScalarAssign:
  ------------------
  |  Branch (2612:5): [True: 0, False: 5.04k]
  ------------------
 2613|  2.67k|    case glslang::EOpMatrixTimesMatrixAssign:
  ------------------
  |  Branch (2613:5): [True: 0, False: 5.04k]
  ------------------
 2614|  2.68k|    case glslang::EOpDivAssign:
  ------------------
  |  Branch (2614:5): [True: 13, False: 5.03k]
  ------------------
 2615|  2.69k|    case glslang::EOpModAssign:
  ------------------
  |  Branch (2615:5): [True: 12, False: 5.03k]
  ------------------
 2616|  2.71k|    case glslang::EOpAndAssign:
  ------------------
  |  Branch (2616:5): [True: 12, False: 5.03k]
  ------------------
 2617|  2.72k|    case glslang::EOpInclusiveOrAssign:
  ------------------
  |  Branch (2617:5): [True: 12, False: 5.03k]
  ------------------
 2618|  2.73k|    case glslang::EOpExclusiveOrAssign:
  ------------------
  |  Branch (2618:5): [True: 12, False: 5.03k]
  ------------------
 2619|  2.74k|    case glslang::EOpLeftShiftAssign:
  ------------------
  |  Branch (2619:5): [True: 12, False: 5.03k]
  ------------------
 2620|  2.75k|    case glslang::EOpRightShiftAssign:
  ------------------
  |  Branch (2620:5): [True: 12, False: 5.03k]
  ------------------
 2621|       |        // A bin-op assign "a += b" means the same thing as "a = a + b"
 2622|       |        // where a is evaluated before b. For a simple assignment, GLSL
 2623|       |        // says to evaluate the left before the right.  So, always, left
 2624|       |        // node then right node.
 2625|  2.75k|        {
 2626|       |            // get the left l-value, save it away
 2627|  2.75k|            builder.clearAccessChain();
 2628|  2.75k|            node->getLeft()->traverse(this);
 2629|  2.75k|            spv::Builder::AccessChain lValue = builder.getAccessChain();
 2630|       |
 2631|       |            // evaluate the right
 2632|  2.75k|            builder.clearAccessChain();
 2633|  2.75k|            node->getRight()->traverse(this);
 2634|  2.75k|            spv::Id rValue = accessChainLoad(node->getRight()->getType());
 2635|       |
 2636|       |            // reset line number for assignment
 2637|  2.75k|            builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 2638|       |
 2639|  2.75k|            if (node->getOp() != glslang::EOpAssign) {
  ------------------
  |  Branch (2639:17): [True: 1.14k, False: 1.61k]
  ------------------
 2640|       |                // the left is also an r-value
 2641|  1.14k|                builder.setAccessChain(lValue);
 2642|  1.14k|                spv::Id leftRValue = accessChainLoad(node->getLeft()->getType());
 2643|       |
 2644|       |                // do the operation
 2645|  1.14k|                spv::Builder::AccessChain::CoherentFlags coherentFlags = TranslateCoherent(node->getLeft()->getType());
 2646|  1.14k|                coherentFlags |= TranslateCoherent(node->getRight()->getType());
 2647|  1.14k|                OpDecorations decorations = { TranslatePrecisionDecoration(node->getOperationPrecision()),
 2648|  1.14k|                                              TranslateNoContractionDecoration(node->getType().getQualifier()),
 2649|  1.14k|                                              TranslateNonUniformDecoration(coherentFlags) };
 2650|  1.14k|                rValue = createBinaryOperation(node->getOp(), decorations,
 2651|  1.14k|                                               convertGlslangToSpvType(node->getType()), leftRValue, rValue,
 2652|  1.14k|                                               node->getType().getBasicType());
 2653|       |
 2654|       |                // these all need their counterparts in createBinaryOperation()
 2655|  1.14k|                assert(rValue != spv::NoResult);
 2656|  1.14k|            }
 2657|       |
 2658|       |            // store the result
 2659|  2.75k|            builder.setAccessChain(lValue);
 2660|  2.75k|            multiTypeStore(node->getLeft()->getType(), rValue);
 2661|       |
 2662|       |            // assignments are expressions having an rValue after they are evaluated...
 2663|  2.75k|            builder.clearAccessChain();
 2664|  2.75k|            builder.setAccessChainRValue(rValue);
 2665|  2.75k|        }
 2666|  2.75k|        return false;
 2667|    576|    case glslang::EOpIndexDirect:
  ------------------
  |  Branch (2667:5): [True: 576, False: 4.47k]
  ------------------
 2668|  1.44k|    case glslang::EOpIndexDirectStruct:
  ------------------
  |  Branch (2668:5): [True: 868, False: 4.17k]
  ------------------
 2669|  1.44k|        {
 2670|       |            // Structure, array, matrix, or vector indirection with statically known index.
 2671|       |            // Get the left part of the access chain.
 2672|  1.44k|            node->getLeft()->traverse(this);
 2673|       |
 2674|       |            // Add the next element in the chain
 2675|       |
 2676|  1.44k|            const int glslangIndex = node->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst();
 2677|  1.44k|            if (! node->getLeft()->getType().isArray() &&
  ------------------
  |  Branch (2677:17): [True: 1.44k, False: 0]
  ------------------
 2678|  1.44k|                node->getLeft()->getType().isVector() &&
  ------------------
  |  Branch (2678:17): [True: 556, False: 888]
  ------------------
 2679|    556|                node->getOp() == glslang::EOpIndexDirect) {
  ------------------
  |  Branch (2679:17): [True: 556, False: 0]
  ------------------
 2680|       |                // Swizzle is uniform so propagate uniform into access chain
 2681|    556|                spv::Builder::AccessChain::CoherentFlags coherentFlags = TranslateCoherent(node->getLeft()->getType());
 2682|    556|                coherentFlags.nonUniform = 0;
 2683|       |                // This is essentially a hard-coded vector swizzle of size 1,
 2684|       |                // so short circuit the access-chain stuff with a swizzle.
 2685|    556|                std::vector<unsigned> swizzle;
 2686|    556|                swizzle.push_back(glslangIndex);
 2687|    556|                int dummySize;
 2688|    556|                builder.accessChainPushSwizzle(swizzle, convertGlslangToSpvType(node->getLeft()->getType()),
 2689|    556|                                               coherentFlags,
 2690|    556|                                               glslangIntermediate->getBaseAlignmentScalar(
 2691|    556|                                                   node->getLeft()->getType(), dummySize));
 2692|    888|            } else {
 2693|       |
 2694|       |                // Load through a block reference is performed with a dot operator that
 2695|       |                // is mapped to EOpIndexDirectStruct. When we get to the actual reference,
 2696|       |                // do a load and reset the access chain.
 2697|    888|                if (node->getLeft()->isReference() &&
  ------------------
  |  Branch (2697:21): [True: 0, False: 888]
  ------------------
 2698|      0|                    !node->getLeft()->getType().isArray() &&
  ------------------
  |  Branch (2698:21): [True: 0, False: 0]
  ------------------
 2699|      0|                    node->getOp() == glslang::EOpIndexDirectStruct)
  ------------------
  |  Branch (2699:21): [True: 0, False: 0]
  ------------------
 2700|      0|                {
 2701|      0|                    spv::Id left = accessChainLoad(node->getLeft()->getType());
 2702|      0|                    builder.clearAccessChain();
 2703|      0|                    builder.setAccessChainLValue(left);
 2704|      0|                }
 2705|       |
 2706|    888|                int spvIndex = glslangIndex;
 2707|    888|                if (node->getLeft()->getBasicType() == glslang::EbtBlock &&
  ------------------
  |  Branch (2707:21): [True: 818, False: 70]
  ------------------
 2708|    818|                    node->getOp() == glslang::EOpIndexDirectStruct)
  ------------------
  |  Branch (2708:21): [True: 818, False: 0]
  ------------------
 2709|    818|                {
 2710|       |                    // This may be, e.g., an anonymous block-member selection, which generally need
 2711|       |                    // index remapping due to hidden members in anonymous blocks.
 2712|    818|                    const glslang::TTypeList* glslangMembers = node->getLeft()->getType().getStruct();
 2713|    818|                    if (memberRemapper.find(glslangMembers) != memberRemapper.end()) {
  ------------------
  |  Branch (2713:25): [True: 818, False: 0]
  ------------------
 2714|    818|                        std::vector<int>& remapper = memberRemapper[glslangMembers];
 2715|    818|                        assert(remapper.size() > 0);
 2716|    818|                        spvIndex = remapper[glslangIndex];
 2717|    818|                    }
 2718|    818|                }
 2719|       |
 2720|       |                // Struct reference propagates uniform lvalue
 2721|    888|                spv::Builder::AccessChain::CoherentFlags coherentFlags =
 2722|    888|                        TranslateCoherent(node->getLeft()->getType());
 2723|    888|                coherentFlags.nonUniform = 0;
 2724|       |
 2725|       |                // normal case for indexing array or structure or block
 2726|    888|                if ((node->getRight()->getType().getBasicType() == glslang::EbtUint && glslangIntermediate->usingPromoteUint32Indices()) ||
  ------------------
  |  Branch (2726:22): [True: 728, False: 160]
  |  Branch (2726:88): [True: 0, False: 728]
  ------------------
 2727|    888|                     node->getRight()->getType().contains64BitInt()) {
  ------------------
  |  Branch (2727:22): [True: 0, False: 888]
  ------------------
 2728|      0|                    int64_t idx = node->getRight()->getType().contains64BitInt() ?
  ------------------
  |  Branch (2728:35): [True: 0, False: 0]
  ------------------
 2729|      0|                                    node->getRight()->getAsConstantUnion()->getConstArray()[0].getI64Const() :
 2730|      0|                                    (int64_t)node->getRight()->getAsConstantUnion()->getConstArray()[0].getUConst();
 2731|      0|                    builder.accessChainPush(builder.makeInt64Constant(idx),
 2732|      0|                            coherentFlags,
 2733|      0|                            node->getLeft()->getType().getBufferReferenceAlignment());
 2734|       |
 2735|    888|                } else {
 2736|    888|                    builder.accessChainPush(builder.makeIntConstant(spvIndex),
 2737|    888|                            coherentFlags,
 2738|    888|                            node->getLeft()->getType().getBufferReferenceAlignment());
 2739|    888|                }
 2740|       |                // Add capabilities here for accessing PointSize and clip/cull distance.
 2741|       |                // We have deferred generation of associated capabilities until now.
 2742|    888|                if (node->getLeft()->getType().isStruct() && ! node->getLeft()->getType().isArray())
  ------------------
  |  Branch (2742:21): [True: 868, False: 20]
  |  Branch (2742:62): [True: 868, False: 0]
  ------------------
 2743|    868|                    declareUseOfStructMember(*(node->getLeft()->getType().getStruct()), glslangIndex);
 2744|       |
 2745|       |                // EXT_descriptor_heap
 2746|       |                // Record untyped descriptor heap access info.
 2747|    888|                if (node->getQualifier().layoutDescriptorHeap) {
  ------------------
  |  Branch (2747:21): [True: 0, False: 888]
  ------------------
 2748|      0|                    recordDescHeapAccessChainInfo(node);
 2749|      0|                }
 2750|    888|            }
 2751|  1.44k|        }
 2752|  1.44k|        return false;
 2753|     34|    case glslang::EOpIndexIndirect:
  ------------------
  |  Branch (2753:5): [True: 34, False: 5.01k]
  ------------------
 2754|     34|        {
 2755|       |            // Array, matrix, or vector indirection with variable index.
 2756|       |            // Will use native SPIR-V access-chain for and array indirection;
 2757|       |            // matrices are arrays of vectors, so will also work for a matrix.
 2758|       |            // Will use the access chain's 'component' for variable index into a vector.
 2759|       |
 2760|       |            // This adapter is building access chains left to right.
 2761|       |            // Set up the access chain to the left.
 2762|     34|            node->getLeft()->traverse(this);
 2763|       |
 2764|       |            // save it so that computing the right side doesn't trash it
 2765|     34|            spv::Builder::AccessChain partial = builder.getAccessChain();
 2766|       |
 2767|       |            // compute the next index in the chain
 2768|     34|            builder.clearAccessChain();
 2769|     34|            node->getRight()->traverse(this);
 2770|     34|            spv::Id index = accessChainLoad(node->getRight()->getType());
 2771|       |
 2772|       |            // Zero-extend smaller unsigned integer types for array indexing.
 2773|       |            // SPIR-V OpAccessChain treats indices as signed, so we need to zero-extend
 2774|       |            // unsigned types to preserve their values (signed types are fine as-is).
 2775|     34|            spv::Id indexType = builder.getTypeId(index);
 2776|     34|            if (builder.isUintType(indexType) && builder.getScalarTypeWidth(indexType) < 32) {
  ------------------
  |  Branch (2776:17): [True: 24, False: 10]
  |  Branch (2776:50): [True: 0, False: 24]
  ------------------
 2777|       |                // Zero-extend unsigned types to preserve their values
 2778|      0|                spv::Id uintType = builder.makeUintType(32);
 2779|      0|                index = builder.createUnaryOp(spv::Op::OpUConvert, uintType, index);
 2780|      0|            }
 2781|       |
 2782|     34|            addIndirectionIndexCapabilities(node->getLeft()->getType(), node->getRight()->getType());
 2783|       |
 2784|       |            // restore the saved access chain
 2785|     34|            builder.setAccessChain(partial);
 2786|       |
 2787|       |            // Only if index is nonUniform should we propagate nonUniform into access chain
 2788|     34|            spv::Builder::AccessChain::CoherentFlags index_flags = TranslateCoherent(node->getRight()->getType());
 2789|     34|            spv::Builder::AccessChain::CoherentFlags coherent_flags = TranslateCoherent(node->getLeft()->getType());
 2790|     34|            coherent_flags.nonUniform = index_flags.nonUniform;
 2791|       |
 2792|     34|            if (! node->getLeft()->getType().isArray() && node->getLeft()->getType().isVector()) {
  ------------------
  |  Branch (2792:17): [True: 0, False: 34]
  |  Branch (2792:59): [True: 0, False: 0]
  ------------------
 2793|      0|                int dummySize;
 2794|      0|                builder.accessChainPushComponent(
 2795|      0|                    index, convertGlslangToSpvType(node->getLeft()->getType()), coherent_flags,
 2796|      0|                                                glslangIntermediate->getBaseAlignmentScalar(node->getLeft()->getType(),
 2797|      0|                                                dummySize));
 2798|     34|            } else {
 2799|     34|                if (glslangIntermediate->usingPromoteUint32Indices() &&
  ------------------
  |  Branch (2799:21): [True: 0, False: 34]
  ------------------
 2800|      0|                    node->getRight()->getType().getBasicType() == glslang::EbtUint) {
  ------------------
  |  Branch (2800:21): [True: 0, False: 0]
  ------------------
 2801|      0|                    index = createIntWidthConversion(index, 0, builder.makeIntegerType(64, true), glslang::EbtInt64, node->getRight()->getType().getBasicType());
 2802|      0|                }
 2803|       |
 2804|     34|                builder.accessChainPush(index, coherent_flags,
 2805|     34|                                        node->getLeft()->getType().getBufferReferenceAlignment());
 2806|     34|            }
 2807|       |
 2808|       |            // EXT_descriptor_heap
 2809|       |            // Record untyped descriptor heap access info.
 2810|     34|            if (node->getQualifier().layoutDescriptorHeap) {
  ------------------
  |  Branch (2810:17): [True: 0, False: 34]
  ------------------
 2811|      0|                recordDescHeapAccessChainInfo(node);
 2812|      0|            }
 2813|     34|        }
 2814|     34|        return false;
 2815|    413|    case glslang::EOpVectorSwizzle:
  ------------------
  |  Branch (2815:5): [True: 413, False: 4.63k]
  ------------------
 2816|    413|        {
 2817|    413|            node->getLeft()->traverse(this);
 2818|    413|            std::vector<unsigned> swizzle;
 2819|    413|            convertSwizzle(*node->getRight()->getAsAggregate(), swizzle);
 2820|    413|            int dummySize;
 2821|    413|            builder.accessChainPushSwizzle(swizzle, convertGlslangToSpvType(node->getLeft()->getType()),
 2822|    413|                                           TranslateCoherent(node->getLeft()->getType()),
 2823|    413|                                           glslangIntermediate->getBaseAlignmentScalar(node->getLeft()->getType(),
 2824|    413|                                               dummySize));
 2825|    413|        }
 2826|    413|        return false;
 2827|      0|    case glslang::EOpMatrixSwizzle:
  ------------------
  |  Branch (2827:5): [True: 0, False: 5.04k]
  ------------------
 2828|      0|        logger->missingFunctionality("matrix swizzle");
 2829|      0|        return true;
 2830|      0|    case glslang::EOpLogicalOr:
  ------------------
  |  Branch (2830:5): [True: 0, False: 5.04k]
  ------------------
 2831|      4|    case glslang::EOpLogicalAnd:
  ------------------
  |  Branch (2831:5): [True: 4, False: 5.04k]
  ------------------
 2832|      4|        {
 2833|       |
 2834|       |            // These may require short circuiting, but can sometimes be done as straight
 2835|       |            // binary operations.  The right operand must be short circuited if it has
 2836|       |            // side effects, and should probably be if it is complex.
 2837|      4|            if (node->getType().getQualifier().isSpecConstant() || isTrivial(node->getRight()->getAsTyped()))
  ------------------
  |  Branch (2837:17): [True: 0, False: 4]
  |  Branch (2837:68): [True: 0, False: 4]
  ------------------
 2838|      0|                break; // handle below as a normal binary operation
 2839|       |            // otherwise, we need to do dynamic short circuiting on the right operand
 2840|      4|            spv::Id result = createShortCircuit(node->getOp(), *node->getLeft()->getAsTyped(),
 2841|      4|                *node->getRight()->getAsTyped());
 2842|      4|            builder.clearAccessChain();
 2843|      4|            builder.setAccessChainRValue(result);
 2844|      4|        }
 2845|      0|        return false;
 2846|    393|    default:
  ------------------
  |  Branch (2846:5): [True: 393, False: 4.65k]
  ------------------
 2847|    393|        break;
 2848|  5.04k|    }
 2849|       |
 2850|       |    // Assume generic binary op...
 2851|       |
 2852|       |    // get right operand
 2853|    393|    builder.clearAccessChain();
 2854|    393|    node->getLeft()->traverse(this);
 2855|    393|    spv::Id left = accessChainLoad(node->getLeft()->getType());
 2856|       |
 2857|       |    // get left operand
 2858|    393|    builder.clearAccessChain();
 2859|    393|    node->getRight()->traverse(this);
 2860|    393|    spv::Id right = accessChainLoad(node->getRight()->getType());
 2861|       |
 2862|       |    // get result
 2863|    393|    OpDecorations decorations = { TranslatePrecisionDecoration(node->getOperationPrecision()),
 2864|    393|                                  TranslateNoContractionDecoration(node->getType().getQualifier()),
 2865|    393|                                  TranslateNonUniformDecoration(node->getType().getQualifier()) };
 2866|    393|    spv::Id result = createBinaryOperation(node->getOp(), decorations,
 2867|    393|                                           convertGlslangToSpvType(node->getType()), left, right,
 2868|    393|                                           node->getLeft()->getType().getBasicType());
 2869|       |
 2870|    393|    builder.clearAccessChain();
 2871|    393|    if (! result) {
  ------------------
  |  Branch (2871:9): [True: 0, False: 393]
  ------------------
 2872|      0|        logger->missingFunctionality("unknown glslang binary operation");
 2873|      0|        return true;  // pick up a child as the place-holder result
 2874|    393|    } else {
 2875|    393|        builder.setAccessChainRValue(result);
 2876|    393|        return false;
 2877|    393|    }
 2878|    393|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_132TranslateNoContractionDecorationERKN7glslang10TQualifierE:
  640|  3.21k|{
  641|  3.21k|    if (qualifier.isNoContraction())
  ------------------
  |  Branch (641:9): [True: 0, False: 3.21k]
  ------------------
  642|      0|        return spv::Decoration::NoContraction;
  643|  3.21k|    else
  644|  3.21k|        return spv::Decoration::Max;
  645|  3.21k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_112_GLOBAL__N_113OpDecorationsC2EN3spv10DecorationES3_S3_:
  102|  3.21k|            precision(precision)
  103|       |            ,
  104|  3.21k|            noContraction(noContraction),
  105|  3.21k|            nonUniform(nonUniform)
  106|  3.21k|        { }
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser21createBinaryOperationEN7glslang9TOperatorERNS_12_GLOBAL__N_113OpDecorationsEjjjNS1_10TBasicTypeEb:
 8965|  1.72k|{
 8966|  1.72k|    bool isUnsigned = isTypeUnsignedInt(typeProxy);
 8967|  1.72k|    bool isFloat = isTypeFloat(typeProxy);
 8968|  1.72k|    bool isBool = typeProxy == glslang::EbtBool;
 8969|       |
 8970|  1.72k|    spv::Op binOp = spv::Op::OpNop;
 8971|  1.72k|    bool needMatchingVectors = true;  // for non-matrix ops, would a scalar need to smear to match a vector?
 8972|  1.72k|    bool comparison = false;
 8973|       |
 8974|  1.72k|    switch (op) {
 8975|     82|    case glslang::EOpAdd:
  ------------------
  |  Branch (8975:5): [True: 82, False: 1.64k]
  ------------------
 8976|  1.11k|    case glslang::EOpAddAssign:
  ------------------
  |  Branch (8976:5): [True: 1.03k, False: 695]
  ------------------
 8977|  1.11k|        if (isFloat)
  ------------------
  |  Branch (8977:13): [True: 942, False: 173]
  ------------------
 8978|    942|            binOp = spv::Op::OpFAdd;
 8979|    173|        else
 8980|    173|            binOp = spv::Op::OpIAdd;
 8981|  1.11k|        break;
 8982|     43|    case glslang::EOpSub:
  ------------------
  |  Branch (8982:5): [True: 43, False: 1.68k]
  ------------------
 8983|     55|    case glslang::EOpSubAssign:
  ------------------
  |  Branch (8983:5): [True: 12, False: 1.71k]
  ------------------
 8984|     55|        if (isFloat)
  ------------------
  |  Branch (8984:13): [True: 6, False: 49]
  ------------------
 8985|      6|            binOp = spv::Op::OpFSub;
 8986|     49|        else
 8987|     49|            binOp = spv::Op::OpISub;
 8988|     55|        break;
 8989|     24|    case glslang::EOpMul:
  ------------------
  |  Branch (8989:5): [True: 24, False: 1.70k]
  ------------------
 8990|     36|    case glslang::EOpMulAssign:
  ------------------
  |  Branch (8990:5): [True: 12, False: 1.71k]
  ------------------
 8991|     36|        if (isFloat)
  ------------------
  |  Branch (8991:13): [True: 12, False: 24]
  ------------------
 8992|     12|            binOp = spv::Op::OpFMul;
 8993|     24|        else
 8994|     24|            binOp = spv::Op::OpIMul;
 8995|     36|        break;
 8996|     20|    case glslang::EOpVectorTimesScalar:
  ------------------
  |  Branch (8996:5): [True: 20, False: 1.70k]
  ------------------
 8997|     22|    case glslang::EOpVectorTimesScalarAssign:
  ------------------
  |  Branch (8997:5): [True: 2, False: 1.72k]
  ------------------
 8998|     22|        if (isFloat && (builder.isVector(left) || builder.isVector(right) || builder.isCooperativeVector(left) || builder.isCooperativeVector(right))) {
  ------------------
  |  Branch (8998:13): [True: 10, False: 12]
  |  Branch (8998:25): [True: 10, False: 0]
  |  Branch (8998:51): [True: 0, False: 0]
  |  Branch (8998:78): [True: 0, False: 0]
  |  Branch (8998:115): [True: 0, False: 0]
  ------------------
 8999|     10|            if (builder.isVector(right) || builder.isCooperativeVector(right))
  ------------------
  |  Branch (8999:17): [True: 0, False: 10]
  |  Branch (8999:44): [True: 0, False: 10]
  ------------------
 9000|      0|                std::swap(left, right);
 9001|     10|            assert(builder.isScalar(right));
 9002|     10|            needMatchingVectors = false;
 9003|     10|            binOp = spv::Op::OpVectorTimesScalar;
 9004|     12|        } else if (isFloat) {
  ------------------
  |  Branch (9004:20): [True: 0, False: 12]
  ------------------
 9005|      0|            binOp = spv::Op::OpFMul;
 9006|     12|        } else if (builder.isCooperativeVector(left) || builder.isCooperativeVector(right)) {
  ------------------
  |  Branch (9006:20): [True: 0, False: 12]
  |  Branch (9006:57): [True: 0, False: 12]
  ------------------
 9007|      0|            if (builder.isCooperativeVector(right))
  ------------------
  |  Branch (9007:17): [True: 0, False: 0]
  ------------------
 9008|      0|                std::swap(left, right);
 9009|      0|            assert(builder.isScalar(right));
 9010|       |            // Construct a cooperative vector from the scalar
 9011|      0|            right = builder.createCompositeConstruct(builder.getTypeId(left), { right });
 9012|      0|            binOp = spv::Op::OpIMul;
 9013|     12|        } else {
 9014|     12|            binOp = spv::Op::OpIMul;
 9015|     12|        }
 9016|     22|        break;
 9017|      0|    case glslang::EOpVectorTimesMatrix:
  ------------------
  |  Branch (9017:5): [True: 0, False: 1.72k]
  ------------------
 9018|      0|    case glslang::EOpVectorTimesMatrixAssign:
  ------------------
  |  Branch (9018:5): [True: 0, False: 1.72k]
  ------------------
 9019|      0|        binOp = spv::Op::OpVectorTimesMatrix;
 9020|      0|        break;
 9021|      2|    case glslang::EOpMatrixTimesVector:
  ------------------
  |  Branch (9021:5): [True: 2, False: 1.72k]
  ------------------
 9022|      2|        binOp = spv::Op::OpMatrixTimesVector;
 9023|      2|        break;
 9024|      0|    case glslang::EOpMatrixTimesScalar:
  ------------------
  |  Branch (9024:5): [True: 0, False: 1.72k]
  ------------------
 9025|      0|    case glslang::EOpMatrixTimesScalarAssign:
  ------------------
  |  Branch (9025:5): [True: 0, False: 1.72k]
  ------------------
 9026|      0|        binOp = spv::Op::OpMatrixTimesScalar;
 9027|      0|        break;
 9028|      0|    case glslang::EOpMatrixTimesMatrix:
  ------------------
  |  Branch (9028:5): [True: 0, False: 1.72k]
  ------------------
 9029|      0|    case glslang::EOpMatrixTimesMatrixAssign:
  ------------------
  |  Branch (9029:5): [True: 0, False: 1.72k]
  ------------------
 9030|      0|        binOp = spv::Op::OpMatrixTimesMatrix;
 9031|      0|        break;
 9032|      0|    case glslang::EOpOuterProduct:
  ------------------
  |  Branch (9032:5): [True: 0, False: 1.72k]
  ------------------
 9033|      0|        binOp = spv::Op::OpOuterProduct;
 9034|      0|        needMatchingVectors = false;
 9035|      0|        break;
 9036|      6|    case glslang::EOpDot:
  ------------------
  |  Branch (9036:5): [True: 6, False: 1.72k]
  ------------------
 9037|      6|        if (typeProxy == glslang::EbtBFloat16) {
  ------------------
  |  Branch (9037:13): [True: 0, False: 6]
  ------------------
 9038|      0|            builder.addExtension(spv::E_SPV_KHR_bfloat16);
 9039|      0|            builder.addCapability(spv::Capability::BFloat16DotProductKHR);
 9040|      0|        }
 9041|      6|        binOp = spv::Op::OpDot;
 9042|      6|        break;
 9043|       |
 9044|      5|    case glslang::EOpDiv:
  ------------------
  |  Branch (9044:5): [True: 5, False: 1.72k]
  ------------------
 9045|     18|    case glslang::EOpDivAssign:
  ------------------
  |  Branch (9045:5): [True: 13, False: 1.71k]
  ------------------
 9046|     18|        if (isFloat)
  ------------------
  |  Branch (9046:13): [True: 6, False: 12]
  ------------------
 9047|      6|            binOp = spv::Op::OpFDiv;
 9048|     12|        else if (isUnsigned)
  ------------------
  |  Branch (9048:18): [True: 12, False: 0]
  ------------------
 9049|     12|            binOp = spv::Op::OpUDiv;
 9050|      0|        else
 9051|      0|            binOp = spv::Op::OpSDiv;
 9052|     18|        break;
 9053|     12|    case glslang::EOpMod:
  ------------------
  |  Branch (9053:5): [True: 12, False: 1.71k]
  ------------------
 9054|     24|    case glslang::EOpModAssign:
  ------------------
  |  Branch (9054:5): [True: 12, False: 1.71k]
  ------------------
 9055|     24|        if (isFloat)
  ------------------
  |  Branch (9055:13): [True: 0, False: 24]
  ------------------
 9056|      0|            binOp = spv::Op::OpFMod;
 9057|     24|        else if (isUnsigned)
  ------------------
  |  Branch (9057:18): [True: 12, False: 12]
  ------------------
 9058|     12|            binOp = spv::Op::OpUMod;
 9059|     12|        else
 9060|     12|            binOp = spv::Op::OpSMod;
 9061|     24|        break;
 9062|      0|    case glslang::EOpRightShift:
  ------------------
  |  Branch (9062:5): [True: 0, False: 1.72k]
  ------------------
 9063|     12|    case glslang::EOpRightShiftAssign:
  ------------------
  |  Branch (9063:5): [True: 12, False: 1.71k]
  ------------------
 9064|     12|        if (isUnsigned)
  ------------------
  |  Branch (9064:13): [True: 0, False: 12]
  ------------------
 9065|      0|            binOp = spv::Op::OpShiftRightLogical;
 9066|     12|        else
 9067|     12|            binOp = spv::Op::OpShiftRightArithmetic;
 9068|     12|        break;
 9069|     24|    case glslang::EOpLeftShift:
  ------------------
  |  Branch (9069:5): [True: 24, False: 1.70k]
  ------------------
 9070|     36|    case glslang::EOpLeftShiftAssign:
  ------------------
  |  Branch (9070:5): [True: 12, False: 1.71k]
  ------------------
 9071|     36|        binOp = spv::Op::OpShiftLeftLogical;
 9072|     36|        break;
 9073|     12|    case glslang::EOpAnd:
  ------------------
  |  Branch (9073:5): [True: 12, False: 1.71k]
  ------------------
 9074|     24|    case glslang::EOpAndAssign:
  ------------------
  |  Branch (9074:5): [True: 12, False: 1.71k]
  ------------------
 9075|     24|        binOp = spv::Op::OpBitwiseAnd;
 9076|     24|        break;
 9077|      0|    case glslang::EOpLogicalAnd:
  ------------------
  |  Branch (9077:5): [True: 0, False: 1.72k]
  ------------------
 9078|      0|        needMatchingVectors = false;
 9079|      0|        binOp = spv::Op::OpLogicalAnd;
 9080|      0|        break;
 9081|     13|    case glslang::EOpInclusiveOr:
  ------------------
  |  Branch (9081:5): [True: 13, False: 1.71k]
  ------------------
 9082|     25|    case glslang::EOpInclusiveOrAssign:
  ------------------
  |  Branch (9082:5): [True: 12, False: 1.71k]
  ------------------
 9083|     25|        binOp = spv::Op::OpBitwiseOr;
 9084|     25|        break;
 9085|      0|    case glslang::EOpLogicalOr:
  ------------------
  |  Branch (9085:5): [True: 0, False: 1.72k]
  ------------------
 9086|      0|        needMatchingVectors = false;
 9087|      0|        binOp = spv::Op::OpLogicalOr;
 9088|      0|        break;
 9089|     12|    case glslang::EOpExclusiveOr:
  ------------------
  |  Branch (9089:5): [True: 12, False: 1.71k]
  ------------------
 9090|     24|    case glslang::EOpExclusiveOrAssign:
  ------------------
  |  Branch (9090:5): [True: 12, False: 1.71k]
  ------------------
 9091|     24|        binOp = spv::Op::OpBitwiseXor;
 9092|     24|        break;
 9093|      0|    case glslang::EOpLogicalXor:
  ------------------
  |  Branch (9093:5): [True: 0, False: 1.72k]
  ------------------
 9094|      0|        needMatchingVectors = false;
 9095|      0|        binOp = spv::Op::OpLogicalNotEqual;
 9096|      0|        break;
 9097|       |
 9098|      0|    case glslang::EOpAbsDifference:
  ------------------
  |  Branch (9098:5): [True: 0, False: 1.72k]
  ------------------
 9099|      0|        binOp = isUnsigned ? spv::Op::OpAbsUSubINTEL : spv::Op::OpAbsISubINTEL;
  ------------------
  |  Branch (9099:17): [True: 0, False: 0]
  ------------------
 9100|      0|        break;
 9101|       |
 9102|      0|    case glslang::EOpAddSaturate:
  ------------------
  |  Branch (9102:5): [True: 0, False: 1.72k]
  ------------------
 9103|      0|        binOp = isUnsigned ? spv::Op::OpUAddSatINTEL : spv::Op::OpIAddSatINTEL;
  ------------------
  |  Branch (9103:17): [True: 0, False: 0]
  ------------------
 9104|      0|        break;
 9105|       |
 9106|      0|    case glslang::EOpSubSaturate:
  ------------------
  |  Branch (9106:5): [True: 0, False: 1.72k]
  ------------------
 9107|      0|        binOp = isUnsigned ? spv::Op::OpUSubSatINTEL : spv::Op::OpISubSatINTEL;
  ------------------
  |  Branch (9107:17): [True: 0, False: 0]
  ------------------
 9108|      0|        break;
 9109|       |
 9110|      0|    case glslang::EOpAverage:
  ------------------
  |  Branch (9110:5): [True: 0, False: 1.72k]
  ------------------
 9111|      0|        binOp = isUnsigned ? spv::Op::OpUAverageINTEL : spv::Op::OpIAverageINTEL;
  ------------------
  |  Branch (9111:17): [True: 0, False: 0]
  ------------------
 9112|      0|        break;
 9113|       |
 9114|      0|    case glslang::EOpAverageRounded:
  ------------------
  |  Branch (9114:5): [True: 0, False: 1.72k]
  ------------------
 9115|      0|        binOp = isUnsigned ? spv::Op::OpUAverageRoundedINTEL : spv::Op::OpIAverageRoundedINTEL;
  ------------------
  |  Branch (9115:17): [True: 0, False: 0]
  ------------------
 9116|      0|        break;
 9117|       |
 9118|      0|    case glslang::EOpMul32x16:
  ------------------
  |  Branch (9118:5): [True: 0, False: 1.72k]
  ------------------
 9119|      0|        binOp = isUnsigned ? spv::Op::OpUMul32x16INTEL : spv::Op::OpIMul32x16INTEL;
  ------------------
  |  Branch (9119:17): [True: 0, False: 0]
  ------------------
 9120|      0|        break;
 9121|       |
 9122|      0|    case glslang::EOpExpectEXT:
  ------------------
  |  Branch (9122:5): [True: 0, False: 1.72k]
  ------------------
 9123|      0|        binOp = spv::Op::OpExpectKHR;
 9124|      0|        break;
 9125|       |
 9126|     44|    case glslang::EOpLessThan:
  ------------------
  |  Branch (9126:5): [True: 44, False: 1.68k]
  ------------------
 9127|    169|    case glslang::EOpGreaterThan:
  ------------------
  |  Branch (9127:5): [True: 125, False: 1.60k]
  ------------------
 9128|    206|    case glslang::EOpLessThanEqual:
  ------------------
  |  Branch (9128:5): [True: 37, False: 1.69k]
  ------------------
 9129|    242|    case glslang::EOpGreaterThanEqual:
  ------------------
  |  Branch (9129:5): [True: 36, False: 1.69k]
  ------------------
 9130|    279|    case glslang::EOpEqual:
  ------------------
  |  Branch (9130:5): [True: 37, False: 1.69k]
  ------------------
 9131|    292|    case glslang::EOpNotEqual:
  ------------------
  |  Branch (9131:5): [True: 13, False: 1.71k]
  ------------------
 9132|    316|    case glslang::EOpVectorEqual:
  ------------------
  |  Branch (9132:5): [True: 24, False: 1.70k]
  ------------------
 9133|    329|    case glslang::EOpVectorNotEqual:
  ------------------
  |  Branch (9133:5): [True: 13, False: 1.71k]
  ------------------
 9134|    329|        comparison = true;
 9135|    329|        break;
 9136|      0|    default:
  ------------------
  |  Branch (9136:5): [True: 0, False: 1.72k]
  ------------------
 9137|      0|        break;
 9138|  1.72k|    }
 9139|       |
 9140|       |    // handle mapped binary operations (should be non-comparison)
 9141|  1.72k|    if (binOp != spv::Op::OpNop) {
  ------------------
  |  Branch (9141:9): [True: 1.39k, False: 329]
  ------------------
 9142|  1.39k|        assert(comparison == false);
 9143|  1.39k|        if (builder.isMatrix(left) || builder.isMatrix(right) ||
  ------------------
  |  Branch (9143:13): [True: 4, False: 1.39k]
  |  Branch (9143:39): [True: 0, False: 1.39k]
  ------------------
 9144|  1.39k|            builder.isCooperativeMatrix(left) || builder.isCooperativeMatrix(right))
  ------------------
  |  Branch (9144:13): [True: 0, False: 1.39k]
  |  Branch (9144:50): [True: 0, False: 1.39k]
  ------------------
 9145|      4|            return createBinaryMatrixOperation(binOp, decorations, typeId, left, right);
 9146|       |
 9147|       |        // No matrix involved; make both operands be the same number of components, if needed
 9148|  1.39k|        if (needMatchingVectors)
  ------------------
  |  Branch (9148:13): [True: 1.38k, False: 10]
  ------------------
 9149|  1.38k|            builder.promoteScalar(decorations.precision, left, right);
 9150|       |
 9151|  1.39k|        spv::Id result = builder.createBinOp(binOp, typeId, left, right);
 9152|  1.39k|        decorations.addNoContraction(builder, result);
 9153|  1.39k|        decorations.addNonUniform(builder, result);
 9154|  1.39k|        return builder.setPrecision(result, decorations.precision);
 9155|  1.39k|    }
 9156|       |
 9157|    329|    if (! comparison)
  ------------------
  |  Branch (9157:9): [True: 0, False: 329]
  ------------------
 9158|      0|        return 0;
 9159|       |
 9160|       |    // Handle comparison instructions
 9161|       |
 9162|    329|    if (reduceComparison && (op == glslang::EOpEqual || op == glslang::EOpNotEqual)
  ------------------
  |  Branch (9162:9): [True: 197, False: 132]
  |  Branch (9162:30): [True: 37, False: 160]
  |  Branch (9162:57): [True: 13, False: 147]
  ------------------
 9163|     50|                         && (builder.isVector(left) || builder.isMatrix(left) || builder.isAggregate(left))) {
  ------------------
  |  Branch (9163:30): [True: 0, False: 50]
  |  Branch (9163:56): [True: 1, False: 49]
  |  Branch (9163:82): [True: 0, False: 49]
  ------------------
 9164|      1|        spv::Id result = builder.createCompositeCompare(decorations.precision, left, right, op == glslang::EOpEqual);
 9165|      1|        decorations.addNonUniform(builder, result);
 9166|      1|        return result;
 9167|      1|    }
 9168|       |
 9169|    328|    switch (op) {
 9170|     44|    case glslang::EOpLessThan:
  ------------------
  |  Branch (9170:5): [True: 44, False: 284]
  ------------------
 9171|     44|        if (isFloat)
  ------------------
  |  Branch (9171:13): [True: 4, False: 40]
  ------------------
 9172|      4|            binOp = spv::Op::OpFOrdLessThan;
 9173|     40|        else if (isUnsigned)
  ------------------
  |  Branch (9173:18): [True: 24, False: 16]
  ------------------
 9174|     24|            binOp = spv::Op::OpULessThan;
 9175|     16|        else
 9176|     16|            binOp = spv::Op::OpSLessThan;
 9177|     44|        break;
 9178|    125|    case glslang::EOpGreaterThan:
  ------------------
  |  Branch (9178:5): [True: 125, False: 203]
  ------------------
 9179|    125|        if (isFloat)
  ------------------
  |  Branch (9179:13): [True: 39, False: 86]
  ------------------
 9180|     39|            binOp = spv::Op::OpFOrdGreaterThan;
 9181|     86|        else if (isUnsigned)
  ------------------
  |  Branch (9181:18): [True: 34, False: 52]
  ------------------
 9182|     34|            binOp = spv::Op::OpUGreaterThan;
 9183|     52|        else
 9184|     52|            binOp = spv::Op::OpSGreaterThan;
 9185|    125|        break;
 9186|     37|    case glslang::EOpLessThanEqual:
  ------------------
  |  Branch (9186:5): [True: 37, False: 291]
  ------------------
 9187|     37|        if (isFloat)
  ------------------
  |  Branch (9187:13): [True: 0, False: 37]
  ------------------
 9188|      0|            binOp = spv::Op::OpFOrdLessThanEqual;
 9189|     37|        else if (isUnsigned)
  ------------------
  |  Branch (9189:18): [True: 11, False: 26]
  ------------------
 9190|     11|            binOp = spv::Op::OpULessThanEqual;
 9191|     26|        else
 9192|     26|            binOp = spv::Op::OpSLessThanEqual;
 9193|     37|        break;
 9194|     36|    case glslang::EOpGreaterThanEqual:
  ------------------
  |  Branch (9194:5): [True: 36, False: 292]
  ------------------
 9195|     36|        if (isFloat)
  ------------------
  |  Branch (9195:13): [True: 0, False: 36]
  ------------------
 9196|      0|            binOp = spv::Op::OpFOrdGreaterThanEqual;
 9197|     36|        else if (isUnsigned)
  ------------------
  |  Branch (9197:18): [True: 24, False: 12]
  ------------------
 9198|     24|            binOp = spv::Op::OpUGreaterThanEqual;
 9199|     12|        else
 9200|     12|            binOp = spv::Op::OpSGreaterThanEqual;
 9201|     36|        break;
 9202|     37|    case glslang::EOpEqual:
  ------------------
  |  Branch (9202:5): [True: 37, False: 291]
  ------------------
 9203|     61|    case glslang::EOpVectorEqual:
  ------------------
  |  Branch (9203:5): [True: 24, False: 304]
  ------------------
 9204|     61|        if (isFloat)
  ------------------
  |  Branch (9204:13): [True: 25, False: 36]
  ------------------
 9205|     25|            binOp = spv::Op::OpFOrdEqual;
 9206|     36|        else if (isBool)
  ------------------
  |  Branch (9206:18): [True: 0, False: 36]
  ------------------
 9207|      0|            binOp = spv::Op::OpLogicalEqual;
 9208|     36|        else
 9209|     36|            binOp = spv::Op::OpIEqual;
 9210|     61|        break;
 9211|     12|    case glslang::EOpNotEqual:
  ------------------
  |  Branch (9211:5): [True: 12, False: 316]
  ------------------
 9212|     25|    case glslang::EOpVectorNotEqual:
  ------------------
  |  Branch (9212:5): [True: 13, False: 315]
  ------------------
 9213|     25|        if (isFloat)
  ------------------
  |  Branch (9213:13): [True: 0, False: 25]
  ------------------
 9214|      0|            binOp = spv::Op::OpFUnordNotEqual;
 9215|     25|        else if (isBool)
  ------------------
  |  Branch (9215:18): [True: 0, False: 25]
  ------------------
 9216|      0|            binOp = spv::Op::OpLogicalNotEqual;
 9217|     25|        else
 9218|     25|            binOp = spv::Op::OpINotEqual;
 9219|     25|        break;
 9220|      0|    default:
  ------------------
  |  Branch (9220:5): [True: 0, False: 328]
  ------------------
 9221|      0|        break;
 9222|    328|    }
 9223|       |
 9224|    328|    if (binOp != spv::Op::OpNop) {
  ------------------
  |  Branch (9224:9): [True: 328, False: 0]
  ------------------
 9225|    328|        spv::Id result = builder.createBinOp(binOp, typeId, left, right);
 9226|    328|        decorations.addNoContraction(builder, result);
 9227|    328|        decorations.addNonUniform(builder, result);
 9228|    328|        return builder.setPrecision(result, decorations.precision);
 9229|    328|    }
 9230|       |
 9231|      0|    return 0;
 9232|    328|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser27createBinaryMatrixOperationEN3spv2OpERNS_12_GLOBAL__N_113OpDecorationsEjjj:
 9250|      4|{
 9251|      4|    bool firstClass = true;
 9252|       |
 9253|       |    // First, handle first-class matrix operations (* and matrix/scalar)
 9254|      4|    switch (op) {
 9255|      1|    case spv::Op::OpFDiv:
  ------------------
  |  Branch (9255:5): [True: 1, False: 3]
  ------------------
 9256|      1|        if (builder.isMatrix(left) && builder.isScalar(right)) {
  ------------------
  |  Branch (9256:13): [True: 1, False: 0]
  |  Branch (9256:39): [True: 0, False: 1]
  ------------------
 9257|       |            // turn matrix / scalar into a multiply...
 9258|      0|            spv::Id resultType = builder.getTypeId(right);
 9259|      0|            right = builder.createBinOp(spv::Op::OpFDiv, resultType, builder.makeFpConstant(resultType, 1.0), right);
 9260|      0|            op = spv::Op::OpMatrixTimesScalar;
 9261|      0|        } else
 9262|      1|            firstClass = false;
 9263|      1|        break;
 9264|      0|    case spv::Op::OpMatrixTimesScalar:
  ------------------
  |  Branch (9264:5): [True: 0, False: 4]
  ------------------
 9265|      0|        if (builder.isMatrix(right) || builder.isCooperativeMatrix(right))
  ------------------
  |  Branch (9265:13): [True: 0, False: 0]
  |  Branch (9265:40): [True: 0, False: 0]
  ------------------
 9266|      0|            std::swap(left, right);
 9267|      0|        assert(builder.isScalar(right));
 9268|      0|        break;
 9269|      0|    case spv::Op::OpVectorTimesMatrix:
  ------------------
  |  Branch (9269:5): [True: 0, False: 4]
  ------------------
 9270|      0|        assert(builder.isVector(left));
 9271|      0|        assert(builder.isMatrix(right));
 9272|      0|        break;
 9273|      2|    case spv::Op::OpMatrixTimesVector:
  ------------------
  |  Branch (9273:5): [True: 2, False: 2]
  ------------------
 9274|      2|        assert(builder.isMatrix(left));
 9275|      2|        assert(builder.isVector(right));
 9276|      2|        break;
 9277|      0|    case spv::Op::OpMatrixTimesMatrix:
  ------------------
  |  Branch (9277:5): [True: 0, False: 4]
  ------------------
 9278|      0|        assert(builder.isMatrix(left));
 9279|      0|        assert(builder.isMatrix(right));
 9280|      0|        break;
 9281|      1|    default:
  ------------------
  |  Branch (9281:5): [True: 1, False: 3]
  ------------------
 9282|      1|        firstClass = false;
 9283|      1|        break;
 9284|      4|    }
 9285|       |
 9286|      4|    if (builder.isCooperativeMatrix(left) || builder.isCooperativeMatrix(right))
  ------------------
  |  Branch (9286:9): [True: 0, False: 4]
  |  Branch (9286:46): [True: 0, False: 4]
  ------------------
 9287|      0|        firstClass = true;
 9288|       |
 9289|      4|    if (firstClass) {
  ------------------
  |  Branch (9289:9): [True: 2, False: 2]
  ------------------
 9290|      2|        spv::Id result = builder.createBinOp(op, typeId, left, right);
 9291|      2|        decorations.addNoContraction(builder, result);
 9292|      2|        decorations.addNonUniform(builder, result);
 9293|      2|        return builder.setPrecision(result, decorations.precision);
 9294|      2|    }
 9295|       |
 9296|       |    // Handle component-wise +, -, *, %, and / for all combinations of type.
 9297|       |    // The result type of all of them is the same type as the (a) matrix operand.
 9298|       |    // The algorithm is to:
 9299|       |    //   - break the matrix(es) into vectors
 9300|       |    //   - smear any scalar to a vector
 9301|       |    //   - do vector operations
 9302|       |    //   - make a matrix out the vector results
 9303|      2|    switch (op) {
 9304|      1|    case spv::Op::OpFAdd:
  ------------------
  |  Branch (9304:5): [True: 1, False: 1]
  ------------------
 9305|      1|    case spv::Op::OpFSub:
  ------------------
  |  Branch (9305:5): [True: 0, False: 2]
  ------------------
 9306|      2|    case spv::Op::OpFDiv:
  ------------------
  |  Branch (9306:5): [True: 1, False: 1]
  ------------------
 9307|      2|    case spv::Op::OpFMod:
  ------------------
  |  Branch (9307:5): [True: 0, False: 2]
  ------------------
 9308|      2|    case spv::Op::OpFMul:
  ------------------
  |  Branch (9308:5): [True: 0, False: 2]
  ------------------
 9309|      2|    {
 9310|       |        // one time set up...
 9311|      2|        bool  leftMat = builder.isMatrix(left);
 9312|      2|        bool rightMat = builder.isMatrix(right);
 9313|      2|        unsigned int numCols = leftMat ? builder.getNumColumns(left) : builder.getNumColumns(right);
  ------------------
  |  Branch (9313:32): [True: 2, False: 0]
  ------------------
 9314|      2|        int numRows = leftMat ? builder.getNumRows(left) : builder.getNumRows(right);
  ------------------
  |  Branch (9314:23): [True: 2, False: 0]
  ------------------
 9315|      2|        spv::Id scalarType = builder.getScalarTypeId(typeId);
 9316|      2|        spv::Id vecType = builder.makeVectorType(scalarType, numRows);
 9317|      2|        std::vector<spv::Id> results;
 9318|      2|        spv::Id smearVec = spv::NoResult;
 9319|      2|        if (builder.isScalar(left))
  ------------------
  |  Branch (9319:13): [True: 0, False: 2]
  ------------------
 9320|      0|            smearVec = builder.smearScalar(decorations.precision, left, vecType);
 9321|      2|        else if (builder.isScalar(right))
  ------------------
  |  Branch (9321:18): [True: 0, False: 2]
  ------------------
 9322|      0|            smearVec = builder.smearScalar(decorations.precision, right, vecType);
 9323|       |
 9324|       |        // do each vector op
 9325|      8|        for (unsigned int c = 0; c < numCols; ++c) {
  ------------------
  |  Branch (9325:34): [True: 6, False: 2]
  ------------------
 9326|      6|            std::vector<unsigned int> indexes;
 9327|      6|            indexes.push_back(c);
 9328|      6|            spv::Id  leftVec =  leftMat ? builder.createCompositeExtract( left, vecType, indexes) : smearVec;
  ------------------
  |  Branch (9328:33): [True: 6, False: 0]
  ------------------
 9329|      6|            spv::Id rightVec = rightMat ? builder.createCompositeExtract(right, vecType, indexes) : smearVec;
  ------------------
  |  Branch (9329:32): [True: 6, False: 0]
  ------------------
 9330|      6|            spv::Id result = builder.createBinOp(op, vecType, leftVec, rightVec);
 9331|      6|            decorations.addNoContraction(builder, result);
 9332|      6|            decorations.addNonUniform(builder, result);
 9333|      6|            results.push_back(builder.setPrecision(result, decorations.precision));
 9334|      6|        }
 9335|       |
 9336|       |        // put the pieces together
 9337|      2|        spv::Id result = builder.setPrecision(builder.createCompositeConstruct(typeId, results), decorations.precision);
 9338|      2|        decorations.addNonUniform(builder, result);
 9339|      2|        return result;
 9340|      2|    }
 9341|      0|    default:
  ------------------
  |  Branch (9341:5): [True: 0, False: 2]
  ------------------
 9342|       |        assert(0);
 9343|      0|        return spv::NoResult;
 9344|      2|    }
 9345|      2|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_112_GLOBAL__N_113OpDecorations16addNoContractionERN3spv7BuilderEj:
  110|  2.06k|        void addNoContraction(spv::Builder& builder, spv::Id t) { builder.addDecoration(t, noContraction); }
GlslangToSpv.cpp:_ZN12_GLOBAL__N_112_GLOBAL__N_113OpDecorations13addNonUniformERN3spv7BuilderEj:
  111|  3.03k|        void addNonUniform(spv::Builder& builder, spv::Id t)  { builder.addDecoration(t, nonUniform); }
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser14multiTypeStoreERKN7glslang5TTypeEj:
 7589|  2.77k|{
 7590|       |    // we only do the complex path here if it's an aggregate
 7591|  2.77k|    if (! type.isStruct() && ! type.isArray()) {
  ------------------
  |  Branch (7591:9): [True: 2.77k, False: 5]
  |  Branch (7591:30): [True: 2.77k, False: 0]
  ------------------
 7592|  2.77k|        accessChainStore(type, rValue);
 7593|  2.77k|        return;
 7594|  2.77k|    }
 7595|       |
 7596|       |    // and, it has to be a case of type aliasing
 7597|      5|    spv::Id rType = builder.getTypeId(rValue);
 7598|      5|    spv::Id lValue = builder.accessChainGetLValue();
 7599|      5|    spv::Id lType = builder.getContainedTypeId(builder.getTypeId(lValue));
 7600|      5|    if (lType == rType) {
  ------------------
  |  Branch (7600:9): [True: 5, False: 0]
  ------------------
 7601|      5|        accessChainStore(type, rValue);
 7602|      5|        return;
 7603|      5|    }
 7604|       |
 7605|       |    // Recursively (as needed) copy an aggregate type to a different aggregate type,
 7606|       |    // where the two types were the same type in GLSL. This requires member
 7607|       |    // by member copy, recursively.
 7608|       |
 7609|       |    // SPIR-V 1.4 added an instruction to do help do this.
 7610|      0|    if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_4) {
  ------------------
  |  Branch (7610:9): [True: 0, False: 0]
  ------------------
 7611|       |        // However, bool in uniform space is changed to int, so
 7612|       |        // OpCopyLogical does not work for that.
 7613|       |        // TODO: It would be more robust to do a full recursive verification of the types satisfying SPIR-V rules.
 7614|      0|        bool rBool = builder.containsType(builder.getTypeId(rValue), spv::Op::OpTypeBool, 0);
 7615|      0|        bool lBool = builder.containsType(lType, spv::Op::OpTypeBool, 0);
 7616|      0|        if (lBool == rBool) {
  ------------------
  |  Branch (7616:13): [True: 0, False: 0]
  ------------------
 7617|      0|            spv::Id logicalCopy = builder.createUnaryOp(spv::Op::OpCopyLogical, lType, rValue);
 7618|      0|            accessChainStore(type, logicalCopy);
 7619|      0|            return;
 7620|      0|        }
 7621|      0|    }
 7622|       |
 7623|       |    // If an array, copy element by element.
 7624|      0|    if (type.isArray()) {
  ------------------
  |  Branch (7624:9): [True: 0, False: 0]
  ------------------
 7625|      0|        glslang::TType glslangElementType(type, 0);
 7626|      0|        spv::Id elementRType = builder.getContainedTypeId(rType);
 7627|      0|        for (int index = 0; index < type.getOuterArraySize(); ++index) {
  ------------------
  |  Branch (7627:29): [True: 0, False: 0]
  ------------------
 7628|       |            // get the source member
 7629|      0|            spv::Id elementRValue = builder.createCompositeExtract(rValue, elementRType, index);
 7630|       |
 7631|       |            // set up the target storage
 7632|      0|            builder.clearAccessChain();
 7633|      0|            builder.setAccessChainLValue(lValue);
 7634|      0|            builder.accessChainPush(builder.makeIntConstant(index), TranslateCoherent(type),
 7635|      0|                type.getBufferReferenceAlignment());
 7636|       |
 7637|       |            // store the member
 7638|      0|            multiTypeStore(glslangElementType, elementRValue);
 7639|      0|        }
 7640|      0|    } else {
 7641|      0|        assert(type.isStruct());
 7642|       |
 7643|       |        // loop over structure members
 7644|      0|        const glslang::TTypeList& members = *type.getStruct();
 7645|      0|        for (int m = 0; m < (int)members.size(); ++m) {
  ------------------
  |  Branch (7645:25): [True: 0, False: 0]
  ------------------
 7646|      0|            const glslang::TType& glslangMemberType = *members[m].type;
 7647|       |
 7648|       |            // get the source member
 7649|      0|            spv::Id memberRType = builder.getContainedTypeId(rType, m);
 7650|      0|            spv::Id memberRValue = builder.createCompositeExtract(rValue, memberRType, m);
 7651|       |
 7652|       |            // set up the target storage
 7653|      0|            builder.clearAccessChain();
 7654|      0|            builder.setAccessChainLValue(lValue);
 7655|      0|            builder.accessChainPush(builder.makeIntConstant(m), TranslateCoherent(type),
 7656|      0|                type.getBufferReferenceAlignment());
 7657|       |
 7658|       |            // store the member
 7659|      0|            multiTypeStore(glslangMemberType, memberRValue);
 7660|      0|        }
 7661|      0|    }
 7662|      0|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser16accessChainStoreERKN7glslang5TTypeEj:
 7535|  2.82k|{
 7536|       |    // Need to convert to abstract types when necessary
 7537|  2.82k|    if (type.getBasicType() == glslang::EbtBool) {
  ------------------
  |  Branch (7537:9): [True: 228, False: 2.60k]
  ------------------
 7538|    228|        spv::Id nominalTypeId = builder.accessChainGetInferredType();
 7539|       |
 7540|    228|        if (builder.isScalarType(nominalTypeId)) {
  ------------------
  |  Branch (7540:13): [True: 72, False: 156]
  ------------------
 7541|       |            // Conversion for bool
 7542|     72|            spv::Id boolType = builder.makeBoolType();
 7543|     72|            if (nominalTypeId != boolType) {
  ------------------
  |  Branch (7543:17): [True: 0, False: 72]
  ------------------
 7544|       |                // keep these outside arguments, for determinant order-of-evaluation
 7545|      0|                spv::Id one = builder.makeUintConstant(1);
 7546|      0|                spv::Id zero = builder.makeUintConstant(0);
 7547|      0|                rvalue = builder.createTriOp(spv::Op::OpSelect, nominalTypeId, rvalue, one, zero);
 7548|     72|            } else if (builder.getTypeId(rvalue) != boolType)
  ------------------
  |  Branch (7548:24): [True: 0, False: 72]
  ------------------
 7549|      0|                rvalue = builder.createBinOp(spv::Op::OpINotEqual, boolType, rvalue, builder.makeUintConstant(0));
 7550|    156|        } else if (builder.isVectorType(nominalTypeId)) {
  ------------------
  |  Branch (7550:20): [True: 156, False: 0]
  ------------------
 7551|       |            // Conversion for bvec
 7552|    156|            int vecSize = builder.getNumTypeComponents(nominalTypeId);
 7553|    156|            spv::Id bvecType = builder.makeVectorType(builder.makeBoolType(), vecSize);
 7554|    156|            if (nominalTypeId != bvecType) {
  ------------------
  |  Branch (7554:17): [True: 0, False: 156]
  ------------------
 7555|       |                // keep these outside arguments, for determinant order-of-evaluation
 7556|      0|                spv::Id one = makeSmearedConstant(builder.makeUintConstant(1), vecSize);
 7557|      0|                spv::Id zero = makeSmearedConstant(builder.makeUintConstant(0), vecSize);
 7558|      0|                rvalue = builder.createTriOp(spv::Op::OpSelect, nominalTypeId, rvalue, one, zero);
 7559|    156|            } else if (builder.getTypeId(rvalue) != bvecType)
  ------------------
  |  Branch (7559:24): [True: 0, False: 156]
  ------------------
 7560|      0|                rvalue = builder.createBinOp(spv::Op::OpINotEqual, bvecType, rvalue,
 7561|      0|                                             makeSmearedConstant(builder.makeUintConstant(0), vecSize));
 7562|    156|        }
 7563|    228|    }
 7564|       |
 7565|  2.82k|    spv::Builder::AccessChain::CoherentFlags coherentFlags = builder.getAccessChain().coherentFlags;
 7566|  2.82k|    coherentFlags |= TranslateCoherent(type);
 7567|       |
 7568|  2.82k|    unsigned int alignment = builder.getAccessChain().alignment;
 7569|  2.82k|    alignment |= type.getBufferReferenceAlignment();
 7570|       |
 7571|  2.82k|    builder.accessChainStore(rvalue, TranslateNonUniformDecoration(builder.getAccessChain().coherentFlags),
 7572|  2.82k|                             spv::MemoryAccessMask(TranslateMemoryAccess(coherentFlags) &
 7573|  2.82k|                                ~spv::MemoryAccessMask::MakePointerVisibleKHR),
 7574|  2.82k|                             TranslateMemoryScope(coherentFlags), alignment);
 7575|  2.82k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser24declareUseOfStructMemberERKN7glslang7TVectorINS1_8TTypeLocEEEi:
 7812|    868|{
 7813|    868|    const glslang::TBuiltInVariable glslangBuiltIn = members[glslangMember].type->getQualifier().builtIn;
 7814|    868|    switch (glslangBuiltIn)
 7815|    868|    {
 7816|      0|    case glslang::EbvPointSize:
  ------------------
  |  Branch (7816:5): [True: 0, False: 868]
  ------------------
 7817|      0|    case glslang::EbvClipDistance:
  ------------------
  |  Branch (7817:5): [True: 0, False: 868]
  ------------------
 7818|      0|    case glslang::EbvCullDistance:
  ------------------
  |  Branch (7818:5): [True: 0, False: 868]
  ------------------
 7819|      0|    case glslang::EbvViewportMaskNV:
  ------------------
  |  Branch (7819:5): [True: 0, False: 868]
  ------------------
 7820|      0|    case glslang::EbvSecondaryPositionNV:
  ------------------
  |  Branch (7820:5): [True: 0, False: 868]
  ------------------
 7821|      0|    case glslang::EbvSecondaryViewportMaskNV:
  ------------------
  |  Branch (7821:5): [True: 0, False: 868]
  ------------------
 7822|      0|    case glslang::EbvPositionPerViewNV:
  ------------------
  |  Branch (7822:5): [True: 0, False: 868]
  ------------------
 7823|      0|    case glslang::EbvViewportMaskPerViewNV:
  ------------------
  |  Branch (7823:5): [True: 0, False: 868]
  ------------------
 7824|      0|    case glslang::EbvTaskCountNV:
  ------------------
  |  Branch (7824:5): [True: 0, False: 868]
  ------------------
 7825|      0|    case glslang::EbvPrimitiveCountNV:
  ------------------
  |  Branch (7825:5): [True: 0, False: 868]
  ------------------
 7826|      0|    case glslang::EbvPrimitiveIndicesNV:
  ------------------
  |  Branch (7826:5): [True: 0, False: 868]
  ------------------
 7827|      0|    case glslang::EbvClipDistancePerViewNV:
  ------------------
  |  Branch (7827:5): [True: 0, False: 868]
  ------------------
 7828|      0|    case glslang::EbvCullDistancePerViewNV:
  ------------------
  |  Branch (7828:5): [True: 0, False: 868]
  ------------------
 7829|      0|    case glslang::EbvLayerPerViewNV:
  ------------------
  |  Branch (7829:5): [True: 0, False: 868]
  ------------------
 7830|      0|    case glslang::EbvMeshViewCountNV:
  ------------------
  |  Branch (7830:5): [True: 0, False: 868]
  ------------------
 7831|      0|    case glslang::EbvMeshViewIndicesNV:
  ------------------
  |  Branch (7831:5): [True: 0, False: 868]
  ------------------
 7832|       |        // Generate the associated capability.  Delegate to TranslateBuiltInDecoration.
 7833|       |        // Alternately, we could just call this for any glslang built-in, since the
 7834|       |        // capability already guards against duplicates.
 7835|      0|        TranslateBuiltInDecoration(glslangBuiltIn, false);
 7836|      0|        break;
 7837|    868|    default:
  ------------------
  |  Branch (7837:5): [True: 868, False: 0]
  ------------------
 7838|       |        // Capabilities were already generated when the struct was declared.
 7839|    868|        break;
 7840|    868|    }
 7841|    868|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser31addIndirectionIndexCapabilitiesERKN7glslang5TTypeES4_:
 1642|     34|{
 1643|     34|    if (indexType.getQualifier().isNonUniform()) {
  ------------------
  |  Branch (1643:9): [True: 0, False: 34]
  ------------------
 1644|       |
 1645|       |        // deal with an asserted non-uniform index
 1646|       |        // SPV_EXT_descriptor_indexing already added in TranslateNonUniformDecoration
 1647|      0|        if (baseType.getBasicType() == glslang::EbtSampler) {
  ------------------
  |  Branch (1647:13): [True: 0, False: 0]
  ------------------
 1648|      0|            if (baseType.getQualifier().hasAttachment())
  ------------------
  |  Branch (1648:17): [True: 0, False: 0]
  ------------------
 1649|      0|                builder.addCapability(spv::Capability::InputAttachmentArrayNonUniformIndexingEXT);
 1650|      0|            else if (baseType.isImage() && baseType.getSampler().isBuffer())
  ------------------
  |  Branch (1650:22): [True: 0, False: 0]
  |  Branch (1650:44): [True: 0, False: 0]
  ------------------
 1651|      0|                builder.addCapability(spv::Capability::StorageTexelBufferArrayNonUniformIndexingEXT);
 1652|      0|            else if (baseType.isTexture() && baseType.getSampler().isBuffer())
  ------------------
  |  Branch (1652:22): [True: 0, False: 0]
  |  Branch (1652:46): [True: 0, False: 0]
  ------------------
 1653|      0|                builder.addCapability(spv::Capability::UniformTexelBufferArrayNonUniformIndexingEXT);
 1654|      0|            else if (baseType.isImage())
  ------------------
  |  Branch (1654:22): [True: 0, False: 0]
  ------------------
 1655|      0|                builder.addCapability(spv::Capability::StorageImageArrayNonUniformIndexingEXT);
 1656|      0|            else if (baseType.isTexture())
  ------------------
  |  Branch (1656:22): [True: 0, False: 0]
  ------------------
 1657|      0|                builder.addCapability(spv::Capability::SampledImageArrayNonUniformIndexingEXT);
 1658|      0|        } else if (baseType.getBasicType() == glslang::EbtBlock) {
  ------------------
  |  Branch (1658:20): [True: 0, False: 0]
  ------------------
 1659|      0|            if (baseType.getQualifier().storage == glslang::EvqBuffer)
  ------------------
  |  Branch (1659:17): [True: 0, False: 0]
  ------------------
 1660|      0|                builder.addCapability(spv::Capability::StorageBufferArrayNonUniformIndexingEXT);
 1661|      0|            else if (baseType.getQualifier().storage == glslang::EvqUniform)
  ------------------
  |  Branch (1661:22): [True: 0, False: 0]
  ------------------
 1662|      0|                builder.addCapability(spv::Capability::UniformBufferArrayNonUniformIndexingEXT);
 1663|      0|        }
 1664|     34|    } else {
 1665|       |        // assume a dynamically uniform index
 1666|     34|        if (baseType.getBasicType() == glslang::EbtSampler) {
  ------------------
  |  Branch (1666:13): [True: 0, False: 34]
  ------------------
 1667|      0|            if (baseType.getQualifier().hasAttachment()) {
  ------------------
  |  Branch (1667:17): [True: 0, False: 0]
  ------------------
 1668|      0|                builder.addIncorporatedExtension("SPV_EXT_descriptor_indexing", spv::Spv_1_5);
 1669|      0|                builder.addCapability(spv::Capability::InputAttachmentArrayDynamicIndexingEXT);
 1670|      0|            } else if (baseType.isImage() && baseType.getSampler().isBuffer()) {
  ------------------
  |  Branch (1670:24): [True: 0, False: 0]
  |  Branch (1670:46): [True: 0, False: 0]
  ------------------
 1671|      0|                builder.addIncorporatedExtension("SPV_EXT_descriptor_indexing", spv::Spv_1_5);
 1672|      0|                builder.addCapability(spv::Capability::StorageTexelBufferArrayDynamicIndexingEXT);
 1673|      0|            } else if (baseType.isTexture() && baseType.getSampler().isBuffer()) {
  ------------------
  |  Branch (1673:24): [True: 0, False: 0]
  |  Branch (1673:48): [True: 0, False: 0]
  ------------------
 1674|      0|                builder.addIncorporatedExtension("SPV_EXT_descriptor_indexing", spv::Spv_1_5);
 1675|      0|                builder.addCapability(spv::Capability::UniformTexelBufferArrayDynamicIndexingEXT);
 1676|      0|            }
 1677|      0|        }
 1678|     34|    }
 1679|     34|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser14convertSwizzleERKN7glslang16TIntermAggregateERNSt3__16vectorIjNS5_9allocatorIjEEEE:
 5892|    413|{
 5893|    413|    const glslang::TIntermSequence& swizzleSequence = node.getSequence();
 5894|  1.42k|    for (int i = 0; i < (int)swizzleSequence.size(); ++i)
  ------------------
  |  Branch (5894:21): [True: 1.00k, False: 413]
  ------------------
 5895|  1.00k|        swizzle.push_back(swizzleSequence[i]->getAsConstantUnion()->getConstArray()[0].getIConst());
 5896|    413|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser9isTrivialEPKN7glslang12TIntermTypedE:
13041|      4|{
13042|      4|    if (node == nullptr)
  ------------------
  |  Branch (13042:9): [True: 0, False: 4]
  ------------------
13043|      0|        return false;
13044|       |
13045|       |    // count non scalars as trivial, as well as anything coming from HLSL
13046|      4|    if (! node->getType().isScalarOrVec1() || glslangIntermediate->getSource() == glslang::EShSourceHlsl)
  ------------------
  |  Branch (13046:9): [True: 0, False: 4]
  |  Branch (13046:47): [True: 0, False: 4]
  ------------------
13047|      0|        return true;
13048|       |
13049|       |    // symbols and constants are trivial
13050|      4|    if (isTrivialLeaf(node))
  ------------------
  |  Branch (13050:9): [True: 0, False: 4]
  ------------------
13051|      0|        return true;
13052|       |
13053|       |    // otherwise, it needs to be a simple operation or one or two leaf nodes
13054|       |
13055|       |    // not a simple operation
13056|      4|    const glslang::TIntermBinary* binaryNode = node->getAsBinaryNode();
13057|      4|    const glslang::TIntermUnary* unaryNode = node->getAsUnaryNode();
13058|      4|    if (binaryNode == nullptr && unaryNode == nullptr)
  ------------------
  |  Branch (13058:9): [True: 0, False: 4]
  |  Branch (13058:34): [True: 0, False: 0]
  ------------------
13059|      0|        return false;
13060|       |
13061|       |    // not on leaf nodes
13062|      4|    if (binaryNode && (! isTrivialLeaf(binaryNode->getLeft()) || ! isTrivialLeaf(binaryNode->getRight())))
  ------------------
  |  Branch (13062:9): [True: 4, False: 0]
  |  Branch (13062:24): [True: 2, False: 2]
  |  Branch (13062:66): [True: 2, False: 0]
  ------------------
13063|      4|        return false;
13064|       |
13065|      0|    if (unaryNode && ! isTrivialLeaf(unaryNode->getOperand())) {
  ------------------
  |  Branch (13065:9): [True: 0, False: 0]
  |  Branch (13065:22): [True: 0, False: 0]
  ------------------
13066|      0|        return false;
13067|      0|    }
13068|       |
13069|      0|    if (IsOpNumericConv(node->getAsOperator()->getOp()) &&
  ------------------
  |  Branch (13069:9): [True: 0, False: 0]
  ------------------
13070|      0|        node->getType().getBasicType() == glslang::EbtBool) {
  ------------------
  |  Branch (13070:9): [True: 0, False: 0]
  ------------------
13071|      0|        return true;
13072|      0|    }
13073|       |
13074|      0|    switch (node->getAsOperator()->getOp()) {
13075|      0|    case glslang::EOpLogicalNot:
  ------------------
  |  Branch (13075:5): [True: 0, False: 0]
  ------------------
13076|      0|    case glslang::EOpEqual:
  ------------------
  |  Branch (13076:5): [True: 0, False: 0]
  ------------------
13077|      0|    case glslang::EOpNotEqual:
  ------------------
  |  Branch (13077:5): [True: 0, False: 0]
  ------------------
13078|      0|    case glslang::EOpLessThan:
  ------------------
  |  Branch (13078:5): [True: 0, False: 0]
  ------------------
13079|      0|    case glslang::EOpGreaterThan:
  ------------------
  |  Branch (13079:5): [True: 0, False: 0]
  ------------------
13080|      0|    case glslang::EOpLessThanEqual:
  ------------------
  |  Branch (13080:5): [True: 0, False: 0]
  ------------------
13081|      0|    case glslang::EOpGreaterThanEqual:
  ------------------
  |  Branch (13081:5): [True: 0, False: 0]
  ------------------
13082|      0|    case glslang::EOpIndexDirect:
  ------------------
  |  Branch (13082:5): [True: 0, False: 0]
  ------------------
13083|      0|    case glslang::EOpIndexDirectStruct:
  ------------------
  |  Branch (13083:5): [True: 0, False: 0]
  ------------------
13084|      0|    case glslang::EOpLogicalXor:
  ------------------
  |  Branch (13084:5): [True: 0, False: 0]
  ------------------
13085|      0|    case glslang::EOpAny:
  ------------------
  |  Branch (13085:5): [True: 0, False: 0]
  ------------------
13086|      0|    case glslang::EOpAll:
  ------------------
  |  Branch (13086:5): [True: 0, False: 0]
  ------------------
13087|      0|        return true;
13088|      0|    default:
  ------------------
  |  Branch (13088:5): [True: 0, False: 0]
  ------------------
13089|      0|        return false;
13090|      0|    }
13091|      0|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser13isTrivialLeafEPKN7glslang12TIntermTypedE:
13008|     10|{
13009|       |    // don't know what this is
13010|     10|    if (node == nullptr)
  ------------------
  |  Branch (13010:9): [True: 0, False: 10]
  ------------------
13011|      0|        return false;
13012|       |
13013|       |    // a constant is safe
13014|     10|    if (node->getAsConstantUnion() != nullptr)
  ------------------
  |  Branch (13014:9): [True: 0, False: 10]
  ------------------
13015|      0|        return true;
13016|       |
13017|       |    // not a symbol means non-trivial
13018|     10|    if (node->getAsSymbolNode() == nullptr)
  ------------------
  |  Branch (13018:9): [True: 8, False: 2]
  ------------------
13019|      8|        return false;
13020|       |
13021|       |    // a symbol, depends on what's being read
13022|      2|    switch (node->getType().getQualifier().storage) {
13023|      2|    case glslang::EvqTemporary:
  ------------------
  |  Branch (13023:5): [True: 2, False: 0]
  ------------------
13024|      2|    case glslang::EvqGlobal:
  ------------------
  |  Branch (13024:5): [True: 0, False: 2]
  ------------------
13025|      2|    case glslang::EvqIn:
  ------------------
  |  Branch (13025:5): [True: 0, False: 2]
  ------------------
13026|      2|    case glslang::EvqInOut:
  ------------------
  |  Branch (13026:5): [True: 0, False: 2]
  ------------------
13027|      2|    case glslang::EvqConst:
  ------------------
  |  Branch (13027:5): [True: 0, False: 2]
  ------------------
13028|      2|    case glslang::EvqConstReadOnly:
  ------------------
  |  Branch (13028:5): [True: 0, False: 2]
  ------------------
13029|      2|    case glslang::EvqUniform:
  ------------------
  |  Branch (13029:5): [True: 0, False: 2]
  ------------------
13030|      2|        return true;
13031|      0|    default:
  ------------------
  |  Branch (13031:5): [True: 0, False: 2]
  ------------------
13032|      0|        return false;
13033|      2|    }
13034|      2|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser18createShortCircuitEN7glslang9TOperatorERNS1_12TIntermTypedES4_:
13097|      4|{
13098|      4|    spv::Id boolTypeId = builder.makeBoolType();
13099|       |
13100|       |    // emit left operand
13101|      4|    builder.clearAccessChain();
13102|      4|    left.traverse(this);
13103|      4|    spv::Id leftId = accessChainLoad(left.getType());
13104|       |
13105|       |    // Operands to accumulate OpPhi operands
13106|      4|    std::vector<spv::Id> phiOperands;
13107|      4|    phiOperands.reserve(4);
13108|       |    // accumulate left operand's phi information
13109|      4|    phiOperands.push_back(leftId);
13110|      4|    phiOperands.push_back(builder.getBuildPoint()->getId());
13111|       |
13112|       |    // Make the two kinds of operation symmetric with a "!"
13113|       |    //   || => emit "if (! left) result = right"
13114|       |    //   && => emit "if (  left) result = right"
13115|       |    //
13116|       |    // TODO: this runtime "not" for || could be avoided by adding functionality
13117|       |    // to 'builder' to have an "else" without an "then"
13118|      4|    if (op == glslang::EOpLogicalOr)
  ------------------
  |  Branch (13118:9): [True: 0, False: 4]
  ------------------
13119|      0|        leftId = builder.createUnaryOp(spv::Op::OpLogicalNot, boolTypeId, leftId);
13120|       |
13121|       |    // make an "if" based on the left value
13122|      4|    spv::Builder::If ifBuilder(leftId, spv::SelectionControlMask::MaskNone, builder);
13123|       |
13124|       |    // emit right operand as the "then" part of the "if"
13125|      4|    builder.clearAccessChain();
13126|      4|    right.traverse(this);
13127|      4|    spv::Id rightId = accessChainLoad(right.getType());
13128|       |
13129|       |    // accumulate left operand's phi information
13130|      4|    phiOperands.push_back(rightId);
13131|      4|    phiOperands.push_back(builder.getBuildPoint()->getId());
13132|       |
13133|       |    // finish the "if"
13134|      4|    ifBuilder.makeEndIf();
13135|       |
13136|       |    // phi together the two results
13137|      4|    return builder.createOp(spv::Op::OpPhi, boolTypeId, phiOperands);
13138|      4|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser10visitUnaryEN7glslang6TVisitEPNS1_12TIntermUnaryE:
 3017|  1.58k|{
 3018|  1.58k|    builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 3019|       |
 3020|  1.58k|    SpecConstantOpModeGuard spec_constant_op_mode_setter(&builder);
 3021|  1.58k|    if (node->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (3021:9): [True: 273, False: 1.30k]
  ------------------
 3022|    273|        spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
 3023|       |
 3024|  1.58k|    spv::Id result = spv::NoResult;
 3025|       |
 3026|       |    // try texturing first
 3027|  1.58k|    result = createImageTextureFunctionCall(node);
 3028|  1.58k|    if (result != spv::NoResult) {
  ------------------
  |  Branch (3028:9): [True: 38, False: 1.54k]
  ------------------
 3029|     38|        builder.clearAccessChain();
 3030|     38|        builder.setAccessChainRValue(result);
 3031|       |
 3032|     38|        return false; // done with this node
 3033|     38|    }
 3034|       |
 3035|       |    // Non-texturing.
 3036|       |
 3037|  1.54k|    if (node->getOp() == glslang::EOpArrayLength) {
  ------------------
  |  Branch (3037:9): [True: 0, False: 1.54k]
  ------------------
 3038|       |        // Quite special; won't want to evaluate the operand.
 3039|       |
 3040|       |        // Currently, the front-end does not allow .length() on an array until it is sized,
 3041|       |        // except for the last block membeor of an SSBO.
 3042|       |        // TODO: If this changes, link-time sized arrays might show up here, and need their
 3043|       |        // size extracted.
 3044|       |
 3045|       |        // Normal .length() would have been constant folded by the front-end.
 3046|       |        // So, this has to be block.lastMember.length().
 3047|       |        // SPV wants "block" and member number as the operands, go get them.
 3048|       |
 3049|      0|        uint32_t bits = node->getType().contains64BitInt() ? 64 : 32;
  ------------------
  |  Branch (3049:25): [True: 0, False: 0]
  ------------------
 3050|       |
 3051|      0|        spv::Id length;
 3052|      0|        if (node->getOperand()->getType().isCoopMat()) {
  ------------------
  |  Branch (3052:13): [True: 0, False: 0]
  ------------------
 3053|      0|            spv::Id typeId = convertGlslangToSpvType(node->getOperand()->getType());
 3054|      0|            assert(builder.isCooperativeMatrixType(typeId));
 3055|       |
 3056|      0|            if (node->getOperand()->getType().isCoopMatKHR()) {
  ------------------
  |  Branch (3056:17): [True: 0, False: 0]
  ------------------
 3057|      0|                length = builder.createCooperativeMatrixLengthKHR(typeId);
 3058|      0|            } else {
 3059|      0|                spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
 3060|      0|                length = builder.createCooperativeMatrixLengthNV(typeId);
 3061|      0|            }
 3062|      0|        } else if (node->getOperand()->getType().isCoopVecOrLongVector() &&
  ------------------
  |  Branch (3062:20): [True: 0, False: 0]
  ------------------
 3063|      0|                   !node->getOperand()->getType().isArray()) {
  ------------------
  |  Branch (3063:20): [True: 0, False: 0]
  ------------------
 3064|       |            // Long/cooperative vectors support v.length() as a compile-time
 3065|       |            // component count. For arrays of such vectors, .length() must use
 3066|       |            // OpArrayLength and not the vector-component path.
 3067|      0|            spv::Id typeId = convertGlslangToSpvType(node->getOperand()->getType());
 3068|      0|            if (builder.isCooperativeVectorType(typeId)) {
  ------------------
  |  Branch (3068:17): [True: 0, False: 0]
  ------------------
 3069|      0|                length = builder.getCooperativeVectorNumComponents(typeId);
 3070|      0|            } else {
 3071|      0|                length = builder.makeIntConstant(builder.getNumTypeConstituents(typeId));
 3072|      0|            }
 3073|      0|        } else {
 3074|      0|            glslang::TIntermTyped* block = node->getOperand()->getAsBinaryNode()->getLeft();
 3075|      0|            block->traverse(this);
 3076|      0|            unsigned int member = node->getOperand()->getAsBinaryNode()->getRight()->getAsConstantUnion()
 3077|      0|                ->getConstArray()[0].getUConst();
 3078|      0|            length = builder.createArrayLength(builder.accessChainGetLValue(), member, bits);
 3079|      0|        }
 3080|       |
 3081|       |        // GLSL semantics say the result of .length() is an int, while SPIR-V says
 3082|       |        // signedness must be 0. So, convert from SPIR-V unsigned back to GLSL's
 3083|       |        // AST expectation of a signed result.
 3084|      0|        if (glslangIntermediate->getSource() == glslang::EShSourceGlsl) {
  ------------------
  |  Branch (3084:13): [True: 0, False: 0]
  ------------------
 3085|      0|            if (builder.isInSpecConstCodeGenMode()) {
  ------------------
  |  Branch (3085:17): [True: 0, False: 0]
  ------------------
 3086|      0|                length = builder.createBinOp(spv::Op::OpIAdd, builder.makeIntType(bits), length, builder.makeIntConstant(0));
 3087|      0|            } else {
 3088|      0|                length = builder.createUnaryOp(spv::Op::OpBitcast, builder.makeIntType(bits), length);
 3089|      0|            }
 3090|      0|        }
 3091|       |
 3092|      0|        builder.clearAccessChain();
 3093|      0|        builder.setAccessChainRValue(length);
 3094|       |
 3095|      0|        return false;
 3096|      0|    }
 3097|       |
 3098|       |    // Force variable declaration - Debug Mode Only
 3099|  1.54k|    if (node->getOp() == glslang::EOpDeclare) {
  ------------------
  |  Branch (3099:9): [True: 0, False: 1.54k]
  ------------------
 3100|      0|        builder.clearAccessChain();
 3101|      0|        node->getOperand()->traverse(this);
 3102|      0|        builder.clearAccessChain();
 3103|      0|        return false;
 3104|      0|    }
 3105|       |
 3106|       |    // Start by evaluating the operand
 3107|       |
 3108|       |    // Does it need a swizzle inversion?  If so, evaluation is inverted;
 3109|       |    // operate first on the swizzle base, then apply the swizzle.
 3110|  1.54k|    spv::Id invertedType = spv::NoType;
 3111|  1.54k|    auto resultType = [&invertedType, &node, this](){ return invertedType != spv::NoType ?
 3112|  1.54k|        invertedType : convertGlslangToSpvType(node->getType()); };
 3113|  1.54k|    if (node->getOp() == glslang::EOpInterpolateAtCentroid)
  ------------------
  |  Branch (3113:9): [True: 0, False: 1.54k]
  ------------------
 3114|      0|        invertedType = getInvertedSwizzleType(*node->getOperand());
 3115|       |
 3116|  1.54k|    builder.clearAccessChain();
 3117|  1.54k|    TIntermNode *operandNode;
 3118|  1.54k|    if (invertedType != spv::NoType)
  ------------------
  |  Branch (3118:9): [True: 0, False: 1.54k]
  ------------------
 3119|      0|        operandNode = node->getOperand()->getAsBinaryNode()->getLeft();
 3120|  1.54k|    else
 3121|  1.54k|        operandNode = node->getOperand();
 3122|       |
 3123|  1.54k|    operandNode->traverse(this);
 3124|       |
 3125|  1.54k|    spv::Id operand = spv::NoResult;
 3126|       |
 3127|  1.54k|    spv::Builder::AccessChain::CoherentFlags lvalueCoherentFlags;
 3128|       |
 3129|  1.54k|    const auto hitObjectOpsWithLvalue = [](glslang::TOperator op) {
 3130|  1.54k|        switch(op) {
 3131|  1.54k|            case glslang::EOpReorderThreadNV:
 3132|  1.54k|            case glslang::EOpHitObjectGetCurrentTimeNV:
 3133|  1.54k|            case glslang::EOpHitObjectGetHitKindNV:
 3134|  1.54k|            case glslang::EOpHitObjectGetPrimitiveIndexNV:
 3135|  1.54k|            case glslang::EOpHitObjectGetGeometryIndexNV:
 3136|  1.54k|            case glslang::EOpHitObjectGetInstanceIdNV:
 3137|  1.54k|            case glslang::EOpHitObjectGetInstanceCustomIndexNV:
 3138|  1.54k|            case glslang::EOpHitObjectGetObjectRayDirectionNV:
 3139|  1.54k|            case glslang::EOpHitObjectGetObjectRayOriginNV:
 3140|  1.54k|            case glslang::EOpHitObjectGetWorldRayDirectionNV:
 3141|  1.54k|            case glslang::EOpHitObjectGetWorldRayOriginNV:
 3142|  1.54k|            case glslang::EOpHitObjectGetWorldToObjectNV:
 3143|  1.54k|            case glslang::EOpHitObjectGetObjectToWorldNV:
 3144|  1.54k|            case glslang::EOpHitObjectGetRayTMaxNV:
 3145|  1.54k|            case glslang::EOpHitObjectGetRayTMinNV:
 3146|  1.54k|            case glslang::EOpHitObjectIsEmptyNV:
 3147|  1.54k|            case glslang::EOpHitObjectIsHitNV:
 3148|  1.54k|            case glslang::EOpHitObjectIsMissNV:
 3149|  1.54k|            case glslang::EOpHitObjectRecordEmptyNV:
 3150|  1.54k|            case glslang::EOpHitObjectGetShaderBindingTableRecordIndexNV:
 3151|  1.54k|            case glslang::EOpHitObjectGetShaderRecordBufferHandleNV:
 3152|  1.54k|            case glslang::EOpHitObjectGetClusterIdNV:
 3153|  1.54k|            case glslang::EOpHitObjectGetSpherePositionNV:
 3154|  1.54k|            case glslang::EOpHitObjectGetSphereRadiusNV:
 3155|  1.54k|            case glslang::EOpHitObjectIsSphereHitNV:
 3156|  1.54k|            case glslang::EOpHitObjectIsLSSHitNV:
 3157|  1.54k|            case glslang::EOpReorderThreadEXT:
 3158|  1.54k|            case glslang::EOpHitObjectGetCurrentTimeEXT:
 3159|  1.54k|            case glslang::EOpHitObjectGetHitKindEXT:
 3160|  1.54k|            case glslang::EOpHitObjectGetPrimitiveIndexEXT:
 3161|  1.54k|            case glslang::EOpHitObjectGetGeometryIndexEXT:
 3162|  1.54k|            case glslang::EOpHitObjectGetInstanceIdEXT:
 3163|  1.54k|            case glslang::EOpHitObjectGetInstanceCustomIndexEXT:
 3164|  1.54k|            case glslang::EOpHitObjectGetObjectRayDirectionEXT:
 3165|  1.54k|            case glslang::EOpHitObjectGetObjectRayOriginEXT:
 3166|  1.54k|            case glslang::EOpHitObjectGetWorldRayDirectionEXT:
 3167|  1.54k|            case glslang::EOpHitObjectGetWorldRayOriginEXT:
 3168|  1.54k|            case glslang::EOpHitObjectGetWorldToObjectEXT:
 3169|  1.54k|            case glslang::EOpHitObjectGetObjectToWorldEXT:
 3170|  1.54k|            case glslang::EOpHitObjectGetRayTMaxEXT:
 3171|  1.54k|            case glslang::EOpHitObjectGetRayTMinEXT:
 3172|  1.54k|            case glslang::EOpHitObjectGetRayFlagsEXT:
 3173|  1.54k|            case glslang::EOpHitObjectIsEmptyEXT:
 3174|  1.54k|            case glslang::EOpHitObjectIsHitEXT:
 3175|  1.54k|            case glslang::EOpHitObjectIsMissEXT:
 3176|  1.54k|            case glslang::EOpHitObjectRecordEmptyEXT:
 3177|  1.54k|            case glslang::EOpHitObjectGetShaderBindingTableRecordIndexEXT:
 3178|  1.54k|            case glslang::EOpHitObjectGetShaderRecordBufferHandleEXT:
 3179|  1.54k|                return true;
 3180|  1.54k|            default:
 3181|  1.54k|                return false;
 3182|  1.54k|        }
 3183|  1.54k|    };
 3184|       |
 3185|  1.54k|    if (node->getOp() == glslang::EOpAtomicCounterIncrement ||
  ------------------
  |  Branch (3185:9): [True: 0, False: 1.54k]
  ------------------
 3186|  1.54k|        node->getOp() == glslang::EOpAtomicCounterDecrement ||
  ------------------
  |  Branch (3186:9): [True: 0, False: 1.54k]
  ------------------
 3187|  1.54k|        node->getOp() == glslang::EOpAtomicCounter          ||
  ------------------
  |  Branch (3187:9): [True: 0, False: 1.54k]
  ------------------
 3188|  1.54k|        (node->getOp() == glslang::EOpInterpolateAtCentroid &&
  ------------------
  |  Branch (3188:10): [True: 0, False: 1.54k]
  ------------------
 3189|      0|          glslangIntermediate->getSource() != glslang::EShSourceHlsl)  ||
  ------------------
  |  Branch (3189:11): [True: 0, False: 0]
  ------------------
 3190|  1.54k|        node->getOp() == glslang::EOpRayQueryProceed        ||
  ------------------
  |  Branch (3190:9): [True: 5, False: 1.53k]
  ------------------
 3191|  1.53k|        node->getOp() == glslang::EOpRayQueryGetRayTMin     ||
  ------------------
  |  Branch (3191:9): [True: 5, False: 1.53k]
  ------------------
 3192|  1.53k|        node->getOp() == glslang::EOpRayQueryGetRayFlags    ||
  ------------------
  |  Branch (3192:9): [True: 5, False: 1.52k]
  ------------------
 3193|  1.52k|        node->getOp() == glslang::EOpRayQueryGetWorldRayOrigin ||
  ------------------
  |  Branch (3193:9): [True: 5, False: 1.52k]
  ------------------
 3194|  1.52k|        node->getOp() == glslang::EOpRayQueryGetWorldRayDirection ||
  ------------------
  |  Branch (3194:9): [True: 5, False: 1.51k]
  ------------------
 3195|  1.51k|        node->getOp() == glslang::EOpRayQueryGetIntersectionCandidateAABBOpaque ||
  ------------------
  |  Branch (3195:9): [True: 5, False: 1.51k]
  ------------------
 3196|  1.51k|        node->getOp() == glslang::EOpRayQueryTerminate ||
  ------------------
  |  Branch (3196:9): [True: 10, False: 1.50k]
  ------------------
 3197|  1.50k|        node->getOp() == glslang::EOpRayQueryConfirmIntersection ||
  ------------------
  |  Branch (3197:9): [True: 5, False: 1.49k]
  ------------------
 3198|  1.49k|        (node->getOp() == glslang::EOpSpirvInst && operandNode->getAsTyped()->getQualifier().isSpirvByReference()) ||
  ------------------
  |  Branch (3198:10): [True: 0, False: 1.49k]
  |  Branch (3198:52): [True: 0, False: 0]
  ------------------
 3199|  1.49k|        hitObjectOpsWithLvalue(node->getOp())) {
  ------------------
  |  Branch (3199:9): [True: 0, False: 1.49k]
  ------------------
 3200|     45|        operand = builder.accessChainGetLValue(); // Special case l-value operands
 3201|     45|        lvalueCoherentFlags = builder.getAccessChain().coherentFlags;
 3202|     45|        lvalueCoherentFlags |= TranslateCoherent(operandNode->getAsTyped()->getType());
 3203|  1.49k|    } else if (operandNode->getAsTyped()->getQualifier().isSpirvLiteral()) {
  ------------------
  |  Branch (3203:16): [True: 0, False: 1.49k]
  ------------------
 3204|       |        // Will be translated to a literal value, make a placeholder here
 3205|      0|        operand = spv::NoResult;
 3206|  1.49k|    } else {
 3207|  1.49k|        operand = accessChainLoad(node->getOperand()->getType());
 3208|  1.49k|    }
 3209|       |
 3210|  1.54k|    OpDecorations decorations = { TranslatePrecisionDecoration(node->getOperationPrecision()),
 3211|  1.54k|                                  TranslateNoContractionDecoration(node->getType().getQualifier()),
 3212|  1.54k|                                  TranslateNonUniformDecoration(node->getType().getQualifier()) };
 3213|       |
 3214|       |    // it could be a conversion
 3215|  1.54k|    if (! result) {
  ------------------
  |  Branch (3215:9): [True: 1.54k, False: 0]
  ------------------
 3216|  1.54k|        bool sameUse = !node->getType().isCoopMatKHR() || !node->getOperand()->getAsTyped()->getType().isCoopMatKHR() ||
  ------------------
  |  Branch (3216:24): [True: 1.54k, False: 0]
  |  Branch (3216:59): [True: 0, False: 0]
  ------------------
 3217|      0|                       node->getAsTyped()->getType().sameCoopMatUse(node->getOperand()->getAsTyped()->getType());
  ------------------
  |  Branch (3217:24): [True: 0, False: 0]
  ------------------
 3218|  1.54k|        result = createConversion(node->getOp(), decorations, resultType(), operand,
 3219|  1.54k|            node->getType().getBasicType(), node->getOperand()->getBasicType(), sameUse);
 3220|  1.54k|    }
 3221|       |
 3222|       |    // if not, then possibly an operation
 3223|  1.54k|    if (! result)
  ------------------
  |  Branch (3223:9): [True: 397, False: 1.14k]
  ------------------
 3224|    397|        result = createUnaryOperation(node->getOp(), decorations, resultType(), operand,
 3225|    397|            node->getOperand()->getBasicType(), lvalueCoherentFlags, node->getType());
 3226|       |
 3227|       |    // it could be attached to a SPIR-V intruction
 3228|  1.54k|    if (!result) {
  ------------------
  |  Branch (3228:9): [True: 68, False: 1.47k]
  ------------------
 3229|     68|        if (node->getOp() == glslang::EOpSpirvInst) {
  ------------------
  |  Branch (3229:13): [True: 0, False: 68]
  ------------------
 3230|      0|            const auto& spirvInst = node->getSpirvInstruction();
 3231|      0|            spv::IdImmediate idImmOp = {true, operand};
 3232|      0|            if (operandNode->getAsTyped()->getQualifier().isSpirvLiteral()) {
  ------------------
  |  Branch (3232:17): [True: 0, False: 0]
  ------------------
 3233|       |                // Translate the constant to a literal value
 3234|      0|                std::vector<unsigned> literals;
 3235|      0|                glslang::TVector<const glslang::TIntermConstantUnion*> constants;
 3236|      0|                constants.push_back(operandNode->getAsConstantUnion());
 3237|      0|                TranslateLiterals(constants, literals);
 3238|      0|                idImmOp = {false, literals[0]};
 3239|      0|            }
 3240|       |
 3241|      0|            if (spirvInst.set == "") {
  ------------------
  |  Branch (3241:17): [True: 0, False: 0]
  ------------------
 3242|      0|                if (node->getBasicType() == glslang::EbtVoid)
  ------------------
  |  Branch (3242:21): [True: 0, False: 0]
  ------------------
 3243|      0|                    builder.createNoResultOp(static_cast<spv::Op>(spirvInst.id), {idImmOp});
 3244|      0|                else
 3245|      0|                    result = builder.createOp(static_cast<spv::Op>(spirvInst.id), resultType(), {idImmOp});
 3246|      0|            } else {
 3247|      0|                result = builder.createBuiltinCall(
 3248|      0|                    resultType(), spirvInst.set == "GLSL.std.450" ? stdBuiltins : getExtBuiltins(spirvInst.set.c_str()),
  ------------------
  |  Branch (3248:35): [True: 0, False: 0]
  ------------------
 3249|      0|                    spirvInst.id, {idImmOp});
 3250|      0|            }
 3251|       |
 3252|      0|            if (node->getBasicType() == glslang::EbtVoid)
  ------------------
  |  Branch (3252:17): [True: 0, False: 0]
  ------------------
 3253|      0|                return false; // done with this node
 3254|      0|        }
 3255|     68|    }
 3256|       |
 3257|  1.54k|    if (result) {
  ------------------
  |  Branch (3257:9): [True: 1.47k, False: 68]
  ------------------
 3258|  1.47k|        if (invertedType) {
  ------------------
  |  Branch (3258:13): [True: 0, False: 1.47k]
  ------------------
 3259|      0|            result = createInvertedSwizzle(decorations.precision, *node->getOperand(), result);
 3260|      0|            decorations.addNonUniform(builder, result);
 3261|      0|        }
 3262|       |
 3263|  1.47k|        builder.clearAccessChain();
 3264|  1.47k|        builder.setAccessChainRValue(result);
 3265|       |
 3266|  1.47k|        return false; // done with this node
 3267|  1.47k|    }
 3268|       |
 3269|       |    // it must be a special case, check...
 3270|     68|    switch (node->getOp()) {
 3271|     14|    case glslang::EOpPostIncrement:
  ------------------
  |  Branch (3271:5): [True: 14, False: 54]
  ------------------
 3272|     26|    case glslang::EOpPostDecrement:
  ------------------
  |  Branch (3272:5): [True: 12, False: 56]
  ------------------
 3273|     41|    case glslang::EOpPreIncrement:
  ------------------
  |  Branch (3273:5): [True: 15, False: 53]
  ------------------
 3274|     53|    case glslang::EOpPreDecrement:
  ------------------
  |  Branch (3274:5): [True: 12, False: 56]
  ------------------
 3275|     53|        {
 3276|       |            // we need the integer value "1" or the floating point "1.0" to add/subtract
 3277|     53|            spv::Id one = 0;
 3278|     53|            if (node->getBasicType() == glslang::EbtFloat)
  ------------------
  |  Branch (3278:17): [True: 0, False: 53]
  ------------------
 3279|      0|                one = builder.makeFloatConstant(1.0F);
 3280|     53|            else if (node->getBasicType() == glslang::EbtDouble)
  ------------------
  |  Branch (3280:22): [True: 0, False: 53]
  ------------------
 3281|      0|                one = builder.makeDoubleConstant(1.0);
 3282|     53|            else if (node->getBasicType() == glslang::EbtFloat16)
  ------------------
  |  Branch (3282:22): [True: 0, False: 53]
  ------------------
 3283|      0|                one = builder.makeFloat16Constant(1.0F);
 3284|     53|            else if (node->getBasicType() == glslang::EbtBFloat16)
  ------------------
  |  Branch (3284:22): [True: 0, False: 53]
  ------------------
 3285|      0|                one = builder.makeBFloat16Constant(1.0F);
 3286|     53|            else if (node->getBasicType() == glslang::EbtFloatE5M2)
  ------------------
  |  Branch (3286:22): [True: 0, False: 53]
  ------------------
 3287|      0|                one = builder.makeFloatE5M2Constant(1.0F);
 3288|     53|            else if (node->getBasicType() == glslang::EbtFloatE4M3)
  ------------------
  |  Branch (3288:22): [True: 0, False: 53]
  ------------------
 3289|      0|                one = builder.makeFloatE4M3Constant(1.0F);
 3290|     53|            else if (node->getBasicType() == glslang::EbtFloatE2M1)
  ------------------
  |  Branch (3290:22): [True: 0, False: 53]
  ------------------
 3291|      0|                one = builder.makeFloatE2M1Constant(1.0F);
 3292|     53|            else if (node->getBasicType() == glslang::EbtFloatE3M2)
  ------------------
  |  Branch (3292:22): [True: 0, False: 53]
  ------------------
 3293|      0|                one = builder.makeFloatE3M2Constant(1.0F);
 3294|     53|            else if (node->getBasicType() == glslang::EbtFloatE2M3)
  ------------------
  |  Branch (3294:22): [True: 0, False: 53]
  ------------------
 3295|      0|                one = builder.makeFloatE2M3Constant(1.0F);
 3296|     53|            else if (node->getBasicType() == glslang::EbtFloatUE8M0)
  ------------------
  |  Branch (3296:22): [True: 0, False: 53]
  ------------------
 3297|      0|                one = builder.makeFloatUE8M0Constant(1.0F);
 3298|     53|            else if (node->getBasicType() == glslang::EbtFloatMXINT8)
  ------------------
  |  Branch (3298:22): [True: 0, False: 53]
  ------------------
 3299|      0|                one = builder.makeFloatMXINT8Constant(1.0F);
 3300|     53|            else if (node->getBasicType() == glslang::EbtInt8  || node->getBasicType() == glslang::EbtUint8)
  ------------------
  |  Branch (3300:22): [True: 0, False: 53]
  |  Branch (3300:67): [True: 0, False: 53]
  ------------------
 3301|      0|                one = builder.makeInt8Constant(1);
 3302|     53|            else if (node->getBasicType() == glslang::EbtInt16 || node->getBasicType() == glslang::EbtUint16)
  ------------------
  |  Branch (3302:22): [True: 23, False: 30]
  |  Branch (3302:67): [True: 23, False: 7]
  ------------------
 3303|     46|                one = builder.makeInt16Constant(1);
 3304|      7|            else if (node->getBasicType() == glslang::EbtInt64 || node->getBasicType() == glslang::EbtUint64)
  ------------------
  |  Branch (3304:22): [True: 0, False: 7]
  |  Branch (3304:67): [True: 0, False: 7]
  ------------------
 3305|      0|                one = builder.makeInt64Constant(1);
 3306|      7|            else
 3307|      7|                one = builder.makeIntConstant(1);
 3308|     53|            glslang::TOperator op;
 3309|     53|            if (node->getOp() == glslang::EOpPreIncrement ||
  ------------------
  |  Branch (3309:17): [True: 15, False: 38]
  ------------------
 3310|     38|                node->getOp() == glslang::EOpPostIncrement)
  ------------------
  |  Branch (3310:17): [True: 14, False: 24]
  ------------------
 3311|     29|                op = glslang::EOpAdd;
 3312|     24|            else
 3313|     24|                op = glslang::EOpSub;
 3314|       |
 3315|     53|            spv::Id result = createBinaryOperation(op, decorations,
 3316|     53|                                                   convertGlslangToSpvType(node->getType()), operand, one,
 3317|     53|                                                   node->getType().getBasicType());
 3318|     53|            assert(result != spv::NoResult);
 3319|       |
 3320|       |            // The result of operation is always stored, but conditionally the
 3321|       |            // consumed result.  The consumed result is always an r-value.
 3322|     53|            accessChainStore(node->getOperand()->getType(), result);
 3323|     53|            builder.clearAccessChain();
 3324|     53|            if (node->getOp() == glslang::EOpPreIncrement ||
  ------------------
  |  Branch (3324:17): [True: 15, False: 38]
  ------------------
 3325|     38|                node->getOp() == glslang::EOpPreDecrement)
  ------------------
  |  Branch (3325:17): [True: 12, False: 26]
  ------------------
 3326|     27|                builder.setAccessChainRValue(result);
 3327|     26|            else
 3328|     26|                builder.setAccessChainRValue(operand);
 3329|     53|        }
 3330|       |
 3331|     53|        return false;
 3332|       |
 3333|      0|    case glslang::EOpAssumeEXT:
  ------------------
  |  Branch (3333:5): [True: 0, False: 68]
  ------------------
 3334|      0|        builder.addCapability(spv::Capability::ExpectAssumeKHR);
 3335|      0|        builder.addExtension(spv::E_SPV_KHR_expect_assume);
 3336|      0|        builder.createNoResultOp(spv::Op::OpAssumeTrueKHR, operand);
 3337|      0|        return false;
 3338|      0|    case glslang::EOpEmitStreamVertex:
  ------------------
  |  Branch (3338:5): [True: 0, False: 68]
  ------------------
 3339|      0|        builder.createNoResultOp(spv::Op::OpEmitStreamVertex, operand);
 3340|      0|        return false;
 3341|      0|    case glslang::EOpEndStreamPrimitive:
  ------------------
  |  Branch (3341:5): [True: 0, False: 68]
  ------------------
 3342|      0|        builder.createNoResultOp(spv::Op::OpEndStreamPrimitive, operand);
 3343|      0|        return false;
 3344|     10|    case glslang::EOpRayQueryTerminate:
  ------------------
  |  Branch (3344:5): [True: 10, False: 58]
  ------------------
 3345|     10|        builder.createNoResultOp(spv::Op::OpRayQueryTerminateKHR, operand);
 3346|     10|        return false;
 3347|      5|    case glslang::EOpRayQueryConfirmIntersection:
  ------------------
  |  Branch (3347:5): [True: 5, False: 63]
  ------------------
 3348|      5|        builder.createNoResultOp(spv::Op::OpRayQueryConfirmIntersectionKHR, operand);
 3349|      5|        return false;
 3350|      0|    case glslang::EOpReorderThreadNV:
  ------------------
  |  Branch (3350:5): [True: 0, False: 68]
  ------------------
 3351|      0|        builder.createNoResultOp(spv::Op::OpReorderThreadWithHitObjectNV, operand);
 3352|      0|        return false;
 3353|      0|    case glslang::EOpReorderThreadEXT:
  ------------------
  |  Branch (3353:5): [True: 0, False: 68]
  ------------------
 3354|      0|        builder.createNoResultOp(spv::Op::OpReorderThreadWithHitObjectEXT, operand);
 3355|      0|        return false;
 3356|      0|    case glslang::EOpHitObjectRecordEmptyNV:
  ------------------
  |  Branch (3356:5): [True: 0, False: 68]
  ------------------
 3357|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordEmptyNV, operand);
 3358|      0|        return false;
 3359|      0|    case glslang::EOpHitObjectRecordEmptyEXT:
  ------------------
  |  Branch (3359:5): [True: 0, False: 68]
  ------------------
 3360|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordEmptyEXT, operand);
 3361|      0|        return false;
 3362|       |
 3363|      0|    case glslang::EOpCreateTensorLayoutNV:
  ------------------
  |  Branch (3363:5): [True: 0, False: 68]
  ------------------
 3364|      0|        result = builder.createOp(spv::Op::OpCreateTensorLayoutNV, resultType(), std::vector<spv::Id>{});
 3365|      0|        builder.clearAccessChain();
 3366|      0|        builder.setAccessChainRValue(result);
 3367|      0|        return false;
 3368|       |
 3369|      0|    case glslang::EOpCreateTensorViewNV:
  ------------------
  |  Branch (3369:5): [True: 0, False: 68]
  ------------------
 3370|      0|        result = builder.createOp(spv::Op::OpCreateTensorViewNV, resultType(), std::vector<spv::Id>{});
 3371|      0|        builder.clearAccessChain();
 3372|      0|        builder.setAccessChainRValue(result);
 3373|      0|        return false;
 3374|       |
 3375|      0|    default:
  ------------------
  |  Branch (3375:5): [True: 0, False: 68]
  ------------------
 3376|      0|        logger->missingFunctionality("unknown glslang unary");
 3377|      0|        return true;  // pick up operand as placeholder result
 3378|     68|    }
 3379|     68|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser30createImageTextureFunctionCallEPN7glslang15TIntermOperatorE:
 8217|  6.15k|{
 8218|  6.15k|    if (! node->isImage() && ! node->isTexture())
  ------------------
  |  Branch (8218:9): [True: 5.79k, False: 359]
  |  Branch (8218:30): [True: 4.71k, False: 1.07k]
  ------------------
 8219|  4.71k|        return spv::NoResult;
 8220|       |
 8221|  1.43k|    builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 8222|       |
 8223|       |    // Process a GLSL texturing op (will be SPV image)
 8224|       |
 8225|  1.43k|    const glslang::TType &imageType = node->getAsAggregate()
  ------------------
  |  Branch (8225:39): [True: 1.40k, False: 38]
  ------------------
 8226|  1.43k|                                        ? node->getAsAggregate()->getSequence()[0]->getAsTyped()->getType()
 8227|  1.43k|                                        : node->getAsUnaryNode()->getOperand()->getAsTyped()->getType();
 8228|  1.43k|    const glslang::TSampler sampler = imageType.getSampler();
 8229|  1.43k|    bool f16ShadowCompare = (sampler.shadow && node->getAsAggregate())
  ------------------
  |  Branch (8229:30): [True: 312, False: 1.12k]
  |  Branch (8229:48): [True: 300, False: 12]
  ------------------
 8230|  1.43k|            ? node->getAsAggregate()->getSequence()[1]->getAsTyped()->getType().getBasicType() == glslang::EbtFloat16
 8231|  1.43k|            : false;
 8232|       |
 8233|  1.43k|    const auto signExtensionMask = [&]() {
 8234|  1.43k|        if (builder.getSpvVersion() >= spv::Spv_1_4) {
 8235|  1.43k|            if (sampler.type == glslang::EbtUint)
 8236|  1.43k|                return spv::ImageOperandsMask::ZeroExtend;
 8237|  1.43k|            else if (sampler.type == glslang::EbtInt)
 8238|  1.43k|                return spv::ImageOperandsMask::SignExtend;
 8239|  1.43k|        }
 8240|  1.43k|        return spv::ImageOperandsMask::MaskNone;
 8241|  1.43k|    };
 8242|       |
 8243|  1.43k|    spv::Builder::AccessChain::CoherentFlags lvalueCoherentFlags;
 8244|       |
 8245|  1.43k|    std::vector<spv::Id> arguments;
 8246|  1.43k|    if (node->getAsAggregate())
  ------------------
  |  Branch (8246:9): [True: 1.40k, False: 38]
  ------------------
 8247|  1.40k|        translateArguments(*node->getAsAggregate(), arguments, lvalueCoherentFlags);
 8248|     38|    else
 8249|     38|        translateArguments(*node->getAsUnaryNode(), arguments);
 8250|  1.43k|    spv::Decoration precision = TranslatePrecisionDecoration(node->getType());
 8251|       |
 8252|  1.43k|    spv::Builder::TextureParameters params = { };
 8253|  1.43k|    params.sampler = arguments[0];
 8254|       |
 8255|  1.43k|    glslang::TCrackedTextureOp cracked;
 8256|  1.43k|    node->crackTexture(sampler, cracked);
 8257|       |
 8258|  1.43k|    const bool isUnsignedResult = node->getType().getBasicType() == glslang::EbtUint;
 8259|       |
 8260|  1.43k|    if (builder.isSampledImage(params.sampler) &&
  ------------------
  |  Branch (8260:9): [True: 1.07k, False: 359]
  ------------------
 8261|  1.07k|        ((cracked.query && node->getOp() != glslang::EOpTextureQueryLod) || cracked.fragMask || cracked.fetch)) {
  ------------------
  |  Branch (8261:11): [True: 102, False: 977]
  |  Branch (8261:28): [True: 63, False: 39]
  |  Branch (8261:77): [True: 0, False: 1.01k]
  |  Branch (8261:97): [True: 42, False: 974]
  ------------------
 8262|    105|        params.sampler = builder.createUnaryOp(spv::Op::OpImage, builder.getImageType(params.sampler), params.sampler);
 8263|    105|        if (imageType.getQualifier().isNonUniform()) {
  ------------------
  |  Branch (8263:13): [True: 0, False: 105]
  ------------------
 8264|      0|            auto& extensions = glslangIntermediate->getRequestedExtensions();
 8265|      0|            if (extensions.find("GL_EXT_descriptor_heap") == extensions.end()) {
  ------------------
  |  Branch (8265:17): [True: 0, False: 0]
  ------------------
 8266|      0|                builder.addDecoration(params.sampler, spv::Decoration::NonUniformEXT);
 8267|      0|            }
 8268|      0|        }
 8269|    105|    }
 8270|       |    // Check for queries
 8271|  1.43k|    if (cracked.query) {
  ------------------
  |  Branch (8271:9): [True: 102, False: 1.33k]
  ------------------
 8272|    102|        switch (node->getOp()) {
 8273|      0|        case glslang::EOpImageQuerySize:
  ------------------
  |  Branch (8273:9): [True: 0, False: 102]
  ------------------
 8274|     33|        case glslang::EOpTextureQuerySize:
  ------------------
  |  Branch (8274:9): [True: 33, False: 69]
  ------------------
 8275|     33|            if (arguments.size() > 1) {
  ------------------
  |  Branch (8275:17): [True: 27, False: 6]
  ------------------
 8276|     27|                params.lod = arguments[1];
 8277|     27|                return builder.createTextureQueryCall(spv::Op::OpImageQuerySizeLod, params, isUnsignedResult);
 8278|     27|            } else
 8279|      6|                return builder.createTextureQueryCall(spv::Op::OpImageQuerySize, params, isUnsignedResult);
 8280|      0|        case glslang::EOpImageQuerySamples:
  ------------------
  |  Branch (8280:9): [True: 0, False: 102]
  ------------------
 8281|      4|        case glslang::EOpTextureQuerySamples:
  ------------------
  |  Branch (8281:9): [True: 4, False: 98]
  ------------------
 8282|      4|            return builder.createTextureQueryCall(spv::Op::OpImageQuerySamples, params, isUnsignedResult);
 8283|     39|        case glslang::EOpTextureQueryLod:
  ------------------
  |  Branch (8283:9): [True: 39, False: 63]
  ------------------
 8284|     39|            params.coords = arguments[1];
 8285|     39|            return builder.createTextureQueryCall(spv::Op::OpImageQueryLod, params, isUnsignedResult);
 8286|     26|        case glslang::EOpTextureQueryLevels:
  ------------------
  |  Branch (8286:9): [True: 26, False: 76]
  ------------------
 8287|     26|            return builder.createTextureQueryCall(spv::Op::OpImageQueryLevels, params, isUnsignedResult);
 8288|      0|        case glslang::EOpSparseTexelsResident:
  ------------------
  |  Branch (8288:9): [True: 0, False: 102]
  ------------------
 8289|      0|            return builder.createUnaryOp(spv::Op::OpImageSparseTexelsResident, builder.makeBoolType(), arguments[0]);
 8290|      0|        default:
  ------------------
  |  Branch (8290:9): [True: 0, False: 102]
  ------------------
 8291|      0|            assert(0);
 8292|      0|            break;
 8293|    102|        }
 8294|    102|    }
 8295|       |
 8296|  1.33k|    int components = node->getType().getVectorSize();
 8297|       |
 8298|  1.33k|    if (node->getOp() == glslang::EOpImageLoad ||
  ------------------
  |  Branch (8298:9): [True: 45, False: 1.29k]
  ------------------
 8299|  1.29k|        node->getOp() == glslang::EOpImageLoadLod ||
  ------------------
  |  Branch (8299:9): [True: 0, False: 1.29k]
  ------------------
 8300|  1.29k|        node->getOp() == glslang::EOpTextureFetch ||
  ------------------
  |  Branch (8300:9): [True: 16, False: 1.27k]
  ------------------
 8301|  1.27k|        node->getOp() == glslang::EOpTextureFetchOffset) {
  ------------------
  |  Branch (8301:9): [True: 10, False: 1.26k]
  ------------------
 8302|       |        // These must produce 4 components, per SPIR-V spec.  We'll add a conversion constructor if needed.
 8303|       |        // This will only happen through the HLSL path for operator[], so we do not have to handle e.g.
 8304|       |        // the EOpTexture/Proj/Lod/etc family.  It would be harmless to do so, but would need more logic
 8305|       |        // here around e.g. which ones return scalars or other types.
 8306|     71|        components = 4;
 8307|     71|    }
 8308|       |
 8309|  1.33k|    glslang::TType returnType(node->getType().getBasicType(), glslang::EvqTemporary, components);
 8310|       |
 8311|  1.33k|    auto resultType = [&returnType,this]{ return convertGlslangToSpvType(returnType); };
 8312|       |
 8313|       |    // Check for image functions other than queries
 8314|  1.33k|    if (node->isImage()) {
  ------------------
  |  Branch (8314:9): [True: 359, False: 977]
  ------------------
 8315|    359|        std::vector<spv::IdImmediate> operands;
 8316|    359|        auto opIt = arguments.begin();
 8317|    359|        spv::IdImmediate image = { true, *(opIt++) };
 8318|    359|        operands.push_back(image);
 8319|       |
 8320|       |        // Handle subpass operations
 8321|       |        // TODO: GLSL should change to have the "MS" only on the type rather than the
 8322|       |        // built-in function.
 8323|    359|        if (cracked.subpass) {
  ------------------
  |  Branch (8323:13): [True: 4, False: 355]
  ------------------
 8324|       |            // add on the (0,0) coordinate
 8325|      4|            spv::Id zero = builder.makeIntConstant(0);
 8326|      4|            std::vector<spv::Id> comps;
 8327|      4|            comps.push_back(zero);
 8328|      4|            comps.push_back(zero);
 8329|      4|            spv::IdImmediate coord = { true,
 8330|      4|                builder.makeCompositeConstant(builder.makeVectorType(builder.makeIntType(32), 2), comps) };
 8331|      4|            operands.push_back(coord);
 8332|      4|            spv::IdImmediate imageOperands = { false, spv::ImageOperandsMask::MaskNone };
 8333|      4|            imageOperands.word = imageOperands.word | (unsigned)signExtensionMask();
 8334|      4|            if (sampler.isMultiSample()) {
  ------------------
  |  Branch (8334:17): [True: 2, False: 2]
  ------------------
 8335|      2|                imageOperands.word = imageOperands.word | (unsigned)spv::ImageOperandsMask::Sample;
 8336|      2|            }
 8337|      4|            if (imageOperands.word != (unsigned)spv::ImageOperandsMask::MaskNone) {
  ------------------
  |  Branch (8337:17): [True: 2, False: 2]
  ------------------
 8338|      2|                operands.push_back(imageOperands);
 8339|      2|                if (sampler.isMultiSample()) {
  ------------------
  |  Branch (8339:21): [True: 2, False: 0]
  ------------------
 8340|      2|                    spv::IdImmediate imageOperand = { true, *(opIt++) };
 8341|      2|                    operands.push_back(imageOperand);
 8342|      2|                }
 8343|      2|            }
 8344|      4|            spv::Id result = builder.createOp(spv::Op::OpImageRead, resultType(), operands);
 8345|      4|            builder.setPrecision(result, precision);
 8346|      4|            return result;
 8347|      4|        }
 8348|       |
 8349|    355|        if (cracked.attachmentEXT) {
  ------------------
  |  Branch (8349:13): [True: 0, False: 355]
  ------------------
 8350|      0|            if (opIt != arguments.end()) {
  ------------------
  |  Branch (8350:17): [True: 0, False: 0]
  ------------------
 8351|      0|                spv::IdImmediate sample = { true, *opIt };
 8352|      0|                operands.push_back(sample);
 8353|      0|            }
 8354|      0|            spv::Id result = builder.createOp(spv::Op::OpColorAttachmentReadEXT, resultType(), operands);
 8355|      0|            builder.addExtension(spv::E_SPV_EXT_shader_tile_image);
 8356|      0|            builder.setPrecision(result, precision);
 8357|      0|            return result;
 8358|      0|        }
 8359|       |
 8360|    355|        spv::IdImmediate coord = { true, *(opIt++) };
 8361|    355|        operands.push_back(coord);
 8362|    355|        if (node->getOp() == glslang::EOpImageLoad || node->getOp() == glslang::EOpImageLoadLod) {
  ------------------
  |  Branch (8362:13): [True: 45, False: 310]
  |  Branch (8362:55): [True: 0, False: 310]
  ------------------
 8363|     45|            spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
 8364|     45|            if (sampler.isMultiSample()) {
  ------------------
  |  Branch (8364:17): [True: 9, False: 36]
  ------------------
 8365|      9|                mask = mask | spv::ImageOperandsMask::Sample;
 8366|      9|            }
 8367|     45|            if (cracked.lod) {
  ------------------
  |  Branch (8367:17): [True: 0, False: 45]
  ------------------
 8368|      0|                builder.addExtension(spv::E_SPV_AMD_shader_image_load_store_lod);
 8369|      0|                builder.addCapability(spv::Capability::ImageReadWriteLodAMD);
 8370|      0|                mask = mask | spv::ImageOperandsMask::Lod;
 8371|      0|            }
 8372|     45|            mask = mask | TranslateImageOperands(TranslateCoherent(imageType));
 8373|     45|            mask = (spv::ImageOperandsMask)(mask & ~spv::ImageOperandsMask::MakeTexelAvailableKHR);
 8374|     45|            mask = mask | signExtensionMask();
 8375|     45|            if (mask != spv::ImageOperandsMask::MaskNone) {
  ------------------
  |  Branch (8375:17): [True: 9, False: 36]
  ------------------
 8376|      9|                spv::IdImmediate imageOperands = { false, (unsigned int)mask };
 8377|      9|                operands.push_back(imageOperands);
 8378|      9|            }
 8379|     45|            if (anySet(mask, spv::ImageOperandsMask::Sample)) {
  ------------------
  |  Branch (8379:17): [True: 9, False: 36]
  ------------------
 8380|      9|                spv::IdImmediate imageOperand = { true, *opIt++ };
 8381|      9|                operands.push_back(imageOperand);
 8382|      9|            }
 8383|     45|            if (anySet(mask, spv::ImageOperandsMask::Lod)) {
  ------------------
  |  Branch (8383:17): [True: 0, False: 45]
  ------------------
 8384|      0|                spv::IdImmediate imageOperand = { true, *opIt++ };
 8385|      0|                operands.push_back(imageOperand);
 8386|      0|            }
 8387|     45|            if (anySet(mask, spv::ImageOperandsMask::MakeTexelVisibleKHR)) {
  ------------------
  |  Branch (8387:17): [True: 0, False: 45]
  ------------------
 8388|      0|                spv::IdImmediate imageOperand = { true,
 8389|      0|                                    builder.makeUintConstant(TranslateMemoryScope(TranslateCoherent(imageType))) };
 8390|      0|                operands.push_back(imageOperand);
 8391|      0|            }
 8392|       |
 8393|     45|            if (builder.getImageTypeFormat(builder.getImageType(operands.front().word)) == spv::ImageFormat::Unknown)
  ------------------
  |  Branch (8393:17): [True: 0, False: 45]
  ------------------
 8394|      0|                builder.addCapability(spv::Capability::StorageImageReadWithoutFormat);
 8395|       |
 8396|     45|            std::vector<spv::Id> result(1, builder.createOp(spv::Op::OpImageRead, resultType(), operands));
 8397|     45|            builder.setPrecision(result[0], precision);
 8398|       |
 8399|       |            // If needed, add a conversion constructor to the proper size.
 8400|     45|            if (components != node->getType().getVectorSize())
  ------------------
  |  Branch (8400:17): [True: 0, False: 45]
  ------------------
 8401|      0|                result[0] = builder.createConstructor(precision, result, convertGlslangToSpvType(node->getType()));
 8402|       |
 8403|     45|            return result[0];
 8404|    310|        } else if (node->getOp() == glslang::EOpImageStore || node->getOp() == glslang::EOpImageStoreLod) {
  ------------------
  |  Branch (8404:20): [True: 45, False: 265]
  |  Branch (8404:63): [True: 0, False: 265]
  ------------------
 8405|       |
 8406|       |            // Push the texel value before the operands
 8407|     45|            if (sampler.isMultiSample() || cracked.lod) {
  ------------------
  |  Branch (8407:17): [True: 9, False: 36]
  |  Branch (8407:44): [True: 0, False: 36]
  ------------------
 8408|      9|                spv::IdImmediate texel = { true, *(opIt + 1) };
 8409|      9|                operands.push_back(texel);
 8410|     36|            } else {
 8411|     36|                spv::IdImmediate texel = { true, *opIt };
 8412|     36|                operands.push_back(texel);
 8413|     36|            }
 8414|       |
 8415|     45|            spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
 8416|     45|            if (sampler.isMultiSample()) {
  ------------------
  |  Branch (8416:17): [True: 9, False: 36]
  ------------------
 8417|      9|                mask = mask | spv::ImageOperandsMask::Sample;
 8418|      9|            }
 8419|     45|            if (cracked.lod) {
  ------------------
  |  Branch (8419:17): [True: 0, False: 45]
  ------------------
 8420|      0|                builder.addExtension(spv::E_SPV_AMD_shader_image_load_store_lod);
 8421|      0|                builder.addCapability(spv::Capability::ImageReadWriteLodAMD);
 8422|      0|                mask = mask | spv::ImageOperandsMask::Lod;
 8423|      0|            }
 8424|     45|            mask = mask | TranslateImageOperands(TranslateCoherent(imageType));
 8425|     45|            mask = (spv::ImageOperandsMask)(mask & ~spv::ImageOperandsMask::MakeTexelVisibleKHR);
 8426|     45|            mask = mask | signExtensionMask();
 8427|     45|            if (mask != spv::ImageOperandsMask::MaskNone) {
  ------------------
  |  Branch (8427:17): [True: 9, False: 36]
  ------------------
 8428|      9|                spv::IdImmediate imageOperands = { false, (unsigned int)mask };
 8429|      9|                operands.push_back(imageOperands);
 8430|      9|            }
 8431|     45|            if (anySet(mask, spv::ImageOperandsMask::Sample)) {
  ------------------
  |  Branch (8431:17): [True: 9, False: 36]
  ------------------
 8432|      9|                spv::IdImmediate imageOperand = { true, *opIt++ };
 8433|      9|                operands.push_back(imageOperand);
 8434|      9|            }
 8435|     45|            if (anySet(mask, spv::ImageOperandsMask::Lod)) {
  ------------------
  |  Branch (8435:17): [True: 0, False: 45]
  ------------------
 8436|      0|                spv::IdImmediate imageOperand = { true, *opIt++ };
 8437|      0|                operands.push_back(imageOperand);
 8438|      0|            }
 8439|     45|            if (anySet(mask, spv::ImageOperandsMask::MakeTexelAvailableKHR)) {
  ------------------
  |  Branch (8439:17): [True: 0, False: 45]
  ------------------
 8440|      0|                spv::IdImmediate imageOperand = { true,
 8441|      0|                    builder.makeUintConstant(TranslateMemoryScope(TranslateCoherent(imageType))) };
 8442|      0|                operands.push_back(imageOperand);
 8443|      0|            }
 8444|       |
 8445|     45|            builder.createNoResultOp(spv::Op::OpImageWrite, operands);
 8446|     45|            if (builder.getImageTypeFormat(builder.getImageType(operands.front().word)) == spv::ImageFormat::Unknown)
  ------------------
  |  Branch (8446:17): [True: 0, False: 45]
  ------------------
 8447|      0|                builder.addCapability(spv::Capability::StorageImageWriteWithoutFormat);
 8448|     45|            return spv::NoResult;
 8449|    265|        } else if (node->getOp() == glslang::EOpSparseImageLoad ||
  ------------------
  |  Branch (8449:20): [True: 39, False: 226]
  ------------------
 8450|    226|                   node->getOp() == glslang::EOpSparseImageLoadLod) {
  ------------------
  |  Branch (8450:20): [True: 0, False: 226]
  ------------------
 8451|     39|            builder.addCapability(spv::Capability::SparseResidency);
 8452|     39|            if (builder.getImageTypeFormat(builder.getImageType(operands.front().word)) == spv::ImageFormat::Unknown)
  ------------------
  |  Branch (8452:17): [True: 0, False: 39]
  ------------------
 8453|      0|                builder.addCapability(spv::Capability::StorageImageReadWithoutFormat);
 8454|       |
 8455|     39|            spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
 8456|     39|            if (sampler.isMultiSample()) {
  ------------------
  |  Branch (8456:17): [True: 4, False: 35]
  ------------------
 8457|      4|                mask = mask | spv::ImageOperandsMask::Sample;
 8458|      4|            }
 8459|     39|            if (cracked.lod) {
  ------------------
  |  Branch (8459:17): [True: 0, False: 39]
  ------------------
 8460|      0|                builder.addExtension(spv::E_SPV_AMD_shader_image_load_store_lod);
 8461|      0|                builder.addCapability(spv::Capability::ImageReadWriteLodAMD);
 8462|       |
 8463|      0|                mask = mask | spv::ImageOperandsMask::Lod;
 8464|      0|            }
 8465|     39|            mask = mask | TranslateImageOperands(TranslateCoherent(imageType));
 8466|     39|            mask = (spv::ImageOperandsMask)(mask & ~spv::ImageOperandsMask::MakeTexelAvailableKHR);
 8467|     39|            mask = mask | signExtensionMask();
 8468|     39|            if (mask != spv::ImageOperandsMask::MaskNone) {
  ------------------
  |  Branch (8468:17): [True: 4, False: 35]
  ------------------
 8469|      4|                spv::IdImmediate imageOperands = { false, (unsigned int)mask };
 8470|      4|                operands.push_back(imageOperands);
 8471|      4|            }
 8472|     39|            if (anySet(mask, spv::ImageOperandsMask::Sample)) {
  ------------------
  |  Branch (8472:17): [True: 4, False: 35]
  ------------------
 8473|      4|                spv::IdImmediate imageOperand = { true, *opIt++ };
 8474|      4|                operands.push_back(imageOperand);
 8475|      4|            }
 8476|     39|            if (anySet(mask, spv::ImageOperandsMask::Lod)) {
  ------------------
  |  Branch (8476:17): [True: 0, False: 39]
  ------------------
 8477|      0|                spv::IdImmediate imageOperand = { true, *opIt++ };
 8478|      0|                operands.push_back(imageOperand);
 8479|      0|            }
 8480|     39|            if (anySet(mask, spv::ImageOperandsMask::MakeTexelVisibleKHR)) {
  ------------------
  |  Branch (8480:17): [True: 0, False: 39]
  ------------------
 8481|      0|                spv::IdImmediate imageOperand = { true, builder.makeUintConstant(TranslateMemoryScope(
 8482|      0|                    TranslateCoherent(imageType))) };
 8483|      0|                operands.push_back(imageOperand);
 8484|      0|            }
 8485|       |
 8486|       |            // Create the return type that was a special structure
 8487|     39|            spv::Id texelOut = *opIt;
 8488|     39|            spv::Id typeId0 = resultType();
 8489|     39|            spv::Id typeId1 = builder.getDerefTypeId(texelOut);
 8490|     39|            spv::Id resultTypeId = builder.makeStructResultType(typeId0, typeId1);
 8491|       |
 8492|     39|            spv::Id resultId = builder.createOp(spv::Op::OpImageSparseRead, resultTypeId, operands);
 8493|       |
 8494|       |            // Decode the return type
 8495|     39|            builder.createStore(builder.createCompositeExtract(resultId, typeId1, 1), texelOut);
 8496|     39|            return builder.createCompositeExtract(resultId, typeId0, 0);
 8497|    226|        } else {
 8498|       |            // Process image atomic operations
 8499|       |
 8500|       |            // GLSL "IMAGE_PARAMS" will involve in constructing an image texel pointer and this pointer,
 8501|       |            // as the first source operand, is required by SPIR-V atomic operations.
 8502|       |            // For non-MS, the sample value should be 0
 8503|    226|            spv::IdImmediate sample = { true, sampler.isMultiSample() ? *(opIt++) : builder.makeUintConstant(0) };
  ------------------
  |  Branch (8503:47): [True: 25, False: 201]
  ------------------
 8504|    226|            operands.push_back(sample);
 8505|       |
 8506|    226|            spv::Id resultTypeId;
 8507|    226|            glslang::TBasicType typeProxy = node->getBasicType();
 8508|       |            // imageAtomicStore has a void return type so base the pointer type on
 8509|       |            // the type of the value operand.
 8510|    226|            if (node->getOp() == glslang::EOpImageAtomicStore) {
  ------------------
  |  Branch (8510:17): [True: 10, False: 216]
  ------------------
 8511|     10|                resultTypeId = builder.makePointer(spv::StorageClass::Image, builder.getTypeId(*opIt));
 8512|     10|                typeProxy = node->getAsAggregate()->getSequence()[0]->getAsTyped()->getType().getSampler().type;
 8513|    216|            } else {
 8514|    216|                resultTypeId = builder.makePointer(spv::StorageClass::Image, resultType());
 8515|    216|            }
 8516|       |
 8517|       |            // EXT_descriptor_heap
 8518|       |            // For image atomic parameter, using untyped image texel pointer to carry on type metadata.
 8519|    226|            spv::Op imgTexelOp = spv::Op::OpImageTexelPointer;
 8520|    226|            if (node->getQualifier().isUsedByAtomic() &&
  ------------------
  |  Branch (8520:17): [True: 0, False: 226]
  ------------------
 8521|      0|                imageType.getQualifier().builtIn == glslang::EbvResourceHeapEXT) {
  ------------------
  |  Branch (8521:17): [True: 0, False: 0]
  ------------------
 8522|      0|                operands.insert(operands.begin(), {true, convertGlslangToSpvType(imageType)});
 8523|      0|                imgTexelOp = spv::Op::OpUntypedImageTexelPointerEXT;
 8524|      0|                resultTypeId = builder.makeUntypedPointer(spv::StorageClass::Image);
 8525|      0|            }
 8526|       |
 8527|    226|            spv::Id pointer = builder.createOp(imgTexelOp, resultTypeId, operands);
 8528|    226|            if (imageType.getQualifier().nonUniform) {
  ------------------
  |  Branch (8528:17): [True: 0, False: 226]
  ------------------
 8529|      0|                auto& extensions = glslangIntermediate->getRequestedExtensions();
 8530|      0|                if (extensions.find("GL_EXT_descriptor_heap") == extensions.end()) {
  ------------------
  |  Branch (8530:21): [True: 0, False: 0]
  ------------------
 8531|      0|                    builder.addDecoration(pointer, spv::Decoration::NonUniformEXT);
 8532|      0|                }
 8533|      0|            }
 8534|       |
 8535|    226|            std::vector<spv::Id> operands;
 8536|    226|            operands.push_back(pointer);
 8537|    767|            for (; opIt != arguments.end(); ++opIt)
  ------------------
  |  Branch (8537:20): [True: 541, False: 226]
  ------------------
 8538|    541|                operands.push_back(*opIt);
 8539|       |
 8540|    226|            return createAtomicOperation(node->getOp(), precision, resultType(), operands, typeProxy,
 8541|    226|                lvalueCoherentFlags, node->getType());
 8542|    226|        }
 8543|    355|    }
 8544|       |
 8545|       |    // Check for fragment mask functions other than queries
 8546|    977|    if (cracked.fragMask) {
  ------------------
  |  Branch (8546:9): [True: 0, False: 977]
  ------------------
 8547|      0|        assert(sampler.ms);
 8548|       |
 8549|      0|        auto opIt = arguments.begin();
 8550|      0|        std::vector<spv::Id> operands;
 8551|       |
 8552|      0|        operands.push_back(params.sampler);
 8553|      0|        ++opIt;
 8554|       |
 8555|      0|        if (sampler.isSubpass()) {
  ------------------
  |  Branch (8555:13): [True: 0, False: 0]
  ------------------
 8556|       |            // add on the (0,0) coordinate
 8557|      0|            spv::Id zero = builder.makeIntConstant(0);
 8558|      0|            std::vector<spv::Id> comps;
 8559|      0|            comps.push_back(zero);
 8560|      0|            comps.push_back(zero);
 8561|      0|            operands.push_back(builder.makeCompositeConstant(
 8562|      0|                builder.makeVectorType(builder.makeIntType(32), 2), comps));
 8563|      0|        }
 8564|       |
 8565|      0|        for (; opIt != arguments.end(); ++opIt)
  ------------------
  |  Branch (8565:16): [True: 0, False: 0]
  ------------------
 8566|      0|            operands.push_back(*opIt);
 8567|       |
 8568|      0|        spv::Op fragMaskOp = spv::Op::OpNop;
 8569|      0|        if (node->getOp() == glslang::EOpFragmentMaskFetch)
  ------------------
  |  Branch (8569:13): [True: 0, False: 0]
  ------------------
 8570|      0|            fragMaskOp = spv::Op::OpFragmentMaskFetchAMD;
 8571|      0|        else if (node->getOp() == glslang::EOpFragmentFetch)
  ------------------
  |  Branch (8571:18): [True: 0, False: 0]
  ------------------
 8572|      0|            fragMaskOp = spv::Op::OpFragmentFetchAMD;
 8573|       |
 8574|      0|        builder.addExtension(spv::E_SPV_AMD_shader_fragment_mask);
 8575|      0|        builder.addCapability(spv::Capability::FragmentMaskAMD);
 8576|      0|        return builder.createOp(fragMaskOp, resultType(), operands);
 8577|      0|    }
 8578|       |
 8579|       |    // Check for texture functions other than queries
 8580|    977|    bool sparse = node->isSparseTexture();
 8581|    977|    bool imageFootprint = node->isImageFootprint();
 8582|    977|    bool cubeCompare = sampler.dim == glslang::EsdCube && sampler.isArrayed() && sampler.isShadow();
  ------------------
  |  Branch (8582:24): [True: 126, False: 851]
  |  Branch (8582:59): [True: 60, False: 66]
  |  Branch (8582:82): [True: 21, False: 39]
  ------------------
 8583|       |
 8584|       |    // check for bias argument
 8585|    977|    bool bias = false;
 8586|    977|    if (! cracked.lod && ! cracked.grad && ! cracked.fetch && ! cubeCompare) {
  ------------------
  |  Branch (8586:9): [True: 792, False: 185]
  |  Branch (8586:26): [True: 606, False: 186]
  |  Branch (8586:44): [True: 596, False: 10]
  |  Branch (8586:63): [True: 575, False: 21]
  ------------------
 8587|    575|        int nonBiasArgCount = 2;
 8588|    575|        if (cracked.gather)
  ------------------
  |  Branch (8588:13): [True: 306, False: 269]
  ------------------
 8589|    306|            ++nonBiasArgCount; // comp argument should be present when bias argument is present
 8590|       |
 8591|    575|        if (f16ShadowCompare)
  ------------------
  |  Branch (8591:13): [True: 49, False: 526]
  ------------------
 8592|     49|            ++nonBiasArgCount;
 8593|    575|        if (cracked.offset)
  ------------------
  |  Branch (8593:13): [True: 216, False: 359]
  ------------------
 8594|    216|            ++nonBiasArgCount;
 8595|    359|        else if (cracked.offsets)
  ------------------
  |  Branch (8595:18): [True: 24, False: 335]
  ------------------
 8596|     24|            ++nonBiasArgCount;
 8597|    575|        if (cracked.grad)
  ------------------
  |  Branch (8597:13): [True: 0, False: 575]
  ------------------
 8598|      0|            nonBiasArgCount += 2;
 8599|    575|        if (cracked.lodClamp)
  ------------------
  |  Branch (8599:13): [True: 102, False: 473]
  ------------------
 8600|    102|            ++nonBiasArgCount;
 8601|    575|        if (sparse)
  ------------------
  |  Branch (8601:13): [True: 123, False: 452]
  ------------------
 8602|    123|            ++nonBiasArgCount;
 8603|    575|        if (imageFootprint)
  ------------------
  |  Branch (8603:13): [True: 0, False: 575]
  ------------------
 8604|       |            //Following three extra arguments
 8605|       |            // int granularity, bool coarse, out gl_TextureFootprint2DNV footprint
 8606|      0|            nonBiasArgCount += 3;
 8607|    575|        if ((int)arguments.size() > nonBiasArgCount)
  ------------------
  |  Branch (8607:13): [True: 94, False: 481]
  ------------------
 8608|     94|            bias = true;
 8609|    575|    }
 8610|       |
 8611|    977|    if (cracked.gather) {
  ------------------
  |  Branch (8611:9): [True: 360, False: 617]
  ------------------
 8612|    360|        const auto& sourceExtensions = glslangIntermediate->getRequestedExtensions();
 8613|    360|        if (bias || cracked.lod ||
  ------------------
  |  Branch (8613:13): [True: 16, False: 344]
  |  Branch (8613:13): [True: 144, False: 216]
  |  Branch (8613:21): [True: 48, False: 296]
  ------------------
 8614|    296|            sourceExtensions.find(glslang::E_GL_AMD_texture_gather_bias_lod) != sourceExtensions.end()) {
  ------------------
  |  Branch (8614:13): [True: 80, False: 216]
  ------------------
 8615|    144|            builder.addExtension(spv::E_SPV_AMD_texture_gather_bias_lod);
 8616|    144|            builder.addCapability(spv::Capability::ImageGatherBiasLodAMD);
 8617|    144|        }
 8618|    360|    }
 8619|       |
 8620|       |    // set the rest of the arguments
 8621|       |
 8622|    977|    params.coords = arguments[1];
 8623|    977|    int extraArgs = 0;
 8624|    977|    bool noImplicitLod = false;
 8625|       |
 8626|       |    // sort out where Dref is coming from
 8627|    977|    if (cubeCompare || f16ShadowCompare) {
  ------------------
  |  Branch (8627:9): [True: 21, False: 956]
  |  Branch (8627:24): [True: 83, False: 873]
  ------------------
 8628|    104|        params.Dref = arguments[2];
 8629|    104|        ++extraArgs;
 8630|    873|    } else if (sampler.shadow && cracked.gather) {
  ------------------
  |  Branch (8630:16): [True: 166, False: 707]
  |  Branch (8630:34): [True: 28, False: 138]
  ------------------
 8631|     28|        params.Dref = arguments[2];
 8632|     28|        ++extraArgs;
 8633|    845|    } else if (sampler.shadow) {
  ------------------
  |  Branch (8633:16): [True: 138, False: 707]
  ------------------
 8634|    138|        std::vector<spv::Id> indexes;
 8635|    138|        int dRefComp;
 8636|    138|        if (cracked.proj)
  ------------------
  |  Branch (8636:13): [True: 16, False: 122]
  ------------------
 8637|     16|            dRefComp = 2;  // "The resulting 3rd component of P in the shadow forms is used as Dref"
 8638|    122|        else
 8639|    122|            dRefComp = builder.getNumComponents(params.coords) - 1;
 8640|    138|        indexes.push_back(dRefComp);
 8641|    138|        params.Dref = builder.createCompositeExtract(params.coords,
 8642|    138|            builder.getScalarTypeId(builder.getTypeId(params.coords)), indexes);
 8643|    138|    }
 8644|       |
 8645|       |    // lod
 8646|    977|    if (cracked.lod) {
  ------------------
  |  Branch (8646:9): [True: 185, False: 792]
  ------------------
 8647|    185|        params.lod = arguments[2 + extraArgs];
 8648|    185|        ++extraArgs;
 8649|    792|    } else if (glslangIntermediate->getStage() != EShLangFragment &&
  ------------------
  |  Branch (8649:16): [True: 0, False: 792]
  ------------------
 8650|      0|               !(glslangIntermediate->getStage() == EShLangCompute &&
  ------------------
  |  Branch (8650:18): [True: 0, False: 0]
  ------------------
 8651|      0|                 glslangIntermediate->hasLayoutDerivativeModeNone())) {
  ------------------
  |  Branch (8651:18): [True: 0, False: 0]
  ------------------
 8652|       |        // we need to invent the default lod for an explicit lod instruction for a non-fragment stage
 8653|      0|        noImplicitLod = true;
 8654|      0|    }
 8655|       |
 8656|       |    // multisample
 8657|    977|    if (sampler.isMultiSample()) {
  ------------------
  |  Branch (8657:9): [True: 8, False: 969]
  ------------------
 8658|      8|        params.sample = arguments[2 + extraArgs]; // For MS, "sample" should be specified
 8659|      8|        ++extraArgs;
 8660|      8|    }
 8661|       |
 8662|       |    // gradient
 8663|    977|    if (cracked.grad) {
  ------------------
  |  Branch (8663:9): [True: 186, False: 791]
  ------------------
 8664|    186|        params.gradX = arguments[2 + extraArgs];
 8665|    186|        params.gradY = arguments[3 + extraArgs];
 8666|    186|        extraArgs += 2;
 8667|    186|    }
 8668|       |
 8669|       |    // offset and offsets
 8670|    977|    if (cracked.offset) {
  ------------------
  |  Branch (8670:9): [True: 406, False: 571]
  ------------------
 8671|    406|        params.offset = arguments[2 + extraArgs];
 8672|    406|        ++extraArgs;
 8673|    571|    } else if (cracked.offsets) {
  ------------------
  |  Branch (8673:16): [True: 36, False: 535]
  ------------------
 8674|     36|        params.offsets = arguments[2 + extraArgs];
 8675|     36|        ++extraArgs;
 8676|     36|    }
 8677|       |
 8678|       |    // lod clamp
 8679|    977|    if (cracked.lodClamp) {
  ------------------
  |  Branch (8679:9): [True: 150, False: 827]
  ------------------
 8680|    150|        params.lodClamp = arguments[2 + extraArgs];
 8681|    150|        ++extraArgs;
 8682|    150|    }
 8683|       |    // sparse
 8684|    977|    if (sparse) {
  ------------------
  |  Branch (8684:9): [True: 256, False: 721]
  ------------------
 8685|    256|        params.texelOut = arguments[2 + extraArgs];
 8686|    256|        ++extraArgs;
 8687|    256|    }
 8688|       |    // gather component
 8689|    977|    if (cracked.gather && ! sampler.shadow) {
  ------------------
  |  Branch (8689:9): [True: 360, False: 617]
  |  Branch (8689:27): [True: 312, False: 48]
  ------------------
 8690|       |        // default component is 0, if missing, otherwise an argument
 8691|    312|        if (2 + extraArgs < (int)arguments.size()) {
  ------------------
  |  Branch (8691:13): [True: 168, False: 144]
  ------------------
 8692|    168|            params.component = arguments[2 + extraArgs];
 8693|    168|            ++extraArgs;
 8694|    168|        } else
 8695|    144|            params.component = builder.makeIntConstant(0);
 8696|    312|    }
 8697|    977|    spv::Id  resultStruct = spv::NoResult;
 8698|    977|    if (imageFootprint) {
  ------------------
  |  Branch (8698:9): [True: 0, False: 977]
  ------------------
 8699|       |        //Following three extra arguments
 8700|       |        // int granularity, bool coarse, out gl_TextureFootprint2DNV footprint
 8701|      0|        params.granularity = arguments[2 + extraArgs];
 8702|      0|        params.coarse = arguments[3 + extraArgs];
 8703|      0|        resultStruct = arguments[4 + extraArgs];
 8704|      0|        extraArgs += 3;
 8705|      0|    }
 8706|       |
 8707|       |    // bias
 8708|    977|    if (bias) {
  ------------------
  |  Branch (8708:9): [True: 94, False: 883]
  ------------------
 8709|     94|        params.bias = arguments[2 + extraArgs];
 8710|     94|        ++extraArgs;
 8711|     94|    }
 8712|       |
 8713|    977|    if (imageFootprint) {
  ------------------
  |  Branch (8713:9): [True: 0, False: 977]
  ------------------
 8714|      0|        builder.addExtension(spv::E_SPV_NV_shader_image_footprint);
 8715|      0|        builder.addCapability(spv::Capability::ImageFootprintNV);
 8716|       |
 8717|       |
 8718|       |        //resultStructType(OpenGL type) contains 5 elements:
 8719|       |        //struct gl_TextureFootprint2DNV {
 8720|       |        //    uvec2 anchor;
 8721|       |        //    uvec2 offset;
 8722|       |        //    uvec2 mask;
 8723|       |        //    uint  lod;
 8724|       |        //    uint  granularity;
 8725|       |        //};
 8726|       |        //or
 8727|       |        //struct gl_TextureFootprint3DNV {
 8728|       |        //    uvec3 anchor;
 8729|       |        //    uvec3 offset;
 8730|       |        //    uvec2 mask;
 8731|       |        //    uint  lod;
 8732|       |        //    uint  granularity;
 8733|       |        //};
 8734|      0|        spv::Id resultStructType = builder.getContainedTypeId(builder.getTypeId(resultStruct));
 8735|      0|        assert(builder.isStructType(resultStructType));
 8736|       |
 8737|       |        //resType (SPIR-V type) contains 6 elements:
 8738|       |        //Member 0 must be a Boolean type scalar(LOD),
 8739|       |        //Member 1 must be a vector of integer type, whose Signedness operand is 0(anchor),
 8740|       |        //Member 2 must be a vector of integer type, whose Signedness operand is 0(offset),
 8741|       |        //Member 3 must be a vector of integer type, whose Signedness operand is 0(mask),
 8742|       |        //Member 4 must be a scalar of integer type, whose Signedness operand is 0(lod),
 8743|       |        //Member 5 must be a scalar of integer type, whose Signedness operand is 0(granularity).
 8744|      0|        std::vector<spv::Id> members;
 8745|      0|        members.push_back(resultType());
 8746|      0|        for (int i = 0; i < 5; i++) {
  ------------------
  |  Branch (8746:25): [True: 0, False: 0]
  ------------------
 8747|      0|            members.push_back(builder.getContainedTypeId(resultStructType, i));
 8748|      0|        }
 8749|      0|        spv::Id resType = builder.makeStructType(members, {}, "ResType");
 8750|       |
 8751|       |        //call ImageFootprintNV
 8752|      0|        spv::Id res = builder.createTextureCall(precision, resType, sparse, cracked.fetch, cracked.proj,
 8753|      0|                                                cracked.gather, noImplicitLod, params, signExtensionMask());
 8754|       |
 8755|       |        //copy resType (SPIR-V type) to resultStructType(OpenGL type)
 8756|      0|        for (int i = 0; i < 5; i++) {
  ------------------
  |  Branch (8756:25): [True: 0, False: 0]
  ------------------
 8757|      0|            builder.clearAccessChain();
 8758|      0|            builder.setAccessChainLValue(resultStruct);
 8759|       |
 8760|       |            //Accessing to a struct we created, no coherent flag is set
 8761|      0|            spv::Builder::AccessChain::CoherentFlags flags;
 8762|      0|            flags.clear();
 8763|       |
 8764|      0|            builder.accessChainPush(builder.makeIntConstant(i), flags, 0);
 8765|      0|            builder.accessChainStore(builder.createCompositeExtract(res, builder.getContainedTypeId(resType, i+1),
 8766|      0|                i+1), TranslateNonUniformDecoration(imageType.getQualifier()));
 8767|      0|        }
 8768|      0|        return builder.createCompositeExtract(res, resultType(), 0);
 8769|      0|    }
 8770|       |
 8771|       |    // projective component (might not to move)
 8772|       |    // GLSL: "The texture coordinates consumed from P, not including the last component of P,
 8773|       |    //       are divided by the last component of P."
 8774|       |    // SPIR-V:  "... (u [, v] [, w], q)... It may be a vector larger than needed, but all
 8775|       |    //          unused components will appear after all used components."
 8776|    977|    if (cracked.proj) {
  ------------------
  |  Branch (8776:9): [True: 84, False: 893]
  ------------------
 8777|     84|        int projSourceComp = builder.getNumComponents(params.coords) - 1;
 8778|     84|        int projTargetComp;
 8779|     84|        switch (sampler.dim) {
 8780|     36|        case glslang::Esd1D:   projTargetComp = 1;              break;
  ------------------
  |  Branch (8780:9): [True: 36, False: 48]
  ------------------
 8781|     36|        case glslang::Esd2D:   projTargetComp = 2;              break;
  ------------------
  |  Branch (8781:9): [True: 36, False: 48]
  ------------------
 8782|      0|        case glslang::EsdRect: projTargetComp = 2;              break;
  ------------------
  |  Branch (8782:9): [True: 0, False: 84]
  ------------------
 8783|     12|        default:               projTargetComp = projSourceComp; break;
  ------------------
  |  Branch (8783:9): [True: 12, False: 72]
  ------------------
 8784|     84|        }
 8785|       |        // copy the projective coordinate if we have to
 8786|     84|        if (projTargetComp != projSourceComp) {
  ------------------
  |  Branch (8786:13): [True: 44, False: 40]
  ------------------
 8787|     44|            spv::Id projComp = builder.createCompositeExtract(params.coords,
 8788|     44|                                    builder.getScalarTypeId(builder.getTypeId(params.coords)), projSourceComp);
 8789|     44|            params.coords = builder.createCompositeInsert(projComp, params.coords,
 8790|     44|                                    builder.getTypeId(params.coords), projTargetComp);
 8791|     44|        }
 8792|     84|    }
 8793|       |
 8794|    977|    if (cracked.gather) {
  ------------------
  |  Branch (8794:9): [True: 360, False: 617]
  ------------------
 8795|    360|        spv::GatherModes mode = spv::GatherModes::Max;
 8796|    360|        switch (node->getOp()) {
 8797|     27|        case glslang::EOpTextureGather4x1QCOM:
  ------------------
  |  Branch (8797:9): [True: 27, False: 333]
  ------------------
 8798|     54|        case glslang::EOpTextureGather4x1OffsetQCOM:
  ------------------
  |  Branch (8798:9): [True: 27, False: 333]
  ------------------
 8799|     54|            mode = spv::GatherModes::Gather4x1QCOM;
 8800|     54|            break;
 8801|     27|        case glslang::EOpTextureGatherDQCOM:
  ------------------
  |  Branch (8801:9): [True: 27, False: 333]
  ------------------
 8802|     54|        case glslang::EOpTextureGatherDOffsetQCOM:
  ------------------
  |  Branch (8802:9): [True: 27, False: 333]
  ------------------
 8803|     54|            mode = spv::GatherModes::GatherDQCOM;
 8804|     54|            break;
 8805|     27|        case glslang::EOpTextureGatherH2QCOM:
  ------------------
  |  Branch (8805:9): [True: 27, False: 333]
  ------------------
 8806|     54|        case glslang::EOpTextureGatherH2OffsetQCOM:
  ------------------
  |  Branch (8806:9): [True: 27, False: 333]
  ------------------
 8807|     54|            mode = spv::GatherModes::GatherH2QCOM;
 8808|     54|            break;
 8809|     27|        case glslang::EOpTextureGatherV2QCOM:
  ------------------
  |  Branch (8809:9): [True: 27, False: 333]
  ------------------
 8810|     54|        case glslang::EOpTextureGatherV2OffsetQCOM:
  ------------------
  |  Branch (8810:9): [True: 27, False: 333]
  ------------------
 8811|     54|            mode = spv::GatherModes::GatherV2QCOM;
 8812|     54|            break;
 8813|    144|        default:
  ------------------
  |  Branch (8813:9): [True: 144, False: 216]
  ------------------
 8814|    144|            break;
 8815|    360|        }
 8816|       |
 8817|    360|        if (mode != spv::GatherModes::Max) {
  ------------------
  |  Branch (8817:13): [True: 216, False: 144]
  ------------------
 8818|    216|          if (mode == spv::GatherModes::Gather4x1QCOM) {
  ------------------
  |  Branch (8818:15): [True: 54, False: 162]
  ------------------
 8819|     54|            builder.addCapability(spv::Capability::ImageGatherLinearQCOM);
 8820|    162|          } else {
 8821|    162|            builder.addCapability(spv::Capability::ImageGatherExtendedModesQCOM);
 8822|    162|          }
 8823|    216|          builder.addExtension(spv::E_SPV_QCOM_image_processing3);
 8824|    216|          params.gatherMode = builder.makeIntConstant(unsigned(mode));
 8825|    216|        }
 8826|    360|    }
 8827|       |
 8828|       |    // nonprivate
 8829|    977|    if (imageType.getQualifier().nonprivate) {
  ------------------
  |  Branch (8829:9): [True: 0, False: 977]
  ------------------
 8830|      0|        params.nonprivate = true;
 8831|      0|    }
 8832|       |
 8833|       |    // volatile
 8834|    977|    if (imageType.getQualifier().volatil) {
  ------------------
  |  Branch (8834:9): [True: 0, False: 977]
  ------------------
 8835|      0|        params.volatil = true;
 8836|      0|    }
 8837|       |
 8838|    977|    if (imageType.getQualifier().nontemporal) {
  ------------------
  |  Branch (8838:9): [True: 0, False: 977]
  ------------------
 8839|      0|        params.nontemporal = true;
 8840|      0|    }
 8841|       |
 8842|    977|    std::vector<spv::Id> result( 1,
 8843|    977|        builder.createTextureCall(precision, resultType(), sparse, cracked.fetch, cracked.proj, cracked.gather,
 8844|    977|                                  noImplicitLod, params, signExtensionMask())
 8845|    977|    );
 8846|       |
 8847|    977|    if (components != node->getType().getVectorSize())
  ------------------
  |  Branch (8847:9): [True: 0, False: 977]
  ------------------
 8848|      0|        result[0] = builder.createConstructor(precision, result, convertGlslangToSpvType(node->getType()));
 8849|       |
 8850|    977|    return result[0];
 8851|    977|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser18translateArgumentsERKN7glslang16TIntermAggregateERNSt3__16vectorIjNS5_9allocatorIjEEEERN3spv7Builder11AccessChain13CoherentFlagsE:
 8063|  1.70k|{
 8064|  1.70k|    const glslang::TIntermSequence& glslangArguments = node.getSequence();
 8065|       |
 8066|  1.70k|    glslang::TSampler sampler = {};
 8067|  1.70k|    bool cubeCompare = false;
 8068|  1.70k|    bool f16ShadowCompare = false;
 8069|  1.70k|    if (node.isTexture() || node.isImage()) {
  ------------------
  |  Branch (8069:9): [True: 1.04k, False: 662]
  |  Branch (8069:29): [True: 357, False: 305]
  ------------------
 8070|  1.40k|        sampler = glslangArguments[0]->getAsTyped()->getType().getSampler();
 8071|  1.40k|        cubeCompare = sampler.dim == glslang::EsdCube && sampler.arrayed && sampler.shadow;
  ------------------
  |  Branch (8071:23): [True: 229, False: 1.17k]
  |  Branch (8071:58): [True: 112, False: 117]
  |  Branch (8071:77): [True: 29, False: 83]
  ------------------
 8072|  1.40k|        f16ShadowCompare = sampler.shadow &&
  ------------------
  |  Branch (8072:28): [True: 300, False: 1.10k]
  ------------------
 8073|    300|            glslangArguments[1]->getAsTyped()->getType().getBasicType() == glslang::EbtFloat16;
  ------------------
  |  Branch (8073:13): [True: 96, False: 204]
  ------------------
 8074|  1.40k|    }
 8075|       |
 8076|  7.33k|    for (int i = 0; i < (int)glslangArguments.size(); ++i) {
  ------------------
  |  Branch (8076:21): [True: 5.63k, False: 1.70k]
  ------------------
 8077|  5.63k|        builder.clearAccessChain();
 8078|  5.63k|        glslangArguments[i]->traverse(this);
 8079|       |
 8080|       |        // Special case l-value operands
 8081|  5.63k|        bool lvalue = false;
 8082|  5.63k|        switch (node.getOp()) {
 8083|    132|        case glslang::EOpImageAtomicAdd:
  ------------------
  |  Branch (8083:9): [True: 132, False: 5.49k]
  ------------------
 8084|    264|        case glslang::EOpImageAtomicMin:
  ------------------
  |  Branch (8084:9): [True: 132, False: 5.49k]
  ------------------
 8085|    396|        case glslang::EOpImageAtomicMax:
  ------------------
  |  Branch (8085:9): [True: 132, False: 5.49k]
  ------------------
 8086|    486|        case glslang::EOpImageAtomicAnd:
  ------------------
  |  Branch (8086:9): [True: 90, False: 5.54k]
  ------------------
 8087|    541|        case glslang::EOpImageAtomicOr:
  ------------------
  |  Branch (8087:9): [True: 55, False: 5.57k]
  ------------------
 8088|    641|        case glslang::EOpImageAtomicXor:
  ------------------
  |  Branch (8088:9): [True: 100, False: 5.53k]
  ------------------
 8089|    773|        case glslang::EOpImageAtomicExchange:
  ------------------
  |  Branch (8089:9): [True: 132, False: 5.49k]
  ------------------
 8090|    903|        case glslang::EOpImageAtomicCompSwap:
  ------------------
  |  Branch (8090:9): [True: 130, False: 5.50k]
  ------------------
 8091|    953|        case glslang::EOpImageAtomicLoad:
  ------------------
  |  Branch (8091:9): [True: 50, False: 5.58k]
  ------------------
 8092|  1.01k|        case glslang::EOpImageAtomicStore:
  ------------------
  |  Branch (8092:9): [True: 65, False: 5.56k]
  ------------------
 8093|  1.01k|            if (i == 0)
  ------------------
  |  Branch (8093:17): [True: 226, False: 792]
  ------------------
 8094|    226|                lvalue = true;
 8095|  1.01k|            break;
 8096|    121|        case glslang::EOpSparseImageLoad:
  ------------------
  |  Branch (8096:9): [True: 121, False: 5.50k]
  ------------------
 8097|    121|            if ((sampler.ms && i == 3) || (! sampler.ms && i == 2))
  ------------------
  |  Branch (8097:18): [True: 16, False: 105]
  |  Branch (8097:32): [True: 4, False: 12]
  |  Branch (8097:44): [True: 105, False: 12]
  |  Branch (8097:60): [True: 35, False: 70]
  ------------------
 8098|     39|                lvalue = true;
 8099|    121|            break;
 8100|     94|        case glslang::EOpSparseTexture:
  ------------------
  |  Branch (8100:9): [True: 94, False: 5.53k]
  ------------------
 8101|     94|            if (((cubeCompare || f16ShadowCompare) && i == 3) || (! (cubeCompare || f16ShadowCompare) && i == 2))
  ------------------
  |  Branch (8101:19): [True: 12, False: 82]
  |  Branch (8101:34): [True: 14, False: 68]
  |  Branch (8101:55): [True: 6, False: 20]
  |  Branch (8101:70): [True: 9, False: 79]
  |  Branch (8101:85): [True: 11, False: 68]
  |  Branch (8101:106): [True: 21, False: 47]
  ------------------
 8102|     27|                lvalue = true;
 8103|     94|            break;
 8104|    121|        case glslang::EOpSparseTextureClamp:
  ------------------
  |  Branch (8104:9): [True: 121, False: 5.50k]
  ------------------
 8105|    121|            if (((cubeCompare || f16ShadowCompare) && i == 4) || (! (cubeCompare || f16ShadowCompare) && i == 3))
  ------------------
  |  Branch (8105:19): [True: 15, False: 106]
  |  Branch (8105:34): [True: 17, False: 89]
  |  Branch (8105:55): [True: 6, False: 26]
  |  Branch (8105:70): [True: 12, False: 103]
  |  Branch (8105:85): [True: 14, False: 89]
  |  Branch (8105:106): [True: 21, False: 68]
  ------------------
 8106|     27|                lvalue = true;
 8107|    121|            break;
 8108|     73|        case glslang::EOpSparseTextureLod:
  ------------------
  |  Branch (8108:9): [True: 73, False: 5.55k]
  ------------------
 8109|    139|        case glslang::EOpSparseTextureOffset:
  ------------------
  |  Branch (8109:9): [True: 66, False: 5.56k]
  ------------------
 8110|    139|            if  ((f16ShadowCompare && i == 4) || (! f16ShadowCompare && i == 3))
  ------------------
  |  Branch (8110:19): [True: 16, False: 123]
  |  Branch (8110:39): [True: 3, False: 13]
  |  Branch (8110:51): [True: 123, False: 13]
  |  Branch (8110:73): [True: 30, False: 93]
  ------------------
 8111|     33|                lvalue = true;
 8112|    139|            break;
 8113|     40|        case glslang::EOpSparseTextureFetch:
  ------------------
  |  Branch (8113:9): [True: 40, False: 5.59k]
  ------------------
 8114|     40|            if ((sampler.dim != glslang::EsdRect && i == 3) || (sampler.dim == glslang::EsdRect && i == 2))
  ------------------
  |  Branch (8114:18): [True: 40, False: 0]
  |  Branch (8114:53): [True: 10, False: 30]
  |  Branch (8114:65): [True: 0, False: 30]
  |  Branch (8114:100): [True: 0, False: 0]
  ------------------
 8115|     10|                lvalue = true;
 8116|     40|            break;
 8117|     30|        case glslang::EOpSparseTextureFetchOffset:
  ------------------
  |  Branch (8117:9): [True: 30, False: 5.60k]
  ------------------
 8118|     30|            if ((sampler.dim != glslang::EsdRect && i == 4) || (sampler.dim == glslang::EsdRect && i == 3))
  ------------------
  |  Branch (8118:18): [True: 30, False: 0]
  |  Branch (8118:53): [True: 6, False: 24]
  |  Branch (8118:65): [True: 0, False: 24]
  |  Branch (8118:100): [True: 0, False: 0]
  ------------------
 8119|      6|                lvalue = true;
 8120|     30|            break;
 8121|     61|        case glslang::EOpSparseTextureLodOffset:
  ------------------
  |  Branch (8121:9): [True: 61, False: 5.56k]
  ------------------
 8122|    184|        case glslang::EOpSparseTextureGrad:
  ------------------
  |  Branch (8122:9): [True: 123, False: 5.50k]
  ------------------
 8123|    265|        case glslang::EOpSparseTextureOffsetClamp:
  ------------------
  |  Branch (8123:9): [True: 81, False: 5.54k]
  ------------------
 8124|    265|            if ((f16ShadowCompare && i == 5) || (! f16ShadowCompare && i == 4))
  ------------------
  |  Branch (8124:18): [True: 37, False: 228]
  |  Branch (8124:38): [True: 6, False: 31]
  |  Branch (8124:50): [True: 228, False: 31]
  |  Branch (8124:72): [True: 45, False: 183]
  ------------------
 8125|     51|                lvalue = true;
 8126|    265|            break;
 8127|     92|        case glslang::EOpSparseTextureGradOffset:
  ------------------
  |  Branch (8127:9): [True: 92, False: 5.53k]
  ------------------
 8128|     92|        case glslang::EOpSparseTextureGradClamp:
  ------------------
  |  Branch (8128:9): [True: 0, False: 5.63k]
  ------------------
 8129|     92|            if ((f16ShadowCompare && i == 6) || (! f16ShadowCompare && i == 5))
  ------------------
  |  Branch (8129:18): [True: 14, False: 78]
  |  Branch (8129:38): [True: 2, False: 12]
  |  Branch (8129:50): [True: 78, False: 12]
  |  Branch (8129:72): [True: 13, False: 65]
  ------------------
 8130|     15|                lvalue = true;
 8131|     92|            break;
 8132|    107|        case glslang::EOpSparseTextureGradOffsetClamp:
  ------------------
  |  Branch (8132:9): [True: 107, False: 5.52k]
  ------------------
 8133|    107|            if ((f16ShadowCompare && i == 7) || (! f16ShadowCompare && i == 6))
  ------------------
  |  Branch (8133:18): [True: 16, False: 91]
  |  Branch (8133:38): [True: 2, False: 14]
  |  Branch (8133:50): [True: 91, False: 14]
  |  Branch (8133:72): [True: 13, False: 78]
  ------------------
 8134|     15|                lvalue = true;
 8135|    107|            break;
 8136|    100|        case glslang::EOpSparseTextureGather:
  ------------------
  |  Branch (8136:9): [True: 100, False: 5.53k]
  ------------------
 8137|    100|            if ((sampler.shadow && i == 3) || (! sampler.shadow && i == 2))
  ------------------
  |  Branch (8137:18): [True: 48, False: 52]
  |  Branch (8137:36): [True: 12, False: 36]
  |  Branch (8137:48): [True: 52, False: 36]
  |  Branch (8137:68): [True: 12, False: 40]
  ------------------
 8138|     24|                lvalue = true;
 8139|    100|            break;
 8140|     62|        case glslang::EOpSparseTextureGatherOffset:
  ------------------
  |  Branch (8140:9): [True: 62, False: 5.56k]
  ------------------
 8141|    124|        case glslang::EOpSparseTextureGatherOffsets:
  ------------------
  |  Branch (8141:9): [True: 62, False: 5.56k]
  ------------------
 8142|    124|            if ((sampler.shadow && i == 4) || (! sampler.shadow && i == 3))
  ------------------
  |  Branch (8142:18): [True: 60, False: 64]
  |  Branch (8142:36): [True: 12, False: 48]
  |  Branch (8142:48): [True: 64, False: 48]
  |  Branch (8142:68): [True: 12, False: 52]
  ------------------
 8143|     24|                lvalue = true;
 8144|    124|            break;
 8145|     60|        case glslang::EOpSparseTextureGatherLod:
  ------------------
  |  Branch (8145:9): [True: 60, False: 5.57k]
  ------------------
 8146|     60|            if (i == 3)
  ------------------
  |  Branch (8146:17): [True: 12, False: 48]
  ------------------
 8147|     12|                lvalue = true;
 8148|     60|            break;
 8149|     36|        case glslang::EOpSparseTextureGatherLodOffset:
  ------------------
  |  Branch (8149:9): [True: 36, False: 5.59k]
  ------------------
 8150|     72|        case glslang::EOpSparseTextureGatherLodOffsets:
  ------------------
  |  Branch (8150:9): [True: 36, False: 5.59k]
  ------------------
 8151|     72|            if (i == 4)
  ------------------
  |  Branch (8151:17): [True: 12, False: 60]
  ------------------
 8152|     12|                lvalue = true;
 8153|     72|            break;
 8154|      0|        case glslang::EOpSparseImageLoadLod:
  ------------------
  |  Branch (8154:9): [True: 0, False: 5.63k]
  ------------------
 8155|      0|            if (i == 3)
  ------------------
  |  Branch (8155:17): [True: 0, False: 0]
  ------------------
 8156|      0|                lvalue = true;
 8157|      0|            break;
 8158|      0|        case glslang::EOpImageSampleFootprintNV:
  ------------------
  |  Branch (8158:9): [True: 0, False: 5.63k]
  ------------------
 8159|      0|            if (i == 4)
  ------------------
  |  Branch (8159:17): [True: 0, False: 0]
  ------------------
 8160|      0|                lvalue = true;
 8161|      0|            break;
 8162|      0|        case glslang::EOpImageSampleFootprintClampNV:
  ------------------
  |  Branch (8162:9): [True: 0, False: 5.63k]
  ------------------
 8163|      0|        case glslang::EOpImageSampleFootprintLodNV:
  ------------------
  |  Branch (8163:9): [True: 0, False: 5.63k]
  ------------------
 8164|      0|            if (i == 5)
  ------------------
  |  Branch (8164:17): [True: 0, False: 0]
  ------------------
 8165|      0|                lvalue = true;
 8166|      0|            break;
 8167|      0|        case glslang::EOpImageSampleFootprintGradNV:
  ------------------
  |  Branch (8167:9): [True: 0, False: 5.63k]
  ------------------
 8168|      0|            if (i == 6)
  ------------------
  |  Branch (8168:17): [True: 0, False: 0]
  ------------------
 8169|      0|                lvalue = true;
 8170|      0|            break;
 8171|      0|        case glslang::EOpImageSampleFootprintGradClampNV:
  ------------------
  |  Branch (8171:9): [True: 0, False: 5.63k]
  ------------------
 8172|      0|            if (i == 7)
  ------------------
  |  Branch (8172:17): [True: 0, False: 0]
  ------------------
 8173|      0|                lvalue = true;
 8174|      0|            break;
 8175|      0|        case glslang::EOpRayQueryGetIntersectionTriangleVertexPositionsEXT:
  ------------------
  |  Branch (8175:9): [True: 0, False: 5.63k]
  ------------------
 8176|      0|        case glslang::EOpRayQueryGetIntersectionLSSPositionsNV:
  ------------------
  |  Branch (8176:9): [True: 0, False: 5.63k]
  ------------------
 8177|      0|        case glslang::EOpRayQueryGetIntersectionLSSRadiiNV:
  ------------------
  |  Branch (8177:9): [True: 0, False: 5.63k]
  ------------------
 8178|      0|            if (i == 2)
  ------------------
  |  Branch (8178:17): [True: 0, False: 0]
  ------------------
 8179|      0|                lvalue = true;
 8180|      0|            break;
 8181|      0|        case glslang::EOpConstructSaturated:
  ------------------
  |  Branch (8181:9): [True: 0, False: 5.63k]
  ------------------
 8182|      0|            if (i == 0)
  ------------------
  |  Branch (8182:17): [True: 0, False: 0]
  ------------------
 8183|      0|                lvalue = true;
 8184|      0|            break;
 8185|  3.24k|        default:
  ------------------
  |  Branch (8185:9): [True: 3.24k, False: 2.38k]
  ------------------
 8186|  3.24k|            break;
 8187|  5.63k|        }
 8188|       |
 8189|  5.63k|        if (lvalue) {
  ------------------
  |  Branch (8189:13): [True: 521, False: 5.10k]
  ------------------
 8190|    521|            spv::Id lvalue_id = builder.accessChainGetLValue();
 8191|    521|            arguments.push_back(lvalue_id);
 8192|    521|            lvalueCoherentFlags = builder.getAccessChain().coherentFlags;
 8193|    521|            builder.addDecoration(lvalue_id, TranslateNonUniformDecoration(lvalueCoherentFlags));
 8194|    521|            lvalueCoherentFlags |= TranslateCoherent(glslangArguments[i]->getAsTyped()->getType());
 8195|  5.10k|        } else {
 8196|  5.10k|            if (i > 0 &&
  ------------------
  |  Branch (8196:17): [True: 3.63k, False: 1.47k]
  ------------------
 8197|  3.63k|                glslangArguments[i]->getAsSymbolNode() && glslangArguments[i-1]->getAsSymbolNode() &&
  ------------------
  |  Branch (8197:17): [True: 2.09k, False: 1.53k]
  |  Branch (8197:59): [True: 1.86k, False: 231]
  ------------------
 8198|  1.86k|                glslangArguments[i]->getAsSymbolNode()->getId() == glslangArguments[i-1]->getAsSymbolNode()->getId()) {
  ------------------
  |  Branch (8198:17): [True: 186, False: 1.68k]
  ------------------
 8199|       |                // Reuse the id if possible
 8200|    186|                spv::Id id = arguments[i-1];
 8201|    186|                arguments.push_back(id);
 8202|  4.92k|            } else {
 8203|  4.92k|                arguments.push_back(accessChainLoad(glslangArguments[i]->getAsTyped()->getType()));
 8204|  4.92k|            }
 8205|  5.10k|        }
 8206|  5.63k|    }
 8207|  1.70k|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser18translateArgumentsERN7glslang12TIntermUnaryERNSt3__16vectorIjNS4_9allocatorIjEEEE:
 8210|     38|{
 8211|     38|    builder.clearAccessChain();
 8212|     38|    node.getOperand()->traverse(this);
 8213|     38|    arguments.push_back(accessChainLoad(node.getOperand()->getType()));
 8214|     38|}
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser30createImageTextureFunctionCallEPN7glslang15TIntermOperatorEENK3$_0clEv:
 8233|  1.11k|    const auto signExtensionMask = [&]() {
 8234|  1.11k|        if (builder.getSpvVersion() >= spv::Spv_1_4) {
  ------------------
  |  Branch (8234:13): [True: 0, False: 1.11k]
  ------------------
 8235|      0|            if (sampler.type == glslang::EbtUint)
  ------------------
  |  Branch (8235:17): [True: 0, False: 0]
  ------------------
 8236|      0|                return spv::ImageOperandsMask::ZeroExtend;
 8237|      0|            else if (sampler.type == glslang::EbtInt)
  ------------------
  |  Branch (8237:22): [True: 0, False: 0]
  ------------------
 8238|      0|                return spv::ImageOperandsMask::SignExtend;
 8239|      0|        }
 8240|  1.11k|        return spv::ImageOperandsMask::MaskNone;
 8241|  1.11k|    };
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser30createImageTextureFunctionCallEPN7glslang15TIntermOperatorEENK3$_1clEv:
 8311|  1.50k|    auto resultType = [&returnType,this]{ return convertGlslangToSpvType(returnType); };
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser22TranslateImageOperandsERKN3spv7Builder11AccessChain13CoherentFlagsE:
  719|    129|{
  720|    129|    spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
  721|       |
  722|    129|    if (!glslangIntermediate->usingVulkanMemoryModel())
  ------------------
  |  Branch (722:9): [True: 129, False: 0]
  ------------------
  723|    129|        return mask;
  724|       |
  725|      0|    if (coherentFlags.volatil ||
  ------------------
  |  Branch (725:9): [True: 0, False: 0]
  ------------------
  726|      0|        coherentFlags.anyCoherent()) {
  ------------------
  |  Branch (726:9): [True: 0, False: 0]
  ------------------
  727|      0|        mask = mask | spv::ImageOperandsMask::MakeTexelAvailableKHR |
  728|      0|                      spv::ImageOperandsMask::MakeTexelVisibleKHR;
  729|      0|    }
  730|      0|    if (coherentFlags.nonprivate) {
  ------------------
  |  Branch (730:9): [True: 0, False: 0]
  ------------------
  731|      0|        mask = mask | spv::ImageOperandsMask::NonPrivateTexelKHR;
  732|      0|    }
  733|      0|    if (coherentFlags.volatil) {
  ------------------
  |  Branch (733:9): [True: 0, False: 0]
  ------------------
  734|      0|        mask = mask | spv::ImageOperandsMask::VolatileTexelKHR;
  735|      0|    }
  736|      0|    if (coherentFlags.nontemporal && builder.getSpvVersion() >= spv::Spv_1_6) {
  ------------------
  |  Branch (736:9): [True: 0, False: 0]
  |  Branch (736:38): [True: 0, False: 0]
  ------------------
  737|      0|        mask = mask | spv::ImageOperandsMask::Nontemporal;
  738|      0|    }
  739|      0|    if (mask != spv::ImageOperandsMask::MaskNone) {
  ------------------
  |  Branch (739:9): [True: 0, False: 0]
  ------------------
  740|      0|        builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
  741|      0|    }
  742|       |
  743|      0|    return mask;
  744|    129|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser21createAtomicOperationEN7glslang9TOperatorEN3spv10DecorationEjRNSt3__16vectorIjNS5_9allocatorIjEEEENS1_10TBasicTypeERKNS3_7Builder11AccessChain13CoherentFlagsERKNS1_5TTypeE:
10312|    234|{
10313|    234|    spv::Op opCode = spv::Op::OpNop;
10314|       |
10315|    234|    switch (op) {
10316|      2|    case glslang::EOpAtomicAdd:
  ------------------
  |  Branch (10316:5): [True: 2, False: 232]
  ------------------
10317|     36|    case glslang::EOpImageAtomicAdd:
  ------------------
  |  Branch (10317:5): [True: 34, False: 200]
  ------------------
10318|     36|    case glslang::EOpAtomicCounterAdd:
  ------------------
  |  Branch (10318:5): [True: 0, False: 234]
  ------------------
10319|     36|        opCode = spv::Op::OpAtomicIAdd;
10320|     36|        if (typeProxy == glslang::EbtFloat16 || typeProxy == glslang::EbtFloat || typeProxy == glslang::EbtDouble) {
  ------------------
  |  Branch (10320:13): [True: 16, False: 20]
  |  Branch (10320:49): [True: 0, False: 20]
  |  Branch (10320:83): [True: 0, False: 20]
  ------------------
10321|     16|            opCode = spv::Op::OpAtomicFAddEXT;
10322|     16|            if (typeProxy == glslang::EbtFloat16 &&
  ------------------
  |  Branch (10322:17): [True: 16, False: 0]
  ------------------
10323|     16|                (opType.getVectorSize() == 2 || opType.getVectorSize() == 4)) {
  ------------------
  |  Branch (10323:18): [True: 8, False: 8]
  |  Branch (10323:49): [True: 8, False: 0]
  ------------------
10324|     16|                builder.addExtension(spv::E_SPV_NV_shader_atomic_fp16_vector);
10325|     16|                builder.addCapability(spv::Capability::AtomicFloat16VectorNV);
10326|     16|            } else {
10327|      0|                builder.addExtension(spv::E_SPV_EXT_shader_atomic_float_add);
10328|      0|                if (typeProxy == glslang::EbtFloat16) {
  ------------------
  |  Branch (10328:21): [True: 0, False: 0]
  ------------------
10329|      0|                    builder.addExtension(spv::E_SPV_EXT_shader_atomic_float16_add);
10330|      0|                    builder.addCapability(spv::Capability::AtomicFloat16AddEXT);
10331|      0|                } else if (typeProxy == glslang::EbtFloat) {
  ------------------
  |  Branch (10331:28): [True: 0, False: 0]
  ------------------
10332|      0|                    builder.addCapability(spv::Capability::AtomicFloat32AddEXT);
10333|      0|                } else {
10334|      0|                    builder.addCapability(spv::Capability::AtomicFloat64AddEXT);
10335|      0|                }
10336|      0|            }
10337|     16|        }
10338|     36|        break;
10339|      0|    case glslang::EOpAtomicSubtract:
  ------------------
  |  Branch (10339:5): [True: 0, False: 234]
  ------------------
10340|      0|    case glslang::EOpAtomicCounterSubtract:
  ------------------
  |  Branch (10340:5): [True: 0, False: 234]
  ------------------
10341|      0|        opCode = spv::Op::OpAtomicISub;
10342|      0|        break;
10343|      2|    case glslang::EOpAtomicMin:
  ------------------
  |  Branch (10343:5): [True: 2, False: 232]
  ------------------
10344|     36|    case glslang::EOpImageAtomicMin:
  ------------------
  |  Branch (10344:5): [True: 34, False: 200]
  ------------------
10345|     36|    case glslang::EOpAtomicCounterMin:
  ------------------
  |  Branch (10345:5): [True: 0, False: 234]
  ------------------
10346|     36|        if (typeProxy == glslang::EbtFloat16 || typeProxy == glslang::EbtFloat || typeProxy == glslang::EbtDouble) {
  ------------------
  |  Branch (10346:13): [True: 16, False: 20]
  |  Branch (10346:49): [True: 0, False: 20]
  |  Branch (10346:83): [True: 0, False: 20]
  ------------------
10347|     16|            opCode = spv::Op::OpAtomicFMinEXT;
10348|     16|            if (typeProxy == glslang::EbtFloat16 &&
  ------------------
  |  Branch (10348:17): [True: 16, False: 0]
  ------------------
10349|     16|                (opType.getVectorSize() == 2 || opType.getVectorSize() == 4)) {
  ------------------
  |  Branch (10349:18): [True: 8, False: 8]
  |  Branch (10349:49): [True: 8, False: 0]
  ------------------
10350|     16|                builder.addExtension(spv::E_SPV_NV_shader_atomic_fp16_vector);
10351|     16|                builder.addCapability(spv::Capability::AtomicFloat16VectorNV);
10352|     16|            } else {
10353|      0|                builder.addExtension(spv::E_SPV_EXT_shader_atomic_float_min_max);
10354|      0|                if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (10354:21): [True: 0, False: 0]
  ------------------
10355|      0|                    builder.addCapability(spv::Capability::AtomicFloat16MinMaxEXT);
10356|      0|                else if (typeProxy == glslang::EbtFloat)
  ------------------
  |  Branch (10356:26): [True: 0, False: 0]
  ------------------
10357|      0|                    builder.addCapability(spv::Capability::AtomicFloat32MinMaxEXT);
10358|      0|                else
10359|      0|                    builder.addCapability(spv::Capability::AtomicFloat64MinMaxEXT);
10360|      0|            }
10361|     20|        } else if (typeProxy == glslang::EbtUint || typeProxy == glslang::EbtUint64) {
  ------------------
  |  Branch (10361:20): [True: 0, False: 20]
  |  Branch (10361:53): [True: 10, False: 10]
  ------------------
10362|     10|            opCode = spv::Op::OpAtomicUMin;
10363|     10|        } else {
10364|     10|            opCode = spv::Op::OpAtomicSMin;
10365|     10|        }
10366|     36|        break;
10367|      2|    case glslang::EOpAtomicMax:
  ------------------
  |  Branch (10367:5): [True: 2, False: 232]
  ------------------
10368|     36|    case glslang::EOpImageAtomicMax:
  ------------------
  |  Branch (10368:5): [True: 34, False: 200]
  ------------------
10369|     36|    case glslang::EOpAtomicCounterMax:
  ------------------
  |  Branch (10369:5): [True: 0, False: 234]
  ------------------
10370|     36|        if (typeProxy == glslang::EbtFloat16 || typeProxy == glslang::EbtFloat || typeProxy == glslang::EbtDouble) {
  ------------------
  |  Branch (10370:13): [True: 16, False: 20]
  |  Branch (10370:49): [True: 0, False: 20]
  |  Branch (10370:83): [True: 0, False: 20]
  ------------------
10371|     16|            opCode = spv::Op::OpAtomicFMaxEXT;
10372|     16|            if (typeProxy == glslang::EbtFloat16 &&
  ------------------
  |  Branch (10372:17): [True: 16, False: 0]
  ------------------
10373|     16|                (opType.getVectorSize() == 2 || opType.getVectorSize() == 4)) {
  ------------------
  |  Branch (10373:18): [True: 8, False: 8]
  |  Branch (10373:49): [True: 8, False: 0]
  ------------------
10374|     16|                builder.addExtension(spv::E_SPV_NV_shader_atomic_fp16_vector);
10375|     16|                builder.addCapability(spv::Capability::AtomicFloat16VectorNV);
10376|     16|            } else {
10377|      0|                builder.addExtension(spv::E_SPV_EXT_shader_atomic_float_min_max);
10378|      0|                if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (10378:21): [True: 0, False: 0]
  ------------------
10379|      0|                    builder.addCapability(spv::Capability::AtomicFloat16MinMaxEXT);
10380|      0|                else if (typeProxy == glslang::EbtFloat)
  ------------------
  |  Branch (10380:26): [True: 0, False: 0]
  ------------------
10381|      0|                    builder.addCapability(spv::Capability::AtomicFloat32MinMaxEXT);
10382|      0|                else
10383|      0|                    builder.addCapability(spv::Capability::AtomicFloat64MinMaxEXT);
10384|      0|            }
10385|     20|        } else if (typeProxy == glslang::EbtUint || typeProxy == glslang::EbtUint64) {
  ------------------
  |  Branch (10385:20): [True: 0, False: 20]
  |  Branch (10385:53): [True: 10, False: 10]
  ------------------
10386|     10|            opCode = spv::Op::OpAtomicUMax;
10387|     10|        } else {
10388|     10|            opCode = spv::Op::OpAtomicSMax;
10389|     10|        }
10390|     36|        break;
10391|      0|    case glslang::EOpAtomicAnd:
  ------------------
  |  Branch (10391:5): [True: 0, False: 234]
  ------------------
10392|     20|    case glslang::EOpImageAtomicAnd:
  ------------------
  |  Branch (10392:5): [True: 20, False: 214]
  ------------------
10393|     20|    case glslang::EOpAtomicCounterAnd:
  ------------------
  |  Branch (10393:5): [True: 0, False: 234]
  ------------------
10394|     20|        opCode = spv::Op::OpAtomicAnd;
10395|     20|        break;
10396|      0|    case glslang::EOpAtomicOr:
  ------------------
  |  Branch (10396:5): [True: 0, False: 234]
  ------------------
10397|     10|    case glslang::EOpImageAtomicOr:
  ------------------
  |  Branch (10397:5): [True: 10, False: 224]
  ------------------
10398|     10|    case glslang::EOpAtomicCounterOr:
  ------------------
  |  Branch (10398:5): [True: 0, False: 234]
  ------------------
10399|     10|        opCode = spv::Op::OpAtomicOr;
10400|     10|        break;
10401|      0|    case glslang::EOpAtomicXor:
  ------------------
  |  Branch (10401:5): [True: 0, False: 234]
  ------------------
10402|     20|    case glslang::EOpImageAtomicXor:
  ------------------
  |  Branch (10402:5): [True: 20, False: 214]
  ------------------
10403|     20|    case glslang::EOpAtomicCounterXor:
  ------------------
  |  Branch (10403:5): [True: 0, False: 234]
  ------------------
10404|     20|        opCode = spv::Op::OpAtomicXor;
10405|     20|        break;
10406|      2|    case glslang::EOpAtomicExchange:
  ------------------
  |  Branch (10406:5): [True: 2, False: 232]
  ------------------
10407|     36|    case glslang::EOpImageAtomicExchange:
  ------------------
  |  Branch (10407:5): [True: 34, False: 200]
  ------------------
10408|     36|    case glslang::EOpAtomicCounterExchange:
  ------------------
  |  Branch (10408:5): [True: 0, False: 234]
  ------------------
10409|     36|        if ((typeProxy == glslang::EbtFloat16) &&
  ------------------
  |  Branch (10409:13): [True: 16, False: 20]
  ------------------
10410|     16|            (opType.getVectorSize() == 2 || opType.getVectorSize() == 4)) {
  ------------------
  |  Branch (10410:14): [True: 8, False: 8]
  |  Branch (10410:45): [True: 8, False: 0]
  ------------------
10411|     16|                builder.addExtension(spv::E_SPV_NV_shader_atomic_fp16_vector);
10412|     16|                builder.addCapability(spv::Capability::AtomicFloat16VectorNV);
10413|     16|        }
10414|       |
10415|     36|        opCode = spv::Op::OpAtomicExchange;
10416|     36|        break;
10417|      0|    case glslang::EOpAtomicCompSwap:
  ------------------
  |  Branch (10417:5): [True: 0, False: 234]
  ------------------
10418|     20|    case glslang::EOpImageAtomicCompSwap:
  ------------------
  |  Branch (10418:5): [True: 20, False: 214]
  ------------------
10419|     20|    case glslang::EOpAtomicCounterCompSwap:
  ------------------
  |  Branch (10419:5): [True: 0, False: 234]
  ------------------
10420|     20|        opCode = spv::Op::OpAtomicCompareExchange;
10421|     20|        break;
10422|      0|    case glslang::EOpAtomicCounterIncrement:
  ------------------
  |  Branch (10422:5): [True: 0, False: 234]
  ------------------
10423|      0|        opCode = spv::Op::OpAtomicIIncrement;
10424|      0|        break;
10425|      0|    case glslang::EOpAtomicCounterDecrement:
  ------------------
  |  Branch (10425:5): [True: 0, False: 234]
  ------------------
10426|      0|        opCode = spv::Op::OpAtomicIDecrement;
10427|      0|        break;
10428|      0|    case glslang::EOpAtomicCounter:
  ------------------
  |  Branch (10428:5): [True: 0, False: 234]
  ------------------
10429|     10|    case glslang::EOpImageAtomicLoad:
  ------------------
  |  Branch (10429:5): [True: 10, False: 224]
  ------------------
10430|     10|    case glslang::EOpAtomicLoad:
  ------------------
  |  Branch (10430:5): [True: 0, False: 234]
  ------------------
10431|     10|        opCode = spv::Op::OpAtomicLoad;
10432|     10|        break;
10433|      0|    case glslang::EOpAtomicStore:
  ------------------
  |  Branch (10433:5): [True: 0, False: 234]
  ------------------
10434|     10|    case glslang::EOpImageAtomicStore:
  ------------------
  |  Branch (10434:5): [True: 10, False: 224]
  ------------------
10435|     10|        opCode = spv::Op::OpAtomicStore;
10436|     10|        break;
10437|      0|    default:
  ------------------
  |  Branch (10437:5): [True: 0, False: 234]
  ------------------
10438|      0|        assert(0);
10439|      0|        break;
10440|    234|    }
10441|       |
10442|    234|    if (typeProxy == glslang::EbtInt64 || typeProxy == glslang::EbtUint64)
  ------------------
  |  Branch (10442:9): [True: 80, False: 154]
  |  Branch (10442:43): [True: 90, False: 64]
  ------------------
10443|    170|        builder.addCapability(spv::Capability::Int64Atomics);
10444|       |
10445|       |    // Sort out the operands
10446|       |    //  - mapping from glslang -> SPV
10447|       |    //  - there are extra SPV operands that are optional in glslang
10448|       |    //  - compare-exchange swaps the value and comparator
10449|       |    //  - compare-exchange has an extra memory semantics
10450|       |    //  - EOpAtomicCounterDecrement needs a post decrement
10451|    234|    spv::Id pointerId = 0, compareId = 0, valueId = 0;
10452|       |    // scope defaults to Device in the old model, QueueFamilyKHR in the new model
10453|    234|    spv::Id scopeId;
10454|    234|    if (glslangIntermediate->usingVulkanMemoryModel()) {
  ------------------
  |  Branch (10454:9): [True: 0, False: 234]
  ------------------
10455|      0|        scopeId = builder.makeUintConstant(spv::Scope::QueueFamilyKHR);
10456|    234|    } else {
10457|    234|        scopeId = builder.makeUintConstant(spv::Scope::Device);
10458|    234|    }
10459|       |    // semantics default to relaxed
10460|    234|    spv::Id semanticsId = builder.makeUintConstant(lvalueCoherentFlags.isVolatile() &&
  ------------------
  |  Branch (10460:52): [True: 56, False: 178]
  ------------------
10461|     56|        glslangIntermediate->usingVulkanMemoryModel() ?
  ------------------
  |  Branch (10461:9): [True: 0, False: 56]
  ------------------
10462|      0|                                                    spv::MemorySemanticsMask::Volatile :
10463|    234|                                                    spv::MemorySemanticsMask::MaskNone);
10464|    234|    spv::Id semanticsId2 = semanticsId;
10465|       |
10466|    234|    pointerId = operands[0];
10467|    234|    if (opCode == spv::Op::OpAtomicIIncrement || opCode == spv::Op::OpAtomicIDecrement) {
  ------------------
  |  Branch (10467:9): [True: 0, False: 234]
  |  Branch (10467:50): [True: 0, False: 234]
  ------------------
10468|       |        // no additional operands
10469|    234|    } else if (opCode == spv::Op::OpAtomicCompareExchange) {
  ------------------
  |  Branch (10469:16): [True: 20, False: 214]
  ------------------
10470|     20|        compareId = operands[1];
10471|     20|        valueId = operands[2];
10472|     20|        if (operands.size() > 3) {
  ------------------
  |  Branch (10472:13): [True: 10, False: 10]
  ------------------
10473|     10|            scopeId = operands[3];
10474|     10|            semanticsId = builder.makeUintConstant(
10475|     10|                builder.getConstantScalar(operands[4]) | builder.getConstantScalar(operands[5]));
10476|     10|            semanticsId2 = builder.makeUintConstant(
10477|     10|                builder.getConstantScalar(operands[6]) | builder.getConstantScalar(operands[7]));
10478|     10|        }
10479|    214|    } else if (opCode == spv::Op::OpAtomicLoad) {
  ------------------
  |  Branch (10479:16): [True: 10, False: 204]
  ------------------
10480|     10|        if (operands.size() > 1) {
  ------------------
  |  Branch (10480:13): [True: 10, False: 0]
  ------------------
10481|     10|            scopeId = operands[1];
10482|     10|            semanticsId = builder.makeUintConstant(
10483|     10|                builder.getConstantScalar(operands[2]) | builder.getConstantScalar(operands[3]));
10484|     10|        }
10485|    204|    } else {
10486|       |        // atomic store or RMW
10487|    204|        valueId = operands[1];
10488|    204|        if (operands.size() > 2) {
  ------------------
  |  Branch (10488:13): [True: 75, False: 129]
  ------------------
10489|     75|            scopeId = operands[2];
10490|     75|            semanticsId = builder.makeUintConstant
10491|     75|                (builder.getConstantScalar(operands[3]) | builder.getConstantScalar(operands[4]));
10492|     75|        }
10493|    204|    }
10494|       |
10495|       |    // Check for capabilities
10496|    234|    auto const semanticsImmediate = (spv::MemorySemanticsMask)(builder.getConstantScalar(semanticsId) | builder.getConstantScalar(semanticsId2));
10497|    234|    if (anySet(semanticsImmediate, spv::MemorySemanticsMask::MakeAvailableKHR |
  ------------------
  |  Branch (10497:9): [True: 0, False: 234]
  ------------------
10498|    234|                                   spv::MemorySemanticsMask::MakeVisibleKHR |
10499|    234|                                   spv::MemorySemanticsMask::OutputMemoryKHR |
10500|    234|                                   spv::MemorySemanticsMask::Volatile)) {
10501|      0|        builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
10502|      0|    }
10503|       |
10504|    234|    auto const scope = (spv::Scope)builder.getConstantScalar(scopeId);
10505|    234|    if (scope == spv::Scope::QueueFamily) {
  ------------------
  |  Branch (10505:9): [True: 0, False: 234]
  ------------------
10506|      0|        builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
10507|      0|    }
10508|       |
10509|    234|    if (glslangIntermediate->usingVulkanMemoryModel() && scope == spv::Scope::Device) {
  ------------------
  |  Branch (10509:9): [True: 0, False: 234]
  |  Branch (10509:58): [True: 0, False: 0]
  ------------------
10510|      0|        builder.addCapability(spv::Capability::VulkanMemoryModelDeviceScopeKHR);
10511|      0|    }
10512|       |
10513|    234|    std::vector<spv::Id> spvAtomicOperands;  // hold the spv operands
10514|    234|    spvAtomicOperands.reserve(6);
10515|    234|    spvAtomicOperands.push_back(pointerId);
10516|    234|    spvAtomicOperands.push_back(scopeId);
10517|    234|    spvAtomicOperands.push_back(semanticsId);
10518|    234|    if (opCode == spv::Op::OpAtomicCompareExchange) {
  ------------------
  |  Branch (10518:9): [True: 20, False: 214]
  ------------------
10519|     20|        spvAtomicOperands.push_back(semanticsId2);
10520|     20|        spvAtomicOperands.push_back(valueId);
10521|     20|        spvAtomicOperands.push_back(compareId);
10522|    214|    } else if (opCode != spv::Op::OpAtomicLoad && opCode != spv::Op::OpAtomicIIncrement && opCode != spv::Op::OpAtomicIDecrement) {
  ------------------
  |  Branch (10522:16): [True: 204, False: 10]
  |  Branch (10522:51): [True: 204, False: 0]
  |  Branch (10522:92): [True: 204, False: 0]
  ------------------
10523|    204|        spvAtomicOperands.push_back(valueId);
10524|    204|    }
10525|       |
10526|    234|    if (opCode == spv::Op::OpAtomicStore) {
  ------------------
  |  Branch (10526:9): [True: 10, False: 224]
  ------------------
10527|     10|        builder.createNoResultOp(opCode, spvAtomicOperands);
10528|     10|        return 0;
10529|    224|    } else {
10530|    224|        spv::Id resultId = builder.createOp(opCode, typeId, spvAtomicOperands);
10531|       |
10532|       |        // GLSL and HLSL atomic-counter decrement return post-decrement value,
10533|       |        // while SPIR-V returns pre-decrement value. Translate between these semantics.
10534|    224|        if (op == glslang::EOpAtomicCounterDecrement)
  ------------------
  |  Branch (10534:13): [True: 0, False: 224]
  ------------------
10535|      0|            resultId = builder.createBinOp(spv::Op::OpISub, typeId, resultId, builder.makeIntConstant(1));
10536|       |
10537|    224|        return resultId;
10538|    224|    }
10539|    234|}
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser10visitUnaryEN7glslang6TVisitEPNS1_12TIntermUnaryEENK3$_1clENS1_9TOperatorE:
 3129|  1.49k|    const auto hitObjectOpsWithLvalue = [](glslang::TOperator op) {
 3130|  1.49k|        switch(op) {
 3131|      0|            case glslang::EOpReorderThreadNV:
  ------------------
  |  Branch (3131:13): [True: 0, False: 1.49k]
  ------------------
 3132|      0|            case glslang::EOpHitObjectGetCurrentTimeNV:
  ------------------
  |  Branch (3132:13): [True: 0, False: 1.49k]
  ------------------
 3133|      0|            case glslang::EOpHitObjectGetHitKindNV:
  ------------------
  |  Branch (3133:13): [True: 0, False: 1.49k]
  ------------------
 3134|      0|            case glslang::EOpHitObjectGetPrimitiveIndexNV:
  ------------------
  |  Branch (3134:13): [True: 0, False: 1.49k]
  ------------------
 3135|      0|            case glslang::EOpHitObjectGetGeometryIndexNV:
  ------------------
  |  Branch (3135:13): [True: 0, False: 1.49k]
  ------------------
 3136|      0|            case glslang::EOpHitObjectGetInstanceIdNV:
  ------------------
  |  Branch (3136:13): [True: 0, False: 1.49k]
  ------------------
 3137|      0|            case glslang::EOpHitObjectGetInstanceCustomIndexNV:
  ------------------
  |  Branch (3137:13): [True: 0, False: 1.49k]
  ------------------
 3138|      0|            case glslang::EOpHitObjectGetObjectRayDirectionNV:
  ------------------
  |  Branch (3138:13): [True: 0, False: 1.49k]
  ------------------
 3139|      0|            case glslang::EOpHitObjectGetObjectRayOriginNV:
  ------------------
  |  Branch (3139:13): [True: 0, False: 1.49k]
  ------------------
 3140|      0|            case glslang::EOpHitObjectGetWorldRayDirectionNV:
  ------------------
  |  Branch (3140:13): [True: 0, False: 1.49k]
  ------------------
 3141|      0|            case glslang::EOpHitObjectGetWorldRayOriginNV:
  ------------------
  |  Branch (3141:13): [True: 0, False: 1.49k]
  ------------------
 3142|      0|            case glslang::EOpHitObjectGetWorldToObjectNV:
  ------------------
  |  Branch (3142:13): [True: 0, False: 1.49k]
  ------------------
 3143|      0|            case glslang::EOpHitObjectGetObjectToWorldNV:
  ------------------
  |  Branch (3143:13): [True: 0, False: 1.49k]
  ------------------
 3144|      0|            case glslang::EOpHitObjectGetRayTMaxNV:
  ------------------
  |  Branch (3144:13): [True: 0, False: 1.49k]
  ------------------
 3145|      0|            case glslang::EOpHitObjectGetRayTMinNV:
  ------------------
  |  Branch (3145:13): [True: 0, False: 1.49k]
  ------------------
 3146|      0|            case glslang::EOpHitObjectIsEmptyNV:
  ------------------
  |  Branch (3146:13): [True: 0, False: 1.49k]
  ------------------
 3147|      0|            case glslang::EOpHitObjectIsHitNV:
  ------------------
  |  Branch (3147:13): [True: 0, False: 1.49k]
  ------------------
 3148|      0|            case glslang::EOpHitObjectIsMissNV:
  ------------------
  |  Branch (3148:13): [True: 0, False: 1.49k]
  ------------------
 3149|      0|            case glslang::EOpHitObjectRecordEmptyNV:
  ------------------
  |  Branch (3149:13): [True: 0, False: 1.49k]
  ------------------
 3150|      0|            case glslang::EOpHitObjectGetShaderBindingTableRecordIndexNV:
  ------------------
  |  Branch (3150:13): [True: 0, False: 1.49k]
  ------------------
 3151|      0|            case glslang::EOpHitObjectGetShaderRecordBufferHandleNV:
  ------------------
  |  Branch (3151:13): [True: 0, False: 1.49k]
  ------------------
 3152|      0|            case glslang::EOpHitObjectGetClusterIdNV:
  ------------------
  |  Branch (3152:13): [True: 0, False: 1.49k]
  ------------------
 3153|      0|            case glslang::EOpHitObjectGetSpherePositionNV:
  ------------------
  |  Branch (3153:13): [True: 0, False: 1.49k]
  ------------------
 3154|      0|            case glslang::EOpHitObjectGetSphereRadiusNV:
  ------------------
  |  Branch (3154:13): [True: 0, False: 1.49k]
  ------------------
 3155|      0|            case glslang::EOpHitObjectIsSphereHitNV:
  ------------------
  |  Branch (3155:13): [True: 0, False: 1.49k]
  ------------------
 3156|      0|            case glslang::EOpHitObjectIsLSSHitNV:
  ------------------
  |  Branch (3156:13): [True: 0, False: 1.49k]
  ------------------
 3157|      0|            case glslang::EOpReorderThreadEXT:
  ------------------
  |  Branch (3157:13): [True: 0, False: 1.49k]
  ------------------
 3158|      0|            case glslang::EOpHitObjectGetCurrentTimeEXT:
  ------------------
  |  Branch (3158:13): [True: 0, False: 1.49k]
  ------------------
 3159|      0|            case glslang::EOpHitObjectGetHitKindEXT:
  ------------------
  |  Branch (3159:13): [True: 0, False: 1.49k]
  ------------------
 3160|      0|            case glslang::EOpHitObjectGetPrimitiveIndexEXT:
  ------------------
  |  Branch (3160:13): [True: 0, False: 1.49k]
  ------------------
 3161|      0|            case glslang::EOpHitObjectGetGeometryIndexEXT:
  ------------------
  |  Branch (3161:13): [True: 0, False: 1.49k]
  ------------------
 3162|      0|            case glslang::EOpHitObjectGetInstanceIdEXT:
  ------------------
  |  Branch (3162:13): [True: 0, False: 1.49k]
  ------------------
 3163|      0|            case glslang::EOpHitObjectGetInstanceCustomIndexEXT:
  ------------------
  |  Branch (3163:13): [True: 0, False: 1.49k]
  ------------------
 3164|      0|            case glslang::EOpHitObjectGetObjectRayDirectionEXT:
  ------------------
  |  Branch (3164:13): [True: 0, False: 1.49k]
  ------------------
 3165|      0|            case glslang::EOpHitObjectGetObjectRayOriginEXT:
  ------------------
  |  Branch (3165:13): [True: 0, False: 1.49k]
  ------------------
 3166|      0|            case glslang::EOpHitObjectGetWorldRayDirectionEXT:
  ------------------
  |  Branch (3166:13): [True: 0, False: 1.49k]
  ------------------
 3167|      0|            case glslang::EOpHitObjectGetWorldRayOriginEXT:
  ------------------
  |  Branch (3167:13): [True: 0, False: 1.49k]
  ------------------
 3168|      0|            case glslang::EOpHitObjectGetWorldToObjectEXT:
  ------------------
  |  Branch (3168:13): [True: 0, False: 1.49k]
  ------------------
 3169|      0|            case glslang::EOpHitObjectGetObjectToWorldEXT:
  ------------------
  |  Branch (3169:13): [True: 0, False: 1.49k]
  ------------------
 3170|      0|            case glslang::EOpHitObjectGetRayTMaxEXT:
  ------------------
  |  Branch (3170:13): [True: 0, False: 1.49k]
  ------------------
 3171|      0|            case glslang::EOpHitObjectGetRayTMinEXT:
  ------------------
  |  Branch (3171:13): [True: 0, False: 1.49k]
  ------------------
 3172|      0|            case glslang::EOpHitObjectGetRayFlagsEXT:
  ------------------
  |  Branch (3172:13): [True: 0, False: 1.49k]
  ------------------
 3173|      0|            case glslang::EOpHitObjectIsEmptyEXT:
  ------------------
  |  Branch (3173:13): [True: 0, False: 1.49k]
  ------------------
 3174|      0|            case glslang::EOpHitObjectIsHitEXT:
  ------------------
  |  Branch (3174:13): [True: 0, False: 1.49k]
  ------------------
 3175|      0|            case glslang::EOpHitObjectIsMissEXT:
  ------------------
  |  Branch (3175:13): [True: 0, False: 1.49k]
  ------------------
 3176|      0|            case glslang::EOpHitObjectRecordEmptyEXT:
  ------------------
  |  Branch (3176:13): [True: 0, False: 1.49k]
  ------------------
 3177|      0|            case glslang::EOpHitObjectGetShaderBindingTableRecordIndexEXT:
  ------------------
  |  Branch (3177:13): [True: 0, False: 1.49k]
  ------------------
 3178|      0|            case glslang::EOpHitObjectGetShaderRecordBufferHandleEXT:
  ------------------
  |  Branch (3178:13): [True: 0, False: 1.49k]
  ------------------
 3179|      0|                return true;
 3180|  1.49k|            default:
  ------------------
  |  Branch (3180:13): [True: 1.49k, False: 0]
  ------------------
 3181|  1.49k|                return false;
 3182|  1.49k|        }
 3183|  1.49k|    };
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser16createConversionEN7glslang9TOperatorERNS_12_GLOBAL__N_113OpDecorationsEjjNS1_10TBasicTypeES6_b:
10142|  1.54k|{
10143|  1.54k|    spv::Op convOp = spv::Op::OpNop;
10144|  1.54k|    spv::Id zero = 0;
10145|  1.54k|    spv::Id one = 0;
10146|       |
10147|  1.54k|    int vectorSize = builder.isVectorType(destType) ? builder.getNumTypeComponents(destType) : 0u;
  ------------------
  |  Branch (10147:22): [True: 835, False: 709]
  ------------------
10148|       |
10149|  1.54k|    if (IsOpNumericConv(op) || op == glslang::EOpConstructSaturated) {
  ------------------
  |  Branch (10149:9): [True: 1.14k, False: 397]
  |  Branch (10149:32): [True: 0, False: 397]
  ------------------
10150|  1.14k|        if (builder.isCooperativeMatrixType(destType)) {
  ------------------
  |  Branch (10150:13): [True: 0, False: 1.14k]
  ------------------
10151|      0|            if (!sameCoopMatUse) {
  ------------------
  |  Branch (10151:17): [True: 0, False: 0]
  ------------------
10152|      0|                enableCoopMatConversions();
10153|      0|            }
10154|      0|            auto result = createCoopMatConversion(destType, operand, resultBasicType, operandBasicType, sameCoopMatUse, false);
10155|      0|            return result;
10156|      0|        }
10157|       |
10158|  1.14k|        if (isTypeSignedInt(operandBasicType) && isTypeFloat(resultBasicType)) {
  ------------------
  |  Branch (10158:13): [True: 518, False: 629]
  |  Branch (10158:50): [True: 121, False: 397]
  ------------------
10159|    121|            convOp = spv::Op::OpConvertSToF;
10160|    121|        }
10161|  1.14k|        if (isTypeUnsignedInt(operandBasicType) && isTypeFloat(resultBasicType)) {
  ------------------
  |  Branch (10161:13): [True: 352, False: 795]
  |  Branch (10161:52): [True: 108, False: 244]
  ------------------
10162|    108|            convOp = spv::Op::OpConvertUToF;
10163|    108|        }
10164|  1.14k|        if (isTypeFloat(operandBasicType) && isTypeSignedInt(resultBasicType)) {
  ------------------
  |  Branch (10164:13): [True: 228, False: 919]
  |  Branch (10164:46): [True: 190, False: 38]
  ------------------
10165|    190|            convOp = spv::Op::OpConvertFToS;
10166|    190|        }
10167|  1.14k|        if (isTypeFloat(operandBasicType) && isTypeUnsignedInt(resultBasicType)) {
  ------------------
  |  Branch (10167:13): [True: 228, False: 919]
  |  Branch (10167:46): [True: 36, False: 192]
  ------------------
10168|     36|            convOp = spv::Op::OpConvertFToU;
10169|     36|        }
10170|  1.14k|        if (isTypeSignedInt(operandBasicType) && isTypeSignedInt(resultBasicType)) {
  ------------------
  |  Branch (10170:13): [True: 518, False: 629]
  |  Branch (10170:50): [True: 105, False: 413]
  ------------------
10171|    105|            convOp = spv::Op::OpSConvert;
10172|    105|        }
10173|  1.14k|        if (isTypeUnsignedInt(operandBasicType) && isTypeUnsignedInt(resultBasicType)) {
  ------------------
  |  Branch (10173:13): [True: 352, False: 795]
  |  Branch (10173:52): [True: 97, False: 255]
  ------------------
10174|     97|            convOp = spv::Op::OpUConvert;
10175|     97|        }
10176|  1.14k|        if (isTypeFloat(operandBasicType) && isTypeFloat(resultBasicType)) {
  ------------------
  |  Branch (10176:13): [True: 228, False: 919]
  |  Branch (10176:46): [True: 2, False: 226]
  ------------------
10177|      2|            convOp = spv::Op::OpFConvert;
10178|      2|            if (builder.isMatrixType(destType))
  ------------------
  |  Branch (10178:17): [True: 0, False: 2]
  ------------------
10179|      0|                return createUnaryMatrixOperation(convOp, decorations, destType, operand, operandBasicType);
10180|      2|        }
10181|  1.14k|        if (isTypeInt(operandBasicType) && isTypeInt(resultBasicType) &&
  ------------------
  |  Branch (10181:13): [True: 870, False: 277]
  |  Branch (10181:44): [True: 591, False: 279]
  ------------------
10182|    591|            isTypeUnsignedInt(operandBasicType) != isTypeUnsignedInt(resultBasicType)) {
  ------------------
  |  Branch (10182:13): [True: 389, False: 202]
  ------------------
10183|       |
10184|    389|            if (GetNumBits(operandBasicType) != GetNumBits(resultBasicType)) {
  ------------------
  |  Branch (10184:17): [True: 207, False: 182]
  ------------------
10185|       |                // OpSConvert/OpUConvert + OpBitCast
10186|    207|                operand = createIntWidthConversion(operand, vectorSize, destType, resultBasicType, operandBasicType);
10187|    207|            }
10188|       |
10189|    389|            if (builder.isInSpecConstCodeGenMode()) {
  ------------------
  |  Branch (10189:17): [True: 126, False: 263]
  ------------------
10190|    126|                uint32_t bits = GetNumBits(resultBasicType);
10191|    126|                spv::Id zeroType = builder.makeUintType(bits);
10192|    126|                if (bits == 64) {
  ------------------
  |  Branch (10192:21): [True: 28, False: 98]
  ------------------
10193|     28|                    zero = builder.makeInt64Constant(zeroType, 0, false);
10194|     98|                } else {
10195|     98|                    zero = builder.makeIntConstant(zeroType, 0, false);
10196|     98|                }
10197|    126|                zero = makeSmearedConstant(zero, vectorSize);
10198|       |                // Use OpIAdd, instead of OpBitcast to do the conversion when
10199|       |                // generating for OpSpecConstantOp instruction.
10200|    126|                return builder.createBinOp(spv::Op::OpIAdd, destType, operand, zero);
10201|    126|            }
10202|       |            // For normal run-time conversion instruction, use OpBitcast.
10203|    263|            convOp = spv::Op::OpBitcast;
10204|    263|        }
10205|  1.02k|        if (resultBasicType == glslang::EbtBool) {
  ------------------
  |  Branch (10205:13): [True: 50, False: 971]
  ------------------
10206|     50|            uint32_t bits = GetNumBits(operandBasicType);
10207|     50|            if (isTypeInt(operandBasicType)) {
  ------------------
  |  Branch (10207:17): [True: 50, False: 0]
  ------------------
10208|     50|                spv::Id zeroType = builder.makeUintType(bits);
10209|     50|                if (bits == 64) {
  ------------------
  |  Branch (10209:21): [True: 2, False: 48]
  ------------------
10210|      2|                    zero = builder.makeInt64Constant(zeroType, 0, false);
10211|     48|                } else {
10212|     48|                    zero = builder.makeIntConstant(zeroType, 0, false);
10213|     48|                }
10214|     50|                zero = makeSmearedConstant(zero, vectorSize);
10215|     50|                return builder.createBinOp(spv::Op::OpINotEqual, destType, operand, zero);
10216|     50|            } else {
10217|      0|                assert(isTypeFloat(operandBasicType));
10218|      0|                if (bits == 64) {
  ------------------
  |  Branch (10218:21): [True: 0, False: 0]
  ------------------
10219|      0|                    zero = builder.makeDoubleConstant(0.0);
10220|      0|                } else if (bits == 32) {
  ------------------
  |  Branch (10220:28): [True: 0, False: 0]
  ------------------
10221|      0|                    zero = builder.makeFloatConstant(0.0);
10222|      0|                } else {
10223|      0|                    assert(bits == 16);
10224|      0|                    zero = builder.makeFloat16Constant(0.0);
10225|      0|                }
10226|      0|                zero = makeSmearedConstant(zero, vectorSize);
10227|      0|                return builder.createBinOp(spv::Op::OpFUnordNotEqual, destType, operand, zero);
10228|      0|            }
10229|     50|        }
10230|    971|        if (operandBasicType == glslang::EbtBool) {
  ------------------
  |  Branch (10230:13): [True: 49, False: 922]
  ------------------
10231|     49|            uint32_t bits = GetNumBits(resultBasicType);
10232|     49|            convOp = spv::Op::OpSelect;
10233|     49|            if (isTypeInt(resultBasicType)) {
  ------------------
  |  Branch (10233:17): [True: 49, False: 0]
  ------------------
10234|     49|                spv::Id zeroType = isTypeSignedInt(resultBasicType) ? builder.makeIntType(bits) : builder.makeUintType(bits);
  ------------------
  |  Branch (10234:36): [True: 25, False: 24]
  ------------------
10235|     49|                if (bits == 64) {
  ------------------
  |  Branch (10235:21): [True: 2, False: 47]
  ------------------
10236|      2|                    zero = builder.makeInt64Constant(zeroType, 0, false);
10237|      2|                    one = builder.makeInt64Constant(zeroType, 1, false);
10238|     47|                } else {
10239|     47|                    zero = builder.makeIntConstant(zeroType, 0, false);
10240|     47|                    one = builder.makeIntConstant(zeroType, 1, false);
10241|     47|                }
10242|     49|            } else {
10243|      0|                assert(isTypeFloat(resultBasicType));
10244|      0|                if (bits == 64) {
  ------------------
  |  Branch (10244:21): [True: 0, False: 0]
  ------------------
10245|      0|                    zero = builder.makeDoubleConstant(0.0);
10246|      0|                    one = builder.makeDoubleConstant(1.0);
10247|      0|                } else if (bits == 32) {
  ------------------
  |  Branch (10247:28): [True: 0, False: 0]
  ------------------
10248|      0|                    zero = builder.makeFloatConstant(0.0);
10249|      0|                    one = builder.makeFloatConstant(1.0);
10250|      0|                } else {
10251|      0|                    assert(bits == 16);
10252|      0|                    zero = builder.makeFloat16Constant(0.0);
10253|      0|                    one = builder.makeFloat16Constant(1.0);
10254|      0|                }
10255|      0|            }
10256|     49|        }
10257|    971|    }
10258|       |
10259|  1.36k|    if (convOp == spv::Op::OpNop) {
  ------------------
  |  Branch (10259:9): [True: 397, False: 971]
  ------------------
10260|    397|        switch (op) {
10261|      0|        case glslang::EOpConvUint64ToPtr:
  ------------------
  |  Branch (10261:9): [True: 0, False: 397]
  ------------------
10262|      0|            convOp = spv::Op::OpConvertUToPtr;
10263|      0|            break;
10264|      0|        case glslang::EOpConvPtrToUint64:
  ------------------
  |  Branch (10264:9): [True: 0, False: 397]
  ------------------
10265|      0|            convOp = spv::Op::OpConvertPtrToU;
10266|      0|            break;
10267|      0|        case glslang::EOpConvPtrToUvec2:
  ------------------
  |  Branch (10267:9): [True: 0, False: 397]
  ------------------
10268|      0|        case glslang::EOpConvUvec2ToPtr:
  ------------------
  |  Branch (10268:9): [True: 0, False: 397]
  ------------------
10269|      0|            convOp = spv::Op::OpBitcast;
10270|      0|            break;
10271|       |
10272|    397|        default:
  ------------------
  |  Branch (10272:9): [True: 397, False: 0]
  ------------------
10273|    397|            break;
10274|    397|        }
10275|    397|    }
10276|       |
10277|  1.36k|    spv::Id result = 0;
10278|  1.36k|    if (convOp == spv::Op::OpNop)
  ------------------
  |  Branch (10278:9): [True: 397, False: 971]
  ------------------
10279|    397|        return result;
10280|       |
10281|    971|    if (convOp == spv::Op::OpSelect) {
  ------------------
  |  Branch (10281:9): [True: 49, False: 922]
  ------------------
10282|     49|        zero = makeSmearedConstant(zero, vectorSize);
10283|     49|        one  = makeSmearedConstant(one, vectorSize);
10284|     49|        result = builder.createTriOp(convOp, destType, operand, one, zero);
10285|    922|    } else if (convOp == spv::Op::OpUConvert && specConstUConvertNeedsWorkaround()) {
  ------------------
  |  Branch (10285:16): [True: 97, False: 825]
  |  Branch (10285:49): [True: 50, False: 47]
  ------------------
10286|     50|        result = createSpecConstUConvert(destType, operand, vectorSize, GetNumBits(operandBasicType),
10287|     50|                                         GetNumBits(resultBasicType));
10288|     50|    } else
10289|    872|        result = builder.createUnaryOp(convOp, destType, operand);
10290|       |
10291|    971|    result = builder.setPrecision(result, decorations.precision);
10292|    971|    decorations.addNonUniform(builder, result);
10293|    971|    return result;
10294|  1.36k|}
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser10visitUnaryEN7glslang6TVisitEPNS1_12TIntermUnaryEENK3$_0clEv:
 3111|  1.94k|    auto resultType = [&invertedType, &node, this](){ return invertedType != spv::NoType ?
  ------------------
  |  Branch (3111:62): [True: 0, False: 1.94k]
  ------------------
 3112|  1.94k|        invertedType : convertGlslangToSpvType(node->getType()); };
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser20createUnaryOperationEN7glslang9TOperatorERNS_12_GLOBAL__N_113OpDecorationsEjjNS1_10TBasicTypeERKN3spv7Builder11AccessChain13CoherentFlagsERKNS1_5TTypeE:
 9350|    397|{
 9351|    397|    spv::Op unaryOp = spv::Op::OpNop;
 9352|    397|    int extBuiltins = -1;
 9353|    397|    int libCall = -1;
 9354|    397|    bool isUnsigned = isTypeUnsignedInt(typeProxy);
 9355|    397|    bool isFloat = isTypeFloat(typeProxy);
 9356|       |
 9357|    397|    switch (op) {
 9358|     90|    case glslang::EOpNegative:
  ------------------
  |  Branch (9358:5): [True: 90, False: 307]
  ------------------
 9359|     90|        if (isFloat) {
  ------------------
  |  Branch (9359:13): [True: 3, False: 87]
  ------------------
 9360|      3|            unaryOp = spv::Op::OpFNegate;
 9361|      3|            if (builder.isMatrixType(typeId))
  ------------------
  |  Branch (9361:17): [True: 0, False: 3]
  ------------------
 9362|      0|                return createUnaryMatrixOperation(unaryOp, decorations, typeId, operand, typeProxy);
 9363|      3|        } else
 9364|     87|            unaryOp = spv::Op::OpSNegate;
 9365|     90|        break;
 9366|       |
 9367|     90|    case glslang::EOpLogicalNot:
  ------------------
  |  Branch (9367:5): [True: 0, False: 397]
  ------------------
 9368|      0|    case glslang::EOpVectorLogicalNot:
  ------------------
  |  Branch (9368:5): [True: 0, False: 397]
  ------------------
 9369|      0|        unaryOp = spv::Op::OpLogicalNot;
 9370|      0|        break;
 9371|     12|    case glslang::EOpBitwiseNot:
  ------------------
  |  Branch (9371:5): [True: 12, False: 385]
  ------------------
 9372|     12|        unaryOp = spv::Op::OpNot;
 9373|     12|        break;
 9374|       |
 9375|      0|    case glslang::EOpDeterminant:
  ------------------
  |  Branch (9375:5): [True: 0, False: 397]
  ------------------
 9376|      0|        libCall = spv::GLSLstd450Determinant;
 9377|      0|        break;
 9378|      0|    case glslang::EOpMatrixInverse:
  ------------------
  |  Branch (9378:5): [True: 0, False: 397]
  ------------------
 9379|      0|        libCall = spv::GLSLstd450MatrixInverse;
 9380|      0|        break;
 9381|     20|    case glslang::EOpTranspose:
  ------------------
  |  Branch (9381:5): [True: 20, False: 377]
  ------------------
 9382|     20|        unaryOp = spv::Op::OpTranspose;
 9383|     20|        break;
 9384|       |
 9385|      0|    case glslang::EOpRadians:
  ------------------
  |  Branch (9385:5): [True: 0, False: 397]
  ------------------
 9386|      0|        libCall = spv::GLSLstd450Radians;
 9387|      0|        break;
 9388|      0|    case glslang::EOpDegrees:
  ------------------
  |  Branch (9388:5): [True: 0, False: 397]
  ------------------
 9389|      0|        libCall = spv::GLSLstd450Degrees;
 9390|      0|        break;
 9391|      0|    case glslang::EOpSin:
  ------------------
  |  Branch (9391:5): [True: 0, False: 397]
  ------------------
 9392|      0|        libCall = spv::GLSLstd450Sin;
 9393|      0|        break;
 9394|      0|    case glslang::EOpCos:
  ------------------
  |  Branch (9394:5): [True: 0, False: 397]
  ------------------
 9395|      0|        libCall = spv::GLSLstd450Cos;
 9396|      0|        break;
 9397|      0|    case glslang::EOpTan:
  ------------------
  |  Branch (9397:5): [True: 0, False: 397]
  ------------------
 9398|      0|        libCall = spv::GLSLstd450Tan;
 9399|      0|        break;
 9400|      0|    case glslang::EOpAcos:
  ------------------
  |  Branch (9400:5): [True: 0, False: 397]
  ------------------
 9401|      0|        libCall = spv::GLSLstd450Acos;
 9402|      0|        break;
 9403|      0|    case glslang::EOpAsin:
  ------------------
  |  Branch (9403:5): [True: 0, False: 397]
  ------------------
 9404|      0|        libCall = spv::GLSLstd450Asin;
 9405|      0|        break;
 9406|      0|    case glslang::EOpAtan:
  ------------------
  |  Branch (9406:5): [True: 0, False: 397]
  ------------------
 9407|      0|        libCall = spv::GLSLstd450Atan;
 9408|      0|        break;
 9409|       |
 9410|      0|    case glslang::EOpAcosh:
  ------------------
  |  Branch (9410:5): [True: 0, False: 397]
  ------------------
 9411|      0|        libCall = spv::GLSLstd450Acosh;
 9412|      0|        break;
 9413|      0|    case glslang::EOpAsinh:
  ------------------
  |  Branch (9413:5): [True: 0, False: 397]
  ------------------
 9414|      0|        libCall = spv::GLSLstd450Asinh;
 9415|      0|        break;
 9416|      0|    case glslang::EOpAtanh:
  ------------------
  |  Branch (9416:5): [True: 0, False: 397]
  ------------------
 9417|      0|        libCall = spv::GLSLstd450Atanh;
 9418|      0|        break;
 9419|      0|    case glslang::EOpTanh:
  ------------------
  |  Branch (9419:5): [True: 0, False: 397]
  ------------------
 9420|      0|        libCall = spv::GLSLstd450Tanh;
 9421|      0|        break;
 9422|      0|    case glslang::EOpCosh:
  ------------------
  |  Branch (9422:5): [True: 0, False: 397]
  ------------------
 9423|      0|        libCall = spv::GLSLstd450Cosh;
 9424|      0|        break;
 9425|      0|    case glslang::EOpSinh:
  ------------------
  |  Branch (9425:5): [True: 0, False: 397]
  ------------------
 9426|      0|        libCall = spv::GLSLstd450Sinh;
 9427|      0|        break;
 9428|       |
 9429|      2|    case glslang::EOpLength:
  ------------------
  |  Branch (9429:5): [True: 2, False: 395]
  ------------------
 9430|      2|        libCall = spv::GLSLstd450Length;
 9431|      2|        break;
 9432|      8|    case glslang::EOpNormalize:
  ------------------
  |  Branch (9432:5): [True: 8, False: 389]
  ------------------
 9433|      8|        libCall = spv::GLSLstd450Normalize;
 9434|      8|        break;
 9435|       |
 9436|      0|    case glslang::EOpExp:
  ------------------
  |  Branch (9436:5): [True: 0, False: 397]
  ------------------
 9437|      0|        libCall = spv::GLSLstd450Exp;
 9438|      0|        break;
 9439|      0|    case glslang::EOpLog:
  ------------------
  |  Branch (9439:5): [True: 0, False: 397]
  ------------------
 9440|      0|        libCall = spv::GLSLstd450Log;
 9441|      0|        break;
 9442|      0|    case glslang::EOpExp2:
  ------------------
  |  Branch (9442:5): [True: 0, False: 397]
  ------------------
 9443|      0|        libCall = spv::GLSLstd450Exp2;
 9444|      0|        break;
 9445|      0|    case glslang::EOpLog2:
  ------------------
  |  Branch (9445:5): [True: 0, False: 397]
  ------------------
 9446|      0|        libCall = spv::GLSLstd450Log2;
 9447|      0|        break;
 9448|      0|    case glslang::EOpSqrt:
  ------------------
  |  Branch (9448:5): [True: 0, False: 397]
  ------------------
 9449|      0|        libCall = spv::GLSLstd450Sqrt;
 9450|      0|        break;
 9451|      0|    case glslang::EOpInverseSqrt:
  ------------------
  |  Branch (9451:5): [True: 0, False: 397]
  ------------------
 9452|      0|        libCall = spv::GLSLstd450InverseSqrt;
 9453|      0|        break;
 9454|       |
 9455|      0|    case glslang::EOpFloor:
  ------------------
  |  Branch (9455:5): [True: 0, False: 397]
  ------------------
 9456|      0|        libCall = spv::GLSLstd450Floor;
 9457|      0|        break;
 9458|      0|    case glslang::EOpTrunc:
  ------------------
  |  Branch (9458:5): [True: 0, False: 397]
  ------------------
 9459|      0|        libCall = spv::GLSLstd450Trunc;
 9460|      0|        break;
 9461|      0|    case glslang::EOpRound:
  ------------------
  |  Branch (9461:5): [True: 0, False: 397]
  ------------------
 9462|      0|        libCall = spv::GLSLstd450Round;
 9463|      0|        break;
 9464|      0|    case glslang::EOpRoundEven:
  ------------------
  |  Branch (9464:5): [True: 0, False: 397]
  ------------------
 9465|      0|        libCall = spv::GLSLstd450RoundEven;
 9466|      0|        break;
 9467|      0|    case glslang::EOpCeil:
  ------------------
  |  Branch (9467:5): [True: 0, False: 397]
  ------------------
 9468|      0|        libCall = spv::GLSLstd450Ceil;
 9469|      0|        break;
 9470|      0|    case glslang::EOpFract:
  ------------------
  |  Branch (9470:5): [True: 0, False: 397]
  ------------------
 9471|      0|        libCall = spv::GLSLstd450Fract;
 9472|      0|        break;
 9473|       |
 9474|      0|    case glslang::EOpIsNan:
  ------------------
  |  Branch (9474:5): [True: 0, False: 397]
  ------------------
 9475|      0|        unaryOp = spv::Op::OpIsNan;
 9476|      0|        break;
 9477|      0|    case glslang::EOpIsInf:
  ------------------
  |  Branch (9477:5): [True: 0, False: 397]
  ------------------
 9478|      0|        unaryOp = spv::Op::OpIsInf;
 9479|      0|        break;
 9480|      0|    case glslang::EOpIsFinite:
  ------------------
  |  Branch (9480:5): [True: 0, False: 397]
  ------------------
 9481|      0|        unaryOp = spv::Op::OpIsFinite;
 9482|      0|        break;
 9483|       |
 9484|      0|    case glslang::EOpFloatBitsToInt:
  ------------------
  |  Branch (9484:5): [True: 0, False: 397]
  ------------------
 9485|      0|    case glslang::EOpFloatBitsToUint:
  ------------------
  |  Branch (9485:5): [True: 0, False: 397]
  ------------------
 9486|      0|    case glslang::EOpIntBitsToFloat:
  ------------------
  |  Branch (9486:5): [True: 0, False: 397]
  ------------------
 9487|      0|    case glslang::EOpUintBitsToFloat:
  ------------------
  |  Branch (9487:5): [True: 0, False: 397]
  ------------------
 9488|      0|    case glslang::EOpDoubleBitsToInt64:
  ------------------
  |  Branch (9488:5): [True: 0, False: 397]
  ------------------
 9489|      0|    case glslang::EOpDoubleBitsToUint64:
  ------------------
  |  Branch (9489:5): [True: 0, False: 397]
  ------------------
 9490|      0|    case glslang::EOpInt64BitsToDouble:
  ------------------
  |  Branch (9490:5): [True: 0, False: 397]
  ------------------
 9491|      0|    case glslang::EOpUint64BitsToDouble:
  ------------------
  |  Branch (9491:5): [True: 0, False: 397]
  ------------------
 9492|     12|    case glslang::EOpFloat16BitsToInt16:
  ------------------
  |  Branch (9492:5): [True: 12, False: 385]
  ------------------
 9493|     23|    case glslang::EOpFloat16BitsToUint16:
  ------------------
  |  Branch (9493:5): [True: 11, False: 386]
  ------------------
 9494|     35|    case glslang::EOpInt16BitsToFloat16:
  ------------------
  |  Branch (9494:5): [True: 12, False: 385]
  ------------------
 9495|     47|    case glslang::EOpUint16BitsToFloat16:
  ------------------
  |  Branch (9495:5): [True: 12, False: 385]
  ------------------
 9496|     47|        unaryOp = spv::Op::OpBitcast;
 9497|     47|        break;
 9498|       |
 9499|      0|    case glslang::EOpPackSnorm2x16:
  ------------------
  |  Branch (9499:5): [True: 0, False: 397]
  ------------------
 9500|      0|        libCall = spv::GLSLstd450PackSnorm2x16;
 9501|      0|        break;
 9502|      0|    case glslang::EOpUnpackSnorm2x16:
  ------------------
  |  Branch (9502:5): [True: 0, False: 397]
  ------------------
 9503|      0|        libCall = spv::GLSLstd450UnpackSnorm2x16;
 9504|      0|        break;
 9505|      0|    case glslang::EOpPackUnorm2x16:
  ------------------
  |  Branch (9505:5): [True: 0, False: 397]
  ------------------
 9506|      0|        libCall = spv::GLSLstd450PackUnorm2x16;
 9507|      0|        break;
 9508|      0|    case glslang::EOpUnpackUnorm2x16:
  ------------------
  |  Branch (9508:5): [True: 0, False: 397]
  ------------------
 9509|      0|        libCall = spv::GLSLstd450UnpackUnorm2x16;
 9510|      0|        break;
 9511|      0|    case glslang::EOpPackHalf2x16:
  ------------------
  |  Branch (9511:5): [True: 0, False: 397]
  ------------------
 9512|      0|        libCall = spv::GLSLstd450PackHalf2x16;
 9513|      0|        break;
 9514|      0|    case glslang::EOpUnpackHalf2x16:
  ------------------
  |  Branch (9514:5): [True: 0, False: 397]
  ------------------
 9515|      0|        libCall = spv::GLSLstd450UnpackHalf2x16;
 9516|      0|        break;
 9517|      0|    case glslang::EOpPackSnorm4x8:
  ------------------
  |  Branch (9517:5): [True: 0, False: 397]
  ------------------
 9518|      0|        libCall = spv::GLSLstd450PackSnorm4x8;
 9519|      0|        break;
 9520|      0|    case glslang::EOpUnpackSnorm4x8:
  ------------------
  |  Branch (9520:5): [True: 0, False: 397]
  ------------------
 9521|      0|        libCall = spv::GLSLstd450UnpackSnorm4x8;
 9522|      0|        break;
 9523|      0|    case glslang::EOpPackUnorm4x8:
  ------------------
  |  Branch (9523:5): [True: 0, False: 397]
  ------------------
 9524|      0|        libCall = spv::GLSLstd450PackUnorm4x8;
 9525|      0|        break;
 9526|      0|    case glslang::EOpUnpackUnorm4x8:
  ------------------
  |  Branch (9526:5): [True: 0, False: 397]
  ------------------
 9527|      0|        libCall = spv::GLSLstd450UnpackUnorm4x8;
 9528|      0|        break;
 9529|      0|    case glslang::EOpPackDouble2x32:
  ------------------
  |  Branch (9529:5): [True: 0, False: 397]
  ------------------
 9530|      0|        libCall = spv::GLSLstd450PackDouble2x32;
 9531|      0|        break;
 9532|      0|    case glslang::EOpUnpackDouble2x32:
  ------------------
  |  Branch (9532:5): [True: 0, False: 397]
  ------------------
 9533|      0|        libCall = spv::GLSLstd450UnpackDouble2x32;
 9534|      0|        break;
 9535|       |
 9536|      0|    case glslang::EOpPackInt2x32:
  ------------------
  |  Branch (9536:5): [True: 0, False: 397]
  ------------------
 9537|      0|    case glslang::EOpUnpackInt2x32:
  ------------------
  |  Branch (9537:5): [True: 0, False: 397]
  ------------------
 9538|      0|    case glslang::EOpPackUint2x32:
  ------------------
  |  Branch (9538:5): [True: 0, False: 397]
  ------------------
 9539|      0|    case glslang::EOpUnpackUint2x32:
  ------------------
  |  Branch (9539:5): [True: 0, False: 397]
  ------------------
 9540|      0|    case glslang::EOpPack16:
  ------------------
  |  Branch (9540:5): [True: 0, False: 397]
  ------------------
 9541|      0|    case glslang::EOpPack32:
  ------------------
  |  Branch (9541:5): [True: 0, False: 397]
  ------------------
 9542|      0|    case glslang::EOpPack64:
  ------------------
  |  Branch (9542:5): [True: 0, False: 397]
  ------------------
 9543|      0|    case glslang::EOpUnpack32:
  ------------------
  |  Branch (9543:5): [True: 0, False: 397]
  ------------------
 9544|      0|    case glslang::EOpUnpack16:
  ------------------
  |  Branch (9544:5): [True: 0, False: 397]
  ------------------
 9545|      0|    case glslang::EOpUnpack8:
  ------------------
  |  Branch (9545:5): [True: 0, False: 397]
  ------------------
 9546|     12|    case glslang::EOpPackInt2x16:
  ------------------
  |  Branch (9546:5): [True: 12, False: 385]
  ------------------
 9547|     24|    case glslang::EOpUnpackInt2x16:
  ------------------
  |  Branch (9547:5): [True: 12, False: 385]
  ------------------
 9548|     36|    case glslang::EOpPackUint2x16:
  ------------------
  |  Branch (9548:5): [True: 12, False: 385]
  ------------------
 9549|     48|    case glslang::EOpUnpackUint2x16:
  ------------------
  |  Branch (9549:5): [True: 12, False: 385]
  ------------------
 9550|     60|    case glslang::EOpPackInt4x16:
  ------------------
  |  Branch (9550:5): [True: 12, False: 385]
  ------------------
 9551|     72|    case glslang::EOpUnpackInt4x16:
  ------------------
  |  Branch (9551:5): [True: 12, False: 385]
  ------------------
 9552|     84|    case glslang::EOpPackUint4x16:
  ------------------
  |  Branch (9552:5): [True: 12, False: 385]
  ------------------
 9553|     96|    case glslang::EOpUnpackUint4x16:
  ------------------
  |  Branch (9553:5): [True: 12, False: 385]
  ------------------
 9554|     96|    case glslang::EOpPackFloat2x16:
  ------------------
  |  Branch (9554:5): [True: 0, False: 397]
  ------------------
 9555|     96|    case glslang::EOpUnpackFloat2x16:
  ------------------
  |  Branch (9555:5): [True: 0, False: 397]
  ------------------
 9556|     96|    case glslang::EOpUnpackFloat2xE2M1:
  ------------------
  |  Branch (9556:5): [True: 0, False: 397]
  ------------------
 9557|     96|    case glslang::EOpUnpackFloat4xE2M1:
  ------------------
  |  Branch (9557:5): [True: 0, False: 397]
  ------------------
 9558|     96|    case glslang::EOpUnpackFloat8xE2M1:
  ------------------
  |  Branch (9558:5): [True: 0, False: 397]
  ------------------
 9559|     96|    case glslang::EOpUnpackFloat16xE2M1:
  ------------------
  |  Branch (9559:5): [True: 0, False: 397]
  ------------------
 9560|     96|    case glslang::EOpPackFloat2xE2M1:
  ------------------
  |  Branch (9560:5): [True: 0, False: 397]
  ------------------
 9561|     96|    case glslang::EOpPackFloat4xE2M1:
  ------------------
  |  Branch (9561:5): [True: 0, False: 397]
  ------------------
 9562|     96|    case glslang::EOpPackFloat8xE2M1:
  ------------------
  |  Branch (9562:5): [True: 0, False: 397]
  ------------------
 9563|     96|    case glslang::EOpPackFloat16xE2M1:
  ------------------
  |  Branch (9563:5): [True: 0, False: 397]
  ------------------
 9564|     96|    case glslang::EOpUnpackFloat4xE3M2:
  ------------------
  |  Branch (9564:5): [True: 0, False: 397]
  ------------------
 9565|     96|    case glslang::EOpUnpackFloat8xE3M2:
  ------------------
  |  Branch (9565:5): [True: 0, False: 397]
  ------------------
 9566|     96|    case glslang::EOpUnpackFloat16xE3M2:
  ------------------
  |  Branch (9566:5): [True: 0, False: 397]
  ------------------
 9567|     96|    case glslang::EOpPackFloat4xE3M2:
  ------------------
  |  Branch (9567:5): [True: 0, False: 397]
  ------------------
 9568|     96|    case glslang::EOpPackFloat8xE3M2:
  ------------------
  |  Branch (9568:5): [True: 0, False: 397]
  ------------------
 9569|     96|    case glslang::EOpPackFloat16xE3M2:
  ------------------
  |  Branch (9569:5): [True: 0, False: 397]
  ------------------
 9570|     96|    case glslang::EOpUnpackFloat4xE2M3:
  ------------------
  |  Branch (9570:5): [True: 0, False: 397]
  ------------------
 9571|     96|    case glslang::EOpUnpackFloat8xE2M3:
  ------------------
  |  Branch (9571:5): [True: 0, False: 397]
  ------------------
 9572|     96|    case glslang::EOpUnpackFloat16xE2M3:
  ------------------
  |  Branch (9572:5): [True: 0, False: 397]
  ------------------
 9573|     96|    case glslang::EOpPackFloat4xE2M3:
  ------------------
  |  Branch (9573:5): [True: 0, False: 397]
  ------------------
 9574|     96|    case glslang::EOpPackFloat8xE2M3:
  ------------------
  |  Branch (9574:5): [True: 0, False: 397]
  ------------------
 9575|     96|    case glslang::EOpPackFloat16xE2M3:
  ------------------
  |  Branch (9575:5): [True: 0, False: 397]
  ------------------
 9576|       |
 9577|     96|        unaryOp = spv::Op::OpBitcast;
 9578|     96|        break;
 9579|       |
 9580|      0|    case glslang::EOpDPdx:
  ------------------
  |  Branch (9580:5): [True: 0, False: 397]
  ------------------
 9581|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9581:13): [True: 0, False: 0]
  ------------------
 9582|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9583|      0|        unaryOp = spv::Op::OpDPdx;
 9584|      0|        break;
 9585|      0|    case glslang::EOpDPdy:
  ------------------
  |  Branch (9585:5): [True: 0, False: 397]
  ------------------
 9586|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9586:13): [True: 0, False: 0]
  ------------------
 9587|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9588|      0|        unaryOp = spv::Op::OpDPdy;
 9589|      0|        break;
 9590|      0|    case glslang::EOpFwidth:
  ------------------
  |  Branch (9590:5): [True: 0, False: 397]
  ------------------
 9591|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9591:13): [True: 0, False: 0]
  ------------------
 9592|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9593|      0|        unaryOp = spv::Op::OpFwidth;
 9594|      0|        break;
 9595|       |
 9596|      0|    case glslang::EOpAny:
  ------------------
  |  Branch (9596:5): [True: 0, False: 397]
  ------------------
 9597|      0|        unaryOp = spv::Op::OpAny;
 9598|      0|        break;
 9599|      0|    case glslang::EOpAll:
  ------------------
  |  Branch (9599:5): [True: 0, False: 397]
  ------------------
 9600|      0|        unaryOp = spv::Op::OpAll;
 9601|      0|        break;
 9602|       |
 9603|     12|    case glslang::EOpAbs:
  ------------------
  |  Branch (9603:5): [True: 12, False: 385]
  ------------------
 9604|     12|        if (isFloat)
  ------------------
  |  Branch (9604:13): [True: 0, False: 12]
  ------------------
 9605|      0|            libCall = spv::GLSLstd450FAbs;
 9606|     12|        else
 9607|     12|            libCall = spv::GLSLstd450SAbs;
 9608|     12|        break;
 9609|     12|    case glslang::EOpSign:
  ------------------
  |  Branch (9609:5): [True: 12, False: 385]
  ------------------
 9610|     12|        if (isFloat)
  ------------------
  |  Branch (9610:13): [True: 0, False: 12]
  ------------------
 9611|      0|            libCall = spv::GLSLstd450FSign;
 9612|     12|        else
 9613|     12|            libCall = spv::GLSLstd450SSign;
 9614|     12|        break;
 9615|       |
 9616|      0|    case glslang::EOpDPdxFine:
  ------------------
  |  Branch (9616:5): [True: 0, False: 397]
  ------------------
 9617|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9617:13): [True: 0, False: 0]
  ------------------
 9618|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9619|      0|        unaryOp = spv::Op::OpDPdxFine;
 9620|      0|        break;
 9621|      0|    case glslang::EOpDPdyFine:
  ------------------
  |  Branch (9621:5): [True: 0, False: 397]
  ------------------
 9622|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9622:13): [True: 0, False: 0]
  ------------------
 9623|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9624|      0|        unaryOp = spv::Op::OpDPdyFine;
 9625|      0|        break;
 9626|      0|    case glslang::EOpFwidthFine:
  ------------------
  |  Branch (9626:5): [True: 0, False: 397]
  ------------------
 9627|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9627:13): [True: 0, False: 0]
  ------------------
 9628|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9629|      0|        unaryOp = spv::Op::OpFwidthFine;
 9630|      0|        break;
 9631|      0|    case glslang::EOpDPdxCoarse:
  ------------------
  |  Branch (9631:5): [True: 0, False: 397]
  ------------------
 9632|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9632:13): [True: 0, False: 0]
  ------------------
 9633|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9634|      0|        unaryOp = spv::Op::OpDPdxCoarse;
 9635|      0|        break;
 9636|      0|    case glslang::EOpDPdyCoarse:
  ------------------
  |  Branch (9636:5): [True: 0, False: 397]
  ------------------
 9637|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9637:13): [True: 0, False: 0]
  ------------------
 9638|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9639|      0|        unaryOp = spv::Op::OpDPdyCoarse;
 9640|      0|        break;
 9641|      0|    case glslang::EOpFwidthCoarse:
  ------------------
  |  Branch (9641:5): [True: 0, False: 397]
  ------------------
 9642|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9642:13): [True: 0, False: 0]
  ------------------
 9643|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9644|      0|        unaryOp = spv::Op::OpFwidthCoarse;
 9645|      0|        break;
 9646|      5|    case glslang::EOpRayQueryProceed:
  ------------------
  |  Branch (9646:5): [True: 5, False: 392]
  ------------------
 9647|      5|        unaryOp = spv::Op::OpRayQueryProceedKHR;
 9648|      5|        break;
 9649|      5|    case glslang::EOpRayQueryGetRayTMin:
  ------------------
  |  Branch (9649:5): [True: 5, False: 392]
  ------------------
 9650|      5|        unaryOp = spv::Op::OpRayQueryGetRayTMinKHR;
 9651|      5|        break;
 9652|      5|    case glslang::EOpRayQueryGetRayFlags:
  ------------------
  |  Branch (9652:5): [True: 5, False: 392]
  ------------------
 9653|      5|        unaryOp = spv::Op::OpRayQueryGetRayFlagsKHR;
 9654|      5|        break;
 9655|      5|    case glslang::EOpRayQueryGetWorldRayOrigin:
  ------------------
  |  Branch (9655:5): [True: 5, False: 392]
  ------------------
 9656|      5|        unaryOp = spv::Op::OpRayQueryGetWorldRayOriginKHR;
 9657|      5|        break;
 9658|      5|    case glslang::EOpRayQueryGetWorldRayDirection:
  ------------------
  |  Branch (9658:5): [True: 5, False: 392]
  ------------------
 9659|      5|        unaryOp = spv::Op::OpRayQueryGetWorldRayDirectionKHR;
 9660|      5|        break;
 9661|      5|    case glslang::EOpRayQueryGetIntersectionCandidateAABBOpaque:
  ------------------
  |  Branch (9661:5): [True: 5, False: 392]
  ------------------
 9662|      5|        unaryOp = spv::Op::OpRayQueryGetIntersectionCandidateAABBOpaqueKHR;
 9663|      5|        break;
 9664|      0|    case glslang::EOpInterpolateAtCentroid:
  ------------------
  |  Branch (9664:5): [True: 0, False: 397]
  ------------------
 9665|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (9665:13): [True: 0, False: 0]
  ------------------
 9666|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
 9667|      0|        libCall = spv::GLSLstd450InterpolateAtCentroid;
 9668|      0|        break;
 9669|      0|    case glslang::EOpAtomicCounterIncrement:
  ------------------
  |  Branch (9669:5): [True: 0, False: 397]
  ------------------
 9670|      0|    case glslang::EOpAtomicCounterDecrement:
  ------------------
  |  Branch (9670:5): [True: 0, False: 397]
  ------------------
 9671|      0|    case glslang::EOpAtomicCounter:
  ------------------
  |  Branch (9671:5): [True: 0, False: 397]
  ------------------
 9672|      0|    {
 9673|       |        // Handle all of the atomics in one place, in createAtomicOperation()
 9674|      0|        std::vector<spv::Id> operands;
 9675|      0|        operands.push_back(operand);
 9676|      0|        return createAtomicOperation(op, decorations.precision, typeId, operands, typeProxy, lvalueCoherentFlags, opType);
 9677|      0|    }
 9678|       |
 9679|      0|    case glslang::EOpBitFieldReverse:
  ------------------
  |  Branch (9679:5): [True: 0, False: 397]
  ------------------
 9680|      0|        unaryOp = spv::Op::OpBitReverse;
 9681|      0|        break;
 9682|      0|    case glslang::EOpBitCount:
  ------------------
  |  Branch (9682:5): [True: 0, False: 397]
  ------------------
 9683|      0|        unaryOp = spv::Op::OpBitCount;
 9684|      0|        break;
 9685|      0|    case glslang::EOpFindLSB:
  ------------------
  |  Branch (9685:5): [True: 0, False: 397]
  ------------------
 9686|      0|        libCall = spv::GLSLstd450FindILsb;
 9687|      0|        break;
 9688|      0|    case glslang::EOpFindMSB:
  ------------------
  |  Branch (9688:5): [True: 0, False: 397]
  ------------------
 9689|      0|        if (isUnsigned)
  ------------------
  |  Branch (9689:13): [True: 0, False: 0]
  ------------------
 9690|      0|            libCall = spv::GLSLstd450FindUMsb;
 9691|      0|        else
 9692|      0|            libCall = spv::GLSLstd450FindSMsb;
 9693|      0|        break;
 9694|       |
 9695|      0|    case glslang::EOpCountLeadingZeros:
  ------------------
  |  Branch (9695:5): [True: 0, False: 397]
  ------------------
 9696|      0|        builder.addCapability(spv::Capability::IntegerFunctions2INTEL);
 9697|      0|        builder.addExtension("SPV_INTEL_shader_integer_functions2");
 9698|      0|        unaryOp = spv::Op::OpUCountLeadingZerosINTEL;
 9699|      0|        break;
 9700|       |
 9701|      0|    case glslang::EOpCountTrailingZeros:
  ------------------
  |  Branch (9701:5): [True: 0, False: 397]
  ------------------
 9702|      0|        builder.addCapability(spv::Capability::IntegerFunctions2INTEL);
 9703|      0|        builder.addExtension("SPV_INTEL_shader_integer_functions2");
 9704|      0|        unaryOp = spv::Op::OpUCountTrailingZerosINTEL;
 9705|      0|        break;
 9706|       |
 9707|      0|    case glslang::EOpBallot:
  ------------------
  |  Branch (9707:5): [True: 0, False: 397]
  ------------------
 9708|      0|    case glslang::EOpReadFirstInvocation:
  ------------------
  |  Branch (9708:5): [True: 0, False: 397]
  ------------------
 9709|      0|    case glslang::EOpAnyInvocation:
  ------------------
  |  Branch (9709:5): [True: 0, False: 397]
  ------------------
 9710|      0|    case glslang::EOpAllInvocations:
  ------------------
  |  Branch (9710:5): [True: 0, False: 397]
  ------------------
 9711|      0|    case glslang::EOpAllInvocationsEqual:
  ------------------
  |  Branch (9711:5): [True: 0, False: 397]
  ------------------
 9712|      0|    case glslang::EOpMinInvocations:
  ------------------
  |  Branch (9712:5): [True: 0, False: 397]
  ------------------
 9713|      0|    case glslang::EOpMaxInvocations:
  ------------------
  |  Branch (9713:5): [True: 0, False: 397]
  ------------------
 9714|      0|    case glslang::EOpAddInvocations:
  ------------------
  |  Branch (9714:5): [True: 0, False: 397]
  ------------------
 9715|      0|    case glslang::EOpMinInvocationsNonUniform:
  ------------------
  |  Branch (9715:5): [True: 0, False: 397]
  ------------------
 9716|      0|    case glslang::EOpMaxInvocationsNonUniform:
  ------------------
  |  Branch (9716:5): [True: 0, False: 397]
  ------------------
 9717|      0|    case glslang::EOpAddInvocationsNonUniform:
  ------------------
  |  Branch (9717:5): [True: 0, False: 397]
  ------------------
 9718|      0|    case glslang::EOpMinInvocationsInclusiveScan:
  ------------------
  |  Branch (9718:5): [True: 0, False: 397]
  ------------------
 9719|      0|    case glslang::EOpMaxInvocationsInclusiveScan:
  ------------------
  |  Branch (9719:5): [True: 0, False: 397]
  ------------------
 9720|      0|    case glslang::EOpAddInvocationsInclusiveScan:
  ------------------
  |  Branch (9720:5): [True: 0, False: 397]
  ------------------
 9721|      0|    case glslang::EOpMinInvocationsInclusiveScanNonUniform:
  ------------------
  |  Branch (9721:5): [True: 0, False: 397]
  ------------------
 9722|      0|    case glslang::EOpMaxInvocationsInclusiveScanNonUniform:
  ------------------
  |  Branch (9722:5): [True: 0, False: 397]
  ------------------
 9723|      0|    case glslang::EOpAddInvocationsInclusiveScanNonUniform:
  ------------------
  |  Branch (9723:5): [True: 0, False: 397]
  ------------------
 9724|      0|    case glslang::EOpMinInvocationsExclusiveScan:
  ------------------
  |  Branch (9724:5): [True: 0, False: 397]
  ------------------
 9725|      0|    case glslang::EOpMaxInvocationsExclusiveScan:
  ------------------
  |  Branch (9725:5): [True: 0, False: 397]
  ------------------
 9726|      0|    case glslang::EOpAddInvocationsExclusiveScan:
  ------------------
  |  Branch (9726:5): [True: 0, False: 397]
  ------------------
 9727|      0|    case glslang::EOpMinInvocationsExclusiveScanNonUniform:
  ------------------
  |  Branch (9727:5): [True: 0, False: 397]
  ------------------
 9728|      0|    case glslang::EOpMaxInvocationsExclusiveScanNonUniform:
  ------------------
  |  Branch (9728:5): [True: 0, False: 397]
  ------------------
 9729|      0|    case glslang::EOpAddInvocationsExclusiveScanNonUniform:
  ------------------
  |  Branch (9729:5): [True: 0, False: 397]
  ------------------
 9730|      0|    {
 9731|      0|        std::vector<spv::Id> operands;
 9732|      0|        operands.push_back(operand);
 9733|      0|        return createInvocationsOperation(op, typeId, operands, typeProxy);
 9734|      0|    }
 9735|      0|    case glslang::EOpSubgroupAll:
  ------------------
  |  Branch (9735:5): [True: 0, False: 397]
  ------------------
 9736|      0|    case glslang::EOpSubgroupAny:
  ------------------
  |  Branch (9736:5): [True: 0, False: 397]
  ------------------
 9737|      0|    case glslang::EOpSubgroupAllEqual:
  ------------------
  |  Branch (9737:5): [True: 0, False: 397]
  ------------------
 9738|      0|    case glslang::EOpSubgroupBroadcastFirst:
  ------------------
  |  Branch (9738:5): [True: 0, False: 397]
  ------------------
 9739|      0|    case glslang::EOpSubgroupBallot:
  ------------------
  |  Branch (9739:5): [True: 0, False: 397]
  ------------------
 9740|      0|    case glslang::EOpSubgroupInverseBallot:
  ------------------
  |  Branch (9740:5): [True: 0, False: 397]
  ------------------
 9741|      0|    case glslang::EOpSubgroupBallotBitCount:
  ------------------
  |  Branch (9741:5): [True: 0, False: 397]
  ------------------
 9742|      0|    case glslang::EOpSubgroupBallotInclusiveBitCount:
  ------------------
  |  Branch (9742:5): [True: 0, False: 397]
  ------------------
 9743|      0|    case glslang::EOpSubgroupBallotExclusiveBitCount:
  ------------------
  |  Branch (9743:5): [True: 0, False: 397]
  ------------------
 9744|      0|    case glslang::EOpSubgroupBallotFindLSB:
  ------------------
  |  Branch (9744:5): [True: 0, False: 397]
  ------------------
 9745|      0|    case glslang::EOpSubgroupBallotFindMSB:
  ------------------
  |  Branch (9745:5): [True: 0, False: 397]
  ------------------
 9746|      0|    case glslang::EOpSubgroupAdd:
  ------------------
  |  Branch (9746:5): [True: 0, False: 397]
  ------------------
 9747|      0|    case glslang::EOpSubgroupMul:
  ------------------
  |  Branch (9747:5): [True: 0, False: 397]
  ------------------
 9748|      0|    case glslang::EOpSubgroupMin:
  ------------------
  |  Branch (9748:5): [True: 0, False: 397]
  ------------------
 9749|      0|    case glslang::EOpSubgroupMax:
  ------------------
  |  Branch (9749:5): [True: 0, False: 397]
  ------------------
 9750|      0|    case glslang::EOpSubgroupAnd:
  ------------------
  |  Branch (9750:5): [True: 0, False: 397]
  ------------------
 9751|      0|    case glslang::EOpSubgroupOr:
  ------------------
  |  Branch (9751:5): [True: 0, False: 397]
  ------------------
 9752|      0|    case glslang::EOpSubgroupXor:
  ------------------
  |  Branch (9752:5): [True: 0, False: 397]
  ------------------
 9753|      0|    case glslang::EOpSubgroupInclusiveAdd:
  ------------------
  |  Branch (9753:5): [True: 0, False: 397]
  ------------------
 9754|      0|    case glslang::EOpSubgroupInclusiveMul:
  ------------------
  |  Branch (9754:5): [True: 0, False: 397]
  ------------------
 9755|      0|    case glslang::EOpSubgroupInclusiveMin:
  ------------------
  |  Branch (9755:5): [True: 0, False: 397]
  ------------------
 9756|      0|    case glslang::EOpSubgroupInclusiveMax:
  ------------------
  |  Branch (9756:5): [True: 0, False: 397]
  ------------------
 9757|      0|    case glslang::EOpSubgroupInclusiveAnd:
  ------------------
  |  Branch (9757:5): [True: 0, False: 397]
  ------------------
 9758|      0|    case glslang::EOpSubgroupInclusiveOr:
  ------------------
  |  Branch (9758:5): [True: 0, False: 397]
  ------------------
 9759|      0|    case glslang::EOpSubgroupInclusiveXor:
  ------------------
  |  Branch (9759:5): [True: 0, False: 397]
  ------------------
 9760|      0|    case glslang::EOpSubgroupExclusiveAdd:
  ------------------
  |  Branch (9760:5): [True: 0, False: 397]
  ------------------
 9761|      0|    case glslang::EOpSubgroupExclusiveMul:
  ------------------
  |  Branch (9761:5): [True: 0, False: 397]
  ------------------
 9762|      0|    case glslang::EOpSubgroupExclusiveMin:
  ------------------
  |  Branch (9762:5): [True: 0, False: 397]
  ------------------
 9763|      0|    case glslang::EOpSubgroupExclusiveMax:
  ------------------
  |  Branch (9763:5): [True: 0, False: 397]
  ------------------
 9764|      0|    case glslang::EOpSubgroupExclusiveAnd:
  ------------------
  |  Branch (9764:5): [True: 0, False: 397]
  ------------------
 9765|      0|    case glslang::EOpSubgroupExclusiveOr:
  ------------------
  |  Branch (9765:5): [True: 0, False: 397]
  ------------------
 9766|      0|    case glslang::EOpSubgroupExclusiveXor:
  ------------------
  |  Branch (9766:5): [True: 0, False: 397]
  ------------------
 9767|      0|    case glslang::EOpSubgroupQuadSwapHorizontal:
  ------------------
  |  Branch (9767:5): [True: 0, False: 397]
  ------------------
 9768|      0|    case glslang::EOpSubgroupQuadSwapVertical:
  ------------------
  |  Branch (9768:5): [True: 0, False: 397]
  ------------------
 9769|      0|    case glslang::EOpSubgroupQuadSwapDiagonal:
  ------------------
  |  Branch (9769:5): [True: 0, False: 397]
  ------------------
 9770|      0|    case glslang::EOpSubgroupQuadAll:
  ------------------
  |  Branch (9770:5): [True: 0, False: 397]
  ------------------
 9771|      0|    case glslang::EOpSubgroupQuadAny: {
  ------------------
  |  Branch (9771:5): [True: 0, False: 397]
  ------------------
 9772|      0|        std::vector<spv::Id> operands;
 9773|      0|        operands.push_back(operand);
 9774|      0|        return createSubgroupOperation(op, typeId, operands, typeProxy);
 9775|      0|    }
 9776|      0|    case glslang::EOpMbcnt:
  ------------------
  |  Branch (9776:5): [True: 0, False: 397]
  ------------------
 9777|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_ballot);
 9778|      0|        libCall = spv::MbcntAMD;
 9779|      0|        break;
 9780|       |
 9781|      0|    case glslang::EOpCubeFaceIndex:
  ------------------
  |  Branch (9781:5): [True: 0, False: 397]
  ------------------
 9782|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_gcn_shader);
 9783|      0|        libCall = spv::CubeFaceIndexAMD;
 9784|      0|        break;
 9785|       |
 9786|      0|    case glslang::EOpCubeFaceCoord:
  ------------------
  |  Branch (9786:5): [True: 0, False: 397]
  ------------------
 9787|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_gcn_shader);
 9788|      0|        libCall = spv::CubeFaceCoordAMD;
 9789|      0|        break;
 9790|      0|    case glslang::EOpSubgroupPartition:
  ------------------
  |  Branch (9790:5): [True: 0, False: 397]
  ------------------
 9791|      0|        unaryOp = spv::Op::OpGroupNonUniformPartitionNV;
 9792|      0|        break;
 9793|      0|    case glslang::EOpConstructReference:
  ------------------
  |  Branch (9793:5): [True: 0, False: 397]
  ------------------
 9794|      0|        unaryOp = spv::Op::OpBitcast;
 9795|      0|        break;
 9796|       |
 9797|      0|    case glslang::EOpConvUint64ToAccStruct:
  ------------------
  |  Branch (9797:5): [True: 0, False: 397]
  ------------------
 9798|      0|    case glslang::EOpConvUvec2ToAccStruct:
  ------------------
  |  Branch (9798:5): [True: 0, False: 397]
  ------------------
 9799|      0|        unaryOp = spv::Op::OpConvertUToAccelerationStructureKHR;
 9800|      0|        break;
 9801|       |
 9802|      0|    case glslang::EOpHitObjectIsEmptyNV:
  ------------------
  |  Branch (9802:5): [True: 0, False: 397]
  ------------------
 9803|      0|        unaryOp = spv::Op::OpHitObjectIsEmptyNV;
 9804|      0|        break;
 9805|       |
 9806|      0|    case glslang::EOpHitObjectIsEmptyEXT:
  ------------------
  |  Branch (9806:5): [True: 0, False: 397]
  ------------------
 9807|      0|        unaryOp = spv::Op::OpHitObjectIsEmptyEXT;
 9808|      0|        break;
 9809|       |
 9810|      0|    case glslang::EOpHitObjectIsMissNV:
  ------------------
  |  Branch (9810:5): [True: 0, False: 397]
  ------------------
 9811|      0|        unaryOp = spv::Op::OpHitObjectIsMissNV;
 9812|      0|        break;
 9813|       |
 9814|      0|    case glslang::EOpHitObjectIsMissEXT:
  ------------------
  |  Branch (9814:5): [True: 0, False: 397]
  ------------------
 9815|      0|        unaryOp = spv::Op::OpHitObjectIsMissEXT;
 9816|      0|        break;
 9817|       |
 9818|      0|    case glslang::EOpHitObjectIsHitNV:
  ------------------
  |  Branch (9818:5): [True: 0, False: 397]
  ------------------
 9819|      0|        unaryOp = spv::Op::OpHitObjectIsHitNV;
 9820|      0|        break;
 9821|       |
 9822|      0|    case glslang::EOpHitObjectIsHitEXT:
  ------------------
  |  Branch (9822:5): [True: 0, False: 397]
  ------------------
 9823|      0|        unaryOp = spv::Op::OpHitObjectIsHitEXT;
 9824|      0|        break;
 9825|       |
 9826|      0|    case glslang::EOpHitObjectGetObjectRayOriginNV:
  ------------------
  |  Branch (9826:5): [True: 0, False: 397]
  ------------------
 9827|      0|        unaryOp = spv::Op::OpHitObjectGetObjectRayOriginNV;
 9828|      0|        break;
 9829|       |
 9830|      0|    case glslang::EOpHitObjectGetObjectRayOriginEXT:
  ------------------
  |  Branch (9830:5): [True: 0, False: 397]
  ------------------
 9831|      0|        unaryOp = spv::Op::OpHitObjectGetObjectRayOriginEXT;
 9832|      0|        break;
 9833|       |
 9834|      0|    case glslang::EOpHitObjectGetObjectRayDirectionNV:
  ------------------
  |  Branch (9834:5): [True: 0, False: 397]
  ------------------
 9835|      0|        unaryOp = spv::Op::OpHitObjectGetObjectRayDirectionNV;
 9836|      0|        break;
 9837|       |
 9838|      0|    case glslang::EOpHitObjectGetObjectRayDirectionEXT:
  ------------------
  |  Branch (9838:5): [True: 0, False: 397]
  ------------------
 9839|      0|        unaryOp = spv::Op::OpHitObjectGetObjectRayDirectionEXT;
 9840|      0|        break;
 9841|       |
 9842|      0|    case glslang::EOpHitObjectGetWorldRayOriginNV:
  ------------------
  |  Branch (9842:5): [True: 0, False: 397]
  ------------------
 9843|      0|        unaryOp = spv::Op::OpHitObjectGetWorldRayOriginNV;
 9844|      0|        break;
 9845|       |
 9846|      0|    case glslang::EOpHitObjectGetWorldRayOriginEXT:
  ------------------
  |  Branch (9846:5): [True: 0, False: 397]
  ------------------
 9847|      0|        unaryOp = spv::Op::OpHitObjectGetWorldRayOriginEXT;
 9848|      0|        break;
 9849|       |
 9850|      0|    case glslang::EOpHitObjectGetWorldRayDirectionNV:
  ------------------
  |  Branch (9850:5): [True: 0, False: 397]
  ------------------
 9851|      0|        unaryOp = spv::Op::OpHitObjectGetWorldRayDirectionNV;
 9852|      0|        break;
 9853|       |
 9854|      0|    case glslang::EOpHitObjectGetWorldRayDirectionEXT:
  ------------------
  |  Branch (9854:5): [True: 0, False: 397]
  ------------------
 9855|      0|        unaryOp = spv::Op::OpHitObjectGetWorldRayDirectionEXT;
 9856|      0|        break;
 9857|       |
 9858|      0|    case glslang::EOpHitObjectGetObjectToWorldNV:
  ------------------
  |  Branch (9858:5): [True: 0, False: 397]
  ------------------
 9859|      0|        unaryOp = spv::Op::OpHitObjectGetObjectToWorldNV;
 9860|      0|        break;
 9861|       |
 9862|      0|    case glslang::EOpHitObjectGetObjectToWorldEXT:
  ------------------
  |  Branch (9862:5): [True: 0, False: 397]
  ------------------
 9863|      0|        unaryOp = spv::Op::OpHitObjectGetObjectToWorldEXT;
 9864|      0|        break;
 9865|       |
 9866|      0|    case glslang::EOpHitObjectGetWorldToObjectNV:
  ------------------
  |  Branch (9866:5): [True: 0, False: 397]
  ------------------
 9867|      0|        unaryOp = spv::Op::OpHitObjectGetWorldToObjectNV;
 9868|      0|        break;
 9869|       |
 9870|      0|    case glslang::EOpHitObjectGetWorldToObjectEXT:
  ------------------
  |  Branch (9870:5): [True: 0, False: 397]
  ------------------
 9871|      0|        unaryOp = spv::Op::OpHitObjectGetWorldToObjectEXT;
 9872|      0|        break;
 9873|       |
 9874|      0|    case glslang::EOpHitObjectGetRayTMinNV:
  ------------------
  |  Branch (9874:5): [True: 0, False: 397]
  ------------------
 9875|      0|        unaryOp = spv::Op::OpHitObjectGetRayTMinNV;
 9876|      0|        break;
 9877|       |
 9878|      0|    case glslang::EOpHitObjectGetRayTMinEXT:
  ------------------
  |  Branch (9878:5): [True: 0, False: 397]
  ------------------
 9879|      0|        unaryOp = spv::Op::OpHitObjectGetRayTMinEXT;
 9880|      0|        break;
 9881|       |
 9882|      0|    case glslang::EOpHitObjectGetRayTMaxNV:
  ------------------
  |  Branch (9882:5): [True: 0, False: 397]
  ------------------
 9883|      0|        unaryOp = spv::Op::OpHitObjectGetRayTMaxNV;
 9884|      0|        break;
 9885|       |
 9886|      0|    case glslang::EOpHitObjectGetRayTMaxEXT:
  ------------------
  |  Branch (9886:5): [True: 0, False: 397]
  ------------------
 9887|      0|        unaryOp = spv::Op::OpHitObjectGetRayTMaxEXT;
 9888|      0|        break;
 9889|       |
 9890|      0|    case glslang::EOpHitObjectGetRayFlagsEXT:
  ------------------
  |  Branch (9890:5): [True: 0, False: 397]
  ------------------
 9891|      0|        unaryOp = spv::Op::OpHitObjectGetRayFlagsEXT;
 9892|      0|        break;
 9893|       |
 9894|      0|    case glslang::EOpHitObjectGetPrimitiveIndexNV:
  ------------------
  |  Branch (9894:5): [True: 0, False: 397]
  ------------------
 9895|      0|        unaryOp = spv::Op::OpHitObjectGetPrimitiveIndexNV;
 9896|      0|        break;
 9897|       |
 9898|      0|    case glslang::EOpHitObjectGetPrimitiveIndexEXT:
  ------------------
  |  Branch (9898:5): [True: 0, False: 397]
  ------------------
 9899|      0|        unaryOp = spv::Op::OpHitObjectGetPrimitiveIndexEXT;
 9900|      0|        break;
 9901|       |
 9902|      0|    case glslang::EOpHitObjectGetInstanceIdNV:
  ------------------
  |  Branch (9902:5): [True: 0, False: 397]
  ------------------
 9903|      0|        unaryOp = spv::Op::OpHitObjectGetInstanceIdNV;
 9904|      0|        break;
 9905|       |
 9906|      0|    case glslang::EOpHitObjectGetInstanceIdEXT:
  ------------------
  |  Branch (9906:5): [True: 0, False: 397]
  ------------------
 9907|      0|        unaryOp = spv::Op::OpHitObjectGetInstanceIdEXT;
 9908|      0|        break;
 9909|       |
 9910|      0|    case glslang::EOpHitObjectGetInstanceCustomIndexNV:
  ------------------
  |  Branch (9910:5): [True: 0, False: 397]
  ------------------
 9911|      0|        unaryOp = spv::Op::OpHitObjectGetInstanceCustomIndexNV;
 9912|      0|        break;
 9913|       |
 9914|      0|    case glslang::EOpHitObjectGetInstanceCustomIndexEXT:
  ------------------
  |  Branch (9914:5): [True: 0, False: 397]
  ------------------
 9915|      0|        unaryOp = spv::Op::OpHitObjectGetInstanceCustomIndexEXT;
 9916|      0|        break;
 9917|       |
 9918|      0|    case glslang::EOpHitObjectGetGeometryIndexNV:
  ------------------
  |  Branch (9918:5): [True: 0, False: 397]
  ------------------
 9919|      0|        unaryOp = spv::Op::OpHitObjectGetGeometryIndexNV;
 9920|      0|        break;
 9921|       |
 9922|      0|    case glslang::EOpHitObjectGetGeometryIndexEXT:
  ------------------
  |  Branch (9922:5): [True: 0, False: 397]
  ------------------
 9923|      0|        unaryOp = spv::Op::OpHitObjectGetGeometryIndexEXT;
 9924|      0|        break;
 9925|       |
 9926|      0|    case glslang::EOpHitObjectGetHitKindNV:
  ------------------
  |  Branch (9926:5): [True: 0, False: 397]
  ------------------
 9927|      0|        unaryOp = spv::Op::OpHitObjectGetHitKindNV;
 9928|      0|        break;
 9929|       |
 9930|      0|    case glslang::EOpHitObjectGetHitKindEXT:
  ------------------
  |  Branch (9930:5): [True: 0, False: 397]
  ------------------
 9931|      0|        unaryOp = spv::Op::OpHitObjectGetHitKindEXT;
 9932|      0|        break;
 9933|       |
 9934|      0|    case glslang::EOpHitObjectGetCurrentTimeNV:
  ------------------
  |  Branch (9934:5): [True: 0, False: 397]
  ------------------
 9935|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
 9936|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
 9937|      0|        unaryOp = spv::Op::OpHitObjectGetCurrentTimeNV;
 9938|      0|        break;
 9939|       |
 9940|      0|    case glslang::EOpHitObjectGetCurrentTimeEXT:
  ------------------
  |  Branch (9940:5): [True: 0, False: 397]
  ------------------
 9941|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
 9942|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
 9943|      0|        unaryOp = spv::Op::OpHitObjectGetCurrentTimeEXT;
 9944|      0|        break;
 9945|       |
 9946|      0|    case glslang::EOpHitObjectGetShaderBindingTableRecordIndexNV:
  ------------------
  |  Branch (9946:5): [True: 0, False: 397]
  ------------------
 9947|      0|        unaryOp = spv::Op::OpHitObjectGetShaderBindingTableRecordIndexNV;
 9948|      0|        break;
 9949|       |
 9950|      0|    case glslang::EOpHitObjectGetShaderBindingTableRecordIndexEXT:
  ------------------
  |  Branch (9950:5): [True: 0, False: 397]
  ------------------
 9951|      0|        unaryOp = spv::Op::OpHitObjectGetShaderBindingTableRecordIndexEXT;
 9952|      0|        break;
 9953|       |
 9954|      0|    case glslang::EOpHitObjectGetShaderRecordBufferHandleNV:
  ------------------
  |  Branch (9954:5): [True: 0, False: 397]
  ------------------
 9955|      0|        unaryOp = spv::Op::OpHitObjectGetShaderRecordBufferHandleNV;
 9956|      0|        break;
 9957|       |
 9958|      0|    case glslang::EOpHitObjectGetClusterIdNV:
  ------------------
  |  Branch (9958:5): [True: 0, False: 397]
  ------------------
 9959|      0|        unaryOp = spv::Op::OpHitObjectGetClusterIdNV;
 9960|      0|        builder.addExtension(spv::E_SPV_NV_cluster_acceleration_structure);
 9961|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 9962|      0|        builder.addCapability(spv::Capability::RayTracingClusterAccelerationStructureNV);
 9963|      0|        break;
 9964|       |
 9965|      0|    case glslang::EOpHitObjectGetSpherePositionNV:
  ------------------
  |  Branch (9965:5): [True: 0, False: 397]
  ------------------
 9966|      0|        unaryOp = spv::Op::OpHitObjectGetSpherePositionNV;
 9967|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 9968|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 9969|      0|        builder.addCapability(spv::Capability::RayTracingSpheresGeometryNV);
 9970|      0|        break;
 9971|       |
 9972|      0|    case glslang::EOpHitObjectGetSphereRadiusNV:
  ------------------
  |  Branch (9972:5): [True: 0, False: 397]
  ------------------
 9973|      0|        unaryOp = spv::Op::OpHitObjectGetSphereRadiusNV;
 9974|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 9975|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 9976|      0|        builder.addCapability(spv::Capability::RayTracingSpheresGeometryNV);
 9977|      0|        break;
 9978|       |
 9979|      0|    case glslang::EOpHitObjectIsSphereHitNV:
  ------------------
  |  Branch (9979:5): [True: 0, False: 397]
  ------------------
 9980|      0|        unaryOp = spv::Op::OpHitObjectIsSphereHitNV;
 9981|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 9982|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 9983|      0|        builder.addCapability(spv::Capability::RayTracingSpheresGeometryNV);
 9984|      0|        break;
 9985|       |
 9986|      0|    case glslang::EOpHitObjectIsLSSHitNV:
  ------------------
  |  Branch (9986:5): [True: 0, False: 397]
  ------------------
 9987|      0|        unaryOp = spv::Op::OpHitObjectIsLSSHitNV;
 9988|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 9989|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 9990|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 9991|      0|        break;
 9992|       |
 9993|      0|    case glslang::EOpHitObjectGetShaderRecordBufferHandleEXT:
  ------------------
  |  Branch (9993:5): [True: 0, False: 397]
  ------------------
 9994|      0|        unaryOp = spv::Op::OpHitObjectGetShaderRecordBufferHandleEXT;
 9995|      0|        break;
 9996|       |
 9997|      0|    case glslang::EOpFetchMicroTriangleVertexPositionNV:
  ------------------
  |  Branch (9997:5): [True: 0, False: 397]
  ------------------
 9998|      0|        unaryOp = spv::Op::OpFetchMicroTriangleVertexPositionNV;
 9999|      0|        break;
10000|       |
10001|      0|    case glslang::EOpFetchMicroTriangleVertexBarycentricNV:
  ------------------
  |  Branch (10001:5): [True: 0, False: 397]
  ------------------
10002|      0|        unaryOp = spv::Op::OpFetchMicroTriangleVertexBarycentricNV;
10003|      0|        break;
10004|       |
10005|      0|    case glslang::EOpCopyObject:
  ------------------
  |  Branch (10005:5): [True: 0, False: 397]
  ------------------
10006|      0|        unaryOp = spv::Op::OpCopyObject;
10007|      0|        break;
10008|       |
10009|      0|    case glslang::EOpDepthAttachmentReadEXT:
  ------------------
  |  Branch (10009:5): [True: 0, False: 397]
  ------------------
10010|      0|        builder.addExtension(spv::E_SPV_EXT_shader_tile_image);
10011|      0|        builder.addCapability(spv::Capability::TileImageDepthReadAccessEXT);
10012|      0|        unaryOp = spv::Op::OpDepthAttachmentReadEXT;
10013|      0|        decorations.precision = spv::NoPrecision;
10014|      0|        break;
10015|      0|    case glslang::EOpStencilAttachmentReadEXT:
  ------------------
  |  Branch (10015:5): [True: 0, False: 397]
  ------------------
10016|      0|        builder.addExtension(spv::E_SPV_EXT_shader_tile_image);
10017|      0|        builder.addCapability(spv::Capability::TileImageStencilReadAccessEXT);
10018|      0|        unaryOp = spv::Op::OpStencilAttachmentReadEXT;
10019|      0|        decorations.precision = spv::Decoration::RelaxedPrecision;
10020|      0|        break;
10021|       |
10022|     68|    default:
  ------------------
  |  Branch (10022:5): [True: 68, False: 329]
  ------------------
10023|     68|        return 0;
10024|    397|    }
10025|       |
10026|    329|    spv::Id id;
10027|    329|    if (libCall >= 0) {
  ------------------
  |  Branch (10027:9): [True: 34, False: 295]
  ------------------
10028|     34|        std::vector<spv::Id> args;
10029|     34|        args.push_back(operand);
10030|     34|        id = builder.createBuiltinCall(typeId, extBuiltins >= 0 ? (spv::Id)extBuiltins : stdBuiltins, libCall, args);
  ------------------
  |  Branch (10030:48): [True: 0, False: 34]
  ------------------
10031|    295|    } else {
10032|    295|        id = builder.createUnaryOp(unaryOp, typeId, operand);
10033|    295|    }
10034|       |
10035|    329|    decorations.addNoContraction(builder, id);
10036|    329|    decorations.addNonUniform(builder, id);
10037|    329|    return builder.setPrecision(id, decorations.precision);
10038|    397|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser14visitSelectionEN7glslang6TVisitEPNS1_16TIntermSelectionE:
 5320|    128|{
 5321|       |    // see if OpSelect can handle it
 5322|    128|    const auto isOpSelectable = [&]() {
 5323|    128|        if (node->getBasicType() == glslang::EbtVoid)
 5324|    128|            return false;
 5325|       |        // OpSelect can do all other types starting with SPV 1.4
 5326|    128|        if (glslangIntermediate->getSpv().spv < glslang::EShTargetSpv_1_4) {
 5327|       |            // pre-1.4, only scalars and vectors can be handled
 5328|    128|            if ((!node->getType().isScalar() && !node->getType().isVector()))
 5329|    128|                return false;
 5330|    128|        }
 5331|    128|        return true;
 5332|    128|    };
 5333|       |
 5334|       |    // See if it simple and safe, or required, to execute both sides.
 5335|       |    // Crucially, side effects must be either semantically required or avoided,
 5336|       |    // and there are performance trade-offs.
 5337|       |    // Return true if required or a good idea (and safe) to execute both sides,
 5338|       |    // false otherwise.
 5339|    128|    const auto bothSidesPolicy = [&]() -> bool {
 5340|       |        // do we have both sides?
 5341|    128|        if (node->getTrueBlock()  == nullptr ||
 5342|    128|            node->getFalseBlock() == nullptr)
 5343|    128|            return false;
 5344|       |
 5345|       |        // required? (unless we write additional code to look for side effects
 5346|       |        // and make performance trade-offs if none are present)
 5347|    128|        if (!node->getShortCircuit())
 5348|    128|            return true;
 5349|       |
 5350|       |        // if not required to execute both, decide based on performance/practicality...
 5351|       |
 5352|    128|        if (!isOpSelectable())
 5353|    128|            return false;
 5354|       |
 5355|    128|        assert(node->getType() == node->getTrueBlock() ->getAsTyped()->getType() &&
 5356|    128|               node->getType() == node->getFalseBlock()->getAsTyped()->getType());
 5357|       |
 5358|       |        // return true if a single operand to ? : is okay for OpSelect
 5359|    128|        const auto operandOkay = [](glslang::TIntermTyped* node) {
 5360|    128|            return node->getAsSymbolNode() || node->getType().getQualifier().isConstant();
 5361|    128|        };
 5362|       |
 5363|    128|        return operandOkay(node->getTrueBlock() ->getAsTyped()) &&
 5364|    128|               operandOkay(node->getFalseBlock()->getAsTyped());
 5365|    128|    };
 5366|       |
 5367|    128|    spv::Id result = spv::NoResult; // upcoming result selecting between trueValue and falseValue
 5368|       |    // emit the condition before doing anything with selection
 5369|    128|    node->getCondition()->traverse(this);
 5370|    128|    spv::Id condition = accessChainLoad(node->getCondition()->getType());
 5371|       |
 5372|       |    // Find a way of executing both sides and selecting the right result.
 5373|    128|    const auto executeBothSides = [&]() -> void {
 5374|       |        // execute both sides
 5375|    128|        spv::Id resultType = convertGlslangToSpvType(node->getType());
 5376|    128|        node->getTrueBlock()->traverse(this);
 5377|    128|        spv::Id trueValue = accessChainLoad(node->getTrueBlock()->getAsTyped()->getType());
 5378|    128|        node->getFalseBlock()->traverse(this);
 5379|    128|        spv::Id falseValue = accessChainLoad(node->getFalseBlock()->getAsTyped()->getType());
 5380|       |
 5381|    128|        builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 5382|       |
 5383|       |        // done if void
 5384|    128|        if (node->getBasicType() == glslang::EbtVoid)
 5385|    128|            return;
 5386|       |
 5387|       |        // emit code to select between trueValue and falseValue
 5388|       |        // see if OpSelect can handle the result type, and that the SPIR-V types
 5389|       |        // of the inputs match the result type.
 5390|    128|        if (isOpSelectable()) {
 5391|       |            // Emit OpSelect for this selection.
 5392|       |
 5393|       |            // smear condition to vector, if necessary (AST is always scalar)
 5394|       |            // Before 1.4, smear like for mix(), starting with 1.4, keep it scalar
 5395|    128|            if (glslangIntermediate->getSpv().spv < glslang::EShTargetSpv_1_4 && builder.isVector(trueValue)) {
 5396|    128|                condition = builder.smearScalar(spv::NoPrecision, condition,
 5397|    128|                                                builder.makeVectorType(builder.makeBoolType(),
 5398|    128|                                                                       builder.getNumComponents(trueValue)));
 5399|    128|            }
 5400|       |
 5401|       |            // If the types do not match, it is because of mismatched decorations on aggregates.
 5402|       |            // Since isOpSelectable only lets us get here for SPIR-V >= 1.4, we can use OpCopyObject
 5403|       |            // to get matching types.
 5404|    128|            if (builder.getTypeId(trueValue) != resultType) {
 5405|    128|                trueValue = builder.createUnaryOp(spv::Op::OpCopyLogical, resultType, trueValue);
 5406|    128|            }
 5407|    128|            if (builder.getTypeId(falseValue) != resultType) {
 5408|    128|                falseValue = builder.createUnaryOp(spv::Op::OpCopyLogical, resultType, falseValue);
 5409|    128|            }
 5410|       |
 5411|       |            // OpSelect
 5412|    128|            result = builder.createTriOp(spv::Op::OpSelect, resultType, condition, trueValue, falseValue);
 5413|       |
 5414|    128|            builder.clearAccessChain();
 5415|    128|            builder.setAccessChainRValue(result);
 5416|    128|        } else {
 5417|       |            // We need control flow to select the result.
 5418|       |            // TODO: Once SPIR-V OpSelect allows arbitrary types, eliminate this path.
 5419|    128|            result = builder.createVariable(TranslatePrecisionDecoration(node->getType()),
 5420|    128|                spv::StorageClass::Function, resultType);
 5421|       |
 5422|       |            // Selection control:
 5423|    128|            const spv::SelectionControlMask control = TranslateSelectionControl(*node);
 5424|       |
 5425|       |            // make an "if" based on the value created by the condition
 5426|    128|            spv::Builder::If ifBuilder(condition, control, builder);
 5427|       |
 5428|       |            // emit the "then" statement
 5429|    128|            builder.clearAccessChain();
 5430|    128|            builder.setAccessChainLValue(result);
 5431|    128|            multiTypeStore(node->getType(), trueValue);
 5432|       |
 5433|    128|            ifBuilder.makeBeginElse();
 5434|       |            // emit the "else" statement
 5435|    128|            builder.clearAccessChain();
 5436|    128|            builder.setAccessChainLValue(result);
 5437|    128|            multiTypeStore(node->getType(), falseValue);
 5438|       |
 5439|       |            // finish off the control flow
 5440|    128|            ifBuilder.makeEndIf();
 5441|       |
 5442|    128|            builder.clearAccessChain();
 5443|    128|            builder.setAccessChainLValue(result);
 5444|    128|        }
 5445|    128|    };
 5446|       |
 5447|       |    // Execute the one side needed, as per the condition
 5448|    128|    const auto executeOneSide = [&]() {
 5449|       |        // Always emit control flow.
 5450|    128|        if (node->getBasicType() != glslang::EbtVoid) {
 5451|    128|            result = builder.createVariable(TranslatePrecisionDecoration(node->getType()), spv::StorageClass::Function,
 5452|    128|                convertGlslangToSpvType(node->getType()));
 5453|    128|        }
 5454|       |
 5455|       |        // Selection control:
 5456|    128|        const spv::SelectionControlMask control = TranslateSelectionControl(*node);
 5457|       |
 5458|       |        // make an "if" based on the value created by the condition
 5459|    128|        spv::Builder::If ifBuilder(condition, control, builder);
 5460|       |
 5461|       |        // emit the "then" statement
 5462|    128|        if (node->getTrueBlock() != nullptr) {
 5463|    128|            node->getTrueBlock()->traverse(this);
 5464|    128|            if (result != spv::NoResult) {
 5465|    128|                spv::Id load = accessChainLoad(node->getTrueBlock()->getAsTyped()->getType());
 5466|       |
 5467|    128|                builder.clearAccessChain();
 5468|    128|                builder.setAccessChainLValue(result);
 5469|    128|                multiTypeStore(node->getType(), load);
 5470|    128|            }
 5471|    128|        }
 5472|       |
 5473|    128|        if (node->getFalseBlock() != nullptr) {
 5474|    128|            ifBuilder.makeBeginElse();
 5475|       |            // emit the "else" statement
 5476|    128|            node->getFalseBlock()->traverse(this);
 5477|    128|            if (result != spv::NoResult) {
 5478|    128|                spv::Id load = accessChainLoad(node->getFalseBlock()->getAsTyped()->getType());
 5479|       |
 5480|    128|                builder.clearAccessChain();
 5481|    128|                builder.setAccessChainLValue(result);
 5482|    128|                multiTypeStore(node->getType(), load);
 5483|    128|            }
 5484|    128|        }
 5485|       |
 5486|       |        // finish off the control flow
 5487|    128|        ifBuilder.makeEndIf();
 5488|       |
 5489|    128|        if (result != spv::NoResult) {
 5490|    128|            builder.clearAccessChain();
 5491|    128|            builder.setAccessChainLValue(result);
 5492|    128|        }
 5493|    128|    };
 5494|       |
 5495|       |    // Try for OpSelect (or a requirement to execute both sides)
 5496|    128|    if (bothSidesPolicy()) {
  ------------------
  |  Branch (5496:9): [True: 0, False: 128]
  ------------------
 5497|      0|        SpecConstantOpModeGuard spec_constant_op_mode_setter(&builder);
 5498|      0|        if (node->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (5498:13): [True: 0, False: 0]
  ------------------
 5499|      0|            spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
 5500|      0|        executeBothSides();
 5501|      0|    } else
 5502|    128|        executeOneSide();
 5503|       |
 5504|    128|    return false;
 5505|    128|}
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser14visitSelectionEN7glslang6TVisitEPNS1_16TIntermSelectionEENK3$_1clEv:
 5339|    128|    const auto bothSidesPolicy = [&]() -> bool {
 5340|       |        // do we have both sides?
 5341|    128|        if (node->getTrueBlock()  == nullptr ||
  ------------------
  |  Branch (5341:13): [True: 1, False: 127]
  ------------------
 5342|    127|            node->getFalseBlock() == nullptr)
  ------------------
  |  Branch (5342:13): [True: 127, False: 0]
  ------------------
 5343|    128|            return false;
 5344|       |
 5345|       |        // required? (unless we write additional code to look for side effects
 5346|       |        // and make performance trade-offs if none are present)
 5347|      0|        if (!node->getShortCircuit())
  ------------------
  |  Branch (5347:13): [True: 0, False: 0]
  ------------------
 5348|      0|            return true;
 5349|       |
 5350|       |        // if not required to execute both, decide based on performance/practicality...
 5351|       |
 5352|      0|        if (!isOpSelectable())
  ------------------
  |  Branch (5352:13): [True: 0, False: 0]
  ------------------
 5353|      0|            return false;
 5354|       |
 5355|      0|        assert(node->getType() == node->getTrueBlock() ->getAsTyped()->getType() &&
 5356|      0|               node->getType() == node->getFalseBlock()->getAsTyped()->getType());
 5357|       |
 5358|       |        // return true if a single operand to ? : is okay for OpSelect
 5359|      0|        const auto operandOkay = [](glslang::TIntermTyped* node) {
 5360|      0|            return node->getAsSymbolNode() || node->getType().getQualifier().isConstant();
 5361|      0|        };
 5362|       |
 5363|      0|        return operandOkay(node->getTrueBlock() ->getAsTyped()) &&
  ------------------
  |  Branch (5363:16): [True: 0, False: 0]
  ------------------
 5364|      0|               operandOkay(node->getFalseBlock()->getAsTyped());
  ------------------
  |  Branch (5364:16): [True: 0, False: 0]
  ------------------
 5365|      0|    };
GlslangToSpv.cpp:_ZNK12_GLOBAL__N_122TGlslangToSpvTraverser25TranslateSelectionControlERKN7glslang16TIntermSelectionE:
 1428|    128|{
 1429|    128|    if (selectionNode.getFlatten())
  ------------------
  |  Branch (1429:9): [True: 0, False: 128]
  ------------------
 1430|      0|        return spv::SelectionControlMask::Flatten;
 1431|    128|    if (selectionNode.getDontFlatten())
  ------------------
  |  Branch (1431:9): [True: 0, False: 128]
  ------------------
 1432|      0|        return spv::SelectionControlMask::DontFlatten;
 1433|    128|    return spv::SelectionControlMask::MaskNone;
 1434|    128|}
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser14visitSelectionEN7glslang6TVisitEPNS1_16TIntermSelectionEENK3$_3clEv:
 5448|    128|    const auto executeOneSide = [&]() {
 5449|       |        // Always emit control flow.
 5450|    128|        if (node->getBasicType() != glslang::EbtVoid) {
  ------------------
  |  Branch (5450:13): [True: 0, False: 128]
  ------------------
 5451|      0|            result = builder.createVariable(TranslatePrecisionDecoration(node->getType()), spv::StorageClass::Function,
 5452|      0|                convertGlslangToSpvType(node->getType()));
 5453|      0|        }
 5454|       |
 5455|       |        // Selection control:
 5456|    128|        const spv::SelectionControlMask control = TranslateSelectionControl(*node);
 5457|       |
 5458|       |        // make an "if" based on the value created by the condition
 5459|    128|        spv::Builder::If ifBuilder(condition, control, builder);
 5460|       |
 5461|       |        // emit the "then" statement
 5462|    128|        if (node->getTrueBlock() != nullptr) {
  ------------------
  |  Branch (5462:13): [True: 127, False: 1]
  ------------------
 5463|    127|            node->getTrueBlock()->traverse(this);
 5464|    127|            if (result != spv::NoResult) {
  ------------------
  |  Branch (5464:17): [True: 0, False: 127]
  ------------------
 5465|      0|                spv::Id load = accessChainLoad(node->getTrueBlock()->getAsTyped()->getType());
 5466|       |
 5467|      0|                builder.clearAccessChain();
 5468|      0|                builder.setAccessChainLValue(result);
 5469|      0|                multiTypeStore(node->getType(), load);
 5470|      0|            }
 5471|    127|        }
 5472|       |
 5473|    128|        if (node->getFalseBlock() != nullptr) {
  ------------------
  |  Branch (5473:13): [True: 0, False: 128]
  ------------------
 5474|      0|            ifBuilder.makeBeginElse();
 5475|       |            // emit the "else" statement
 5476|      0|            node->getFalseBlock()->traverse(this);
 5477|      0|            if (result != spv::NoResult) {
  ------------------
  |  Branch (5477:17): [True: 0, False: 0]
  ------------------
 5478|      0|                spv::Id load = accessChainLoad(node->getFalseBlock()->getAsTyped()->getType());
 5479|       |
 5480|      0|                builder.clearAccessChain();
 5481|      0|                builder.setAccessChainLValue(result);
 5482|      0|                multiTypeStore(node->getType(), load);
 5483|      0|            }
 5484|      0|        }
 5485|       |
 5486|       |        // finish off the control flow
 5487|    128|        ifBuilder.makeEndIf();
 5488|       |
 5489|    128|        if (result != spv::NoResult) {
  ------------------
  |  Branch (5489:13): [True: 0, False: 128]
  ------------------
 5490|      0|            builder.clearAccessChain();
 5491|      0|            builder.setAccessChainLValue(result);
 5492|      0|        }
 5493|    128|    };
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser14visitAggregateEN7glslang6TVisitEPNS1_16TIntermAggregateE:
 3589|  4.57k|{
 3590|  4.57k|    SpecConstantOpModeGuard spec_constant_op_mode_setter(&builder);
 3591|  4.57k|    if (node->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (3591:9): [True: 0, False: 4.57k]
  ------------------
 3592|      0|        spec_constant_op_mode_setter.turnOnSpecConstantOpMode();
 3593|       |
 3594|  4.57k|    spv::Id result = spv::NoResult;
 3595|  4.57k|    spv::Id invertedType = spv::NoType;                     // to use to override the natural type of the node
 3596|  4.57k|    std::vector<spv::Builder::AccessChain> complexLvalues;  // for holding swizzling l-values too complex for
 3597|       |                                                            // SPIR-V, for an out parameter
 3598|  4.57k|    std::vector<spv::Id> temporaryLvalues;                  // temporaries to pass, as proxies for complexLValues
 3599|  4.57k|    std::vector<const glslang::TType*> complexLvalueTypes;
 3600|  4.57k|    spv::Builder::AccessChain tensorReadResultLValue = {};
 3601|  4.57k|    tensorReadResultLValue.base = spv::NoResult;            // deferred tensorReadARM out-arg store target
 3602|       |
 3603|  4.57k|    auto resultType = [&invertedType, &node, this](){
 3604|  4.57k|        if (invertedType != spv::NoType) {
 3605|  4.57k|            return invertedType;
 3606|  4.57k|        } else {
 3607|  4.57k|            auto ret = convertGlslangToSpvType(node->getType());
 3608|       |            // convertGlslangToSpvType may clobber the debug location, reset it
 3609|  4.57k|            builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 3610|  4.57k|            return ret;
 3611|  4.57k|        }
 3612|  4.57k|    };
 3613|       |
 3614|       |    // try texturing
 3615|  4.57k|    result = createImageTextureFunctionCall(node);
 3616|  4.57k|    if (result != spv::NoResult) {
  ------------------
  |  Branch (3616:9): [True: 1.34k, False: 3.22k]
  ------------------
 3617|  1.34k|        builder.clearAccessChain();
 3618|  1.34k|        builder.setAccessChainRValue(result);
 3619|       |
 3620|  1.34k|        return false;
 3621|  3.22k|    } else if (node->getOp() == glslang::EOpImageStore ||
  ------------------
  |  Branch (3621:16): [True: 45, False: 3.18k]
  ------------------
 3622|  3.18k|        node->getOp() == glslang::EOpImageStoreLod ||
  ------------------
  |  Branch (3622:9): [True: 0, False: 3.18k]
  ------------------
 3623|  3.18k|        node->getOp() == glslang::EOpImageAtomicStore) {
  ------------------
  |  Branch (3623:9): [True: 10, False: 3.17k]
  ------------------
 3624|       |        // "imageStore" is a special case, which has no result
 3625|     55|        return false;
 3626|     55|    }
 3627|       |
 3628|  3.17k|    glslang::TOperator binOp = glslang::EOpNull;
 3629|  3.17k|    bool reduceComparison = true;
 3630|  3.17k|    bool isMatrix = false;
 3631|  3.17k|    bool noReturnValue = false;
 3632|  3.17k|    bool atomic = false;
 3633|       |
 3634|  3.17k|    spv::Builder::AccessChain::CoherentFlags lvalueCoherentFlags;
 3635|       |
 3636|  3.17k|    assert(node->getOp());
 3637|       |
 3638|  3.17k|    spv::Decoration precision = TranslatePrecisionDecoration(node->getOperationPrecision());
 3639|       |
 3640|  3.17k|    switch (node->getOp()) {
 3641|      0|    case glslang::EOpScope:
  ------------------
  |  Branch (3641:5): [True: 0, False: 3.17k]
  ------------------
 3642|  1.30k|    case glslang::EOpSequence:
  ------------------
  |  Branch (3642:5): [True: 1.30k, False: 1.87k]
  ------------------
 3643|  1.30k|    {
 3644|  1.30k|        if (visit == glslang::EvPreVisit) {
  ------------------
  |  Branch (3644:13): [True: 671, False: 629]
  ------------------
 3645|    671|            ++sequenceDepth;
 3646|    671|            if (sequenceDepth == 1) {
  ------------------
  |  Branch (3646:17): [True: 42, False: 629]
  ------------------
 3647|       |                // If this is the parent node of all the functions, we want to see them
 3648|       |                // early, so all call points have actual SPIR-V functions to reference.
 3649|       |                // In all cases, still let the traverser visit the children for us.
 3650|     42|                makeFunctions(node->getAsAggregate()->getSequence());
 3651|       |
 3652|       |                // Global initializers is specific to the shader entry point, which does not exist in compile-only mode
 3653|     42|                if (!options.compileOnly) {
  ------------------
  |  Branch (3653:21): [True: 42, False: 0]
  ------------------
 3654|       |                    // Also, we want all globals initializers to go into the beginning of the entry point, before
 3655|       |                    // anything else gets there, so visit out of order, doing them all now.
 3656|     42|                    makeGlobalInitializers(node->getAsAggregate()->getSequence());
 3657|     42|                }
 3658|       |
 3659|       |                //Pre process linker objects for ray tracing stages
 3660|     42|                if (glslangIntermediate->isRayTracingStage())
  ------------------
  |  Branch (3660:21): [True: 0, False: 42]
  ------------------
 3661|      0|                  collectRayTracingLinkerObjects();
 3662|       |
 3663|       |                // Initializers are done, don't want to visit again, but functions and link objects need to be processed,
 3664|       |                // so do them manually.
 3665|     42|                visitFunctions(node->getAsAggregate()->getSequence());
 3666|       |
 3667|     42|                return false;
 3668|    629|            } else {
 3669|    629|                if (node->getOp() == glslang::EOpScope) {
  ------------------
  |  Branch (3669:21): [True: 0, False: 629]
  ------------------
 3670|      0|                    auto loc = node->getLoc();
 3671|      0|                    builder.enterLexicalBlock(loc.line, loc.column);
 3672|      0|                }
 3673|    629|            }
 3674|    671|        } else {
 3675|    629|            if (sequenceDepth > 1 && node->getOp() == glslang::EOpScope)
  ------------------
  |  Branch (3675:17): [True: 629, False: 0]
  |  Branch (3675:38): [True: 0, False: 629]
  ------------------
 3676|      0|                builder.leaveLexicalBlock();
 3677|    629|            --sequenceDepth;
 3678|    629|        }
 3679|       |
 3680|  1.25k|        return true;
 3681|  1.30k|    }
 3682|     84|    case glslang::EOpLinkerObjects:
  ------------------
  |  Branch (3682:5): [True: 84, False: 3.08k]
  ------------------
 3683|     84|    {
 3684|     84|        if (visit == glslang::EvPreVisit)
  ------------------
  |  Branch (3684:13): [True: 42, False: 42]
  ------------------
 3685|     42|            linkageOnly = true;
 3686|     42|        else
 3687|     42|            linkageOnly = false;
 3688|       |
 3689|     84|        return true;
 3690|  1.30k|    }
 3691|      0|    case glslang::EOpComma:
  ------------------
  |  Branch (3691:5): [True: 0, False: 3.17k]
  ------------------
 3692|      0|    {
 3693|       |        // processing from left to right naturally leaves the right-most
 3694|       |        // lying around in the access chain
 3695|      0|        glslang::TIntermSequence& glslangOperands = node->getSequence();
 3696|      0|        for (int i = 0; i < (int)glslangOperands.size(); ++i)
  ------------------
  |  Branch (3696:25): [True: 0, False: 0]
  ------------------
 3697|      0|            glslangOperands[i]->traverse(this);
 3698|       |
 3699|      0|        return false;
 3700|  1.30k|    }
 3701|    398|    case glslang::EOpFunction:
  ------------------
  |  Branch (3701:5): [True: 398, False: 2.77k]
  ------------------
 3702|    398|        if (visit == glslang::EvPreVisit) {
  ------------------
  |  Branch (3702:13): [True: 199, False: 199]
  ------------------
 3703|    199|            if (options.generateDebugInfo) {
  ------------------
  |  Branch (3703:17): [True: 0, False: 199]
  ------------------
 3704|      0|                builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 3705|      0|            }
 3706|    199|            if (isShaderEntryPoint(node)) {
  ------------------
  |  Branch (3706:17): [True: 42, False: 157]
  ------------------
 3707|     42|                inEntryPoint = true;
 3708|     42|                builder.setBuildPoint(shaderEntry->getLastBlock());
 3709|     42|                builder.enterFunction(shaderEntry);
 3710|     42|                currentFunction = shaderEntry;
 3711|    157|            } else {
 3712|       |                // SPIR-V functions should already be in the functionMap from the prepass
 3713|       |                // that called makeFunctions().
 3714|    157|                currentFunction = functionMap[node->getName().c_str()];
 3715|    157|                spv::Block* functionBlock = currentFunction->getEntryBlock();
 3716|    157|                builder.setBuildPoint(functionBlock);
 3717|    157|                builder.enterFunction(currentFunction);
 3718|    157|            }
 3719|    199|            if (options.generateDebugInfo && !options.emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (3719:17): [True: 0, False: 199]
  |  Branch (3719:46): [True: 0, False: 0]
  ------------------
 3720|      0|                const auto& loc = node->getLoc();
 3721|      0|                const char* sourceFileName = loc.getFilename();
 3722|      0|                spv::Id sourceFileId = sourceFileName ? builder.getStringId(sourceFileName) : builder.getMainFileId();
  ------------------
  |  Branch (3722:40): [True: 0, False: 0]
  ------------------
 3723|      0|                currentFunction->setDebugLineInfo(sourceFileId, loc.line, loc.column);
 3724|      0|            }
 3725|    199|        } else {
 3726|       |            // Here we have finished visiting the function (post-visit). Finalize it.
 3727|    199|            if (options.generateDebugInfo) {
  ------------------
  |  Branch (3727:17): [True: 0, False: 199]
  ------------------
 3728|      0|                if (glslangIntermediate->getSource() == glslang::EShSourceGlsl && node->getSequence().size() > 1) {
  ------------------
  |  Branch (3728:21): [True: 0, False: 0]
  |  Branch (3728:83): [True: 0, False: 0]
  ------------------
 3729|      0|                    auto endLoc = node->getSequence()[1]->getAsAggregate()->getEndLoc();
 3730|      0|                    builder.setDebugSourceLocation(endLoc.line, endLoc.getFilename());
 3731|      0|                }
 3732|      0|            }
 3733|    199|            if (inEntryPoint)
  ------------------
  |  Branch (3733:17): [True: 42, False: 157]
  ------------------
 3734|     42|                entryPointTerminated = true;
 3735|    199|            builder.leaveFunction();
 3736|    199|            inEntryPoint = false;
 3737|    199|            currentFunction = nullptr;
 3738|    199|        }
 3739|       |
 3740|    398|        return true;
 3741|    199|    case glslang::EOpParameters:
  ------------------
  |  Branch (3741:5): [True: 199, False: 2.97k]
  ------------------
 3742|       |        // Parameters will have been consumed by EOpFunction processing, but not
 3743|       |        // the body, so we still visited the function node's children, making this
 3744|       |        // child redundant.
 3745|    199|        return false;
 3746|    277|    case glslang::EOpFunctionCall:
  ------------------
  |  Branch (3746:5): [True: 277, False: 2.89k]
  ------------------
 3747|    277|    {
 3748|    277|        builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 3749|    277|        if (node->isUserDefined())
  ------------------
  |  Branch (3749:13): [True: 277, False: 0]
  ------------------
 3750|    277|            result = handleUserFunctionCall(node);
 3751|    277|        if (result) {
  ------------------
  |  Branch (3751:13): [True: 277, False: 0]
  ------------------
 3752|    277|            builder.clearAccessChain();
 3753|    277|            builder.setAccessChainRValue(result);
 3754|    277|        } else
 3755|      0|            logger->missingFunctionality("missing user function; linker needs to catch that");
 3756|       |
 3757|    277|        return false;
 3758|  1.30k|    }
 3759|      0|    case glslang::EOpConstructMat2x2:
  ------------------
  |  Branch (3759:5): [True: 0, False: 3.17k]
  ------------------
 3760|      0|    case glslang::EOpConstructMat2x3:
  ------------------
  |  Branch (3760:5): [True: 0, False: 3.17k]
  ------------------
 3761|      0|    case glslang::EOpConstructMat2x4:
  ------------------
  |  Branch (3761:5): [True: 0, False: 3.17k]
  ------------------
 3762|      0|    case glslang::EOpConstructMat3x2:
  ------------------
  |  Branch (3762:5): [True: 0, False: 3.17k]
  ------------------
 3763|      0|    case glslang::EOpConstructMat3x3:
  ------------------
  |  Branch (3763:5): [True: 0, False: 3.17k]
  ------------------
 3764|      0|    case glslang::EOpConstructMat3x4:
  ------------------
  |  Branch (3764:5): [True: 0, False: 3.17k]
  ------------------
 3765|      0|    case glslang::EOpConstructMat4x2:
  ------------------
  |  Branch (3765:5): [True: 0, False: 3.17k]
  ------------------
 3766|      0|    case glslang::EOpConstructMat4x3:
  ------------------
  |  Branch (3766:5): [True: 0, False: 3.17k]
  ------------------
 3767|      0|    case glslang::EOpConstructMat4x4:
  ------------------
  |  Branch (3767:5): [True: 0, False: 3.17k]
  ------------------
 3768|      0|    case glslang::EOpConstructDMat2x2:
  ------------------
  |  Branch (3768:5): [True: 0, False: 3.17k]
  ------------------
 3769|      0|    case glslang::EOpConstructDMat2x3:
  ------------------
  |  Branch (3769:5): [True: 0, False: 3.17k]
  ------------------
 3770|      0|    case glslang::EOpConstructDMat2x4:
  ------------------
  |  Branch (3770:5): [True: 0, False: 3.17k]
  ------------------
 3771|      0|    case glslang::EOpConstructDMat3x2:
  ------------------
  |  Branch (3771:5): [True: 0, False: 3.17k]
  ------------------
 3772|      0|    case glslang::EOpConstructDMat3x3:
  ------------------
  |  Branch (3772:5): [True: 0, False: 3.17k]
  ------------------
 3773|      0|    case glslang::EOpConstructDMat3x4:
  ------------------
  |  Branch (3773:5): [True: 0, False: 3.17k]
  ------------------
 3774|      0|    case glslang::EOpConstructDMat4x2:
  ------------------
  |  Branch (3774:5): [True: 0, False: 3.17k]
  ------------------
 3775|      0|    case glslang::EOpConstructDMat4x3:
  ------------------
  |  Branch (3775:5): [True: 0, False: 3.17k]
  ------------------
 3776|      0|    case glslang::EOpConstructDMat4x4:
  ------------------
  |  Branch (3776:5): [True: 0, False: 3.17k]
  ------------------
 3777|      0|    case glslang::EOpConstructIMat2x2:
  ------------------
  |  Branch (3777:5): [True: 0, False: 3.17k]
  ------------------
 3778|      0|    case glslang::EOpConstructIMat2x3:
  ------------------
  |  Branch (3778:5): [True: 0, False: 3.17k]
  ------------------
 3779|      0|    case glslang::EOpConstructIMat2x4:
  ------------------
  |  Branch (3779:5): [True: 0, False: 3.17k]
  ------------------
 3780|      0|    case glslang::EOpConstructIMat3x2:
  ------------------
  |  Branch (3780:5): [True: 0, False: 3.17k]
  ------------------
 3781|      0|    case glslang::EOpConstructIMat3x3:
  ------------------
  |  Branch (3781:5): [True: 0, False: 3.17k]
  ------------------
 3782|      0|    case glslang::EOpConstructIMat3x4:
  ------------------
  |  Branch (3782:5): [True: 0, False: 3.17k]
  ------------------
 3783|      0|    case glslang::EOpConstructIMat4x2:
  ------------------
  |  Branch (3783:5): [True: 0, False: 3.17k]
  ------------------
 3784|      0|    case glslang::EOpConstructIMat4x3:
  ------------------
  |  Branch (3784:5): [True: 0, False: 3.17k]
  ------------------
 3785|      0|    case glslang::EOpConstructIMat4x4:
  ------------------
  |  Branch (3785:5): [True: 0, False: 3.17k]
  ------------------
 3786|      0|    case glslang::EOpConstructUMat2x2:
  ------------------
  |  Branch (3786:5): [True: 0, False: 3.17k]
  ------------------
 3787|      0|    case glslang::EOpConstructUMat2x3:
  ------------------
  |  Branch (3787:5): [True: 0, False: 3.17k]
  ------------------
 3788|      0|    case glslang::EOpConstructUMat2x4:
  ------------------
  |  Branch (3788:5): [True: 0, False: 3.17k]
  ------------------
 3789|      0|    case glslang::EOpConstructUMat3x2:
  ------------------
  |  Branch (3789:5): [True: 0, False: 3.17k]
  ------------------
 3790|      0|    case glslang::EOpConstructUMat3x3:
  ------------------
  |  Branch (3790:5): [True: 0, False: 3.17k]
  ------------------
 3791|      0|    case glslang::EOpConstructUMat3x4:
  ------------------
  |  Branch (3791:5): [True: 0, False: 3.17k]
  ------------------
 3792|      0|    case glslang::EOpConstructUMat4x2:
  ------------------
  |  Branch (3792:5): [True: 0, False: 3.17k]
  ------------------
 3793|      0|    case glslang::EOpConstructUMat4x3:
  ------------------
  |  Branch (3793:5): [True: 0, False: 3.17k]
  ------------------
 3794|      0|    case glslang::EOpConstructUMat4x4:
  ------------------
  |  Branch (3794:5): [True: 0, False: 3.17k]
  ------------------
 3795|      0|    case glslang::EOpConstructBMat2x2:
  ------------------
  |  Branch (3795:5): [True: 0, False: 3.17k]
  ------------------
 3796|      0|    case glslang::EOpConstructBMat2x3:
  ------------------
  |  Branch (3796:5): [True: 0, False: 3.17k]
  ------------------
 3797|      0|    case glslang::EOpConstructBMat2x4:
  ------------------
  |  Branch (3797:5): [True: 0, False: 3.17k]
  ------------------
 3798|      0|    case glslang::EOpConstructBMat3x2:
  ------------------
  |  Branch (3798:5): [True: 0, False: 3.17k]
  ------------------
 3799|      0|    case glslang::EOpConstructBMat3x3:
  ------------------
  |  Branch (3799:5): [True: 0, False: 3.17k]
  ------------------
 3800|      0|    case glslang::EOpConstructBMat3x4:
  ------------------
  |  Branch (3800:5): [True: 0, False: 3.17k]
  ------------------
 3801|      0|    case glslang::EOpConstructBMat4x2:
  ------------------
  |  Branch (3801:5): [True: 0, False: 3.17k]
  ------------------
 3802|      0|    case glslang::EOpConstructBMat4x3:
  ------------------
  |  Branch (3802:5): [True: 0, False: 3.17k]
  ------------------
 3803|      0|    case glslang::EOpConstructBMat4x4:
  ------------------
  |  Branch (3803:5): [True: 0, False: 3.17k]
  ------------------
 3804|      0|    case glslang::EOpConstructF16Mat2x2:
  ------------------
  |  Branch (3804:5): [True: 0, False: 3.17k]
  ------------------
 3805|      0|    case glslang::EOpConstructF16Mat2x3:
  ------------------
  |  Branch (3805:5): [True: 0, False: 3.17k]
  ------------------
 3806|      0|    case glslang::EOpConstructF16Mat2x4:
  ------------------
  |  Branch (3806:5): [True: 0, False: 3.17k]
  ------------------
 3807|      0|    case glslang::EOpConstructF16Mat3x2:
  ------------------
  |  Branch (3807:5): [True: 0, False: 3.17k]
  ------------------
 3808|      0|    case glslang::EOpConstructF16Mat3x3:
  ------------------
  |  Branch (3808:5): [True: 0, False: 3.17k]
  ------------------
 3809|      0|    case glslang::EOpConstructF16Mat3x4:
  ------------------
  |  Branch (3809:5): [True: 0, False: 3.17k]
  ------------------
 3810|      0|    case glslang::EOpConstructF16Mat4x2:
  ------------------
  |  Branch (3810:5): [True: 0, False: 3.17k]
  ------------------
 3811|      0|    case glslang::EOpConstructF16Mat4x3:
  ------------------
  |  Branch (3811:5): [True: 0, False: 3.17k]
  ------------------
 3812|      0|    case glslang::EOpConstructF16Mat4x4:
  ------------------
  |  Branch (3812:5): [True: 0, False: 3.17k]
  ------------------
 3813|      0|        isMatrix = true;
 3814|      0|        [[fallthrough]];
 3815|      0|    case glslang::EOpConstructFloat:
  ------------------
  |  Branch (3815:5): [True: 0, False: 3.17k]
  ------------------
 3816|      2|    case glslang::EOpConstructVec2:
  ------------------
  |  Branch (3816:5): [True: 2, False: 3.16k]
  ------------------
 3817|     10|    case glslang::EOpConstructVec3:
  ------------------
  |  Branch (3817:5): [True: 8, False: 3.16k]
  ------------------
 3818|     62|    case glslang::EOpConstructVec4:
  ------------------
  |  Branch (3818:5): [True: 52, False: 3.11k]
  ------------------
 3819|     62|    case glslang::EOpConstructDouble:
  ------------------
  |  Branch (3819:5): [True: 0, False: 3.17k]
  ------------------
 3820|     62|    case glslang::EOpConstructDVec2:
  ------------------
  |  Branch (3820:5): [True: 0, False: 3.17k]
  ------------------
 3821|     62|    case glslang::EOpConstructDVec3:
  ------------------
  |  Branch (3821:5): [True: 0, False: 3.17k]
  ------------------
 3822|     62|    case glslang::EOpConstructDVec4:
  ------------------
  |  Branch (3822:5): [True: 0, False: 3.17k]
  ------------------
 3823|     62|    case glslang::EOpConstructFloat16:
  ------------------
  |  Branch (3823:5): [True: 0, False: 3.17k]
  ------------------
 3824|     62|    case glslang::EOpConstructF16Vec2:
  ------------------
  |  Branch (3824:5): [True: 0, False: 3.17k]
  ------------------
 3825|     62|    case glslang::EOpConstructF16Vec3:
  ------------------
  |  Branch (3825:5): [True: 0, False: 3.17k]
  ------------------
 3826|     62|    case glslang::EOpConstructF16Vec4:
  ------------------
  |  Branch (3826:5): [True: 0, False: 3.17k]
  ------------------
 3827|     62|    case glslang::EOpConstructBFloat16:
  ------------------
  |  Branch (3827:5): [True: 0, False: 3.17k]
  ------------------
 3828|     62|    case glslang::EOpConstructBF16Vec2:
  ------------------
  |  Branch (3828:5): [True: 0, False: 3.17k]
  ------------------
 3829|     62|    case glslang::EOpConstructBF16Vec3:
  ------------------
  |  Branch (3829:5): [True: 0, False: 3.17k]
  ------------------
 3830|     62|    case glslang::EOpConstructBF16Vec4:
  ------------------
  |  Branch (3830:5): [True: 0, False: 3.17k]
  ------------------
 3831|     62|    case glslang::EOpConstructFloatE5M2:
  ------------------
  |  Branch (3831:5): [True: 0, False: 3.17k]
  ------------------
 3832|     62|    case glslang::EOpConstructFloatE5M2Vec2:
  ------------------
  |  Branch (3832:5): [True: 0, False: 3.17k]
  ------------------
 3833|     62|    case glslang::EOpConstructFloatE5M2Vec3:
  ------------------
  |  Branch (3833:5): [True: 0, False: 3.17k]
  ------------------
 3834|     62|    case glslang::EOpConstructFloatE5M2Vec4:
  ------------------
  |  Branch (3834:5): [True: 0, False: 3.17k]
  ------------------
 3835|     62|    case glslang::EOpConstructFloatE4M3:
  ------------------
  |  Branch (3835:5): [True: 0, False: 3.17k]
  ------------------
 3836|     62|    case glslang::EOpConstructFloatE4M3Vec2:
  ------------------
  |  Branch (3836:5): [True: 0, False: 3.17k]
  ------------------
 3837|     62|    case glslang::EOpConstructFloatE4M3Vec3:
  ------------------
  |  Branch (3837:5): [True: 0, False: 3.17k]
  ------------------
 3838|     62|    case glslang::EOpConstructFloatE4M3Vec4:
  ------------------
  |  Branch (3838:5): [True: 0, False: 3.17k]
  ------------------
 3839|     62|    case glslang::EOpConstructFloatE2M1:
  ------------------
  |  Branch (3839:5): [True: 0, False: 3.17k]
  ------------------
 3840|     62|    case glslang::EOpConstructFloatE2M1Vec2:
  ------------------
  |  Branch (3840:5): [True: 0, False: 3.17k]
  ------------------
 3841|     62|    case glslang::EOpConstructFloatE2M1Vec3:
  ------------------
  |  Branch (3841:5): [True: 0, False: 3.17k]
  ------------------
 3842|     62|    case glslang::EOpConstructFloatE2M1Vec4:
  ------------------
  |  Branch (3842:5): [True: 0, False: 3.17k]
  ------------------
 3843|     62|    case glslang::EOpConstructFloatE3M2:
  ------------------
  |  Branch (3843:5): [True: 0, False: 3.17k]
  ------------------
 3844|     62|    case glslang::EOpConstructFloatE3M2Vec2:
  ------------------
  |  Branch (3844:5): [True: 0, False: 3.17k]
  ------------------
 3845|     62|    case glslang::EOpConstructFloatE3M2Vec3:
  ------------------
  |  Branch (3845:5): [True: 0, False: 3.17k]
  ------------------
 3846|     62|    case glslang::EOpConstructFloatE3M2Vec4:
  ------------------
  |  Branch (3846:5): [True: 0, False: 3.17k]
  ------------------
 3847|     62|    case glslang::EOpConstructFloatE2M3:
  ------------------
  |  Branch (3847:5): [True: 0, False: 3.17k]
  ------------------
 3848|     62|    case glslang::EOpConstructFloatE2M3Vec2:
  ------------------
  |  Branch (3848:5): [True: 0, False: 3.17k]
  ------------------
 3849|     62|    case glslang::EOpConstructFloatE2M3Vec3:
  ------------------
  |  Branch (3849:5): [True: 0, False: 3.17k]
  ------------------
 3850|     62|    case glslang::EOpConstructFloatE2M3Vec4:
  ------------------
  |  Branch (3850:5): [True: 0, False: 3.17k]
  ------------------
 3851|     62|    case glslang::EOpConstructFloatUE8M0:
  ------------------
  |  Branch (3851:5): [True: 0, False: 3.17k]
  ------------------
 3852|     62|    case glslang::EOpConstructFloatUE8M0Vec2:
  ------------------
  |  Branch (3852:5): [True: 0, False: 3.17k]
  ------------------
 3853|     62|    case glslang::EOpConstructFloatUE8M0Vec3:
  ------------------
  |  Branch (3853:5): [True: 0, False: 3.17k]
  ------------------
 3854|     62|    case glslang::EOpConstructFloatUE8M0Vec4:
  ------------------
  |  Branch (3854:5): [True: 0, False: 3.17k]
  ------------------
 3855|     62|    case glslang::EOpConstructFloatMXINT8:
  ------------------
  |  Branch (3855:5): [True: 0, False: 3.17k]
  ------------------
 3856|     62|    case glslang::EOpConstructFloatMXINT8Vec2:
  ------------------
  |  Branch (3856:5): [True: 0, False: 3.17k]
  ------------------
 3857|     62|    case glslang::EOpConstructFloatMXINT8Vec3:
  ------------------
  |  Branch (3857:5): [True: 0, False: 3.17k]
  ------------------
 3858|     62|    case glslang::EOpConstructFloatMXINT8Vec4:
  ------------------
  |  Branch (3858:5): [True: 0, False: 3.17k]
  ------------------
 3859|     62|    case glslang::EOpConstructBool:
  ------------------
  |  Branch (3859:5): [True: 0, False: 3.17k]
  ------------------
 3860|     62|    case glslang::EOpConstructBVec2:
  ------------------
  |  Branch (3860:5): [True: 0, False: 3.17k]
  ------------------
 3861|     62|    case glslang::EOpConstructBVec3:
  ------------------
  |  Branch (3861:5): [True: 0, False: 3.17k]
  ------------------
 3862|     62|    case glslang::EOpConstructBVec4:
  ------------------
  |  Branch (3862:5): [True: 0, False: 3.17k]
  ------------------
 3863|     62|    case glslang::EOpConstructInt8:
  ------------------
  |  Branch (3863:5): [True: 0, False: 3.17k]
  ------------------
 3864|     62|    case glslang::EOpConstructI8Vec2:
  ------------------
  |  Branch (3864:5): [True: 0, False: 3.17k]
  ------------------
 3865|     62|    case glslang::EOpConstructI8Vec3:
  ------------------
  |  Branch (3865:5): [True: 0, False: 3.17k]
  ------------------
 3866|     62|    case glslang::EOpConstructI8Vec4:
  ------------------
  |  Branch (3866:5): [True: 0, False: 3.17k]
  ------------------
 3867|     62|    case glslang::EOpConstructUint8:
  ------------------
  |  Branch (3867:5): [True: 0, False: 3.17k]
  ------------------
 3868|     62|    case glslang::EOpConstructU8Vec2:
  ------------------
  |  Branch (3868:5): [True: 0, False: 3.17k]
  ------------------
 3869|     62|    case glslang::EOpConstructU8Vec3:
  ------------------
  |  Branch (3869:5): [True: 0, False: 3.17k]
  ------------------
 3870|     62|    case glslang::EOpConstructU8Vec4:
  ------------------
  |  Branch (3870:5): [True: 0, False: 3.17k]
  ------------------
 3871|     62|    case glslang::EOpConstructInt16:
  ------------------
  |  Branch (3871:5): [True: 0, False: 3.17k]
  ------------------
 3872|    158|    case glslang::EOpConstructI16Vec2:
  ------------------
  |  Branch (3872:5): [True: 96, False: 3.07k]
  ------------------
 3873|    158|    case glslang::EOpConstructI16Vec3:
  ------------------
  |  Branch (3873:5): [True: 0, False: 3.17k]
  ------------------
 3874|    170|    case glslang::EOpConstructI16Vec4:
  ------------------
  |  Branch (3874:5): [True: 12, False: 3.15k]
  ------------------
 3875|    170|    case glslang::EOpConstructUint16:
  ------------------
  |  Branch (3875:5): [True: 0, False: 3.17k]
  ------------------
 3876|    170|    case glslang::EOpConstructU16Vec2:
  ------------------
  |  Branch (3876:5): [True: 0, False: 3.17k]
  ------------------
 3877|    254|    case glslang::EOpConstructU16Vec3:
  ------------------
  |  Branch (3877:5): [True: 84, False: 3.08k]
  ------------------
 3878|    266|    case glslang::EOpConstructU16Vec4:
  ------------------
  |  Branch (3878:5): [True: 12, False: 3.15k]
  ------------------
 3879|    266|    case glslang::EOpConstructInt:
  ------------------
  |  Branch (3879:5): [True: 0, False: 3.17k]
  ------------------
 3880|    266|    case glslang::EOpConstructIVec2:
  ------------------
  |  Branch (3880:5): [True: 0, False: 3.17k]
  ------------------
 3881|    266|    case glslang::EOpConstructIVec3:
  ------------------
  |  Branch (3881:5): [True: 0, False: 3.17k]
  ------------------
 3882|    266|    case glslang::EOpConstructIVec4:
  ------------------
  |  Branch (3882:5): [True: 0, False: 3.17k]
  ------------------
 3883|    266|    case glslang::EOpConstructUint:
  ------------------
  |  Branch (3883:5): [True: 0, False: 3.17k]
  ------------------
 3884|    266|    case glslang::EOpConstructUVec2:
  ------------------
  |  Branch (3884:5): [True: 0, False: 3.17k]
  ------------------
 3885|    266|    case glslang::EOpConstructUVec3:
  ------------------
  |  Branch (3885:5): [True: 0, False: 3.17k]
  ------------------
 3886|    266|    case glslang::EOpConstructUVec4:
  ------------------
  |  Branch (3886:5): [True: 0, False: 3.17k]
  ------------------
 3887|    266|    case glslang::EOpConstructInt64:
  ------------------
  |  Branch (3887:5): [True: 0, False: 3.17k]
  ------------------
 3888|    266|    case glslang::EOpConstructI64Vec2:
  ------------------
  |  Branch (3888:5): [True: 0, False: 3.17k]
  ------------------
 3889|    266|    case glslang::EOpConstructI64Vec3:
  ------------------
  |  Branch (3889:5): [True: 0, False: 3.17k]
  ------------------
 3890|    266|    case glslang::EOpConstructI64Vec4:
  ------------------
  |  Branch (3890:5): [True: 0, False: 3.17k]
  ------------------
 3891|    266|    case glslang::EOpConstructUint64:
  ------------------
  |  Branch (3891:5): [True: 0, False: 3.17k]
  ------------------
 3892|    266|    case glslang::EOpConstructU64Vec2:
  ------------------
  |  Branch (3892:5): [True: 0, False: 3.17k]
  ------------------
 3893|    266|    case glslang::EOpConstructU64Vec3:
  ------------------
  |  Branch (3893:5): [True: 0, False: 3.17k]
  ------------------
 3894|    266|    case glslang::EOpConstructU64Vec4:
  ------------------
  |  Branch (3894:5): [True: 0, False: 3.17k]
  ------------------
 3895|    266|    case glslang::EOpConstructStruct:
  ------------------
  |  Branch (3895:5): [True: 0, False: 3.17k]
  ------------------
 3896|    305|    case glslang::EOpConstructTextureSampler:
  ------------------
  |  Branch (3896:5): [True: 39, False: 3.13k]
  ------------------
 3897|    305|    case glslang::EOpConstructReference:
  ------------------
  |  Branch (3897:5): [True: 0, False: 3.17k]
  ------------------
 3898|    305|    case glslang::EOpConstructCooperativeMatrixNV:
  ------------------
  |  Branch (3898:5): [True: 0, False: 3.17k]
  ------------------
 3899|    305|    case glslang::EOpConstructCooperativeMatrixKHR:
  ------------------
  |  Branch (3899:5): [True: 0, False: 3.17k]
  ------------------
 3900|    305|    case glslang::EOpConstructCooperativeVectorNV:
  ------------------
  |  Branch (3900:5): [True: 0, False: 3.17k]
  ------------------
 3901|    305|    case glslang::EOpConstructSaturated:
  ------------------
  |  Branch (3901:5): [True: 0, False: 3.17k]
  ------------------
 3902|    305|    {
 3903|    305|        builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 3904|    305|        std::vector<spv::Id> arguments;
 3905|    305|        translateArguments(*node, arguments, lvalueCoherentFlags);
 3906|    305|        spv::Id constructed;
 3907|    305|        if (node->getOp() == glslang::EOpConstructTextureSampler) {
  ------------------
  |  Branch (3907:13): [True: 39, False: 266]
  ------------------
 3908|     39|            const glslang::TType& texType = node->getSequence()[0]->getAsTyped()->getType();
 3909|     39|            if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_6 &&
  ------------------
  |  Branch (3909:17): [True: 0, False: 39]
  ------------------
 3910|      0|                texType.getSampler().isBuffer()) {
  ------------------
  |  Branch (3910:17): [True: 0, False: 0]
  ------------------
 3911|       |                // SamplerBuffer is not supported in spirv1.6 so
 3912|       |                // `samplerBuffer(textureBuffer, sampler)` is a no-op
 3913|       |                // and textureBuffer is the result going forward
 3914|      0|                constructed = arguments[0];
 3915|      0|            } else
 3916|     39|                constructed = builder.createOp(spv::Op::OpSampledImage, resultType(), arguments);
 3917|    266|        } else if (node->getOp() == glslang::EOpConstructCooperativeMatrixKHR &&
  ------------------
  |  Branch (3917:20): [True: 0, False: 266]
  ------------------
 3918|      0|                   node->getType().isCoopMatKHR() && node->getSequence()[0]->getAsTyped()->getType().isCoopMatKHR() &&
  ------------------
  |  Branch (3918:20): [True: 0, False: 0]
  |  Branch (3918:54): [True: 0, False: 0]
  ------------------
 3919|      0|                   !node->getAsTyped()->getType().sameCoopMatUse(node->getSequence()[0]->getAsTyped()->getType())) {
  ------------------
  |  Branch (3919:20): [True: 0, False: 0]
  ------------------
 3920|      0|            enableCoopMatConversions();
 3921|      0|            constructed = builder.createCooperativeMatrixConversion(resultType(), arguments[0]);
 3922|    266|        } else if (node->getType().isCoopVecOrLongVector() &&
  ------------------
  |  Branch (3922:20): [True: 0, False: 266]
  ------------------
 3923|      0|                   arguments.size() == 1 &&
  ------------------
  |  Branch (3923:20): [True: 0, False: 0]
  ------------------
 3924|      0|                   builder.getTypeId(arguments[0]) == resultType()) {
  ------------------
  |  Branch (3924:20): [True: 0, False: 0]
  ------------------
 3925|      0|            constructed = arguments[0];
 3926|    266|        } else if (node->getOp() == glslang::EOpConstructStruct ||
  ------------------
  |  Branch (3926:20): [True: 0, False: 266]
  ------------------
 3927|    266|                 node->getOp() == glslang::EOpConstructCooperativeMatrixNV ||
  ------------------
  |  Branch (3927:18): [True: 0, False: 266]
  ------------------
 3928|    266|                 node->getOp() == glslang::EOpConstructCooperativeMatrixKHR ||
  ------------------
  |  Branch (3928:18): [True: 0, False: 266]
  ------------------
 3929|    266|                 node->getType().isArray() ||
  ------------------
  |  Branch (3929:18): [True: 0, False: 266]
  ------------------
 3930|       |                 // Handle constructing coopvec from one component here, to avoid the component
 3931|       |                 // getting smeared
 3932|    266|                 (node->getType().hasSpecConstantVectorComponents() && arguments.size() == 1 && builder.isScalar(arguments[0]))) {
  ------------------
  |  Branch (3932:19): [True: 0, False: 266]
  |  Branch (3932:72): [True: 0, False: 0]
  |  Branch (3932:97): [True: 0, False: 0]
  ------------------
 3933|      0|            std::vector<spv::Id> constituents;
 3934|      0|            for (int c = 0; c < (int)arguments.size(); ++c)
  ------------------
  |  Branch (3934:29): [True: 0, False: 0]
  ------------------
 3935|      0|                constituents.push_back(arguments[c]);
 3936|      0|            constructed = createCompositeConstruct(resultType(), constituents);
 3937|    266|        } else if (isMatrix)
  ------------------
  |  Branch (3937:20): [True: 0, False: 266]
  ------------------
 3938|      0|            constructed = builder.createMatrixConstructor(precision, arguments, resultType());
 3939|    266|        else if (node->getOp() == glslang::EOpConstructSaturated) {
  ------------------
  |  Branch (3939:18): [True: 0, False: 266]
  ------------------
 3940|      0|            OpDecorations decorations = { TranslatePrecisionDecoration(node->getOperationPrecision()),
 3941|      0|                                          TranslateNoContractionDecoration(node->getType().getQualifier()),
 3942|      0|                                          TranslateNonUniformDecoration(lvalueCoherentFlags) };
 3943|       |
 3944|      0|            auto operand = node->getSequence()[1]->getAsTyped();
 3945|       |
 3946|      0|            bool sameUse = !node->getType().isCoopMatKHR() || !operand->getType().isCoopMatKHR() ||
  ------------------
  |  Branch (3946:28): [True: 0, False: 0]
  |  Branch (3946:63): [True: 0, False: 0]
  ------------------
 3947|      0|                           node->getAsTyped()->getType().sameCoopMatUse(operand->getType());
  ------------------
  |  Branch (3947:28): [True: 0, False: 0]
  ------------------
 3948|       |
 3949|      0|            constructed = createConversion(node->getOp(), decorations, resultType(), arguments[1],
 3950|      0|                                           node->getType().getBasicType(), operand->getBasicType(), sameUse);
 3951|      0|            builder.addDecoration(constructed, spv::Decoration::SaturatedToLargestFloat8NormalConversionEXT);
 3952|      0|            builder.createStore(constructed, arguments[0]);
 3953|      0|        }
 3954|    266|        else
 3955|    266|            constructed = builder.createConstructor(precision, arguments, resultType());
 3956|       |
 3957|    305|        if (node->getType().getQualifier().isNonUniform()) {
  ------------------
  |  Branch (3957:13): [True: 0, False: 305]
  ------------------
 3958|      0|            auto& extensions = glslangIntermediate->getRequestedExtensions();
 3959|      0|            if (extensions.find("GL_EXT_descriptor_heap") == extensions.end()) {
  ------------------
  |  Branch (3959:17): [True: 0, False: 0]
  ------------------
 3960|      0|                builder.addDecoration(constructed, spv::Decoration::NonUniformEXT);
 3961|      0|            }
 3962|      0|        }
 3963|       |
 3964|    305|        builder.clearAccessChain();
 3965|    305|        builder.setAccessChainRValue(constructed);
 3966|       |
 3967|    305|        return false;
 3968|    305|    }
 3969|       |
 3970|       |    // These six are component-wise compares with component-wise results.
 3971|       |    // Forward on to createBinaryOperation(), requesting a vector result.
 3972|     24|    case glslang::EOpLessThan:
  ------------------
  |  Branch (3972:5): [True: 24, False: 3.14k]
  ------------------
 3973|     48|    case glslang::EOpGreaterThan:
  ------------------
  |  Branch (3973:5): [True: 24, False: 3.14k]
  ------------------
 3974|     71|    case glslang::EOpLessThanEqual:
  ------------------
  |  Branch (3974:5): [True: 23, False: 3.14k]
  ------------------
 3975|     95|    case glslang::EOpGreaterThanEqual:
  ------------------
  |  Branch (3975:5): [True: 24, False: 3.14k]
  ------------------
 3976|    119|    case glslang::EOpVectorEqual:
  ------------------
  |  Branch (3976:5): [True: 24, False: 3.14k]
  ------------------
 3977|    132|    case glslang::EOpVectorNotEqual:
  ------------------
  |  Branch (3977:5): [True: 13, False: 3.15k]
  ------------------
 3978|    132|    {
 3979|       |        // Map the operation to a binary
 3980|    132|        binOp = node->getOp();
 3981|    132|        reduceComparison = false;
 3982|    132|        switch (node->getOp()) {
 3983|     24|        case glslang::EOpVectorEqual:     binOp = glslang::EOpVectorEqual;      break;
  ------------------
  |  Branch (3983:9): [True: 24, False: 108]
  ------------------
 3984|     13|        case glslang::EOpVectorNotEqual:  binOp = glslang::EOpVectorNotEqual;   break;
  ------------------
  |  Branch (3984:9): [True: 13, False: 119]
  ------------------
 3985|     95|        default:                          binOp = node->getOp();                break;
  ------------------
  |  Branch (3985:9): [True: 95, False: 37]
  ------------------
 3986|    132|        }
 3987|       |
 3988|    132|        break;
 3989|    132|    }
 3990|    132|    case glslang::EOpMul:
  ------------------
  |  Branch (3990:5): [True: 0, False: 3.17k]
  ------------------
 3991|       |        // component-wise matrix multiply
 3992|      0|        binOp = glslang::EOpMul;
 3993|      0|        break;
 3994|      0|    case glslang::EOpOuterProduct:
  ------------------
  |  Branch (3994:5): [True: 0, False: 3.17k]
  ------------------
 3995|       |        // two vectors multiplied to make a matrix
 3996|      0|        binOp = glslang::EOpOuterProduct;
 3997|      0|        break;
 3998|     54|    case glslang::EOpDot:
  ------------------
  |  Branch (3998:5): [True: 54, False: 3.11k]
  ------------------
 3999|     54|    {
 4000|       |        // for scalar dot product, use multiply
 4001|     54|        glslang::TIntermSequence& glslangOperands = node->getSequence();
 4002|     54|        if (!glslangOperands[0]->getAsTyped()->getType().isLongVector() &&
  ------------------
  |  Branch (4002:13): [True: 54, False: 0]
  ------------------
 4003|     54|            glslangOperands[0]->getAsTyped()->getVectorSize() == 1)
  ------------------
  |  Branch (4003:13): [True: 0, False: 54]
  ------------------
 4004|      0|            binOp = glslang::EOpMul;
 4005|     54|        else if (isTypeFloat(node->getType().getBasicType()))
  ------------------
  |  Branch (4005:18): [True: 6, False: 48]
  ------------------
 4006|      6|            binOp = glslang::EOpDot;
 4007|     54|        break;
 4008|    132|    }
 4009|      0|    case glslang::EOpMod:
  ------------------
  |  Branch (4009:5): [True: 0, False: 3.17k]
  ------------------
 4010|       |        // when an aggregate, this is the floating-point mod built-in function,
 4011|       |        // which can be emitted by the one in createBinaryOperation()
 4012|      0|        binOp = glslang::EOpMod;
 4013|      0|        break;
 4014|       |
 4015|      0|    case glslang::EOpEmitVertex:
  ------------------
  |  Branch (4015:5): [True: 0, False: 3.17k]
  ------------------
 4016|      0|    case glslang::EOpEndPrimitive:
  ------------------
  |  Branch (4016:5): [True: 0, False: 3.17k]
  ------------------
 4017|      0|    case glslang::EOpBarrier:
  ------------------
  |  Branch (4017:5): [True: 0, False: 3.17k]
  ------------------
 4018|      0|    case glslang::EOpControlBarrierArriveEXT:
  ------------------
  |  Branch (4018:5): [True: 0, False: 3.17k]
  ------------------
 4019|      0|    case glslang::EOpControlBarrierWaitEXT:
  ------------------
  |  Branch (4019:5): [True: 0, False: 3.17k]
  ------------------
 4020|      0|    case glslang::EOpMemoryBarrier:
  ------------------
  |  Branch (4020:5): [True: 0, False: 3.17k]
  ------------------
 4021|      0|    case glslang::EOpMemoryBarrierAtomicCounter:
  ------------------
  |  Branch (4021:5): [True: 0, False: 3.17k]
  ------------------
 4022|      0|    case glslang::EOpMemoryBarrierBuffer:
  ------------------
  |  Branch (4022:5): [True: 0, False: 3.17k]
  ------------------
 4023|      0|    case glslang::EOpMemoryBarrierImage:
  ------------------
  |  Branch (4023:5): [True: 0, False: 3.17k]
  ------------------
 4024|      0|    case glslang::EOpMemoryBarrierShared:
  ------------------
  |  Branch (4024:5): [True: 0, False: 3.17k]
  ------------------
 4025|      0|    case glslang::EOpGroupMemoryBarrier:
  ------------------
  |  Branch (4025:5): [True: 0, False: 3.17k]
  ------------------
 4026|      0|    case glslang::EOpDeviceMemoryBarrier:
  ------------------
  |  Branch (4026:5): [True: 0, False: 3.17k]
  ------------------
 4027|      0|    case glslang::EOpAllMemoryBarrierWithGroupSync:
  ------------------
  |  Branch (4027:5): [True: 0, False: 3.17k]
  ------------------
 4028|      0|    case glslang::EOpDeviceMemoryBarrierWithGroupSync:
  ------------------
  |  Branch (4028:5): [True: 0, False: 3.17k]
  ------------------
 4029|      0|    case glslang::EOpWorkgroupMemoryBarrier:
  ------------------
  |  Branch (4029:5): [True: 0, False: 3.17k]
  ------------------
 4030|      0|    case glslang::EOpWorkgroupMemoryBarrierWithGroupSync:
  ------------------
  |  Branch (4030:5): [True: 0, False: 3.17k]
  ------------------
 4031|      0|    case glslang::EOpSubgroupBarrier:
  ------------------
  |  Branch (4031:5): [True: 0, False: 3.17k]
  ------------------
 4032|      0|    case glslang::EOpSubgroupMemoryBarrier:
  ------------------
  |  Branch (4032:5): [True: 0, False: 3.17k]
  ------------------
 4033|      0|    case glslang::EOpSubgroupMemoryBarrierBuffer:
  ------------------
  |  Branch (4033:5): [True: 0, False: 3.17k]
  ------------------
 4034|      0|    case glslang::EOpSubgroupMemoryBarrierImage:
  ------------------
  |  Branch (4034:5): [True: 0, False: 3.17k]
  ------------------
 4035|      0|    case glslang::EOpSubgroupMemoryBarrierShared:
  ------------------
  |  Branch (4035:5): [True: 0, False: 3.17k]
  ------------------
 4036|      0|        noReturnValue = true;
 4037|       |        // These all have 0 operands and will naturally finish up in the code below for 0 operands
 4038|      0|        break;
 4039|       |
 4040|      2|    case glslang::EOpAtomicAdd:
  ------------------
  |  Branch (4040:5): [True: 2, False: 3.16k]
  ------------------
 4041|      2|    case glslang::EOpAtomicSubtract:
  ------------------
  |  Branch (4041:5): [True: 0, False: 3.17k]
  ------------------
 4042|      4|    case glslang::EOpAtomicMin:
  ------------------
  |  Branch (4042:5): [True: 2, False: 3.16k]
  ------------------
 4043|      6|    case glslang::EOpAtomicMax:
  ------------------
  |  Branch (4043:5): [True: 2, False: 3.16k]
  ------------------
 4044|      6|    case glslang::EOpAtomicAnd:
  ------------------
  |  Branch (4044:5): [True: 0, False: 3.17k]
  ------------------
 4045|      6|    case glslang::EOpAtomicOr:
  ------------------
  |  Branch (4045:5): [True: 0, False: 3.17k]
  ------------------
 4046|      6|    case glslang::EOpAtomicXor:
  ------------------
  |  Branch (4046:5): [True: 0, False: 3.17k]
  ------------------
 4047|      8|    case glslang::EOpAtomicExchange:
  ------------------
  |  Branch (4047:5): [True: 2, False: 3.16k]
  ------------------
 4048|      8|    case glslang::EOpAtomicCompSwap:
  ------------------
  |  Branch (4048:5): [True: 0, False: 3.17k]
  ------------------
 4049|      8|        atomic = true;
 4050|      8|        break;
 4051|       |
 4052|      0|    case glslang::EOpAtomicStore:
  ------------------
  |  Branch (4052:5): [True: 0, False: 3.17k]
  ------------------
 4053|      0|        noReturnValue = true;
 4054|      0|        [[fallthrough]];
 4055|      0|    case glslang::EOpAtomicLoad:
  ------------------
  |  Branch (4055:5): [True: 0, False: 3.17k]
  ------------------
 4056|      0|        atomic = true;
 4057|      0|        break;
 4058|       |
 4059|      0|    case glslang::EOpAtomicCounterAdd:
  ------------------
  |  Branch (4059:5): [True: 0, False: 3.17k]
  ------------------
 4060|      0|    case glslang::EOpAtomicCounterSubtract:
  ------------------
  |  Branch (4060:5): [True: 0, False: 3.17k]
  ------------------
 4061|      0|    case glslang::EOpAtomicCounterMin:
  ------------------
  |  Branch (4061:5): [True: 0, False: 3.17k]
  ------------------
 4062|      0|    case glslang::EOpAtomicCounterMax:
  ------------------
  |  Branch (4062:5): [True: 0, False: 3.17k]
  ------------------
 4063|      0|    case glslang::EOpAtomicCounterAnd:
  ------------------
  |  Branch (4063:5): [True: 0, False: 3.17k]
  ------------------
 4064|      0|    case glslang::EOpAtomicCounterOr:
  ------------------
  |  Branch (4064:5): [True: 0, False: 3.17k]
  ------------------
 4065|      0|    case glslang::EOpAtomicCounterXor:
  ------------------
  |  Branch (4065:5): [True: 0, False: 3.17k]
  ------------------
 4066|      0|    case glslang::EOpAtomicCounterExchange:
  ------------------
  |  Branch (4066:5): [True: 0, False: 3.17k]
  ------------------
 4067|      0|    case glslang::EOpAtomicCounterCompSwap:
  ------------------
  |  Branch (4067:5): [True: 0, False: 3.17k]
  ------------------
 4068|      0|        builder.addExtension("SPV_KHR_shader_atomic_counter_ops");
 4069|      0|        builder.addCapability(spv::Capability::AtomicStorageOps);
 4070|      0|        atomic = true;
 4071|      0|        break;
 4072|       |
 4073|      0|    case glslang::EOpAbsDifference:
  ------------------
  |  Branch (4073:5): [True: 0, False: 3.17k]
  ------------------
 4074|      0|    case glslang::EOpAddSaturate:
  ------------------
  |  Branch (4074:5): [True: 0, False: 3.17k]
  ------------------
 4075|      0|    case glslang::EOpSubSaturate:
  ------------------
  |  Branch (4075:5): [True: 0, False: 3.17k]
  ------------------
 4076|      0|    case glslang::EOpAverage:
  ------------------
  |  Branch (4076:5): [True: 0, False: 3.17k]
  ------------------
 4077|      0|    case glslang::EOpAverageRounded:
  ------------------
  |  Branch (4077:5): [True: 0, False: 3.17k]
  ------------------
 4078|      0|    case glslang::EOpMul32x16:
  ------------------
  |  Branch (4078:5): [True: 0, False: 3.17k]
  ------------------
 4079|      0|        builder.addCapability(spv::Capability::IntegerFunctions2INTEL);
 4080|      0|        builder.addExtension("SPV_INTEL_shader_integer_functions2");
 4081|      0|        binOp = node->getOp();
 4082|      0|        break;
 4083|       |
 4084|      0|    case glslang::EOpExpectEXT:
  ------------------
  |  Branch (4084:5): [True: 0, False: 3.17k]
  ------------------
 4085|      0|        builder.addCapability(spv::Capability::ExpectAssumeKHR);
 4086|      0|        builder.addExtension(spv::E_SPV_KHR_expect_assume);
 4087|      0|        binOp = node->getOp();
 4088|      0|        break;
 4089|       |
 4090|      0|    case glslang::EOpIgnoreIntersectionNV:
  ------------------
  |  Branch (4090:5): [True: 0, False: 3.17k]
  ------------------
 4091|      0|    case glslang::EOpTerminateRayNV:
  ------------------
  |  Branch (4091:5): [True: 0, False: 3.17k]
  ------------------
 4092|      0|    case glslang::EOpTraceNV:
  ------------------
  |  Branch (4092:5): [True: 0, False: 3.17k]
  ------------------
 4093|      0|    case glslang::EOpTraceRayMotionNV:
  ------------------
  |  Branch (4093:5): [True: 0, False: 3.17k]
  ------------------
 4094|      0|    case glslang::EOpTraceKHR:
  ------------------
  |  Branch (4094:5): [True: 0, False: 3.17k]
  ------------------
 4095|      0|    case glslang::EOpExecuteCallableNV:
  ------------------
  |  Branch (4095:5): [True: 0, False: 3.17k]
  ------------------
 4096|      0|    case glslang::EOpExecuteCallableKHR:
  ------------------
  |  Branch (4096:5): [True: 0, False: 3.17k]
  ------------------
 4097|      0|    case glslang::EOpWritePackedPrimitiveIndices4x8NV:
  ------------------
  |  Branch (4097:5): [True: 0, False: 3.17k]
  ------------------
 4098|      0|    case glslang::EOpEmitMeshTasksEXT:
  ------------------
  |  Branch (4098:5): [True: 0, False: 3.17k]
  ------------------
 4099|      0|    case glslang::EOpSetMeshOutputsEXT:
  ------------------
  |  Branch (4099:5): [True: 0, False: 3.17k]
  ------------------
 4100|      0|        noReturnValue = true;
 4101|      0|        break;
 4102|      5|    case glslang::EOpRayQueryInitialize:
  ------------------
  |  Branch (4102:5): [True: 5, False: 3.16k]
  ------------------
 4103|      5|    case glslang::EOpRayQueryTerminate:
  ------------------
  |  Branch (4103:5): [True: 0, False: 3.17k]
  ------------------
 4104|     10|    case glslang::EOpRayQueryGenerateIntersection:
  ------------------
  |  Branch (4104:5): [True: 5, False: 3.16k]
  ------------------
 4105|     10|    case glslang::EOpRayQueryConfirmIntersection:
  ------------------
  |  Branch (4105:5): [True: 0, False: 3.17k]
  ------------------
 4106|     10|        builder.addExtension("SPV_KHR_ray_query");
 4107|     10|        builder.addCapability(spv::Capability::RayQueryKHR);
 4108|     10|        noReturnValue = true;
 4109|     10|        break;
 4110|      0|    case glslang::EOpRayQueryProceed:
  ------------------
  |  Branch (4110:5): [True: 0, False: 3.17k]
  ------------------
 4111|     10|    case glslang::EOpRayQueryGetIntersectionType:
  ------------------
  |  Branch (4111:5): [True: 10, False: 3.16k]
  ------------------
 4112|     10|    case glslang::EOpRayQueryGetRayTMin:
  ------------------
  |  Branch (4112:5): [True: 0, False: 3.17k]
  ------------------
 4113|     10|    case glslang::EOpRayQueryGetRayFlags:
  ------------------
  |  Branch (4113:5): [True: 0, False: 3.17k]
  ------------------
 4114|     20|    case glslang::EOpRayQueryGetIntersectionT:
  ------------------
  |  Branch (4114:5): [True: 10, False: 3.16k]
  ------------------
 4115|     30|    case glslang::EOpRayQueryGetIntersectionInstanceCustomIndex:
  ------------------
  |  Branch (4115:5): [True: 10, False: 3.16k]
  ------------------
 4116|     40|    case glslang::EOpRayQueryGetIntersectionInstanceId:
  ------------------
  |  Branch (4116:5): [True: 10, False: 3.16k]
  ------------------
 4117|     45|    case glslang::EOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffset:
  ------------------
  |  Branch (4117:5): [True: 5, False: 3.16k]
  ------------------
 4118|     50|    case glslang::EOpRayQueryGetIntersectionGeometryIndex:
  ------------------
  |  Branch (4118:5): [True: 5, False: 3.16k]
  ------------------
 4119|     60|    case glslang::EOpRayQueryGetIntersectionPrimitiveIndex:
  ------------------
  |  Branch (4119:5): [True: 10, False: 3.16k]
  ------------------
 4120|     70|    case glslang::EOpRayQueryGetIntersectionBarycentrics:
  ------------------
  |  Branch (4120:5): [True: 10, False: 3.16k]
  ------------------
 4121|     80|    case glslang::EOpRayQueryGetIntersectionFrontFace:
  ------------------
  |  Branch (4121:5): [True: 10, False: 3.16k]
  ------------------
 4122|     80|    case glslang::EOpRayQueryGetIntersectionCandidateAABBOpaque:
  ------------------
  |  Branch (4122:5): [True: 0, False: 3.17k]
  ------------------
 4123|     90|    case glslang::EOpRayQueryGetIntersectionObjectRayDirection:
  ------------------
  |  Branch (4123:5): [True: 10, False: 3.16k]
  ------------------
 4124|    100|    case glslang::EOpRayQueryGetIntersectionObjectRayOrigin:
  ------------------
  |  Branch (4124:5): [True: 10, False: 3.16k]
  ------------------
 4125|    100|    case glslang::EOpRayQueryGetWorldRayDirection:
  ------------------
  |  Branch (4125:5): [True: 0, False: 3.17k]
  ------------------
 4126|    100|    case glslang::EOpRayQueryGetWorldRayOrigin:
  ------------------
  |  Branch (4126:5): [True: 0, False: 3.17k]
  ------------------
 4127|    110|    case glslang::EOpRayQueryGetIntersectionObjectToWorld:
  ------------------
  |  Branch (4127:5): [True: 10, False: 3.16k]
  ------------------
 4128|    120|    case glslang::EOpRayQueryGetIntersectionWorldToObject:
  ------------------
  |  Branch (4128:5): [True: 10, False: 3.16k]
  ------------------
 4129|    120|        builder.addExtension("SPV_KHR_ray_query");
 4130|    120|        builder.addCapability(spv::Capability::RayQueryKHR);
 4131|    120|        break;
 4132|      0|    case glslang::EOpCooperativeMatrixLoad:
  ------------------
  |  Branch (4132:5): [True: 0, False: 3.17k]
  ------------------
 4133|      0|    case glslang::EOpCooperativeMatrixStore:
  ------------------
  |  Branch (4133:5): [True: 0, False: 3.17k]
  ------------------
 4134|      0|    case glslang::EOpCooperativeMatrixLoadNV:
  ------------------
  |  Branch (4134:5): [True: 0, False: 3.17k]
  ------------------
 4135|      0|    case glslang::EOpCooperativeMatrixStoreNV:
  ------------------
  |  Branch (4135:5): [True: 0, False: 3.17k]
  ------------------
 4136|      0|    case glslang::EOpCooperativeMatrixLoadTensorNV:
  ------------------
  |  Branch (4136:5): [True: 0, False: 3.17k]
  ------------------
 4137|      0|    case glslang::EOpCooperativeMatrixStoreTensorNV:
  ------------------
  |  Branch (4137:5): [True: 0, False: 3.17k]
  ------------------
 4138|      0|    case glslang::EOpCooperativeMatrixReduceNV:
  ------------------
  |  Branch (4138:5): [True: 0, False: 3.17k]
  ------------------
 4139|      0|    case glslang::EOpCooperativeMatrixPerElementOpNV:
  ------------------
  |  Branch (4139:5): [True: 0, False: 3.17k]
  ------------------
 4140|      0|    case glslang::EOpCooperativeMatrixTransposeNV:
  ------------------
  |  Branch (4140:5): [True: 0, False: 3.17k]
  ------------------
 4141|      0|    case glslang::EOpCooperativeVectorMatMulNV:
  ------------------
  |  Branch (4141:5): [True: 0, False: 3.17k]
  ------------------
 4142|      0|    case glslang::EOpCooperativeVectorMatMulAddNV:
  ------------------
  |  Branch (4142:5): [True: 0, False: 3.17k]
  ------------------
 4143|      0|    case glslang::EOpCooperativeVectorLoadNV:
  ------------------
  |  Branch (4143:5): [True: 0, False: 3.17k]
  ------------------
 4144|      0|    case glslang::EOpCooperativeVectorStoreNV:
  ------------------
  |  Branch (4144:5): [True: 0, False: 3.17k]
  ------------------
 4145|      0|    case glslang::EOpCooperativeVectorOuterProductAccumulateNV:
  ------------------
  |  Branch (4145:5): [True: 0, False: 3.17k]
  ------------------
 4146|      0|    case glslang::EOpCooperativeVectorReduceSumAccumulateNV:
  ------------------
  |  Branch (4146:5): [True: 0, False: 3.17k]
  ------------------
 4147|      0|        noReturnValue = true;
 4148|      0|        break;
 4149|      0|    case glslang::EOpBeginInvocationInterlock:
  ------------------
  |  Branch (4149:5): [True: 0, False: 3.17k]
  ------------------
 4150|      0|    case glslang::EOpEndInvocationInterlock:
  ------------------
  |  Branch (4150:5): [True: 0, False: 3.17k]
  ------------------
 4151|      0|        builder.addExtension(spv::E_SPV_EXT_fragment_shader_interlock);
 4152|      0|        noReturnValue = true;
 4153|      0|        break;
 4154|       |
 4155|      0|    case glslang::EOpHitObjectTraceRayNV:
  ------------------
  |  Branch (4155:5): [True: 0, False: 3.17k]
  ------------------
 4156|      0|    case glslang::EOpHitObjectTraceRayMotionNV:
  ------------------
  |  Branch (4156:5): [True: 0, False: 3.17k]
  ------------------
 4157|      0|    case glslang::EOpHitObjectGetAttributesNV:
  ------------------
  |  Branch (4157:5): [True: 0, False: 3.17k]
  ------------------
 4158|      0|    case glslang::EOpHitObjectExecuteShaderNV:
  ------------------
  |  Branch (4158:5): [True: 0, False: 3.17k]
  ------------------
 4159|      0|    case glslang::EOpHitObjectRecordEmptyNV:
  ------------------
  |  Branch (4159:5): [True: 0, False: 3.17k]
  ------------------
 4160|      0|    case glslang::EOpHitObjectRecordMissNV:
  ------------------
  |  Branch (4160:5): [True: 0, False: 3.17k]
  ------------------
 4161|      0|    case glslang::EOpHitObjectRecordMissMotionNV:
  ------------------
  |  Branch (4161:5): [True: 0, False: 3.17k]
  ------------------
 4162|      0|    case glslang::EOpHitObjectRecordHitNV:
  ------------------
  |  Branch (4162:5): [True: 0, False: 3.17k]
  ------------------
 4163|      0|    case glslang::EOpHitObjectRecordHitMotionNV:
  ------------------
  |  Branch (4163:5): [True: 0, False: 3.17k]
  ------------------
 4164|      0|    case glslang::EOpHitObjectRecordHitWithIndexNV:
  ------------------
  |  Branch (4164:5): [True: 0, False: 3.17k]
  ------------------
 4165|      0|    case glslang::EOpHitObjectRecordHitWithIndexMotionNV:
  ------------------
  |  Branch (4165:5): [True: 0, False: 3.17k]
  ------------------
 4166|      0|    case glslang::EOpReorderThreadNV:
  ------------------
  |  Branch (4166:5): [True: 0, False: 3.17k]
  ------------------
 4167|      0|        noReturnValue = true;
 4168|      0|        [[fallthrough]];
 4169|      0|    case glslang::EOpHitObjectIsEmptyNV:
  ------------------
  |  Branch (4169:5): [True: 0, False: 3.17k]
  ------------------
 4170|      0|    case glslang::EOpHitObjectIsMissNV:
  ------------------
  |  Branch (4170:5): [True: 0, False: 3.17k]
  ------------------
 4171|      0|    case glslang::EOpHitObjectIsHitNV:
  ------------------
  |  Branch (4171:5): [True: 0, False: 3.17k]
  ------------------
 4172|      0|    case glslang::EOpHitObjectGetRayTMinNV:
  ------------------
  |  Branch (4172:5): [True: 0, False: 3.17k]
  ------------------
 4173|      0|    case glslang::EOpHitObjectGetRayTMaxNV:
  ------------------
  |  Branch (4173:5): [True: 0, False: 3.17k]
  ------------------
 4174|      0|    case glslang::EOpHitObjectGetObjectRayOriginNV:
  ------------------
  |  Branch (4174:5): [True: 0, False: 3.17k]
  ------------------
 4175|      0|    case glslang::EOpHitObjectGetObjectRayDirectionNV:
  ------------------
  |  Branch (4175:5): [True: 0, False: 3.17k]
  ------------------
 4176|      0|    case glslang::EOpHitObjectGetWorldRayOriginNV:
  ------------------
  |  Branch (4176:5): [True: 0, False: 3.17k]
  ------------------
 4177|      0|    case glslang::EOpHitObjectGetWorldRayDirectionNV:
  ------------------
  |  Branch (4177:5): [True: 0, False: 3.17k]
  ------------------
 4178|      0|    case glslang::EOpHitObjectGetObjectToWorldNV:
  ------------------
  |  Branch (4178:5): [True: 0, False: 3.17k]
  ------------------
 4179|      0|    case glslang::EOpHitObjectGetWorldToObjectNV:
  ------------------
  |  Branch (4179:5): [True: 0, False: 3.17k]
  ------------------
 4180|      0|    case glslang::EOpHitObjectGetInstanceCustomIndexNV:
  ------------------
  |  Branch (4180:5): [True: 0, False: 3.17k]
  ------------------
 4181|      0|    case glslang::EOpHitObjectGetInstanceIdNV:
  ------------------
  |  Branch (4181:5): [True: 0, False: 3.17k]
  ------------------
 4182|      0|    case glslang::EOpHitObjectGetGeometryIndexNV:
  ------------------
  |  Branch (4182:5): [True: 0, False: 3.17k]
  ------------------
 4183|      0|    case glslang::EOpHitObjectGetPrimitiveIndexNV:
  ------------------
  |  Branch (4183:5): [True: 0, False: 3.17k]
  ------------------
 4184|      0|    case glslang::EOpHitObjectGetHitKindNV:
  ------------------
  |  Branch (4184:5): [True: 0, False: 3.17k]
  ------------------
 4185|      0|    case glslang::EOpHitObjectGetCurrentTimeNV:
  ------------------
  |  Branch (4185:5): [True: 0, False: 3.17k]
  ------------------
 4186|      0|    case glslang::EOpHitObjectGetShaderBindingTableRecordIndexNV:
  ------------------
  |  Branch (4186:5): [True: 0, False: 3.17k]
  ------------------
 4187|      0|    case glslang::EOpHitObjectGetShaderRecordBufferHandleNV:
  ------------------
  |  Branch (4187:5): [True: 0, False: 3.17k]
  ------------------
 4188|      0|        builder.addExtension(spv::E_SPV_NV_shader_invocation_reorder);
 4189|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 4190|      0|        break;
 4191|       |
 4192|      0|    case glslang::EOpHitObjectGetLSSPositionsNV:
  ------------------
  |  Branch (4192:5): [True: 0, False: 3.17k]
  ------------------
 4193|      0|    case glslang::EOpHitObjectGetLSSRadiiNV:
  ------------------
  |  Branch (4193:5): [True: 0, False: 3.17k]
  ------------------
 4194|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 4195|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderNV);
 4196|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 4197|      0|        noReturnValue = true;
 4198|      0|        break;
 4199|       |
 4200|      0|    case glslang::EOpRayQueryGetIntersectionLSSPositionsNV:
  ------------------
  |  Branch (4200:5): [True: 0, False: 3.17k]
  ------------------
 4201|      0|    case glslang::EOpRayQueryGetIntersectionLSSRadiiNV:
  ------------------
  |  Branch (4201:5): [True: 0, False: 3.17k]
  ------------------
 4202|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 4203|      0|        builder.addCapability(spv::Capability::RayQueryKHR);
 4204|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 4205|      0|        noReturnValue = true;
 4206|      0|        break;
 4207|       |
 4208|      0|    case glslang::EOpRayQueryGetIntersectionSpherePositionNV:
  ------------------
  |  Branch (4208:5): [True: 0, False: 3.17k]
  ------------------
 4209|      0|    case glslang::EOpRayQueryGetIntersectionSphereRadiusNV:
  ------------------
  |  Branch (4209:5): [True: 0, False: 3.17k]
  ------------------
 4210|      0|    case glslang::EOpRayQueryIsSphereHitNV:
  ------------------
  |  Branch (4210:5): [True: 0, False: 3.17k]
  ------------------
 4211|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 4212|      0|        builder.addCapability(spv::Capability::RayQueryKHR);
 4213|      0|        builder.addCapability(spv::Capability::RayTracingSpheresGeometryNV);
 4214|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 4215|      0|        break;
 4216|       |
 4217|      0|    case glslang::EOpRayQueryGetIntersectionLSSHitValueNV:
  ------------------
  |  Branch (4217:5): [True: 0, False: 3.17k]
  ------------------
 4218|      0|    case glslang::EOpRayQueryIsLSSHitNV:
  ------------------
  |  Branch (4218:5): [True: 0, False: 3.17k]
  ------------------
 4219|      0|        builder.addExtension(spv::E_SPV_NV_linear_swept_spheres);
 4220|      0|        builder.addCapability(spv::Capability::RayQueryKHR);
 4221|      0|        builder.addCapability(spv::Capability::RayTracingLinearSweptSpheresGeometryNV);
 4222|      0|        break;
 4223|       |
 4224|      0|    case glslang::EOpHitObjectTraceRayEXT:
  ------------------
  |  Branch (4224:5): [True: 0, False: 3.17k]
  ------------------
 4225|      0|    case glslang::EOpHitObjectTraceRayMotionEXT:
  ------------------
  |  Branch (4225:5): [True: 0, False: 3.17k]
  ------------------
 4226|      0|    case glslang::EOpHitObjectGetAttributesEXT:
  ------------------
  |  Branch (4226:5): [True: 0, False: 3.17k]
  ------------------
 4227|      0|    case glslang::EOpHitObjectExecuteShaderEXT:
  ------------------
  |  Branch (4227:5): [True: 0, False: 3.17k]
  ------------------
 4228|      0|    case glslang::EOpHitObjectRecordEmptyEXT:
  ------------------
  |  Branch (4228:5): [True: 0, False: 3.17k]
  ------------------
 4229|      0|    case glslang::EOpHitObjectRecordMissEXT:
  ------------------
  |  Branch (4229:5): [True: 0, False: 3.17k]
  ------------------
 4230|      0|    case glslang::EOpHitObjectRecordMissMotionEXT:
  ------------------
  |  Branch (4230:5): [True: 0, False: 3.17k]
  ------------------
 4231|      0|    case glslang::EOpReorderThreadEXT:
  ------------------
  |  Branch (4231:5): [True: 0, False: 3.17k]
  ------------------
 4232|      0|    case glslang::EOpHitObjectSetShaderBindingTableRecordIndexEXT:
  ------------------
  |  Branch (4232:5): [True: 0, False: 3.17k]
  ------------------
 4233|      0|    case glslang::EOpHitObjectReorderExecuteEXT:
  ------------------
  |  Branch (4233:5): [True: 0, False: 3.17k]
  ------------------
 4234|      0|    case glslang::EOpHitObjectTraceReorderExecuteEXT:
  ------------------
  |  Branch (4234:5): [True: 0, False: 3.17k]
  ------------------
 4235|      0|    case glslang::EOpHitObjectTraceMotionReorderExecuteEXT:
  ------------------
  |  Branch (4235:5): [True: 0, False: 3.17k]
  ------------------
 4236|      0|    case glslang::EOpHitObjectRecordFromQueryEXT:
  ------------------
  |  Branch (4236:5): [True: 0, False: 3.17k]
  ------------------
 4237|      0|    case glslang::EOpHitObjectGetIntersectionTriangleVertexPositionsEXT:
  ------------------
  |  Branch (4237:5): [True: 0, False: 3.17k]
  ------------------
 4238|      0|        noReturnValue = true;
 4239|      0|        [[fallthrough]];
 4240|      0|    case glslang::EOpHitObjectIsEmptyEXT:
  ------------------
  |  Branch (4240:5): [True: 0, False: 3.17k]
  ------------------
 4241|      0|    case glslang::EOpHitObjectIsMissEXT:
  ------------------
  |  Branch (4241:5): [True: 0, False: 3.17k]
  ------------------
 4242|      0|    case glslang::EOpHitObjectIsHitEXT:
  ------------------
  |  Branch (4242:5): [True: 0, False: 3.17k]
  ------------------
 4243|      0|    case glslang::EOpHitObjectGetRayTMinEXT:
  ------------------
  |  Branch (4243:5): [True: 0, False: 3.17k]
  ------------------
 4244|      0|    case glslang::EOpHitObjectGetRayTMaxEXT:
  ------------------
  |  Branch (4244:5): [True: 0, False: 3.17k]
  ------------------
 4245|      0|    case glslang::EOpHitObjectGetRayFlagsEXT:
  ------------------
  |  Branch (4245:5): [True: 0, False: 3.17k]
  ------------------
 4246|      0|    case glslang::EOpHitObjectGetObjectRayOriginEXT:
  ------------------
  |  Branch (4246:5): [True: 0, False: 3.17k]
  ------------------
 4247|      0|    case glslang::EOpHitObjectGetObjectRayDirectionEXT:
  ------------------
  |  Branch (4247:5): [True: 0, False: 3.17k]
  ------------------
 4248|      0|    case glslang::EOpHitObjectGetWorldRayOriginEXT:
  ------------------
  |  Branch (4248:5): [True: 0, False: 3.17k]
  ------------------
 4249|      0|    case glslang::EOpHitObjectGetWorldRayDirectionEXT:
  ------------------
  |  Branch (4249:5): [True: 0, False: 3.17k]
  ------------------
 4250|      0|    case glslang::EOpHitObjectGetObjectToWorldEXT:
  ------------------
  |  Branch (4250:5): [True: 0, False: 3.17k]
  ------------------
 4251|      0|    case glslang::EOpHitObjectGetWorldToObjectEXT:
  ------------------
  |  Branch (4251:5): [True: 0, False: 3.17k]
  ------------------
 4252|      0|    case glslang::EOpHitObjectGetInstanceCustomIndexEXT:
  ------------------
  |  Branch (4252:5): [True: 0, False: 3.17k]
  ------------------
 4253|      0|    case glslang::EOpHitObjectGetInstanceIdEXT:
  ------------------
  |  Branch (4253:5): [True: 0, False: 3.17k]
  ------------------
 4254|      0|    case glslang::EOpHitObjectGetGeometryIndexEXT:
  ------------------
  |  Branch (4254:5): [True: 0, False: 3.17k]
  ------------------
 4255|      0|    case glslang::EOpHitObjectGetPrimitiveIndexEXT:
  ------------------
  |  Branch (4255:5): [True: 0, False: 3.17k]
  ------------------
 4256|      0|    case glslang::EOpHitObjectGetHitKindEXT:
  ------------------
  |  Branch (4256:5): [True: 0, False: 3.17k]
  ------------------
 4257|      0|    case glslang::EOpHitObjectGetCurrentTimeEXT:
  ------------------
  |  Branch (4257:5): [True: 0, False: 3.17k]
  ------------------
 4258|      0|    case glslang::EOpHitObjectGetShaderBindingTableRecordIndexEXT:
  ------------------
  |  Branch (4258:5): [True: 0, False: 3.17k]
  ------------------
 4259|      0|    case glslang::EOpHitObjectGetShaderRecordBufferHandleEXT:
  ------------------
  |  Branch (4259:5): [True: 0, False: 3.17k]
  ------------------
 4260|      0|        builder.addExtension(spv::E_SPV_EXT_shader_invocation_reorder);
 4261|      0|        builder.addCapability(spv::Capability::ShaderInvocationReorderEXT);
 4262|      0|        break;
 4263|       |
 4264|      0|    case glslang::EOpRayQueryGetIntersectionTriangleVertexPositionsEXT:
  ------------------
  |  Branch (4264:5): [True: 0, False: 3.17k]
  ------------------
 4265|      0|        builder.addExtension(spv::E_SPV_KHR_ray_tracing_position_fetch);
 4266|      0|        builder.addCapability(spv::Capability::RayQueryPositionFetchKHR);
 4267|      0|        noReturnValue = true;
 4268|      0|        break;
 4269|      0|    case glslang::EOpImageSampleWeightedQCOM:
  ------------------
  |  Branch (4269:5): [True: 0, False: 3.17k]
  ------------------
 4270|      0|        builder.addCapability(spv::Capability::TextureSampleWeightedQCOM);
 4271|      0|        builder.addExtension(spv::E_SPV_QCOM_image_processing);
 4272|      0|        break;
 4273|      0|    case glslang::EOpImageBoxFilterQCOM:
  ------------------
  |  Branch (4273:5): [True: 0, False: 3.17k]
  ------------------
 4274|      0|        builder.addCapability(spv::Capability::TextureBoxFilterQCOM);
 4275|      0|        builder.addExtension(spv::E_SPV_QCOM_image_processing);
 4276|      0|        break;
 4277|      0|    case glslang::EOpImageBlockMatchSADQCOM:
  ------------------
  |  Branch (4277:5): [True: 0, False: 3.17k]
  ------------------
 4278|      0|    case glslang::EOpImageBlockMatchSSDQCOM:
  ------------------
  |  Branch (4278:5): [True: 0, False: 3.17k]
  ------------------
 4279|      0|        builder.addCapability(spv::Capability::TextureBlockMatchQCOM);
 4280|      0|        builder.addExtension(spv::E_SPV_QCOM_image_processing);
 4281|      0|        break;
 4282|      0|    case glslang::EOpTensorWriteARM:
  ------------------
  |  Branch (4282:5): [True: 0, False: 3.17k]
  ------------------
 4283|      0|        noReturnValue = true;
 4284|      0|        break;
 4285|       |
 4286|      0|    case glslang::EOpImageBlockMatchWindowSSDQCOM:
  ------------------
  |  Branch (4286:5): [True: 0, False: 3.17k]
  ------------------
 4287|      0|    case glslang::EOpImageBlockMatchWindowSADQCOM:
  ------------------
  |  Branch (4287:5): [True: 0, False: 3.17k]
  ------------------
 4288|      0|        builder.addCapability(spv::Capability::TextureBlockMatchQCOM);
 4289|      0|        builder.addExtension(spv::E_SPV_QCOM_image_processing);
 4290|      0|        builder.addCapability(spv::Capability::TextureBlockMatch2QCOM);
 4291|      0|        builder.addExtension(spv::E_SPV_QCOM_image_processing2);
 4292|      0|        break;
 4293|       |
 4294|      0|    case glslang::EOpImageBlockMatchGatherSSDQCOM:
  ------------------
  |  Branch (4294:5): [True: 0, False: 3.17k]
  ------------------
 4295|      0|    case glslang::EOpImageBlockMatchGatherSADQCOM:
  ------------------
  |  Branch (4295:5): [True: 0, False: 3.17k]
  ------------------
 4296|      0|        builder.addCapability(spv::Capability::TextureBlockMatchQCOM);
 4297|      0|        builder.addExtension(spv::E_SPV_QCOM_image_processing);
 4298|      0|        builder.addCapability(spv::Capability::TextureBlockMatch2QCOM);
 4299|      0|        builder.addExtension(spv::E_SPV_QCOM_image_processing2);
 4300|      0|        break;
 4301|       |
 4302|      0|    case glslang::EOpFetchMicroTriangleVertexPositionNV:
  ------------------
  |  Branch (4302:5): [True: 0, False: 3.17k]
  ------------------
 4303|      0|    case glslang::EOpFetchMicroTriangleVertexBarycentricNV:
  ------------------
  |  Branch (4303:5): [True: 0, False: 3.17k]
  ------------------
 4304|      0|        builder.addExtension(spv::E_SPV_NV_displacement_micromap);
 4305|      0|        builder.addCapability(spv::Capability::DisplacementMicromapNV);
 4306|      0|        break;
 4307|       |
 4308|      0|    case glslang::EOpRayQueryGetIntersectionClusterIdNV:
  ------------------
  |  Branch (4308:5): [True: 0, False: 3.17k]
  ------------------
 4309|      0|        builder.addExtension(spv::E_SPV_NV_cluster_acceleration_structure);
 4310|      0|        builder.addCapability(spv::Capability::RayQueryKHR);
 4311|      0|        builder.addCapability(spv::Capability::RayTracingClusterAccelerationStructureNV);
 4312|      0|        break;
 4313|       |
 4314|      0|    case glslang::EOpCooperativeMatrixGetCoordinateEXT:
  ------------------
  |  Branch (4314:5): [True: 0, False: 3.17k]
  ------------------
 4315|      0|        builder.addExtension(spv::E_SPV_EXT_cooperative_matrix_maintenance1);
 4316|      0|        builder.addCapability(spv::Capability::CooperativeMatrixGetCoordinateEXT);
 4317|      0|        break;
 4318|       |
 4319|      0|    case glslang::EOpDebugPrintf:
  ------------------
  |  Branch (4319:5): [True: 0, False: 3.17k]
  ------------------
 4320|      0|        noReturnValue = true;
 4321|      0|        break;
 4322|       |
 4323|    283|    default:
  ------------------
  |  Branch (4323:5): [True: 283, False: 2.88k]
  ------------------
 4324|    283|        break;
 4325|  3.17k|    }
 4326|       |
 4327|       |    //
 4328|       |    // See if it maps to a regular operation.
 4329|       |    //
 4330|    607|    if (binOp != glslang::EOpNull) {
  ------------------
  |  Branch (4330:9): [True: 138, False: 469]
  ------------------
 4331|    138|        glslang::TIntermTyped* left = node->getSequence()[0]->getAsTyped();
 4332|    138|        glslang::TIntermTyped* right = node->getSequence()[1]->getAsTyped();
 4333|    138|        assert(left && right);
 4334|       |
 4335|    138|        builder.clearAccessChain();
 4336|    138|        left->traverse(this);
 4337|    138|        spv::Id leftId = accessChainLoad(left->getType());
 4338|       |
 4339|    138|        builder.clearAccessChain();
 4340|    138|        right->traverse(this);
 4341|    138|        spv::Id rightId = accessChainLoad(right->getType());
 4342|       |
 4343|    138|        builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 4344|    138|        OpDecorations decorations = { precision,
 4345|    138|                                      TranslateNoContractionDecoration(node->getType().getQualifier()),
 4346|    138|                                      TranslateNonUniformDecoration(node->getType().getQualifier()) };
 4347|    138|        result = createBinaryOperation(binOp, decorations,
 4348|    138|                                       resultType(), leftId, rightId,
 4349|    138|                                       left->getType().getBasicType(), reduceComparison);
 4350|       |
 4351|       |        // code above should only make binOp that exists in createBinaryOperation
 4352|    138|        assert(result != spv::NoResult);
 4353|    138|        builder.clearAccessChain();
 4354|    138|        builder.setAccessChainRValue(result);
 4355|       |
 4356|    138|        return false;
 4357|    138|    }
 4358|       |
 4359|       |    //
 4360|       |    // Create the list of operands.
 4361|       |    //
 4362|    469|    glslang::TIntermSequence& glslangOperands = node->getSequence();
 4363|    469|    std::vector<spv::Id> operands;
 4364|    469|    std::vector<spv::IdImmediate> memoryAccessOperands;
 4365|    469|    if (node->getOp() == glslang::EOpAbortEXT) {
  ------------------
  |  Branch (4365:9): [True: 0, False: 469]
  ------------------
 4366|      0|        createAbortEXT(glslangOperands);
 4367|      0|        return false;
 4368|      0|    }
 4369|  1.58k|    for (int arg = 0; arg < (int)glslangOperands.size(); ++arg) {
  ------------------
  |  Branch (4369:23): [True: 1.12k, False: 469]
  ------------------
 4370|       |        // special case l-value operands; there are just a few
 4371|  1.12k|        bool lvalue = false;
 4372|  1.12k|        switch (node->getOp()) {
 4373|      0|        case glslang::EOpModf:
  ------------------
  |  Branch (4373:9): [True: 0, False: 1.12k]
  ------------------
 4374|      0|            if (arg == 1)
  ------------------
  |  Branch (4374:17): [True: 0, False: 0]
  ------------------
 4375|      0|                lvalue = true;
 4376|      0|            break;
 4377|       |
 4378|       |
 4379|       |
 4380|      0|        case glslang::EOpHitObjectRecordFromQueryEXT:
  ------------------
  |  Branch (4380:9): [True: 0, False: 1.12k]
  ------------------
 4381|      0|        case glslang::EOpHitObjectGetIntersectionTriangleVertexPositionsEXT:
  ------------------
  |  Branch (4381:9): [True: 0, False: 1.12k]
  ------------------
 4382|      0|            if (arg == 0 || arg == 1)
  ------------------
  |  Branch (4382:17): [True: 0, False: 0]
  |  Branch (4382:29): [True: 0, False: 0]
  ------------------
 4383|      0|                lvalue = true;
 4384|      0|            break;
 4385|       |
 4386|      0|        case glslang::EOpHitObjectRecordHitNV:
  ------------------
  |  Branch (4386:9): [True: 0, False: 1.12k]
  ------------------
 4387|      0|        case glslang::EOpHitObjectRecordHitMotionNV:
  ------------------
  |  Branch (4387:9): [True: 0, False: 1.12k]
  ------------------
 4388|      0|        case glslang::EOpHitObjectRecordHitWithIndexNV:
  ------------------
  |  Branch (4388:9): [True: 0, False: 1.12k]
  ------------------
 4389|      0|        case glslang::EOpHitObjectRecordHitWithIndexMotionNV:
  ------------------
  |  Branch (4389:9): [True: 0, False: 1.12k]
  ------------------
 4390|      0|        case glslang::EOpHitObjectTraceRayNV:
  ------------------
  |  Branch (4390:9): [True: 0, False: 1.12k]
  ------------------
 4391|      0|        case glslang::EOpHitObjectTraceRayMotionNV:
  ------------------
  |  Branch (4391:9): [True: 0, False: 1.12k]
  ------------------
 4392|      0|        case glslang::EOpHitObjectExecuteShaderNV:
  ------------------
  |  Branch (4392:9): [True: 0, False: 1.12k]
  ------------------
 4393|      0|        case glslang::EOpHitObjectRecordMissNV:
  ------------------
  |  Branch (4393:9): [True: 0, False: 1.12k]
  ------------------
 4394|      0|        case glslang::EOpHitObjectRecordMissMotionNV:
  ------------------
  |  Branch (4394:9): [True: 0, False: 1.12k]
  ------------------
 4395|      0|        case glslang::EOpHitObjectGetAttributesNV:
  ------------------
  |  Branch (4395:9): [True: 0, False: 1.12k]
  ------------------
 4396|      0|        case glslang::EOpHitObjectGetClusterIdNV:
  ------------------
  |  Branch (4396:9): [True: 0, False: 1.12k]
  ------------------
 4397|      0|        case glslang::EOpHitObjectTraceRayEXT:
  ------------------
  |  Branch (4397:9): [True: 0, False: 1.12k]
  ------------------
 4398|      0|        case glslang::EOpHitObjectTraceRayMotionEXT:
  ------------------
  |  Branch (4398:9): [True: 0, False: 1.12k]
  ------------------
 4399|      0|        case glslang::EOpHitObjectExecuteShaderEXT:
  ------------------
  |  Branch (4399:9): [True: 0, False: 1.12k]
  ------------------
 4400|      0|        case glslang::EOpHitObjectRecordMissEXT:
  ------------------
  |  Branch (4400:9): [True: 0, False: 1.12k]
  ------------------
 4401|      0|        case glslang::EOpHitObjectRecordMissMotionEXT:
  ------------------
  |  Branch (4401:9): [True: 0, False: 1.12k]
  ------------------
 4402|      0|        case glslang::EOpHitObjectGetAttributesEXT:
  ------------------
  |  Branch (4402:9): [True: 0, False: 1.12k]
  ------------------
 4403|      0|        case glslang::EOpHitObjectSetShaderBindingTableRecordIndexEXT:
  ------------------
  |  Branch (4403:9): [True: 0, False: 1.12k]
  ------------------
 4404|      0|        case glslang::EOpHitObjectReorderExecuteEXT:
  ------------------
  |  Branch (4404:9): [True: 0, False: 1.12k]
  ------------------
 4405|      0|        case glslang::EOpHitObjectTraceReorderExecuteEXT:
  ------------------
  |  Branch (4405:9): [True: 0, False: 1.12k]
  ------------------
 4406|      0|        case glslang::EOpHitObjectTraceMotionReorderExecuteEXT:
  ------------------
  |  Branch (4406:9): [True: 0, False: 1.12k]
  ------------------
 4407|      0|            if (arg == 0)
  ------------------
  |  Branch (4407:17): [True: 0, False: 0]
  ------------------
 4408|      0|                lvalue = true;
 4409|      0|            break;
 4410|       |
 4411|      0|        case glslang::EOpHitObjectGetLSSPositionsNV:
  ------------------
  |  Branch (4411:9): [True: 0, False: 1.12k]
  ------------------
 4412|      0|        case glslang::EOpHitObjectGetLSSRadiiNV:
  ------------------
  |  Branch (4412:9): [True: 0, False: 1.12k]
  ------------------
 4413|      0|            lvalue = true;
 4414|      0|            break;
 4415|       |
 4416|     40|        case glslang::EOpRayQueryInitialize:
  ------------------
  |  Branch (4416:9): [True: 40, False: 1.08k]
  ------------------
 4417|     40|        case glslang::EOpRayQueryTerminate:
  ------------------
  |  Branch (4417:9): [True: 0, False: 1.12k]
  ------------------
 4418|     40|        case glslang::EOpRayQueryConfirmIntersection:
  ------------------
  |  Branch (4418:9): [True: 0, False: 1.12k]
  ------------------
 4419|     40|        case glslang::EOpRayQueryProceed:
  ------------------
  |  Branch (4419:9): [True: 0, False: 1.12k]
  ------------------
 4420|     50|        case glslang::EOpRayQueryGenerateIntersection:
  ------------------
  |  Branch (4420:9): [True: 10, False: 1.11k]
  ------------------
 4421|     70|        case glslang::EOpRayQueryGetIntersectionType:
  ------------------
  |  Branch (4421:9): [True: 20, False: 1.10k]
  ------------------
 4422|     90|        case glslang::EOpRayQueryGetIntersectionT:
  ------------------
  |  Branch (4422:9): [True: 20, False: 1.10k]
  ------------------
 4423|    110|        case glslang::EOpRayQueryGetIntersectionInstanceCustomIndex:
  ------------------
  |  Branch (4423:9): [True: 20, False: 1.10k]
  ------------------
 4424|    130|        case glslang::EOpRayQueryGetIntersectionInstanceId:
  ------------------
  |  Branch (4424:9): [True: 20, False: 1.10k]
  ------------------
 4425|    140|        case glslang::EOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffset:
  ------------------
  |  Branch (4425:9): [True: 10, False: 1.11k]
  ------------------
 4426|    150|        case glslang::EOpRayQueryGetIntersectionGeometryIndex:
  ------------------
  |  Branch (4426:9): [True: 10, False: 1.11k]
  ------------------
 4427|    170|        case glslang::EOpRayQueryGetIntersectionPrimitiveIndex:
  ------------------
  |  Branch (4427:9): [True: 20, False: 1.10k]
  ------------------
 4428|    190|        case glslang::EOpRayQueryGetIntersectionBarycentrics:
  ------------------
  |  Branch (4428:9): [True: 20, False: 1.10k]
  ------------------
 4429|    210|        case glslang::EOpRayQueryGetIntersectionFrontFace:
  ------------------
  |  Branch (4429:9): [True: 20, False: 1.10k]
  ------------------
 4430|    230|        case glslang::EOpRayQueryGetIntersectionObjectRayDirection:
  ------------------
  |  Branch (4430:9): [True: 20, False: 1.10k]
  ------------------
 4431|    250|        case glslang::EOpRayQueryGetIntersectionObjectRayOrigin:
  ------------------
  |  Branch (4431:9): [True: 20, False: 1.10k]
  ------------------
 4432|    270|        case glslang::EOpRayQueryGetIntersectionObjectToWorld:
  ------------------
  |  Branch (4432:9): [True: 20, False: 1.10k]
  ------------------
 4433|    290|        case glslang::EOpRayQueryGetIntersectionWorldToObject:
  ------------------
  |  Branch (4433:9): [True: 20, False: 1.10k]
  ------------------
 4434|    290|        case glslang::EOpRayQueryGetIntersectionClusterIdNV:
  ------------------
  |  Branch (4434:9): [True: 0, False: 1.12k]
  ------------------
 4435|    290|        case glslang::EOpRayQueryGetIntersectionSpherePositionNV:
  ------------------
  |  Branch (4435:9): [True: 0, False: 1.12k]
  ------------------
 4436|    290|        case glslang::EOpRayQueryGetIntersectionSphereRadiusNV:
  ------------------
  |  Branch (4436:9): [True: 0, False: 1.12k]
  ------------------
 4437|    290|        case glslang::EOpRayQueryGetIntersectionLSSHitValueNV:
  ------------------
  |  Branch (4437:9): [True: 0, False: 1.12k]
  ------------------
 4438|    290|        case glslang::EOpRayQueryIsSphereHitNV:
  ------------------
  |  Branch (4438:9): [True: 0, False: 1.12k]
  ------------------
 4439|    290|        case glslang::EOpRayQueryIsLSSHitNV:
  ------------------
  |  Branch (4439:9): [True: 0, False: 1.12k]
  ------------------
 4440|    290|            if (arg == 0)
  ------------------
  |  Branch (4440:17): [True: 130, False: 160]
  ------------------
 4441|    130|                lvalue = true;
 4442|    290|            break;
 4443|       |
 4444|      4|        case glslang::EOpAtomicAdd:
  ------------------
  |  Branch (4444:9): [True: 4, False: 1.11k]
  ------------------
 4445|      4|        case glslang::EOpAtomicSubtract:
  ------------------
  |  Branch (4445:9): [True: 0, False: 1.12k]
  ------------------
 4446|      8|        case glslang::EOpAtomicMin:
  ------------------
  |  Branch (4446:9): [True: 4, False: 1.11k]
  ------------------
 4447|     12|        case glslang::EOpAtomicMax:
  ------------------
  |  Branch (4447:9): [True: 4, False: 1.11k]
  ------------------
 4448|     12|        case glslang::EOpAtomicAnd:
  ------------------
  |  Branch (4448:9): [True: 0, False: 1.12k]
  ------------------
 4449|     12|        case glslang::EOpAtomicOr:
  ------------------
  |  Branch (4449:9): [True: 0, False: 1.12k]
  ------------------
 4450|     12|        case glslang::EOpAtomicXor:
  ------------------
  |  Branch (4450:9): [True: 0, False: 1.12k]
  ------------------
 4451|     16|        case glslang::EOpAtomicExchange:
  ------------------
  |  Branch (4451:9): [True: 4, False: 1.11k]
  ------------------
 4452|     16|        case glslang::EOpAtomicCompSwap:
  ------------------
  |  Branch (4452:9): [True: 0, False: 1.12k]
  ------------------
 4453|     16|            if (arg == 0)
  ------------------
  |  Branch (4453:17): [True: 8, False: 8]
  ------------------
 4454|      8|                lvalue = true;
 4455|     16|            break;
 4456|       |
 4457|     24|        case glslang::EOpFrexp:
  ------------------
  |  Branch (4457:9): [True: 24, False: 1.09k]
  ------------------
 4458|     24|            if (arg == 1)
  ------------------
  |  Branch (4458:17): [True: 12, False: 12]
  ------------------
 4459|     12|                lvalue = true;
 4460|     24|            break;
 4461|      0|        case glslang::EOpInterpolateAtSample:
  ------------------
  |  Branch (4461:9): [True: 0, False: 1.12k]
  ------------------
 4462|      0|        case glslang::EOpInterpolateAtOffset:
  ------------------
  |  Branch (4462:9): [True: 0, False: 1.12k]
  ------------------
 4463|      0|        case glslang::EOpInterpolateAtVertex:
  ------------------
  |  Branch (4463:9): [True: 0, False: 1.12k]
  ------------------
 4464|      0|            if (arg == 0) {
  ------------------
  |  Branch (4464:17): [True: 0, False: 0]
  ------------------
 4465|       |                // If GLSL, use the address of the interpolant argument.
 4466|       |                // If HLSL, use an internal version of OpInterolates that takes
 4467|       |                // the rvalue of the interpolant. A fixup pass in spirv-opt
 4468|       |                // legalization will remove the OpLoad and convert to an lvalue.
 4469|       |                // Had to do this because legalization will only propagate a
 4470|       |                // builtin into an rvalue.
 4471|      0|                lvalue = glslangIntermediate->getSource() != glslang::EShSourceHlsl;
 4472|       |
 4473|       |                // Does it need a swizzle inversion?  If so, evaluation is inverted;
 4474|       |                // operate first on the swizzle base, then apply the swizzle.
 4475|       |                // That is, we transform
 4476|       |                //
 4477|       |                //    interpolate(v.zy)  ->  interpolate(v).zy
 4478|       |                //
 4479|      0|                if (glslangOperands[0]->getAsOperator() &&
  ------------------
  |  Branch (4479:21): [True: 0, False: 0]
  ------------------
 4480|      0|                    glslangOperands[0]->getAsOperator()->getOp() == glslang::EOpVectorSwizzle)
  ------------------
  |  Branch (4480:21): [True: 0, False: 0]
  ------------------
 4481|      0|                    invertedType = convertGlslangToSpvType(
 4482|      0|                        glslangOperands[0]->getAsBinaryNode()->getLeft()->getType());
 4483|      0|            }
 4484|      0|            break;
 4485|      0|        case glslang::EOpAtomicLoad:
  ------------------
  |  Branch (4485:9): [True: 0, False: 1.12k]
  ------------------
 4486|      0|        case glslang::EOpAtomicStore:
  ------------------
  |  Branch (4486:9): [True: 0, False: 1.12k]
  ------------------
 4487|      0|        case glslang::EOpAtomicCounterAdd:
  ------------------
  |  Branch (4487:9): [True: 0, False: 1.12k]
  ------------------
 4488|      0|        case glslang::EOpAtomicCounterSubtract:
  ------------------
  |  Branch (4488:9): [True: 0, False: 1.12k]
  ------------------
 4489|      0|        case glslang::EOpAtomicCounterMin:
  ------------------
  |  Branch (4489:9): [True: 0, False: 1.12k]
  ------------------
 4490|      0|        case glslang::EOpAtomicCounterMax:
  ------------------
  |  Branch (4490:9): [True: 0, False: 1.12k]
  ------------------
 4491|      0|        case glslang::EOpAtomicCounterAnd:
  ------------------
  |  Branch (4491:9): [True: 0, False: 1.12k]
  ------------------
 4492|      0|        case glslang::EOpAtomicCounterOr:
  ------------------
  |  Branch (4492:9): [True: 0, False: 1.12k]
  ------------------
 4493|      0|        case glslang::EOpAtomicCounterXor:
  ------------------
  |  Branch (4493:9): [True: 0, False: 1.12k]
  ------------------
 4494|      0|        case glslang::EOpAtomicCounterExchange:
  ------------------
  |  Branch (4494:9): [True: 0, False: 1.12k]
  ------------------
 4495|      0|        case glslang::EOpAtomicCounterCompSwap:
  ------------------
  |  Branch (4495:9): [True: 0, False: 1.12k]
  ------------------
 4496|      0|            if (arg == 0)
  ------------------
  |  Branch (4496:17): [True: 0, False: 0]
  ------------------
 4497|      0|                lvalue = true;
 4498|      0|            break;
 4499|      0|        case glslang::EOpAddCarry:
  ------------------
  |  Branch (4499:9): [True: 0, False: 1.12k]
  ------------------
 4500|      0|        case glslang::EOpSubBorrow:
  ------------------
  |  Branch (4500:9): [True: 0, False: 1.12k]
  ------------------
 4501|      0|            if (arg == 2)
  ------------------
  |  Branch (4501:17): [True: 0, False: 0]
  ------------------
 4502|      0|                lvalue = true;
 4503|      0|            break;
 4504|      0|        case glslang::EOpUMulExtended:
  ------------------
  |  Branch (4504:9): [True: 0, False: 1.12k]
  ------------------
 4505|      0|        case glslang::EOpIMulExtended:
  ------------------
  |  Branch (4505:9): [True: 0, False: 1.12k]
  ------------------
 4506|      0|            if (arg >= 2)
  ------------------
  |  Branch (4506:17): [True: 0, False: 0]
  ------------------
 4507|      0|                lvalue = true;
 4508|      0|            break;
 4509|      0|        case glslang::EOpCooperativeMatrixLoad:
  ------------------
  |  Branch (4509:9): [True: 0, False: 1.12k]
  ------------------
 4510|      0|        case glslang::EOpCooperativeMatrixLoadNV:
  ------------------
  |  Branch (4510:9): [True: 0, False: 1.12k]
  ------------------
 4511|      0|        case glslang::EOpCooperativeMatrixLoadTensorNV:
  ------------------
  |  Branch (4511:9): [True: 0, False: 1.12k]
  ------------------
 4512|      0|        case glslang::EOpCooperativeVectorLoadNV:
  ------------------
  |  Branch (4512:9): [True: 0, False: 1.12k]
  ------------------
 4513|      0|            if (arg == 0 || arg == 1)
  ------------------
  |  Branch (4513:17): [True: 0, False: 0]
  |  Branch (4513:29): [True: 0, False: 0]
  ------------------
 4514|      0|                lvalue = true;
 4515|      0|            break;
 4516|      0|        case glslang::EOpCooperativeMatrixStore:
  ------------------
  |  Branch (4516:9): [True: 0, False: 1.12k]
  ------------------
 4517|      0|        case glslang::EOpCooperativeMatrixStoreNV:
  ------------------
  |  Branch (4517:9): [True: 0, False: 1.12k]
  ------------------
 4518|      0|        case glslang::EOpCooperativeMatrixStoreTensorNV:
  ------------------
  |  Branch (4518:9): [True: 0, False: 1.12k]
  ------------------
 4519|      0|        case glslang::EOpCooperativeVectorStoreNV:
  ------------------
  |  Branch (4519:9): [True: 0, False: 1.12k]
  ------------------
 4520|      0|            if (arg == 1)
  ------------------
  |  Branch (4520:17): [True: 0, False: 0]
  ------------------
 4521|      0|                lvalue = true;
 4522|      0|            break;
 4523|      0|        case glslang::EOpCooperativeVectorMatMulNV:
  ------------------
  |  Branch (4523:9): [True: 0, False: 1.12k]
  ------------------
 4524|      0|            if (arg == 0 || arg == 3)
  ------------------
  |  Branch (4524:17): [True: 0, False: 0]
  |  Branch (4524:29): [True: 0, False: 0]
  ------------------
 4525|      0|                lvalue = true;
 4526|      0|            break;
 4527|      0|        case glslang::EOpCooperativeVectorMatMulAddNV:
  ------------------
  |  Branch (4527:9): [True: 0, False: 1.12k]
  ------------------
 4528|      0|            if (arg == 0 || arg == 3 || arg == 6)
  ------------------
  |  Branch (4528:17): [True: 0, False: 0]
  |  Branch (4528:29): [True: 0, False: 0]
  |  Branch (4528:41): [True: 0, False: 0]
  ------------------
 4529|      0|                lvalue = true;
 4530|      0|            break;
 4531|      0|        case glslang::EOpCooperativeVectorOuterProductAccumulateNV:
  ------------------
  |  Branch (4531:9): [True: 0, False: 1.12k]
  ------------------
 4532|      0|            if (arg == 2)
  ------------------
  |  Branch (4532:17): [True: 0, False: 0]
  ------------------
 4533|      0|                lvalue = true;
 4534|      0|            break;
 4535|      0|        case glslang::EOpCooperativeVectorReduceSumAccumulateNV:
  ------------------
  |  Branch (4535:9): [True: 0, False: 1.12k]
  ------------------
 4536|      0|            if (arg == 1)
  ------------------
  |  Branch (4536:17): [True: 0, False: 0]
  ------------------
 4537|      0|                lvalue = true;
 4538|      0|            break;
 4539|      0|        case glslang::EOpCooperativeMatrixReduceNV:
  ------------------
  |  Branch (4539:9): [True: 0, False: 1.12k]
  ------------------
 4540|      0|        case glslang::EOpCooperativeMatrixPerElementOpNV:
  ------------------
  |  Branch (4540:9): [True: 0, False: 1.12k]
  ------------------
 4541|      0|        case glslang::EOpCooperativeMatrixTransposeNV:
  ------------------
  |  Branch (4541:9): [True: 0, False: 1.12k]
  ------------------
 4542|      0|            if (arg == 0)
  ------------------
  |  Branch (4542:17): [True: 0, False: 0]
  ------------------
 4543|      0|                lvalue = true;
 4544|      0|            break;
 4545|      0|        case glslang::EOpSpirvInst:
  ------------------
  |  Branch (4545:9): [True: 0, False: 1.12k]
  ------------------
 4546|      0|            if (glslangOperands[arg]->getAsTyped()->getQualifier().isSpirvByReference())
  ------------------
  |  Branch (4546:17): [True: 0, False: 0]
  ------------------
 4547|      0|                lvalue = true;
 4548|      0|            break;
 4549|      0|        case glslang::EOpReorderThreadNV:
  ------------------
  |  Branch (4549:9): [True: 0, False: 1.12k]
  ------------------
 4550|      0|        case glslang::EOpReorderThreadEXT:
  ------------------
  |  Branch (4550:9): [True: 0, False: 1.12k]
  ------------------
 4551|       |            //Three variants of reorderThreadNV, two of them use hitObjectNV
 4552|      0|            if (arg == 0 && glslangOperands.size() != 2)
  ------------------
  |  Branch (4552:17): [True: 0, False: 0]
  |  Branch (4552:29): [True: 0, False: 0]
  ------------------
 4553|      0|                lvalue = true;
 4554|      0|            break;
 4555|      0|        case glslang::EOpRayQueryGetIntersectionTriangleVertexPositionsEXT:
  ------------------
  |  Branch (4555:9): [True: 0, False: 1.12k]
  ------------------
 4556|      0|        case glslang::EOpRayQueryGetIntersectionLSSPositionsNV:
  ------------------
  |  Branch (4556:9): [True: 0, False: 1.12k]
  ------------------
 4557|      0|        case glslang::EOpRayQueryGetIntersectionLSSRadiiNV:
  ------------------
  |  Branch (4557:9): [True: 0, False: 1.12k]
  ------------------
 4558|      0|            if (arg == 0 || arg == 2)
  ------------------
  |  Branch (4558:17): [True: 0, False: 0]
  |  Branch (4558:29): [True: 0, False: 0]
  ------------------
 4559|      0|                lvalue = true;
 4560|      0|            break;
 4561|      0|        case glslang::EOpTensorReadARM:
  ------------------
  |  Branch (4561:9): [True: 0, False: 1.12k]
  ------------------
 4562|      0|            if (arg == 2)
  ------------------
  |  Branch (4562:17): [True: 0, False: 0]
  ------------------
 4563|      0|                lvalue = true;
 4564|      0|            break;
 4565|    790|        default:
  ------------------
  |  Branch (4565:9): [True: 790, False: 330]
  ------------------
 4566|    790|            break;
 4567|  1.12k|        }
 4568|  1.12k|        builder.clearAccessChain();
 4569|  1.12k|        if (invertedType != spv::NoType && arg == 0)
  ------------------
  |  Branch (4569:13): [True: 0, False: 1.12k]
  |  Branch (4569:44): [True: 0, False: 0]
  ------------------
 4570|      0|            glslangOperands[0]->getAsBinaryNode()->getLeft()->traverse(this);
 4571|  1.12k|        else
 4572|  1.12k|            glslangOperands[arg]->traverse(this);
 4573|       |
 4574|  1.12k|        bool isCoopMat = node->getOp() == glslang::EOpCooperativeMatrixLoad ||
  ------------------
  |  Branch (4574:26): [True: 0, False: 1.12k]
  ------------------
 4575|  1.12k|                         node->getOp() == glslang::EOpCooperativeMatrixStore ||
  ------------------
  |  Branch (4575:26): [True: 0, False: 1.12k]
  ------------------
 4576|  1.12k|                         node->getOp() == glslang::EOpCooperativeMatrixLoadNV ||
  ------------------
  |  Branch (4576:26): [True: 0, False: 1.12k]
  ------------------
 4577|  1.12k|                         node->getOp() == glslang::EOpCooperativeMatrixStoreNV ||
  ------------------
  |  Branch (4577:26): [True: 0, False: 1.12k]
  ------------------
 4578|  1.12k|                         node->getOp() == glslang::EOpCooperativeMatrixLoadTensorNV ||
  ------------------
  |  Branch (4578:26): [True: 0, False: 1.12k]
  ------------------
 4579|  1.12k|                         node->getOp() == glslang::EOpCooperativeMatrixStoreTensorNV;
  ------------------
  |  Branch (4579:26): [True: 0, False: 1.12k]
  ------------------
 4580|  1.12k|        bool isCoopVec = node->getOp() == glslang::EOpCooperativeVectorLoadNV ||
  ------------------
  |  Branch (4580:26): [True: 0, False: 1.12k]
  ------------------
 4581|  1.12k|                         node->getOp() == glslang::EOpCooperativeVectorStoreNV;
  ------------------
  |  Branch (4581:26): [True: 0, False: 1.12k]
  ------------------
 4582|  1.12k|        if (isCoopMat || isCoopVec) {
  ------------------
  |  Branch (4582:13): [True: 0, False: 1.12k]
  |  Branch (4582:26): [True: 0, False: 1.12k]
  ------------------
 4583|       |
 4584|      0|            if (arg == 1) {
  ------------------
  |  Branch (4584:17): [True: 0, False: 0]
  ------------------
 4585|      0|                spv::Builder::AccessChain::CoherentFlags coherentFlags {};
 4586|      0|                unsigned int alignment {};
 4587|      0|                if (isCoopMat) {
  ------------------
  |  Branch (4587:21): [True: 0, False: 0]
  ------------------
 4588|       |                    // fold "element" parameter into the access chain
 4589|      0|                    spv::Builder::AccessChain save = builder.getAccessChain();
 4590|      0|                    builder.clearAccessChain();
 4591|      0|                    glslangOperands[2]->traverse(this);
 4592|       |
 4593|      0|                    spv::Id elementId = accessChainLoad(glslangOperands[2]->getAsTyped()->getType());
 4594|       |
 4595|      0|                    builder.setAccessChain(save);
 4596|       |
 4597|       |                    // Point to the first element of the array.
 4598|      0|                    builder.accessChainPush(elementId,
 4599|      0|                        TranslateCoherent(glslangOperands[arg]->getAsTyped()->getType()),
 4600|      0|                                          glslangOperands[arg]->getAsTyped()->getType().getBufferReferenceAlignment());
 4601|      0|                    coherentFlags = builder.getAccessChain().coherentFlags;
 4602|      0|                    alignment = builder.getAccessChain().alignment;
 4603|      0|                } else {
 4604|      0|                    coherentFlags = builder.getAccessChain().coherentFlags;
 4605|      0|                    coherentFlags |= TranslateCoherent(glslangOperands[arg]->getAsTyped()->getType());
 4606|      0|                    alignment = 16;
 4607|      0|                }
 4608|       |
 4609|      0|                spv::MemoryAccessMask memoryAccess = TranslateMemoryAccess(coherentFlags);
 4610|      0|                if (node->getOp() == glslang::EOpCooperativeMatrixLoad ||
  ------------------
  |  Branch (4610:21): [True: 0, False: 0]
  ------------------
 4611|      0|                    node->getOp() == glslang::EOpCooperativeMatrixLoadNV ||
  ------------------
  |  Branch (4611:21): [True: 0, False: 0]
  ------------------
 4612|      0|                    node->getOp() == glslang::EOpCooperativeMatrixLoadTensorNV ||
  ------------------
  |  Branch (4612:21): [True: 0, False: 0]
  ------------------
 4613|      0|                    node->getOp() == glslang::EOpCooperativeVectorLoadNV)
  ------------------
  |  Branch (4613:21): [True: 0, False: 0]
  ------------------
 4614|      0|                    memoryAccess = (memoryAccess & ~spv::MemoryAccessMask::MakePointerAvailableKHR);
 4615|      0|                if (node->getOp() == glslang::EOpCooperativeMatrixStore ||
  ------------------
  |  Branch (4615:21): [True: 0, False: 0]
  ------------------
 4616|      0|                    node->getOp() == glslang::EOpCooperativeMatrixStoreNV ||
  ------------------
  |  Branch (4616:21): [True: 0, False: 0]
  ------------------
 4617|      0|                    node->getOp() == glslang::EOpCooperativeMatrixStoreTensorNV ||
  ------------------
  |  Branch (4617:21): [True: 0, False: 0]
  ------------------
 4618|      0|                    node->getOp() == glslang::EOpCooperativeVectorStoreNV)
  ------------------
  |  Branch (4618:21): [True: 0, False: 0]
  ------------------
 4619|      0|                    memoryAccess = (memoryAccess & ~spv::MemoryAccessMask::MakePointerVisibleKHR);
 4620|      0|                if (builder.getStorageClass(builder.getAccessChain().base) ==
  ------------------
  |  Branch (4620:21): [True: 0, False: 0]
  ------------------
 4621|      0|                    spv::StorageClass::PhysicalStorageBufferEXT) {
 4622|      0|                    memoryAccess = (spv::MemoryAccessMask)(memoryAccess | spv::MemoryAccessMask::Aligned);
 4623|      0|                }
 4624|       |
 4625|      0|                memoryAccessOperands.push_back(spv::IdImmediate(false, memoryAccess));
 4626|       |
 4627|      0|                if (anySet(memoryAccess, spv::MemoryAccessMask::Aligned)) {
  ------------------
  |  Branch (4627:21): [True: 0, False: 0]
  ------------------
 4628|      0|                    memoryAccessOperands.push_back(spv::IdImmediate(false, alignment));
 4629|      0|                }
 4630|       |
 4631|      0|                if (anySet(memoryAccess,
  ------------------
  |  Branch (4631:21): [True: 0, False: 0]
  ------------------
 4632|      0|                    spv::MemoryAccessMask::MakePointerAvailableKHR | spv::MemoryAccessMask::MakePointerVisibleKHR)) {
 4633|      0|                    memoryAccessOperands.push_back(spv::IdImmediate(true,
 4634|      0|                        builder.makeUintConstant(TranslateMemoryScope(coherentFlags))));
 4635|      0|                }
 4636|      0|            } else if (isCoopMat && arg == 2) {
  ------------------
  |  Branch (4636:24): [True: 0, False: 0]
  |  Branch (4636:37): [True: 0, False: 0]
  ------------------
 4637|      0|                continue;
 4638|      0|            }
 4639|      0|        }
 4640|       |
 4641|       |        // for l-values, pass the address, for r-values, pass the value
 4642|  1.12k|        if (lvalue) {
  ------------------
  |  Branch (4642:13): [True: 150, False: 970]
  ------------------
 4643|    150|            if (invertedType == spv::NoType && !builder.isSpvLvalue()) {
  ------------------
  |  Branch (4643:17): [True: 150, False: 0]
  |  Branch (4643:48): [True: 0, False: 150]
  ------------------
 4644|       |                // SPIR-V cannot represent an l-value containing a swizzle that doesn't
 4645|       |                // reduce to a simple access chain.  So, we need a temporary vector to
 4646|       |                // receive the result, and must later swizzle that into the original
 4647|       |                // l-value.
 4648|      0|                complexLvalues.push_back(builder.getAccessChain());
 4649|      0|                complexLvalueTypes.push_back(&glslangOperands[arg]->getAsTyped()->getType());
 4650|      0|                temporaryLvalues.push_back(builder.createVariable(
 4651|      0|                    spv::NoPrecision, spv::StorageClass::Function,
 4652|      0|                    builder.accessChainGetInferredType(), "swizzleTemp"));
 4653|      0|                operands.push_back(temporaryLvalues.back());
 4654|    150|            } else {
 4655|    150|                if (node->getOp() == glslang::EOpTensorReadARM && arg == 2) {
  ------------------
  |  Branch (4655:21): [True: 0, False: 150]
  |  Branch (4655:67): [True: 0, False: 0]
  ------------------
 4656|       |                    // tensorReadARM stores the result after emitting the op, so keep the
 4657|       |                    // original l-value access chain and avoid materializing a transient
 4658|       |                    // pointer that may not preserve descriptor-heap indexing.
 4659|      0|                    tensorReadResultLValue = builder.getAccessChain();
 4660|       |                    // Keep the operand slot so optional tensor operands keep their
 4661|       |                    // existing indices in the later lowering logic.
 4662|      0|                    operands.push_back(spv::NoResult);
 4663|    150|                } else {
 4664|    150|                    operands.push_back(builder.accessChainGetLValue());
 4665|    150|                }
 4666|    150|            }
 4667|    150|            lvalueCoherentFlags = builder.getAccessChain().coherentFlags;
 4668|    150|            lvalueCoherentFlags |= TranslateCoherent(glslangOperands[arg]->getAsTyped()->getType());
 4669|    970|        } else {
 4670|    970|            builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 4671|    970|            glslang::TOperator glslangOp = node->getOp();
 4672|    970|            if (arg == 1 &&
  ------------------
  |  Branch (4672:17): [True: 457, False: 513]
  ------------------
 4673|    457|                (glslangOp == glslang::EOpRayQueryGetIntersectionType ||
  ------------------
  |  Branch (4673:18): [True: 10, False: 447]
  ------------------
 4674|    447|                 glslangOp == glslang::EOpRayQueryGetIntersectionT ||
  ------------------
  |  Branch (4674:18): [True: 10, False: 437]
  ------------------
 4675|    437|                 glslangOp == glslang::EOpRayQueryGetIntersectionInstanceCustomIndex ||
  ------------------
  |  Branch (4675:18): [True: 10, False: 427]
  ------------------
 4676|    427|                 glslangOp == glslang::EOpRayQueryGetIntersectionInstanceId ||
  ------------------
  |  Branch (4676:18): [True: 10, False: 417]
  ------------------
 4677|    417|                 glslangOp == glslang::EOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffset ||
  ------------------
  |  Branch (4677:18): [True: 5, False: 412]
  ------------------
 4678|    412|                 glslangOp == glslang::EOpRayQueryGetIntersectionGeometryIndex ||
  ------------------
  |  Branch (4678:18): [True: 5, False: 407]
  ------------------
 4679|    407|                 glslangOp == glslang::EOpRayQueryGetIntersectionPrimitiveIndex ||
  ------------------
  |  Branch (4679:18): [True: 10, False: 397]
  ------------------
 4680|    397|                 glslangOp == glslang::EOpRayQueryGetIntersectionBarycentrics ||
  ------------------
  |  Branch (4680:18): [True: 10, False: 387]
  ------------------
 4681|    387|                 glslangOp == glslang::EOpRayQueryGetIntersectionFrontFace ||
  ------------------
  |  Branch (4681:18): [True: 10, False: 377]
  ------------------
 4682|    377|                 glslangOp == glslang::EOpRayQueryGetIntersectionObjectRayDirection ||
  ------------------
  |  Branch (4682:18): [True: 10, False: 367]
  ------------------
 4683|    367|                 glslangOp == glslang::EOpRayQueryGetIntersectionObjectRayOrigin ||
  ------------------
  |  Branch (4683:18): [True: 10, False: 357]
  ------------------
 4684|    357|                 glslangOp == glslang::EOpRayQueryGetIntersectionObjectToWorld ||
  ------------------
  |  Branch (4684:18): [True: 10, False: 347]
  ------------------
 4685|    347|                 glslangOp == glslang::EOpRayQueryGetIntersectionWorldToObject ||
  ------------------
  |  Branch (4685:18): [True: 10, False: 337]
  ------------------
 4686|    337|                 glslangOp == glslang::EOpRayQueryGetIntersectionTriangleVertexPositionsEXT ||
  ------------------
  |  Branch (4686:18): [True: 0, False: 337]
  ------------------
 4687|    337|                 glslangOp == glslang::EOpRayQueryGetIntersectionClusterIdNV ||
  ------------------
  |  Branch (4687:18): [True: 0, False: 337]
  ------------------
 4688|    337|                 glslangOp == glslang::EOpRayQueryGetIntersectionSpherePositionNV ||
  ------------------
  |  Branch (4688:18): [True: 0, False: 337]
  ------------------
 4689|    337|                 glslangOp == glslang::EOpRayQueryGetIntersectionSphereRadiusNV ||
  ------------------
  |  Branch (4689:18): [True: 0, False: 337]
  ------------------
 4690|    337|                 glslangOp == glslang::EOpRayQueryGetIntersectionLSSHitValueNV ||
  ------------------
  |  Branch (4690:18): [True: 0, False: 337]
  ------------------
 4691|    337|                 glslangOp == glslang::EOpRayQueryGetIntersectionLSSPositionsNV ||
  ------------------
  |  Branch (4691:18): [True: 0, False: 337]
  ------------------
 4692|    337|                 glslangOp == glslang::EOpRayQueryGetIntersectionLSSRadiiNV ||
  ------------------
  |  Branch (4692:18): [True: 0, False: 337]
  ------------------
 4693|    337|                 glslangOp == glslang::EOpRayQueryIsLSSHitNV ||
  ------------------
  |  Branch (4693:18): [True: 0, False: 337]
  ------------------
 4694|    337|                 glslangOp == glslang::EOpRayQueryIsSphereHitNV
  ------------------
  |  Branch (4694:18): [True: 0, False: 337]
  ------------------
 4695|    457|                    )) {
 4696|    120|                bool cond = glslangOperands[arg]->getAsConstantUnion()->getConstArray()[0].getBConst();
 4697|    120|                operands.push_back(builder.makeIntConstant(cond ? 1 : 0));
  ------------------
  |  Branch (4697:60): [True: 100, False: 20]
  ------------------
 4698|    850|             } else if ((arg == 10 && glslangOp == glslang::EOpTraceKHR) ||
  ------------------
  |  Branch (4698:26): [True: 0, False: 850]
  |  Branch (4698:39): [True: 0, False: 0]
  ------------------
 4699|    850|                        (arg == 11 && glslangOp == glslang::EOpTraceRayMotionNV) ||
  ------------------
  |  Branch (4699:26): [True: 0, False: 850]
  |  Branch (4699:39): [True: 0, False: 0]
  ------------------
 4700|    850|                        (arg == 1  && glslangOp == glslang::EOpExecuteCallableKHR) ||
  ------------------
  |  Branch (4700:26): [True: 337, False: 513]
  |  Branch (4700:39): [True: 0, False: 337]
  ------------------
 4701|    850|                        (arg == 1  && glslangOp == glslang::EOpHitObjectExecuteShaderNV) ||
  ------------------
  |  Branch (4701:26): [True: 337, False: 513]
  |  Branch (4701:39): [True: 0, False: 337]
  ------------------
 4702|    850|                        (arg == 1  && glslangOp == glslang::EOpHitObjectExecuteShaderEXT) ||
  ------------------
  |  Branch (4702:26): [True: 337, False: 513]
  |  Branch (4702:39): [True: 0, False: 337]
  ------------------
 4703|    850|                        (arg == 11 && glslangOp == glslang::EOpHitObjectTraceRayNV) ||
  ------------------
  |  Branch (4703:26): [True: 0, False: 850]
  |  Branch (4703:39): [True: 0, False: 0]
  ------------------
 4704|    850|                        (arg == 11 && glslangOp == glslang::EOpHitObjectTraceRayEXT) ||
  ------------------
  |  Branch (4704:26): [True: 0, False: 850]
  |  Branch (4704:39): [True: 0, False: 0]
  ------------------
 4705|    850|                        (arg == 12 && glslangOp == glslang::EOpHitObjectTraceRayMotionNV) ||
  ------------------
  |  Branch (4705:26): [True: 0, False: 850]
  |  Branch (4705:39): [True: 0, False: 0]
  ------------------
 4706|    850|                        (arg == 12 && glslangOp == glslang::EOpHitObjectTraceRayMotionEXT) ||
  ------------------
  |  Branch (4706:26): [True: 0, False: 850]
  |  Branch (4706:39): [True: 0, False: 0]
  ------------------
 4707|    850|                        (arg == 12 && glslangOp == glslang::EOpHitObjectTraceMotionReorderExecuteEXT && glslangOperands.size() == 13) ||
  ------------------
  |  Branch (4707:26): [True: 0, False: 850]
  |  Branch (4707:39): [True: 0, False: 0]
  |  Branch (4707:105): [True: 0, False: 0]
  ------------------
 4708|    850|                        (arg == 14 && glslangOp == glslang::EOpHitObjectTraceMotionReorderExecuteEXT && glslangOperands.size() == 15) ||
  ------------------
  |  Branch (4708:26): [True: 0, False: 850]
  |  Branch (4708:39): [True: 0, False: 0]
  |  Branch (4708:105): [True: 0, False: 0]
  ------------------
 4709|    850|                        (arg == 11 && glslangOp == glslang::EOpHitObjectTraceReorderExecuteEXT && glslangOperands.size() == 12) ||
  ------------------
  |  Branch (4709:26): [True: 0, False: 850]
  |  Branch (4709:39): [True: 0, False: 0]
  |  Branch (4709:99): [True: 0, False: 0]
  ------------------
 4710|    850|                        (arg == 13 && glslangOp == glslang::EOpHitObjectTraceReorderExecuteEXT && glslangOperands.size() == 14) ||
  ------------------
  |  Branch (4710:26): [True: 0, False: 850]
  |  Branch (4710:39): [True: 0, False: 0]
  |  Branch (4710:99): [True: 0, False: 0]
  ------------------
 4711|    850|                        (arg == 1  && glslangOp == glslang::EOpHitObjectReorderExecuteEXT && glslangOperands.size() == 2) ||
  ------------------
  |  Branch (4711:26): [True: 337, False: 513]
  |  Branch (4711:39): [True: 0, False: 337]
  |  Branch (4711:94): [True: 0, False: 0]
  ------------------
 4712|    850|                        (arg == 3  && glslangOp == glslang::EOpHitObjectReorderExecuteEXT && glslangOperands.size() == 4)) {
  ------------------
  |  Branch (4712:26): [True: 5, False: 845]
  |  Branch (4712:39): [True: 0, False: 5]
  |  Branch (4712:94): [True: 0, False: 0]
  ------------------
 4713|      0|                 const int set = glslangOp == glslang::EOpExecuteCallableKHR ? 1 : 0;
  ------------------
  |  Branch (4713:34): [True: 0, False: 0]
  ------------------
 4714|      0|                 const int location = glslangOperands[arg]->getAsConstantUnion()->getConstArray()[0].getUConst();
 4715|      0|                 auto itNode = locationToSymbol[set].find(location);
 4716|      0|                 if (itNode == locationToSymbol[set].end()) {
  ------------------
  |  Branch (4716:22): [True: 0, False: 0]
  ------------------
 4717|      0|                     logger->missingFunctionality("ray tracing location with no matching payload/callable data declaration");
 4718|      0|                     break;
 4719|      0|                 }
 4720|      0|                 visitSymbol(itNode->second);
 4721|      0|                 spv::Id symId = getSymbolId(itNode->second);
 4722|      0|                 operands.push_back(symId);
 4723|    850|            } else if ((arg == 12 && glslangOp == glslang::EOpHitObjectRecordHitNV) ||
  ------------------
  |  Branch (4723:25): [True: 0, False: 850]
  |  Branch (4723:38): [True: 0, False: 0]
  ------------------
 4724|    850|                       (arg == 13 && glslangOp == glslang::EOpHitObjectRecordHitMotionNV) ||
  ------------------
  |  Branch (4724:25): [True: 0, False: 850]
  |  Branch (4724:38): [True: 0, False: 0]
  ------------------
 4725|    850|                       (arg == 11 && glslangOp == glslang::EOpHitObjectRecordHitWithIndexNV) ||
  ------------------
  |  Branch (4725:25): [True: 0, False: 850]
  |  Branch (4725:38): [True: 0, False: 0]
  ------------------
 4726|    850|                       (arg == 12 && glslangOp == glslang::EOpHitObjectRecordHitWithIndexMotionNV) ||
  ------------------
  |  Branch (4726:25): [True: 0, False: 850]
  |  Branch (4726:38): [True: 0, False: 0]
  ------------------
 4727|    850|                       (arg == 3  && glslangOp == glslang::EOpHitObjectRecordFromQueryEXT) ||
  ------------------
  |  Branch (4727:25): [True: 5, False: 845]
  |  Branch (4727:38): [True: 0, False: 5]
  ------------------
 4728|    850|                       (arg == 1  && glslangOp == glslang::EOpHitObjectGetAttributesEXT) ||
  ------------------
  |  Branch (4728:25): [True: 337, False: 513]
  |  Branch (4728:38): [True: 0, False: 337]
  ------------------
 4729|    850|                       (arg == 1  && glslangOp == glslang::EOpHitObjectGetAttributesNV)) {
  ------------------
  |  Branch (4729:25): [True: 337, False: 513]
  |  Branch (4729:38): [True: 0, False: 337]
  ------------------
 4730|      0|                 const int location = glslangOperands[arg]->getAsConstantUnion()->getConstArray()[0].getUConst();
 4731|      0|                 const int set = 2;
 4732|      0|                 auto itNode = locationToSymbol[set].find(location);
 4733|      0|                 if (itNode == locationToSymbol[set].end()) {
  ------------------
  |  Branch (4733:22): [True: 0, False: 0]
  ------------------
 4734|      0|                     logger->missingFunctionality("ray tracing location with no matching hit object attribute declaration");
 4735|      0|                     break;
 4736|      0|                 }
 4737|      0|                 visitSymbol(itNode->second);
 4738|      0|                 spv::Id symId = getSymbolId(itNode->second);
 4739|      0|                 operands.push_back(symId);
 4740|    850|            } else if (glslangOperands[arg]->getAsTyped()->getQualifier().isSpirvLiteral()) {
  ------------------
  |  Branch (4740:24): [True: 0, False: 850]
  ------------------
 4741|       |                // Will be translated to a literal value, make a placeholder here
 4742|      0|                operands.push_back(spv::NoResult);
 4743|    850|            } else if (glslangOperands[arg]->getAsTyped()->getBasicType() == glslang::EbtFunction) {
  ------------------
  |  Branch (4743:24): [True: 0, False: 850]
  ------------------
 4744|      0|                spv::Function* function = functionMap[glslangOperands[arg]->getAsSymbolNode()->getMangledName().c_str()];
 4745|      0|                assert(function);
 4746|      0|                operands.push_back(function->getId());
 4747|    850|            } else  {
 4748|    850|               operands.push_back(accessChainLoad(glslangOperands[arg]->getAsTyped()->getType()));
 4749|    850|            }
 4750|    970|        }
 4751|  1.12k|    }
 4752|       |
 4753|    469|    builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 4754|    469|    if (node->getOp() == glslang::EOpCooperativeMatrixLoadTensorNV) {
  ------------------
  |  Branch (4754:9): [True: 0, False: 469]
  ------------------
 4755|      0|        std::vector<spv::IdImmediate> idImmOps;
 4756|       |
 4757|      0|        builder.addCapability(spv::Capability::CooperativeMatrixTensorAddressingNV);
 4758|      0|        builder.addExtension(spv::E_SPV_NV_cooperative_matrix2);
 4759|       |
 4760|      0|        spv::Id object = builder.createLoad(operands[0], spv::NoPrecision);
 4761|       |
 4762|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // Pointer
 4763|      0|        idImmOps.push_back(spv::IdImmediate(true, object)); // Object
 4764|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[2])); // tensorLayout
 4765|       |
 4766|      0|        idImmOps.insert(idImmOps.end(), memoryAccessOperands.begin(), memoryAccessOperands.end()); // memoryaccess
 4767|       |
 4768|       |        // initialize tensor operands to zero, then OR in flags based on the operands
 4769|      0|        size_t tensorOpIdx = idImmOps.size();
 4770|      0|        idImmOps.push_back(spv::IdImmediate(false, 0));
 4771|       |
 4772|       |        // Order in `operands` follows GLSL argument order:
 4773|       |        //   [optional tensorView] [optional decodeFunc] [optional decodeVectorFunc]
 4774|       |        // The emitted tensor-addressing operand order is the same (bit order:
 4775|       |        // TensorView 0x1, DecodeFunc 0x2, DecodeVectorFunc 0x4), so we just
 4776|       |        // bin operands by source position.
 4777|      0|        spv::Id viewId = 0;
 4778|      0|        spv::Id scalarFuncId = 0;
 4779|      0|        spv::Id vectorFuncId = 0;
 4780|      0|        uint32_t i = 3;
 4781|      0|        if (i < operands.size() && builder.isTensorView(operands[i]))
  ------------------
  |  Branch (4781:13): [True: 0, False: 0]
  |  Branch (4781:36): [True: 0, False: 0]
  ------------------
 4782|      0|            viewId = operands[i++];
 4783|      0|        if (i < operands.size())
  ------------------
  |  Branch (4783:13): [True: 0, False: 0]
  ------------------
 4784|      0|            scalarFuncId = operands[i++];
 4785|      0|        if (i < operands.size())
  ------------------
  |  Branch (4785:13): [True: 0, False: 0]
  ------------------
 4786|      0|            vectorFuncId = operands[i++];
 4787|      0|        assert(i == operands.size());
 4788|       |
 4789|      0|        if (viewId != 0) {
  ------------------
  |  Branch (4789:13): [True: 0, False: 0]
  ------------------
 4790|      0|            addMask(idImmOps[tensorOpIdx].word, spv::TensorAddressingOperandsMask::TensorView);
 4791|      0|            idImmOps.push_back(spv::IdImmediate(true, viewId));
 4792|      0|        }
 4793|      0|        if (scalarFuncId != 0) {
  ------------------
  |  Branch (4793:13): [True: 0, False: 0]
  ------------------
 4794|      0|            addMask(idImmOps[tensorOpIdx].word, spv::TensorAddressingOperandsMask::DecodeFunc);
 4795|      0|            builder.addCapability(spv::Capability::CooperativeMatrixBlockLoadsNV);
 4796|      0|            idImmOps.push_back(spv::IdImmediate(true, scalarFuncId));
 4797|      0|        }
 4798|      0|        if (vectorFuncId != 0) {
  ------------------
  |  Branch (4798:13): [True: 0, False: 0]
  ------------------
 4799|      0|            addMask(idImmOps[tensorOpIdx].word, spv::TensorAddressingOperandsMask::DecodeVectorFunc);
 4800|      0|            builder.addCapability(spv::Capability::CooperativeMatrixDecodeVectorNV);
 4801|      0|            builder.addExtension(spv::E_SPV_NV_cooperative_matrix_decode_vector);
 4802|      0|            idImmOps.push_back(spv::IdImmediate(true, vectorFuncId));
 4803|      0|        }
 4804|       |
 4805|       |        // get the pointee type
 4806|      0|        spv::Id typeId = builder.getContainedTypeId(builder.getTypeId(operands[0]));
 4807|      0|        assert(builder.isCooperativeMatrixType(typeId));
 4808|       |        // do the op
 4809|      0|        spv::Id result = builder.createOp(spv::Op::OpCooperativeMatrixLoadTensorNV, typeId, idImmOps);
 4810|       |        // store the result to the pointer (out param 'm')
 4811|      0|        builder.createStore(result, operands[0]);
 4812|      0|        result = 0;
 4813|    469|    } else if (node->getOp() == glslang::EOpCooperativeMatrixLoad ||
  ------------------
  |  Branch (4813:16): [True: 0, False: 469]
  ------------------
 4814|    469|               node->getOp() == glslang::EOpCooperativeMatrixLoadNV) {
  ------------------
  |  Branch (4814:16): [True: 0, False: 469]
  ------------------
 4815|      0|        std::vector<spv::IdImmediate> idImmOps;
 4816|       |
 4817|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // buf
 4818|      0|        if (node->getOp() == glslang::EOpCooperativeMatrixLoad) {
  ------------------
  |  Branch (4818:13): [True: 0, False: 0]
  ------------------
 4819|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[3])); // matrixLayout
 4820|      0|            auto layout = (spv::CooperativeMatrixLayout)builder.getConstantScalar(operands[3]);
 4821|      0|            if (layout == spv::CooperativeMatrixLayout::RowBlockedInterleavedARM ||
  ------------------
  |  Branch (4821:17): [True: 0, False: 0]
  ------------------
 4822|      0|                layout == spv::CooperativeMatrixLayout::ColumnBlockedInterleavedARM) {
  ------------------
  |  Branch (4822:17): [True: 0, False: 0]
  ------------------
 4823|      0|                builder.addExtension(spv::E_SPV_ARM_cooperative_matrix_layouts);
 4824|      0|                builder.addCapability(spv::Capability::CooperativeMatrixLayoutsARM);
 4825|      0|            }
 4826|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[2])); // stride
 4827|      0|        } else {
 4828|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[2])); // stride
 4829|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[3])); // colMajor
 4830|      0|        }
 4831|      0|        idImmOps.insert(idImmOps.end(), memoryAccessOperands.begin(), memoryAccessOperands.end());
 4832|       |        // get the pointee type
 4833|      0|        spv::Id typeId = builder.getContainedTypeId(builder.getTypeId(operands[0]));
 4834|      0|        assert(builder.isCooperativeMatrixType(typeId));
 4835|       |        // do the op
 4836|      0|        spv::Id result = node->getOp() == glslang::EOpCooperativeMatrixLoad
  ------------------
  |  Branch (4836:26): [True: 0, False: 0]
  ------------------
 4837|      0|                       ? builder.createOp(spv::Op::OpCooperativeMatrixLoadKHR, typeId, idImmOps)
 4838|      0|                       : builder.createOp(spv::Op::OpCooperativeMatrixLoadNV, typeId, idImmOps);
 4839|       |        // store the result to the pointer (out param 'm')
 4840|      0|        builder.createStore(result, operands[0]);
 4841|      0|        result = 0;
 4842|    469|    } else if (node->getOp() == glslang::EOpCooperativeMatrixStoreTensorNV) {
  ------------------
  |  Branch (4842:16): [True: 0, False: 469]
  ------------------
 4843|      0|        std::vector<spv::IdImmediate> idImmOps;
 4844|       |
 4845|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // buf
 4846|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // object
 4847|       |
 4848|      0|        builder.addCapability(spv::Capability::CooperativeMatrixTensorAddressingNV);
 4849|      0|        builder.addExtension(spv::E_SPV_NV_cooperative_matrix2);
 4850|       |
 4851|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[2])); // tensorLayout
 4852|       |
 4853|      0|        idImmOps.insert(idImmOps.end(), memoryAccessOperands.begin(), memoryAccessOperands.end()); // memoryaccess
 4854|       |
 4855|      0|        if (operands.size() > 3) {
  ------------------
  |  Branch (4855:13): [True: 0, False: 0]
  ------------------
 4856|      0|            idImmOps.push_back(spv::IdImmediate(false, spv::TensorAddressingOperandsMask::TensorView));
 4857|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[3])); // tensorView
 4858|      0|        } else {
 4859|      0|            idImmOps.push_back(spv::IdImmediate(false, 0));
 4860|      0|        }
 4861|       |
 4862|      0|        builder.createNoResultOp(spv::Op::OpCooperativeMatrixStoreTensorNV, idImmOps);
 4863|      0|        result = 0;
 4864|    469|    } else if (node->getOp() == glslang::EOpCooperativeMatrixStore ||
  ------------------
  |  Branch (4864:16): [True: 0, False: 469]
  ------------------
 4865|    469|               node->getOp() == glslang::EOpCooperativeMatrixStoreNV) {
  ------------------
  |  Branch (4865:16): [True: 0, False: 469]
  ------------------
 4866|      0|        std::vector<spv::IdImmediate> idImmOps;
 4867|       |
 4868|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // buf
 4869|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // object
 4870|      0|        if (node->getOp() == glslang::EOpCooperativeMatrixStore) {
  ------------------
  |  Branch (4870:13): [True: 0, False: 0]
  ------------------
 4871|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[3])); // matrixLayout
 4872|      0|            auto layout = (spv::CooperativeMatrixLayout)builder.getConstantScalar(operands[3]);
 4873|      0|            if (layout == spv::CooperativeMatrixLayout::RowBlockedInterleavedARM ||
  ------------------
  |  Branch (4873:17): [True: 0, False: 0]
  ------------------
 4874|      0|                layout == spv::CooperativeMatrixLayout::ColumnBlockedInterleavedARM) {
  ------------------
  |  Branch (4874:17): [True: 0, False: 0]
  ------------------
 4875|      0|                builder.addExtension(spv::E_SPV_ARM_cooperative_matrix_layouts);
 4876|      0|                builder.addCapability(spv::Capability::CooperativeMatrixLayoutsARM);
 4877|      0|            }
 4878|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[2])); // stride
 4879|      0|        } else {
 4880|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[2])); // stride
 4881|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[3])); // colMajor
 4882|      0|        }
 4883|      0|        idImmOps.insert(idImmOps.end(), memoryAccessOperands.begin(), memoryAccessOperands.end());
 4884|       |
 4885|      0|        if (node->getOp() == glslang::EOpCooperativeMatrixStore)
  ------------------
  |  Branch (4885:13): [True: 0, False: 0]
  ------------------
 4886|      0|            builder.createNoResultOp(spv::Op::OpCooperativeMatrixStoreKHR, idImmOps);
 4887|      0|        else
 4888|      0|            builder.createNoResultOp(spv::Op::OpCooperativeMatrixStoreNV, idImmOps);
 4889|      0|        result = 0;
 4890|    469|    } else if (node->getOp() == glslang::EOpRayQueryGetIntersectionTriangleVertexPositionsEXT) {
  ------------------
  |  Branch (4890:16): [True: 0, False: 469]
  ------------------
 4891|      0|        std::vector<spv::IdImmediate> idImmOps;
 4892|       |
 4893|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // q
 4894|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // committed
 4895|       |
 4896|      0|        spv::Id typeId = builder.makeArrayType(builder.makeVectorType(builder.makeFloatType(32), 3),
 4897|      0|                                               builder.makeUintConstant(3), 0);
 4898|       |        // do the op
 4899|       |
 4900|      0|        spv::Op spvOp = spv::Op::OpRayQueryGetIntersectionTriangleVertexPositionsKHR;
 4901|       |
 4902|      0|        spv::Id result = builder.createOp(spvOp, typeId, idImmOps);
 4903|       |        // store the result to the pointer (out param 'm')
 4904|      0|        builder.createStore(result, operands[2]);
 4905|      0|        result = 0;
 4906|    469|    } else if (node->getOp() == glslang::EOpRayQueryGetIntersectionLSSPositionsNV) {
  ------------------
  |  Branch (4906:16): [True: 0, False: 469]
  ------------------
 4907|      0|        std::vector<spv::IdImmediate> idImmOps;
 4908|       |
 4909|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // q
 4910|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // committed
 4911|       |
 4912|      0|        spv::Id typeId = builder.makeArrayType(builder.makeVectorType(builder.makeFloatType(32), 3),
 4913|      0|                                               builder.makeUintConstant(2), 0);
 4914|       |        // do the op
 4915|       |
 4916|      0|        spv::Op spvOp = spv::Op::OpRayQueryGetIntersectionLSSPositionsNV;
 4917|       |
 4918|      0|        spv::Id result = builder.createOp(spvOp, typeId, idImmOps);
 4919|       |        // store the result to the pointer (out param 'm')
 4920|      0|        builder.createStore(result, operands[2]);
 4921|      0|        result = 0;
 4922|    469|    } else if (node->getOp() == glslang::EOpRayQueryGetIntersectionLSSRadiiNV) {
  ------------------
  |  Branch (4922:16): [True: 0, False: 469]
  ------------------
 4923|      0|        std::vector<spv::IdImmediate> idImmOps;
 4924|       |
 4925|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // q
 4926|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // committed
 4927|       |
 4928|      0|        spv::Id typeId = builder.makeArrayType(builder.makeFloatType(32),
 4929|      0|                                               builder.makeUintConstant(2), 0);
 4930|       |        // do the op
 4931|       |
 4932|      0|        spv::Op spvOp = spv::Op::OpRayQueryGetIntersectionLSSRadiiNV;
 4933|       |
 4934|      0|        spv::Id result = builder.createOp(spvOp, typeId, idImmOps);
 4935|       |        // store the result to the pointer (out param 'm')
 4936|      0|        builder.createStore(result, operands[2]);
 4937|      0|        result = 0;
 4938|    469|    } else if (node->getOp() == glslang::EOpHitObjectGetLSSPositionsNV) {
  ------------------
  |  Branch (4938:16): [True: 0, False: 469]
  ------------------
 4939|      0|        std::vector<spv::IdImmediate> idImmOps;
 4940|       |
 4941|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // hitObject
 4942|       |
 4943|      0|        spv::Op spvOp = spv::Op::OpHitObjectGetLSSPositionsNV;
 4944|      0|        spv::Id typeId = builder.makeArrayType(builder.makeVectorType(builder.makeFloatType(32), 3),
 4945|      0|                                               builder.makeUintConstant(2), 0);
 4946|       |
 4947|      0|        spv::Id result = builder.createOp(spvOp, typeId, idImmOps);
 4948|       |        // store the result to the pointer (out param 'm')
 4949|      0|        builder.createStore(result, operands[1]);
 4950|      0|        result = 0;
 4951|    469|    } else if (node->getOp() == glslang::EOpHitObjectGetLSSRadiiNV) {
  ------------------
  |  Branch (4951:16): [True: 0, False: 469]
  ------------------
 4952|      0|        std::vector<spv::IdImmediate> idImmOps;
 4953|       |
 4954|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // hitObject
 4955|       |
 4956|      0|        spv::Op spvOp = spv::Op::OpHitObjectGetLSSRadiiNV;
 4957|      0|        spv::Id typeId = builder.makeArrayType(builder.makeFloatType(32),
 4958|      0|                                               builder.makeUintConstant(2), 0);
 4959|       |
 4960|      0|        spv::Id result = builder.createOp(spvOp, typeId, idImmOps);
 4961|       |        // store the result to the pointer (out param 'm')
 4962|      0|        builder.createStore(result, operands[1]);
 4963|      0|        result = 0;
 4964|    469|    } else if (node->getOp() == glslang::EOpHitObjectGetIntersectionTriangleVertexPositionsEXT) {
  ------------------
  |  Branch (4964:16): [True: 0, False: 469]
  ------------------
 4965|      0|        builder.addExtension(spv::E_SPV_KHR_ray_tracing_position_fetch);
 4966|      0|        builder.addCapability(spv::Capability::RayTracingPositionFetchKHR);
 4967|      0|        std::vector<spv::IdImmediate> idImmOps;
 4968|       |
 4969|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // hitObject
 4970|       |
 4971|      0|        spv::Op spvOp = spv::Op::OpHitObjectGetIntersectionTriangleVertexPositionsEXT;
 4972|      0|        spv::Id typeId = builder.makeArrayType(builder.makeVectorType(builder.makeFloatType(32), 3),
 4973|      0|                                               builder.makeUintConstant(3), 0);
 4974|       |
 4975|      0|        spv::Id result = builder.createOp(spvOp, typeId, idImmOps);
 4976|       |        // store the result to the pointer (out param 'm')
 4977|      0|        builder.createStore(result, operands[1]);
 4978|      0|        result = 0;
 4979|    469|    } else if (node->getOp() == glslang::EOpCooperativeMatrixMulAdd) {
  ------------------
  |  Branch (4979:16): [True: 0, False: 469]
  ------------------
 4980|      0|        auto matrixOperands = spv::CooperativeMatrixOperandsMask::MaskNone;
 4981|       |
 4982|       |        // If the optional operand is present, initialize matrixOperands to that value.
 4983|      0|        if (glslangOperands.size() == 4 && glslangOperands[3]->getAsConstantUnion()) {
  ------------------
  |  Branch (4983:13): [True: 0, False: 0]
  |  Branch (4983:44): [True: 0, False: 0]
  ------------------
 4984|      0|            matrixOperands = (spv::CooperativeMatrixOperandsMask)glslangOperands[3]->getAsConstantUnion()->getConstArray()[0].getIConst();
 4985|      0|        }
 4986|       |
 4987|       |        // Determine Cooperative Matrix Operands bits from the signedness of the types.
 4988|      0|        if (isTypeSignedInt(glslangOperands[0]->getAsTyped()->getBasicType()))
  ------------------
  |  Branch (4988:13): [True: 0, False: 0]
  ------------------
 4989|      0|            addMask(matrixOperands, spv::CooperativeMatrixOperandsMask::MatrixASignedComponentsKHR);
 4990|      0|        if (isTypeSignedInt(glslangOperands[1]->getAsTyped()->getBasicType()))
  ------------------
  |  Branch (4990:13): [True: 0, False: 0]
  ------------------
 4991|      0|            addMask(matrixOperands, spv::CooperativeMatrixOperandsMask::MatrixBSignedComponentsKHR);
 4992|      0|        if (isTypeSignedInt(glslangOperands[2]->getAsTyped()->getBasicType()))
  ------------------
  |  Branch (4992:13): [True: 0, False: 0]
  ------------------
 4993|      0|            addMask(matrixOperands, spv::CooperativeMatrixOperandsMask::MatrixCSignedComponentsKHR);
 4994|      0|        if (isTypeSignedInt(node->getBasicType()))
  ------------------
  |  Branch (4994:13): [True: 0, False: 0]
  ------------------
 4995|      0|            addMask(matrixOperands, spv::CooperativeMatrixOperandsMask::MatrixResultSignedComponentsKHR);
 4996|       |
 4997|      0|        std::vector<spv::IdImmediate> idImmOps;
 4998|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0]));
 4999|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1]));
 5000|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[2]));
 5001|      0|        if (matrixOperands != spv::CooperativeMatrixOperandsMask::MaskNone)
  ------------------
  |  Branch (5001:13): [True: 0, False: 0]
  ------------------
 5002|      0|            idImmOps.push_back(spv::IdImmediate(false, matrixOperands));
 5003|       |
 5004|      0|        result = builder.createOp(spv::Op::OpCooperativeMatrixMulAddKHR, resultType(), idImmOps);
 5005|    469|    } else if (node->getOp() == glslang::EOpCooperativeMatrixReduceNV) {
  ------------------
  |  Branch (5005:16): [True: 0, False: 469]
  ------------------
 5006|      0|        if (glslangIntermediate->usingCoopMatMaint1()) {
  ------------------
  |  Branch (5006:13): [True: 0, False: 0]
  ------------------
 5007|      0|            builder.addCapability(spv::Capability::CooperativeMatrixReductionsEXT);
 5008|      0|            builder.addExtension(spv::E_SPV_EXT_cooperative_matrix_maintenance1);
 5009|      0|        } else {
 5010|      0|            builder.addCapability(spv::Capability::CooperativeMatrixReductionsNV);
 5011|      0|            builder.addExtension(spv::E_SPV_NV_cooperative_matrix2);
 5012|      0|        }
 5013|       |
 5014|      0|        spv::Op opcode = spv::Op::OpCooperativeMatrixReduceNV;
 5015|      0|        unsigned mask = glslangOperands[2]->getAsConstantUnion()->getConstArray()[0].getUConst();
 5016|       |
 5017|      0|        spv::Id typeId = builder.getContainedTypeId(builder.getTypeId(operands[0]));
 5018|      0|        assert(builder.isCooperativeMatrixType(typeId));
 5019|       |
 5020|      0|        result = builder.createCooperativeMatrixReduce(opcode, typeId, operands[1], mask, operands[3]);
 5021|       |        // store the result to the pointer (out param 'm')
 5022|      0|        builder.createStore(result, operands[0]);
 5023|      0|        result = 0;
 5024|    469|    } else if (node->getOp() == glslang::EOpCooperativeMatrixPerElementOpNV) {
  ------------------
  |  Branch (5024:16): [True: 0, False: 469]
  ------------------
 5025|      0|        if (glslangIntermediate->usingCoopMatMaint1()) {
  ------------------
  |  Branch (5025:13): [True: 0, False: 0]
  ------------------
 5026|      0|            builder.addCapability(spv::Capability::CooperativeMatrixPerElementOperationsEXT);
 5027|      0|            builder.addExtension(spv::E_SPV_EXT_cooperative_matrix_maintenance1);
 5028|      0|        } else {
 5029|      0|            builder.addCapability(spv::Capability::CooperativeMatrixPerElementOperationsNV);
 5030|      0|            builder.addExtension(spv::E_SPV_NV_cooperative_matrix2);
 5031|      0|        }
 5032|       |
 5033|      0|        spv::Id typeId = builder.getContainedTypeId(builder.getTypeId(operands[0]));
 5034|      0|        assert(builder.isCooperativeMatrixType(typeId));
 5035|       |
 5036|      0|        result = builder.createCooperativeMatrixPerElementOp(typeId, operands);
 5037|       |        // store the result to the pointer
 5038|      0|        builder.createStore(result, operands[0]);
 5039|      0|        result = 0;
 5040|    469|    } else if (node->getOp() == glslang::EOpCooperativeMatrixTransposeNV) {
  ------------------
  |  Branch (5040:16): [True: 0, False: 469]
  ------------------
 5041|      0|        enableCoopMatConversions();
 5042|       |
 5043|      0|        spv::Id typeId = builder.getContainedTypeId(builder.getTypeId(operands[0]));
 5044|      0|        assert(builder.isCooperativeMatrixType(typeId));
 5045|       |
 5046|      0|        if (glslangIntermediate->usingCoopMatMaint1()) {
  ------------------
  |  Branch (5046:13): [True: 0, False: 0]
  ------------------
 5047|      0|            auto resultBasicType = glslangOperands[0]->getAsTyped()->getBasicType();
 5048|      0|            auto operandBasicType = glslangOperands[1]->getAsTyped()->getBasicType();
 5049|      0|            bool sameUse = glslangOperands[0]->getAsTyped()->getType().sameCoopMatUse(glslangOperands[1]->getAsTyped()->getType());
 5050|       |
 5051|      0|            result = createCoopMatConversion(typeId, operands[1], resultBasicType, operandBasicType, sameUse, true);
 5052|      0|        } else {
 5053|      0|            result = builder.createUnaryOp(spv::Op::OpCooperativeMatrixTransposeNV, typeId, operands[1]);
 5054|      0|        }
 5055|       |        // store the result to the pointer
 5056|      0|        builder.createStore(result, operands[0]);
 5057|      0|        result = 0;
 5058|    469|    } else if (node->getOp() == glslang::EOpBitCastArrayQCOM) {
  ------------------
  |  Branch (5058:16): [True: 0, False: 469]
  ------------------
 5059|      0|        builder.addCapability(spv::Capability::CooperativeMatrixConversionQCOM);
 5060|      0|        builder.addExtension(spv::E_SPV_QCOM_cooperative_matrix_conversion);
 5061|      0|        result = builder.createUnaryOp(spv::Op::OpBitCastArrayQCOM, resultType(), operands[0]);
 5062|    469|    } else if (node->getOp() == glslang::EOpCompositeConstructCoopMatQCOM) {
  ------------------
  |  Branch (5062:16): [True: 0, False: 469]
  ------------------
 5063|      0|        builder.addCapability(spv::Capability::CooperativeMatrixConversionQCOM);
 5064|      0|        builder.addExtension(spv::E_SPV_QCOM_cooperative_matrix_conversion);
 5065|      0|        result = builder.createUnaryOp(spv::Op::OpCompositeConstructCoopMatQCOM, resultType(), operands[0]);
 5066|    469|    } else if (node->getOp() == glslang::EOpCompositeExtractCoopMatQCOM) {
  ------------------
  |  Branch (5066:16): [True: 0, False: 469]
  ------------------
 5067|      0|        builder.addCapability(spv::Capability::CooperativeMatrixConversionQCOM);
 5068|      0|        builder.addExtension(spv::E_SPV_QCOM_cooperative_matrix_conversion);
 5069|      0|        result = builder.createUnaryOp(spv::Op::OpCompositeExtractCoopMatQCOM, resultType(), operands[0]);
 5070|    469|    } else if (node->getOp() == glslang::EOpExtractSubArrayQCOM) {
  ------------------
  |  Branch (5070:16): [True: 0, False: 469]
  ------------------
 5071|      0|        builder.addCapability(spv::Capability::CooperativeMatrixConversionQCOM);
 5072|      0|        builder.addExtension(spv::E_SPV_QCOM_cooperative_matrix_conversion);
 5073|       |
 5074|      0|        std::vector<spv::Id> arguments { operands[0], operands[1] };;
 5075|      0|        result = builder.createOp(spv::Op::OpExtractSubArrayQCOM, resultType(), arguments);
 5076|    469|    } else if (node->getOp() == glslang::EOpCooperativeVectorMatMulNV ||
  ------------------
  |  Branch (5076:16): [True: 0, False: 469]
  ------------------
 5077|    469|               node->getOp() == glslang::EOpCooperativeVectorMatMulAddNV) {
  ------------------
  |  Branch (5077:16): [True: 0, False: 469]
  ------------------
 5078|      0|        auto matrixOperands = spv::CooperativeMatrixOperandsMask::MaskNone;
 5079|       |
 5080|      0|        bool isMulAdd = node->getOp() == glslang::EOpCooperativeVectorMatMulAddNV;
 5081|       |
 5082|       |        // Determine Cooperative Matrix Operands bits from the signedness of the types.
 5083|       |
 5084|      0|        if (isTypeSignedInt(glslangOperands[1]->getAsTyped()->getBasicType()))
  ------------------
  |  Branch (5084:13): [True: 0, False: 0]
  ------------------
 5085|      0|            addMask(matrixOperands, spv::CooperativeMatrixOperandsMask::MatrixBSignedComponentsKHR);
 5086|      0|        if (isTypeSignedInt(glslangOperands[0]->getAsTyped()->getBasicType()))
  ------------------
  |  Branch (5086:13): [True: 0, False: 0]
  ------------------
 5087|      0|            addMask(matrixOperands, spv::CooperativeMatrixOperandsMask::MatrixResultSignedComponentsKHR);
 5088|       |
 5089|      0|        uint32_t opIdx = 1;
 5090|      0|        std::vector<spv::IdImmediate> idImmOps;
 5091|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // Input
 5092|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // InputInterpretation
 5093|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // Matrix
 5094|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // MatrixOffset
 5095|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // MatrixInterpretation
 5096|      0|        if (isMulAdd) {
  ------------------
  |  Branch (5096:13): [True: 0, False: 0]
  ------------------
 5097|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // Bias
 5098|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // BiasOffset
 5099|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // BiasInterpretation
 5100|      0|        }
 5101|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // M
 5102|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // K
 5103|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // MemoryLayout
 5104|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // Transpose
 5105|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[opIdx++])); // MatrixStride
 5106|      0|        if (matrixOperands != spv::CooperativeMatrixOperandsMask::MaskNone)
  ------------------
  |  Branch (5106:13): [True: 0, False: 0]
  ------------------
 5107|      0|            idImmOps.push_back(spv::IdImmediate(false, matrixOperands));  // Cooperative Matrix Operands
 5108|       |
 5109|       |        // get the pointee type
 5110|      0|        spv::Id typeId = builder.getContainedTypeId(builder.getTypeId(operands[0]));
 5111|      0|        assert(builder.isCooperativeVectorType(typeId));
 5112|       |        // do the op
 5113|      0|        spv::Id result = builder.createOp(isMulAdd ? spv::Op::OpCooperativeVectorMatrixMulAddNV : spv::Op::OpCooperativeVectorMatrixMulNV, typeId, idImmOps);
  ------------------
  |  Branch (5113:43): [True: 0, False: 0]
  ------------------
 5114|       |        // store the result to the pointer (out param 'res')
 5115|      0|        builder.createStore(result, operands[0]);
 5116|      0|        result = 0;
 5117|    469|    } else if (node->getOp() == glslang::EOpCooperativeVectorLoadNV) {
  ------------------
  |  Branch (5117:16): [True: 0, False: 469]
  ------------------
 5118|      0|        std::vector<spv::IdImmediate> idImmOps;
 5119|       |
 5120|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // buf
 5121|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[2])); // offset
 5122|      0|        idImmOps.insert(idImmOps.end(), memoryAccessOperands.begin(), memoryAccessOperands.end());
 5123|       |        // get the pointee type
 5124|      0|        spv::Id typeId = builder.getContainedTypeId(builder.getTypeId(operands[0]));
 5125|      0|        assert(builder.isCooperativeVectorType(typeId));
 5126|       |        // do the op
 5127|      0|        spv::Id result = builder.createOp(spv::Op::OpCooperativeVectorLoadNV, typeId, idImmOps);
 5128|       |        // store the result to the pointer (out param 'v')
 5129|      0|        builder.createStore(result, operands[0]);
 5130|      0|        result = 0;
 5131|    469|    } else if (node->getOp() == glslang::EOpCooperativeVectorStoreNV) {
  ------------------
  |  Branch (5131:16): [True: 0, False: 469]
  ------------------
 5132|      0|        std::vector<spv::IdImmediate> idImmOps;
 5133|       |
 5134|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // buf
 5135|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[2])); // offset
 5136|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // object
 5137|      0|        idImmOps.insert(idImmOps.end(), memoryAccessOperands.begin(), memoryAccessOperands.end());
 5138|      0|        builder.createNoResultOp(spv::Op::OpCooperativeVectorStoreNV, idImmOps);
 5139|      0|        result = 0;
 5140|    469|    } else if (node->getOp() == glslang::EOpCooperativeVectorOuterProductAccumulateNV) {
  ------------------
  |  Branch (5140:16): [True: 0, False: 469]
  ------------------
 5141|      0|        builder.addCapability(spv::Capability::CooperativeVectorTrainingNV);
 5142|      0|        builder.addExtension(spv::E_SPV_NV_cooperative_vector);
 5143|       |
 5144|      0|        std::vector<spv::IdImmediate> idImmOps;
 5145|       |
 5146|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[2])); // Matrix
 5147|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[3])); // Offset
 5148|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // A
 5149|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // B
 5150|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[5])); // MemoryLayout
 5151|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[6])); // MatrixInterpretation
 5152|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[4])); // Stride
 5153|      0|        builder.createNoResultOp(spv::Op::OpCooperativeVectorOuterProductAccumulateNV, idImmOps);
 5154|      0|        result = 0;
 5155|    469|    } else if (node->getOp() == glslang::EOpCooperativeVectorReduceSumAccumulateNV) {
  ------------------
  |  Branch (5155:16): [True: 0, False: 469]
  ------------------
 5156|      0|        builder.addCapability(spv::Capability::CooperativeVectorTrainingNV);
 5157|      0|        builder.addExtension(spv::E_SPV_NV_cooperative_vector);
 5158|       |
 5159|      0|        std::vector<spv::IdImmediate> idImmOps;
 5160|       |
 5161|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // Buf
 5162|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[2])); // Offset
 5163|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // A
 5164|      0|        builder.createNoResultOp(spv::Op::OpCooperativeVectorReduceSumAccumulateNV, idImmOps);
 5165|      0|        result = 0;
 5166|    469|    } else if (node->getOp() == glslang::EOpTensorReadARM ||
  ------------------
  |  Branch (5166:16): [True: 0, False: 469]
  ------------------
 5167|    469|               node->getOp() == glslang::EOpTensorWriteARM) {
  ------------------
  |  Branch (5167:16): [True: 0, False: 469]
  ------------------
 5168|      0|        const bool isWrite = node->getOp() == glslang::EOpTensorWriteARM;
 5169|      0|        const unsigned int tensorMinOperandCount = 3;
 5170|      0|        assert(operands.size() >= tensorMinOperandCount);
 5171|      0|        std::vector<spv::IdImmediate> idImmOps;
 5172|       |
 5173|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[0])); // tensor
 5174|      0|        idImmOps.push_back(spv::IdImmediate(true, operands[1])); // coords
 5175|      0|        if (isWrite) {
  ------------------
  |  Branch (5175:13): [True: 0, False: 0]
  ------------------
 5176|      0|            idImmOps.push_back(spv::IdImmediate(true, operands[2])); // value
 5177|      0|        }
 5178|       |
 5179|       |        // Analyze the tensor operands
 5180|      0|        spv::IdImmediate tensorOperands = { false, uint32_t(spv::TensorOperandsMask::MaskNone) };
 5181|      0|        bool pushExtraArg = false;
 5182|      0|        if (operands.size() > tensorMinOperandCount) {
  ------------------
  |  Branch (5182:13): [True: 0, False: 0]
  ------------------
 5183|      0|            auto enumVal = builder.getConstantScalar(operands[tensorMinOperandCount]);
 5184|       |
 5185|      0|            if (enumVal & uint32_t(spv::TensorOperandsMask::NontemporalARM)) {
  ------------------
  |  Branch (5185:17): [True: 0, False: 0]
  ------------------
 5186|      0|                tensorOperands.word |= uint32_t(spv::TensorOperandsMask::NontemporalARM);
 5187|      0|            }
 5188|      0|            if (enumVal & uint32_t(spv::TensorOperandsMask::OutOfBoundsValueARM)) {
  ------------------
  |  Branch (5188:17): [True: 0, False: 0]
  ------------------
 5189|      0|                tensorOperands.word |= uint32_t(spv::TensorOperandsMask::OutOfBoundsValueARM);
 5190|      0|                assert(operands.size() >= tensorMinOperandCount + 2 &&
 5191|      0|                    "TensorOperandsOutOfBoundsValueMask requires an additional value");
 5192|      0|                pushExtraArg = true;
 5193|      0|            }
 5194|      0|        }
 5195|       |
 5196|       |        // Append optional tensor operands if the mask was non-zero.
 5197|      0|        if (tensorOperands.word) {
  ------------------
  |  Branch (5197:13): [True: 0, False: 0]
  ------------------
 5198|      0|            idImmOps.push_back(tensorOperands);
 5199|      0|            if (pushExtraArg)
  ------------------
  |  Branch (5199:17): [True: 0, False: 0]
  ------------------
 5200|      0|                idImmOps.push_back(spv::IdImmediate(true, operands[tensorMinOperandCount + 1]));
 5201|      0|        }
 5202|       |
 5203|      0|        if (isWrite) {
  ------------------
  |  Branch (5203:13): [True: 0, False: 0]
  ------------------
 5204|      0|            builder.createNoResultOp(spv::Op::OpTensorWriteARM, idImmOps);
 5205|      0|            result = 0;
 5206|      0|        } else {
 5207|       |            // Use the result argument type as the OpTensorReadARM result type.
 5208|      0|            const glslang::TType &resArgType = glslangOperands[2]->getAsTyped()->getType();
 5209|      0|            spv::Id retType = convertGlslangToSpvType(resArgType);
 5210|      0|            result = builder.createOp(spv::Op::OpTensorReadARM, retType, idImmOps);
 5211|       |            // Store the result to the result argument.
 5212|      0|            assert(tensorReadResultLValue.base != spv::NoResult);
 5213|      0|            builder.setAccessChain(tensorReadResultLValue);
 5214|      0|            accessChainStore(resArgType, result);
 5215|      0|        }
 5216|    469|    } else if (node->getOp() == glslang::EOpTensorSizeARM) {
  ------------------
  |  Branch (5216:16): [True: 0, False: 469]
  ------------------
 5217|       |        // Expected operands are (tensor, dimension)
 5218|      0|        assert(operands.size() == 2);
 5219|       |
 5220|      0|        spv::Id tensorOp = operands[0];
 5221|      0|        spv::Id dimOp = operands[1];
 5222|      0|        assert(builder.isTensorTypeARM(builder.getTypeId(tensorOp)) && "operand #0 must be a tensor");
 5223|       |
 5224|      0|        std::vector<spv::IdImmediate> idImmOps;
 5225|      0|        idImmOps.push_back(spv::IdImmediate(true, tensorOp));
 5226|      0|        idImmOps.push_back(spv::IdImmediate(true, dimOp));
 5227|      0|        result = builder.createOp(spv::Op::OpTensorQuerySizeARM, resultType(), idImmOps);
 5228|    469|    } else if (atomic) {
  ------------------
  |  Branch (5228:16): [True: 8, False: 461]
  ------------------
 5229|       |        // Handle all atomics
 5230|      8|        glslang::TBasicType typeProxy = (node->getOp() == glslang::EOpAtomicStore)
  ------------------
  |  Branch (5230:41): [True: 0, False: 8]
  ------------------
 5231|      8|            ? node->getSequence()[0]->getAsTyped()->getBasicType() : node->getBasicType();
 5232|      8|        result = createAtomicOperation(node->getOp(), precision, resultType(), operands, typeProxy,
 5233|      8|            lvalueCoherentFlags, node->getType());
 5234|    461|    } else if (node->getOp() == glslang::EOpSpirvInst) {
  ------------------
  |  Branch (5234:16): [True: 0, False: 461]
  ------------------
 5235|      0|        const auto& spirvInst = node->getSpirvInstruction();
 5236|      0|        std::vector<spv::IdImmediate> idImmOps;
 5237|      0|        for (unsigned int i = 0; i < glslangOperands.size(); ++i) {
  ------------------
  |  Branch (5237:34): [True: 0, False: 0]
  ------------------
 5238|      0|            if (glslangOperands[i]->getAsTyped()->getQualifier().isSpirvLiteral()) {
  ------------------
  |  Branch (5238:17): [True: 0, False: 0]
  ------------------
 5239|       |                // Translate the constant to a literal value
 5240|      0|                std::vector<unsigned> literals;
 5241|      0|                glslang::TVector<const glslang::TIntermConstantUnion*> constants;
 5242|      0|                constants.push_back(glslangOperands[i]->getAsConstantUnion());
 5243|      0|                TranslateLiterals(constants, literals);
 5244|      0|                idImmOps.push_back({false, literals[0]});
 5245|      0|            } else
 5246|      0|                idImmOps.push_back({true, operands[i]});
 5247|      0|        }
 5248|       |
 5249|      0|        if (spirvInst.set == "") {
  ------------------
  |  Branch (5249:13): [True: 0, False: 0]
  ------------------
 5250|      0|            if (node->getBasicType() == glslang::EbtVoid)
  ------------------
  |  Branch (5250:17): [True: 0, False: 0]
  ------------------
 5251|      0|                builder.createNoResultOp(static_cast<spv::Op>(spirvInst.id), idImmOps);
 5252|      0|            else
 5253|      0|                result = builder.createOp(static_cast<spv::Op>(spirvInst.id), resultType(), idImmOps);
 5254|      0|        } else {
 5255|      0|            result = builder.createBuiltinCall(
 5256|      0|                resultType(), spirvInst.set == "GLSL.std.450" ? stdBuiltins : getExtBuiltins(spirvInst.set.c_str()),
  ------------------
  |  Branch (5256:31): [True: 0, False: 0]
  ------------------
 5257|      0|                spirvInst.id, idImmOps);
 5258|      0|        }
 5259|      0|        noReturnValue = node->getBasicType() == glslang::EbtVoid;
 5260|    461|    } else if (node->getOp() == glslang::EOpDebugPrintf) {
  ------------------
  |  Branch (5260:16): [True: 0, False: 461]
  ------------------
 5261|      0|        if (!nonSemanticDebugPrintf) {
  ------------------
  |  Branch (5261:13): [True: 0, False: 0]
  ------------------
 5262|      0|            nonSemanticDebugPrintf = builder.import("NonSemantic.DebugPrintf");
 5263|      0|        }
 5264|      0|        result = builder.createBuiltinCall(builder.makeVoidType(), nonSemanticDebugPrintf, spv::NonSemanticDebugPrintfDebugPrintf, operands);
 5265|      0|        builder.addExtension(spv::E_SPV_KHR_non_semantic_info);
 5266|    461|    } else {
 5267|       |        // Pass through to generic operations.
 5268|    461|        switch (glslangOperands.size()) {
 5269|      0|        case 0:
  ------------------
  |  Branch (5269:9): [True: 0, False: 461]
  ------------------
 5270|      0|            result = createNoArgOperation(node->getOp(), precision, resultType());
 5271|      0|            break;
 5272|      0|        case 1:
  ------------------
  |  Branch (5272:9): [True: 0, False: 461]
  ------------------
 5273|      0|            {
 5274|      0|                OpDecorations decorations = { precision,
 5275|      0|                                              TranslateNoContractionDecoration(node->getType().getQualifier()),
 5276|      0|                                              TranslateNonUniformDecoration(node->getType().getQualifier()) };
 5277|      0|                result = createUnaryOperation(
 5278|      0|                    node->getOp(), decorations,
 5279|      0|                    resultType(), operands.front(),
 5280|      0|                    glslangOperands[0]->getAsTyped()->getBasicType(), lvalueCoherentFlags, node->getType());
 5281|      0|            }
 5282|      0|            break;
 5283|    461|        default:
  ------------------
  |  Branch (5283:9): [True: 461, False: 0]
  ------------------
 5284|    461|            result = createMiscOperation(node->getOp(), precision, resultType(), operands, node->getBasicType());
 5285|    461|            break;
 5286|    461|        }
 5287|       |
 5288|    461|        if (invertedType != spv::NoResult)
  ------------------
  |  Branch (5288:13): [True: 0, False: 461]
  ------------------
 5289|      0|            result = createInvertedSwizzle(precision, *glslangOperands[0]->getAsBinaryNode(), result);
 5290|       |
 5291|    461|        for (unsigned int i = 0; i < temporaryLvalues.size(); ++i) {
  ------------------
  |  Branch (5291:34): [True: 0, False: 461]
  ------------------
 5292|      0|            builder.setAccessChain(complexLvalues[i]);
 5293|      0|            accessChainStore(*complexLvalueTypes[i], builder.createLoad(temporaryLvalues[i], spv::NoPrecision));
 5294|      0|        }
 5295|    461|    }
 5296|       |
 5297|    469|    if (noReturnValue)
  ------------------
  |  Branch (5297:9): [True: 10, False: 459]
  ------------------
 5298|     10|        return false;
 5299|       |
 5300|    459|    if (! result) {
  ------------------
  |  Branch (5300:9): [True: 0, False: 459]
  ------------------
 5301|      0|        logger->missingFunctionality("unknown glslang aggregate");
 5302|      0|        return true;  // pick up a child as a placeholder operand
 5303|    459|    } else {
 5304|    459|        builder.clearAccessChain();
 5305|    459|        builder.setAccessChainRValue(result);
 5306|    459|        return false;
 5307|    459|    }
 5308|    459|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser13makeFunctionsERKN7glslang7TVectorIP11TIntermNodeEE:
 7877|     42|{
 7878|     42|    const auto getParamDecorations = [&](std::vector<spv::Decoration>& decorations, const glslang::TType& type,
 7879|     42|        bool useVulkanMemoryModel) {
 7880|     42|        spv::Decoration paramPrecision = TranslatePrecisionDecoration(type);
 7881|     42|        if (paramPrecision != spv::NoPrecision)
 7882|     42|            decorations.push_back(paramPrecision);
 7883|     42|        TranslateMemoryDecoration(type.getQualifier(), decorations, useVulkanMemoryModel);
 7884|     42|        if (type.isReference()) {
 7885|       |            // Original and non-writable params pass the pointer directly and
 7886|       |            // use restrict/aliased, others are stored to a pointer in Function
 7887|       |            // memory and use RestrictPointer/AliasedPointer.
 7888|     42|            if (originalParam(type.getQualifier().storage, type, false) ||
 7889|     42|                !writableParam(type.getQualifier().storage)) {
 7890|       |                // TranslateMemoryDecoration added Restrict decoration already.
 7891|     42|                if (!type.getQualifier().isRestrict()) {
 7892|     42|                    decorations.push_back(spv::Decoration::Aliased);
 7893|     42|                }
 7894|     42|            } else {
 7895|     42|                decorations.push_back(type.getQualifier().isRestrict() ? spv::Decoration::RestrictPointerEXT :
 7896|     42|                                                                         spv::Decoration::AliasedPointerEXT);
 7897|     42|            }
 7898|     42|        }
 7899|     42|    };
 7900|       |
 7901|    293|    for (int f = 0; f < (int)glslFunctions.size(); ++f) {
  ------------------
  |  Branch (7901:21): [True: 251, False: 42]
  ------------------
 7902|    251|        glslang::TIntermAggregate* glslFunction = glslFunctions[f]->getAsAggregate();
 7903|    251|        if (! glslFunction || glslFunction->getOp() != glslang::EOpFunction)
  ------------------
  |  Branch (7903:13): [True: 0, False: 251]
  |  Branch (7903:31): [True: 52, False: 199]
  ------------------
 7904|     52|            continue;
 7905|       |
 7906|    199|        builder.setDebugSourceLocation(glslFunction->getLoc().line, glslFunction->getLoc().getFilename());
 7907|       |
 7908|    199|        if (isShaderEntryPoint(glslFunction)) {
  ------------------
  |  Branch (7908:13): [True: 42, False: 157]
  ------------------
 7909|     42|            shaderEntry->setFunctionControl(TranslateFunctionControl(glslFunction->getFunctionControl()));
 7910|       |            // For HLSL, the entry function is actually a compiler generated function to resolve the difference of
 7911|       |            // entry function signature between HLSL and SPIR-V. So we don't emit debug information for that.
 7912|     42|            if (glslangIntermediate->getSource() != glslang::EShSourceHlsl) {
  ------------------
  |  Branch (7912:17): [True: 42, False: 0]
  ------------------
 7913|     42|                builder.setupFunctionDebugInfo(shaderEntry, glslangIntermediate->getEntryPointMangledName().c_str(),
 7914|     42|                                               std::vector<spv::Id>(), // main function has no param
 7915|     42|                                               std::vector<char const*>());
 7916|     42|                if (options.emitNonSemanticShaderDebugInfo &&
  ------------------
  |  Branch (7916:21): [True: 0, False: 42]
  ------------------
 7917|      0|                    options.compilerSignature != nullptr && options.commandLineArguments != nullptr) {
  ------------------
  |  Branch (7917:21): [True: 0, False: 0]
  |  Branch (7917:61): [True: 0, False: 0]
  ------------------
 7918|      0|                    builder.makeDebugEntryPoint(shaderEntry, options.compilerSignature, options.commandLineArguments,
 7919|      0|                                                options.currentWorkingDirectory);
 7920|      0|                }
 7921|     42|            }
 7922|     42|            continue;
 7923|     42|        }
 7924|       |        // We're on a user function.  Set up the basic interface for the function now,
 7925|       |        // so that it's available to call.  Translating the body will happen later.
 7926|       |        //
 7927|       |        // Typically (except for a "const in" parameter), an address will be passed to the
 7928|       |        // function.  What it is an address of varies:
 7929|       |        //
 7930|       |        // - "in" parameters not marked as "const" can be written to without modifying the calling
 7931|       |        //   argument so that write needs to be to a copy, hence the address of a copy works.
 7932|       |        //
 7933|       |        // - "const in" parameters can just be the r-value, as no writes need occur.
 7934|       |        //
 7935|       |        // - "out" and "inout" arguments can't be done as pointers to the calling argument, because
 7936|       |        //   GLSL has copy-in/copy-out semantics.  They can be handled though with a pointer to a copy.
 7937|       |
 7938|    157|        std::vector<spv::Id> paramTypes;
 7939|    157|        std::vector<char const*> paramNames;
 7940|    157|        std::vector<std::vector<spv::Decoration>> paramDecorations; // list of decorations per parameter
 7941|    157|        glslang::TIntermSequence& parameters = glslFunction->getSequence()[0]->getAsAggregate()->getSequence();
 7942|       |
 7943|    157|#ifdef ENABLE_HLSL
 7944|    157|        bool implicitThis = (int)parameters.size() > 0 && parameters[0]->getAsSymbolNode()->getName() ==
  ------------------
  |  Branch (7944:29): [True: 7, False: 150]
  |  Branch (7944:59): [True: 0, False: 7]
  ------------------
 7945|      7|                                                          glslangIntermediate->implicitThisName;
 7946|       |#else
 7947|       |        bool implicitThis = false;
 7948|       |#endif
 7949|       |
 7950|    157|        paramDecorations.resize(parameters.size());
 7951|    171|        for (int p = 0; p < (int)parameters.size(); ++p) {
  ------------------
  |  Branch (7951:25): [True: 14, False: 157]
  ------------------
 7952|     14|            const glslang::TType& paramType = parameters[p]->getAsTyped()->getType();
 7953|     14|            spv::Id typeId = convertGlslangToSpvType(paramType);
 7954|     14|            if (originalParam(paramType.getQualifier().storage, paramType, implicitThis && p == 0))
  ------------------
  |  Branch (7954:17): [True: 0, False: 14]
  |  Branch (7954:76): [True: 0, False: 14]
  |  Branch (7954:92): [True: 0, False: 0]
  ------------------
 7955|      0|                typeId = builder.makePointer(TranslateStorageClass(paramType), typeId);
 7956|     14|            else if (writableParam(paramType.getQualifier().storage))
  ------------------
  |  Branch (7956:22): [True: 14, False: 0]
  ------------------
 7957|     14|                typeId = builder.makePointer(spv::StorageClass::Function, typeId);
 7958|      0|            else
 7959|      0|                rValueParameters.insert(parameters[p]->getAsSymbolNode()->getId());
 7960|     14|            getParamDecorations(paramDecorations[p], paramType, glslangIntermediate->usingVulkanMemoryModel());
 7961|     14|            paramTypes.push_back(typeId);
 7962|     14|        }
 7963|       |
 7964|    157|        for (auto const parameter:parameters) {
  ------------------
  |  Branch (7964:34): [True: 14, False: 157]
  ------------------
 7965|     14|            paramNames.push_back(parameter->getAsSymbolNode()->getName().c_str());
 7966|     14|        }
 7967|       |
 7968|    157|        spv::Block* functionBlock;
 7969|    157|        spv::Function* function = builder.makeFunctionEntry(
 7970|    157|            TranslatePrecisionDecoration(glslFunction->getType()), convertGlslangToSpvType(glslFunction->getType()),
 7971|    157|            glslFunction->getName().c_str(), convertGlslangLinkageToSpv(glslFunction->getLinkType()), paramTypes,
 7972|    157|            paramDecorations, &functionBlock);
 7973|    157|        function->setFunctionControl(TranslateFunctionControl(glslFunction->getFunctionControl()));
 7974|    157|        builder.setupFunctionDebugInfo(function, glslFunction->getName().c_str(), paramTypes, paramNames);
 7975|    157|        if (implicitThis)
  ------------------
  |  Branch (7975:13): [True: 0, False: 157]
  ------------------
 7976|      0|            function->setImplicitThis();
 7977|       |
 7978|       |        // Track function to emit/call later
 7979|    157|        functionMap[glslFunction->getName().c_str()] = function;
 7980|       |
 7981|       |        // Set the parameter id's
 7982|    171|        for (int p = 0; p < (int)parameters.size(); ++p) {
  ------------------
  |  Branch (7982:25): [True: 14, False: 157]
  ------------------
 7983|     14|            symbolValues[parameters[p]->getAsSymbolNode()->getId()] = function->getParamId(p);
 7984|       |            // give a name too
 7985|     14|            builder.addName(function->getParamId(p), parameters[p]->getAsSymbolNode()->getName().c_str());
 7986|       |
 7987|     14|            const glslang::TType& paramType = parameters[p]->getAsTyped()->getType();
 7988|     14|            if (paramType.contains8BitInt())
  ------------------
  |  Branch (7988:17): [True: 0, False: 14]
  ------------------
 7989|      0|                builder.addCapability(spv::Capability::Int8);
 7990|     14|            if (paramType.contains16BitInt())
  ------------------
  |  Branch (7990:17): [True: 0, False: 14]
  ------------------
 7991|      0|                builder.addCapability(spv::Capability::Int16);
 7992|     14|            if (paramType.contains16BitFloat())
  ------------------
  |  Branch (7992:17): [True: 1, False: 13]
  ------------------
 7993|      1|                builder.addCapability(spv::Capability::Float16);
 7994|     14|        }
 7995|    157|    }
 7996|     42|}
GlslangToSpv.cpp:_ZNK12_GLOBAL__N_122TGlslangToSpvTraverser24TranslateFunctionControlEj:
 1447|    199|{
 1448|    199|    spv::FunctionControlMask control = spv::FunctionControlMask::MaskNone;
 1449|       |
 1450|    199|    if (functionControl & glslang::EfcInline)
  ------------------
  |  Branch (1450:9): [True: 0, False: 199]
  ------------------
 1451|      0|        control = control | spv::FunctionControlMask::Inline;
 1452|    199|    if (functionControl & glslang::EfcDontInline)
  ------------------
  |  Branch (1452:9): [True: 0, False: 199]
  ------------------
 1453|      0|        control = control | spv::FunctionControlMask::DontInline;
 1454|       |
 1455|    199|    return control;
 1456|    199|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser13originalParamEN7glslang17TStorageQualifierERKNS1_5TTypeEb:
 7865|     68|{
 7866|     68|    if (implicitThisParam)                                                                     // implicit this
  ------------------
  |  Branch (7866:9): [True: 0, False: 68]
  ------------------
 7867|      0|        return true;
 7868|     68|    if (glslangIntermediate->getSource() == glslang::EShSourceHlsl)
  ------------------
  |  Branch (7868:9): [True: 0, False: 68]
  ------------------
 7869|      0|        return paramType.getBasicType() == glslang::EbtBlock;
 7870|     68|    return (paramType.containsOpaque() && !glslangIntermediate->getBindlessMode()) ||       // sampler, etc.
  ------------------
  |  Branch (7870:13): [True: 0, False: 68]
  |  Branch (7870:43): [True: 0, False: 0]
  ------------------
 7871|     68|           paramType.getQualifier().isSpirvByReference() ||                                    // spirv_by_reference
  ------------------
  |  Branch (7871:12): [True: 0, False: 68]
  ------------------
 7872|     68|           (paramType.getBasicType() == glslang::EbtBlock && qualifier == glslang::EvqBuffer); // SSBO
  ------------------
  |  Branch (7872:13): [True: 0, False: 68]
  |  Branch (7872:62): [True: 0, False: 0]
  ------------------
 7873|     68|}
GlslangToSpv.cpp:_ZNK12_GLOBAL__N_122TGlslangToSpvTraverser13writableParamEN7glslang17TStorageQualifierE:
 7852|     68|{
 7853|     68|    assert(qualifier == glslang::EvqIn ||
 7854|     68|           qualifier == glslang::EvqOut ||
 7855|     68|           qualifier == glslang::EvqInOut ||
 7856|     68|           qualifier == glslang::EvqUniform ||
 7857|     68|           qualifier == glslang::EvqConstReadOnly);
 7858|     68|    return qualifier != glslang::EvqConstReadOnly &&
  ------------------
  |  Branch (7858:12): [True: 68, False: 0]
  ------------------
 7859|     68|           qualifier != glslang::EvqUniform;
  ------------------
  |  Branch (7859:12): [True: 68, False: 0]
  ------------------
 7860|     68|}
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser13makeFunctionsERKN7glslang7TVectorIP11TIntermNodeEEENK3$_0clERNSt3__16vectorIN3spv10DecorationENS9_9allocatorISC_EEEERKNS1_5TTypeEb:
 7879|     14|        bool useVulkanMemoryModel) {
 7880|     14|        spv::Decoration paramPrecision = TranslatePrecisionDecoration(type);
 7881|     14|        if (paramPrecision != spv::NoPrecision)
  ------------------
  |  Branch (7881:13): [True: 0, False: 14]
  ------------------
 7882|      0|            decorations.push_back(paramPrecision);
 7883|     14|        TranslateMemoryDecoration(type.getQualifier(), decorations, useVulkanMemoryModel);
 7884|     14|        if (type.isReference()) {
  ------------------
  |  Branch (7884:13): [True: 0, False: 14]
  ------------------
 7885|       |            // Original and non-writable params pass the pointer directly and
 7886|       |            // use restrict/aliased, others are stored to a pointer in Function
 7887|       |            // memory and use RestrictPointer/AliasedPointer.
 7888|      0|            if (originalParam(type.getQualifier().storage, type, false) ||
  ------------------
  |  Branch (7888:17): [True: 0, False: 0]
  ------------------
 7889|      0|                !writableParam(type.getQualifier().storage)) {
  ------------------
  |  Branch (7889:17): [True: 0, False: 0]
  ------------------
 7890|       |                // TranslateMemoryDecoration added Restrict decoration already.
 7891|      0|                if (!type.getQualifier().isRestrict()) {
  ------------------
  |  Branch (7891:21): [True: 0, False: 0]
  ------------------
 7892|      0|                    decorations.push_back(spv::Decoration::Aliased);
 7893|      0|                }
 7894|      0|            } else {
 7895|      0|                decorations.push_back(type.getQualifier().isRestrict() ? spv::Decoration::RestrictPointerEXT :
  ------------------
  |  Branch (7895:39): [True: 0, False: 0]
  ------------------
 7896|      0|                                                                         spv::Decoration::AliasedPointerEXT);
 7897|      0|            }
 7898|      0|        }
 7899|     14|    };
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser26convertGlslangLinkageToSpvEN7glslang9TLinkTypeE:
 6057|    157|{
 6058|    157|    switch (linkType) {
 6059|      0|    case glslang::ELinkExport:
  ------------------
  |  Branch (6059:5): [True: 0, False: 157]
  ------------------
 6060|      0|        return spv::LinkageType::Export;
 6061|    157|    default:
  ------------------
  |  Branch (6061:5): [True: 157, False: 0]
  ------------------
 6062|    157|        return spv::LinkageType::Max;
 6063|    157|    }
 6064|    157|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser22makeGlobalInitializersERKN7glslang7TVectorIP11TIntermNodeEE:
 8000|     42|{
 8001|     42|    builder.setBuildPoint(shaderEntry->getLastBlock());
 8002|    293|    for (int i = 0; i < (int)initializers.size(); ++i) {
  ------------------
  |  Branch (8002:21): [True: 251, False: 42]
  ------------------
 8003|    251|        glslang::TIntermAggregate* initializer = initializers[i]->getAsAggregate();
 8004|    251|        if (initializer && initializer->getOp() != glslang::EOpFunction && initializer->getOp() !=
  ------------------
  |  Branch (8004:13): [True: 251, False: 0]
  |  Branch (8004:28): [True: 52, False: 199]
  |  Branch (8004:76): [True: 10, False: 42]
  ------------------
 8005|     52|            glslang::EOpLinkerObjects) {
 8006|       |
 8007|       |            // We're on a top-level node that's not a function.  Treat as an initializer, whose
 8008|       |            // code goes into the beginning of the entry point.
 8009|     10|            initializer->traverse(this);
 8010|     10|        }
 8011|    251|    }
 8012|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser14visitFunctionsERKN7glslang7TVectorIP11TIntermNodeEE:
 8053|     42|{
 8054|    293|    for (int f = 0; f < (int)glslFunctions.size(); ++f) {
  ------------------
  |  Branch (8054:21): [True: 251, False: 42]
  ------------------
 8055|    251|        glslang::TIntermAggregate* node = glslFunctions[f]->getAsAggregate();
 8056|    251|        if (node && (node->getOp() == glslang::EOpFunction || node->getOp() == glslang::EOpLinkerObjects))
  ------------------
  |  Branch (8056:13): [True: 251, False: 0]
  |  Branch (8056:22): [True: 199, False: 52]
  |  Branch (8056:63): [True: 42, False: 10]
  ------------------
 8057|    241|            node->traverse(this);
 8058|    251|    }
 8059|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser18isShaderEntryPointEPKN7glslang16TIntermAggregateE:
 7844|    398|{
 7845|    398|    return node->getName().compare(glslangIntermediate->getEntryPointMangledName().c_str()) == 0;
 7846|    398|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser22handleUserFunctionCallEPKN7glslang16TIntermAggregateE:
 8854|    277|{
 8855|       |    // Grab the function's pointer from the previously created function
 8856|    277|    spv::Function* function = functionMap[node->getName().c_str()];
 8857|    277|    if (! function)
  ------------------
  |  Branch (8857:9): [True: 0, False: 277]
  ------------------
 8858|      0|        return 0;
 8859|       |
 8860|    277|    const glslang::TIntermSequence& glslangArgs = node->getSequence();
 8861|    277|    const glslang::TQualifierList& qualifiers = node->getQualifierList();
 8862|       |
 8863|       |    //  See comments in makeFunctions() for details about the semantics for parameter passing.
 8864|       |    //
 8865|       |    // These imply we need a four step process:
 8866|       |    // 1. Evaluate the arguments
 8867|       |    // 2. Allocate and make copies of in, out, and inout arguments
 8868|       |    // 3. Make the call
 8869|       |    // 4. Copy back the results
 8870|       |
 8871|       |    // 1. Evaluate the arguments and their types
 8872|    277|    std::vector<spv::Builder::AccessChain> lValues;
 8873|    277|    std::vector<spv::Id> rValues;
 8874|    277|    std::vector<const glslang::TType*> argTypes;
 8875|    295|    for (int a = 0; a < (int)glslangArgs.size(); ++a) {
  ------------------
  |  Branch (8875:21): [True: 18, False: 277]
  ------------------
 8876|     18|        argTypes.push_back(&glslangArgs[a]->getAsTyped()->getType());
 8877|       |        // build l-value
 8878|     18|        builder.clearAccessChain();
 8879|     18|        glslangArgs[a]->traverse(this);
 8880|       |        // keep outputs and pass-by-originals as l-values, evaluate others as r-values
 8881|     18|        if (originalParam(qualifiers[a], *argTypes[a], function->hasImplicitThis() && a == 0) ||
  ------------------
  |  Branch (8881:13): [True: 0, False: 18]
  |  Branch (8881:56): [True: 0, False: 18]
  |  Branch (8881:87): [True: 0, False: 0]
  ------------------
 8882|     18|            writableParam(qualifiers[a])) {
  ------------------
  |  Branch (8882:13): [True: 18, False: 0]
  ------------------
 8883|       |            // save l-value
 8884|     18|            lValues.push_back(builder.getAccessChain());
 8885|     18|        } else {
 8886|       |            // process r-value
 8887|      0|            rValues.push_back(accessChainLoad(*argTypes.back()));
 8888|      0|        }
 8889|     18|    }
 8890|       |
 8891|       |    // Reset source location to the function call location after argument evaluation
 8892|    277|    builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 8893|       |
 8894|       |    // 2. Allocate space for anything needing a copy, and if it's "in" or "inout"
 8895|       |    // copy the original into that space.
 8896|       |    //
 8897|       |    // Also, build up the list of actual arguments to pass in for the call
 8898|    277|    int lValueCount = 0;
 8899|    277|    int rValueCount = 0;
 8900|    277|    std::vector<spv::Id> spvArgs;
 8901|    295|    for (int a = 0; a < (int)glslangArgs.size(); ++a) {
  ------------------
  |  Branch (8901:21): [True: 18, False: 277]
  ------------------
 8902|     18|        spv::Id arg;
 8903|     18|        if (originalParam(qualifiers[a], *argTypes[a], function->hasImplicitThis() && a == 0)) {
  ------------------
  |  Branch (8903:13): [True: 0, False: 18]
  |  Branch (8903:56): [True: 0, False: 18]
  |  Branch (8903:87): [True: 0, False: 0]
  ------------------
 8904|      0|            builder.setAccessChain(lValues[lValueCount]);
 8905|      0|            arg = builder.accessChainGetLValue();
 8906|      0|            ++lValueCount;
 8907|     18|        } else if (writableParam(qualifiers[a])) {
  ------------------
  |  Branch (8907:20): [True: 18, False: 0]
  ------------------
 8908|       |            // need space to hold the copy
 8909|     18|            arg = builder.createVariable(function->getParamPrecision(a), spv::StorageClass::Function,
 8910|     18|                builder.getContainedTypeId(function->getParamType(a)), "param");
 8911|     18|            if (qualifiers[a] == glslang::EvqIn || qualifiers[a] == glslang::EvqInOut) {
  ------------------
  |  Branch (8911:17): [True: 18, False: 0]
  |  Branch (8911:52): [True: 0, False: 0]
  ------------------
 8912|       |                // need to copy the input into output space
 8913|     18|                builder.setAccessChain(lValues[lValueCount]);
 8914|     18|                spv::Id copy = accessChainLoad(*argTypes[a]);
 8915|     18|                builder.clearAccessChain();
 8916|     18|                builder.setAccessChainLValue(arg);
 8917|     18|                multiTypeStore(*argTypes[a], copy);
 8918|     18|            }
 8919|     18|            ++lValueCount;
 8920|     18|        } else {
 8921|       |            // process r-value, which involves a copy for a type mismatch
 8922|      0|            if (function->getParamType(a) != builder.getTypeId(rValues[rValueCount]) ||
  ------------------
  |  Branch (8922:17): [True: 0, False: 0]
  ------------------
 8923|      0|                TranslatePrecisionDecoration(*argTypes[a]) != function->getParamPrecision(a))
  ------------------
  |  Branch (8923:17): [True: 0, False: 0]
  ------------------
 8924|      0|            {
 8925|      0|                spv::Id argCopy = builder.createVariable(function->getParamPrecision(a), spv::StorageClass::Function, function->getParamType(a), "arg");
 8926|      0|                builder.clearAccessChain();
 8927|      0|                builder.setAccessChainLValue(argCopy);
 8928|      0|                multiTypeStore(*argTypes[a], rValues[rValueCount]);
 8929|      0|                arg = builder.createLoad(argCopy, function->getParamPrecision(a));
 8930|      0|            } else
 8931|      0|                arg = rValues[rValueCount];
 8932|      0|            ++rValueCount;
 8933|      0|        }
 8934|     18|        spvArgs.push_back(arg);
 8935|     18|    }
 8936|       |
 8937|       |    // 3. Make the call.
 8938|    277|    spv::Id result = builder.createFunctionCall(function, spvArgs);
 8939|    277|    builder.setPrecision(result, TranslatePrecisionDecoration(node->getType()));
 8940|    277|    builder.addDecoration(result, TranslateNonUniformDecoration(node->getType().getQualifier()));
 8941|       |
 8942|       |    // 4. Copy back out an "out" arguments.
 8943|    277|    lValueCount = 0;
 8944|    295|    for (int a = 0; a < (int)glslangArgs.size(); ++a) {
  ------------------
  |  Branch (8944:21): [True: 18, False: 277]
  ------------------
 8945|     18|        if (originalParam(qualifiers[a], *argTypes[a], function->hasImplicitThis() && a == 0))
  ------------------
  |  Branch (8945:13): [True: 0, False: 18]
  |  Branch (8945:56): [True: 0, False: 18]
  |  Branch (8945:87): [True: 0, False: 0]
  ------------------
 8946|      0|            ++lValueCount;
 8947|     18|        else if (writableParam(qualifiers[a])) {
  ------------------
  |  Branch (8947:18): [True: 18, False: 0]
  ------------------
 8948|     18|            if (qualifiers[a] == glslang::EvqOut || qualifiers[a] == glslang::EvqInOut) {
  ------------------
  |  Branch (8948:17): [True: 0, False: 18]
  |  Branch (8948:53): [True: 0, False: 18]
  ------------------
 8949|      0|                spv::Id copy = builder.createLoad(spvArgs[a], spv::NoPrecision);
 8950|      0|                builder.addDecoration(copy, TranslateNonUniformDecoration(argTypes[a]->getQualifier()));
 8951|      0|                builder.setAccessChain(lValues[lValueCount]);
 8952|      0|                multiTypeStore(*argTypes[a], copy);
 8953|      0|            }
 8954|     18|            ++lValueCount;
 8955|     18|        }
 8956|     18|    }
 8957|       |
 8958|    277|    return result;
 8959|    277|}
GlslangToSpv.cpp:_ZZN12_GLOBAL__N_122TGlslangToSpvTraverser14visitAggregateEN7glslang6TVisitEPNS1_16TIntermAggregateEENK3$_0clEv:
 3603|    912|    auto resultType = [&invertedType, &node, this](){
 3604|    912|        if (invertedType != spv::NoType) {
  ------------------
  |  Branch (3604:13): [True: 0, False: 912]
  ------------------
 3605|      0|            return invertedType;
 3606|    912|        } else {
 3607|    912|            auto ret = convertGlslangToSpvType(node->getType());
 3608|       |            // convertGlslangToSpvType may clobber the debug location, reset it
 3609|    912|            builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 3610|    912|            return ret;
 3611|    912|        }
 3612|    912|    };
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser19createMiscOperationEN7glslang9TOperatorEN3spv10DecorationEjRNSt3__16vectorIjNS5_9allocatorIjEEEENS1_10TBasicTypeE:
11172|    461|{
11173|    461|    bool isUnsigned = isTypeUnsignedInt(typeProxy);
11174|    461|    bool isFloat = isTypeFloat(typeProxy);
11175|       |
11176|    461|    spv::Op opCode = spv::Op::OpNop;
11177|    461|    int extBuiltins = -1;
11178|    461|    int libCall = -1;
11179|    461|    size_t consumedOperands = operands.size();
11180|    461|    spv::Id typeId0 = 0;
11181|    461|    if (consumedOperands > 0)
  ------------------
  |  Branch (11181:9): [True: 461, False: 0]
  ------------------
11182|    461|        typeId0 = builder.getTypeId(operands[0]);
11183|    461|    spv::Id typeId1 = 0;
11184|    461|    if (consumedOperands > 1)
  ------------------
  |  Branch (11184:9): [True: 461, False: 0]
  ------------------
11185|    461|        typeId1 = builder.getTypeId(operands[1]);
11186|    461|    spv::Id frexpIntType = 0;
11187|       |
11188|    461|    switch (op) {
11189|     48|    case glslang::EOpMin:
  ------------------
  |  Branch (11189:5): [True: 48, False: 413]
  ------------------
11190|     48|        if (isFloat)
  ------------------
  |  Branch (11190:13): [True: 0, False: 48]
  ------------------
11191|      0|            libCall = nanMinMaxClamp ? spv::GLSLstd450NMin : spv::GLSLstd450FMin;
  ------------------
  |  Branch (11191:23): [True: 0, False: 0]
  ------------------
11192|     48|        else if (isUnsigned)
  ------------------
  |  Branch (11192:18): [True: 24, False: 24]
  ------------------
11193|     24|            libCall = spv::GLSLstd450UMin;
11194|     24|        else
11195|     24|            libCall = spv::GLSLstd450SMin;
11196|     48|        builder.promoteScalar(precision, operands.front(), operands.back());
11197|     48|        break;
11198|      0|    case glslang::EOpModf:
  ------------------
  |  Branch (11198:5): [True: 0, False: 461]
  ------------------
11199|      0|        {
11200|      0|            libCall = spv::GLSLstd450ModfStruct;
11201|      0|            assert(builder.isFloatType(builder.getScalarTypeId(typeId0)));
11202|       |            // The returned struct has two members of the same type as the first argument
11203|      0|            typeId = builder.makeStructResultType(typeId0, typeId0);
11204|      0|            consumedOperands = 1;
11205|      0|        }
11206|      0|        break;
11207|     52|    case glslang::EOpMax:
  ------------------
  |  Branch (11207:5): [True: 52, False: 409]
  ------------------
11208|     52|        if (isFloat)
  ------------------
  |  Branch (11208:13): [True: 4, False: 48]
  ------------------
11209|      4|            libCall = nanMinMaxClamp ? spv::GLSLstd450NMax : spv::GLSLstd450FMax;
  ------------------
  |  Branch (11209:23): [True: 0, False: 4]
  ------------------
11210|     48|        else if (isUnsigned)
  ------------------
  |  Branch (11210:18): [True: 24, False: 24]
  ------------------
11211|     24|            libCall = spv::GLSLstd450UMax;
11212|     24|        else
11213|     24|            libCall = spv::GLSLstd450SMax;
11214|     52|        builder.promoteScalar(precision, operands.front(), operands.back());
11215|     52|        break;
11216|      2|    case glslang::EOpPow:
  ------------------
  |  Branch (11216:5): [True: 2, False: 459]
  ------------------
11217|      2|        libCall = spv::GLSLstd450Pow;
11218|      2|        break;
11219|     48|    case glslang::EOpDot:
  ------------------
  |  Branch (11219:5): [True: 48, False: 413]
  ------------------
11220|     52|    case glslang::EOpDotPackedEXT:
  ------------------
  |  Branch (11220:5): [True: 4, False: 457]
  ------------------
11221|    100|    case glslang::EOpDotAccSatEXT:
  ------------------
  |  Branch (11221:5): [True: 48, False: 413]
  ------------------
11222|    104|    case glslang::EOpDotPackedAccSatEXT:
  ------------------
  |  Branch (11222:5): [True: 4, False: 457]
  ------------------
11223|    104|        {
11224|    104|            if (builder.isFloatType(builder.getScalarTypeId(typeId0)) ||
  ------------------
  |  Branch (11224:17): [True: 0, False: 104]
  ------------------
11225|       |                // HLSL supports dot(int,int) which is just a multiply
11226|    104|                glslangIntermediate->getSource() == glslang::EShSourceHlsl) {
  ------------------
  |  Branch (11226:17): [True: 0, False: 104]
  ------------------
11227|      0|                if (typeProxy == glslang::EbtBFloat16) {
  ------------------
  |  Branch (11227:21): [True: 0, False: 0]
  ------------------
11228|      0|                    builder.addExtension(spv::E_SPV_KHR_bfloat16);
11229|      0|                    builder.addCapability(spv::Capability::BFloat16DotProductKHR);
11230|      0|                }
11231|      0|                opCode = spv::Op::OpDot;
11232|    104|            } else {
11233|    104|                builder.addExtension(spv::E_SPV_KHR_integer_dot_product);
11234|    104|                builder.addCapability(spv::Capability::DotProductKHR);
11235|    104|                const unsigned int vectorSize = builder.getNumComponents(operands[0]);
11236|    104|                if (op == glslang::EOpDotPackedEXT || op == glslang::EOpDotPackedAccSatEXT) {
  ------------------
  |  Branch (11236:21): [True: 4, False: 100]
  |  Branch (11236:55): [True: 4, False: 96]
  ------------------
11237|      8|                    builder.addCapability(spv::Capability::DotProductInput4x8BitPackedKHR);
11238|     96|                } else if (vectorSize == 4 && builder.getScalarTypeWidth(typeId0) == 8) {
  ------------------
  |  Branch (11238:28): [True: 32, False: 64]
  |  Branch (11238:47): [True: 8, False: 24]
  ------------------
11239|      8|                    builder.addCapability(spv::Capability::DotProductInput4x8BitKHR);
11240|     88|                } else {
11241|     88|                    builder.addCapability(spv::Capability::DotProductInputAllKHR);
11242|     88|                }
11243|    104|                const bool type0isSigned = builder.isIntType(builder.getScalarTypeId(typeId0));
11244|    104|                const bool type1isSigned = builder.isIntType(builder.getScalarTypeId(typeId1));
11245|    104|                const bool accSat = (op == glslang::EOpDotAccSatEXT || op == glslang::EOpDotPackedAccSatEXT);
  ------------------
  |  Branch (11245:38): [True: 48, False: 56]
  |  Branch (11245:72): [True: 4, False: 52]
  ------------------
11246|    104|                if (!type0isSigned && !type1isSigned) {
  ------------------
  |  Branch (11246:21): [True: 52, False: 52]
  |  Branch (11246:39): [True: 26, False: 26]
  ------------------
11247|     26|                    opCode = accSat ? spv::Op::OpUDotAccSatKHR : spv::Op::OpUDotKHR;
  ------------------
  |  Branch (11247:30): [True: 13, False: 13]
  ------------------
11248|     78|                } else if (type0isSigned && type1isSigned) {
  ------------------
  |  Branch (11248:28): [True: 52, False: 26]
  |  Branch (11248:45): [True: 26, False: 26]
  ------------------
11249|     26|                    opCode = accSat ? spv::Op::OpSDotAccSatKHR : spv::Op::OpSDotKHR;
  ------------------
  |  Branch (11249:30): [True: 13, False: 13]
  ------------------
11250|     52|                } else {
11251|     52|                    opCode = accSat ? spv::Op::OpSUDotAccSatKHR : spv::Op::OpSUDotKHR;
  ------------------
  |  Branch (11251:30): [True: 26, False: 26]
  ------------------
11252|       |                    // the spir-v opcode assumes the operands to be "signed, unsigned" in that order, so swap if needed
11253|     52|                    if (type1isSigned) {
  ------------------
  |  Branch (11253:25): [True: 26, False: 26]
  ------------------
11254|     26|                        std::swap(operands[0], operands[1]);
11255|     26|                    }
11256|     52|                }
11257|    104|                std::vector<spv::IdImmediate> operands2;
11258|    260|                for (auto &o : operands) {
  ------------------
  |  Branch (11258:30): [True: 260, False: 104]
  ------------------
11259|    260|                    operands2.push_back({true, o});
11260|    260|                }
11261|    104|                if (op == glslang::EOpDotPackedEXT || op == glslang::EOpDotPackedAccSatEXT) {
  ------------------
  |  Branch (11261:21): [True: 4, False: 100]
  |  Branch (11261:55): [True: 4, False: 96]
  ------------------
11262|      8|                    operands2.push_back({false, 0});
11263|      8|                }
11264|    104|                return builder.createOp(opCode, typeId, operands2);
11265|    104|            }
11266|    104|        }
11267|      0|        break;
11268|      0|    case glslang::EOpAtan:
  ------------------
  |  Branch (11268:5): [True: 0, False: 461]
  ------------------
11269|      0|        libCall = spv::GLSLstd450Atan2;
11270|      0|        break;
11271|       |
11272|     48|    case glslang::EOpClamp:
  ------------------
  |  Branch (11272:5): [True: 48, False: 413]
  ------------------
11273|     48|        if (isFloat)
  ------------------
  |  Branch (11273:13): [True: 0, False: 48]
  ------------------
11274|      0|            libCall = nanMinMaxClamp ? spv::GLSLstd450NClamp : spv::GLSLstd450FClamp;
  ------------------
  |  Branch (11274:23): [True: 0, False: 0]
  ------------------
11275|     48|        else if (isUnsigned)
  ------------------
  |  Branch (11275:18): [True: 24, False: 24]
  ------------------
11276|     24|            libCall = spv::GLSLstd450UClamp;
11277|     24|        else
11278|     24|            libCall = spv::GLSLstd450SClamp;
11279|     48|        builder.promoteScalar(precision, operands.front(), operands[1]);
11280|     48|        builder.promoteScalar(precision, operands.front(), operands[2]);
11281|     48|        break;
11282|     48|    case glslang::EOpMix:
  ------------------
  |  Branch (11282:5): [True: 48, False: 413]
  ------------------
11283|     48|        if (! builder.isBoolType(builder.getScalarTypeId(builder.getTypeId(operands.back())))) {
  ------------------
  |  Branch (11283:13): [True: 0, False: 48]
  ------------------
11284|      0|            assert(isFloat);
11285|      0|            libCall = spv::GLSLstd450FMix;
11286|     48|        } else {
11287|     48|            opCode = spv::Op::OpSelect;
11288|     48|            std::swap(operands.front(), operands.back());
11289|     48|        }
11290|     48|        builder.promoteScalar(precision, operands.front(), operands.back());
11291|     48|        break;
11292|      0|    case glslang::EOpStep:
  ------------------
  |  Branch (11292:5): [True: 0, False: 461]
  ------------------
11293|      0|        libCall = spv::GLSLstd450Step;
11294|      0|        builder.promoteScalar(precision, operands.front(), operands.back());
11295|      0|        break;
11296|      4|    case glslang::EOpSmoothStep:
  ------------------
  |  Branch (11296:5): [True: 4, False: 457]
  ------------------
11297|      4|        libCall = spv::GLSLstd450SmoothStep;
11298|      4|        builder.promoteScalar(precision, operands[0], operands[2]);
11299|      4|        builder.promoteScalar(precision, operands[1], operands[2]);
11300|      4|        break;
11301|       |
11302|      0|    case glslang::EOpDistance:
  ------------------
  |  Branch (11302:5): [True: 0, False: 461]
  ------------------
11303|      0|        libCall = spv::GLSLstd450Distance;
11304|      0|        break;
11305|      0|    case glslang::EOpCross:
  ------------------
  |  Branch (11305:5): [True: 0, False: 461]
  ------------------
11306|      0|        libCall = spv::GLSLstd450Cross;
11307|      0|        break;
11308|      0|    case glslang::EOpFaceForward:
  ------------------
  |  Branch (11308:5): [True: 0, False: 461]
  ------------------
11309|      0|        libCall = spv::GLSLstd450FaceForward;
11310|      0|        break;
11311|      2|    case glslang::EOpReflect:
  ------------------
  |  Branch (11311:5): [True: 2, False: 459]
  ------------------
11312|      2|        libCall = spv::GLSLstd450Reflect;
11313|      2|        break;
11314|      0|    case glslang::EOpRefract:
  ------------------
  |  Branch (11314:5): [True: 0, False: 461]
  ------------------
11315|      0|        libCall = spv::GLSLstd450Refract;
11316|      0|        break;
11317|      0|    case glslang::EOpBarrier:
  ------------------
  |  Branch (11317:5): [True: 0, False: 461]
  ------------------
11318|      0|        {
11319|       |            // This is for the extended controlBarrier function, with four operands.
11320|       |            // The unextended barrier() goes through createNoArgOperation.
11321|      0|            assert(operands.size() == 4);
11322|      0|            auto const executionScope = (spv::Scope)builder.getConstantScalar(operands[0]);
11323|      0|            auto const memoryScope = (spv::Scope)builder.getConstantScalar(operands[1]);
11324|      0|            auto const semantics = (spv::MemorySemanticsMask)(builder.getConstantScalar(operands[2]) | builder.getConstantScalar(operands[3]));
11325|      0|            builder.createControlBarrier(executionScope, memoryScope,
11326|      0|                semantics);
11327|      0|            if (anySet(semantics, spv::MemorySemanticsMask::MakeAvailableKHR |
  ------------------
  |  Branch (11327:17): [True: 0, False: 0]
  ------------------
11328|      0|                                  spv::MemorySemanticsMask::MakeVisibleKHR |
11329|      0|                                  spv::MemorySemanticsMask::OutputMemoryKHR |
11330|      0|                                  spv::MemorySemanticsMask::Volatile)) {
11331|      0|                builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
11332|      0|            }
11333|      0|            if (glslangIntermediate->usingVulkanMemoryModel() && (executionScope == spv::Scope::Device ||
  ------------------
  |  Branch (11333:17): [True: 0, False: 0]
  |  Branch (11333:67): [True: 0, False: 0]
  ------------------
11334|      0|                memoryScope == spv::Scope::Device)) {
  ------------------
  |  Branch (11334:17): [True: 0, False: 0]
  ------------------
11335|      0|                builder.addCapability(spv::Capability::VulkanMemoryModelDeviceScopeKHR);
11336|      0|            }
11337|      0|            return 0;
11338|    104|        }
11339|      0|        break;
11340|      0|    case glslang::EOpControlBarrierArriveEXT:
  ------------------
  |  Branch (11340:5): [True: 0, False: 461]
  ------------------
11341|      0|    case glslang::EOpControlBarrierWaitEXT:
  ------------------
  |  Branch (11341:5): [True: 0, False: 461]
  ------------------
11342|      0|        {
11343|      0|            builder.addExtension(spv::E_SPV_EXT_split_barrier);
11344|      0|            builder.addCapability(spv::Capability::SplitBarrierEXT);
11345|       |            // This is for the extended controlBarrierArrive/Wait functions, with four operands.
11346|       |            // The unextended controlBarrierArrive/controlBarrierWait() go through createNoArgOperation.
11347|      0|            assert(operands.size() == 4);
11348|      0|            auto const executionScope = (spv::Scope)builder.getConstantScalar(operands[0]);
11349|      0|            auto const memoryScope = (spv::Scope)builder.getConstantScalar(operands[1]);
11350|      0|            auto const semantics = (spv::MemorySemanticsMask)(builder.getConstantScalar(operands[2]) | builder.getConstantScalar(operands[3]));
11351|      0|            builder.createSplitControlBarrier((op == glslang::EOpControlBarrierArriveEXT ? spv::Op::OpControlBarrierArriveEXT
  ------------------
  |  Branch (11351:48): [True: 0, False: 0]
  ------------------
11352|      0|                                               : spv::Op::OpControlBarrierWaitEXT),
11353|      0|                                              executionScope, memoryScope, semantics);
11354|      0|            if (anySet(semantics, spv::MemorySemanticsMask::OutputMemoryKHR)) {
  ------------------
  |  Branch (11354:17): [True: 0, False: 0]
  ------------------
11355|      0|                builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
11356|      0|            }
11357|      0|            return 0;
11358|      0|        }
11359|      0|        break;
11360|      0|    case glslang::EOpMemoryBarrier:
  ------------------
  |  Branch (11360:5): [True: 0, False: 461]
  ------------------
11361|      0|        {
11362|       |            // This is for the extended memoryBarrier function, with three operands.
11363|       |            // The unextended memoryBarrier() goes through createNoArgOperation.
11364|      0|            assert(operands.size() == 3);
11365|      0|            auto const memoryScope = (spv::Scope)builder.getConstantScalar(operands[0]);
11366|      0|            auto const semantics = (spv::MemorySemanticsMask)(builder.getConstantScalar(operands[1]) | builder.getConstantScalar(operands[2]));
11367|      0|            builder.createMemoryBarrier(memoryScope, semantics);
11368|      0|            if (anySet(semantics, spv::MemorySemanticsMask::MakeAvailableKHR |
  ------------------
  |  Branch (11368:17): [True: 0, False: 0]
  ------------------
11369|      0|                                  spv::MemorySemanticsMask::MakeVisibleKHR |
11370|      0|                                  spv::MemorySemanticsMask::OutputMemoryKHR |
11371|      0|                                  spv::MemorySemanticsMask::Volatile)) {
11372|      0|                builder.addCapability(spv::Capability::VulkanMemoryModelKHR);
11373|      0|            }
11374|      0|            if (glslangIntermediate->usingVulkanMemoryModel() && memoryScope == spv::Scope::Device) {
  ------------------
  |  Branch (11374:17): [True: 0, False: 0]
  |  Branch (11374:66): [True: 0, False: 0]
  ------------------
11375|      0|                builder.addCapability(spv::Capability::VulkanMemoryModelDeviceScopeKHR);
11376|      0|            }
11377|      0|            return 0;
11378|      0|        }
11379|      0|        break;
11380|       |
11381|      0|    case glslang::EOpInterpolateAtSample:
  ------------------
  |  Branch (11381:5): [True: 0, False: 461]
  ------------------
11382|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (11382:13): [True: 0, False: 0]
  ------------------
11383|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
11384|      0|        libCall = spv::GLSLstd450InterpolateAtSample;
11385|      0|        break;
11386|      0|    case glslang::EOpInterpolateAtOffset:
  ------------------
  |  Branch (11386:5): [True: 0, False: 461]
  ------------------
11387|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (11387:13): [True: 0, False: 0]
  ------------------
11388|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
11389|      0|        libCall = spv::GLSLstd450InterpolateAtOffset;
11390|      0|        break;
11391|      0|    case glslang::EOpAddCarry:
  ------------------
  |  Branch (11391:5): [True: 0, False: 461]
  ------------------
11392|      0|        opCode = spv::Op::OpIAddCarry;
11393|      0|        typeId = builder.makeStructResultType(typeId0, typeId0);
11394|      0|        consumedOperands = 2;
11395|      0|        break;
11396|      0|    case glslang::EOpSubBorrow:
  ------------------
  |  Branch (11396:5): [True: 0, False: 461]
  ------------------
11397|      0|        opCode = spv::Op::OpISubBorrow;
11398|      0|        typeId = builder.makeStructResultType(typeId0, typeId0);
11399|      0|        consumedOperands = 2;
11400|      0|        break;
11401|      0|    case glslang::EOpUMulExtended:
  ------------------
  |  Branch (11401:5): [True: 0, False: 461]
  ------------------
11402|      0|        opCode = spv::Op::OpUMulExtended;
11403|      0|        typeId = builder.makeStructResultType(typeId0, typeId0);
11404|      0|        consumedOperands = 2;
11405|      0|        break;
11406|      0|    case glslang::EOpIMulExtended:
  ------------------
  |  Branch (11406:5): [True: 0, False: 461]
  ------------------
11407|      0|        opCode = spv::Op::OpSMulExtended;
11408|      0|        typeId = builder.makeStructResultType(typeId0, typeId0);
11409|      0|        consumedOperands = 2;
11410|      0|        break;
11411|      0|    case glslang::EOpBitfieldExtract:
  ------------------
  |  Branch (11411:5): [True: 0, False: 461]
  ------------------
11412|      0|        if (isUnsigned)
  ------------------
  |  Branch (11412:13): [True: 0, False: 0]
  ------------------
11413|      0|            opCode = spv::Op::OpBitFieldUExtract;
11414|      0|        else
11415|      0|            opCode = spv::Op::OpBitFieldSExtract;
11416|      0|        break;
11417|      0|    case glslang::EOpBitfieldInsert:
  ------------------
  |  Branch (11417:5): [True: 0, False: 461]
  ------------------
11418|      0|        opCode = spv::Op::OpBitFieldInsert;
11419|      0|        break;
11420|       |
11421|      0|    case glslang::EOpFma:
  ------------------
  |  Branch (11421:5): [True: 0, False: 461]
  ------------------
11422|      0|        libCall = spv::GLSLstd450Fma;
11423|      0|        break;
11424|     12|    case glslang::EOpFrexp:
  ------------------
  |  Branch (11424:5): [True: 12, False: 449]
  ------------------
11425|     12|        {
11426|     12|            libCall = spv::GLSLstd450FrexpStruct;
11427|     12|            assert(builder.isPointerType(typeId1));
11428|     12|            typeId1 = builder.getContainedTypeId(typeId1);
11429|     12|            int width = builder.getScalarTypeWidth(typeId1);
11430|     12|            if (width == 16)
  ------------------
  |  Branch (11430:17): [True: 12, False: 0]
  ------------------
11431|       |                // Using 16-bit exp operand, enable extension SPV_AMD_gpu_shader_int16
11432|     12|                builder.addExtension(spv::E_SPV_AMD_gpu_shader_int16);
11433|     12|            if (builder.getNumComponents(operands[0]) == 1)
  ------------------
  |  Branch (11433:17): [True: 0, False: 12]
  ------------------
11434|      0|                frexpIntType = builder.makeIntegerType(width, true);
11435|     12|            else if (builder.isCooperativeVector(operands[0]))
  ------------------
  |  Branch (11435:22): [True: 0, False: 12]
  ------------------
11436|      0|                frexpIntType = builder.makeCooperativeVectorTypeNV(builder.makeIntegerType(width, true),
11437|      0|                                                                   builder.getCooperativeVectorNumComponents(builder.getTypeId(operands[0])));
11438|     12|            else
11439|     12|                frexpIntType = builder.makeVectorType(builder.makeIntegerType(width, true),
11440|     12|                                                      builder.getNumComponents(operands[0]));
11441|     12|            typeId = builder.makeStructResultType(typeId0, frexpIntType);
11442|     12|            consumedOperands = 1;
11443|     12|        }
11444|     12|        break;
11445|     11|    case glslang::EOpLdexp:
  ------------------
  |  Branch (11445:5): [True: 11, False: 450]
  ------------------
11446|     11|        libCall = spv::GLSLstd450Ldexp;
11447|     11|        break;
11448|       |
11449|      0|    case glslang::EOpReadInvocation:
  ------------------
  |  Branch (11449:5): [True: 0, False: 461]
  ------------------
11450|      0|        return createInvocationsOperation(op, typeId, operands, typeProxy);
11451|       |
11452|      0|    case glslang::EOpSubgroupBroadcast:
  ------------------
  |  Branch (11452:5): [True: 0, False: 461]
  ------------------
11453|      0|    case glslang::EOpSubgroupBallotBitExtract:
  ------------------
  |  Branch (11453:5): [True: 0, False: 461]
  ------------------
11454|      0|    case glslang::EOpSubgroupShuffle:
  ------------------
  |  Branch (11454:5): [True: 0, False: 461]
  ------------------
11455|      0|    case glslang::EOpSubgroupShuffleXor:
  ------------------
  |  Branch (11455:5): [True: 0, False: 461]
  ------------------
11456|      0|    case glslang::EOpSubgroupShuffleUp:
  ------------------
  |  Branch (11456:5): [True: 0, False: 461]
  ------------------
11457|      0|    case glslang::EOpSubgroupShuffleDown:
  ------------------
  |  Branch (11457:5): [True: 0, False: 461]
  ------------------
11458|      0|    case glslang::EOpSubgroupRotate:
  ------------------
  |  Branch (11458:5): [True: 0, False: 461]
  ------------------
11459|      0|    case glslang::EOpSubgroupClusteredRotate:
  ------------------
  |  Branch (11459:5): [True: 0, False: 461]
  ------------------
11460|      0|    case glslang::EOpSubgroupClusteredAdd:
  ------------------
  |  Branch (11460:5): [True: 0, False: 461]
  ------------------
11461|      0|    case glslang::EOpSubgroupClusteredMul:
  ------------------
  |  Branch (11461:5): [True: 0, False: 461]
  ------------------
11462|      0|    case glslang::EOpSubgroupClusteredMin:
  ------------------
  |  Branch (11462:5): [True: 0, False: 461]
  ------------------
11463|      0|    case glslang::EOpSubgroupClusteredMax:
  ------------------
  |  Branch (11463:5): [True: 0, False: 461]
  ------------------
11464|      0|    case glslang::EOpSubgroupClusteredAnd:
  ------------------
  |  Branch (11464:5): [True: 0, False: 461]
  ------------------
11465|      0|    case glslang::EOpSubgroupClusteredOr:
  ------------------
  |  Branch (11465:5): [True: 0, False: 461]
  ------------------
11466|      0|    case glslang::EOpSubgroupClusteredXor:
  ------------------
  |  Branch (11466:5): [True: 0, False: 461]
  ------------------
11467|      0|    case glslang::EOpSubgroupQuadBroadcast:
  ------------------
  |  Branch (11467:5): [True: 0, False: 461]
  ------------------
11468|      0|    case glslang::EOpSubgroupPartitionedAdd:
  ------------------
  |  Branch (11468:5): [True: 0, False: 461]
  ------------------
11469|      0|    case glslang::EOpSubgroupPartitionedMul:
  ------------------
  |  Branch (11469:5): [True: 0, False: 461]
  ------------------
11470|      0|    case glslang::EOpSubgroupPartitionedMin:
  ------------------
  |  Branch (11470:5): [True: 0, False: 461]
  ------------------
11471|      0|    case glslang::EOpSubgroupPartitionedMax:
  ------------------
  |  Branch (11471:5): [True: 0, False: 461]
  ------------------
11472|      0|    case glslang::EOpSubgroupPartitionedAnd:
  ------------------
  |  Branch (11472:5): [True: 0, False: 461]
  ------------------
11473|      0|    case glslang::EOpSubgroupPartitionedOr:
  ------------------
  |  Branch (11473:5): [True: 0, False: 461]
  ------------------
11474|      0|    case glslang::EOpSubgroupPartitionedXor:
  ------------------
  |  Branch (11474:5): [True: 0, False: 461]
  ------------------
11475|      0|    case glslang::EOpSubgroupPartitionedInclusiveAdd:
  ------------------
  |  Branch (11475:5): [True: 0, False: 461]
  ------------------
11476|      0|    case glslang::EOpSubgroupPartitionedInclusiveMul:
  ------------------
  |  Branch (11476:5): [True: 0, False: 461]
  ------------------
11477|      0|    case glslang::EOpSubgroupPartitionedInclusiveMin:
  ------------------
  |  Branch (11477:5): [True: 0, False: 461]
  ------------------
11478|      0|    case glslang::EOpSubgroupPartitionedInclusiveMax:
  ------------------
  |  Branch (11478:5): [True: 0, False: 461]
  ------------------
11479|      0|    case glslang::EOpSubgroupPartitionedInclusiveAnd:
  ------------------
  |  Branch (11479:5): [True: 0, False: 461]
  ------------------
11480|      0|    case glslang::EOpSubgroupPartitionedInclusiveOr:
  ------------------
  |  Branch (11480:5): [True: 0, False: 461]
  ------------------
11481|      0|    case glslang::EOpSubgroupPartitionedInclusiveXor:
  ------------------
  |  Branch (11481:5): [True: 0, False: 461]
  ------------------
11482|      0|    case glslang::EOpSubgroupPartitionedExclusiveAdd:
  ------------------
  |  Branch (11482:5): [True: 0, False: 461]
  ------------------
11483|      0|    case glslang::EOpSubgroupPartitionedExclusiveMul:
  ------------------
  |  Branch (11483:5): [True: 0, False: 461]
  ------------------
11484|      0|    case glslang::EOpSubgroupPartitionedExclusiveMin:
  ------------------
  |  Branch (11484:5): [True: 0, False: 461]
  ------------------
11485|      0|    case glslang::EOpSubgroupPartitionedExclusiveMax:
  ------------------
  |  Branch (11485:5): [True: 0, False: 461]
  ------------------
11486|      0|    case glslang::EOpSubgroupPartitionedExclusiveAnd:
  ------------------
  |  Branch (11486:5): [True: 0, False: 461]
  ------------------
11487|      0|    case glslang::EOpSubgroupPartitionedExclusiveOr:
  ------------------
  |  Branch (11487:5): [True: 0, False: 461]
  ------------------
11488|      0|    case glslang::EOpSubgroupPartitionedExclusiveXor:
  ------------------
  |  Branch (11488:5): [True: 0, False: 461]
  ------------------
11489|      0|        return createSubgroupOperation(op, typeId, operands, typeProxy);
11490|       |
11491|      0|    case glslang::EOpSwizzleInvocations:
  ------------------
  |  Branch (11491:5): [True: 0, False: 461]
  ------------------
11492|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_ballot);
11493|      0|        libCall = spv::SwizzleInvocationsAMD;
11494|      0|        break;
11495|      0|    case glslang::EOpSwizzleInvocationsMasked:
  ------------------
  |  Branch (11495:5): [True: 0, False: 461]
  ------------------
11496|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_ballot);
11497|      0|        libCall = spv::SwizzleInvocationsMaskedAMD;
11498|      0|        break;
11499|      0|    case glslang::EOpWriteInvocation:
  ------------------
  |  Branch (11499:5): [True: 0, False: 461]
  ------------------
11500|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_ballot);
11501|      0|        libCall = spv::WriteInvocationAMD;
11502|      0|        break;
11503|       |
11504|      0|    case glslang::EOpMin3:
  ------------------
  |  Branch (11504:5): [True: 0, False: 461]
  ------------------
11505|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_trinary_minmax);
11506|      0|        if (isFloat)
  ------------------
  |  Branch (11506:13): [True: 0, False: 0]
  ------------------
11507|      0|            libCall = spv::FMin3AMD;
11508|      0|        else {
11509|      0|            if (isUnsigned)
  ------------------
  |  Branch (11509:17): [True: 0, False: 0]
  ------------------
11510|      0|                libCall = spv::UMin3AMD;
11511|      0|            else
11512|      0|                libCall = spv::SMin3AMD;
11513|      0|        }
11514|      0|        break;
11515|      0|    case glslang::EOpMax3:
  ------------------
  |  Branch (11515:5): [True: 0, False: 461]
  ------------------
11516|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_trinary_minmax);
11517|      0|        if (isFloat)
  ------------------
  |  Branch (11517:13): [True: 0, False: 0]
  ------------------
11518|      0|            libCall = spv::FMax3AMD;
11519|      0|        else {
11520|      0|            if (isUnsigned)
  ------------------
  |  Branch (11520:17): [True: 0, False: 0]
  ------------------
11521|      0|                libCall = spv::UMax3AMD;
11522|      0|            else
11523|      0|                libCall = spv::SMax3AMD;
11524|      0|        }
11525|      0|        break;
11526|      0|    case glslang::EOpMid3:
  ------------------
  |  Branch (11526:5): [True: 0, False: 461]
  ------------------
11527|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_trinary_minmax);
11528|      0|        if (isFloat)
  ------------------
  |  Branch (11528:13): [True: 0, False: 0]
  ------------------
11529|      0|            libCall = spv::FMid3AMD;
11530|      0|        else {
11531|      0|            if (isUnsigned)
  ------------------
  |  Branch (11531:17): [True: 0, False: 0]
  ------------------
11532|      0|                libCall = spv::UMid3AMD;
11533|      0|            else
11534|      0|                libCall = spv::SMid3AMD;
11535|      0|        }
11536|      0|        break;
11537|       |
11538|      0|    case glslang::EOpInterpolateAtVertex:
  ------------------
  |  Branch (11538:5): [True: 0, False: 461]
  ------------------
11539|      0|        if (typeProxy == glslang::EbtFloat16)
  ------------------
  |  Branch (11539:13): [True: 0, False: 0]
  ------------------
11540|      0|            builder.addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
11541|      0|        extBuiltins = getExtBuiltins(spv::E_SPV_AMD_shader_explicit_vertex_parameter);
11542|      0|        libCall = spv::InterpolateAtVertexAMD;
11543|      0|        break;
11544|       |
11545|      0|    case glslang::EOpReportIntersection:
  ------------------
  |  Branch (11545:5): [True: 0, False: 461]
  ------------------
11546|      0|        typeId = builder.makeBoolType();
11547|      0|        opCode = spv::Op::OpReportIntersectionKHR;
11548|      0|        break;
11549|      0|    case glslang::EOpTraceNV:
  ------------------
  |  Branch (11549:5): [True: 0, False: 461]
  ------------------
11550|      0|        builder.createNoResultOp(spv::Op::OpTraceNV, operands);
11551|      0|        return 0;
11552|      0|    case glslang::EOpTraceRayMotionNV:
  ------------------
  |  Branch (11552:5): [True: 0, False: 461]
  ------------------
11553|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11554|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11555|      0|        builder.createNoResultOp(spv::Op::OpTraceRayMotionNV, operands);
11556|      0|        return 0;
11557|      0|    case glslang::EOpTraceKHR:
  ------------------
  |  Branch (11557:5): [True: 0, False: 461]
  ------------------
11558|      0|        builder.createNoResultOp(spv::Op::OpTraceRayKHR, operands);
11559|      0|        return 0;
11560|      0|    case glslang::EOpExecuteCallableNV:
  ------------------
  |  Branch (11560:5): [True: 0, False: 461]
  ------------------
11561|      0|        builder.createNoResultOp(spv::Op::OpExecuteCallableNV, operands);
11562|      0|        return 0;
11563|      0|    case glslang::EOpExecuteCallableKHR:
  ------------------
  |  Branch (11563:5): [True: 0, False: 461]
  ------------------
11564|      0|        builder.createNoResultOp(spv::Op::OpExecuteCallableKHR, operands);
11565|      0|        return 0;
11566|       |
11567|      5|    case glslang::EOpRayQueryInitialize:
  ------------------
  |  Branch (11567:5): [True: 5, False: 456]
  ------------------
11568|      5|        builder.createNoResultOp(spv::Op::OpRayQueryInitializeKHR, operands);
11569|      5|        return 0;
11570|      0|    case glslang::EOpRayQueryTerminate:
  ------------------
  |  Branch (11570:5): [True: 0, False: 461]
  ------------------
11571|      0|        builder.createNoResultOp(spv::Op::OpRayQueryTerminateKHR, operands);
11572|      0|        return 0;
11573|      5|    case glslang::EOpRayQueryGenerateIntersection:
  ------------------
  |  Branch (11573:5): [True: 5, False: 456]
  ------------------
11574|      5|        builder.createNoResultOp(spv::Op::OpRayQueryGenerateIntersectionKHR, operands);
11575|      5|        return 0;
11576|      0|    case glslang::EOpRayQueryConfirmIntersection:
  ------------------
  |  Branch (11576:5): [True: 0, False: 461]
  ------------------
11577|      0|        builder.createNoResultOp(spv::Op::OpRayQueryConfirmIntersectionKHR, operands);
11578|      0|        return 0;
11579|      0|    case glslang::EOpRayQueryProceed:
  ------------------
  |  Branch (11579:5): [True: 0, False: 461]
  ------------------
11580|      0|        typeId = builder.makeBoolType();
11581|      0|        opCode = spv::Op::OpRayQueryProceedKHR;
11582|      0|        break;
11583|     10|    case glslang::EOpRayQueryGetIntersectionType:
  ------------------
  |  Branch (11583:5): [True: 10, False: 451]
  ------------------
11584|     10|        typeId = builder.makeUintType(32);
11585|     10|        opCode = spv::Op::OpRayQueryGetIntersectionTypeKHR;
11586|     10|        break;
11587|      0|    case glslang::EOpRayQueryGetRayTMin:
  ------------------
  |  Branch (11587:5): [True: 0, False: 461]
  ------------------
11588|      0|        typeId = builder.makeFloatType(32);
11589|      0|        opCode = spv::Op::OpRayQueryGetRayTMinKHR;
11590|      0|        break;
11591|      0|    case glslang::EOpRayQueryGetRayFlags:
  ------------------
  |  Branch (11591:5): [True: 0, False: 461]
  ------------------
11592|      0|        typeId = builder.makeIntType(32);
11593|      0|        opCode = spv::Op::OpRayQueryGetRayFlagsKHR;
11594|      0|        break;
11595|     10|    case glslang::EOpRayQueryGetIntersectionT:
  ------------------
  |  Branch (11595:5): [True: 10, False: 451]
  ------------------
11596|     10|        typeId = builder.makeFloatType(32);
11597|     10|        opCode = spv::Op::OpRayQueryGetIntersectionTKHR;
11598|     10|        break;
11599|     10|    case glslang::EOpRayQueryGetIntersectionInstanceCustomIndex:
  ------------------
  |  Branch (11599:5): [True: 10, False: 451]
  ------------------
11600|     10|        typeId = builder.makeIntType(32);
11601|     10|        opCode = spv::Op::OpRayQueryGetIntersectionInstanceCustomIndexKHR;
11602|     10|        break;
11603|     10|    case glslang::EOpRayQueryGetIntersectionInstanceId:
  ------------------
  |  Branch (11603:5): [True: 10, False: 451]
  ------------------
11604|     10|        typeId = builder.makeIntType(32);
11605|     10|        opCode = spv::Op::OpRayQueryGetIntersectionInstanceIdKHR;
11606|     10|        break;
11607|      5|    case glslang::EOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffset:
  ------------------
  |  Branch (11607:5): [True: 5, False: 456]
  ------------------
11608|      5|        typeId = builder.makeUintType(32);
11609|      5|        opCode = spv::Op::OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR;
11610|      5|        break;
11611|      5|    case glslang::EOpRayQueryGetIntersectionGeometryIndex:
  ------------------
  |  Branch (11611:5): [True: 5, False: 456]
  ------------------
11612|      5|        typeId = builder.makeIntType(32);
11613|      5|        opCode = spv::Op::OpRayQueryGetIntersectionGeometryIndexKHR;
11614|      5|        break;
11615|     10|    case glslang::EOpRayQueryGetIntersectionPrimitiveIndex:
  ------------------
  |  Branch (11615:5): [True: 10, False: 451]
  ------------------
11616|     10|        typeId = builder.makeIntType(32);
11617|     10|        opCode = spv::Op::OpRayQueryGetIntersectionPrimitiveIndexKHR;
11618|     10|        break;
11619|     10|    case glslang::EOpRayQueryGetIntersectionBarycentrics:
  ------------------
  |  Branch (11619:5): [True: 10, False: 451]
  ------------------
11620|     10|        typeId = builder.makeVectorType(builder.makeFloatType(32), 2);
11621|     10|        opCode = spv::Op::OpRayQueryGetIntersectionBarycentricsKHR;
11622|     10|        break;
11623|     10|    case glslang::EOpRayQueryGetIntersectionFrontFace:
  ------------------
  |  Branch (11623:5): [True: 10, False: 451]
  ------------------
11624|     10|        typeId = builder.makeBoolType();
11625|     10|        opCode = spv::Op::OpRayQueryGetIntersectionFrontFaceKHR;
11626|     10|        break;
11627|      0|    case glslang::EOpRayQueryGetIntersectionCandidateAABBOpaque:
  ------------------
  |  Branch (11627:5): [True: 0, False: 461]
  ------------------
11628|      0|        typeId = builder.makeBoolType();
11629|      0|        opCode = spv::Op::OpRayQueryGetIntersectionCandidateAABBOpaqueKHR;
11630|      0|        break;
11631|     10|    case glslang::EOpRayQueryGetIntersectionObjectRayDirection:
  ------------------
  |  Branch (11631:5): [True: 10, False: 451]
  ------------------
11632|     10|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11633|     10|        opCode = spv::Op::OpRayQueryGetIntersectionObjectRayDirectionKHR;
11634|     10|        break;
11635|     10|    case glslang::EOpRayQueryGetIntersectionObjectRayOrigin:
  ------------------
  |  Branch (11635:5): [True: 10, False: 451]
  ------------------
11636|     10|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11637|     10|        opCode = spv::Op::OpRayQueryGetIntersectionObjectRayOriginKHR;
11638|     10|        break;
11639|      0|    case glslang::EOpRayQueryGetWorldRayDirection:
  ------------------
  |  Branch (11639:5): [True: 0, False: 461]
  ------------------
11640|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11641|      0|        opCode = spv::Op::OpRayQueryGetWorldRayDirectionKHR;
11642|      0|        break;
11643|      0|    case glslang::EOpRayQueryGetWorldRayOrigin:
  ------------------
  |  Branch (11643:5): [True: 0, False: 461]
  ------------------
11644|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11645|      0|        opCode = spv::Op::OpRayQueryGetWorldRayOriginKHR;
11646|      0|        break;
11647|     10|    case glslang::EOpRayQueryGetIntersectionObjectToWorld:
  ------------------
  |  Branch (11647:5): [True: 10, False: 451]
  ------------------
11648|     10|        typeId = builder.makeMatrixType(builder.makeFloatType(32), 4, 3);
11649|     10|        opCode = spv::Op::OpRayQueryGetIntersectionObjectToWorldKHR;
11650|     10|        break;
11651|      0|    case glslang::EOpRayQueryGetIntersectionClusterIdNV:
  ------------------
  |  Branch (11651:5): [True: 0, False: 461]
  ------------------
11652|      0|        typeId = builder.makeIntegerType(32, 1);
11653|      0|        opCode = spv::Op::OpRayQueryGetClusterIdNV;
11654|      0|        break;
11655|     10|    case glslang::EOpRayQueryGetIntersectionWorldToObject:
  ------------------
  |  Branch (11655:5): [True: 10, False: 451]
  ------------------
11656|     10|        typeId = builder.makeMatrixType(builder.makeFloatType(32), 4, 3);
11657|     10|        opCode = spv::Op::OpRayQueryGetIntersectionWorldToObjectKHR;
11658|     10|        break;
11659|      0|    case glslang::EOpRayQueryGetIntersectionSpherePositionNV:
  ------------------
  |  Branch (11659:5): [True: 0, False: 461]
  ------------------
11660|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11661|      0|        opCode = spv::Op::OpRayQueryGetIntersectionSpherePositionNV;
11662|      0|        break;
11663|      0|    case glslang::EOpRayQueryGetIntersectionSphereRadiusNV:
  ------------------
  |  Branch (11663:5): [True: 0, False: 461]
  ------------------
11664|      0|        typeId = builder.makeFloatType(32);
11665|      0|        opCode = spv::Op::OpRayQueryGetIntersectionSphereRadiusNV;
11666|      0|        break;
11667|      0|    case glslang::EOpRayQueryGetIntersectionLSSHitValueNV:
  ------------------
  |  Branch (11667:5): [True: 0, False: 461]
  ------------------
11668|      0|        typeId = builder.makeFloatType(32);
11669|      0|        opCode = spv::Op::OpRayQueryGetIntersectionLSSHitValueNV;
11670|      0|        break;
11671|      0|    case glslang::EOpRayQueryIsSphereHitNV:
  ------------------
  |  Branch (11671:5): [True: 0, False: 461]
  ------------------
11672|      0|        typeId = builder.makeBoolType();
11673|      0|        opCode = spv::Op::OpRayQueryIsSphereHitNV;
11674|      0|        break;
11675|      0|    case glslang::EOpRayQueryIsLSSHitNV:
  ------------------
  |  Branch (11675:5): [True: 0, False: 461]
  ------------------
11676|      0|        typeId = builder.makeBoolType();
11677|      0|        opCode = spv::Op::OpRayQueryIsLSSHitNV;
11678|      0|        break;
11679|      0|    case glslang::EOpWritePackedPrimitiveIndices4x8NV:
  ------------------
  |  Branch (11679:5): [True: 0, False: 461]
  ------------------
11680|      0|        builder.createNoResultOp(spv::Op::OpWritePackedPrimitiveIndices4x8NV, operands);
11681|      0|        return 0;
11682|      0|    case glslang::EOpEmitMeshTasksEXT:
  ------------------
  |  Branch (11682:5): [True: 0, False: 461]
  ------------------
11683|      0|        if (taskPayloadID)
  ------------------
  |  Branch (11683:13): [True: 0, False: 0]
  ------------------
11684|      0|            operands.push_back(taskPayloadID);
11685|       |        // As per SPV_EXT_mesh_shader make it a terminating instruction in the current block
11686|      0|        builder.makeStatementTerminator(spv::Op::OpEmitMeshTasksEXT, operands, "post-OpEmitMeshTasksEXT");
11687|      0|        return 0;
11688|      0|    case glslang::EOpSetMeshOutputsEXT:
  ------------------
  |  Branch (11688:5): [True: 0, False: 461]
  ------------------
11689|      0|        builder.createNoResultOp(spv::Op::OpSetMeshOutputsEXT, operands);
11690|      0|        return 0;
11691|      0|    case glslang::EOpCooperativeMatrixMulAddNV:
  ------------------
  |  Branch (11691:5): [True: 0, False: 461]
  ------------------
11692|      0|        opCode = spv::Op::OpCooperativeMatrixMulAddNV;
11693|      0|        break;
11694|      0|    case glslang::EOpHitObjectTraceRayNV:
  ------------------
  |  Branch (11694:5): [True: 0, False: 461]
  ------------------
11695|      0|        builder.createNoResultOp(spv::Op::OpHitObjectTraceRayNV, operands);
11696|      0|        return 0;
11697|      0|    case glslang::EOpHitObjectTraceRayEXT:
  ------------------
  |  Branch (11697:5): [True: 0, False: 461]
  ------------------
11698|      0|        builder.createNoResultOp(spv::Op::OpHitObjectTraceRayEXT, operands);
11699|      0|        return 0;
11700|      0|    case glslang::EOpHitObjectTraceRayMotionNV:
  ------------------
  |  Branch (11700:5): [True: 0, False: 461]
  ------------------
11701|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11702|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11703|      0|        builder.createNoResultOp(spv::Op::OpHitObjectTraceRayMotionNV, operands);
11704|      0|        return 0;
11705|      0|    case glslang::EOpHitObjectTraceRayMotionEXT:
  ------------------
  |  Branch (11705:5): [True: 0, False: 461]
  ------------------
11706|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11707|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11708|      0|        builder.createNoResultOp(spv::Op::OpHitObjectTraceRayMotionEXT, operands);
11709|      0|        return 0;
11710|      0|    case glslang::EOpHitObjectRecordHitNV:
  ------------------
  |  Branch (11710:5): [True: 0, False: 461]
  ------------------
11711|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordHitNV, operands);
11712|      0|        return 0;
11713|      0|    case glslang::EOpHitObjectRecordHitMotionNV:
  ------------------
  |  Branch (11713:5): [True: 0, False: 461]
  ------------------
11714|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11715|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11716|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordHitMotionNV, operands);
11717|      0|        return 0;
11718|      0|    case glslang::EOpHitObjectRecordHitWithIndexNV:
  ------------------
  |  Branch (11718:5): [True: 0, False: 461]
  ------------------
11719|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordHitWithIndexNV, operands);
11720|      0|        return 0;
11721|      0|    case glslang::EOpHitObjectRecordHitWithIndexMotionNV:
  ------------------
  |  Branch (11721:5): [True: 0, False: 461]
  ------------------
11722|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11723|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11724|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordHitWithIndexMotionNV, operands);
11725|      0|        return 0;
11726|      0|    case glslang::EOpHitObjectRecordMissNV:
  ------------------
  |  Branch (11726:5): [True: 0, False: 461]
  ------------------
11727|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordMissNV, operands);
11728|      0|        return 0;
11729|      0|    case glslang::EOpHitObjectRecordMissEXT:
  ------------------
  |  Branch (11729:5): [True: 0, False: 461]
  ------------------
11730|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordMissEXT, operands);
11731|      0|        return 0;
11732|      0|    case glslang::EOpHitObjectRecordMissMotionNV:
  ------------------
  |  Branch (11732:5): [True: 0, False: 461]
  ------------------
11733|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11734|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11735|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordMissMotionNV, operands);
11736|      0|        return 0;
11737|      0|    case glslang::EOpHitObjectRecordMissMotionEXT:
  ------------------
  |  Branch (11737:5): [True: 0, False: 461]
  ------------------
11738|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11739|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11740|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordMissMotionEXT, operands);
11741|      0|        return 0;
11742|      0|    case glslang::EOpHitObjectExecuteShaderNV:
  ------------------
  |  Branch (11742:5): [True: 0, False: 461]
  ------------------
11743|      0|        builder.createNoResultOp(spv::Op::OpHitObjectExecuteShaderNV, operands);
11744|      0|        return 0;
11745|      0|    case glslang::EOpHitObjectExecuteShaderEXT:
  ------------------
  |  Branch (11745:5): [True: 0, False: 461]
  ------------------
11746|      0|        builder.createNoResultOp(spv::Op::OpHitObjectExecuteShaderEXT, operands);
11747|      0|        return 0;
11748|      0|    case glslang::EOpHitObjectIsEmptyNV:
  ------------------
  |  Branch (11748:5): [True: 0, False: 461]
  ------------------
11749|      0|        typeId = builder.makeBoolType();
11750|      0|        opCode = spv::Op::OpHitObjectIsEmptyNV;
11751|      0|        break;
11752|      0|    case glslang::EOpHitObjectIsEmptyEXT:
  ------------------
  |  Branch (11752:5): [True: 0, False: 461]
  ------------------
11753|      0|        typeId = builder.makeBoolType();
11754|      0|        opCode = spv::Op::OpHitObjectIsEmptyEXT;
11755|      0|        break;
11756|      0|    case glslang::EOpHitObjectIsMissNV:
  ------------------
  |  Branch (11756:5): [True: 0, False: 461]
  ------------------
11757|      0|        typeId = builder.makeBoolType();
11758|      0|        opCode = spv::Op::OpHitObjectIsMissNV;
11759|      0|        break;
11760|      0|    case glslang::EOpHitObjectIsMissEXT:
  ------------------
  |  Branch (11760:5): [True: 0, False: 461]
  ------------------
11761|      0|        typeId = builder.makeBoolType();
11762|      0|        opCode = spv::Op::OpHitObjectIsMissEXT;
11763|      0|        break;
11764|      0|    case glslang::EOpHitObjectIsHitNV:
  ------------------
  |  Branch (11764:5): [True: 0, False: 461]
  ------------------
11765|      0|        typeId = builder.makeBoolType();
11766|      0|        opCode = spv::Op::OpHitObjectIsHitNV;
11767|      0|        break;
11768|      0|    case glslang::EOpHitObjectIsSphereHitNV:
  ------------------
  |  Branch (11768:5): [True: 0, False: 461]
  ------------------
11769|      0|        typeId = builder.makeBoolType();
11770|      0|        opCode = spv::Op::OpHitObjectIsSphereHitNV;
11771|      0|        break;
11772|      0|    case glslang::EOpHitObjectIsLSSHitNV:
  ------------------
  |  Branch (11772:5): [True: 0, False: 461]
  ------------------
11773|      0|        typeId = builder.makeBoolType();
11774|      0|        opCode = spv::Op::OpHitObjectIsLSSHitNV;
11775|      0|        break;
11776|      0|    case glslang::EOpHitObjectIsHitEXT:
  ------------------
  |  Branch (11776:5): [True: 0, False: 461]
  ------------------
11777|      0|        typeId = builder.makeBoolType();
11778|      0|        opCode = spv::Op::OpHitObjectIsHitEXT;
11779|      0|        break;
11780|      0|    case glslang::EOpHitObjectGetRayTMinNV:
  ------------------
  |  Branch (11780:5): [True: 0, False: 461]
  ------------------
11781|      0|        typeId = builder.makeFloatType(32);
11782|      0|        opCode = spv::Op::OpHitObjectGetRayTMinNV;
11783|      0|        break;
11784|      0|    case glslang::EOpHitObjectGetRayTMinEXT:
  ------------------
  |  Branch (11784:5): [True: 0, False: 461]
  ------------------
11785|      0|        typeId = builder.makeFloatType(32);
11786|      0|        opCode = spv::Op::OpHitObjectGetRayTMinEXT;
11787|      0|        break;
11788|      0|    case glslang::EOpHitObjectGetRayTMaxNV:
  ------------------
  |  Branch (11788:5): [True: 0, False: 461]
  ------------------
11789|      0|        typeId = builder.makeFloatType(32);
11790|      0|        opCode = spv::Op::OpHitObjectGetRayTMaxNV;
11791|      0|        break;
11792|      0|    case glslang::EOpHitObjectGetRayTMaxEXT:
  ------------------
  |  Branch (11792:5): [True: 0, False: 461]
  ------------------
11793|      0|        typeId = builder.makeFloatType(32);
11794|      0|        opCode = spv::Op::OpHitObjectGetRayTMaxEXT;
11795|      0|        break;
11796|      0|    case glslang::EOpHitObjectGetRayFlagsEXT:
  ------------------
  |  Branch (11796:5): [True: 0, False: 461]
  ------------------
11797|      0|        typeId = builder.makeIntegerType(32, 0);
11798|      0|        opCode = spv::Op::OpHitObjectGetRayFlagsEXT;
11799|      0|        break;
11800|      0|    case glslang::EOpHitObjectGetObjectRayOriginNV:
  ------------------
  |  Branch (11800:5): [True: 0, False: 461]
  ------------------
11801|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11802|      0|        opCode = spv::Op::OpHitObjectGetObjectRayOriginNV;
11803|      0|        break;
11804|      0|    case glslang::EOpHitObjectGetObjectRayOriginEXT:
  ------------------
  |  Branch (11804:5): [True: 0, False: 461]
  ------------------
11805|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11806|      0|        opCode = spv::Op::OpHitObjectGetObjectRayOriginEXT;
11807|      0|        break;
11808|      0|    case glslang::EOpHitObjectGetObjectRayDirectionNV:
  ------------------
  |  Branch (11808:5): [True: 0, False: 461]
  ------------------
11809|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11810|      0|        opCode = spv::Op::OpHitObjectGetObjectRayDirectionNV;
11811|      0|        break;
11812|      0|    case glslang::EOpHitObjectGetObjectRayDirectionEXT:
  ------------------
  |  Branch (11812:5): [True: 0, False: 461]
  ------------------
11813|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11814|      0|        opCode = spv::Op::OpHitObjectGetObjectRayDirectionEXT;
11815|      0|        break;
11816|      0|    case glslang::EOpHitObjectGetWorldRayOriginNV:
  ------------------
  |  Branch (11816:5): [True: 0, False: 461]
  ------------------
11817|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11818|      0|        opCode = spv::Op::OpHitObjectGetWorldRayOriginNV;
11819|      0|        break;
11820|      0|    case glslang::EOpHitObjectGetWorldRayOriginEXT:
  ------------------
  |  Branch (11820:5): [True: 0, False: 461]
  ------------------
11821|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11822|      0|        opCode = spv::Op::OpHitObjectGetWorldRayOriginEXT;
11823|      0|        break;
11824|      0|    case glslang::EOpHitObjectGetWorldRayDirectionNV:
  ------------------
  |  Branch (11824:5): [True: 0, False: 461]
  ------------------
11825|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11826|      0|        opCode = spv::Op::OpHitObjectGetWorldRayDirectionNV;
11827|      0|        break;
11828|      0|    case glslang::EOpHitObjectGetWorldRayDirectionEXT:
  ------------------
  |  Branch (11828:5): [True: 0, False: 461]
  ------------------
11829|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
11830|      0|        opCode = spv::Op::OpHitObjectGetWorldRayDirectionEXT;
11831|      0|        break;
11832|      0|    case glslang::EOpHitObjectGetWorldToObjectNV:
  ------------------
  |  Branch (11832:5): [True: 0, False: 461]
  ------------------
11833|      0|        typeId = builder.makeMatrixType(builder.makeFloatType(32), 4, 3);
11834|      0|        opCode = spv::Op::OpHitObjectGetWorldToObjectNV;
11835|      0|        break;
11836|      0|    case glslang::EOpHitObjectGetWorldToObjectEXT:
  ------------------
  |  Branch (11836:5): [True: 0, False: 461]
  ------------------
11837|      0|        typeId = builder.makeMatrixType(builder.makeFloatType(32), 4, 3);
11838|      0|        opCode = spv::Op::OpHitObjectGetWorldToObjectEXT;
11839|      0|        break;
11840|      0|    case glslang::EOpHitObjectGetObjectToWorldNV:
  ------------------
  |  Branch (11840:5): [True: 0, False: 461]
  ------------------
11841|      0|        typeId = builder.makeMatrixType(builder.makeFloatType(32), 4, 3);
11842|      0|        opCode = spv::Op::OpHitObjectGetObjectToWorldNV;
11843|      0|        break;
11844|      0|    case glslang::EOpHitObjectGetObjectToWorldEXT:
  ------------------
  |  Branch (11844:5): [True: 0, False: 461]
  ------------------
11845|      0|        typeId = builder.makeMatrixType(builder.makeFloatType(32), 4, 3);
11846|      0|        opCode = spv::Op::OpHitObjectGetObjectToWorldEXT;
11847|      0|        break;
11848|      0|    case glslang::EOpHitObjectGetInstanceCustomIndexNV:
  ------------------
  |  Branch (11848:5): [True: 0, False: 461]
  ------------------
11849|      0|        typeId = builder.makeIntegerType(32, 1);
11850|      0|        opCode = spv::Op::OpHitObjectGetInstanceCustomIndexNV;
11851|      0|        break;
11852|      0|    case glslang::EOpHitObjectGetInstanceCustomIndexEXT:
  ------------------
  |  Branch (11852:5): [True: 0, False: 461]
  ------------------
11853|      0|        typeId = builder.makeIntegerType(32, 1);
11854|      0|        opCode = spv::Op::OpHitObjectGetInstanceCustomIndexEXT;
11855|      0|        break;
11856|      0|    case glslang::EOpHitObjectGetInstanceIdNV:
  ------------------
  |  Branch (11856:5): [True: 0, False: 461]
  ------------------
11857|      0|        typeId = builder.makeIntegerType(32, 1);
11858|      0|        opCode = spv::Op::OpHitObjectGetInstanceIdNV;
11859|      0|        break;
11860|      0|    case glslang::EOpHitObjectGetInstanceIdEXT:
  ------------------
  |  Branch (11860:5): [True: 0, False: 461]
  ------------------
11861|      0|        typeId = builder.makeIntegerType(32, 1);
11862|      0|        opCode = spv::Op::OpHitObjectGetInstanceIdEXT;
11863|      0|        break;
11864|      0|    case glslang::EOpHitObjectGetGeometryIndexNV:
  ------------------
  |  Branch (11864:5): [True: 0, False: 461]
  ------------------
11865|      0|        typeId = builder.makeIntegerType(32, 1);
11866|      0|        opCode = spv::Op::OpHitObjectGetGeometryIndexNV;
11867|      0|        break;
11868|      0|    case glslang::EOpHitObjectGetGeometryIndexEXT:
  ------------------
  |  Branch (11868:5): [True: 0, False: 461]
  ------------------
11869|      0|        typeId = builder.makeIntegerType(32, 1);
11870|      0|        opCode = spv::Op::OpHitObjectGetGeometryIndexEXT;
11871|      0|        break;
11872|      0|    case glslang::EOpHitObjectGetPrimitiveIndexNV:
  ------------------
  |  Branch (11872:5): [True: 0, False: 461]
  ------------------
11873|      0|        typeId = builder.makeIntegerType(32, 1);
11874|      0|        opCode = spv::Op::OpHitObjectGetPrimitiveIndexNV;
11875|      0|        break;
11876|      0|    case glslang::EOpHitObjectGetPrimitiveIndexEXT:
  ------------------
  |  Branch (11876:5): [True: 0, False: 461]
  ------------------
11877|      0|        typeId = builder.makeIntegerType(32, 1);
11878|      0|        opCode = spv::Op::OpHitObjectGetPrimitiveIndexEXT;
11879|      0|        break;
11880|      0|    case glslang::EOpHitObjectGetHitKindNV:
  ------------------
  |  Branch (11880:5): [True: 0, False: 461]
  ------------------
11881|      0|        typeId = builder.makeIntegerType(32, 0);
11882|      0|        opCode = spv::Op::OpHitObjectGetHitKindNV;
11883|      0|        break;
11884|      0|    case glslang::EOpHitObjectGetHitKindEXT:
  ------------------
  |  Branch (11884:5): [True: 0, False: 461]
  ------------------
11885|      0|        typeId = builder.makeIntegerType(32, 0);
11886|      0|        opCode = spv::Op::OpHitObjectGetHitKindEXT;
11887|      0|        break;
11888|      0|    case glslang::EOpHitObjectGetCurrentTimeNV:
  ------------------
  |  Branch (11888:5): [True: 0, False: 461]
  ------------------
11889|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11890|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11891|      0|        typeId = builder.makeFloatType(32);
11892|      0|        opCode = spv::Op::OpHitObjectGetCurrentTimeNV;
11893|      0|        break;
11894|      0|    case glslang::EOpHitObjectGetCurrentTimeEXT:
  ------------------
  |  Branch (11894:5): [True: 0, False: 461]
  ------------------
11895|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11896|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11897|      0|        typeId = builder.makeFloatType(32);
11898|      0|        opCode = spv::Op::OpHitObjectGetCurrentTimeEXT;
11899|      0|        break;
11900|      0|    case glslang::EOpHitObjectGetShaderBindingTableRecordIndexNV:
  ------------------
  |  Branch (11900:5): [True: 0, False: 461]
  ------------------
11901|      0|        typeId = builder.makeIntegerType(32, 0);
11902|      0|        opCode = spv::Op::OpHitObjectGetShaderBindingTableRecordIndexNV;
11903|      0|        return 0;
11904|      0|    case glslang::EOpHitObjectGetShaderBindingTableRecordIndexEXT:
  ------------------
  |  Branch (11904:5): [True: 0, False: 461]
  ------------------
11905|      0|        typeId = builder.makeIntegerType(32, 0);
11906|      0|        opCode = spv::Op::OpHitObjectGetShaderBindingTableRecordIndexEXT;
11907|      0|        return 0;
11908|      0|    case glslang::EOpHitObjectGetAttributesNV:
  ------------------
  |  Branch (11908:5): [True: 0, False: 461]
  ------------------
11909|      0|        builder.createNoResultOp(spv::Op::OpHitObjectGetAttributesNV, operands);
11910|      0|        return 0;
11911|      0|    case glslang::EOpHitObjectGetAttributesEXT:
  ------------------
  |  Branch (11911:5): [True: 0, False: 461]
  ------------------
11912|      0|        builder.createNoResultOp(spv::Op::OpHitObjectGetAttributesEXT, operands);
11913|      0|        return 0;
11914|      0|    case glslang::EOpHitObjectRecordFromQueryEXT:
  ------------------
  |  Branch (11914:5): [True: 0, False: 461]
  ------------------
11915|      0|        builder.createNoResultOp(spv::Op::OpHitObjectRecordFromQueryEXT, operands);
11916|      0|        return 0;
11917|      0|    case glslang::EOpHitObjectGetShaderRecordBufferHandleNV:
  ------------------
  |  Branch (11917:5): [True: 0, False: 461]
  ------------------
11918|      0|        typeId = builder.makeVectorType(builder.makeUintType(32), 2);
11919|      0|        opCode = spv::Op::OpHitObjectGetShaderRecordBufferHandleNV;
11920|      0|        break;
11921|      0|    case glslang::EOpHitObjectGetClusterIdNV:
  ------------------
  |  Branch (11921:5): [True: 0, False: 461]
  ------------------
11922|      0|        typeId = builder.makeIntegerType(32, 1);
11923|      0|        opCode = spv::Op::OpHitObjectGetClusterIdNV;
11924|      0|        break;
11925|      0|    case glslang::EOpHitObjectGetShaderRecordBufferHandleEXT:
  ------------------
  |  Branch (11925:5): [True: 0, False: 461]
  ------------------
11926|      0|        typeId = builder.makeVectorType(builder.makeUintType(32), 2);
11927|      0|        opCode = spv::Op::OpHitObjectGetShaderRecordBufferHandleEXT;
11928|      0|        break;
11929|      0|    case glslang::EOpHitObjectSetShaderBindingTableRecordIndexEXT:
  ------------------
  |  Branch (11929:5): [True: 0, False: 461]
  ------------------
11930|      0|        builder.createNoResultOp(spv::Op::OpHitObjectSetShaderBindingTableRecordIndexEXT, operands);
11931|      0|        return 0;
11932|      0|    case glslang::EOpReorderThreadNV: {
  ------------------
  |  Branch (11932:5): [True: 0, False: 461]
  ------------------
11933|      0|        if (operands.size() == 2) {
  ------------------
  |  Branch (11933:13): [True: 0, False: 0]
  ------------------
11934|      0|            builder.createNoResultOp(spv::Op::OpReorderThreadWithHintNV, operands);
11935|      0|        } else {
11936|      0|            builder.createNoResultOp(spv::Op::OpReorderThreadWithHitObjectNV, operands);
11937|      0|        }
11938|      0|        return 0;
11939|      0|    }
11940|      0|    case glslang::EOpReorderThreadEXT: {
  ------------------
  |  Branch (11940:5): [True: 0, False: 461]
  ------------------
11941|      0|        if (operands.size() == 2) {
  ------------------
  |  Branch (11941:13): [True: 0, False: 0]
  ------------------
11942|      0|            builder.createNoResultOp(spv::Op::OpReorderThreadWithHintEXT, operands);
11943|      0|        } else {
11944|      0|            builder.createNoResultOp(spv::Op::OpReorderThreadWithHitObjectEXT, operands);
11945|      0|        }
11946|      0|        return 0;
11947|      0|    }
11948|       |
11949|      0|    case glslang::EOpHitObjectReorderExecuteEXT: {
  ------------------
  |  Branch (11949:5): [True: 0, False: 461]
  ------------------
11950|      0|        if (operands.size() == 2) {
  ------------------
  |  Branch (11950:13): [True: 0, False: 0]
  ------------------
11951|      0|            builder.createNoResultOp(spv::Op::OpHitObjectReorderExecuteShaderEXT, operands);
11952|      0|        } else {
11953|       |            // GLSL intrinsic is
11954|       |            // hitObjectReorderExecuteEXT(hitObjectEXT hitObject, uint hint, uint bits,int payload) while
11955|       |            // SPIRV is hitObject id , payload id, optional hint id, optional bits id hence reorder operands
11956|      0|            builder.createNoResultOp(spv::Op::OpHitObjectReorderExecuteShaderEXT, {operands[0], operands[3], operands[1], operands[2]});
11957|      0|        }
11958|      0|        return 0;
11959|      0|    }
11960|       |
11961|      0|    case glslang::EOpHitObjectTraceReorderExecuteEXT: {
  ------------------
  |  Branch (11961:5): [True: 0, False: 461]
  ------------------
11962|      0|        if (operands.size() == 12) {
  ------------------
  |  Branch (11962:13): [True: 0, False: 0]
  ------------------
11963|      0|            builder.createNoResultOp(spv::Op::OpHitObjectTraceReorderExecuteEXT, operands);
11964|      0|        } else {
11965|      0|            std::vector<spv::Id> argOperands;
11966|      0|            std::copy(operands.begin(), operands.begin() + 11, std::back_inserter(argOperands));
11967|      0|            argOperands.push_back(operands[13]);
11968|      0|            argOperands.push_back(operands[11]);
11969|      0|            argOperands.push_back(operands[12]);
11970|      0|            builder.createNoResultOp(spv::Op::OpHitObjectTraceReorderExecuteEXT, argOperands);
11971|      0|        }
11972|      0|        return 0;
11973|      0|    }
11974|      0|    case glslang::EOpHitObjectTraceMotionReorderExecuteEXT: {
  ------------------
  |  Branch (11974:5): [True: 0, False: 461]
  ------------------
11975|      0|        builder.addExtension(spv::E_SPV_NV_ray_tracing_motion_blur);
11976|      0|        builder.addCapability(spv::Capability::RayTracingMotionBlurNV);
11977|      0|        if (operands.size() == 13) {
  ------------------
  |  Branch (11977:13): [True: 0, False: 0]
  ------------------
11978|      0|            builder.createNoResultOp(spv::Op::OpHitObjectTraceMotionReorderExecuteEXT, operands);
11979|      0|        } else {
11980|      0|            std::vector<spv::Id> argOperands;
11981|      0|            std::copy(operands.begin(), operands.begin() + 12, std::back_inserter(argOperands));
11982|      0|            argOperands.push_back(operands[14]);
11983|      0|            argOperands.push_back(operands[12]);
11984|      0|            argOperands.push_back(operands[13]);
11985|      0|            builder.createNoResultOp(spv::Op::OpHitObjectTraceMotionReorderExecuteEXT, argOperands);
11986|      0|        }
11987|      0|        return 0;
11988|      0|    }
11989|      0|    case glslang::EOpImageSampleWeightedQCOM:
  ------------------
  |  Branch (11989:5): [True: 0, False: 461]
  ------------------
11990|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
11991|      0|        opCode = spv::Op::OpImageSampleWeightedQCOM;
11992|      0|        addImageProcessingQCOMDecoration(operands[2], spv::Decoration::WeightTextureQCOM);
11993|      0|        break;
11994|      0|    case glslang::EOpImageBoxFilterQCOM:
  ------------------
  |  Branch (11994:5): [True: 0, False: 461]
  ------------------
11995|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
11996|      0|        opCode = spv::Op::OpImageBoxFilterQCOM;
11997|      0|        break;
11998|      0|    case glslang::EOpImageBlockMatchSADQCOM:
  ------------------
  |  Branch (11998:5): [True: 0, False: 461]
  ------------------
11999|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
12000|      0|        opCode = spv::Op::OpImageBlockMatchSADQCOM;
12001|      0|        addImageProcessingQCOMDecoration(operands[0], spv::Decoration::BlockMatchTextureQCOM);
12002|      0|        addImageProcessingQCOMDecoration(operands[2], spv::Decoration::BlockMatchTextureQCOM);
12003|      0|        break;
12004|      0|    case glslang::EOpImageBlockMatchSSDQCOM:
  ------------------
  |  Branch (12004:5): [True: 0, False: 461]
  ------------------
12005|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
12006|      0|        opCode = spv::Op::OpImageBlockMatchSSDQCOM;
12007|      0|        addImageProcessingQCOMDecoration(operands[0], spv::Decoration::BlockMatchTextureQCOM);
12008|      0|        addImageProcessingQCOMDecoration(operands[2], spv::Decoration::BlockMatchTextureQCOM);
12009|      0|        break;
12010|       |
12011|      0|    case glslang::EOpFetchMicroTriangleVertexBarycentricNV:
  ------------------
  |  Branch (12011:5): [True: 0, False: 461]
  ------------------
12012|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 2);
12013|      0|        opCode = spv::Op::OpFetchMicroTriangleVertexBarycentricNV;
12014|      0|        break;
12015|       |
12016|      0|    case glslang::EOpFetchMicroTriangleVertexPositionNV:
  ------------------
  |  Branch (12016:5): [True: 0, False: 461]
  ------------------
12017|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 3);
12018|      0|        opCode = spv::Op::OpFetchMicroTriangleVertexPositionNV;
12019|      0|        break;
12020|       |
12021|      0|    case glslang::EOpImageBlockMatchWindowSSDQCOM:
  ------------------
  |  Branch (12021:5): [True: 0, False: 461]
  ------------------
12022|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
12023|      0|        opCode = spv::Op::OpImageBlockMatchWindowSSDQCOM;
12024|      0|        addImageProcessing2QCOMDecoration(operands[0], false);
12025|      0|        addImageProcessing2QCOMDecoration(operands[2], false);
12026|      0|        break;
12027|      0|    case glslang::EOpImageBlockMatchWindowSADQCOM:
  ------------------
  |  Branch (12027:5): [True: 0, False: 461]
  ------------------
12028|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
12029|      0|        opCode = spv::Op::OpImageBlockMatchWindowSADQCOM;
12030|      0|        addImageProcessing2QCOMDecoration(operands[0], false);
12031|      0|        addImageProcessing2QCOMDecoration(operands[2], false);
12032|      0|        break;
12033|      0|    case glslang::EOpImageBlockMatchGatherSSDQCOM:
  ------------------
  |  Branch (12033:5): [True: 0, False: 461]
  ------------------
12034|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
12035|      0|        opCode = spv::Op::OpImageBlockMatchGatherSSDQCOM;
12036|      0|        addImageProcessing2QCOMDecoration(operands[0], true);
12037|      0|        addImageProcessing2QCOMDecoration(operands[2], true);
12038|      0|        break;
12039|      0|    case glslang::EOpImageBlockMatchGatherSADQCOM:
  ------------------
  |  Branch (12039:5): [True: 0, False: 461]
  ------------------
12040|      0|        typeId = builder.makeVectorType(builder.makeFloatType(32), 4);
12041|      0|        opCode = spv::Op::OpImageBlockMatchGatherSADQCOM;
12042|      0|        addImageProcessing2QCOMDecoration(operands[0], true);
12043|      0|        addImageProcessing2QCOMDecoration(operands[2], true);
12044|      0|        break;
12045|      0|    case glslang::EOpCreateTensorLayoutNV:
  ------------------
  |  Branch (12045:5): [True: 0, False: 461]
  ------------------
12046|      0|        return builder.createOp(spv::Op::OpCreateTensorLayoutNV, typeId, std::vector<spv::Id>{});
12047|      0|    case glslang::EOpCreateTensorViewNV:
  ------------------
  |  Branch (12047:5): [True: 0, False: 461]
  ------------------
12048|      0|        return builder.createOp(spv::Op::OpCreateTensorViewNV, typeId, std::vector<spv::Id>{});
12049|      0|    case glslang::EOpTensorLayoutSetBlockSizeNV:
  ------------------
  |  Branch (12049:5): [True: 0, False: 461]
  ------------------
12050|      0|        opCode = spv::Op::OpTensorLayoutSetBlockSizeNV;
12051|      0|        break;
12052|      0|    case glslang::EOpTensorLayoutSetDimensionNV:
  ------------------
  |  Branch (12052:5): [True: 0, False: 461]
  ------------------
12053|      0|        opCode = spv::Op::OpTensorLayoutSetDimensionNV;
12054|      0|        break;
12055|      0|    case glslang::EOpTensorLayoutSetStrideNV:
  ------------------
  |  Branch (12055:5): [True: 0, False: 461]
  ------------------
12056|      0|        opCode = spv::Op::OpTensorLayoutSetStrideNV;
12057|      0|        break;
12058|      0|    case glslang::EOpTensorLayoutSliceNV:
  ------------------
  |  Branch (12058:5): [True: 0, False: 461]
  ------------------
12059|      0|        opCode = spv::Op::OpTensorLayoutSliceNV;
12060|      0|        break;
12061|      0|    case glslang::EOpTensorLayoutSetClampValueNV:
  ------------------
  |  Branch (12061:5): [True: 0, False: 461]
  ------------------
12062|      0|        opCode = spv::Op::OpTensorLayoutSetClampValueNV;
12063|      0|        break;
12064|      0|    case glslang::EOpTensorViewSetDimensionNV:
  ------------------
  |  Branch (12064:5): [True: 0, False: 461]
  ------------------
12065|      0|        opCode = spv::Op::OpTensorViewSetDimensionNV;
12066|      0|        break;
12067|      0|    case glslang::EOpTensorViewSetStrideNV:
  ------------------
  |  Branch (12067:5): [True: 0, False: 461]
  ------------------
12068|      0|        opCode = spv::Op::OpTensorViewSetStrideNV;
12069|      0|        break;
12070|      0|    case glslang::EOpTensorViewSetClipNV:
  ------------------
  |  Branch (12070:5): [True: 0, False: 461]
  ------------------
12071|      0|        opCode = spv::Op::OpTensorViewSetClipNV;
12072|      0|        break;
12073|      0|    case glslang::EOpCooperativeMatrixGetCoordinateEXT:
  ------------------
  |  Branch (12073:5): [True: 0, False: 461]
  ------------------
12074|      0|        opCode = spv::Op::OpCooperativeMatrixGetCoordinateEXT;
12075|      0|        break;
12076|      0|    case glslang::EOpBitcastExtractE2M1:
  ------------------
  |  Branch (12076:5): [True: 0, False: 461]
  ------------------
12077|      0|    case glslang::EOpBitcastExtractE3M2:
  ------------------
  |  Branch (12077:5): [True: 0, False: 461]
  ------------------
12078|      0|    case glslang::EOpBitcastExtractE2M3:
  ------------------
  |  Branch (12078:5): [True: 0, False: 461]
  ------------------
12079|      0|        {
12080|      0|            spv::Id scalarTypeId = op == glslang::EOpBitcastExtractE2M1 ? builder.makeFloatE2M1Type() :
  ------------------
  |  Branch (12080:36): [True: 0, False: 0]
  ------------------
12081|      0|                                   op == glslang::EOpBitcastExtractE3M2 ? builder.makeFloatE3M2Type() : builder.makeFloatE2M3Type();
  ------------------
  |  Branch (12081:36): [True: 0, False: 0]
  ------------------
12082|      0|            opCode = spv::Op::OpBitcastExtractEXT;
12083|      0|            typeId = scalarTypeId;
12084|      0|            if (builder.isVectorType(builder.getTypeId(operands[0]))) {
  ------------------
  |  Branch (12084:17): [True: 0, False: 0]
  ------------------
12085|      0|                int vecSize = builder.getNumTypeComponents(builder.getTypeId(operands[0]));
12086|      0|                typeId = builder.makeVectorType(typeId, vecSize);
12087|      0|            }
12088|      0|            builder.addExtension(spv::E_SPV_EXT_ocp_microscaling_types);
12089|      0|            builder.addCapability(spv::Capability::BitcastExtractEXT);
12090|      0|            break;
12091|      0|        }
12092|      0|    default:
  ------------------
  |  Branch (12092:5): [True: 0, False: 461]
  ------------------
12093|      0|        return 0;
12094|    461|    }
12095|       |
12096|    347|    spv::Id id = 0;
12097|    347|    if (libCall >= 0) {
  ------------------
  |  Branch (12097:9): [True: 179, False: 168]
  ------------------
12098|       |        // Use an extended instruction from the standard library.
12099|       |        // Construct the call arguments, without modifying the original operands vector.
12100|       |        // We might need the remaining arguments, e.g. in the EOpFrexp case.
12101|    179|        std::vector<spv::Id> callArguments(operands.begin(), operands.begin() + consumedOperands);
12102|    179|        id = builder.createBuiltinCall(typeId, extBuiltins >= 0 ? (spv::Id)extBuiltins : stdBuiltins, libCall, callArguments);
  ------------------
  |  Branch (12102:48): [True: 0, False: 179]
  ------------------
12103|    179|    } else if (opCode == spv::Op::OpDot && !isFloat) {
  ------------------
  |  Branch (12103:16): [True: 0, False: 168]
  |  Branch (12103:44): [True: 0, False: 0]
  ------------------
12104|       |        // int dot(int, int)
12105|       |        // NOTE: never called for scalar/vector1, this is turned into simple mul before this can be reached
12106|      0|        const int componentCount = builder.getNumComponents(operands[0]);
12107|      0|        spv::Id mulOp = builder.createBinOp(spv::Op::OpIMul, builder.getTypeId(operands[0]), operands[0], operands[1]);
12108|      0|        builder.setPrecision(mulOp, precision);
12109|      0|        id = builder.createCompositeExtract(mulOp, typeId, 0);
12110|      0|        for (int i = 1; i < componentCount; ++i) {
  ------------------
  |  Branch (12110:25): [True: 0, False: 0]
  ------------------
12111|      0|            builder.setPrecision(id, precision);
12112|      0|            id = builder.createBinOp(spv::Op::OpIAdd, typeId, id, builder.createCompositeExtract(mulOp, typeId, i));
12113|      0|        }
12114|    168|    } else {
12115|    168|        switch (consumedOperands) {
12116|      0|        case 0:
  ------------------
  |  Branch (12116:9): [True: 0, False: 168]
  ------------------
12117|       |            // should all be handled by visitAggregate and createNoArgOperation
12118|      0|            assert(0);
12119|      0|            return 0;
12120|      0|        case 1:
  ------------------
  |  Branch (12120:9): [True: 0, False: 168]
  ------------------
12121|       |            // should all be handled by createUnaryOperation
12122|      0|            assert(0);
12123|      0|            return 0;
12124|    120|        case 2:
  ------------------
  |  Branch (12124:9): [True: 120, False: 48]
  ------------------
12125|    120|            id = builder.createBinOp(opCode, typeId, operands[0], operands[1]);
12126|    120|            break;
12127|     48|        default:
  ------------------
  |  Branch (12127:9): [True: 48, False: 120]
  ------------------
12128|       |            // anything 3 or over doesn't have l-value operands, so all should be consumed
12129|     48|            assert(consumedOperands == operands.size());
12130|     48|            id = builder.createOp(opCode, typeId, operands);
12131|     48|            break;
12132|    168|        }
12133|    168|    }
12134|       |
12135|       |    // Decode the return types that were structures
12136|    347|    switch (op) {
12137|      0|    case glslang::EOpAddCarry:
  ------------------
  |  Branch (12137:5): [True: 0, False: 347]
  ------------------
12138|      0|    case glslang::EOpSubBorrow:
  ------------------
  |  Branch (12138:5): [True: 0, False: 347]
  ------------------
12139|      0|        builder.createStore(builder.createCompositeExtract(id, typeId0, 1), operands[2]);
12140|      0|        id = builder.createCompositeExtract(id, typeId0, 0);
12141|      0|        break;
12142|      0|    case glslang::EOpUMulExtended:
  ------------------
  |  Branch (12142:5): [True: 0, False: 347]
  ------------------
12143|      0|    case glslang::EOpIMulExtended:
  ------------------
  |  Branch (12143:5): [True: 0, False: 347]
  ------------------
12144|      0|        builder.createStore(builder.createCompositeExtract(id, typeId0, 0), operands[3]);
12145|      0|        builder.createStore(builder.createCompositeExtract(id, typeId0, 1), operands[2]);
12146|      0|        break;
12147|      0|    case glslang::EOpModf:
  ------------------
  |  Branch (12147:5): [True: 0, False: 347]
  ------------------
12148|      0|        {
12149|      0|            assert(operands.size() == 2);
12150|      0|            builder.createStore(builder.createCompositeExtract(id, typeId0, 1), operands[1]);
12151|      0|            id = builder.createCompositeExtract(id, typeId0, 0);
12152|      0|        }
12153|      0|        break;
12154|     12|    case glslang::EOpFrexp:
  ------------------
  |  Branch (12154:5): [True: 12, False: 335]
  ------------------
12155|     12|        {
12156|     12|            assert(operands.size() == 2);
12157|     12|            if (builder.isFloatType(builder.getScalarTypeId(typeId1))) {
  ------------------
  |  Branch (12157:17): [True: 0, False: 12]
  ------------------
12158|       |                // "exp" is floating-point type (from HLSL intrinsic)
12159|      0|                spv::Id member1 = builder.createCompositeExtract(id, frexpIntType, 1);
12160|      0|                member1 = builder.createUnaryOp(spv::Op::OpConvertSToF, typeId1, member1);
12161|      0|                builder.createStore(member1, operands[1]);
12162|      0|            } else
12163|       |                // "exp" is integer type (from GLSL built-in function)
12164|     12|                builder.createStore(builder.createCompositeExtract(id, frexpIntType, 1), operands[1]);
12165|     12|            id = builder.createCompositeExtract(id, typeId0, 0);
12166|     12|        }
12167|     12|        break;
12168|    335|    default:
  ------------------
  |  Branch (12168:5): [True: 335, False: 12]
  ------------------
12169|    335|        break;
12170|    347|    }
12171|       |
12172|    347|    return builder.setPrecision(id, precision);
12173|    347|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser9visitLoopEN7glslang6TVisitEPNS1_11TIntermLoopE:
 5574|     11|{
 5575|     11|    auto blocks = builder.makeNewLoop();
 5576|     11|    builder.createBranch(true, &blocks.head);
 5577|       |
 5578|       |    // Loop control:
 5579|     11|    std::vector<unsigned int> operands;
 5580|     11|    const spv::LoopControlMask control = TranslateLoopControl(*node, operands);
 5581|       |
 5582|       |    // Spec requires back edges to target header blocks, and every header block
 5583|       |    // must dominate its merge block.  Make a header block first to ensure these
 5584|       |    // conditions are met.  By definition, it will contain OpLoopMerge, followed
 5585|       |    // by a block-ending branch.  But we don't want to put any other body/test
 5586|       |    // instructions in it, since the body/test may have arbitrary instructions,
 5587|       |    // including merges of its own.
 5588|     11|    builder.setBuildPoint(&blocks.head);
 5589|     11|    builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 5590|     11|    builder.createLoopMerge(&blocks.merge, &blocks.continue_target, control, operands);
 5591|     11|    if (node->testFirst() && node->getTest()) {
  ------------------
  |  Branch (5591:9): [True: 11, False: 0]
  |  Branch (5591:30): [True: 11, False: 0]
  ------------------
 5592|     11|        spv::Block& test = builder.makeNewBlock();
 5593|     11|        builder.createBranch(true, &test);
 5594|       |
 5595|     11|        builder.setBuildPoint(&test);
 5596|     11|        node->getTest()->traverse(this);
 5597|     11|        spv::Id condition = accessChainLoad(node->getTestExpr()->getType());
 5598|     11|        builder.createConditionalBranch(condition, &blocks.body, &blocks.merge);
 5599|       |
 5600|     11|        builder.setBuildPoint(&blocks.body);
 5601|     11|        breakForLoop.push(true);
 5602|     11|        if (node->getBody())
  ------------------
  |  Branch (5602:13): [True: 11, False: 0]
  ------------------
 5603|     11|            node->getBody()->traverse(this);
 5604|     11|        builder.createBranch(true, &blocks.continue_target);
 5605|     11|        breakForLoop.pop();
 5606|       |
 5607|     11|        builder.setBuildPoint(&blocks.continue_target);
 5608|     11|        if (node->getTerminal())
  ------------------
  |  Branch (5608:13): [True: 6, False: 5]
  ------------------
 5609|      6|            node->getTerminal()->traverse(this);
 5610|     11|        builder.createBranch(true, &blocks.head);
 5611|     11|    } else {
 5612|      0|        builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 5613|      0|        builder.createBranch(true, &blocks.body);
 5614|       |
 5615|      0|        breakForLoop.push(true);
 5616|      0|        builder.setBuildPoint(&blocks.body);
 5617|      0|        if (node->getBody())
  ------------------
  |  Branch (5617:13): [True: 0, False: 0]
  ------------------
 5618|      0|            node->getBody()->traverse(this);
 5619|      0|        builder.createBranch(true, &blocks.continue_target);
 5620|      0|        breakForLoop.pop();
 5621|       |
 5622|      0|        builder.setBuildPoint(&blocks.continue_target);
 5623|      0|        if (node->getTerminal())
  ------------------
  |  Branch (5623:13): [True: 0, False: 0]
  ------------------
 5624|      0|            node->getTerminal()->traverse(this);
 5625|      0|        if (node->getTest()) {
  ------------------
  |  Branch (5625:13): [True: 0, False: 0]
  ------------------
 5626|      0|            node->getTest()->traverse(this);
 5627|      0|            spv::Id condition =
 5628|      0|                accessChainLoad(node->getTestExpr()->getType());
 5629|      0|            builder.createConditionalBranch(condition, &blocks.head, &blocks.merge);
 5630|      0|        } else {
 5631|       |            // TODO: unless there was a break/return/discard instruction
 5632|       |            // somewhere in the body, this is an infinite loop, so we should
 5633|       |            // issue a warning.
 5634|      0|            builder.createBranch(true, &blocks.head);
 5635|      0|        }
 5636|      0|    }
 5637|     11|    builder.setBuildPoint(&blocks.merge);
 5638|     11|    builder.closeLoop();
 5639|     11|    return false;
 5640|     11|}
GlslangToSpv.cpp:_ZNK12_GLOBAL__N_122TGlslangToSpvTraverser20TranslateLoopControlERKN7glslang11TIntermLoopERNSt3__16vectorIjNS5_9allocatorIjEEEE:
 1461|     11|{
 1462|     11|    spv::LoopControlMask control = spv::LoopControlMask::MaskNone;
 1463|       |
 1464|     11|    if (loopNode.getDontUnroll())
  ------------------
  |  Branch (1464:9): [True: 0, False: 11]
  ------------------
 1465|      0|        control = control | spv::LoopControlMask::DontUnroll;
 1466|     11|    if (loopNode.getUnroll())
  ------------------
  |  Branch (1466:9): [True: 0, False: 11]
  ------------------
 1467|      0|        control = control | spv::LoopControlMask::Unroll;
 1468|     11|    if (unsigned(loopNode.getLoopDependency()) == glslang::TIntermLoop::dependencyInfinite)
  ------------------
  |  Branch (1468:9): [True: 0, False: 11]
  ------------------
 1469|      0|        control = control | spv::LoopControlMask::DependencyInfinite;
 1470|     11|    else if (loopNode.getLoopDependency() > 0) {
  ------------------
  |  Branch (1470:14): [True: 0, False: 11]
  ------------------
 1471|      0|        control = control | spv::LoopControlMask::DependencyLength;
 1472|      0|        operands.push_back((unsigned int)loopNode.getLoopDependency());
 1473|      0|    }
 1474|     11|    if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_4) {
  ------------------
  |  Branch (1474:9): [True: 0, False: 11]
  ------------------
 1475|      0|        if (loopNode.getMinIterations() > 0) {
  ------------------
  |  Branch (1475:13): [True: 0, False: 0]
  ------------------
 1476|      0|            control = control | spv::LoopControlMask::MinIterations;
 1477|      0|            operands.push_back(loopNode.getMinIterations());
 1478|      0|        }
 1479|      0|        if (loopNode.getMaxIterations() < glslang::TIntermLoop::iterationsInfinite) {
  ------------------
  |  Branch (1479:13): [True: 0, False: 0]
  ------------------
 1480|      0|            control = control | spv::LoopControlMask::MaxIterations;
 1481|      0|            operands.push_back(loopNode.getMaxIterations());
 1482|      0|        }
 1483|      0|        if (loopNode.getIterationMultiple() > 1) {
  ------------------
  |  Branch (1483:13): [True: 0, False: 0]
  ------------------
 1484|      0|            control = control | spv::LoopControlMask::IterationMultiple;
 1485|      0|            operands.push_back(loopNode.getIterationMultiple());
 1486|      0|        }
 1487|      0|        if (loopNode.getPeelCount() > 0) {
  ------------------
  |  Branch (1487:13): [True: 0, False: 0]
  ------------------
 1488|      0|            control = control | spv::LoopControlMask::PeelCount;
 1489|      0|            operands.push_back(loopNode.getPeelCount());
 1490|      0|        }
 1491|      0|        if (loopNode.getPartialCount() > 0) {
  ------------------
  |  Branch (1491:13): [True: 0, False: 0]
  ------------------
 1492|      0|            control = control | spv::LoopControlMask::PartialCount;
 1493|      0|            operands.push_back(loopNode.getPartialCount());
 1494|      0|        }
 1495|      0|    }
 1496|     11|    if (loopNode.getMultipleWaitQueuesQCOM() != loopNode.noMultipleQaitQueues) {
  ------------------
  |  Branch (1496:9): [True: 0, False: 11]
  ------------------
 1497|      0|        control = control | spv::LoopControlMask::MultipleWaitQueuesQCOM;
 1498|      0|        operands.push_back(loopNode.getMultipleWaitQueuesQCOM());
 1499|      0|    }
 1500|       |
 1501|     11|    return control;
 1502|     11|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser11visitBranchEN7glslang6TVisitEPNS1_13TIntermBranchE:
 5643|    138|{
 5644|    138|    if (node->getExpression())
  ------------------
  |  Branch (5644:9): [True: 102, False: 36]
  ------------------
 5645|    102|        node->getExpression()->traverse(this);
 5646|       |
 5647|    138|    builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
 5648|       |
 5649|    138|    switch (node->getFlowOp()) {
 5650|      0|    case glslang::EOpKill:
  ------------------
  |  Branch (5650:5): [True: 0, False: 138]
  ------------------
 5651|      0|        if (glslangIntermediate->getSpv().spv >= glslang::EShTargetSpv_1_6) {
  ------------------
  |  Branch (5651:13): [True: 0, False: 0]
  ------------------
 5652|      0|            if (glslangIntermediate->getDiscardIsTerminate() && glslangIntermediate->getSource() == glslang::EShSourceGlsl) {
  ------------------
  |  Branch (5652:17): [True: 0, False: 0]
  |  Branch (5652:65): [True: 0, False: 0]
  ------------------
 5653|      0|                builder.makeStatementTerminator(spv::Op::OpTerminateInvocation, "post-terminate-invocation");
 5654|      0|            } else {
 5655|      0|                builder.addCapability(spv::Capability::DemoteToHelperInvocation);
 5656|      0|                builder.createNoResultOp(spv::Op::OpDemoteToHelperInvocationEXT);
 5657|      0|            }
 5658|      0|        } else {
 5659|      0|            builder.makeStatementTerminator(spv::Op::OpKill, "post-discard");
 5660|      0|        }
 5661|      0|        break;
 5662|      0|    case glslang::EOpTerminateInvocation:
  ------------------
  |  Branch (5662:5): [True: 0, False: 138]
  ------------------
 5663|      0|        builder.addExtension(spv::E_SPV_KHR_terminate_invocation);
 5664|      0|        builder.makeStatementTerminator(spv::Op::OpTerminateInvocation, "post-terminate-invocation");
 5665|      0|        break;
 5666|     34|    case glslang::EOpBreak:
  ------------------
  |  Branch (5666:5): [True: 34, False: 104]
  ------------------
 5667|     34|        if (breakForLoop.top())
  ------------------
  |  Branch (5667:13): [True: 0, False: 34]
  ------------------
 5668|      0|            builder.createLoopExit();
 5669|     34|        else
 5670|     34|            builder.addSwitchBreak(false);
 5671|     34|        break;
 5672|      0|    case glslang::EOpContinue:
  ------------------
  |  Branch (5672:5): [True: 0, False: 138]
  ------------------
 5673|      0|        builder.createLoopContinue();
 5674|      0|        break;
 5675|    104|    case glslang::EOpReturn:
  ------------------
  |  Branch (5675:5): [True: 104, False: 34]
  ------------------
 5676|    104|        if (node->getExpression() != nullptr) {
  ------------------
  |  Branch (5676:13): [True: 102, False: 2]
  ------------------
 5677|    102|            const glslang::TType& glslangReturnType = node->getExpression()->getType();
 5678|    102|            spv::Id returnId = accessChainLoad(glslangReturnType);
 5679|    102|            if (builder.getTypeId(returnId) != currentFunction->getReturnType() ||
  ------------------
  |  Branch (5679:17): [True: 0, False: 102]
  ------------------
 5680|    102|                TranslatePrecisionDecoration(glslangReturnType) != currentFunction->getReturnPrecision()) {
  ------------------
  |  Branch (5680:17): [True: 0, False: 102]
  ------------------
 5681|      0|                builder.clearAccessChain();
 5682|      0|                spv::Id copyId = builder.createVariable(currentFunction->getReturnPrecision(),
 5683|      0|                    spv::StorageClass::Function, currentFunction->getReturnType());
 5684|      0|                builder.setAccessChainLValue(copyId);
 5685|      0|                multiTypeStore(glslangReturnType, returnId);
 5686|      0|                returnId = builder.createLoad(copyId, currentFunction->getReturnPrecision());
 5687|      0|            }
 5688|    102|            builder.makeReturn(false, returnId);
 5689|    102|        } else
 5690|      2|            builder.makeReturn(false);
 5691|       |
 5692|    104|        builder.clearAccessChain();
 5693|    104|        break;
 5694|       |
 5695|      0|    case glslang::EOpDemote:
  ------------------
  |  Branch (5695:5): [True: 0, False: 138]
  ------------------
 5696|      0|        builder.createNoResultOp(spv::Op::OpDemoteToHelperInvocationEXT);
 5697|      0|        builder.addExtension(spv::E_SPV_EXT_demote_to_helper_invocation);
 5698|      0|        builder.addCapability(spv::Capability::DemoteToHelperInvocationEXT);
 5699|      0|        break;
 5700|      0|    case glslang::EOpTerminateRayKHR:
  ------------------
  |  Branch (5700:5): [True: 0, False: 138]
  ------------------
 5701|      0|        builder.makeStatementTerminator(spv::Op::OpTerminateRayKHR, "post-terminateRayKHR");
 5702|      0|        break;
 5703|      0|    case glslang::EOpIgnoreIntersectionKHR:
  ------------------
  |  Branch (5703:5): [True: 0, False: 138]
  ------------------
 5704|      0|        builder.makeStatementTerminator(spv::Op::OpIgnoreIntersectionKHR, "post-ignoreIntersectionKHR");
 5705|      0|        break;
 5706|       |
 5707|      0|    default:
  ------------------
  |  Branch (5707:5): [True: 0, False: 138]
  ------------------
 5708|      0|        assert(0);
 5709|      0|        break;
 5710|    138|    }
 5711|       |
 5712|    138|    return false;
 5713|    138|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser11visitSwitchEN7glslang6TVisitEPNS1_13TIntermSwitchE:
 5508|     12|{
 5509|       |    // emit and get the condition before doing anything with switch
 5510|     12|    node->getCondition()->traverse(this);
 5511|     12|    spv::Id selector = accessChainLoad(node->getCondition()->getAsTyped()->getType());
 5512|       |
 5513|       |    // Selection control:
 5514|     12|    const spv::SelectionControlMask control = TranslateSwitchControl(*node);
 5515|       |
 5516|       |    // browse the children to sort out code segments
 5517|     12|    int defaultSegment = -1;
 5518|     12|    std::vector<TIntermNode*> codeSegments;
 5519|     12|    glslang::TIntermSequence& sequence = node->getBody()->getSequence();
 5520|     12|    std::vector<int> caseValues;
 5521|     12|    std::vector<int> valueIndexToSegment(sequence.size());  // note: probably not all are used, it is an overestimate
 5522|     80|    for (glslang::TIntermSequence::iterator c = sequence.begin(); c != sequence.end(); ++c) {
  ------------------
  |  Branch (5522:67): [True: 68, False: 12]
  ------------------
 5523|     68|        TIntermNode* child = *c;
 5524|     68|        if (child->getAsBranchNode() && child->getAsBranchNode()->getFlowOp() == glslang::EOpDefault)
  ------------------
  |  Branch (5524:13): [True: 34, False: 34]
  |  Branch (5524:41): [True: 0, False: 34]
  ------------------
 5525|      0|            defaultSegment = (int)codeSegments.size();
 5526|     68|        else if (child->getAsBranchNode() && child->getAsBranchNode()->getFlowOp() == glslang::EOpCase) {
  ------------------
  |  Branch (5526:18): [True: 34, False: 34]
  |  Branch (5526:46): [True: 34, False: 0]
  ------------------
 5527|     34|            valueIndexToSegment[caseValues.size()] = (int)codeSegments.size();
 5528|     34|            caseValues.push_back(child->getAsBranchNode()->getExpression()->getAsConstantUnion()
 5529|     34|                ->getConstArray()[0].getIConst());
 5530|     34|        } else
 5531|     34|            codeSegments.push_back(child);
 5532|     68|    }
 5533|       |
 5534|       |    // handle the case where the last code segment is missing, due to no code
 5535|       |    // statements between the last case and the end of the switch statement
 5536|     12|    if ((caseValues.size() && (int)codeSegments.size() == valueIndexToSegment[caseValues.size() - 1]) ||
  ------------------
  |  Branch (5536:10): [True: 12, False: 0]
  |  Branch (5536:31): [True: 0, False: 12]
  ------------------
 5537|     12|        (int)codeSegments.size() == defaultSegment)
  ------------------
  |  Branch (5537:9): [True: 0, False: 12]
  ------------------
 5538|      0|        codeSegments.push_back(nullptr);
 5539|       |
 5540|       |    // make the switch statement
 5541|     12|    std::vector<spv::Block*> segmentBlocks; // returned, as the blocks allocated in the call
 5542|     12|    builder.makeSwitch(selector, control, (int)codeSegments.size(), caseValues, valueIndexToSegment, defaultSegment,
 5543|     12|        segmentBlocks);
 5544|       |
 5545|       |    // emit all the code in the segments
 5546|     12|    breakForLoop.push(false);
 5547|     46|    for (unsigned int s = 0; s < codeSegments.size(); ++s) {
  ------------------
  |  Branch (5547:30): [True: 34, False: 12]
  ------------------
 5548|     34|        builder.nextSwitchSegment(segmentBlocks, s);
 5549|     34|        if (codeSegments[s])
  ------------------
  |  Branch (5549:13): [True: 34, False: 0]
  ------------------
 5550|     34|            codeSegments[s]->traverse(this);
 5551|      0|        else
 5552|      0|            builder.addSwitchBreak(true);
 5553|     34|    }
 5554|     12|    breakForLoop.pop();
 5555|       |
 5556|     12|    builder.endSwitch(segmentBlocks);
 5557|       |
 5558|     12|    return false;
 5559|     12|}
GlslangToSpv.cpp:_ZNK12_GLOBAL__N_122TGlslangToSpvTraverser22TranslateSwitchControlERKN7glslang13TIntermSwitchE:
 1438|     12|{
 1439|     12|    if (switchNode.getFlatten())
  ------------------
  |  Branch (1439:9): [True: 0, False: 12]
  ------------------
 1440|      0|        return spv::SelectionControlMask::Flatten;
 1441|     12|    if (switchNode.getDontFlatten())
  ------------------
  |  Branch (1441:9): [True: 0, False: 12]
  ------------------
 1442|      0|        return spv::SelectionControlMask::DontFlatten;
 1443|     12|    return spv::SelectionControlMask::MaskNone;
 1444|     12|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser9finishSpvEb:
 2308|     42|{
 2309|       |    // If not linking, an entry point is not expected
 2310|     42|    if (!compileOnly) {
  ------------------
  |  Branch (2310:9): [True: 42, False: 0]
  ------------------
 2311|       |        // Finish the entry point function. It was never entered if the traversal
 2312|       |        // did not visit it (e.g., HLSL with no function matching the entry point).
 2313|     42|        if (!entryPointTerminated) {
  ------------------
  |  Branch (2313:13): [True: 0, False: 42]
  ------------------
 2314|      0|            builder.setBuildPoint(shaderEntry->getLastBlock());
 2315|      0|            builder.enterFunction(shaderEntry);
 2316|      0|            builder.leaveFunction();
 2317|      0|        }
 2318|       |
 2319|       |        // finish off the entry-point SPV instruction by adding the Input/Output <id>
 2320|     42|        entryPoint->reserveOperands(iOSet.size());
 2321|     42|        for (auto id : iOSet)
  ------------------
  |  Branch (2321:22): [True: 74, False: 42]
  ------------------
 2322|     74|            entryPoint->addIdOperand(id);
 2323|       |
 2324|       |        // GL_EXT_opacity_micromap_ray_query_mode: the OpacityMicromapIdKHR execution mode is emitted
 2325|       |        // whenever the extension is enabled (enabling the extension is the declaration), referencing the
 2326|       |        // <id> of gl_EnableOpacityMicromapEXT. The operand constant depends on how the built-in was
 2327|       |        // (re)declared: a constant_id redeclaration -> OpSpecConstantFalse (decorated with the SpecId);
 2328|       |        // 'const bool = true' -> OpConstantTrue; otherwise (default or '= false') -> OpConstantFalse. If
 2329|       |        // the built-in was read in the shader its spec constant is reused (opacityMicromapEnableConstId)
 2330|       |        // so only one SpecId is emitted. This path targets SPV_KHR_opacity_micromap; the
 2331|       |        // ForceOpacityMicromap2State ray flag keeps using SPV_EXT_opacity_micromap for compatibility.
 2332|     42|        if (glslangIntermediate->IsRequestedExtension(glslang::E_GL_EXT_opacity_micromap_ray_query_mode)) {
  ------------------
  |  Branch (2332:13): [True: 0, False: 42]
  ------------------
 2333|      0|            spv::Id enableId = opacityMicromapEnableConstId;
 2334|      0|            if (enableId == spv::NoResult) {
  ------------------
  |  Branch (2334:17): [True: 0, False: 0]
  ------------------
 2335|      0|                int specId = glslangIntermediate->getEnableOpacityMicromapSpecId();
 2336|      0|                if (specId != glslang::TQualifier::layoutNotSet) {
  ------------------
  |  Branch (2336:21): [True: 0, False: 0]
  ------------------
 2337|      0|                    enableId = builder.makeBoolConstant(false, true);
 2338|      0|                    builder.addDecoration(enableId, spv::Decoration::SpecId, specId);
 2339|      0|                } else {
 2340|      0|                    enableId = builder.makeBoolConstant(glslangIntermediate->getEnableOpacityMicromapDefault(), false);
 2341|      0|                }
 2342|      0|            }
 2343|      0|            builder.addCapability(spv::Capability::RayTracingOpacityMicromapExecutionModeKHR);
 2344|      0|            builder.addExtension(spv::E_SPV_KHR_opacity_micromap);
 2345|      0|            builder.addExecutionModeId(shaderEntry, spv::ExecutionMode::OpacityMicromapIdKHR, { enableId });
 2346|      0|        }
 2347|     42|    }
 2348|       |
 2349|       |    // Add capabilities, extensions, remove unneeded decorations, etc.,
 2350|       |    // based on the resulting SPIR-V.
 2351|       |    // Note: WebGPU code generation must have the opportunity to aggressively
 2352|       |    // prune unreachable merge blocks and continue targets.
 2353|     42|    builder.postProcess(compileOnly);
 2354|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverser7dumpSpvERNSt3__16vectorIjNS1_9allocatorIjEEEE:
 2358|     42|{
 2359|     42|    builder.dump(out);
 2360|     42|}
GlslangToSpv.cpp:_ZN12_GLOBAL__N_122TGlslangToSpvTraverserD2Ev:
  201|     42|    virtual ~TGlslangToSpvTraverser() { }

_ZN3spv15inReadableOrderEPNS_5BlockENSt3__18functionIFvS1_NS_11ReachReasonES1_EEE:
  129|    398|{
  130|    398|    ReadableOrderTraverser(callback).visit(root, spv::ReachViaControlFlow, nullptr);
  131|    398|}
InReadableOrder.cpp:_ZN12_GLOBAL__N_122ReadableOrderTraverserC2ENSt3__18functionIFvPN3spv5BlockENS3_11ReachReasonES5_EEE:
   65|    398|      : callback_(callback) {}
InReadableOrder.cpp:_ZN12_GLOBAL__N_122ReadableOrderTraverser5visitEPN3spv5BlockENS1_11ReachReasonES3_:
   72|  1.81k|    {
   73|  1.81k|        assert(block);
   74|  1.81k|        if (why == spv::ReachViaControlFlow) {
  ------------------
  |  Branch (74:13): [True: 1.81k, False: 0]
  ------------------
   75|  1.81k|            reachableViaControlFlow_.insert(block);
   76|  1.81k|        }
   77|  1.81k|        if (visited_.count(block) || delayed_.count(block))
  ------------------
  |  Branch (77:13): [True: 22, False: 1.78k]
  |  Branch (77:38): [True: 660, False: 1.12k]
  ------------------
   78|    682|            return;
   79|  1.12k|        callback_(block, why, header);
   80|  1.12k|        visited_.insert(block);
   81|  1.12k|        Block* mergeBlock = nullptr;
   82|  1.12k|        Block* continueBlock = nullptr;
   83|  1.12k|        auto mergeInst = block->getMergeInstruction();
   84|  1.12k|        if (mergeInst) {
  ------------------
  |  Branch (84:13): [True: 310, False: 818]
  ------------------
   85|    310|            Id mergeId = mergeInst->getIdOperand(0);
   86|    310|            mergeBlock = block->getParent().getParent().getInstruction(mergeId)->getBlock();
   87|    310|            delayed_.insert(mergeBlock);
   88|    310|            if (mergeInst->getOpCode() == spv::Op::OpLoopMerge) {
  ------------------
  |  Branch (88:17): [True: 22, False: 288]
  ------------------
   89|     22|                Id continueId = mergeInst->getIdOperand(1);
   90|     22|                continueBlock =
   91|     22|                    block->getParent().getParent().getInstruction(continueId)->getBlock();
   92|     22|                delayed_.insert(continueBlock);
   93|     22|            }
   94|    310|        }
   95|  1.12k|        if (why == spv::ReachViaControlFlow) {
  ------------------
  |  Branch (95:13): [True: 1.12k, False: 0]
  ------------------
   96|  1.12k|            const auto& successors = block->getSuccessors();
   97|  2.20k|            for (auto it = successors.cbegin(); it != successors.cend(); ++it)
  ------------------
  |  Branch (97:49): [True: 1.08k, False: 1.12k]
  ------------------
   98|  1.08k|                visit(*it, why, nullptr);
   99|  1.12k|        }
  100|  1.12k|        if (continueBlock) {
  ------------------
  |  Branch (100:13): [True: 22, False: 1.10k]
  ------------------
  101|     22|            const spv::ReachReason continueWhy =
  102|     22|                (reachableViaControlFlow_.count(continueBlock) > 0)
  ------------------
  |  Branch (102:17): [True: 22, False: 0]
  ------------------
  103|     22|                    ? spv::ReachViaControlFlow
  104|     22|                    : spv::ReachDeadContinue;
  105|     22|            delayed_.erase(continueBlock);
  106|     22|            visit(continueBlock, continueWhy, block);
  107|     22|        }
  108|  1.12k|        if (mergeBlock) {
  ------------------
  |  Branch (108:13): [True: 310, False: 818]
  ------------------
  109|    310|            const spv::ReachReason mergeWhy =
  110|    310|                (reachableViaControlFlow_.count(mergeBlock) > 0)
  ------------------
  |  Branch (110:17): [True: 310, False: 0]
  ------------------
  111|    310|                    ? spv::ReachViaControlFlow
  112|    310|                    : spv::ReachDeadMerge;
  113|    310|            delayed_.erase(mergeBlock);
  114|    310|            visit(mergeBlock, mergeWhy, block);
  115|    310|        }
  116|  1.12k|    }

_ZN3spv14SpvBuildLoggerC2Ev:
   48|     42|    SpvBuildLogger() {}

_ZN3spv7BuilderC2EjjPNS_14SpvBuildLoggerE:
   59|     42|    spvVersion(spvVersion),
   60|     42|    sourceLang(SourceLanguage::Unknown),
   61|     42|    sourceVersion(0),
   62|     42|    addressModel(AddressingModel::Logical),
   63|     42|    memoryModel(MemoryModel::GLSL450),
   64|     42|    builderNumber(magicNumber),
   65|     42|    buildPoint(nullptr),
   66|     42|    uniqueId(0),
   67|     42|    entryPointFunction(nullptr),
   68|     42|    generatingOpCodeForSpecConst(false),
   69|     42|    descHeapByteArrayType(NoResult),
   70|     42|    logger(buildLogger)
   71|     42|{
   72|     42|    clearAccessChain();
   73|     42|}
_ZN3spv7BuilderD2Ev:
   76|     42|{
   77|     42|}
_ZN3spv7Builder6importEPKc:
   80|     42|{
   81|     42|    Instruction* import = new Instruction(getUniqueId(), NoType, Op::OpExtInstImport);
   82|     42|    import->addStringOperand(name);
   83|     42|    module.mapInstruction(import);
   84|       |
   85|     42|    imports.push_back(std::unique_ptr<Instruction>(import));
   86|     42|    return import->getResultId();
   87|     42|}
_ZN3spv7Builder12makeVoidTypeEv:
   91|    346|{
   92|    346|    Instruction* type;
   93|    346|    if (groupedTypes[enumCast(Op::OpTypeVoid)].size() == 0) {
  ------------------
  |  Branch (93:9): [True: 42, False: 304]
  ------------------
   94|     42|        Id typeId = getUniqueId();
   95|     42|        type = new Instruction(typeId, NoType, Op::OpTypeVoid);
   96|     42|        groupedTypes[enumCast(Op::OpTypeVoid)].push_back(type);
   97|     42|        constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
   98|     42|        module.mapInstruction(type);
   99|       |        // Core OpTypeVoid used for debug void type
  100|     42|        if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (100:13): [True: 0, False: 42]
  ------------------
  101|      0|            debugTypeIdLookup[typeId] = typeId;
  102|     42|    } else
  103|    304|        type = groupedTypes[enumCast(Op::OpTypeVoid)].back();
  104|       |
  105|    346|    return type->getResultId();
  106|    346|}
_ZN3spv7Builder12makeBoolTypeEv:
  109|  1.70k|{
  110|  1.70k|    Instruction* type;
  111|  1.70k|    if (groupedTypes[enumCast(Op::OpTypeBool)].size() == 0) {
  ------------------
  |  Branch (111:9): [True: 22, False: 1.67k]
  ------------------
  112|     22|        type = new Instruction(getUniqueId(), NoType, Op::OpTypeBool);
  113|     22|        groupedTypes[enumCast(Op::OpTypeBool)].push_back(type);
  114|     22|        constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  115|     22|        module.mapInstruction(type);
  116|       |
  117|     22|        if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (117:13): [True: 0, False: 22]
  ------------------
  118|      0|            auto const debugResultId = makeBoolDebugType(32);
  119|      0|            debugTypeIdLookup[type->getResultId()] = debugResultId;
  120|      0|        }
  121|       |
  122|     22|    } else
  123|  1.67k|        type = groupedTypes[enumCast(Op::OpTypeBool)].back();
  124|       |
  125|       |
  126|  1.70k|    return type->getResultId();
  127|  1.70k|}
_ZN3spv7Builder15makeSamplerTypeEPKc:
  130|      4|{
  131|      4|    Instruction* type;
  132|      4|    if (groupedTypes[enumCast(Op::OpTypeSampler)].size() == 0) {
  ------------------
  |  Branch (132:9): [True: 2, False: 2]
  ------------------
  133|      2|        type = new Instruction(getUniqueId(), NoType, Op::OpTypeSampler);
  134|      2|        groupedTypes[enumCast(Op::OpTypeSampler)].push_back(type);
  135|      2|        constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  136|      2|        module.mapInstruction(type);
  137|      2|    } else
  138|      2|        type = groupedTypes[enumCast(Op::OpTypeSampler)].back();
  139|       |
  140|      4|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (140:9): [True: 0, False: 4]
  ------------------
  141|      0|    {
  142|      0|        auto const debugResultId = makeOpaqueDebugType(debugName);
  143|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  144|      0|    }
  145|       |
  146|      4|    return type->getResultId();
  147|      4|}
_ZN3spv7Builder11makePointerENS_12StorageClassEj:
  150|  3.02k|{
  151|       |    // try to find it
  152|  3.02k|    Instruction* type;
  153|  29.1k|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypePointer)].size(); ++t) {
  ------------------
  |  Branch (153:21): [True: 28.4k, False: 714]
  ------------------
  154|  28.4k|        type = groupedTypes[enumCast(Op::OpTypePointer)][t];
  155|  28.4k|        if (type->getImmediateOperand(0) == (unsigned)storageClass &&
  ------------------
  |  Branch (155:13): [True: 12.9k, False: 15.4k]
  ------------------
  156|  12.9k|            type->getIdOperand(1) == pointee)
  ------------------
  |  Branch (156:13): [True: 2.31k, False: 10.6k]
  ------------------
  157|  2.31k|            return type->getResultId();
  158|  28.4k|    }
  159|       |
  160|       |    // not found, make it
  161|    714|    type = new Instruction(getUniqueId(), NoType, Op::OpTypePointer);
  162|    714|    type->reserveOperands(2);
  163|    714|    type->addImmediateOperand(storageClass);
  164|    714|    type->addIdOperand(pointee);
  165|    714|    groupedTypes[enumCast(Op::OpTypePointer)].push_back(type);
  166|    714|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  167|    714|    module.mapInstruction(type);
  168|       |
  169|    714|    if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (169:9): [True: 0, False: 714]
  ------------------
  170|      0|        const Id debugResultId = makePointerDebugType(storageClass, pointee);
  171|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  172|      0|    }
  173|       |
  174|    714|    return type->getResultId();
  175|  3.02k|}
_ZN3spv7Builder15makeIntegerTypeEib:
  252|  12.6k|{
  253|       |    // try to find it
  254|  12.6k|    Instruction* type;
  255|  27.9k|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeInt)].size(); ++t) {
  ------------------
  |  Branch (255:21): [True: 27.7k, False: 160]
  ------------------
  256|  27.7k|        type = groupedTypes[enumCast(Op::OpTypeInt)][t];
  257|  27.7k|        if (type->getImmediateOperand(0) == (unsigned)width &&
  ------------------
  |  Branch (257:13): [True: 17.2k, False: 10.5k]
  ------------------
  258|  17.2k|            type->getImmediateOperand(1) == (hasSign ? 1u : 0u))
  ------------------
  |  Branch (258:13): [True: 12.4k, False: 4.77k]
  |  Branch (258:46): [True: 9.95k, False: 7.26k]
  ------------------
  259|  12.4k|            return type->getResultId();
  260|  27.7k|    }
  261|       |
  262|       |    // not found, make it
  263|    160|    type = new Instruction(getUniqueId(), NoType, Op::OpTypeInt);
  264|    160|    type->reserveOperands(2);
  265|    160|    type->addImmediateOperand(width);
  266|    160|    type->addImmediateOperand(hasSign ? 1 : 0);
  ------------------
  |  Branch (266:31): [True: 77, False: 83]
  ------------------
  267|    160|    groupedTypes[enumCast(Op::OpTypeInt)].push_back(type);
  268|    160|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  269|    160|    module.mapInstruction(type);
  270|       |
  271|       |    // deal with capabilities
  272|    160|    switch (width) {
  273|      6|    case 8:
  ------------------
  |  Branch (273:5): [True: 6, False: 154]
  ------------------
  274|     44|    case 16:
  ------------------
  |  Branch (274:5): [True: 38, False: 122]
  ------------------
  275|       |        // these are currently handled by storage-type declarations and post processing
  276|     44|        break;
  277|     38|    case 64:
  ------------------
  |  Branch (277:5): [True: 38, False: 122]
  ------------------
  278|     38|        addCapability(Capability::Int64);
  279|     38|        break;
  280|     78|    default:
  ------------------
  |  Branch (280:5): [True: 78, False: 82]
  ------------------
  281|     78|        break;
  282|    160|    }
  283|       |
  284|    160|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (284:9): [True: 0, False: 160]
  ------------------
  285|      0|    {
  286|      0|        auto const debugResultId = makeIntegerDebugType(width, hasSign);
  287|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  288|      0|    }
  289|       |
  290|    160|    return type->getResultId();
  291|    160|}
_ZN3spv7Builder13makeFloatTypeEi:
  294|  3.97k|{
  295|       |    // try to find it
  296|  3.97k|    Instruction* type;
  297|  4.38k|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeFloat)].size(); ++t) {
  ------------------
  |  Branch (297:21): [True: 4.33k, False: 51]
  ------------------
  298|  4.33k|        type = groupedTypes[enumCast(Op::OpTypeFloat)][t];
  299|  4.33k|        if (type->getNumOperands() != 1) {
  ------------------
  |  Branch (299:13): [True: 0, False: 4.33k]
  ------------------
  300|      0|            continue;
  301|      0|        }
  302|  4.33k|        if (type->getImmediateOperand(0) == (unsigned)width)
  ------------------
  |  Branch (302:13): [True: 3.92k, False: 402]
  ------------------
  303|  3.92k|            return type->getResultId();
  304|  4.33k|    }
  305|       |
  306|       |    // not found, make it
  307|     51|    type = new Instruction(getUniqueId(), NoType, Op::OpTypeFloat);
  308|     51|    type->addImmediateOperand(width);
  309|     51|    groupedTypes[enumCast(Op::OpTypeFloat)].push_back(type);
  310|     51|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  311|     51|    module.mapInstruction(type);
  312|       |
  313|       |    // deal with capabilities
  314|     51|    switch (width) {
  315|     14|    case 16:
  ------------------
  |  Branch (315:5): [True: 14, False: 37]
  ------------------
  316|       |        // currently handled by storage-type declarations and post processing
  317|     14|        break;
  318|     12|    case 64:
  ------------------
  |  Branch (318:5): [True: 12, False: 39]
  ------------------
  319|     12|        addCapability(Capability::Float64);
  320|     12|        break;
  321|     25|    default:
  ------------------
  |  Branch (321:5): [True: 25, False: 26]
  ------------------
  322|     25|        break;
  323|     51|    }
  324|       |
  325|     51|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (325:9): [True: 0, False: 51]
  ------------------
  326|      0|    {
  327|      0|        auto const debugResultId = makeFloatDebugType(width);
  328|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  329|      0|    }
  330|       |
  331|     51|    return type->getResultId();
  332|     51|}
_ZN3spv7Builder14makeStructTypeERKNSt3__16vectorIjNS1_9allocatorIjEEEERKNS2_INS_21StructMemberDebugInfoENS3_IS8_EEEEPKcbj:
  499|    101|{
  500|       |    // Don't look for previous one, because in the general case,
  501|       |    // structs can be duplicated except for decorations.
  502|       |
  503|       |    // not found, make it
  504|    101|    Instruction* type = new Instruction(getUniqueId(), NoType, Op::OpTypeStruct);
  505|    398|    for (int op = 0; op < (int)members.size(); ++op)
  ------------------
  |  Branch (505:22): [True: 297, False: 101]
  ------------------
  506|    297|        type->addIdOperand(members[op]);
  507|    101|    groupedTypes[enumCast(Op::OpTypeStruct)].push_back(type);
  508|    101|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  509|    101|    module.mapInstruction(type);
  510|    101|    addName(type->getResultId(), name);
  511|       |
  512|    101|    if (emitNonSemanticShaderDebugInfo && !compilerGenerated) {
  ------------------
  |  Branch (512:9): [True: 0, False: 101]
  |  Branch (512:43): [True: 0, False: 0]
  ------------------
  513|      0|        assert(members.size() == memberDebugInfo.size());
  514|      0|        if (debugType == NoType) {
  ------------------
  |  Branch (514:13): [True: 0, False: 0]
  ------------------
  515|      0|            std::vector<Id> memberDebugTypes;
  516|      0|            for (Id member : members)
  ------------------
  |  Branch (516:28): [True: 0, False: 0]
  ------------------
  517|      0|                memberDebugTypes.push_back(getDebugType(member));
  518|      0|            debugType =
  519|      0|                makeCompositeDebugType(memberDebugTypes, memberDebugInfo, name, NonSemanticShaderDebugInfoStructure);
  520|      0|        }
  521|      0|        debugTypeIdLookup[type->getResultId()] = debugType;
  522|      0|    }
  523|       |
  524|    101|    return type->getResultId();
  525|    101|}
_ZN3spv7Builder20makeStructResultTypeEjj:
  530|    307|{
  531|       |    // try to find it
  532|    307|    Instruction* type;
  533|    422|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeStruct)].size(); ++t) {
  ------------------
  |  Branch (533:21): [True: 396, False: 26]
  ------------------
  534|    396|        type = groupedTypes[enumCast(Op::OpTypeStruct)][t];
  535|    396|        if (type->getNumOperands() != 2)
  ------------------
  |  Branch (535:13): [True: 37, False: 359]
  ------------------
  536|     37|            continue;
  537|    359|        if (type->getIdOperand(0) != type0 ||
  ------------------
  |  Branch (537:13): [True: 0, False: 359]
  ------------------
  538|    359|            type->getIdOperand(1) != type1)
  ------------------
  |  Branch (538:13): [True: 78, False: 281]
  ------------------
  539|     78|            continue;
  540|    281|        return type->getResultId();
  541|    359|    }
  542|       |
  543|       |    // not found, make it
  544|     26|    std::vector<spv::Id> members;
  545|     26|    members.push_back(type0);
  546|     26|    members.push_back(type1);
  547|       |
  548|     26|    return makeStructType(members, {}, "ResType");
  549|    307|}
_ZN3spv7Builder14makeVectorTypeEji:
  552|  7.42k|{
  553|       |    // try to find it
  554|  7.42k|    Instruction* type;
  555|  29.2k|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeVector)].size(); ++t) {
  ------------------
  |  Branch (555:21): [True: 28.8k, False: 375]
  ------------------
  556|  28.8k|        type = groupedTypes[enumCast(Op::OpTypeVector)][t];
  557|  28.8k|        if (type->getIdOperand(0) == component &&
  ------------------
  |  Branch (557:13): [True: 10.6k, False: 18.2k]
  ------------------
  558|  10.6k|            type->getImmediateOperand(1) == (unsigned)size)
  ------------------
  |  Branch (558:13): [True: 7.05k, False: 3.58k]
  ------------------
  559|  7.05k|            return type->getResultId();
  560|  28.8k|    }
  561|       |
  562|       |    // not found, make it
  563|    375|    type = new Instruction(getUniqueId(), NoType, Op::OpTypeVector);
  564|    375|    type->reserveOperands(2);
  565|    375|    type->addIdOperand(component);
  566|    375|    type->addImmediateOperand(size);
  567|    375|    groupedTypes[enumCast(Op::OpTypeVector)].push_back(type);
  568|    375|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  569|    375|    module.mapInstruction(type);
  570|       |
  571|    375|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (571:9): [True: 0, False: 375]
  ------------------
  572|      0|    {
  573|      0|        auto const debugResultId = makeVectorDebugType(component, size);
  574|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  575|      0|    }
  576|       |
  577|    375|    return type->getResultId();
  578|  7.42k|}
_ZN3spv7Builder14makeMatrixTypeEjii:
  581|     94|{
  582|     94|    assert(cols <= maxMatrixSize && rows <= maxMatrixSize);
  583|       |
  584|     94|    Id column = makeVectorType(component, rows);
  585|       |
  586|       |    // try to find it
  587|     94|    Instruction* type;
  588|    141|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeMatrix)].size(); ++t) {
  ------------------
  |  Branch (588:21): [True: 129, False: 12]
  ------------------
  589|    129|        type = groupedTypes[enumCast(Op::OpTypeMatrix)][t];
  590|    129|        if (type->getIdOperand(0) == column &&
  ------------------
  |  Branch (590:13): [True: 82, False: 47]
  ------------------
  591|     82|            type->getImmediateOperand(1) == (unsigned)cols)
  ------------------
  |  Branch (591:13): [True: 82, False: 0]
  ------------------
  592|     82|            return type->getResultId();
  593|    129|    }
  594|       |
  595|       |    // not found, make it
  596|     12|    type = new Instruction(getUniqueId(), NoType, Op::OpTypeMatrix);
  597|     12|    type->reserveOperands(2);
  598|     12|    type->addIdOperand(column);
  599|     12|    type->addImmediateOperand(cols);
  600|     12|    groupedTypes[enumCast(Op::OpTypeMatrix)].push_back(type);
  601|     12|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  602|     12|    module.mapInstruction(type);
  603|       |
  604|     12|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (604:9): [True: 0, False: 12]
  ------------------
  605|      0|    {
  606|      0|        auto const debugResultId = makeMatrixDebugType(getDebugType(column), cols);
  607|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  608|      0|    }
  609|       |
  610|     12|    return type->getResultId();
  611|     94|}
_ZN3spv7Builder13makeArrayTypeEjji:
  770|     66|{
  771|     66|    Instruction* type;
  772|     66|    if (stride == 0) {
  ------------------
  |  Branch (772:9): [True: 64, False: 2]
  ------------------
  773|       |        // try to find existing type
  774|     76|        for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeArray)].size(); ++t) {
  ------------------
  |  Branch (774:25): [True: 50, False: 26]
  ------------------
  775|     50|            type = groupedTypes[enumCast(Op::OpTypeArray)][t];
  776|     50|            if (type->getIdOperand(0) == element &&
  ------------------
  |  Branch (776:17): [True: 38, False: 12]
  |  Branch (776:17): [True: 38, False: 12]
  ------------------
  777|     38|                type->getIdOperand(1) == sizeId &&
  ------------------
  |  Branch (777:17): [True: 38, False: 0]
  ------------------
  778|     38|                explicitlyLaidOut.find(type->getResultId()) == explicitlyLaidOut.end())
  ------------------
  |  Branch (778:17): [True: 38, False: 0]
  ------------------
  779|     38|                return type->getResultId();
  780|     50|        }
  781|     64|    }
  782|       |
  783|       |    // not found, make it
  784|     28|    type = new Instruction(getUniqueId(), NoType, Op::OpTypeArray);
  785|     28|    type->reserveOperands(2);
  786|     28|    type->addIdOperand(element);
  787|     28|    type->addIdOperand(sizeId);
  788|     28|    groupedTypes[enumCast(Op::OpTypeArray)].push_back(type);
  789|     28|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  790|     28|    module.mapInstruction(type);
  791|       |
  792|     28|    if (stride != 0) {
  ------------------
  |  Branch (792:9): [True: 2, False: 26]
  ------------------
  793|      2|        explicitlyLaidOut.insert(type->getResultId());
  794|      2|    }
  795|       |
  796|     28|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (796:9): [True: 0, False: 28]
  ------------------
  797|      0|    {
  798|      0|        auto const debugResultId = makeArrayDebugType(element, sizeId);
  799|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  800|      0|    }
  801|       |
  802|     28|    return type->getResultId();
  803|     66|}
_ZN3spv7Builder16makeRuntimeArrayEj:
  806|      5|{
  807|      5|    Instruction* type = new Instruction(getUniqueId(), NoType, Op::OpTypeRuntimeArray);
  808|      5|    type->addIdOperand(element);
  809|      5|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  810|      5|    module.mapInstruction(type);
  811|       |
  812|      5|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (812:9): [True: 0, False: 5]
  ------------------
  813|      0|    {
  814|      0|        auto const debugResultId = makeArrayDebugType(element, makeUintConstant(0));
  815|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  816|      0|    }
  817|       |
  818|      5|    return type->getResultId();
  819|      5|}
_ZN3spv7Builder16makeFunctionTypeEjRKNSt3__16vectorIjNS1_9allocatorIjEEEE:
  822|    199|{
  823|       |    // try to find it
  824|    199|    Instruction* type;
  825|    333|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeFunction)].size(); ++t) {
  ------------------
  |  Branch (825:21): [True: 271, False: 62]
  ------------------
  826|    271|        type = groupedTypes[enumCast(Op::OpTypeFunction)][t];
  827|    271|        if (type->getIdOperand(0) != returnType || (int)paramTypes.size() != type->getNumOperands() - 1)
  ------------------
  |  Branch (827:13): [True: 131, False: 140]
  |  Branch (827:52): [True: 3, False: 137]
  ------------------
  828|    134|            continue;
  829|    137|        bool mismatch = false;
  830|    137|        for (int p = 0; p < (int)paramTypes.size(); ++p) {
  ------------------
  |  Branch (830:25): [True: 0, False: 137]
  ------------------
  831|      0|            if (paramTypes[p] != type->getIdOperand(p + 1)) {
  ------------------
  |  Branch (831:17): [True: 0, False: 0]
  ------------------
  832|      0|                mismatch = true;
  833|      0|                break;
  834|      0|            }
  835|      0|        }
  836|    137|        if (! mismatch)
  ------------------
  |  Branch (836:13): [True: 137, False: 0]
  ------------------
  837|    137|        {
  838|       |            // If compiling HLSL, glslang will create a wrapper function around the entrypoint. Accordingly, a void(void)
  839|       |            // function type is created for the wrapper function. However, nonsemantic shader debug information is disabled
  840|       |            // while creating the HLSL wrapper. Consequently, if we encounter another void(void) function, we need to create
  841|       |            // the associated debug function type if it hasn't been created yet.
  842|    137|            if(emitNonSemanticShaderDebugInfo && getDebugType(type->getResultId()) == NoType) {
  ------------------
  |  Branch (842:16): [True: 0, False: 137]
  |  Branch (842:50): [True: 0, False: 0]
  ------------------
  843|      0|                assert(sourceLang == spv::SourceLanguage::HLSL);
  844|      0|                assert(getTypeClass(returnType) == Op::OpTypeVoid && paramTypes.size() == 0);
  845|       |
  846|      0|                Id id = makeDebugFunctionType(returnType, {});
  847|      0|                debugTypeIdLookup[type->getResultId()] = id;
  848|      0|            }
  849|    137|            return type->getResultId();
  850|    137|        }
  851|    137|    }
  852|       |
  853|       |    // not found, make it
  854|     62|    Id typeId = getUniqueId();
  855|     62|    type = new Instruction(typeId, NoType, Op::OpTypeFunction);
  856|     62|    type->reserveOperands(paramTypes.size() + 1);
  857|     62|    type->addIdOperand(returnType);
  858|     76|    for (int p = 0; p < (int)paramTypes.size(); ++p)
  ------------------
  |  Branch (858:21): [True: 14, False: 62]
  ------------------
  859|     14|        type->addIdOperand(paramTypes[p]);
  860|     62|    groupedTypes[enumCast(Op::OpTypeFunction)].push_back(type);
  861|     62|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  862|     62|    module.mapInstruction(type);
  863|       |
  864|       |    // make debug type and map it
  865|     62|    if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (865:9): [True: 0, False: 62]
  ------------------
  866|      0|        Id debugTypeId = makeDebugFunctionType(returnType, paramTypes);
  867|      0|        debugTypeIdLookup[typeId] = debugTypeId;
  868|      0|    }
  869|       |
  870|     62|    return type->getResultId();
  871|    199|}
_ZN3spv7Builder13makeImageTypeEjNS_3DimEbbbjNS_11ImageFormatEPKc:
  899|    205|{
  900|    205|    assert(sampled == 1 || sampled == 2);
  901|       |
  902|       |    // try to find it
  903|    205|    Instruction* type;
  904|  1.70k|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeImage)].size(); ++t) {
  ------------------
  |  Branch (904:21): [True: 1.56k, False: 142]
  ------------------
  905|  1.56k|        type = groupedTypes[enumCast(Op::OpTypeImage)][t];
  906|  1.56k|        if (type->getIdOperand(0) == sampledType &&
  ------------------
  |  Branch (906:13): [True: 1.40k, False: 161]
  ------------------
  907|  1.40k|            type->getImmediateOperand(1) == (unsigned int)dim &&
  ------------------
  |  Branch (907:13): [True: 352, False: 1.05k]
  ------------------
  908|    352|            type->getImmediateOperand(2) == (  depth ? 1u : 0u) &&
  ------------------
  |  Branch (908:13): [True: 238, False: 114]
  |  Branch (908:48): [True: 78, False: 274]
  ------------------
  909|    238|            type->getImmediateOperand(3) == (arrayed ? 1u : 0u) &&
  ------------------
  |  Branch (909:13): [True: 122, False: 116]
  |  Branch (909:46): [True: 141, False: 97]
  ------------------
  910|    122|            type->getImmediateOperand(4) == (     ms ? 1u : 0u) &&
  ------------------
  |  Branch (910:13): [True: 90, False: 32]
  |  Branch (910:51): [True: 36, False: 86]
  ------------------
  911|     90|            type->getImmediateOperand(5) == sampled &&
  ------------------
  |  Branch (911:13): [True: 70, False: 20]
  ------------------
  912|     70|            type->getImmediateOperand(6) == (unsigned int)format)
  ------------------
  |  Branch (912:13): [True: 63, False: 7]
  ------------------
  913|     63|            return type->getResultId();
  914|  1.56k|    }
  915|       |
  916|       |    // not found, make it
  917|    142|    type = new Instruction(getUniqueId(), NoType, Op::OpTypeImage);
  918|    142|    type->reserveOperands(7);
  919|    142|    type->addIdOperand(sampledType);
  920|    142|    type->addImmediateOperand(   dim);
  921|    142|    type->addImmediateOperand(  depth ? 1 : 0);
  ------------------
  |  Branch (921:33): [True: 12, False: 130]
  ------------------
  922|    142|    type->addImmediateOperand(arrayed ? 1 : 0);
  ------------------
  |  Branch (922:31): [True: 59, False: 83]
  ------------------
  923|    142|    type->addImmediateOperand(     ms ? 1 : 0);
  ------------------
  |  Branch (923:36): [True: 20, False: 122]
  ------------------
  924|    142|    type->addImmediateOperand(sampled);
  925|    142|    type->addImmediateOperand((unsigned int)format);
  926|       |
  927|    142|    groupedTypes[enumCast(Op::OpTypeImage)].push_back(type);
  928|    142|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
  929|    142|    module.mapInstruction(type);
  930|       |
  931|       |    // deal with capabilities
  932|    142|    switch (dim) {
  933|      9|    case Dim::Buffer:
  ------------------
  |  Branch (933:5): [True: 9, False: 133]
  ------------------
  934|      9|        if (sampled == 1)
  ------------------
  |  Branch (934:13): [True: 2, False: 7]
  ------------------
  935|      2|            addCapability(Capability::SampledBuffer);
  936|      7|        else
  937|      7|            addCapability(Capability::ImageBuffer);
  938|      9|        break;
  939|     26|    case Dim::Dim1D:
  ------------------
  |  Branch (939:5): [True: 26, False: 116]
  ------------------
  940|     26|        if (sampled == 1)
  ------------------
  |  Branch (940:13): [True: 8, False: 18]
  ------------------
  941|      8|            addCapability(Capability::Sampled1D);
  942|     18|        else
  943|     18|            addCapability(Capability::Image1D);
  944|     26|        break;
  945|     26|    case Dim::Cube:
  ------------------
  |  Branch (945:5): [True: 26, False: 116]
  ------------------
  946|     26|        if (arrayed) {
  ------------------
  |  Branch (946:13): [True: 13, False: 13]
  ------------------
  947|     13|            if (sampled == 1)
  ------------------
  |  Branch (947:17): [True: 4, False: 9]
  ------------------
  948|      4|                addCapability(Capability::SampledCubeArray);
  949|      9|            else
  950|      9|                addCapability(Capability::ImageCubeArray);
  951|     13|        }
  952|     26|        break;
  953|      0|    case Dim::Rect:
  ------------------
  |  Branch (953:5): [True: 0, False: 142]
  ------------------
  954|      0|        if (sampled == 1)
  ------------------
  |  Branch (954:13): [True: 0, False: 0]
  ------------------
  955|      0|            addCapability(Capability::SampledRect);
  956|      0|        else
  957|      0|            addCapability(Capability::ImageRect);
  958|      0|        break;
  959|      4|    case Dim::SubpassData:
  ------------------
  |  Branch (959:5): [True: 4, False: 138]
  ------------------
  960|      4|        addCapability(Capability::InputAttachment);
  961|      4|        break;
  962|     77|    default:
  ------------------
  |  Branch (962:5): [True: 77, False: 65]
  ------------------
  963|     77|        break;
  964|    142|    }
  965|       |
  966|    142|    if (ms) {
  ------------------
  |  Branch (966:9): [True: 20, False: 122]
  ------------------
  967|     20|        if (sampled == 2) {
  ------------------
  |  Branch (967:13): [True: 16, False: 4]
  ------------------
  968|       |            // Images used with subpass data are not storage
  969|       |            // images, so don't require the capability for them.
  970|     16|            if (dim != Dim::SubpassData)
  ------------------
  |  Branch (970:17): [True: 14, False: 2]
  ------------------
  971|     14|                addCapability(Capability::StorageImageMultisample);
  972|     16|            if (arrayed)
  ------------------
  |  Branch (972:17): [True: 7, False: 9]
  ------------------
  973|      7|                addCapability(Capability::ImageMSArray);
  974|     16|        }
  975|     20|    }
  976|       |
  977|    142|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (977:9): [True: 0, False: 142]
  ------------------
  978|      0|    {
  979|      0|        auto const debugResultId = makeOpaqueDebugType(debugName);
  980|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
  981|      0|    }
  982|       |
  983|    142|    return type->getResultId();
  984|    142|}
_ZN3spv7Builder20makeSampledImageTypeEjPKc:
  987|     97|{
  988|       |    // try to find it
  989|     97|    Instruction* type;
  990|    622|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypeSampledImage)].size(); ++t) {
  ------------------
  |  Branch (990:21): [True: 568, False: 54]
  ------------------
  991|    568|        type = groupedTypes[enumCast(Op::OpTypeSampledImage)][t];
  992|    568|        if (type->getIdOperand(0) == imageType)
  ------------------
  |  Branch (992:13): [True: 43, False: 525]
  ------------------
  993|     43|            return type->getResultId();
  994|    568|    }
  995|       |
  996|       |    // not found, make it
  997|     54|    type = new Instruction(getUniqueId(), NoType, Op::OpTypeSampledImage);
  998|     54|    type->addIdOperand(imageType);
  999|       |
 1000|     54|    groupedTypes[enumCast(Op::OpTypeSampledImage)].push_back(type);
 1001|     54|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
 1002|     54|    module.mapInstruction(type);
 1003|       |
 1004|     54|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (1004:9): [True: 0, False: 54]
  ------------------
 1005|      0|    {
 1006|      0|        auto const debugResultId = makeOpaqueDebugType(debugName);
 1007|      0|        debugTypeIdLookup[type->getResultId()] = debugResultId;
 1008|      0|    }
 1009|       |
 1010|     54|    return type->getResultId();
 1011|     97|}
_ZN3spv7Builder29makeAccelerationStructureTypeEv:
 1648|      5|{
 1649|      5|    Instruction *type;
 1650|      5|    if (groupedTypes[enumCast(Op::OpTypeAccelerationStructureKHR)].size() == 0) {
  ------------------
  |  Branch (1650:9): [True: 5, False: 0]
  ------------------
 1651|      5|        type = new Instruction(getUniqueId(), NoType, Op::OpTypeAccelerationStructureKHR);
 1652|      5|        groupedTypes[enumCast(Op::OpTypeAccelerationStructureKHR)].push_back(type);
 1653|      5|        constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
 1654|      5|        module.mapInstruction(type);
 1655|      5|        if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (1655:13): [True: 0, False: 5]
  ------------------
 1656|      0|            spv::Id debugType = makeOpaqueDebugType("accelerationStructure");
 1657|      0|            debugTypeIdLookup[type->getResultId()] = debugType;
 1658|      0|        }
 1659|      5|    } else {
 1660|      0|        type = groupedTypes[enumCast(Op::OpTypeAccelerationStructureKHR)].back();
 1661|      0|    }
 1662|       |
 1663|      5|    return type->getResultId();
 1664|      5|}
_ZN3spv7Builder16makeRayQueryTypeEv:
 1667|      5|{
 1668|      5|    Instruction *type;
 1669|      5|    if (groupedTypes[enumCast(Op::OpTypeRayQueryKHR)].size() == 0) {
  ------------------
  |  Branch (1669:9): [True: 5, False: 0]
  ------------------
 1670|      5|        type = new Instruction(getUniqueId(), NoType, Op::OpTypeRayQueryKHR);
 1671|      5|        groupedTypes[enumCast(Op::OpTypeRayQueryKHR)].push_back(type);
 1672|      5|        constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type));
 1673|      5|        module.mapInstruction(type);
 1674|      5|        if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (1674:13): [True: 0, False: 5]
  ------------------
 1675|      0|            spv::Id debugType = makeOpaqueDebugType("rayQuery");
 1676|      0|            debugTypeIdLookup[type->getResultId()] = debugType;
 1677|      0|        }
 1678|      5|    } else {
 1679|      0|        type = groupedTypes[enumCast(Op::OpTypeRayQueryKHR)].back();
 1680|      0|    }
 1681|       |
 1682|      5|    return type->getResultId();
 1683|      5|}
_ZNK3spv7Builder14getDerefTypeIdEj:
 1719|  8.09k|{
 1720|  8.09k|    Id typeId = getTypeId(resultId);
 1721|  8.09k|    assert(isPointerType(typeId));
 1722|       |
 1723|  8.09k|    return module.getInstruction(typeId)->getIdOperand(1);
 1724|  8.09k|}
_ZNK3spv7Builder21getMostBasicTypeClassEj:
 1727|  90.7k|{
 1728|  90.7k|    Instruction* instr = module.getInstruction(typeId);
 1729|       |
 1730|  90.7k|    Op typeClass = instr->getOpCode();
 1731|  90.7k|    switch (typeClass)
 1732|  90.7k|    {
 1733|  24.8k|    case Op::OpTypeVector:
  ------------------
  |  Branch (1733:5): [True: 24.8k, False: 65.8k]
  ------------------
 1734|  25.0k|    case Op::OpTypeMatrix:
  ------------------
  |  Branch (1734:5): [True: 232, False: 90.4k]
  ------------------
 1735|  25.1k|    case Op::OpTypeArray:
  ------------------
  |  Branch (1735:5): [True: 108, False: 90.5k]
  ------------------
 1736|  25.1k|    case Op::OpTypeRuntimeArray:
  ------------------
  |  Branch (1736:5): [True: 0, False: 90.7k]
  ------------------
 1737|  25.1k|        return getMostBasicTypeClass(instr->getIdOperand(0));
 1738|  15.1k|    case Op::OpTypePointer:
  ------------------
  |  Branch (1738:5): [True: 15.1k, False: 75.5k]
  ------------------
 1739|  15.1k|        return getMostBasicTypeClass(instr->getIdOperand(1));
 1740|  50.3k|    default:
  ------------------
  |  Branch (1740:5): [True: 50.3k, False: 40.3k]
  ------------------
 1741|  50.3k|        return typeClass;
 1742|  90.7k|    }
 1743|  90.7k|}
_ZNK3spv7Builder22getNumTypeConstituentsEj:
 1746|  3.58k|{
 1747|  3.58k|    Instruction* instr = module.getInstruction(typeId);
 1748|       |
 1749|  3.58k|    switch (instr->getOpCode())
 1750|  3.58k|    {
 1751|      0|    case Op::OpTypeBool:
  ------------------
  |  Branch (1751:5): [True: 0, False: 3.58k]
  ------------------
 1752|      8|    case Op::OpTypeInt:
  ------------------
  |  Branch (1752:5): [True: 8, False: 3.57k]
  ------------------
 1753|      8|    case Op::OpTypeFloat:
  ------------------
  |  Branch (1753:5): [True: 0, False: 3.58k]
  ------------------
 1754|      8|    case Op::OpTypePointer:
  ------------------
  |  Branch (1754:5): [True: 0, False: 3.58k]
  ------------------
 1755|      8|        return 1;
 1756|  3.57k|    case Op::OpTypeVector:
  ------------------
  |  Branch (1756:5): [True: 3.57k, False: 11]
  ------------------
 1757|  3.57k|    case Op::OpTypeMatrix:
  ------------------
  |  Branch (1757:5): [True: 3, False: 3.58k]
  ------------------
 1758|  3.57k|        return instr->getImmediateOperand(1);
 1759|      0|    case Op::OpTypeCooperativeVectorNV:
  ------------------
  |  Branch (1759:5): [True: 0, False: 3.58k]
  ------------------
 1760|      0|    case Op::OpTypeArray:
  ------------------
  |  Branch (1760:5): [True: 0, False: 3.58k]
  ------------------
 1761|      0|    {
 1762|      0|        Id lengthId = instr->getIdOperand(1);
 1763|      0|        return module.getInstruction(lengthId)->getImmediateOperand(0);
 1764|      0|    }
 1765|      0|    case Op::OpTypeStruct:
  ------------------
  |  Branch (1765:5): [True: 0, False: 3.58k]
  ------------------
 1766|      0|        return instr->getNumOperands();
 1767|      0|    case Op::OpTypeCooperativeMatrixKHR:
  ------------------
  |  Branch (1767:5): [True: 0, False: 3.58k]
  ------------------
 1768|      0|    case Op::OpTypeCooperativeMatrixNV:
  ------------------
  |  Branch (1768:5): [True: 0, False: 3.58k]
  ------------------
 1769|       |        // has only one constituent when used with OpCompositeConstruct.
 1770|      0|        return 1;
 1771|      0|    default:
  ------------------
  |  Branch (1771:5): [True: 0, False: 3.58k]
  ------------------
 1772|       |        assert(0);
 1773|      0|        return 1;
 1774|  3.58k|    }
 1775|  3.58k|}
_ZNK3spv7Builder15getScalarTypeIdEj:
 1781|  80.1k|{
 1782|  80.1k|    Instruction* instr = module.getInstruction(typeId);
 1783|       |
 1784|  80.1k|    Op typeClass = instr->getOpCode();
 1785|  80.1k|    switch (typeClass)
 1786|  80.1k|    {
 1787|      0|    case Op::OpTypeVoid:
  ------------------
  |  Branch (1787:5): [True: 0, False: 80.1k]
  ------------------
 1788|     48|    case Op::OpTypeBool:
  ------------------
  |  Branch (1788:5): [True: 48, False: 80.0k]
  ------------------
 1789|  23.0k|    case Op::OpTypeInt:
  ------------------
  |  Branch (1789:5): [True: 23.0k, False: 57.0k]
  ------------------
 1790|  42.8k|    case Op::OpTypeFloat:
  ------------------
  |  Branch (1790:5): [True: 19.7k, False: 60.3k]
  ------------------
 1791|  42.8k|    case Op::OpTypeStruct:
  ------------------
  |  Branch (1791:5): [True: 0, False: 80.1k]
  ------------------
 1792|  42.8k|        return instr->getResultId();
 1793|  25.0k|    case Op::OpTypeVector:
  ------------------
  |  Branch (1793:5): [True: 25.0k, False: 55.0k]
  ------------------
 1794|  25.2k|    case Op::OpTypeMatrix:
  ------------------
  |  Branch (1794:5): [True: 234, False: 79.8k]
  ------------------
 1795|  25.3k|    case Op::OpTypeArray:
  ------------------
  |  Branch (1795:5): [True: 108, False: 80.0k]
  ------------------
 1796|  25.3k|    case Op::OpTypeRuntimeArray:
  ------------------
  |  Branch (1796:5): [True: 0, False: 80.1k]
  ------------------
 1797|  37.3k|    case Op::OpTypePointer:
  ------------------
  |  Branch (1797:5): [True: 11.9k, False: 68.1k]
  ------------------
 1798|  37.3k|    case Op::OpTypeCooperativeVectorNV:
  ------------------
  |  Branch (1798:5): [True: 0, False: 80.1k]
  ------------------
 1799|  37.3k|        return getScalarTypeId(getContainedTypeId(typeId));
 1800|      0|    default:
  ------------------
  |  Branch (1800:5): [True: 0, False: 80.1k]
  ------------------
 1801|       |        assert(0);
 1802|      0|        return NoResult;
 1803|  80.1k|    }
 1804|  80.1k|}
_ZNK3spv7Builder18getContainedTypeIdEji:
 1808|  51.8k|{
 1809|  51.8k|    Instruction* instr = module.getInstruction(typeId);
 1810|       |
 1811|  51.8k|    Op typeClass = instr->getOpCode();
 1812|  51.8k|    switch (typeClass)
 1813|  51.8k|    {
 1814|  28.4k|    case Op::OpTypeVector:
  ------------------
  |  Branch (1814:5): [True: 28.4k, False: 23.4k]
  ------------------
 1815|  28.6k|    case Op::OpTypeMatrix:
  ------------------
  |  Branch (1815:5): [True: 282, False: 51.6k]
  ------------------
 1816|  28.8k|    case Op::OpTypeArray:
  ------------------
  |  Branch (1816:5): [True: 200, False: 51.6k]
  ------------------
 1817|  28.8k|    case Op::OpTypeRuntimeArray:
  ------------------
  |  Branch (1817:5): [True: 0, False: 51.8k]
  ------------------
 1818|  28.8k|    case Op::OpTypeCooperativeMatrixKHR:
  ------------------
  |  Branch (1818:5): [True: 0, False: 51.8k]
  ------------------
 1819|  28.8k|    case Op::OpTypeCooperativeMatrixNV:
  ------------------
  |  Branch (1819:5): [True: 0, False: 51.8k]
  ------------------
 1820|  28.8k|    case Op::OpTypeCooperativeVectorNV:
  ------------------
  |  Branch (1820:5): [True: 0, False: 51.8k]
  ------------------
 1821|  28.8k|        return instr->getIdOperand(0);
 1822|  21.4k|    case Op::OpTypePointer:
  ------------------
  |  Branch (1822:5): [True: 21.4k, False: 30.4k]
  ------------------
 1823|  21.4k|        return instr->getIdOperand(1);
 1824|  1.60k|    case Op::OpTypeStruct:
  ------------------
  |  Branch (1824:5): [True: 1.60k, False: 50.2k]
  ------------------
 1825|  1.60k|        return instr->getIdOperand(member);
 1826|      0|    default:
  ------------------
  |  Branch (1826:5): [True: 0, False: 51.8k]
  ------------------
 1827|       |        assert(0);
 1828|      0|        return NoResult;
 1829|  51.8k|    }
 1830|  51.8k|}
_ZNK3spv7Builder27getResultingAccessChainTypeEv:
 1834|  2.01k|{
 1835|  2.01k|    assert(accessChain.base != NoResult);
 1836|  2.01k|    Id typeId = getTypeId(accessChain.base);
 1837|       |
 1838|  2.01k|    assert(isPointerType(typeId));
 1839|  2.01k|    typeId = getContainedTypeId(typeId);
 1840|       |
 1841|  4.00k|    for (int i = 0; i < (int)accessChain.indexChain.size(); ++i) {
  ------------------
  |  Branch (1841:21): [True: 1.99k, False: 2.01k]
  ------------------
 1842|  1.99k|        if (isStructType(typeId)) {
  ------------------
  |  Branch (1842:13): [True: 955, False: 1.04k]
  ------------------
 1843|    955|            assert(isConstantScalar(accessChain.indexChain[i]));
 1844|    955|            typeId = getContainedTypeId(typeId, getConstantScalar(accessChain.indexChain[i]));
 1845|    955|        } else
 1846|  1.04k|            typeId = getContainedTypeId(typeId, accessChain.indexChain[i]);
 1847|  1.99k|    }
 1848|       |
 1849|  2.01k|    return typeId;
 1850|  2.01k|}
_ZNK3spv7Builder18getContainedTypeIdEj:
 1854|  49.2k|{
 1855|  49.2k|    return getContainedTypeId(typeId, 0);
 1856|  49.2k|}
_ZNK3spv7Builder12containsTypeEjNS_2OpEj:
 1862|  4.04k|{
 1863|  4.04k|    const Instruction& instr = *module.getInstruction(typeId);
 1864|       |
 1865|  4.04k|    Op typeClass = instr.getOpCode();
 1866|  4.04k|    switch (typeClass)
 1867|  4.04k|    {
 1868|  2.49k|    case Op::OpTypeInt:
  ------------------
  |  Branch (1868:5): [True: 2.49k, False: 1.55k]
  ------------------
 1869|  2.64k|    case Op::OpTypeFloat:
  ------------------
  |  Branch (1869:5): [True: 154, False: 3.88k]
  ------------------
 1870|  2.64k|        return typeClass == typeOp && instr.getImmediateOperand(0) == width;
  ------------------
  |  Branch (1870:16): [True: 1.70k, False: 936]
  |  Branch (1870:39): [True: 420, False: 1.28k]
  ------------------
 1871|     42|    case Op::OpTypeStruct:
  ------------------
  |  Branch (1871:5): [True: 42, False: 3.99k]
  ------------------
 1872|    174|        for (int m = 0; m < instr.getNumOperands(); ++m) {
  ------------------
  |  Branch (1872:25): [True: 144, False: 30]
  ------------------
 1873|    144|            if (containsType(instr.getIdOperand(m), typeOp, width))
  ------------------
  |  Branch (1873:17): [True: 12, False: 132]
  ------------------
 1874|     12|                return true;
 1875|    144|        }
 1876|     30|        return false;
 1877|     30|    case Op::OpTypePointer:
  ------------------
  |  Branch (1877:5): [True: 30, False: 4.01k]
  ------------------
 1878|     30|        return false;
 1879|  1.24k|    case Op::OpTypeVector:
  ------------------
  |  Branch (1879:5): [True: 1.24k, False: 2.79k]
  ------------------
 1880|  1.24k|    case Op::OpTypeMatrix:
  ------------------
  |  Branch (1880:5): [True: 0, False: 4.04k]
  ------------------
 1881|  1.24k|    case Op::OpTypeArray:
  ------------------
  |  Branch (1881:5): [True: 0, False: 4.04k]
  ------------------
 1882|  1.24k|    case Op::OpTypeRuntimeArray:
  ------------------
  |  Branch (1882:5): [True: 0, False: 4.04k]
  ------------------
 1883|  1.24k|        return containsType(getContainedTypeId(typeId), typeOp, width);
 1884|     78|    default:
  ------------------
  |  Branch (1884:5): [True: 78, False: 3.96k]
  ------------------
 1885|     78|        return typeClass == typeOp;
 1886|  4.04k|    }
 1887|  4.04k|}
_ZNK3spv7Builder36containsPhysicalStorageBufferOrArrayEj:
 1892|    647|{
 1893|    647|    const Instruction& instr = *module.getInstruction(typeId);
 1894|       |
 1895|    647|    Op typeClass = instr.getOpCode();
 1896|    647|    switch (typeClass)
 1897|    647|    {
 1898|      0|    case Op::OpTypePointer:
  ------------------
  |  Branch (1898:5): [True: 0, False: 647]
  ------------------
 1899|      0|        return getTypeStorageClass(typeId) == StorageClass::PhysicalStorageBufferEXT;
 1900|     24|    case Op::OpTypeArray:
  ------------------
  |  Branch (1900:5): [True: 24, False: 623]
  ------------------
 1901|     24|        return containsPhysicalStorageBufferOrArray(getContainedTypeId(typeId));
 1902|     10|    case Op::OpTypeStruct:
  ------------------
  |  Branch (1902:5): [True: 10, False: 637]
  ------------------
 1903|     50|        for (int m = 0; m < instr.getNumOperands(); ++m) {
  ------------------
  |  Branch (1903:25): [True: 40, False: 10]
  ------------------
 1904|     40|            if (containsPhysicalStorageBufferOrArray(instr.getIdOperand(m)))
  ------------------
  |  Branch (1904:17): [True: 0, False: 40]
  ------------------
 1905|      0|                return true;
 1906|     40|        }
 1907|     10|        return false;
 1908|    613|    default:
  ------------------
  |  Branch (1908:5): [True: 613, False: 34]
  ------------------
 1909|    613|        return false;
 1910|    647|    }
 1911|    647|}
_ZN3spv7Builder18findScalarConstantENS_2OpES1_jj:
 1916|  6.49k|{
 1917|  6.49k|    ScalarConstantKey key{ enumCast(typeClass), enumCast(opcode), typeId, value, 0 };
 1918|  6.49k|    auto it = groupedScalarConstantResultIDs.find(key);
 1919|  6.49k|    return (it != groupedScalarConstantResultIDs.end()) ? it->second : NoResult;
  ------------------
  |  Branch (1919:12): [True: 6.05k, False: 442]
  ------------------
 1920|  6.49k|}
_ZN3spv7Builder18findScalarConstantENS_2OpES1_jjj:
 1924|    229|{
 1925|    229|    ScalarConstantKey key{ enumCast(typeClass), enumCast(opcode), typeId, v1, v2 };
 1926|    229|    auto it = groupedScalarConstantResultIDs.find(key);
 1927|    229|    return (it != groupedScalarConstantResultIDs.end()) ? it->second : NoResult;
  ------------------
  |  Branch (1927:12): [True: 185, False: 44]
  ------------------
 1928|    229|}
_ZNK3spv7Builder16isConstantOpCodeENS_2OpE:
 1934|    442|{
 1935|    442|    switch (opcode) {
 1936|      0|    case Op::OpUndef:
  ------------------
  |  Branch (1936:5): [True: 0, False: 442]
  ------------------
 1937|      0|    case Op::OpConstantTrue:
  ------------------
  |  Branch (1937:5): [True: 0, False: 442]
  ------------------
 1938|      0|    case Op::OpConstantFalse:
  ------------------
  |  Branch (1938:5): [True: 0, False: 442]
  ------------------
 1939|     82|    case Op::OpConstant:
  ------------------
  |  Branch (1939:5): [True: 82, False: 360]
  ------------------
 1940|     82|    case Op::OpConstantDataKHR:
  ------------------
  |  Branch (1940:5): [True: 0, False: 442]
  ------------------
 1941|    334|    case Op::OpConstantComposite:
  ------------------
  |  Branch (1941:5): [True: 252, False: 190]
  ------------------
 1942|    334|    case Op::OpConstantCompositeReplicateEXT:
  ------------------
  |  Branch (1942:5): [True: 0, False: 442]
  ------------------
 1943|    334|    case Op::OpConstantSampler:
  ------------------
  |  Branch (1943:5): [True: 0, False: 442]
  ------------------
 1944|    334|    case Op::OpConstantNull:
  ------------------
  |  Branch (1944:5): [True: 0, False: 442]
  ------------------
 1945|    334|    case Op::OpSpecConstantTrue:
  ------------------
  |  Branch (1945:5): [True: 0, False: 442]
  ------------------
 1946|    334|    case Op::OpSpecConstantFalse:
  ------------------
  |  Branch (1946:5): [True: 0, False: 442]
  ------------------
 1947|    334|    case Op::OpSpecConstant:
  ------------------
  |  Branch (1947:5): [True: 0, False: 442]
  ------------------
 1948|    334|    case Op::OpSpecConstantComposite:
  ------------------
  |  Branch (1948:5): [True: 0, False: 442]
  ------------------
 1949|    334|    case Op::OpSpecConstantCompositeReplicateEXT:
  ------------------
  |  Branch (1949:5): [True: 0, False: 442]
  ------------------
 1950|    334|    case Op::OpSpecConstantDataKHR:
  ------------------
  |  Branch (1950:5): [True: 0, False: 442]
  ------------------
 1951|    334|    case Op::OpSpecConstantOp:
  ------------------
  |  Branch (1951:5): [True: 0, False: 442]
  ------------------
 1952|    334|    case Op::OpConstantSizeOfEXT:
  ------------------
  |  Branch (1952:5): [True: 0, False: 442]
  ------------------
 1953|    334|        return true;
 1954|    108|    default:
  ------------------
  |  Branch (1954:5): [True: 108, False: 334]
  ------------------
 1955|    108|        return false;
 1956|    442|    }
 1957|    442|}
_ZN3spv7Builder16makeBoolConstantEbb:
 2001|    218|{
 2002|    218|    Id typeId = makeBoolType();
 2003|    218|    Op opcode = specConstant ? (b ? Op::OpSpecConstantTrue : Op::OpSpecConstantFalse) : (b ? Op::OpConstantTrue : Op::OpConstantFalse);
  ------------------
  |  Branch (2003:17): [True: 14, False: 204]
  |  Branch (2003:33): [True: 14, False: 0]
  |  Branch (2003:90): [True: 124, False: 80]
  ------------------
 2004|       |
 2005|       |    // See if we already made it. Applies only to regular constants, because specialization constants
 2006|       |    // must remain distinct for the purpose of applying a SpecId decoration.
 2007|    218|    if (!specConstant) {
  ------------------
  |  Branch (2007:9): [True: 204, False: 14]
  ------------------
 2008|    204|        Id existing = findScalarConstant(Op::OpTypeBool, opcode, typeId, 0);
 2009|    204|        if (existing)
  ------------------
  |  Branch (2009:13): [True: 170, False: 34]
  ------------------
 2010|    170|            return existing;
 2011|    204|    }
 2012|       |
 2013|       |    // Make it
 2014|     48|    Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
 2015|     48|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(c));
 2016|     48|    module.mapInstruction(c);
 2017|       |
 2018|     48|    Id resultId = c->getResultId();
 2019|     48|    if (!specConstant) {
  ------------------
  |  Branch (2019:9): [True: 34, False: 14]
  ------------------
 2020|     34|        ScalarConstantKey key{enumCast(Op::OpTypeBool), enumCast(opcode), typeId, 0, 0};
 2021|     34|        groupedScalarConstantResultIDs[key] = resultId;
 2022|     34|    }
 2023|     48|    return resultId;
 2024|    218|}
_ZN3spv7Builder15makeIntConstantEjjb:
 2027|  5.83k|{
 2028|  5.83k|    Op opcode = specConstant ? Op::OpSpecConstant : Op::OpConstant;
  ------------------
  |  Branch (2028:17): [True: 63, False: 5.77k]
  ------------------
 2029|       |
 2030|       |    // See if we already made it. Applies only to regular constants, because specialization constants
 2031|       |    // must remain distinct for the purpose of applying a SpecId decoration.
 2032|  5.83k|    if (! specConstant) {
  ------------------
  |  Branch (2032:9): [True: 5.77k, False: 63]
  ------------------
 2033|  5.77k|        Id existing = findScalarConstant(Op::OpTypeInt, opcode, typeId, value);
 2034|  5.77k|        if (existing)
  ------------------
  |  Branch (2034:13): [True: 5.41k, False: 357]
  ------------------
 2035|  5.41k|            return existing;
 2036|  5.77k|    }
 2037|       |
 2038|    420|    Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
 2039|    420|    c->addImmediateOperand(value);
 2040|    420|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(c));
 2041|    420|    module.mapInstruction(c);
 2042|       |
 2043|    420|    Id resultId = c->getResultId();
 2044|    420|    if (!specConstant) {
  ------------------
  |  Branch (2044:9): [True: 357, False: 63]
  ------------------
 2045|    357|        ScalarConstantKey key{ enumCast(Op::OpTypeInt), enumCast(opcode), typeId, value, 0 };
 2046|    357|        groupedScalarConstantResultIDs[key] = resultId;
 2047|    357|    }
 2048|    420|    return resultId;
 2049|  5.83k|}
_ZN3spv7Builder17makeInt64ConstantEjyb:
 2052|    255|{
 2053|    255|    Op opcode = specConstant ? Op::OpSpecConstant : Op::OpConstant;
  ------------------
  |  Branch (2053:17): [True: 26, False: 229]
  ------------------
 2054|       |
 2055|    255|    unsigned op1 = value & 0xFFFFFFFF;
 2056|    255|    unsigned op2 = value >> 32;
 2057|       |
 2058|       |    // See if we already made it. Applies only to regular constants, because specialization constants
 2059|       |    // must remain distinct for the purpose of applying a SpecId decoration.
 2060|    255|    if (! specConstant) {
  ------------------
  |  Branch (2060:9): [True: 229, False: 26]
  ------------------
 2061|    229|        Id existing = findScalarConstant(Op::OpTypeInt, opcode, typeId, op1, op2);
 2062|    229|        if (existing)
  ------------------
  |  Branch (2062:13): [True: 185, False: 44]
  ------------------
 2063|    185|            return existing;
 2064|    229|    }
 2065|       |
 2066|     70|    Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
 2067|     70|    c->reserveOperands(2);
 2068|     70|    c->addImmediateOperand(op1);
 2069|     70|    c->addImmediateOperand(op2);
 2070|     70|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(c));
 2071|     70|    module.mapInstruction(c);
 2072|       |
 2073|     70|    Id resultId = c->getResultId();
 2074|     70|    if (!specConstant) {
  ------------------
  |  Branch (2074:9): [True: 44, False: 26]
  ------------------
 2075|     44|        ScalarConstantKey key{ enumCast(Op::OpTypeInt), enumCast(opcode), typeId, op1, op2 };
 2076|     44|        groupedScalarConstantResultIDs[key] = resultId;
 2077|     44|    }
 2078|     70|    return resultId;
 2079|    255|}
_ZN3spv7Builder17makeFloatConstantEfb:
 2082|    324|{
 2083|    324|    Op opcode = specConstant ? Op::OpSpecConstant : Op::OpConstant;
  ------------------
  |  Branch (2083:17): [True: 0, False: 324]
  ------------------
 2084|    324|    Id typeId = makeFloatType(32);
 2085|    324|    union { float fl; unsigned int ui; } u;
 2086|    324|    u.fl = f;
 2087|    324|    unsigned value = u.ui;
 2088|       |
 2089|       |    // See if we already made it. Applies only to regular constants, because specialization constants
 2090|       |    // must remain distinct for the purpose of applying a SpecId decoration.
 2091|    324|    if (! specConstant) {
  ------------------
  |  Branch (2091:9): [True: 324, False: 0]
  ------------------
 2092|    324|        Id existing = findScalarConstant(Op::OpTypeFloat, opcode, typeId, value);
 2093|    324|        if (existing)
  ------------------
  |  Branch (2093:13): [True: 276, False: 48]
  ------------------
 2094|    276|            return existing;
 2095|    324|    }
 2096|       |
 2097|     48|    Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
 2098|     48|    c->addImmediateOperand(value);
 2099|     48|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(c));
 2100|     48|    module.mapInstruction(c);
 2101|       |
 2102|     48|    Id resultId = c->getResultId();
 2103|     48|    if (!specConstant) {
  ------------------
  |  Branch (2103:9): [True: 48, False: 0]
  ------------------
 2104|     48|        ScalarConstantKey key{ enumCast(Op::OpTypeFloat), enumCast(opcode), typeId, value, 0 };
 2105|     48|        groupedScalarConstantResultIDs[key] = resultId;
 2106|     48|    }
 2107|     48|    return resultId;
 2108|    324|}
_ZN3spv7Builder19makeFloat16ConstantEfb:
 2144|    198|{
 2145|    198|    Op opcode = specConstant ? Op::OpSpecConstant : Op::OpConstant;
  ------------------
  |  Branch (2145:17): [True: 0, False: 198]
  ------------------
 2146|    198|    Id typeId = makeFloatType(16);
 2147|       |
 2148|    198|    spvutils::HexFloat<spvutils::FloatProxy<float>> fVal(f16);
 2149|    198|    spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>> f16Val(0);
 2150|    198|    fVal.castTo(f16Val, spvutils::kRoundToZero);
 2151|       |
 2152|    198|    unsigned value = f16Val.value().getAsFloat().get_value();
 2153|       |
 2154|       |    // See if we already made it. Applies only to regular constants, because specialization constants
 2155|       |    // must remain distinct for the purpose of applying a SpecId decoration.
 2156|    198|    if (!specConstant) {
  ------------------
  |  Branch (2156:9): [True: 198, False: 0]
  ------------------
 2157|    198|        Id existing = findScalarConstant(Op::OpTypeFloat, opcode, typeId, value);
 2158|    198|        if (existing)
  ------------------
  |  Branch (2158:13): [True: 195, False: 3]
  ------------------
 2159|    195|            return existing;
 2160|    198|    }
 2161|       |
 2162|      3|    Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
 2163|      3|    c->addImmediateOperand(value);
 2164|      3|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(c));
 2165|      3|    module.mapInstruction(c);
 2166|       |
 2167|      3|    Id resultId = c->getResultId();
 2168|      3|    if (!specConstant) {
  ------------------
  |  Branch (2168:9): [True: 3, False: 0]
  ------------------
 2169|      3|        ScalarConstantKey key{ enumCast(Op::OpTypeFloat), enumCast(opcode), typeId, value, 0 };
 2170|      3|        groupedScalarConstantResultIDs[key] = resultId;
 2171|      3|    }
 2172|      3|    return resultId;
 2173|    198|}
_ZN3spv7Builder21findCompositeConstantENS_2OpES1_jRKNSt3__16vectorIjNS2_9allocatorIjEEEEm:
 2393|    934|{
 2394|    934|    auto it = groupedCompositeConstants.find(
 2395|    934|        CompositeConstantKey(typeClass, opcode, typeId, comps, numMembers));
 2396|    934|    if (it != groupedCompositeConstants.end()) {
  ------------------
  |  Branch (2396:9): [True: 745, False: 189]
  ------------------
 2397|    745|        const Instruction* constant = (*it).getInstruction();
 2398|    745|        return constant->getResultId();
 2399|    745|    }
 2400|    189|    return NoResult;
 2401|    934|}
_ZN3spv7Builder21makeCompositeConstantEjRKNSt3__16vectorIjNS1_9allocatorIjEEEEb:
 2415|    934|{
 2416|    934|    assert(typeId);
 2417|    934|    Op typeClass = getTypeClass(typeId);
 2418|       |
 2419|    934|    bool replicate = false;
 2420|    934|    size_t numMembers = members.size();
 2421|    934|    if (useReplicatedComposites || typeClass == Op::OpTypeCooperativeVectorNV) {
  ------------------
  |  Branch (2421:9): [True: 0, False: 934]
  |  Branch (2421:36): [True: 0, False: 934]
  ------------------
 2422|       |        // use replicate if all members are the same
 2423|      0|        replicate = numMembers > 0 &&
  ------------------
  |  Branch (2423:21): [True: 0, False: 0]
  ------------------
 2424|      0|            std::equal(members.begin() + 1, members.end(), members.begin());
  ------------------
  |  Branch (2424:13): [True: 0, False: 0]
  ------------------
 2425|       |
 2426|      0|        if (replicate) {
  ------------------
  |  Branch (2426:13): [True: 0, False: 0]
  ------------------
 2427|      0|            numMembers = 1;
 2428|      0|            addCapability(spv::Capability::ReplicatedCompositesEXT);
 2429|      0|            addExtension(spv::E_SPV_EXT_replicated_composites);
 2430|      0|        }
 2431|      0|    }
 2432|       |
 2433|    934|    Op opcode = replicate ?
  ------------------
  |  Branch (2433:17): [True: 0, False: 934]
  ------------------
 2434|      0|        (specConstant ? Op::OpSpecConstantCompositeReplicateEXT : Op::OpConstantCompositeReplicateEXT) :
  ------------------
  |  Branch (2434:10): [True: 0, False: 0]
  ------------------
 2435|    934|        (specConstant ? Op::OpSpecConstantComposite : Op::OpConstantComposite);
  ------------------
  |  Branch (2435:10): [True: 0, False: 934]
  ------------------
 2436|       |
 2437|    934|    switch (typeClass) {
 2438|    872|    case Op::OpTypeVector:
  ------------------
  |  Branch (2438:5): [True: 872, False: 62]
  ------------------
 2439|    934|    case Op::OpTypeArray:
  ------------------
  |  Branch (2439:5): [True: 62, False: 872]
  ------------------
 2440|    934|    case Op::OpTypeMatrix:
  ------------------
  |  Branch (2440:5): [True: 0, False: 934]
  ------------------
 2441|    934|    case Op::OpTypeCooperativeMatrixKHR:
  ------------------
  |  Branch (2441:5): [True: 0, False: 934]
  ------------------
 2442|    934|    case Op::OpTypeCooperativeMatrixNV:
  ------------------
  |  Branch (2442:5): [True: 0, False: 934]
  ------------------
 2443|    934|    case Op::OpTypeCooperativeVectorNV:
  ------------------
  |  Branch (2443:5): [True: 0, False: 934]
  ------------------
 2444|    934|        if (! specConstant) {
  ------------------
  |  Branch (2444:13): [True: 934, False: 0]
  ------------------
 2445|    934|            Id existing = findCompositeConstant(typeClass, opcode, typeId, members, numMembers);
 2446|    934|            if (existing)
  ------------------
  |  Branch (2446:17): [True: 745, False: 189]
  ------------------
 2447|    745|                return existing;
 2448|    934|        }
 2449|    189|        break;
 2450|    189|    case Op::OpTypeStruct:
  ------------------
  |  Branch (2450:5): [True: 0, False: 934]
  ------------------
 2451|      0|        if (! specConstant) {
  ------------------
  |  Branch (2451:13): [True: 0, False: 0]
  ------------------
 2452|      0|            Id existing = findStructConstant(typeId, members, numMembers);
 2453|      0|            if (existing)
  ------------------
  |  Branch (2453:17): [True: 0, False: 0]
  ------------------
 2454|      0|                return existing;
 2455|      0|        }
 2456|      0|        break;
 2457|      0|    default:
  ------------------
  |  Branch (2457:5): [True: 0, False: 934]
  ------------------
 2458|      0|        assert(0);
 2459|      0|        return makeFloatConstant(0.0);
 2460|    934|    }
 2461|       |
 2462|    189|    Instruction* c = new Instruction(getUniqueId(), typeId, opcode);
 2463|    189|    c->reserveOperands(members.size());
 2464|    679|    for (size_t op = 0; op < numMembers; ++op)
  ------------------
  |  Branch (2464:25): [True: 490, False: 189]
  ------------------
 2465|    490|        c->addIdOperand(members[op]);
 2466|    189|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(c));
 2467|    189|    if (typeClass == Op::OpTypeStruct)
  ------------------
  |  Branch (2467:9): [True: 0, False: 189]
  ------------------
 2468|      0|        groupedStructConstants.insert(StructConstantKey(c));
 2469|    189|    else
 2470|    189|        groupedCompositeConstants.insert(CompositeConstantKey(typeClass, c));
 2471|    189|    module.mapInstruction(c);
 2472|       |
 2473|    189|    return c->getResultId();
 2474|    934|}
_ZN3spv7Builder13addEntryPointENS_14ExecutionModelEPNS_8FunctionEPKc:
 2477|     42|{
 2478|     42|    Instruction* entryPoint = new Instruction(Op::OpEntryPoint);
 2479|     42|    entryPoint->reserveOperands(3);
 2480|     42|    entryPoint->addImmediateOperand(model);
 2481|     42|    entryPoint->addIdOperand(function->getId());
 2482|     42|    entryPoint->addStringOperand(name);
 2483|       |
 2484|     42|    entryPoints.push_back(std::unique_ptr<Instruction>(entryPoint));
 2485|       |
 2486|     42|    return entryPoint;
 2487|     42|}
_ZN3spv7Builder16addExecutionModeEPNS_8FunctionENS_13ExecutionModeEiii:
 2491|     42|{
 2492|       |    // entryPoint can be null if we are in compile-only mode
 2493|     42|    if (!entryPoint)
  ------------------
  |  Branch (2493:9): [True: 0, False: 42]
  ------------------
 2494|      0|        return;
 2495|       |
 2496|     42|    Instruction* instr = new Instruction(Op::OpExecutionMode);
 2497|     42|    instr->reserveOperands(3);
 2498|     42|    instr->addIdOperand(entryPoint->getId());
 2499|     42|    instr->addImmediateOperand(mode);
 2500|     42|    if (value1 >= 0)
  ------------------
  |  Branch (2500:9): [True: 0, False: 42]
  ------------------
 2501|      0|        instr->addImmediateOperand(value1);
 2502|     42|    if (value2 >= 0)
  ------------------
  |  Branch (2502:9): [True: 0, False: 42]
  ------------------
 2503|      0|        instr->addImmediateOperand(value2);
 2504|     42|    if (value3 >= 0)
  ------------------
  |  Branch (2504:9): [True: 0, False: 42]
  ------------------
 2505|      0|        instr->addImmediateOperand(value3);
 2506|       |
 2507|     42|    executionModes.push_back(std::unique_ptr<Instruction>(instr));
 2508|     42|}
_ZN3spv7Builder7addNameEjPKc:
 2543|  1.60k|{
 2544|  1.60k|    Instruction* name = new Instruction(Op::OpName);
 2545|  1.60k|    name->reserveOperands(2);
 2546|  1.60k|    name->addIdOperand(id);
 2547|  1.60k|    name->addStringOperand(string);
 2548|       |
 2549|  1.60k|    names.push_back(std::unique_ptr<Instruction>(name));
 2550|  1.60k|}
_ZN3spv7Builder13addMemberNameEjiPKc:
 2553|    245|{
 2554|    245|    Instruction* name = new Instruction(Op::OpMemberName);
 2555|    245|    name->reserveOperands(3);
 2556|    245|    name->addIdOperand(id);
 2557|    245|    name->addImmediateOperand(memberNumber);
 2558|    245|    name->addStringOperand(string);
 2559|       |
 2560|    245|    names.push_back(std::unique_ptr<Instruction>(name));
 2561|    245|}
_ZN3spv7Builder13addDecorationEjNS_10DecorationEi:
 2564|  29.9k|{
 2565|  29.9k|    if (decoration == spv::Decoration::Max)
  ------------------
  |  Branch (2565:9): [True: 28.4k, False: 1.47k]
  ------------------
 2566|  28.4k|        return;
 2567|       |
 2568|  1.47k|    Instruction* dec = new Instruction(Op::OpDecorate);
 2569|  1.47k|    dec->reserveOperands(2);
 2570|  1.47k|    dec->addIdOperand(id);
 2571|  1.47k|    dec->addImmediateOperand(decoration);
 2572|  1.47k|    if (num >= 0)
  ------------------
  |  Branch (2572:9): [True: 664, False: 812]
  ------------------
 2573|    664|        dec->addImmediateOperand(num);
 2574|       |
 2575|  1.47k|    decorations.insert(std::unique_ptr<Instruction>(dec));
 2576|  1.47k|}
_ZN3spv7Builder19addMemberDecorationEjjNS_10DecorationEi:
 2681|  1.20k|{
 2682|  1.20k|    if (decoration == spv::Decoration::Max)
  ------------------
  |  Branch (2682:9): [True: 978, False: 229]
  ------------------
 2683|    978|        return;
 2684|       |
 2685|    229|    Instruction* dec = new Instruction(Op::OpMemberDecorate);
 2686|    229|    dec->reserveOperands(3);
 2687|    229|    dec->addIdOperand(id);
 2688|    229|    dec->addImmediateOperand(member);
 2689|    229|    dec->addImmediateOperand(decoration);
 2690|    229|    if (num >= 0)
  ------------------
  |  Branch (2690:9): [True: 227, False: 2]
  ------------------
 2691|    227|        dec->addImmediateOperand(num);
 2692|       |
 2693|    229|    decorations.insert(std::unique_ptr<Instruction>(dec));
 2694|    229|}
_ZN3spv7Builder14addInstructionENSt3__110unique_ptrINS_11InstructionENS1_14default_deleteIS3_EEEE:
 2743|  20.5k|void Builder::addInstruction(std::unique_ptr<Instruction> inst) {
 2744|       |    // Phis must appear first in their block, don't insert line tracking instructions
 2745|       |    // in front of them, just add the OpPhi and return.
 2746|  20.5k|    if (inst->getOpCode() == Op::OpPhi) {
  ------------------
  |  Branch (2746:9): [True: 4, False: 20.5k]
  ------------------
 2747|      4|        buildPoint->addInstruction(std::move(inst));
 2748|      4|        return;
 2749|      4|    }
 2750|       |    // Optionally insert OpDebugScope
 2751|  20.5k|    if (emitNonSemanticShaderDebugInfo && dirtyScopeTracker) {
  ------------------
  |  Branch (2751:9): [True: 0, False: 20.5k]
  |  Branch (2751:43): [True: 0, False: 0]
  ------------------
 2752|      0|        if (buildPoint->updateDebugScope(currentDebugScopeId.top())) {
  ------------------
  |  Branch (2752:13): [True: 0, False: 0]
  ------------------
 2753|      0|            auto scopeInst = std::make_unique<Instruction>(getUniqueId(), makeVoidType(), Op::OpExtInst);
 2754|      0|            scopeInst->reserveOperands(3);
 2755|      0|            scopeInst->addIdOperand(nonSemanticShaderDebugInfo);
 2756|      0|            scopeInst->addImmediateOperand(NonSemanticShaderDebugInfoDebugScope);
 2757|      0|            scopeInst->addIdOperand(currentDebugScopeId.top());
 2758|      0|            buildPoint->addInstruction(std::move(scopeInst));
 2759|      0|        }
 2760|       |
 2761|      0|        dirtyScopeTracker = false;
 2762|      0|    }
 2763|       |
 2764|       |    // Insert OpLine/OpDebugLine if the debug source location has changed
 2765|  20.5k|    if (trackDebugInfo && dirtyLineTracker) {
  ------------------
  |  Branch (2765:9): [True: 0, False: 20.5k]
  |  Branch (2765:27): [True: 0, False: 0]
  ------------------
 2766|      0|        if (buildPoint->updateDebugSourceLocation(currentLine, 0, currentFileId)) {
  ------------------
  |  Branch (2766:13): [True: 0, False: 0]
  ------------------
 2767|      0|            if (emitSpirvDebugInfo) {
  ------------------
  |  Branch (2767:17): [True: 0, False: 0]
  ------------------
 2768|      0|                auto lineInst = std::make_unique<Instruction>(Op::OpLine);
 2769|      0|                lineInst->reserveOperands(3);
 2770|      0|                lineInst->addIdOperand(currentFileId);
 2771|      0|                lineInst->addImmediateOperand(currentLine);
 2772|      0|                lineInst->addImmediateOperand(0);
 2773|      0|                buildPoint->addInstruction(std::move(lineInst));
 2774|      0|            }
 2775|      0|            if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (2775:17): [True: 0, False: 0]
  ------------------
 2776|      0|                auto lineInst = std::make_unique<Instruction>(getUniqueId(), makeVoidType(), Op::OpExtInst);
 2777|      0|                lineInst->reserveOperands(7);
 2778|      0|                lineInst->addIdOperand(nonSemanticShaderDebugInfo);
 2779|      0|                lineInst->addImmediateOperand(NonSemanticShaderDebugInfoDebugLine);
 2780|      0|                lineInst->addIdOperand(makeDebugSource(currentFileId));
 2781|      0|                lineInst->addIdOperand(makeUintConstant(currentLine));
 2782|      0|                lineInst->addIdOperand(makeUintConstant(currentLine));
 2783|      0|                lineInst->addIdOperand(makeUintConstant(0));
 2784|      0|                lineInst->addIdOperand(makeUintConstant(0));
 2785|      0|                buildPoint->addInstruction(std::move(lineInst));
 2786|      0|            }
 2787|      0|        }
 2788|       |
 2789|      0|        dirtyLineTracker = false;
 2790|      0|    }
 2791|       |
 2792|  20.5k|    buildPoint->addInstruction(std::move(inst));
 2793|  20.5k|}
_ZN3spv7Builder25addInstructionNoDebugInfoENSt3__110unique_ptrINS_11InstructionENS1_14default_deleteIS3_EEEE:
 2795|    353|void Builder::addInstructionNoDebugInfo(std::unique_ptr<Instruction> inst) {
 2796|    353|    buildPoint->addInstruction(std::move(inst));
 2797|    353|}
_ZN3spv7Builder14makeEntryPointEPKc:
 2801|     42|{
 2802|     42|    assert(! entryPointFunction);
 2803|       |
 2804|     42|    auto const returnType = makeVoidType();
 2805|       |
 2806|     42|    restoreNonSemanticShaderDebugInfo = emitNonSemanticShaderDebugInfo;
 2807|     42|    if(sourceLang == spv::SourceLanguage::HLSL) {
  ------------------
  |  Branch (2807:8): [True: 0, False: 42]
  ------------------
 2808|      0|        emitNonSemanticShaderDebugInfo = false;
 2809|      0|    }
 2810|       |
 2811|     42|    Block* entry = nullptr;
 2812|     42|    entryPointFunction = makeFunctionEntry(NoPrecision, returnType, entryPoint, LinkageType::Max, {}, {}, &entry);
 2813|       |
 2814|     42|    emitNonSemanticShaderDebugInfo = restoreNonSemanticShaderDebugInfo;
 2815|       |
 2816|     42|    return entryPointFunction;
 2817|     42|}
_ZN3spv7Builder17makeFunctionEntryENS_10DecorationEjPKcNS_11LinkageTypeERKNSt3__16vectorIjNS5_9allocatorIjEEEERKNS6_INS6_IS1_NS7_IS1_EEEENS7_ISD_EEEEPPNS_5BlockE:
 2823|    199|{
 2824|       |    // Make the function and initial instructions in it
 2825|    199|    Id typeId = makeFunctionType(returnType, paramTypes);
 2826|    199|    Id firstParamId = paramTypes.size() == 0 ? NoType : getUniqueIds((int)paramTypes.size());
  ------------------
  |  Branch (2826:23): [True: 192, False: 7]
  ------------------
 2827|    199|    Id funcId = getUniqueId();
 2828|    199|    Function* function = new Function(funcId, returnType, typeId, firstParamId, linkType, name, module);
 2829|       |
 2830|       |    // Set up the precisions
 2831|    199|    setPrecision(function->getId(), precision);
 2832|    199|    function->setReturnPrecision(precision);
 2833|    213|    for (unsigned p = 0; p < (unsigned)decorations.size(); ++p) {
  ------------------
  |  Branch (2833:26): [True: 14, False: 199]
  ------------------
 2834|     14|        for (int d = 0; d < (int)decorations[p].size(); ++d) {
  ------------------
  |  Branch (2834:25): [True: 0, False: 14]
  ------------------
 2835|      0|            addDecoration(firstParamId + p, decorations[p][d]);
 2836|      0|            function->addParamPrecision(p, decorations[p][d]);
 2837|      0|        }
 2838|     14|    }
 2839|       |
 2840|       |    // reset last debug scope
 2841|    199|    if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (2841:9): [True: 0, False: 199]
  ------------------
 2842|      0|        dirtyScopeTracker = true;
 2843|      0|    }
 2844|       |
 2845|       |    // CFG
 2846|    199|    assert(entry != nullptr);
 2847|    199|    *entry = new Block(getUniqueId(), *function);
 2848|    199|    function->addBlock(*entry);
 2849|    199|    setBuildPoint(*entry);
 2850|       |
 2851|    199|    if (name)
  ------------------
  |  Branch (2851:9): [True: 199, False: 0]
  ------------------
 2852|    199|        addName(function->getId(), name);
 2853|       |
 2854|    199|    functions.push_back(std::unique_ptr<Function>(function));
 2855|       |
 2856|    199|    return function;
 2857|    199|}
_ZN3spv7Builder22setupFunctionDebugInfoEPNS_8FunctionEPKcRKNSt3__16vectorIjNS5_9allocatorIjEEEERKNS6_IS4_NS7_IS4_EEEE:
 2861|    199|{
 2862|       |
 2863|    199|    if (!emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (2863:9): [True: 199, False: 0]
  ------------------
 2864|    199|        return;
 2865|       |
 2866|      0|    Id nameId = getStringId(unmangleFunctionName(name));
 2867|      0|    Id funcTypeId = function->getFuncTypeId();
 2868|      0|    assert(getDebugType(funcTypeId) != NoType);
 2869|      0|    Id funcId = function->getId();
 2870|       |
 2871|      0|    assert(funcId != 0);
 2872|       |
 2873|       |    // Make the debug function instruction
 2874|      0|    Id debugFuncId = makeDebugFunction(function, nameId, funcTypeId);
 2875|      0|    debugFuncIdLookup[funcId] = debugFuncId;
 2876|      0|    currentDebugScopeId.push(debugFuncId);
 2877|       |
 2878|       |    // DebugScope and DebugLine for parameter DebugDeclares
 2879|      0|    assert(paramTypes.size() == paramNames.size());
 2880|      0|    if ((int)paramTypes.size() > 0) {
  ------------------
  |  Branch (2880:9): [True: 0, False: 0]
  ------------------
 2881|      0|        Id firstParamId = function->getParamId(0);
 2882|       |
 2883|      0|        for (size_t p = 0; p < paramTypes.size(); ++p) {
  ------------------
  |  Branch (2883:28): [True: 0, False: 0]
  ------------------
 2884|      0|            bool passByRef = false;
 2885|      0|            Id paramTypeId = paramTypes[p];
 2886|       |
 2887|       |            // For pointer-typed parameters, they are actually passed by reference and we need unwrap the pointer to get the actual parameter type.
 2888|      0|            if (isPointerType(paramTypeId) || isArrayType(paramTypeId)) {
  ------------------
  |  Branch (2888:17): [True: 0, False: 0]
  |  Branch (2888:47): [True: 0, False: 0]
  ------------------
 2889|      0|                passByRef = true;
 2890|      0|                paramTypeId = getContainedTypeId(paramTypeId);
 2891|      0|            }
 2892|       |
 2893|      0|            auto const& paramName = paramNames[p];
 2894|      0|            auto const debugLocalVariableId = createDebugLocalVariable(getDebugType(paramTypeId), paramName, p + 1);
 2895|      0|            auto const paramId = static_cast<Id>(firstParamId + p);
 2896|       |
 2897|      0|            if (passByRef) {
  ------------------
  |  Branch (2897:17): [True: 0, False: 0]
  ------------------
 2898|      0|                makeDebugDeclare(debugLocalVariableId, paramId);
 2899|      0|            } else {
 2900|      0|                makeDebugValue(debugLocalVariableId, paramId);
 2901|      0|            }
 2902|      0|        }
 2903|      0|    }
 2904|       |
 2905|       |    // Clear debug scope stack
 2906|      0|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (2906:9): [True: 0, False: 0]
  ------------------
 2907|      0|        currentDebugScopeId.pop();
 2908|      0|}
_ZN3spv7Builder10makeReturnEbj:
 2995|    303|{
 2996|    303|    if (retVal) {
  ------------------
  |  Branch (2996:9): [True: 204, False: 99]
  ------------------
 2997|    204|        Instruction* inst = new Instruction(NoResult, NoType, Op::OpReturnValue);
 2998|    204|        inst->addIdOperand(retVal);
 2999|    204|        addInstruction(std::unique_ptr<Instruction>(inst));
 3000|    204|    } else
 3001|     99|        addInstruction(std::unique_ptr<Instruction>(new Instruction(NoResult, NoType, Op::OpReturn)));
 3002|       |
 3003|    303|    if (! implicit)
  ------------------
  |  Branch (3003:9): [True: 104, False: 199]
  ------------------
 3004|    104|        createAndSetNoPredecessorBlock("post-return");
 3005|    303|}
_ZN3spv7Builder13enterFunctionEPKNS_8FunctionE:
 3034|    199|{
 3035|    199|    currentFunction = function;
 3036|       |
 3037|       |    // Save and disable debugInfo for HLSL entry point function. It is a wrapper
 3038|       |    // function with no user code in it.
 3039|    199|    restoreNonSemanticShaderDebugInfo = emitNonSemanticShaderDebugInfo;
 3040|    199|    if (sourceLang == spv::SourceLanguage::HLSL && function == entryPointFunction) {
  ------------------
  |  Branch (3040:9): [True: 0, False: 199]
  |  Branch (3040:52): [True: 0, False: 0]
  ------------------
 3041|      0|        emitNonSemanticShaderDebugInfo = false;
 3042|      0|    }
 3043|       |
 3044|    199|    if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (3044:9): [True: 0, False: 199]
  ------------------
 3045|       |        // Initialize scope state
 3046|      0|        Id funcId = function->getFuncId();
 3047|      0|        Id debugFuncId = getDebugFunction(funcId);
 3048|      0|        currentDebugScopeId.push(debugFuncId);
 3049|       |        // Create DebugFunctionDefinition
 3050|      0|        spv::Id resultId = getUniqueId();
 3051|      0|        Instruction* defInst = new Instruction(resultId, makeVoidType(), Op::OpExtInst);
 3052|      0|        defInst->reserveOperands(4);
 3053|      0|        defInst->addIdOperand(nonSemanticShaderDebugInfo);
 3054|      0|        defInst->addImmediateOperand(NonSemanticShaderDebugInfoDebugFunctionDefinition);
 3055|      0|        defInst->addIdOperand(debugFuncId);
 3056|      0|        defInst->addIdOperand(funcId);
 3057|      0|        addInstruction(std::unique_ptr<Instruction>(defInst));
 3058|      0|    }
 3059|       |
 3060|    199|    if (auto linkType = function->getLinkType(); linkType != LinkageType::Max) {
  ------------------
  |  Branch (3060:50): [True: 0, False: 199]
  ------------------
 3061|      0|        Id funcId = function->getFuncId();
 3062|      0|        addCapability(Capability::Linkage);
 3063|      0|        addLinkageDecoration(funcId, function->getExportName(), linkType);
 3064|      0|    }
 3065|    199|}
_ZN3spv7Builder13leaveFunctionEv:
 3069|    199|{
 3070|    199|    Block* block = buildPoint;
 3071|    199|    Function& function = buildPoint->getParent();
 3072|    199|    assert(block);
 3073|       |
 3074|       |    // If our function did not contain a return, add a return void now.
 3075|    199|    if (! block->isTerminated()) {
  ------------------
  |  Branch (3075:9): [True: 199, False: 0]
  ------------------
 3076|    199|        if (function.getReturnType() == makeVoidType())
  ------------------
  |  Branch (3076:13): [True: 97, False: 102]
  ------------------
 3077|     97|            makeReturn(true);
 3078|    102|        else {
 3079|    102|            makeReturn(true, createUndefined(function.getReturnType()));
 3080|    102|        }
 3081|    199|    }
 3082|       |
 3083|       |    // Clear function scope from debug scope stack
 3084|    199|    if (emitNonSemanticShaderDebugInfo)
  ------------------
  |  Branch (3084:9): [True: 0, False: 199]
  ------------------
 3085|      0|        currentDebugScopeId.pop();
 3086|       |
 3087|    199|    emitNonSemanticShaderDebugInfo = restoreNonSemanticShaderDebugInfo;
 3088|       |
 3089|       |    // Clear current function record
 3090|    199|    currentFunction = nullptr;
 3091|    199|}
_ZN3spv7Builder19createConstVariableEjPKcjb:
 3111|    385|{
 3112|    385|    if (emitNonSemanticShaderDebugInfo) {
  ------------------
  |  Branch (3112:9): [True: 0, False: 385]
  ------------------
 3113|      0|        Id debugType = getDebugType(type);
 3114|      0|        if (isGlobal) {
  ------------------
  |  Branch (3114:13): [True: 0, False: 0]
  ------------------
 3115|      0|            createDebugGlobalVariable(debugType, name, constant);
 3116|      0|        }
 3117|      0|        else {
 3118|      0|            auto debugLocal = createDebugLocalVariable(debugType, name);
 3119|      0|            makeDebugValue(debugLocal, constant);
 3120|      0|        }
 3121|      0|    }
 3122|    385|}
_ZN3spv7Builder14createVariableENS_10DecorationENS_12StorageClassEjPKcjb:
 3159|    910|{
 3160|    910|    Id pointerType = makePointer(storageClass, type);
 3161|    910|    Instruction* inst = new Instruction(getUniqueId(), pointerType, Op::OpVariable);
 3162|    910|    inst->addImmediateOperand(storageClass);
 3163|    910|    if (initializer != NoResult)
  ------------------
  |  Branch (3163:9): [True: 0, False: 910]
  ------------------
 3164|      0|        inst->addIdOperand(initializer);
 3165|       |
 3166|    910|    if (storageClass == StorageClass::Function) {
  ------------------
  |  Branch (3166:9): [True: 583, False: 327]
  ------------------
 3167|       |        // Validation rules require the declaration in the entry block
 3168|    583|        buildPoint->getParent().addLocalVariable(std::unique_ptr<Instruction>(inst));
 3169|    583|    }
 3170|    327|    else {
 3171|    327|        constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(inst));
 3172|    327|        module.mapInstruction(inst);
 3173|    327|    }
 3174|       |
 3175|    910|    if (emitNonSemanticShaderDebugInfo && !compilerGenerated)
  ------------------
  |  Branch (3175:9): [True: 0, False: 910]
  |  Branch (3175:43): [True: 0, False: 0]
  ------------------
 3176|      0|    {
 3177|       |        // For debug info, we prefer respecting how the variable is declared in source code.
 3178|       |        // We may emulate some local variables as global variable with private storage in SPIR-V, but we still want to
 3179|       |        // treat them as local variables in debug info.
 3180|      0|        if (storageClass == StorageClass::Function || (currentFunction && storageClass == StorageClass::Private)) {
  ------------------
  |  Branch (3180:13): [True: 0, False: 0]
  |  Branch (3180:56): [True: 0, False: 0]
  |  Branch (3180:75): [True: 0, False: 0]
  ------------------
 3181|      0|            auto const debugLocalVariableId = createDebugLocalVariable(getDebugType(type), name);
 3182|      0|            makeDebugDeclare(debugLocalVariableId, inst->getResultId());
 3183|      0|        }
 3184|      0|        else {
 3185|      0|            createDebugGlobalVariable(getDebugType(type), name, inst->getResultId());
 3186|      0|        }
 3187|      0|    }
 3188|       |
 3189|    910|    if (name)
  ------------------
  |  Branch (3189:9): [True: 910, False: 0]
  ------------------
 3190|    910|        addName(inst->getResultId(), name);
 3191|    910|    setPrecision(inst->getResultId(), precision);
 3192|       |
 3193|    910|    return inst->getResultId();
 3194|    910|}
_ZN3spv7Builder15createUndefinedEj:
 3198|    102|{
 3199|    102|  Instruction* inst = new Instruction(getUniqueId(), type, Op::OpUndef);
 3200|    102|  addInstruction(std::unique_ptr<Instruction>(inst));
 3201|    102|  return inst->getResultId();
 3202|    102|}
_ZNK3spv7Builder35sanitizeMemoryAccessForStorageClassENS_16MemoryAccessMaskENS_12StorageClassE:
 3207|  10.5k|{
 3208|  10.5k|    switch (sc) {
 3209|    897|    case spv::StorageClass::Uniform:
  ------------------
  |  Branch (3209:5): [True: 897, False: 9.64k]
  ------------------
 3210|    897|    case spv::StorageClass::Workgroup:
  ------------------
  |  Branch (3210:5): [True: 0, False: 10.5k]
  ------------------
 3211|    897|    case spv::StorageClass::StorageBuffer:
  ------------------
  |  Branch (3211:5): [True: 0, False: 10.5k]
  ------------------
 3212|    897|    case spv::StorageClass::PhysicalStorageBufferEXT:
  ------------------
  |  Branch (3212:5): [True: 0, False: 10.5k]
  ------------------
 3213|    897|        break;
 3214|  9.64k|    default:
  ------------------
  |  Branch (3214:5): [True: 9.64k, False: 897]
  ------------------
 3215|  9.64k|        memoryAccess = spv::MemoryAccessMask(memoryAccess &
 3216|  9.64k|                        ~(spv::MemoryAccessMask::MakePointerAvailableKHR |
 3217|  9.64k|                          spv::MemoryAccessMask::MakePointerVisibleKHR |
 3218|  9.64k|                          spv::MemoryAccessMask::NonPrivatePointerKHR));
 3219|  9.64k|        break;
 3220|  10.5k|    }
 3221|  10.5k|    return memoryAccess;
 3222|  10.5k|}
_ZN3spv7Builder11createStoreEjjNS_16MemoryAccessMaskENS_5ScopeEj:
 3227|  3.31k|{
 3228|  3.31k|    Instruction* store = nullptr;
 3229|  3.31k|    if (isUntypedPointer(lValue))
  ------------------
  |  Branch (3229:9): [True: 0, False: 3.31k]
  ------------------
 3230|      0|        store = createDescHeapLoadStoreBaseRemap(lValue, Op::OpStore);
 3231|  3.31k|    else {
 3232|  3.31k|        store = new Instruction(Op::OpStore);
 3233|  3.31k|        store->reserveOperands(2);
 3234|  3.31k|        store->addIdOperand(lValue);
 3235|  3.31k|    }
 3236|  3.31k|    store->addIdOperand(rValue);
 3237|       |
 3238|  3.31k|    memoryAccess = sanitizeMemoryAccessForStorageClass(memoryAccess, getStorageClass(lValue));
 3239|       |
 3240|  3.31k|    if (memoryAccess != MemoryAccessMask::MaskNone) {
  ------------------
  |  Branch (3240:9): [True: 0, False: 3.31k]
  ------------------
 3241|      0|        store->addImmediateOperand(memoryAccess);
 3242|      0|        if (anySet(memoryAccess, spv::MemoryAccessMask::Aligned)) {
  ------------------
  |  Branch (3242:13): [True: 0, False: 0]
  ------------------
 3243|      0|            store->addImmediateOperand(alignment);
 3244|      0|        }
 3245|      0|        if (anySet(memoryAccess, spv::MemoryAccessMask::MakePointerAvailableKHR)) {
  ------------------
  |  Branch (3245:13): [True: 0, False: 0]
  ------------------
 3246|      0|            store->addIdOperand(makeUintConstant(scope));
 3247|      0|        }
 3248|      0|    }
 3249|       |
 3250|  3.31k|    addInstruction(std::unique_ptr<Instruction>(store));
 3251|  3.31k|}
_ZN3spv7Builder10createLoadEjNS_10DecorationENS_16MemoryAccessMaskENS_5ScopeEj:
 3256|  7.21k|{
 3257|  7.21k|    Instruction* load = nullptr;
 3258|  7.21k|    if (isUntypedPointer(lValue))
  ------------------
  |  Branch (3258:9): [True: 0, False: 7.21k]
  ------------------
 3259|      0|        load = createDescHeapLoadStoreBaseRemap(lValue, Op::OpLoad);
 3260|  7.21k|    else {
 3261|  7.21k|        load = new Instruction(getUniqueId(), getDerefTypeId(lValue), Op::OpLoad);
 3262|  7.21k|        load->addIdOperand(lValue);
 3263|  7.21k|    }
 3264|       |
 3265|  7.21k|    memoryAccess = sanitizeMemoryAccessForStorageClass(memoryAccess, getStorageClass(lValue));
 3266|       |
 3267|  7.21k|    if (memoryAccess != MemoryAccessMask::MaskNone) {
  ------------------
  |  Branch (3267:9): [True: 0, False: 7.21k]
  ------------------
 3268|      0|        load->addImmediateOperand(memoryAccess);
 3269|      0|        if (anySet(memoryAccess, spv::MemoryAccessMask::Aligned)) {
  ------------------
  |  Branch (3269:13): [True: 0, False: 0]
  ------------------
 3270|      0|            load->addImmediateOperand(alignment);
 3271|      0|        }
 3272|      0|        if (anySet(memoryAccess, spv::MemoryAccessMask::MakePointerVisibleKHR)) {
  ------------------
  |  Branch (3272:13): [True: 0, False: 0]
  ------------------
 3273|      0|            load->addIdOperand(makeUintConstant(scope));
 3274|      0|        }
 3275|      0|    }
 3276|       |
 3277|  7.21k|    addInstruction(std::unique_ptr<Instruction>(load));
 3278|  7.21k|    setPrecision(load->getResultId(), precision);
 3279|       |
 3280|  7.21k|    return load->getResultId();
 3281|  7.21k|}
_ZN3spv7Builder17createAccessChainENS_12StorageClassEjRKNSt3__16vectorIjNS2_9allocatorIjEEEE:
 3391|  1.87k|{
 3392|       |    // Figure out the final resulting type.
 3393|  1.87k|    Id typeId = getResultingAccessChainType();
 3394|  1.87k|    typeId = makePointer(storageClass, typeId);
 3395|       |
 3396|       |    // Make the instruction
 3397|  1.87k|    Instruction* chain = new Instruction(getUniqueId(), typeId, Op::OpAccessChain);
 3398|  1.87k|    chain->reserveOperands(offsets.size() + 1);
 3399|  1.87k|    chain->addIdOperand(base);
 3400|  3.87k|    for (int i = 0; i < (int)offsets.size(); ++i)
  ------------------
  |  Branch (3400:21): [True: 1.99k, False: 1.87k]
  ------------------
 3401|  1.99k|        chain->addIdOperand(offsets[i]);
 3402|  1.87k|    addInstruction(std::unique_ptr<Instruction>(chain));
 3403|       |
 3404|  1.87k|    return chain->getResultId();
 3405|  1.87k|}
_ZN3spv7Builder22createCompositeExtractEjjj:
 3472|    968|{
 3473|       |    // Generate code for spec constants if in spec constant operation
 3474|       |    // generation mode.
 3475|    968|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (3475:9): [True: 0, False: 968]
  ------------------
 3476|      0|        return createSpecConstantOp(Op::OpCompositeExtract, typeId, std::vector<Id>(1, composite),
 3477|      0|            std::vector<Id>(1, index));
 3478|      0|    }
 3479|    968|    Instruction* extract = new Instruction(getUniqueId(), typeId, Op::OpCompositeExtract);
 3480|    968|    extract->reserveOperands(2);
 3481|    968|    extract->addIdOperand(composite);
 3482|    968|    extract->addImmediateOperand(index);
 3483|    968|    addInstruction(std::unique_ptr<Instruction>(extract));
 3484|       |
 3485|    968|    return extract->getResultId();
 3486|    968|}
_ZN3spv7Builder22createCompositeExtractEjjRKNSt3__16vectorIjNS1_9allocatorIjEEEE:
 3489|    188|{
 3490|       |    // Generate code for spec constants if in spec constant operation
 3491|       |    // generation mode.
 3492|    188|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (3492:9): [True: 0, False: 188]
  ------------------
 3493|      0|        return createSpecConstantOp(Op::OpCompositeExtract, typeId, std::vector<Id>(1, composite), indexes);
 3494|      0|    }
 3495|    188|    Instruction* extract = new Instruction(getUniqueId(), typeId, Op::OpCompositeExtract);
 3496|    188|    extract->reserveOperands(indexes.size() + 1);
 3497|    188|    extract->addIdOperand(composite);
 3498|    376|    for (int i = 0; i < (int)indexes.size(); ++i)
  ------------------
  |  Branch (3498:21): [True: 188, False: 188]
  ------------------
 3499|    188|        extract->addImmediateOperand(indexes[i]);
 3500|    188|    addInstruction(std::unique_ptr<Instruction>(extract));
 3501|       |
 3502|    188|    return extract->getResultId();
 3503|    188|}
_ZN3spv7Builder21createCompositeInsertEjjjj:
 3506|     44|{
 3507|     44|    Instruction* insert = new Instruction(getUniqueId(), typeId, Op::OpCompositeInsert);
 3508|     44|    insert->reserveOperands(3);
 3509|     44|    insert->addIdOperand(object);
 3510|     44|    insert->addIdOperand(composite);
 3511|     44|    insert->addImmediateOperand(index);
 3512|     44|    addInstruction(std::unique_ptr<Instruction>(insert));
 3513|       |
 3514|     44|    return insert->getResultId();
 3515|     44|}
_ZN3spv7Builder16createNoResultOpENS_2OpEj:
 3562|     15|{
 3563|     15|    Instruction* op = new Instruction(opCode);
 3564|     15|    op->addIdOperand(operand);
 3565|     15|    addInstruction(std::unique_ptr<Instruction>(op));
 3566|     15|}
_ZN3spv7Builder16createNoResultOpENS_2OpERKNSt3__16vectorIjNS2_9allocatorIjEEEE:
 3570|     20|{
 3571|     20|    Instruction* op = new Instruction(opCode);
 3572|     20|    op->reserveOperands(operands.size());
 3573|     90|    for (auto id : operands) {
  ------------------
  |  Branch (3573:18): [True: 90, False: 20]
  ------------------
 3574|     90|        op->addIdOperand(id);
 3575|     90|    }
 3576|     20|    addInstruction(std::unique_ptr<Instruction>(op));
 3577|     20|}
_ZN3spv7Builder16createNoResultOpENS_2OpERKNSt3__16vectorINS_11IdImmediateENS2_9allocatorIS4_EEEE:
 3581|     45|{
 3582|     45|    Instruction* op = new Instruction(opCode);
 3583|     45|    op->reserveOperands(operands.size());
 3584|    198|    for (auto it = operands.cbegin(); it != operands.cend(); ++it) {
  ------------------
  |  Branch (3584:39): [True: 153, False: 45]
  ------------------
 3585|    153|        if (it->isId)
  ------------------
  |  Branch (3585:13): [True: 144, False: 9]
  ------------------
 3586|    144|            op->addIdOperand(it->word);
 3587|      9|        else
 3588|      9|            op->addImmediateOperand(it->word);
 3589|    153|    }
 3590|     45|    addInstruction(std::unique_ptr<Instruction>(op));
 3591|     45|}
_ZN3spv7Builder13createUnaryOpENS_2OpEjj:
 3624|  1.53k|{
 3625|       |    // Generate code for spec constants if in spec constant operation
 3626|       |    // generation mode.
 3627|  1.53k|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (3627:9): [True: 195, False: 1.33k]
  ------------------
 3628|    195|        return createSpecConstantOp(opCode, typeId, std::vector<Id>(1, operand), std::vector<Id>());
 3629|    195|    }
 3630|  1.33k|    Instruction* op = new Instruction(getUniqueId(), typeId, opCode);
 3631|  1.33k|    op->addIdOperand(operand);
 3632|  1.33k|    addInstruction(std::unique_ptr<Instruction>(op));
 3633|       |
 3634|  1.33k|    return op->getResultId();
 3635|  1.53k|}
_ZN3spv7Builder11createBinOpENS_2OpEjjj:
 3638|  2.08k|{
 3639|       |    // Generate code for spec constants if in spec constant operation
 3640|       |    // generation mode.
 3641|  2.08k|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (3641:9): [True: 203, False: 1.87k]
  ------------------
 3642|    203|        std::vector<Id> operands(2);
 3643|    203|        operands[0] = left; operands[1] = right;
 3644|    203|        return createSpecConstantOp(opCode, typeId, operands, std::vector<Id>());
 3645|    203|    }
 3646|  1.87k|    Instruction* op = new Instruction(getUniqueId(), typeId, opCode);
 3647|  1.87k|    op->reserveOperands(2);
 3648|  1.87k|    op->addIdOperand(left);
 3649|  1.87k|    op->addIdOperand(right);
 3650|  1.87k|    addInstruction(std::unique_ptr<Instruction>(op));
 3651|       |
 3652|  1.87k|    return op->getResultId();
 3653|  2.08k|}
_ZN3spv7Builder11createTriOpENS_2OpEjjjj:
 3656|     49|{
 3657|       |    // Generate code for spec constants if in spec constant operation
 3658|       |    // generation mode.
 3659|     49|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (3659:9): [True: 26, False: 23]
  ------------------
 3660|     26|        std::vector<Id> operands(3);
 3661|     26|        operands[0] = op1;
 3662|     26|        operands[1] = op2;
 3663|     26|        operands[2] = op3;
 3664|     26|        return createSpecConstantOp(
 3665|     26|            opCode, typeId, operands, std::vector<Id>());
 3666|     26|    }
 3667|     23|    Instruction* op = new Instruction(getUniqueId(), typeId, opCode);
 3668|     23|    op->reserveOperands(3);
 3669|     23|    op->addIdOperand(op1);
 3670|     23|    op->addIdOperand(op2);
 3671|     23|    op->addIdOperand(op3);
 3672|     23|    addInstruction(std::unique_ptr<Instruction>(op));
 3673|       |
 3674|     23|    return op->getResultId();
 3675|     49|}
_ZN3spv7Builder8createOpENS_2OpEjRKNSt3__16vectorIjNS2_9allocatorIjEEEE:
 3690|    315|{
 3691|    315|    Instruction* op = new Instruction(getUniqueId(), typeId, opCode);
 3692|    315|    op->reserveOperands(operands.size());
 3693|    315|    for (auto id : operands)
  ------------------
  |  Branch (3693:18): [True: 1.16k, False: 315]
  ------------------
 3694|  1.16k|        op->addIdOperand(id);
 3695|    315|    addInstruction(std::unique_ptr<Instruction>(op));
 3696|       |
 3697|    315|    return op->getResultId();
 3698|    315|}
_ZN3spv7Builder8createOpENS_2OpEjRKNSt3__16vectorINS_11IdImmediateENS2_9allocatorIS4_EEEE:
 3701|    418|{
 3702|    418|    Instruction* op = new Instruction(getUniqueId(), typeId, opCode);
 3703|    418|    op->reserveOperands(operands.size());
 3704|  1.57k|    for (auto it = operands.cbegin(); it != operands.cend(); ++it) {
  ------------------
  |  Branch (3704:39): [True: 1.15k, False: 418]
  ------------------
 3705|  1.15k|        if (it->isId)
  ------------------
  |  Branch (3705:13): [True: 1.12k, False: 23]
  ------------------
 3706|  1.12k|            op->addIdOperand(it->word);
 3707|     23|        else
 3708|     23|            op->addImmediateOperand(it->word);
 3709|  1.15k|    }
 3710|    418|    addInstruction(std::unique_ptr<Instruction>(op));
 3711|       |
 3712|    418|    return op->getResultId();
 3713|    418|}
_ZN3spv7Builder21tryFoldSpecConstantOpENS_2OpEjRKNSt3__16vectorIjNS2_9allocatorIjEEEES8_:
 3717|    424|{
 3718|       |    // Fold the scalar 32-bit arithmetic used for descriptor heap layouts. Only
 3719|       |    // OpConstant operands have known values here; specialization constants and
 3720|       |    // OpConstantSizeOfEXT must retain their specialization-time dependencies.
 3721|    424|    const auto isInt32Constant = [this](Id id) {
 3722|    424|        return isConstantScalar(id) && getTypeClass(getTypeId(id)) == Op::OpTypeInt &&
 3723|    424|               getScalarTypeWidth(getTypeId(id)) == 32;
 3724|    424|    };
 3725|    424|    if (literals.empty() && operands.size() == 2 &&
  ------------------
  |  Branch (3725:9): [True: 424, False: 0]
  |  Branch (3725:29): [True: 203, False: 221]
  ------------------
 3726|    203|        isInt32Constant(operands[0]) && isInt32Constant(operands[1])) {
  ------------------
  |  Branch (3726:9): [True: 0, False: 203]
  |  Branch (3726:41): [True: 0, False: 0]
  ------------------
 3727|      0|        const uint32_t left = getConstantScalar(operands[0]);
 3728|      0|        const uint32_t right = getConstantScalar(operands[1]);
 3729|      0|        if (opCode == Op::OpUGreaterThan && isBoolType(typeId))
  ------------------
  |  Branch (3729:13): [True: 0, False: 0]
  |  Branch (3729:45): [True: 0, False: 0]
  ------------------
 3730|      0|            return makeBoolConstant(left > right);
 3731|       |
 3732|      0|        if (getTypeClass(typeId) == Op::OpTypeInt && getScalarTypeWidth(typeId) == 32) {
  ------------------
  |  Branch (3732:13): [True: 0, False: 0]
  |  Branch (3732:54): [True: 0, False: 0]
  ------------------
 3733|       |            // Unsigned arithmetic preserves SPIR-V's wraparound semantics for
 3734|       |            // both signed and unsigned integer result types.
 3735|      0|            switch (opCode) {
 3736|      0|            case Op::OpIAdd:
  ------------------
  |  Branch (3736:13): [True: 0, False: 0]
  ------------------
 3737|      0|                return makeIntConstant(typeId, left + right, false);
 3738|      0|            case Op::OpISub:
  ------------------
  |  Branch (3738:13): [True: 0, False: 0]
  ------------------
 3739|      0|                return makeIntConstant(typeId, left - right, false);
 3740|      0|            case Op::OpIMul:
  ------------------
  |  Branch (3740:13): [True: 0, False: 0]
  ------------------
 3741|      0|                return makeIntConstant(typeId, left * right, false);
 3742|      0|            case Op::OpUMod:
  ------------------
  |  Branch (3742:13): [True: 0, False: 0]
  ------------------
 3743|      0|                if (right != 0)
  ------------------
  |  Branch (3743:21): [True: 0, False: 0]
  ------------------
 3744|      0|                    return makeIntConstant(typeId, left % right, false);
 3745|      0|                break;
 3746|      0|            default:
  ------------------
  |  Branch (3746:13): [True: 0, False: 0]
  ------------------
 3747|      0|                break;
 3748|      0|            }
 3749|      0|        }
 3750|      0|    }
 3751|       |    // Selecting the maximum alignment uses a boolean comparison followed by an
 3752|       |    // integer select. Fold both so subsequent layout arithmetic stays constant.
 3753|    424|    if (literals.empty() && opCode == Op::OpSelect && operands.size() == 3 &&
  ------------------
  |  Branch (3753:9): [True: 424, False: 0]
  |  Branch (3753:29): [True: 26, False: 398]
  |  Branch (3753:55): [True: 26, False: 0]
  ------------------
 3754|     26|        isInt32Constant(operands[1]) && isInt32Constant(operands[2]) &&
  ------------------
  |  Branch (3754:9): [True: 0, False: 26]
  |  Branch (3754:41): [True: 0, False: 0]
  ------------------
 3755|      0|        getTypeId(operands[1]) == typeId && getTypeId(operands[2]) == typeId) {
  ------------------
  |  Branch (3755:9): [True: 0, False: 0]
  |  Branch (3755:45): [True: 0, False: 0]
  ------------------
 3756|      0|        if (getOpCode(operands[0]) == Op::OpConstantTrue)
  ------------------
  |  Branch (3756:13): [True: 0, False: 0]
  ------------------
 3757|      0|            return operands[1];
 3758|      0|        if (getOpCode(operands[0]) == Op::OpConstantFalse)
  ------------------
  |  Branch (3758:13): [True: 0, False: 0]
  ------------------
 3759|      0|            return operands[2];
 3760|      0|    }
 3761|       |
 3762|    424|    return NoResult;
 3763|    424|}
_ZN3spv7Builder20createSpecConstantOpENS_2OpEjRKNSt3__16vectorIjNS2_9allocatorIjEEEES8_:
 3767|    424|{
 3768|    424|    const Id folded = tryFoldSpecConstantOp(opCode, typeId, operands, literals);
 3769|    424|    if (folded != NoResult)
  ------------------
  |  Branch (3769:9): [True: 0, False: 424]
  ------------------
 3770|      0|        return folded;
 3771|       |
 3772|    424|    Instruction* op = new Instruction(getUniqueId(), typeId, Op::OpSpecConstantOp);
 3773|    424|    op->reserveOperands(operands.size() + literals.size() + 1);
 3774|    424|    op->addImmediateOperand((unsigned) opCode);
 3775|  1.10k|    for (auto it = operands.cbegin(); it != operands.cend(); ++it)
  ------------------
  |  Branch (3775:39): [True: 679, False: 424]
  ------------------
 3776|    679|        op->addIdOperand(*it);
 3777|    424|    for (auto it = literals.cbegin(); it != literals.cend(); ++it)
  ------------------
  |  Branch (3777:39): [True: 0, False: 424]
  ------------------
 3778|      0|        op->addImmediateOperand(*it);
 3779|    424|    module.mapInstruction(op);
 3780|    424|    constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(op));
 3781|       |
 3782|       |    // OpSpecConstantOp's using 8 or 16 bit types require the associated capability
 3783|    424|    if (containsType(typeId, Op::OpTypeInt, 8))
  ------------------
  |  Branch (3783:9): [True: 0, False: 424]
  ------------------
 3784|      0|        addCapability(Capability::Int8);
 3785|    424|    if (containsType(typeId, Op::OpTypeInt, 16))
  ------------------
  |  Branch (3785:9): [True: 192, False: 232]
  ------------------
 3786|    192|        addCapability(Capability::Int16);
 3787|    424|    if (containsType(typeId, Op::OpTypeFloat, 16))
  ------------------
  |  Branch (3787:9): [True: 0, False: 424]
  ------------------
 3788|      0|        addCapability(Capability::Float16);
 3789|       |
 3790|    424|    return op->getResultId();
 3791|    424|}
_ZN3spv7Builder18createFunctionCallEPNS_8FunctionERKNSt3__16vectorIjNS3_9allocatorIjEEEE:
 3808|    277|{
 3809|    277|    Instruction* op = new Instruction(getUniqueId(), function->getReturnType(), Op::OpFunctionCall);
 3810|    277|    op->reserveOperands(args.size() + 1);
 3811|    277|    op->addIdOperand(function->getId());
 3812|    295|    for (int a = 0; a < (int)args.size(); ++a)
  ------------------
  |  Branch (3812:21): [True: 18, False: 277]
  ------------------
 3813|     18|        op->addIdOperand(args[a]);
 3814|    277|    addInstruction(std::unique_ptr<Instruction>(op));
 3815|       |
 3816|    277|    return op->getResultId();
 3817|    277|}
_ZN3spv7Builder19createRvalueSwizzleENS_10DecorationEjjRKNSt3__16vectorIjNS2_9allocatorIjEEEE:
 3821|    319|{
 3822|    319|    if (channels.size() == 1)
  ------------------
  |  Branch (3822:9): [True: 16, False: 303]
  ------------------
 3823|     16|        return setPrecision(createCompositeExtract(source, typeId, channels.front()), precision);
 3824|       |
 3825|    303|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (3825:9): [True: 0, False: 303]
  ------------------
 3826|      0|        std::vector<Id> operands(2);
 3827|      0|        operands[0] = operands[1] = source;
 3828|      0|        return setPrecision(createSpecConstantOp(Op::OpVectorShuffle, typeId, operands, channels), precision);
 3829|      0|    }
 3830|    303|    Instruction* swizzle = new Instruction(getUniqueId(), typeId, Op::OpVectorShuffle);
 3831|    303|    assert(isVector(source));
 3832|    303|    swizzle->reserveOperands(channels.size() + 2);
 3833|    303|    swizzle->addIdOperand(source);
 3834|    303|    swizzle->addIdOperand(source);
 3835|  1.08k|    for (int i = 0; i < (int)channels.size(); ++i)
  ------------------
  |  Branch (3835:21): [True: 777, False: 303]
  ------------------
 3836|    777|        swizzle->addImmediateOperand(channels[i]);
 3837|    303|    addInstruction(std::unique_ptr<Instruction>(swizzle));
 3838|       |
 3839|    303|    return setPrecision(swizzle->getResultId(), precision);
 3840|    303|}
_ZN3spv7Builder13promoteScalarENS_10DecorationERjS2_:
 3879|  1.63k|{
 3880|       |    // choose direction of promotion (+1 for left to right, -1 for right to left)
 3881|  1.63k|    int direction = !isScalar(right) - !isScalar(left);
 3882|       |
 3883|  1.63k|    auto const &makeVec = [&](Id component, Id other) {
 3884|  1.63k|        if (isCooperativeVector(other)) {
 3885|  1.63k|            return makeCooperativeVectorTypeNV(getTypeId(component), getCooperativeVectorNumComponents(getTypeId(other)));
 3886|  1.63k|        } else {
 3887|  1.63k|            return makeVectorType(getTypeId(component), getNumComponents(other));
 3888|  1.63k|        }
 3889|  1.63k|    };
 3890|       |
 3891|  1.63k|    if (direction > 0)
  ------------------
  |  Branch (3891:9): [True: 0, False: 1.63k]
  ------------------
 3892|      0|        left = smearScalar(precision, left, makeVec(left, right));
 3893|  1.63k|    else if (direction < 0)
  ------------------
  |  Branch (3893:14): [True: 207, False: 1.43k]
  ------------------
 3894|    207|        right = smearScalar(precision, right, makeVec(right, left));
 3895|       |
 3896|  1.63k|    return;
 3897|  1.63k|}
_ZN3spv7Builder11smearScalarENS_10DecorationEjj:
 3901|    415|{
 3902|    415|    assert(getNumComponents(scalar) == 1);
 3903|    415|    assert(getTypeId(scalar) == getScalarTypeId(vectorType));
 3904|       |
 3905|    415|    int numComponents = getNumTypeComponents(vectorType);
 3906|    415|    if (numComponents == 1 && !isCooperativeVectorType(vectorType) && !isVectorType(vectorType))
  ------------------
  |  Branch (3906:9): [True: 0, False: 415]
  |  Branch (3906:31): [True: 0, False: 0]
  |  Branch (3906:71): [True: 0, False: 0]
  ------------------
 3907|      0|        return scalar;
 3908|       |
 3909|    415|    Instruction* smear = nullptr;
 3910|    415|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (3910:9): [True: 0, False: 415]
  ------------------
 3911|      0|        auto members = std::vector<spv::Id>(numComponents, scalar);
 3912|       |        // Sometime even in spec-constant-op mode, the temporary vector created by
 3913|       |        // promoting a scalar might not be a spec constant. This should depend on
 3914|       |        // the scalar.
 3915|       |        // e.g.:
 3916|       |        //  const vec2 spec_const_result = a_spec_const_vec2 + a_front_end_const_scalar;
 3917|       |        // In such cases, the temporary vector created from a_front_end_const_scalar
 3918|       |        // is not a spec constant vector, even though the binary operation node is marked
 3919|       |        // as 'specConstant' and we are in spec-constant-op mode.
 3920|      0|        auto result_id = makeCompositeConstant(vectorType, members, isSpecConstant(scalar));
 3921|      0|        smear = module.getInstruction(result_id);
 3922|    415|    } else {
 3923|    415|        bool replicate = (useReplicatedComposites || isCooperativeVectorType(vectorType)) && (numComponents > 0);
  ------------------
  |  Branch (3923:27): [True: 0, False: 415]
  |  Branch (3923:54): [True: 0, False: 415]
  |  Branch (3923:94): [True: 0, False: 0]
  ------------------
 3924|       |
 3925|    415|        if (replicate) {
  ------------------
  |  Branch (3925:13): [True: 0, False: 415]
  ------------------
 3926|      0|            numComponents = 1;
 3927|      0|            addCapability(spv::Capability::ReplicatedCompositesEXT);
 3928|      0|            addExtension(spv::E_SPV_EXT_replicated_composites);
 3929|      0|        }
 3930|       |
 3931|    415|        Op opcode = replicate ? Op::OpCompositeConstructReplicateEXT : Op::OpCompositeConstruct;
  ------------------
  |  Branch (3931:21): [True: 0, False: 415]
  ------------------
 3932|       |
 3933|    415|        smear = new Instruction(getUniqueId(), vectorType, opcode);
 3934|    415|        smear->reserveOperands(numComponents);
 3935|  1.54k|        for (int c = 0; c < numComponents; ++c)
  ------------------
  |  Branch (3935:25): [True: 1.12k, False: 415]
  ------------------
 3936|  1.12k|            smear->addIdOperand(scalar);
 3937|    415|        addInstruction(std::unique_ptr<Instruction>(smear));
 3938|    415|    }
 3939|       |
 3940|    415|    return setPrecision(smear->getResultId(), precision);
 3941|    415|}
_ZN3spv7Builder17createBuiltinCallEjjiRKNSt3__16vectorIjNS1_9allocatorIjEEEE:
 3945|    213|{
 3946|    213|    Instruction* inst = new Instruction(getUniqueId(), resultType, Op::OpExtInst);
 3947|    213|    inst->reserveOperands(args.size() + 2);
 3948|    213|    inst->addIdOperand(builtins);
 3949|    213|    inst->addImmediateOperand(entryPoint);
 3950|    645|    for (int arg = 0; arg < (int)args.size(); ++arg)
  ------------------
  |  Branch (3950:23): [True: 432, False: 213]
  ------------------
 3951|    432|        inst->addIdOperand(args[arg]);
 3952|       |
 3953|    213|    addInstruction(std::unique_ptr<Instruction>(inst));
 3954|       |
 3955|    213|    return inst->getResultId();
 3956|    213|}
_ZN3spv7Builder17createTextureCallENS_10DecorationEjbbbbbRKNS0_17TextureParametersENS_17ImageOperandsMaskE:
 3981|    977|{
 3982|    977|    std::vector<Id> texArgs;
 3983|       |
 3984|       |    //
 3985|       |    // Set up the fixed arguments
 3986|       |    //
 3987|    977|    bool explicitLod = false;
 3988|    977|    texArgs.push_back(parameters.sampler);
 3989|    977|    texArgs.push_back(parameters.coords);
 3990|    977|    if (parameters.Dref != NoResult)
  ------------------
  |  Branch (3990:9): [True: 270, False: 707]
  ------------------
 3991|    270|        texArgs.push_back(parameters.Dref);
 3992|    977|    if (parameters.component != NoResult)
  ------------------
  |  Branch (3992:9): [True: 312, False: 665]
  ------------------
 3993|    312|        texArgs.push_back(parameters.component);
 3994|    977|    if (gather && parameters.gatherMode != NoResult)
  ------------------
  |  Branch (3994:9): [True: 360, False: 617]
  |  Branch (3994:19): [True: 216, False: 144]
  ------------------
 3995|    216|        texArgs.push_back(parameters.gatherMode);
 3996|       |
 3997|    977|    if (parameters.granularity != NoResult)
  ------------------
  |  Branch (3997:9): [True: 0, False: 977]
  ------------------
 3998|      0|        texArgs.push_back(parameters.granularity);
 3999|    977|    if (parameters.coarse != NoResult)
  ------------------
  |  Branch (3999:9): [True: 0, False: 977]
  ------------------
 4000|      0|        texArgs.push_back(parameters.coarse);
 4001|       |
 4002|       |    //
 4003|       |    // Set up the optional arguments
 4004|       |    //
 4005|    977|    size_t optArgNum = texArgs.size(); // the position of the mask for the optional arguments, if any.
 4006|    977|    ImageOperandsMask mask = ImageOperandsMask::MaskNone; // the mask operand
 4007|    977|    if (parameters.bias) {
  ------------------
  |  Branch (4007:9): [True: 94, False: 883]
  ------------------
 4008|     94|        mask = (ImageOperandsMask)(mask | ImageOperandsMask::Bias);
 4009|     94|        texArgs.push_back(parameters.bias);
 4010|     94|    }
 4011|    977|    if (parameters.lod) {
  ------------------
  |  Branch (4011:9): [True: 185, False: 792]
  ------------------
 4012|    185|        mask = (ImageOperandsMask)(mask | ImageOperandsMask::Lod);
 4013|    185|        texArgs.push_back(parameters.lod);
 4014|    185|        explicitLod = true;
 4015|    792|    } else if (parameters.gradX) {
  ------------------
  |  Branch (4015:16): [True: 186, False: 606]
  ------------------
 4016|    186|        mask = (ImageOperandsMask)(mask | ImageOperandsMask::Grad);
 4017|    186|        texArgs.push_back(parameters.gradX);
 4018|    186|        texArgs.push_back(parameters.gradY);
 4019|    186|        explicitLod = true;
 4020|    606|    } else if (noImplicitLod && ! fetch && ! gather) {
  ------------------
  |  Branch (4020:16): [True: 0, False: 606]
  |  Branch (4020:33): [True: 0, False: 0]
  |  Branch (4020:44): [True: 0, False: 0]
  ------------------
 4021|       |        // have to explicitly use lod of 0 if not allowed to have them be implicit, and
 4022|       |        // we would otherwise be about to issue an implicit instruction
 4023|      0|        mask = (ImageOperandsMask)(mask | ImageOperandsMask::Lod);
 4024|      0|        texArgs.push_back(makeFloatConstant(0.0));
 4025|      0|        explicitLod = true;
 4026|      0|    }
 4027|    977|    if (parameters.offset) {
  ------------------
  |  Branch (4027:9): [True: 406, False: 571]
  ------------------
 4028|    406|        if (isConstant(parameters.offset))
  ------------------
  |  Branch (4028:13): [True: 298, False: 108]
  ------------------
 4029|    298|            mask = (ImageOperandsMask)(mask | ImageOperandsMask::ConstOffset);
 4030|    108|        else {
 4031|    108|            addCapability(Capability::ImageGatherExtended);
 4032|    108|            mask = (ImageOperandsMask)(mask | ImageOperandsMask::Offset);
 4033|    108|        }
 4034|    406|        texArgs.push_back(parameters.offset);
 4035|    406|    }
 4036|    977|    if (parameters.offsets) {
  ------------------
  |  Branch (4036:9): [True: 36, False: 941]
  ------------------
 4037|     36|        if (!isConstant(parameters.offsets) && sourceLang == spv::SourceLanguage::GLSL) {
  ------------------
  |  Branch (4037:13): [True: 0, False: 36]
  |  Branch (4037:48): [True: 0, False: 0]
  ------------------
 4038|      0|            mask = (ImageOperandsMask)(mask | ImageOperandsMask::Offsets);
 4039|     36|        } else {
 4040|     36|            addCapability(Capability::ImageGatherExtended);
 4041|     36|            mask = (ImageOperandsMask)(mask | ImageOperandsMask::ConstOffsets);
 4042|     36|        }
 4043|     36|        texArgs.push_back(parameters.offsets);
 4044|     36|    }
 4045|    977|    if (parameters.sample) {
  ------------------
  |  Branch (4045:9): [True: 8, False: 969]
  ------------------
 4046|      8|        mask = (ImageOperandsMask)(mask | ImageOperandsMask::Sample);
 4047|      8|        texArgs.push_back(parameters.sample);
 4048|      8|    }
 4049|    977|    if (parameters.lodClamp) {
  ------------------
  |  Branch (4049:9): [True: 150, False: 827]
  ------------------
 4050|       |        // capability if this bit is used
 4051|    150|        addCapability(Capability::MinLod);
 4052|       |
 4053|    150|        mask = (ImageOperandsMask)(mask | ImageOperandsMask::MinLod);
 4054|    150|        texArgs.push_back(parameters.lodClamp);
 4055|    150|    }
 4056|    977|    if (parameters.nonprivate) {
  ------------------
  |  Branch (4056:9): [True: 0, False: 977]
  ------------------
 4057|      0|        mask = mask | ImageOperandsMask::NonPrivateTexelKHR;
 4058|      0|    }
 4059|    977|    if (parameters.volatil) {
  ------------------
  |  Branch (4059:9): [True: 0, False: 977]
  ------------------
 4060|      0|        mask = mask | ImageOperandsMask::VolatileTexelKHR;
 4061|      0|    }
 4062|    977|    if (parameters.nontemporal) {
  ------------------
  |  Branch (4062:9): [True: 0, False: 977]
  ------------------
 4063|      0|        mask = mask | ImageOperandsMask::Nontemporal;
 4064|      0|    }
 4065|    977|    mask = mask | signExtensionMask;
 4066|       |    // insert the operand for the mask, if any bits were set.
 4067|    977|    if (mask != ImageOperandsMask::MaskNone)
  ------------------
  |  Branch (4067:9): [True: 729, False: 248]
  ------------------
 4068|    729|        texArgs.insert(texArgs.begin() + optArgNum, (Id)mask);
 4069|       |
 4070|    977|    bool isTextureGatherExtended = (gather && parameters.gatherMode != NoResult);
  ------------------
  |  Branch (4070:37): [True: 360, False: 617]
  |  Branch (4070:47): [True: 216, False: 144]
  ------------------
 4071|       |
 4072|       |    //
 4073|       |    // Set up the instruction
 4074|       |    //
 4075|    977|    Op opCode = Op::OpNop;  // All paths below need to set this
 4076|    977|    if (fetch) {
  ------------------
  |  Branch (4076:9): [True: 42, False: 935]
  ------------------
 4077|     42|        if (sparse)
  ------------------
  |  Branch (4077:13): [True: 16, False: 26]
  ------------------
 4078|     16|            opCode = Op::OpImageSparseFetch;
 4079|     26|        else
 4080|     26|            opCode = Op::OpImageFetch;
 4081|    935|    } else if (parameters.granularity && parameters.coarse) {
  ------------------
  |  Branch (4081:16): [True: 0, False: 935]
  |  Branch (4081:42): [True: 0, False: 0]
  ------------------
 4082|      0|        opCode = Op::OpImageSampleFootprintNV;
 4083|    935|    } else if (gather) {
  ------------------
  |  Branch (4083:16): [True: 360, False: 575]
  ------------------
 4084|    360|        if (parameters.Dref)
  ------------------
  |  Branch (4084:13): [True: 48, False: 312]
  ------------------
 4085|     48|            if (sparse)
  ------------------
  |  Branch (4085:17): [True: 24, False: 24]
  ------------------
 4086|     24|                opCode = Op::OpImageSparseDrefGather;
 4087|     24|            else
 4088|     24|                opCode = Op::OpImageDrefGather;
 4089|    312|        else
 4090|    312|            if (sparse)
  ------------------
  |  Branch (4090:17): [True: 48, False: 264]
  ------------------
 4091|     48|                opCode = Op::OpImageSparseGather;
 4092|    264|            else if (isTextureGatherExtended)
  ------------------
  |  Branch (4092:22): [True: 216, False: 48]
  ------------------
 4093|    216|                opCode = Op::OpImageGatherQCOM;
 4094|     48|            else
 4095|     48|                opCode = Op::OpImageGather;
 4096|    575|    } else if (explicitLod) {
  ------------------
  |  Branch (4096:16): [True: 291, False: 284]
  ------------------
 4097|    291|        if (parameters.Dref) {
  ------------------
  |  Branch (4097:13): [True: 102, False: 189]
  ------------------
 4098|    102|            if (proj)
  ------------------
  |  Branch (4098:17): [True: 18, False: 84]
  ------------------
 4099|     18|                if (sparse)
  ------------------
  |  Branch (4099:21): [True: 0, False: 18]
  ------------------
 4100|      0|                    opCode = Op::OpImageSparseSampleProjDrefExplicitLod;
 4101|     18|                else
 4102|     18|                    opCode = Op::OpImageSampleProjDrefExplicitLod;
 4103|     84|            else
 4104|     84|                if (sparse)
  ------------------
  |  Branch (4104:21): [True: 27, False: 57]
  ------------------
 4105|     27|                    opCode = Op::OpImageSparseSampleDrefExplicitLod;
 4106|     57|                else
 4107|     57|                    opCode = Op::OpImageSampleDrefExplicitLod;
 4108|    189|        } else {
 4109|    189|            if (proj)
  ------------------
  |  Branch (4109:17): [True: 45, False: 144]
  ------------------
 4110|     45|                if (sparse)
  ------------------
  |  Branch (4110:21): [True: 0, False: 45]
  ------------------
 4111|      0|                    opCode = Op::OpImageSparseSampleProjExplicitLod;
 4112|     45|                else
 4113|     45|                    opCode = Op::OpImageSampleProjExplicitLod;
 4114|    144|            else
 4115|    144|                if (sparse)
  ------------------
  |  Branch (4115:21): [True: 57, False: 87]
  ------------------
 4116|     57|                    opCode = Op::OpImageSparseSampleExplicitLod;
 4117|     87|                else
 4118|     87|                    opCode = Op::OpImageSampleExplicitLod;
 4119|    189|        }
 4120|    291|    } else {
 4121|    284|        if (parameters.Dref) {
  ------------------
  |  Branch (4121:13): [True: 120, False: 164]
  ------------------
 4122|    120|            if (proj)
  ------------------
  |  Branch (4122:17): [True: 6, False: 114]
  ------------------
 4123|      6|                if (sparse)
  ------------------
  |  Branch (4123:21): [True: 0, False: 6]
  ------------------
 4124|      0|                    opCode = Op::OpImageSparseSampleProjDrefImplicitLod;
 4125|      6|                else
 4126|      6|                    opCode = Op::OpImageSampleProjDrefImplicitLod;
 4127|    114|            else
 4128|    114|                if (sparse)
  ------------------
  |  Branch (4128:21): [True: 36, False: 78]
  ------------------
 4129|     36|                    opCode = Op::OpImageSparseSampleDrefImplicitLod;
 4130|     78|                else
 4131|     78|                    opCode = Op::OpImageSampleDrefImplicitLod;
 4132|    164|        } else {
 4133|    164|            if (proj)
  ------------------
  |  Branch (4133:17): [True: 15, False: 149]
  ------------------
 4134|     15|                if (sparse)
  ------------------
  |  Branch (4134:21): [True: 0, False: 15]
  ------------------
 4135|      0|                    opCode = Op::OpImageSparseSampleProjImplicitLod;
 4136|     15|                else
 4137|     15|                    opCode = Op::OpImageSampleProjImplicitLod;
 4138|    149|            else
 4139|    149|                if (sparse)
  ------------------
  |  Branch (4139:21): [True: 48, False: 101]
  ------------------
 4140|     48|                    opCode = Op::OpImageSparseSampleImplicitLod;
 4141|    101|                else
 4142|    101|                    opCode = Op::OpImageSampleImplicitLod;
 4143|    164|        }
 4144|    284|    }
 4145|       |
 4146|       |    // See if the result type is expecting a smeared result.
 4147|       |    // This happens when a legacy shadow*() call is made, which
 4148|       |    // gets a vec4 back instead of a float.
 4149|    977|    Id smearedType = resultType;
 4150|    977|    if (! isScalarType(resultType)) {
  ------------------
  |  Branch (4150:9): [True: 562, False: 415]
  ------------------
 4151|    562|        switch (opCode) {
 4152|      0|        case Op::OpImageSampleDrefImplicitLod:
  ------------------
  |  Branch (4152:9): [True: 0, False: 562]
  ------------------
 4153|      0|        case Op::OpImageSampleDrefExplicitLod:
  ------------------
  |  Branch (4153:9): [True: 0, False: 562]
  ------------------
 4154|      0|        case Op::OpImageSampleProjDrefImplicitLod:
  ------------------
  |  Branch (4154:9): [True: 0, False: 562]
  ------------------
 4155|      0|        case Op::OpImageSampleProjDrefExplicitLod:
  ------------------
  |  Branch (4155:9): [True: 0, False: 562]
  ------------------
 4156|      0|            resultType = getScalarTypeId(resultType);
 4157|      0|            break;
 4158|    562|        default:
  ------------------
  |  Branch (4158:9): [True: 562, False: 0]
  ------------------
 4159|    562|            break;
 4160|    562|        }
 4161|    562|    }
 4162|       |
 4163|    977|    Id typeId0 = 0;
 4164|    977|    Id typeId1 = 0;
 4165|       |
 4166|    977|    if (sparse) {
  ------------------
  |  Branch (4166:9): [True: 256, False: 721]
  ------------------
 4167|    256|        typeId0 = resultType;
 4168|    256|        typeId1 = getDerefTypeId(parameters.texelOut);
 4169|    256|        resultType = makeStructResultType(typeId0, typeId1);
 4170|    256|    }
 4171|       |
 4172|       |    // Build the SPIR-V instruction
 4173|    977|    Instruction* textureInst = new Instruction(getUniqueId(), resultType, opCode);
 4174|    977|    textureInst->reserveOperands(optArgNum + (texArgs.size() - (optArgNum + 1)));
 4175|  3.72k|    for (size_t op = 0; op < optArgNum; ++op)
  ------------------
  |  Branch (4175:25): [True: 2.75k, False: 977]
  ------------------
 4176|  2.75k|        textureInst->addIdOperand(texArgs[op]);
 4177|    977|    if (optArgNum < texArgs.size())
  ------------------
  |  Branch (4177:9): [True: 729, False: 248]
  ------------------
 4178|    729|        textureInst->addImmediateOperand(texArgs[optArgNum]);
 4179|  2.22k|    for (size_t op = optArgNum + 1; op < texArgs.size(); ++op)
  ------------------
  |  Branch (4179:37): [True: 1.25k, False: 977]
  ------------------
 4180|  1.25k|        textureInst->addIdOperand(texArgs[op]);
 4181|    977|    setPrecision(textureInst->getResultId(), precision);
 4182|    977|    addInstruction(std::unique_ptr<Instruction>(textureInst));
 4183|       |
 4184|    977|    Id resultId = textureInst->getResultId();
 4185|       |
 4186|    977|    if (sparse) {
  ------------------
  |  Branch (4186:9): [True: 256, False: 721]
  ------------------
 4187|       |        // set capability
 4188|    256|        addCapability(Capability::SparseResidency);
 4189|       |
 4190|       |        // Decode the return type that was a special structure
 4191|    256|        createStore(createCompositeExtract(resultId, typeId1, 1), parameters.texelOut);
 4192|    256|        resultId = createCompositeExtract(resultId, typeId0, 0);
 4193|    256|        setPrecision(resultId, precision);
 4194|    721|    } else {
 4195|       |        // When a smear is needed, do it, as per what was computed
 4196|       |        // above when resultType was changed to a scalar type.
 4197|    721|        if (resultType != smearedType)
  ------------------
  |  Branch (4197:13): [True: 0, False: 721]
  ------------------
 4198|      0|            resultId = smearScalar(precision, resultId, smearedType);
 4199|    721|    }
 4200|       |
 4201|    977|    return resultId;
 4202|    977|}
_ZN3spv7Builder22createTextureQueryCallENS_2OpERKNS0_17TextureParametersEb:
 4206|    102|{
 4207|       |    // Figure out the result type
 4208|    102|    Id resultType = 0;
 4209|    102|    switch (opCode) {
 4210|      6|    case Op::OpImageQuerySize:
  ------------------
  |  Branch (4210:5): [True: 6, False: 96]
  ------------------
 4211|     33|    case Op::OpImageQuerySizeLod:
  ------------------
  |  Branch (4211:5): [True: 27, False: 75]
  ------------------
 4212|     33|    {
 4213|     33|        int numComponents = 0;
 4214|     33|        switch (getTypeDimensionality(getImageType(parameters.sampler))) {
 4215|      8|        case Dim::Dim1D:
  ------------------
  |  Branch (4215:9): [True: 8, False: 25]
  ------------------
 4216|     10|        case Dim::Buffer:
  ------------------
  |  Branch (4216:9): [True: 2, False: 31]
  ------------------
 4217|     10|            numComponents = 1;
 4218|     10|            break;
 4219|     13|        case Dim::Dim2D:
  ------------------
  |  Branch (4219:9): [True: 13, False: 20]
  ------------------
 4220|     21|        case Dim::Cube:
  ------------------
  |  Branch (4220:9): [True: 8, False: 25]
  ------------------
 4221|     21|        case Dim::Rect:
  ------------------
  |  Branch (4221:9): [True: 0, False: 33]
  ------------------
 4222|     21|        case Dim::SubpassData:
  ------------------
  |  Branch (4222:9): [True: 0, False: 33]
  ------------------
 4223|     21|            numComponents = 2;
 4224|     21|            break;
 4225|      2|        case Dim::Dim3D:
  ------------------
  |  Branch (4225:9): [True: 2, False: 31]
  ------------------
 4226|      2|            numComponents = 3;
 4227|      2|            break;
 4228|       |
 4229|      0|        default:
  ------------------
  |  Branch (4229:9): [True: 0, False: 33]
  ------------------
 4230|      0|            assert(0);
 4231|      0|            break;
 4232|     33|        }
 4233|     33|        if (isArrayedImageType(getImageType(parameters.sampler)))
  ------------------
  |  Branch (4233:13): [True: 15, False: 18]
  ------------------
 4234|     15|            ++numComponents;
 4235|       |
 4236|     33|        Id intType = isUnsignedResult ? makeUintType(32) : makeIntType(32);
  ------------------
  |  Branch (4236:22): [True: 0, False: 33]
  ------------------
 4237|     33|        if (numComponents == 1)
  ------------------
  |  Branch (4237:13): [True: 6, False: 27]
  ------------------
 4238|      6|            resultType = intType;
 4239|     27|        else
 4240|     27|            resultType = makeVectorType(intType, numComponents);
 4241|       |
 4242|     33|        break;
 4243|     33|    }
 4244|     39|    case Op::OpImageQueryLod:
  ------------------
  |  Branch (4244:5): [True: 39, False: 63]
  ------------------
 4245|     39|        resultType = makeVectorType(getScalarTypeId(getTypeId(parameters.coords)), 2);
 4246|     39|        break;
 4247|     26|    case Op::OpImageQueryLevels:
  ------------------
  |  Branch (4247:5): [True: 26, False: 76]
  ------------------
 4248|     30|    case Op::OpImageQuerySamples:
  ------------------
  |  Branch (4248:5): [True: 4, False: 98]
  ------------------
 4249|     30|        resultType = isUnsignedResult ? makeUintType(32) : makeIntType(32);
  ------------------
  |  Branch (4249:22): [True: 0, False: 30]
  ------------------
 4250|     30|        break;
 4251|      0|    default:
  ------------------
  |  Branch (4251:5): [True: 0, False: 102]
  ------------------
 4252|      0|        assert(0);
 4253|      0|        break;
 4254|    102|    }
 4255|       |
 4256|    102|    Instruction* query = new Instruction(getUniqueId(), resultType, opCode);
 4257|    102|    query->addIdOperand(parameters.sampler);
 4258|    102|    if (parameters.coords)
  ------------------
  |  Branch (4258:9): [True: 39, False: 63]
  ------------------
 4259|     39|        query->addIdOperand(parameters.coords);
 4260|    102|    if (parameters.lod)
  ------------------
  |  Branch (4260:9): [True: 27, False: 75]
  ------------------
 4261|     27|        query->addIdOperand(parameters.lod);
 4262|    102|    addInstruction(std::unique_ptr<Instruction>(query));
 4263|    102|    addCapability(Capability::ImageQuery);
 4264|       |
 4265|    102|    return query->getResultId();
 4266|    102|}
_ZN3spv7Builder22createCompositeCompareENS_10DecorationEjjb:
 4271|      4|{
 4272|      4|    Id boolType = makeBoolType();
 4273|      4|    Id valueType = getTypeId(value1);
 4274|       |
 4275|      4|    Id resultId = NoResult;
 4276|       |
 4277|      4|    int numConstituents = getNumTypeConstituents(valueType);
 4278|       |
 4279|       |    // Scalars and Vectors
 4280|       |
 4281|      4|    if (isScalarType(valueType) || isVectorType(valueType)) {
  ------------------
  |  Branch (4281:9): [True: 0, False: 4]
  |  Branch (4281:36): [True: 3, False: 1]
  ------------------
 4282|      3|        assert(valueType == getTypeId(value2));
 4283|       |        // These just need a single comparison, just have
 4284|       |        // to figure out what it is.
 4285|      3|        Op op;
 4286|      3|        switch (getMostBasicTypeClass(valueType)) {
 4287|      3|        case Op::OpTypeFloat:
  ------------------
  |  Branch (4287:9): [True: 3, False: 0]
  ------------------
 4288|      3|            op = equal ? Op::OpFOrdEqual : Op::OpFUnordNotEqual;
  ------------------
  |  Branch (4288:18): [True: 0, False: 3]
  ------------------
 4289|      3|            break;
 4290|      0|        case Op::OpTypeInt:
  ------------------
  |  Branch (4290:9): [True: 0, False: 3]
  ------------------
 4291|      0|        default:
  ------------------
  |  Branch (4291:9): [True: 0, False: 3]
  ------------------
 4292|      0|            op = equal ? Op::OpIEqual : Op::OpINotEqual;
  ------------------
  |  Branch (4292:18): [True: 0, False: 0]
  ------------------
 4293|      0|            break;
 4294|      0|        case Op::OpTypeBool:
  ------------------
  |  Branch (4294:9): [True: 0, False: 3]
  ------------------
 4295|      0|            op = equal ? Op::OpLogicalEqual : Op::OpLogicalNotEqual;
  ------------------
  |  Branch (4295:18): [True: 0, False: 0]
  ------------------
 4296|      0|            precision = NoPrecision;
 4297|      0|            break;
 4298|      3|        }
 4299|       |
 4300|      3|        if (isScalarType(valueType)) {
  ------------------
  |  Branch (4300:13): [True: 0, False: 3]
  ------------------
 4301|       |            // scalar
 4302|      0|            resultId = createBinOp(op, boolType, value1, value2);
 4303|      3|        } else {
 4304|       |            // vector
 4305|      3|            resultId = createBinOp(op, makeVectorType(boolType, numConstituents), value1, value2);
 4306|      3|            setPrecision(resultId, precision);
 4307|       |            // reduce vector compares...
 4308|      3|            resultId = createUnaryOp(equal ? Op::OpAll : Op::OpAny, boolType, resultId);
  ------------------
  |  Branch (4308:38): [True: 0, False: 3]
  ------------------
 4309|      3|        }
 4310|       |
 4311|      3|        return setPrecision(resultId, precision);
 4312|      3|    }
 4313|       |
 4314|       |    // Only structs, arrays, and matrices should be left.
 4315|       |    // They share in common the reduction operation across their constituents.
 4316|      4|    assert(isAggregateType(valueType) || isMatrixType(valueType));
 4317|       |
 4318|       |    // Compare each pair of constituents
 4319|      4|    for (int constituent = 0; constituent < numConstituents; ++constituent) {
  ------------------
  |  Branch (4319:31): [True: 3, False: 1]
  ------------------
 4320|      3|        std::vector<unsigned> indexes(1, constituent);
 4321|      3|        Id constituentType1 = getContainedTypeId(getTypeId(value1), constituent);
 4322|      3|        Id constituentType2 = getContainedTypeId(getTypeId(value2), constituent);
 4323|      3|        Id constituent1 = createCompositeExtract(value1, constituentType1, indexes);
 4324|      3|        Id constituent2 = createCompositeExtract(value2, constituentType2, indexes);
 4325|       |
 4326|      3|        Id subResultId = createCompositeCompare(precision, constituent1, constituent2, equal);
 4327|       |
 4328|      3|        if (constituent == 0)
  ------------------
  |  Branch (4328:13): [True: 1, False: 2]
  ------------------
 4329|      1|            resultId = subResultId;
 4330|      2|        else
 4331|      2|            resultId = setPrecision(createBinOp(equal ? Op::OpLogicalAnd : Op::OpLogicalOr, boolType, resultId, subResultId),
  ------------------
  |  Branch (4331:49): [True: 0, False: 2]
  ------------------
 4332|      2|                                    precision);
 4333|      3|    }
 4334|       |
 4335|      1|    return resultId;
 4336|      4|}
_ZN3spv7Builder24createCompositeConstructEjRKNSt3__16vectorIjNS1_9allocatorIjEEEE:
 4340|      9|{
 4341|      9|    assert(isAggregateType(typeId) || (getNumTypeConstituents(typeId) > 1 &&
 4342|      9|           getNumTypeConstituents(typeId) == constituents.size()) ||
 4343|      9|           ((isCooperativeVectorType(typeId) || isVectorType(typeId)) && constituents.size() == 1));
 4344|       |
 4345|      9|    if (generatingOpCodeForSpecConst) {
  ------------------
  |  Branch (4345:9): [True: 0, False: 9]
  ------------------
 4346|       |        // Sometime, even in spec-constant-op mode, the constant composite to be
 4347|       |        // constructed may not be a specialization constant.
 4348|       |        // e.g.:
 4349|       |        //  const mat2 m2 = mat2(a_spec_const, a_front_end_const, another_front_end_const, third_front_end_const);
 4350|       |        // The first column vector should be a spec constant one, as a_spec_const is a spec constant.
 4351|       |        // The second column vector should NOT be spec constant, as it does not contain any spec constants.
 4352|       |        // To handle such cases, we check the constituents of the constant vector to determine whether this
 4353|       |        // vector should be created as a spec constant.
 4354|      0|        return makeCompositeConstant(typeId, constituents,
 4355|      0|                                     std::any_of(constituents.begin(), constituents.end(),
 4356|      0|                                                 [&](spv::Id id) { return isSpecConstant(id); }));
 4357|      0|    }
 4358|       |
 4359|      9|    bool replicate = false;
 4360|      9|    size_t numConstituents = constituents.size();
 4361|       |
 4362|      9|    if (useReplicatedComposites || isCooperativeVectorType(typeId)) {
  ------------------
  |  Branch (4362:9): [True: 0, False: 9]
  |  Branch (4362:36): [True: 0, False: 9]
  ------------------
 4363|      0|        replicate = numConstituents > 0 &&
  ------------------
  |  Branch (4363:21): [True: 0, False: 0]
  ------------------
 4364|      0|            std::equal(constituents.begin() + 1, constituents.end(), constituents.begin());
  ------------------
  |  Branch (4364:13): [True: 0, False: 0]
  ------------------
 4365|      0|    }
 4366|       |
 4367|      9|    if (replicate) {
  ------------------
  |  Branch (4367:9): [True: 0, False: 9]
  ------------------
 4368|      0|        numConstituents = 1;
 4369|      0|        addCapability(spv::Capability::ReplicatedCompositesEXT);
 4370|      0|        addExtension(spv::E_SPV_EXT_replicated_composites);
 4371|      0|    }
 4372|       |
 4373|      9|    Op opcode = replicate ? Op::OpCompositeConstructReplicateEXT : Op::OpCompositeConstruct;
  ------------------
  |  Branch (4373:17): [True: 0, False: 9]
  ------------------
 4374|       |
 4375|      9|    Instruction* op = new Instruction(getUniqueId(), typeId, opcode);
 4376|      9|    op->reserveOperands(constituents.size());
 4377|     39|    for (size_t c = 0; c < numConstituents; ++c)
  ------------------
  |  Branch (4377:24): [True: 30, False: 9]
  ------------------
 4378|     30|        op->addIdOperand(constituents[c]);
 4379|      9|    addInstruction(std::unique_ptr<Instruction>(op));
 4380|       |
 4381|      9|    return op->getResultId();
 4382|      9|}
_ZN3spv7Builder17createConstructorENS_10DecorationERKNSt3__16vectorIjNS2_9allocatorIjEEEEj:
 4421|    266|{
 4422|    266|    Id result = NoResult;
 4423|    266|    unsigned int numTargetComponents = getNumTypeComponents(resultTypeId);
 4424|    266|    unsigned int targetComponent = 0;
 4425|       |
 4426|       |    // Special case: when calling a vector constructor with a single scalar
 4427|       |    // argument, smear the scalar
 4428|    266|    if (sources.size() == 1 && isScalar(sources[0]) && (numTargetComponents > 1 || isCooperativeVectorType(resultTypeId)))
  ------------------
  |  Branch (4428:9): [True: 259, False: 7]
  |  Branch (4428:32): [True: 208, False: 51]
  |  Branch (4428:57): [True: 208, False: 0]
  |  Branch (4428:84): [True: 0, False: 0]
  ------------------
 4429|    208|        return smearScalar(precision, sources[0], resultTypeId);
 4430|       |
 4431|       |    // Special case: 2 vectors of equal size
 4432|     58|    if (sources.size() == 1 &&
  ------------------
  |  Branch (4432:9): [True: 51, False: 7]
  ------------------
 4433|     51|        (isVector(sources[0]) || isCooperativeVector(sources[0])) &&
  ------------------
  |  Branch (4433:10): [True: 51, False: 0]
  |  Branch (4433:34): [True: 0, False: 0]
  ------------------
 4434|     51|        numTargetComponents == getNumComponents(sources[0])) {
  ------------------
  |  Branch (4434:9): [True: 51, False: 0]
  ------------------
 4435|     51|        if (isCooperativeVector(sources[0]) != isCooperativeVectorType(resultTypeId)) {
  ------------------
  |  Branch (4435:13): [True: 0, False: 51]
  ------------------
 4436|      0|            assert(isVector(sources[0]) != isVectorType(resultTypeId));
 4437|      0|            return createUnaryOp(spv::Op::OpBitcast, resultTypeId, sources[0]);
 4438|     51|        } else {
 4439|     51|            assert(resultTypeId == getTypeId(sources[0]));
 4440|     51|            return sources[0];
 4441|     51|        }
 4442|     51|    }
 4443|       |
 4444|       |    // accumulate the arguments for OpCompositeConstruct
 4445|      7|    std::vector<Id> constituents;
 4446|      7|    Id scalarTypeId = getScalarTypeId(resultTypeId);
 4447|       |
 4448|       |    // lambda to store the result of visiting an argument component
 4449|      7|    const auto latchResult = [&](Id comp) {
 4450|      7|        if (numTargetComponents > 1 || isVectorType(resultTypeId))
 4451|      7|            constituents.push_back(comp);
 4452|      7|        else
 4453|      7|            result = comp;
 4454|      7|        ++targetComponent;
 4455|      7|    };
 4456|       |
 4457|       |    // lambda to visit a vector argument's components
 4458|      7|    const auto accumulateVectorConstituents = [&](Id sourceArg) {
 4459|      7|        unsigned int sourceSize = getNumComponents(sourceArg);
 4460|      7|        unsigned int sourcesToUse = sourceSize;
 4461|      7|        if (sourcesToUse + targetComponent > numTargetComponents)
 4462|      7|            sourcesToUse = numTargetComponents - targetComponent;
 4463|       |
 4464|      7|        for (unsigned int s = 0; s < sourcesToUse; ++s) {
 4465|      7|            std::vector<unsigned> swiz;
 4466|      7|            swiz.push_back(s);
 4467|      7|            latchResult(createRvalueSwizzle(precision, scalarTypeId, sourceArg, swiz));
 4468|      7|        }
 4469|      7|    };
 4470|       |
 4471|       |    // lambda to visit a matrix argument's components
 4472|      7|    const auto accumulateMatrixConstituents = [&](Id sourceArg) {
 4473|      7|        unsigned int sourceSize = getNumColumns(sourceArg) * getNumRows(sourceArg);
 4474|      7|        unsigned int sourcesToUse = sourceSize;
 4475|      7|        if (sourcesToUse + targetComponent > numTargetComponents)
 4476|      7|            sourcesToUse = numTargetComponents - targetComponent;
 4477|       |
 4478|      7|        unsigned int col = 0;
 4479|      7|        unsigned int row = 0;
 4480|      7|        for (unsigned int s = 0; s < sourcesToUse; ++s) {
 4481|      7|            if (row >= getNumRows(sourceArg)) {
 4482|      7|                row = 0;
 4483|      7|                col++;
 4484|      7|            }
 4485|      7|            std::vector<Id> indexes;
 4486|      7|            indexes.push_back(col);
 4487|      7|            indexes.push_back(row);
 4488|      7|            latchResult(createCompositeExtract(sourceArg, scalarTypeId, indexes));
 4489|      7|            row++;
 4490|      7|        }
 4491|      7|    };
 4492|       |
 4493|       |    // Go through the source arguments, each one could have either
 4494|       |    // a single or multiple components to contribute.
 4495|     14|    for (unsigned int i = 0; i < sources.size(); ++i) {
  ------------------
  |  Branch (4495:30): [True: 14, False: 0]
  ------------------
 4496|       |
 4497|     14|        if (isScalar(sources[i]) || isPointer(sources[i]))
  ------------------
  |  Branch (4497:13): [True: 8, False: 6]
  |  Branch (4497:37): [True: 0, False: 6]
  ------------------
 4498|      8|            latchResult(sources[i]);
 4499|      6|        else if (isVector(sources[i]) || isCooperativeVector(sources[i]))
  ------------------
  |  Branch (4499:18): [True: 6, False: 0]
  |  Branch (4499:42): [True: 0, False: 0]
  ------------------
 4500|      6|            accumulateVectorConstituents(sources[i]);
 4501|      0|        else if (isMatrix(sources[i]))
  ------------------
  |  Branch (4501:18): [True: 0, False: 0]
  ------------------
 4502|      0|            accumulateMatrixConstituents(sources[i]);
 4503|      0|        else
 4504|      0|            assert(0);
 4505|       |
 4506|     14|        if (targetComponent >= numTargetComponents)
  ------------------
  |  Branch (4506:13): [True: 7, False: 7]
  ------------------
 4507|      7|            break;
 4508|     14|    }
 4509|       |
 4510|       |    // If the result is a vector, make it from the gathered constituents.
 4511|      7|    if (constituents.size() > 0) {
  ------------------
  |  Branch (4511:9): [True: 7, False: 0]
  ------------------
 4512|      7|        result = createCompositeConstruct(resultTypeId, constituents);
 4513|      7|        return setPrecision(result, precision);
 4514|      7|    } else {
 4515|       |      // Precision was set when generating this component.
 4516|      0|      return result;
 4517|      0|    }
 4518|      7|}
_ZN3spv7Builder2IfC2EjNS_20SelectionControlMaskERS0_:
 4661|    132|    builder(gb),
 4662|    132|    condition(cond),
 4663|    132|    control(ctrl),
 4664|    132|    elseBlock(nullptr)
 4665|    132|{
 4666|    132|    function = &builder.getBuildPoint()->getParent();
 4667|       |
 4668|       |    // make the blocks, but only put the then-block into the function,
 4669|       |    // the else-block and merge-block will be added later, in order, after
 4670|       |    // earlier code is emitted
 4671|    132|    thenBlock = new Block(builder.getUniqueId(), *function);
 4672|    132|    mergeBlock = new Block(builder.getUniqueId(), *function);
 4673|       |
 4674|       |    // Save the current block, so that we can add in the flow control split when
 4675|       |    // makeEndIf is called.
 4676|    132|    headerBlock = builder.getBuildPoint();
 4677|    132|    builder.createSelectionMerge(mergeBlock, control);
 4678|       |
 4679|    132|    function->addBlock(thenBlock);
 4680|    132|    builder.setBuildPoint(thenBlock);
 4681|    132|}
_ZN3spv7Builder2If9makeEndIfEv:
 4699|    132|{
 4700|       |    // jump to the merge block
 4701|    132|    builder.createBranch(true, mergeBlock);
 4702|       |
 4703|       |    // Go back to the headerBlock and make the flow control split
 4704|    132|    builder.setBuildPoint(headerBlock);
 4705|    132|    if (elseBlock)
  ------------------
  |  Branch (4705:9): [True: 0, False: 132]
  ------------------
 4706|      0|        builder.createConditionalBranch(condition, thenBlock, elseBlock);
 4707|    132|    else
 4708|    132|        builder.createConditionalBranch(condition, thenBlock, mergeBlock);
 4709|       |
 4710|       |    // add the merge block to the function
 4711|    132|    function->addBlock(mergeBlock);
 4712|    132|    builder.setBuildPoint(mergeBlock);
 4713|    132|}
_ZN3spv7Builder10makeSwitchEjNS_20SelectionControlMaskEiRKNSt3__16vectorIiNS2_9allocatorIiEEEES8_iRNS3_IPNS_5BlockENS4_ISA_EEEE:
 4719|     12|{
 4720|     12|    Function& function = buildPoint->getParent();
 4721|       |
 4722|       |    // make all the blocks
 4723|     46|    for (int s = 0; s < numSegments; ++s)
  ------------------
  |  Branch (4723:21): [True: 34, False: 12]
  ------------------
 4724|     34|        segmentBlocks.push_back(new Block(getUniqueId(), function));
 4725|       |
 4726|     12|    Block* mergeBlock = new Block(getUniqueId(), function);
 4727|       |
 4728|       |    // make and insert the switch's selection-merge instruction
 4729|     12|    createSelectionMerge(mergeBlock, control);
 4730|       |
 4731|       |    // make the switch instruction
 4732|     12|    Instruction* switchInst = new Instruction(NoResult, NoType, Op::OpSwitch);
 4733|     12|    switchInst->reserveOperands((caseValues.size() * 2) + 2);
 4734|     12|    switchInst->addIdOperand(selector);
 4735|     12|    auto defaultOrMerge = (defaultSegment >= 0) ? segmentBlocks[defaultSegment] : mergeBlock;
  ------------------
  |  Branch (4735:27): [True: 0, False: 12]
  ------------------
 4736|     12|    switchInst->addIdOperand(defaultOrMerge->getId());
 4737|     12|    defaultOrMerge->addPredecessor(buildPoint);
 4738|     46|    for (int i = 0; i < (int)caseValues.size(); ++i) {
  ------------------
  |  Branch (4738:21): [True: 34, False: 12]
  ------------------
 4739|     34|        switchInst->addImmediateOperand(caseValues[i]);
 4740|     34|        switchInst->addIdOperand(segmentBlocks[valueIndexToSegment[i]]->getId());
 4741|     34|        segmentBlocks[valueIndexToSegment[i]]->addPredecessor(buildPoint);
 4742|     34|    }
 4743|     12|    addInstruction(std::unique_ptr<Instruction>(switchInst));
 4744|       |
 4745|       |    // push the merge block
 4746|     12|    switchMerges.push(mergeBlock);
 4747|     12|}
_ZN3spv7Builder14addSwitchBreakEb:
 4751|     46|{
 4752|       |    // branch to the top of the merge block stack
 4753|     46|    createBranch(implicit, switchMerges.top());
 4754|     46|    createAndSetNoPredecessorBlock("post-switch-break");
 4755|     46|}
_ZN3spv7Builder17nextSwitchSegmentERNSt3__16vectorIPNS_5BlockENS1_9allocatorIS4_EEEEi:
 4759|     34|{
 4760|     34|    int lastSegment = nextSegment - 1;
 4761|     34|    if (lastSegment >= 0) {
  ------------------
  |  Branch (4761:9): [True: 22, False: 12]
  ------------------
 4762|       |        // Close out previous segment by jumping, if necessary, to next segment
 4763|     22|        if (! buildPoint->isTerminated())
  ------------------
  |  Branch (4763:13): [True: 22, False: 0]
  ------------------
 4764|     22|            createBranch(true, segmentBlock[nextSegment]);
 4765|     22|    }
 4766|     34|    Block* block = segmentBlock[nextSegment];
 4767|     34|    block->getParent().addBlock(block);
 4768|     34|    setBuildPoint(block);
 4769|     34|}
_ZN3spv7Builder9endSwitchERNSt3__16vectorIPNS_5BlockENS1_9allocatorIS4_EEEE:
 4773|     12|{
 4774|       |    // Close out previous segment by jumping, if necessary, to next segment
 4775|     12|    if (! buildPoint->isTerminated())
  ------------------
  |  Branch (4775:9): [True: 12, False: 0]
  ------------------
 4776|     12|        addSwitchBreak(true);
 4777|       |
 4778|     12|    switchMerges.top()->getParent().addBlock(switchMerges.top());
 4779|     12|    setBuildPoint(switchMerges.top());
 4780|       |
 4781|     12|    switchMerges.pop();
 4782|     12|}
_ZN3spv7Builder12makeNewBlockEv:
 4785|     55|{
 4786|     55|    Function& function = buildPoint->getParent();
 4787|     55|    auto block = new Block(getUniqueId(), function);
 4788|     55|    function.addBlock(block);
 4789|     55|    return *block;
 4790|     55|}
_ZN3spv7Builder11makeNewLoopEv:
 4793|     11|{
 4794|       |    // This verbosity is needed to simultaneously get the same behavior
 4795|       |    // everywhere (id's in the same order), have a syntax that works
 4796|       |    // across lots of versions of C++, have no warnings from pedantic
 4797|       |    // compilation modes, and leave the rest of the code alone.
 4798|     11|    Block& head            = makeNewBlock();
 4799|     11|    Block& body            = makeNewBlock();
 4800|     11|    Block& merge           = makeNewBlock();
 4801|     11|    Block& continue_target = makeNewBlock();
 4802|     11|    LoopBlocks blocks(head, body, merge, continue_target);
 4803|     11|    loops.push(blocks);
 4804|     11|    return loops.top();
 4805|     11|}
_ZN3spv7Builder9closeLoopEv:
 4822|     11|{
 4823|     11|    loops.pop();
 4824|     11|}
_ZN3spv7Builder16clearAccessChainEv:
 4827|  34.4k|{
 4828|  34.4k|    accessChain.base = NoResult;
 4829|  34.4k|    accessChain.indexChain.clear();
 4830|  34.4k|    accessChain.instr = NoResult;
 4831|  34.4k|    accessChain.swizzle.clear();
 4832|  34.4k|    accessChain.component = NoResult;
 4833|  34.4k|    accessChain.preSwizzleBaseType = NoType;
 4834|  34.4k|    accessChain.isRValue = false;
 4835|  34.4k|    accessChain.coherentFlags.clear();
 4836|  34.4k|    accessChain.alignment = 0;
 4837|  34.4k|    accessChain.descHeapInfo.descHeapBaseTy = NoResult;
 4838|  34.4k|    accessChain.descHeapInfo.sourceName.clear();
 4839|  34.4k|    accessChain.descHeapInfo.descHeapBaseOffset = NoResult;
 4840|  34.4k|    accessChain.descHeapInfo.descHeapIndexChain.clear();
 4841|  34.4k|    accessChain.descHeapInfo.descTy = NoResult;
 4842|  34.4k|    accessChain.descHeapInfo.descStorageClass = StorageClass::Max;
 4843|  34.4k|    accessChain.descHeapInfo.descReadonly = false;
 4844|  34.4k|    accessChain.descHeapInfo.descWriteonly = false;
 4845|  34.4k|    accessChain.descHeapInfo.descHeapInstId.clear();
 4846|  34.4k|}
_ZN3spv7Builder22accessChainPushSwizzleERNSt3__16vectorIjNS1_9allocatorIjEEEEjNS0_11AccessChain13CoherentFlagsEj:
 4851|    969|{
 4852|    969|    accessChain.coherentFlags |= coherentFlags;
 4853|    969|    accessChain.alignment |= alignment;
 4854|       |
 4855|       |    // swizzles can be stacked in GLSL, but simplified to a single
 4856|       |    // one here; the base type doesn't change
 4857|    969|    if (accessChain.preSwizzleBaseType == NoType)
  ------------------
  |  Branch (4857:9): [True: 969, False: 0]
  ------------------
 4858|    969|        accessChain.preSwizzleBaseType = preSwizzleBaseType;
 4859|       |
 4860|       |    // if needed, propagate the swizzle for the current access chain
 4861|    969|    if (accessChain.swizzle.size() > 0) {
  ------------------
  |  Branch (4861:9): [True: 0, False: 969]
  ------------------
 4862|      0|        std::vector<unsigned> oldSwizzle = accessChain.swizzle;
 4863|      0|        accessChain.swizzle.resize(0);
 4864|      0|        for (unsigned int i = 0; i < swizzle.size(); ++i) {
  ------------------
  |  Branch (4864:34): [True: 0, False: 0]
  ------------------
 4865|      0|            assert(swizzle[i] < oldSwizzle.size());
 4866|      0|            accessChain.swizzle.push_back(oldSwizzle[swizzle[i]]);
 4867|      0|        }
 4868|      0|    } else
 4869|    969|        accessChain.swizzle = swizzle;
 4870|       |
 4871|       |    // determine if we need to track this swizzle anymore
 4872|    969|    simplifyAccessChainSwizzle();
 4873|    969|}
_ZN3spv7Builder16accessChainStoreEjNS_10DecorationENS_16MemoryAccessMaskENS_5ScopeEj:
 4877|  2.82k|{
 4878|  2.82k|    assert(accessChain.isRValue == false);
 4879|       |
 4880|  2.82k|    transferAccessChainSwizzle(true);
 4881|       |
 4882|       |    // MeshShadingEXT outputs don't support loads, so split swizzled stores
 4883|  2.82k|    bool isMeshOutput = getStorageClass(accessChain.base) == StorageClass::Output &&
  ------------------
  |  Branch (4883:25): [True: 19, False: 2.81k]
  ------------------
 4884|     19|                        capabilities.find(spv::Capability::MeshShadingEXT) != capabilities.end();
  ------------------
  |  Branch (4884:25): [True: 0, False: 19]
  ------------------
 4885|       |
 4886|       |    // If a swizzle exists and is not full and is not dynamic, then the swizzle will be broken into individual stores.
 4887|  2.82k|    if (accessChain.swizzle.size() > 0 &&
  ------------------
  |  Branch (4887:9): [True: 136, False: 2.69k]
  ------------------
 4888|    136|        ((getNumTypeComponents(getResultingAccessChainType()) != accessChain.swizzle.size() && accessChain.component == NoResult) || isMeshOutput)) {
  ------------------
  |  Branch (4888:11): [True: 136, False: 0]
  |  Branch (4888:96): [True: 136, False: 0]
  |  Branch (4888:134): [True: 0, False: 0]
  ------------------
 4889|    430|        for (unsigned int i = 0; i < accessChain.swizzle.size(); ++i) {
  ------------------
  |  Branch (4889:34): [True: 294, False: 136]
  ------------------
 4890|    294|            accessChain.indexChain.push_back(makeUintConstant(accessChain.swizzle[i]));
 4891|    294|            accessChain.instr = NoResult;
 4892|       |
 4893|    294|            Id base = collapseAccessChain();
 4894|    294|            addDecoration(base, nonUniform);
 4895|       |
 4896|    294|            accessChain.indexChain.pop_back();
 4897|    294|            accessChain.instr = NoResult;
 4898|       |
 4899|       |            // dynamic component should be gone
 4900|    294|            assert(accessChain.component == NoResult);
 4901|       |
 4902|    294|            Id source = createCompositeExtract(rvalue, getContainedTypeId(getTypeId(rvalue)), i);
 4903|       |
 4904|       |            // take LSB of alignment
 4905|    294|            alignment = alignment & ~(alignment & (alignment-1));
 4906|    294|            if (getStorageClass(base) == StorageClass::PhysicalStorageBufferEXT) {
  ------------------
  |  Branch (4906:17): [True: 0, False: 294]
  ------------------
 4907|      0|                memoryAccess = (spv::MemoryAccessMask)(memoryAccess | spv::MemoryAccessMask::Aligned);
 4908|      0|            }
 4909|       |
 4910|    294|            createStore(source, base, memoryAccess, scope, alignment);
 4911|    294|        }
 4912|    136|    }
 4913|  2.69k|    else {
 4914|  2.69k|        Id base = collapseAccessChain();
 4915|  2.69k|        addDecoration(base, nonUniform);
 4916|       |
 4917|  2.69k|        Id source = rvalue;
 4918|       |
 4919|       |        // dynamic component should be gone
 4920|  2.69k|        assert(accessChain.component == NoResult);
 4921|       |
 4922|       |        // take LSB of alignment
 4923|  2.69k|        alignment = alignment & ~(alignment & (alignment-1));
 4924|  2.69k|        if (getStorageClass(base) == StorageClass::PhysicalStorageBufferEXT) {
  ------------------
  |  Branch (4924:13): [True: 0, False: 2.69k]
  ------------------
 4925|      0|            memoryAccess = (spv::MemoryAccessMask)(memoryAccess | spv::MemoryAccessMask::Aligned);
 4926|      0|        }
 4927|       |
 4928|       |        // If swizzle still exists, it may be out-of-order, we must load the target vector,
 4929|       |        // extract and insert elements to perform writeMask and/or swizzle.
 4930|  2.69k|        if (accessChain.swizzle.size() > 0) {
  ------------------
  |  Branch (4930:13): [True: 0, False: 2.69k]
  ------------------
 4931|       |            // The read-modify-write load hits the same pointer as the store, so it needs the
 4932|       |            // same memory operands (while flipping MakePointerAvailable to Visible).
 4933|       |            // In particular a PhysicalStorageBuffer access must carry Aligned.
 4934|      0|            auto loadAccess = memoryAccess & ~spv::MemoryAccessMask::MakePointerAvailableKHR;
 4935|      0|            if (anySet(memoryAccess, spv::MemoryAccessMask::MakePointerAvailableKHR))
  ------------------
  |  Branch (4935:17): [True: 0, False: 0]
  ------------------
 4936|      0|                loadAccess = loadAccess | spv::MemoryAccessMask::MakePointerVisibleKHR;
 4937|      0|            Id tempBaseId = createLoad(base, spv::NoPrecision, loadAccess, scope, alignment);
 4938|      0|            source = createLvalueSwizzle(getTypeId(tempBaseId), tempBaseId, source, accessChain.swizzle);
 4939|      0|        }
 4940|       |
 4941|  2.69k|        createStore(source, base, memoryAccess, scope, alignment);
 4942|  2.69k|    }
 4943|  2.82k|}
_ZN3spv7Builder15accessChainLoadENS_10DecorationES1_S1_jNS_16MemoryAccessMaskENS_5ScopeEj:
 4949|  12.8k|{
 4950|  12.8k|    Id id;
 4951|       |
 4952|  12.8k|    if (accessChain.isRValue) {
  ------------------
  |  Branch (4952:9): [True: 5.66k, False: 7.19k]
  ------------------
 4953|       |        // transfer access chain, but try to stay in registers
 4954|  5.66k|        transferAccessChainSwizzle(false);
 4955|  5.66k|        if (accessChain.indexChain.size() > 0) {
  ------------------
  |  Branch (4955:13): [True: 56, False: 5.61k]
  ------------------
 4956|     56|            Id swizzleBase = accessChain.preSwizzleBaseType != NoType ? accessChain.preSwizzleBaseType : resultType;
  ------------------
  |  Branch (4956:30): [True: 0, False: 56]
  ------------------
 4957|       |
 4958|       |            // if all the accesses are constants, we can use OpCompositeExtract
 4959|     56|            std::vector<unsigned> indexes;
 4960|     56|            bool constant = true;
 4961|     88|            for (int i = 0; i < (int)accessChain.indexChain.size(); ++i) {
  ------------------
  |  Branch (4961:29): [True: 56, False: 32]
  ------------------
 4962|     56|                if (isConstantScalar(accessChain.indexChain[i]))
  ------------------
  |  Branch (4962:21): [True: 32, False: 24]
  ------------------
 4963|     32|                    indexes.push_back(getConstantScalar(accessChain.indexChain[i]));
 4964|     24|                else {
 4965|     24|                    constant = false;
 4966|     24|                    break;
 4967|     24|                }
 4968|     56|            }
 4969|       |
 4970|     56|            if (constant) {
  ------------------
  |  Branch (4970:17): [True: 32, False: 24]
  ------------------
 4971|     32|                id = createCompositeExtract(accessChain.base, swizzleBase, indexes);
 4972|     32|                setPrecision(id, precision);
 4973|     32|            } else if (isVector(accessChain.base) || isCooperativeVector(accessChain.base)) {
  ------------------
  |  Branch (4973:24): [True: 0, False: 24]
  |  Branch (4973:54): [True: 0, False: 24]
  ------------------
 4974|      0|                assert(accessChain.indexChain.size() == 1);
 4975|      0|                id = createVectorExtractDynamic(accessChain.base, resultType, accessChain.indexChain[0]);
 4976|     24|            } else {
 4977|     24|                Id lValue = NoResult;
 4978|     24|                if (spvVersion >= Spv_1_4 && isValidInitializer(accessChain.base)) {
  ------------------
  |  Branch (4978:21): [True: 0, False: 24]
  |  Branch (4978:46): [True: 0, False: 0]
  ------------------
 4979|       |                    // make a new function variable for this r-value, using an initializer,
 4980|       |                    // and mark it as NonWritable so that downstream it can be detected as a lookup
 4981|       |                    // table
 4982|      0|                    lValue = createVariable(NoPrecision, StorageClass::Function, getTypeId(accessChain.base),
 4983|      0|                        "indexable", accessChain.base);
 4984|      0|                    addDecoration(lValue, Decoration::NonWritable);
 4985|     24|                } else {
 4986|     24|                    lValue = createVariable(NoPrecision, StorageClass::Function, getTypeId(accessChain.base),
 4987|     24|                        "indexable");
 4988|       |                    // store into it
 4989|     24|                    createStore(accessChain.base, lValue);
 4990|     24|                }
 4991|       |                // move base to the new variable
 4992|     24|                accessChain.base = lValue;
 4993|     24|                accessChain.isRValue = false;
 4994|       |
 4995|       |                // load through the access chain
 4996|     24|                id = createLoad(collapseAccessChain(), precision);
 4997|     24|            }
 4998|     56|        } else
 4999|  5.61k|            id = accessChain.base;  // no precision, it was set when this was defined
 5000|  7.19k|    } else {
 5001|  7.19k|        transferAccessChainSwizzle(true);
 5002|       |
 5003|       |        // take LSB of alignment
 5004|  7.19k|        alignment = alignment & ~(alignment & (alignment-1));
 5005|  7.19k|        if (getStorageClass(accessChain.base) == StorageClass::PhysicalStorageBufferEXT) {
  ------------------
  |  Branch (5005:13): [True: 0, False: 7.19k]
  ------------------
 5006|      0|            memoryAccess = (spv::MemoryAccessMask)(memoryAccess | spv::MemoryAccessMask::Aligned);
 5007|      0|        }
 5008|       |
 5009|       |        // load through the access chain
 5010|  7.19k|        id = collapseAccessChain();
 5011|       |        // Apply nonuniform both to the access chain and the loaded value.
 5012|       |        // Buffer accesses need the access chain decorated, and this is where
 5013|       |        // loaded image types get decorated. TODO: This should maybe move to
 5014|       |        // createImageTextureFunctionCall.
 5015|  7.19k|        addDecoration(id, l_nonUniform);
 5016|  7.19k|        id = createLoad(id, precision, memoryAccess, scope, alignment);
 5017|  7.19k|        addDecoration(id, r_nonUniform);
 5018|  7.19k|    }
 5019|       |
 5020|       |    // Done, unless there are swizzles to do
 5021|  12.8k|    if (accessChain.swizzle.size() == 0 && accessChain.component == NoResult)
  ------------------
  |  Branch (5021:9): [True: 12.5k, False: 303]
  |  Branch (5021:44): [True: 12.5k, False: 0]
  ------------------
 5022|  12.5k|        return id;
 5023|       |
 5024|       |    // Do remaining swizzling
 5025|       |
 5026|       |    // Do the basic swizzle
 5027|    303|    if (accessChain.swizzle.size() > 0) {
  ------------------
  |  Branch (5027:9): [True: 303, False: 0]
  ------------------
 5028|    303|        Id swizzledType = getScalarTypeId(getTypeId(id));
 5029|    303|        if (accessChain.swizzle.size() > 1)
  ------------------
  |  Branch (5029:13): [True: 303, False: 0]
  ------------------
 5030|    303|            swizzledType = makeVectorType(swizzledType, (int)accessChain.swizzle.size());
 5031|    303|        id = createRvalueSwizzle(precision, swizzledType, id, accessChain.swizzle);
 5032|    303|    }
 5033|       |
 5034|       |    // Do the dynamic component
 5035|    303|    if (accessChain.component != NoResult)
  ------------------
  |  Branch (5035:9): [True: 0, False: 303]
  ------------------
 5036|      0|        id = setPrecision(createVectorExtractDynamic(id, resultType, accessChain.component), precision);
 5037|       |
 5038|    303|    addDecoration(id, r_nonUniform);
 5039|    303|    return id;
 5040|  12.8k|}
_ZN3spv7Builder20accessChainGetLValueEv:
 5043|    721|{
 5044|    721|    assert(accessChain.isRValue == false);
 5045|       |
 5046|    721|    transferAccessChainSwizzle(true);
 5047|    721|    Id lvalue = collapseAccessChain();
 5048|       |
 5049|       |    // If swizzle exists, it is out-of-order or not full, we must load the target vector,
 5050|       |    // extract and insert elements to perform writeMask and/or swizzle.  This does not
 5051|       |    // go with getting a direct l-value pointer.
 5052|    721|    assert(accessChain.swizzle.size() == 0);
 5053|    721|    assert(accessChain.component == NoResult);
 5054|       |
 5055|    721|    return lvalue;
 5056|    721|}
_ZN3spv7Builder26accessChainGetInferredTypeEv:
 5060|  13.0k|{
 5061|       |    // anything to operate on?
 5062|       |    // for untyped pointer, it may be remapped to a descriptor heap.
 5063|       |    // for descriptor heap, its base data type will be determined later,
 5064|       |    // according to load/store results' types.
 5065|  13.0k|    if (accessChain.base == NoResult || isUntypedPointer(accessChain.base) ||
  ------------------
  |  Branch (5065:9): [True: 0, False: 13.0k]
  |  Branch (5065:41): [True: 0, False: 13.0k]
  ------------------
 5066|  13.0k|    !accessChain.descHeapInfo.descHeapIndexChain.empty())
  ------------------
  |  Branch (5066:5): [True: 0, False: 13.0k]
  ------------------
 5067|      0|        return NoType;
 5068|  13.0k|    Id type = getTypeId(accessChain.base);
 5069|       |    // do initial dereference
 5070|  13.0k|    if (! accessChain.isRValue)
  ------------------
  |  Branch (5070:9): [True: 7.42k, False: 5.66k]
  ------------------
 5071|  7.42k|        type = getContainedTypeId(type);
 5072|       |
 5073|       |    // dereference each index
 5074|  13.7k|    for (auto it = accessChain.indexChain.cbegin(); it != accessChain.indexChain.cend(); ++it) {
  ------------------
  |  Branch (5074:53): [True: 699, False: 13.0k]
  ------------------
 5075|    699|        if (isStructType(type))
  ------------------
  |  Branch (5075:13): [True: 645, False: 54]
  ------------------
 5076|    645|            type = getContainedTypeId(type, getConstantScalar(*it));
 5077|     54|        else
 5078|     54|            type = getContainedTypeId(type);
 5079|    699|    }
 5080|       |
 5081|       |    // dereference swizzle
 5082|  13.0k|    if (accessChain.swizzle.size() == 1)
  ------------------
  |  Branch (5082:9): [True: 480, False: 12.6k]
  ------------------
 5083|    480|        type = getContainedTypeId(type);
 5084|  12.6k|    else if (accessChain.swizzle.size() > 1)
  ------------------
  |  Branch (5084:14): [True: 375, False: 12.2k]
  ------------------
 5085|    375|        type = makeVectorType(getContainedTypeId(type), (int)accessChain.swizzle.size());
 5086|       |
 5087|       |    // dereference component selection
 5088|  13.0k|    if (accessChain.component)
  ------------------
  |  Branch (5088:9): [True: 0, False: 13.0k]
  ------------------
 5089|      0|        type = getContainedTypeId(type);
 5090|       |
 5091|  13.0k|    return type;
 5092|  13.0k|}
_ZNK3spv7Builder4dumpERNSt3__16vectorIjNS1_9allocatorIjEEEE:
 5095|     42|{
 5096|       |    // Header, before first instructions:
 5097|     42|    out.push_back(MagicNumber);
 5098|     42|    out.push_back(spvVersion);
 5099|     42|    out.push_back(builderNumber);
 5100|     42|    out.push_back(uniqueId + 1);
 5101|     42|    out.push_back(0);
 5102|       |
 5103|       |    // Capabilities
 5104|    274|    for (auto it = capabilities.cbegin(); it != capabilities.cend(); ++it) {
  ------------------
  |  Branch (5104:43): [True: 232, False: 42]
  ------------------
 5105|    232|        Instruction capInst(0, 0, Op::OpCapability);
 5106|    232|        capInst.addImmediateOperand(*it);
 5107|    232|        capInst.dump(out);
 5108|    232|    }
 5109|       |
 5110|     94|    for (auto it = extensions.cbegin(); it != extensions.cend(); ++it) {
  ------------------
  |  Branch (5110:41): [True: 52, False: 42]
  ------------------
 5111|     52|        Instruction extInst(0, 0, Op::OpExtension);
 5112|     52|        extInst.addStringOperand(it->c_str());
 5113|     52|        extInst.dump(out);
 5114|     52|    }
 5115|       |
 5116|     42|    dumpInstructions(out, imports);
 5117|     42|    Instruction memInst(0, 0, Op::OpMemoryModel);
 5118|     42|    memInst.addImmediateOperand(addressModel);
 5119|     42|    memInst.addImmediateOperand(memoryModel);
 5120|     42|    memInst.dump(out);
 5121|       |
 5122|       |    // Instructions saved up while building:
 5123|     42|    dumpInstructions(out, entryPoints);
 5124|     42|    dumpInstructions(out, executionModes);
 5125|       |
 5126|       |    // Debug instructions
 5127|     42|    dumpInstructions(out, strings);
 5128|     42|    dumpSourceInstructions(out);
 5129|    282|    for (int e = 0; e < (int)sourceExtensions.size(); ++e) {
  ------------------
  |  Branch (5129:21): [True: 240, False: 42]
  ------------------
 5130|    240|        Instruction sourceExtInst(0, 0, Op::OpSourceExtension);
 5131|    240|        sourceExtInst.addStringOperand(sourceExtensions[e]);
 5132|    240|        sourceExtInst.dump(out);
 5133|    240|    }
 5134|     42|    dumpInstructions(out, names);
 5135|     42|    dumpModuleProcesses(out);
 5136|       |
 5137|       |    // Annotation instructions
 5138|     42|    dumpInstructions(out, decorations);
 5139|       |
 5140|     42|    dumpInstructions(out, constantsTypesGlobals);
 5141|     42|    dumpInstructions(out, externals);
 5142|       |
 5143|       |    // The functions
 5144|     42|    module.dump(out);
 5145|     42|}
_ZN3spv7Builder19collapseAccessChainEv:
 5157|  10.9k|{
 5158|  10.9k|    assert(accessChain.isRValue == false);
 5159|       |
 5160|       |    // did we already emit an access chain for this?
 5161|  10.9k|    if (accessChain.instr != NoResult)
  ------------------
  |  Branch (5161:9): [True: 0, False: 10.9k]
  ------------------
 5162|      0|        return accessChain.instr;
 5163|       |
 5164|       |    // If we have a dynamic component, we can still transfer
 5165|       |    // that into a final operand to the access chain.  We need to remap the
 5166|       |    // dynamic component through the swizzle to get a new dynamic component to
 5167|       |    // update.
 5168|       |    //
 5169|       |    // This was not done in transferAccessChainSwizzle() because it might
 5170|       |    // generate code.
 5171|  10.9k|    remapDynamicSwizzle();
 5172|  10.9k|    if (accessChain.component != NoResult) {
  ------------------
  |  Branch (5172:9): [True: 0, False: 10.9k]
  ------------------
 5173|       |        // transfer the dynamic component to the access chain
 5174|      0|        accessChain.indexChain.push_back(accessChain.component);
 5175|      0|        accessChain.component = NoResult;
 5176|      0|    }
 5177|       |
 5178|       |    // note that non-trivial swizzling is left pending
 5179|       |
 5180|       |    // do we have an access chain?
 5181|  10.9k|    if (accessChain.indexChain.size() == 0 && accessChain.descHeapInfo.descHeapIndexChain.empty())
  ------------------
  |  Branch (5181:9): [True: 9.05k, False: 1.87k]
  |  Branch (5181:47): [True: 9.05k, False: 0]
  ------------------
 5182|  9.05k|        return accessChain.base;
 5183|       |
 5184|       |    // emit the access chain
 5185|  1.87k|    StorageClass storageClass = (StorageClass)module.getStorageClass(getTypeId(accessChain.base));
 5186|       |    // when descHeap info is set, use another access chain process.
 5187|  1.87k|    if (isUntypedPointer(accessChain.base) || !accessChain.descHeapInfo.descHeapIndexChain.empty()) {
  ------------------
  |  Branch (5187:9): [True: 0, False: 1.87k]
  |  Branch (5187:47): [True: 0, False: 1.87k]
  ------------------
 5188|      0|        accessChain.instr = createDescHeapAccessChain();
 5189|  1.87k|    } else {
 5190|  1.87k|        accessChain.instr = createAccessChain(storageClass, accessChain.base, accessChain.indexChain);
 5191|  1.87k|    }
 5192|       |
 5193|  1.87k|    return accessChain.instr;
 5194|  10.9k|}
_ZN3spv7Builder19remapDynamicSwizzleEv:
 5202|  10.9k|{
 5203|       |    // do we have a swizzle to remap a dynamic component through?
 5204|  10.9k|    if (accessChain.component != NoResult && accessChain.swizzle.size() > 1) {
  ------------------
  |  Branch (5204:9): [True: 0, False: 10.9k]
  |  Branch (5204:46): [True: 0, False: 0]
  ------------------
 5205|       |        // build a vector of the swizzle for the component to map into
 5206|      0|        std::vector<Id> components;
 5207|      0|        for (int c = 0; c < (int)accessChain.swizzle.size(); ++c)
  ------------------
  |  Branch (5207:25): [True: 0, False: 0]
  ------------------
 5208|      0|            components.push_back(makeUintConstant(accessChain.swizzle[c]));
 5209|      0|        Id mapType = makeVectorType(makeUintType(32), (int)accessChain.swizzle.size());
 5210|      0|        Id map = makeCompositeConstant(mapType, components);
 5211|       |
 5212|       |        // use it
 5213|      0|        accessChain.component = createVectorExtractDynamic(map, makeUintType(32), accessChain.component);
 5214|      0|        accessChain.swizzle.clear();
 5215|      0|    }
 5216|  10.9k|}
_ZN3spv7Builder26simplifyAccessChainSwizzleEv:
 5221|    969|{
 5222|       |    // If the swizzle has fewer components than the vector, it is subsetting, and must stay
 5223|       |    // to preserve that fact.
 5224|    969|    if (getNumTypeComponents(accessChain.preSwizzleBaseType) > accessChain.swizzle.size())
  ------------------
  |  Branch (5224:9): [True: 967, False: 2]
  ------------------
 5225|    967|        return;
 5226|       |
 5227|       |    // if components are out of order, it is a swizzle
 5228|      8|    for (unsigned int i = 0; i < accessChain.swizzle.size(); ++i) {
  ------------------
  |  Branch (5228:30): [True: 6, False: 2]
  ------------------
 5229|      6|        if (i != accessChain.swizzle[i])
  ------------------
  |  Branch (5229:13): [True: 0, False: 6]
  ------------------
 5230|      0|            return;
 5231|      6|    }
 5232|       |
 5233|       |    // otherwise, there is no need to track this swizzle
 5234|      2|    accessChain.swizzle.clear();
 5235|      2|    if (accessChain.component == NoResult)
  ------------------
  |  Branch (5235:9): [True: 2, False: 0]
  ------------------
 5236|      2|        accessChain.preSwizzleBaseType = NoType;
 5237|      2|}
_ZN3spv7Builder26transferAccessChainSwizzleEb:
 5246|  16.4k|{
 5247|       |    // non existent?
 5248|  16.4k|    if (accessChain.swizzle.size() == 0 && accessChain.component == NoResult)
  ------------------
  |  Branch (5248:9): [True: 15.2k, False: 1.16k]
  |  Branch (5248:44): [True: 15.2k, False: 0]
  ------------------
 5249|  15.2k|        return;
 5250|       |
 5251|       |    // too complex?
 5252|       |    // (this requires either a swizzle, or generating code for a dynamic component)
 5253|  1.16k|    if (accessChain.swizzle.size() > 1)
  ------------------
  |  Branch (5253:9): [True: 439, False: 725]
  ------------------
 5254|    439|        return;
 5255|       |
 5256|       |    // single component, either in the swizzle and/or dynamic component
 5257|    725|    if (accessChain.swizzle.size() == 1) {
  ------------------
  |  Branch (5257:9): [True: 725, False: 0]
  ------------------
 5258|    725|        assert(accessChain.component == NoResult);
 5259|       |        // handle static component selection
 5260|    725|        accessChain.indexChain.push_back(makeUintConstant(accessChain.swizzle.front()));
 5261|    725|        accessChain.swizzle.clear();
 5262|    725|        accessChain.preSwizzleBaseType = NoType;
 5263|    725|    } else if (dynamic && accessChain.component != NoResult) {
  ------------------
  |  Branch (5263:16): [True: 0, False: 0]
  |  Branch (5263:27): [True: 0, False: 0]
  ------------------
 5264|      0|        assert(accessChain.swizzle.size() == 0);
 5265|       |        // handle dynamic component
 5266|      0|        accessChain.indexChain.push_back(accessChain.component);
 5267|      0|        accessChain.preSwizzleBaseType = NoType;
 5268|      0|        accessChain.component = NoResult;
 5269|      0|    }
 5270|    725|}
_ZN3spv7Builder30createAndSetNoPredecessorBlockEPKc:
 5276|    150|{
 5277|    150|    Block* block = new Block(getUniqueId(), buildPoint->getParent());
 5278|    150|    block->setUnreachable();
 5279|    150|    buildPoint->getParent().addBlock(block);
 5280|    150|    setBuildPoint(block);
 5281|       |
 5282|       |    // if (name)
 5283|       |    //    addName(block->getId(), name);
 5284|    150|}
_ZN3spv7Builder12createBranchEbPNS_5BlockE:
 5288|    244|{
 5289|    244|    Instruction* branch = new Instruction(Op::OpBranch);
 5290|    244|    branch->addIdOperand(block->getId());
 5291|    244|    if (implicit) {
  ------------------
  |  Branch (5291:9): [True: 210, False: 34]
  ------------------
 5292|    210|        addInstructionNoDebugInfo(std::unique_ptr<Instruction>(branch));
 5293|    210|    }
 5294|     34|    else {
 5295|     34|        addInstruction(std::unique_ptr<Instruction>(branch));
 5296|     34|    }
 5297|    244|    block->addPredecessor(buildPoint);
 5298|    244|}
_ZN3spv7Builder20createSelectionMergeEPNS_5BlockENS_20SelectionControlMaskE:
 5317|    144|{
 5318|    144|    Instruction* merge = new Instruction(Op::OpSelectionMerge);
 5319|    144|    merge->reserveOperands(2);
 5320|    144|    merge->addIdOperand(mergeBlock->getId());
 5321|    144|    merge->addImmediateOperand(control);
 5322|    144|    addInstruction(std::unique_ptr<Instruction>(merge));
 5323|    144|}
_ZN3spv7Builder15createLoopMergeEPNS_5BlockES2_NS_15LoopControlMaskERKNSt3__16vectorIjNS4_9allocatorIjEEEE:
 5327|     11|{
 5328|     11|    Instruction* merge = new Instruction(Op::OpLoopMerge);
 5329|     11|    merge->reserveOperands(operands.size() + 3);
 5330|     11|    merge->addIdOperand(mergeBlock->getId());
 5331|     11|    merge->addIdOperand(continueBlock->getId());
 5332|     11|    merge->addImmediateOperand(control);
 5333|     11|    for (int op = 0; op < (int)operands.size(); ++op)
  ------------------
  |  Branch (5333:22): [True: 0, False: 11]
  ------------------
 5334|      0|        merge->addImmediateOperand(operands[op]);
 5335|     11|    addInstruction(std::unique_ptr<Instruction>(merge));
 5336|     11|}
_ZN3spv7Builder23createConditionalBranchEjPNS_5BlockES2_:
 5339|    143|{
 5340|    143|    Instruction* branch = new Instruction(Op::OpBranchConditional);
 5341|    143|    branch->reserveOperands(3);
 5342|    143|    branch->addIdOperand(condition);
 5343|    143|    branch->addIdOperand(thenBlock->getId());
 5344|    143|    branch->addIdOperand(elseBlock->getId());
 5345|       |
 5346|       |    // A conditional branch is always attached to a condition expression
 5347|    143|    addInstructionNoDebugInfo(std::unique_ptr<Instruction>(branch));
 5348|       |
 5349|    143|    thenBlock->addPredecessor(buildPoint);
 5350|    143|    elseBlock->addPredecessor(buildPoint);
 5351|    143|}
_ZNK3spv7Builder22dumpSourceInstructionsEjRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERNS1_6vectorIjNS5_IjEEEE:
 5358|     42|{
 5359|     42|    const int maxWordCount = 0xFFFF;
 5360|     42|    const int opSourceWordCount = 4;
 5361|     42|    const int nonNullBytesPerInstruction = 4 * (maxWordCount - opSourceWordCount) - 1;
 5362|       |
 5363|     42|    if (sourceLang != SourceLanguage::Unknown) {
  ------------------
  |  Branch (5363:9): [True: 42, False: 0]
  ------------------
 5364|       |        // OpSource Language Version File Source
 5365|     42|        Instruction sourceInst(NoResult, NoType, Op::OpSource);
 5366|     42|        sourceInst.reserveOperands(3);
 5367|     42|        sourceInst.addImmediateOperand(sourceLang);
 5368|     42|        sourceInst.addImmediateOperand(sourceVersion);
 5369|       |        // File operand
 5370|     42|        if (fileId != NoResult) {
  ------------------
  |  Branch (5370:13): [True: 0, False: 42]
  ------------------
 5371|      0|            sourceInst.addIdOperand(fileId);
 5372|       |            // Source operand
 5373|      0|            if (text.size() > 0) {
  ------------------
  |  Branch (5373:17): [True: 0, False: 0]
  ------------------
 5374|      0|                int nextByte = 0;
 5375|      0|                std::string subString;
 5376|      0|                while ((int)text.size() - nextByte > 0) {
  ------------------
  |  Branch (5376:24): [True: 0, False: 0]
  ------------------
 5377|      0|                    subString = text.substr(nextByte, nonNullBytesPerInstruction);
 5378|      0|                    if (nextByte == 0) {
  ------------------
  |  Branch (5378:25): [True: 0, False: 0]
  ------------------
 5379|       |                        // OpSource
 5380|      0|                        sourceInst.addStringOperand(subString.c_str());
 5381|      0|                        sourceInst.dump(out);
 5382|      0|                    } else {
 5383|       |                        // OpSourcContinued
 5384|      0|                        Instruction sourceContinuedInst(Op::OpSourceContinued);
 5385|      0|                        sourceContinuedInst.addStringOperand(subString.c_str());
 5386|      0|                        sourceContinuedInst.dump(out);
 5387|      0|                    }
 5388|      0|                    nextByte += nonNullBytesPerInstruction;
 5389|      0|                }
 5390|      0|            } else
 5391|      0|                sourceInst.dump(out);
 5392|      0|        } else
 5393|     42|            sourceInst.dump(out);
 5394|     42|    }
 5395|     42|}
_ZNK3spv7Builder22dumpSourceInstructionsERNSt3__16vectorIjNS1_9allocatorIjEEEE:
 5399|     42|{
 5400|     42|    if (emitNonSemanticShaderDebugInfo) return;
  ------------------
  |  Branch (5400:9): [True: 0, False: 42]
  ------------------
 5401|     42|    dumpSourceInstructions(mainFileId, sourceText, out);
 5402|     42|    for (auto iItr = includeFiles.begin(); iItr != includeFiles.end(); ++iItr)
  ------------------
  |  Branch (5402:44): [True: 0, False: 42]
  ------------------
 5403|      0|        dumpSourceInstructions(iItr->first, *iItr->second, out);
 5404|     42|}
_ZNK3spv7Builder19dumpModuleProcessesERNSt3__16vectorIjNS1_9allocatorIjEEEE:
 5414|     42|{
 5415|     42|    for (int i = 0; i < (int)moduleProcesses.size(); ++i) {
  ------------------
  |  Branch (5415:21): [True: 0, False: 42]
  ------------------
 5416|      0|        Instruction moduleProcessed(Op::OpModuleProcessed);
 5417|      0|        moduleProcessed.addStringOperand(moduleProcesses[i]);
 5418|      0|        moduleProcessed.dump(out);
 5419|      0|    }
 5420|     42|}
_ZNK3spv7Builder29DecorationInstructionLessThanclERKNSt3__110unique_ptrINS_11InstructionENS2_14default_deleteIS4_EEEES9_:
 5424|  24.5k|{
 5425|       |    // Order by the id to which the decoration applies first. This is more intuitive.
 5426|  24.5k|    assert(lhs->isIdOperand(0) && rhs->isIdOperand(0));
 5427|  24.5k|    if (lhs->getIdOperand(0) != rhs->getIdOperand(0)) {
  ------------------
  |  Branch (5427:9): [True: 23.1k, False: 1.43k]
  ------------------
 5428|  23.1k|        return lhs->getIdOperand(0) < rhs->getIdOperand(0);
 5429|  23.1k|    }
 5430|       |
 5431|  1.43k|    if (lhs->getOpCode() != rhs->getOpCode())
  ------------------
  |  Branch (5431:9): [True: 87, False: 1.34k]
  ------------------
 5432|     87|        return lhs->getOpCode() < rhs->getOpCode();
 5433|       |
 5434|       |    // Now compare the operands.
 5435|  1.34k|    int minSize = std::min(lhs->getNumOperands(), rhs->getNumOperands());
 5436|  1.41k|    for (int i = 1; i < minSize; ++i) {
  ------------------
  |  Branch (5436:21): [True: 1.35k, False: 56]
  ------------------
 5437|  1.35k|        if (lhs->isIdOperand(i) != rhs->isIdOperand(i)) {
  ------------------
  |  Branch (5437:13): [True: 0, False: 1.35k]
  ------------------
 5438|      0|            return lhs->isIdOperand(i) < rhs->isIdOperand(i);
 5439|      0|        }
 5440|       |
 5441|  1.35k|        if (lhs->isIdOperand(i)) {
  ------------------
  |  Branch (5441:13): [True: 0, False: 1.35k]
  ------------------
 5442|      0|            if (lhs->getIdOperand(i) != rhs->getIdOperand(i)) {
  ------------------
  |  Branch (5442:17): [True: 0, False: 0]
  ------------------
 5443|      0|                return lhs->getIdOperand(i) < rhs->getIdOperand(i);
 5444|      0|            }
 5445|  1.35k|        } else {
 5446|  1.35k|            if (lhs->getImmediateOperand(i) != rhs->getImmediateOperand(i)) {
  ------------------
  |  Branch (5446:17): [True: 1.29k, False: 66]
  ------------------
 5447|  1.29k|                return lhs->getImmediateOperand(i) < rhs->getImmediateOperand(i);
 5448|  1.29k|            }
 5449|  1.35k|        }
 5450|  1.35k|    }
 5451|       |
 5452|     56|    if (lhs->getNumOperands() != rhs->getNumOperands())
  ------------------
  |  Branch (5452:9): [True: 0, False: 56]
  ------------------
 5453|      0|        return lhs->getNumOperands() < rhs->getNumOperands();
 5454|       |
 5455|       |    // In this case they are equal.
 5456|     56|    return false;
 5457|     56|}
SpvBuilder.cpp:_ZZN3spv7Builder21tryFoldSpecConstantOpENS_2OpEjRKNSt3__16vectorIjNS2_9allocatorIjEEEES8_ENK3$_0clEj:
 3721|    229|    const auto isInt32Constant = [this](Id id) {
 3722|    229|        return isConstantScalar(id) && getTypeClass(getTypeId(id)) == Op::OpTypeInt &&
  ------------------
  |  Branch (3722:16): [True: 26, False: 203]
  |  Branch (3722:40): [True: 26, False: 0]
  ------------------
 3723|     26|               getScalarTypeWidth(getTypeId(id)) == 32;
  ------------------
  |  Branch (3723:16): [True: 0, False: 26]
  ------------------
 3724|    229|    };
SpvBuilder.cpp:_ZZN3spv7Builder13promoteScalarENS_10DecorationERjS2_ENK3$_0clEjj:
 3883|    207|    auto const &makeVec = [&](Id component, Id other) {
 3884|    207|        if (isCooperativeVector(other)) {
  ------------------
  |  Branch (3884:13): [True: 0, False: 207]
  ------------------
 3885|      0|            return makeCooperativeVectorTypeNV(getTypeId(component), getCooperativeVectorNumComponents(getTypeId(other)));
 3886|    207|        } else {
 3887|    207|            return makeVectorType(getTypeId(component), getNumComponents(other));
 3888|    207|        }
 3889|    207|    };
SpvBuilder.cpp:_ZZN3spv7Builder17createConstructorENS_10DecorationERKNSt3__16vectorIjNS2_9allocatorIjEEEEjENK3$_0clEj:
 4449|     24|    const auto latchResult = [&](Id comp) {
 4450|     24|        if (numTargetComponents > 1 || isVectorType(resultTypeId))
  ------------------
  |  Branch (4450:13): [True: 24, False: 0]
  |  Branch (4450:40): [True: 0, False: 0]
  ------------------
 4451|     24|            constituents.push_back(comp);
 4452|      0|        else
 4453|      0|            result = comp;
 4454|     24|        ++targetComponent;
 4455|     24|    };
SpvBuilder.cpp:_ZZN3spv7Builder17createConstructorENS_10DecorationERKNSt3__16vectorIjNS2_9allocatorIjEEEEjENK3$_1clEj:
 4458|      6|    const auto accumulateVectorConstituents = [&](Id sourceArg) {
 4459|      6|        unsigned int sourceSize = getNumComponents(sourceArg);
 4460|      6|        unsigned int sourcesToUse = sourceSize;
 4461|      6|        if (sourcesToUse + targetComponent > numTargetComponents)
  ------------------
  |  Branch (4461:13): [True: 0, False: 6]
  ------------------
 4462|      0|            sourcesToUse = numTargetComponents - targetComponent;
 4463|       |
 4464|     22|        for (unsigned int s = 0; s < sourcesToUse; ++s) {
  ------------------
  |  Branch (4464:34): [True: 16, False: 6]
  ------------------
 4465|     16|            std::vector<unsigned> swiz;
 4466|     16|            swiz.push_back(s);
 4467|     16|            latchResult(createRvalueSwizzle(precision, scalarTypeId, sourceArg, swiz));
 4468|     16|        }
 4469|      6|    };
_ZNK3spv7Builder16dumpInstructionsINSt3__16vectorINS2_10unique_ptrINS_11InstructionENS2_14default_deleteIS5_EEEENS2_9allocatorIS8_EEEEEEvRNS3_IjNS9_IjEEEERKT_:
 5407|    294|{
 5408|  5.28k|    for (const auto& inst : instructions) {
  ------------------
  |  Branch (5408:27): [True: 5.28k, False: 294]
  ------------------
 5409|  5.28k|        inst->dump(out);
 5410|  5.28k|    }
 5411|    294|}
_ZNK3spv7Builder16dumpInstructionsINSt3__13setINS2_10unique_ptrINS_11InstructionENS2_14default_deleteIS5_EEEENS0_29DecorationInstructionLessThanENS2_9allocatorIS8_EEEEEEvRNS2_6vectorIjNSA_IjEEEERKT_:
 5407|     42|{
 5408|  1.67k|    for (const auto& inst : instructions) {
  ------------------
  |  Branch (5408:27): [True: 1.67k, False: 42]
  ------------------
 5409|  1.67k|        inst->dump(out);
 5410|  1.67k|    }
 5411|     42|}

_ZN3spv7Builder9setSourceENS_14SourceLanguageEi:
  327|     42|    {
  328|     42|        sourceLang = lang;
  329|     42|        sourceVersion = version;
  330|     42|    }
_ZN3spv7Builder11getUniqueIdEv:
  430|  21.5k|    Id getUniqueId() { return ++uniqueId; }
_ZN3spv7Builder26setUseReplicatedCompositesEb:
 1276|     42|    void setUseReplicatedComposites(bool use) { useReplicatedComposites = use; }
_ZN3spv7Builder24addIncorporatedExtensionEPKcNS_10SpvVersionE:
  406|     55|    {
  407|     55|        if (getSpvVersion() < static_cast<unsigned>(incorporatedVersion))
  ------------------
  |  Branch (407:13): [True: 55, False: 0]
  ------------------
  408|     55|            addExtension(ext);
  409|     55|    }
_ZNK3spv7Builder13getSpvVersionEv:
  324|  1.18k|    unsigned int getSpvVersion() const { return spvVersion; }
_ZN3spv7Builder13addCapabilityENS_10CapabilityE:
  427|  20.1k|    void addCapability(spv::Capability cap) { capabilities.insert(cap); }
_ZN3spv7Builder14setMemoryModelENS_15AddressingModelENS_11MemoryModelE:
  422|     42|    {
  423|     42|        addressModel = addr;
  424|     42|        memoryModel = mem;
  425|     42|    }
_ZN3spv7Builder18addSourceExtensionEPKc:
  376|    240|    void addSourceExtension(const char* ext) { sourceExtensions.push_back(ext); }
_ZN3spv7Builder12addExtensionEPKc:
  400|    911|    void addExtension(const char* ext) { extensions.insert(ext); }
_ZN3spv7Builder16makeUintConstantEjb:
  684|  1.97k|        { return makeIntConstant(makeUintType(32),           u, specConstant); }
_ZN3spv7Builder12makeUintTypeEi:
  467|  5.00k|    Id makeUintType(int width) { return makeIntegerType(width, false); }
_ZN3spv7Builder14getAccessChainEv:
 1151|  63.4k|    AccessChain getAccessChain() { return accessChain; }
_ZN3spv7Builder22setDebugSourceLocationEiPKc:
  361|  24.2k|    {
  362|  24.2k|        if (trackDebugInfo) {
  ------------------
  |  Branch (362:13): [True: 0, False: 24.2k]
  ------------------
  363|      0|            dirtyLineTracker = true;
  364|      0|            if (line != 0) {
  ------------------
  |  Branch (364:17): [True: 0, False: 0]
  ------------------
  365|       |                // TODO: This is special handling of some AST nodes having (untracked) line 0.
  366|       |                //       But they should have a valid line number.
  367|      0|                currentLine = line;
  368|      0|                if (filename) {
  ------------------
  |  Branch (368:21): [True: 0, False: 0]
  ------------------
  369|      0|                    currentFileId = getStringId(filename);
  370|      0|                }
  371|      0|            }
  372|      0|        }
  373|  24.2k|    }
_ZN3spv7Builder24isInSpecConstCodeGenModeEv:
 1274|  22.8k|    bool isInSpecConstCodeGenMode() { return generatingOpCodeForSpecConst; }
_ZN3spv7Builder25setToSpecConstCodeGenModeEv:
 1270|  2.22k|    void setToSpecConstCodeGenMode() { generatingOpCodeForSpecConst = true; }
_ZN3spv7Builder22setToNormalCodeGenModeEv:
 1272|  21.3k|    void setToNormalCodeGenMode() { generatingOpCodeForSpecConst = false; }
_ZN3spv7Builder14setAccessChainENS0_11AccessChainE:
 1152|  3.95k|    void setAccessChain(AccessChain newChain) { accessChain = newChain; }
_ZN3spv7Builder11makeIntTypeEi:
  466|  7.59k|    Id makeIntType(int width) { return makeIntegerType(width, true); }
_ZNK3spv7Builder9getTypeIdEj:
  548|   208k|    Id getTypeId(Id resultId) const { return module.getTypeId(resultId); }
_ZNK3spv7Builder18getScalarTypeWidthEj:
  632|  41.9k|    {
  633|  41.9k|        Id scalarTypeId = getScalarTypeId(typeId);
  634|       |        assert(getTypeClass(scalarTypeId) == Op::OpTypeInt || getTypeClass(scalarTypeId) == Op::OpTypeFloat);
  635|  41.9k|        return module.getInstruction(scalarTypeId)->getImmediateOperand(0);
  636|  41.9k|    }
_ZNK3spv7Builder16isConstantScalarEj:
  618|    285|    bool isConstantScalar(Id resultId) const { return getOpCode(resultId) == Op::OpConstant; }
_ZNK3spv7Builder17getConstantScalarEj:
  621|  2.54k|        { return module.getInstruction(resultId)->getImmediateOperand(0); }
_ZNK3spv7Builder9getOpCodeEj:
  550|  85.9k|    Op getOpCode(Id id) const { return module.getInstruction(id)->getOpCode(); }
_ZN3spv7Builder15makeIntConstantEib:
  682|  3.03k|        { return makeIntConstant(makeIntType(32),  (unsigned)i, specConstant); }
_ZN3spv7Builder16makeInt8ConstantEib:
  674|     73|        { return makeIntConstant(makeIntType(8),  (unsigned)i, specConstant); }
_ZN3spv7Builder17makeUint8ConstantEjb:
  676|     74|        { return makeIntConstant(makeUintType(8),           u, specConstant); }
_ZN3spv7Builder17makeInt16ConstantEib:
  678|    218|        { return makeIntConstant(makeIntType(16),  (unsigned)i, specConstant); }
_ZN3spv7Builder18makeUint16ConstantEjb:
  680|    195|        { return makeIntConstant(makeUintType(16),           u, specConstant); }
_ZN3spv7Builder17makeInt64ConstantExb:
  694|     97|        { return makeInt64Constant(makeIntType(64),  (unsigned long long)i, specConstant); }
_ZN3spv7Builder18makeUint64ConstantEyb:
  696|     98|        { return makeInt64Constant(makeUintType(64),                     u, specConstant); }
_ZNK3spv7Builder15getStorageClassEj:
  622|  54.5k|    StorageClass getStorageClass(Id resultId) const { return getTypeStorageClass(getTypeId(resultId)); }
_ZNK3spv7Builder19getTypeStorageClassEj:
  559|  54.5k|    StorageClass getTypeStorageClass(Id typeId) const { return module.getStorageClass(typeId); }
_ZN3spv7Builder11AccessChain13CoherentFlagsC2Ev:
 1093|  31.5k|            CoherentFlags() { clear(); }
_ZN3spv7Builder11AccessChain13CoherentFlags5clearEv:
 1113|  65.9k|            void clear() {
 1114|  65.9k|                coherent = 0;
 1115|  65.9k|                devicecoherent = 0;
 1116|  65.9k|                queuefamilycoherent = 0;
 1117|  65.9k|                workgroupcoherent = 0;
 1118|  65.9k|                subgroupcoherent = 0;
 1119|  65.9k|                shadercallcoherent = 0;
 1120|  65.9k|                nonprivate = 0;
 1121|  65.9k|                volatil = 0;
 1122|  65.9k|                nontemporal = 0;
 1123|  65.9k|                isImage = 0;
 1124|  65.9k|                nonUniform = 0;
 1125|  65.9k|            }
_ZNK3spv7Builder11AccessChain13CoherentFlags11anyCoherentEv:
 1096|  20.7k|            bool anyCoherent() const {
 1097|  20.7k|                return coherent || devicecoherent || queuefamilycoherent || workgroupcoherent ||
  ------------------
  |  Branch (1097:24): [True: 56, False: 20.6k]
  |  Branch (1097:36): [True: 0, False: 20.6k]
  |  Branch (1097:54): [True: 0, False: 20.6k]
  |  Branch (1097:77): [True: 0, False: 20.6k]
  ------------------
 1098|  20.6k|                    subgroupcoherent || shadercallcoherent;
  ------------------
  |  Branch (1098:21): [True: 0, False: 20.6k]
  |  Branch (1098:41): [True: 0, False: 20.6k]
  ------------------
 1099|  20.7k|            }
_ZN3spv7Builder11AccessChain13CoherentFlagsoRERKS2_:
 1127|  19.4k|            CoherentFlags operator |=(const CoherentFlags &other) {
 1128|  19.4k|                coherent |= other.coherent;
 1129|  19.4k|                devicecoherent |= other.devicecoherent;
 1130|  19.4k|                queuefamilycoherent |= other.queuefamilycoherent;
 1131|  19.4k|                workgroupcoherent |= other.workgroupcoherent;
 1132|  19.4k|                subgroupcoherent |= other.subgroupcoherent;
 1133|  19.4k|                shadercallcoherent |= other.shadercallcoherent;
 1134|  19.4k|                nonprivate |= other.nonprivate;
 1135|  19.4k|                volatil |= other.volatil;
 1136|  19.4k|                nontemporal |= other.nontemporal;
 1137|  19.4k|                isImage |= other.isImage;
 1138|  19.4k|                nonUniform |= other.nonUniform;
 1139|  19.4k|                return *this;
 1140|  19.4k|            }
_ZNK3spv7Builder11AccessChain13CoherentFlags10isVolatileEv:
 1094|    234|            bool isVolatile() const { return volatil; }
_ZNK3spv7Builder11AccessChain13CoherentFlags12isNonUniformEv:
 1095|  17.3k|            bool isNonUniform() const { return nonUniform; }
_ZNK3spv7Builder12isScalarTypeEj:
  594|  5.26k|        { return getTypeClass(typeId) == Op::OpTypeFloat || getTypeClass(typeId) == Op::OpTypeInt ||
  ------------------
  |  Branch (594:18): [True: 549, False: 4.71k]
  |  Branch (594:61): [True: 1.10k, False: 3.61k]
  ------------------
  595|  3.61k|          getTypeClass(typeId) == Op::OpTypeBool; }
  ------------------
  |  Branch (595:11): [True: 391, False: 3.21k]
  ------------------
_ZNK3spv7Builder12getTypeClassEj:
  551|  84.7k|    Op getTypeClass(Id typeId) const { return getOpCode(typeId); }
_ZNK3spv7Builder12isVectorTypeEj:
  596|  2.05k|    bool isVectorType(Id typeId)       const { return getTypeClass(typeId) == Op::OpTypeVector; }
_ZNK3spv7Builder20getNumTypeComponentsEj:
  555|  3.58k|    unsigned int getNumTypeComponents(Id typeId) const { return getNumTypeConstituents(typeId); }
_ZNK3spv7Builder11isArrayTypeEj:
  599|     49|    bool isArrayType(Id typeId)        const { return getTypeClass(typeId) == Op::OpTypeArray; }
_ZNK3spv7Builder9isPointerEj:
  566|  10.6k|    bool isPointer(Id resultId)      const { return isPointerType(getTypeId(resultId)); }
_ZNK3spv7Builder12isMatrixTypeEj:
  597|  2.85k|    bool isMatrixType(Id typeId)       const { return getTypeClass(typeId) == Op::OpTypeMatrix; }
_ZNK3spv7Builder13isPointerTypeEj:
  591|  26.1k|    bool isPointerType(Id typeId)      const { return getTypeClass(typeId) == Op::OpTypePointer; }
_ZNK3spv7Builder16isUntypedPointerEj:
  568|  25.5k|    {
  569|  25.5k|        const Id tid = getTypeId(resultId);
  570|       |        // Expect that OpString have no type
  571|  25.5k|        if (tid == 0)
  ------------------
  |  Branch (571:13): [True: 0, False: 25.5k]
  ------------------
  572|      0|            return false;
  573|  25.5k|        return isUntypedPointerType(tid);
  574|  25.5k|    }
_ZNK3spv7Builder20isUntypedPointerTypeEj:
  592|  25.5k|    bool isUntypedPointerType(Id typeId) const { return getTypeClass(typeId) == Op::OpTypeUntypedPointerKHR; }
_ZN3spv7Builder20setAccessChainRValueEj:
 1191|  9.54k|    {
 1192|  9.54k|        accessChain.isRValue = true;
 1193|  9.54k|        accessChain.base = rValue;
 1194|  9.54k|    }
_ZN3spv7Builder20setAccessChainLValueEj:
 1184|  9.72k|    {
 1185|       |        assert(isPointer(lValue) || isUntypedPointer(lValue));
 1186|  9.72k|        accessChain.base = lValue;
 1187|  9.72k|    }
_ZNK3spv7Builder8isVectorEj:
  576|    151|    bool isVector(Id resultId)       const { return isVectorType(getTypeId(resultId)); }
_ZNK3spv7Builder19isCooperativeVectorEj:
  579|    328|    bool isCooperativeVector(Id resultId)const { return isCooperativeVectorType(getTypeId(resultId)); }
_ZNK3spv7Builder23isCooperativeVectorTypeEj:
  605|    803|    bool isCooperativeVectorType(Id typeId) const { return getTypeClass(typeId) == Op::OpTypeCooperativeVectorNV; }
_ZNK3spv7Builder8isMatrixEj:
  577|  2.84k|    bool isMatrix(Id resultId)       const { return isMatrixType(getTypeId(resultId)); }
_ZNK3spv7Builder19isCooperativeMatrixEj:
  578|  2.79k|    bool isCooperativeMatrix(Id resultId)const { return isCooperativeMatrixType(getTypeId(resultId)); }
_ZNK3spv7Builder23isCooperativeMatrixTypeEj:
  601|  3.99k|    {
  602|  3.99k|        return getTypeClass(typeId) == Op::OpTypeCooperativeMatrixKHR || getTypeClass(typeId) == Op::OpTypeCooperativeMatrixNV;
  ------------------
  |  Branch (602:16): [True: 0, False: 3.99k]
  |  Branch (602:74): [True: 0, False: 3.99k]
  ------------------
  603|  3.99k|    }
_ZNK3spv7Builder8isScalarEj:
  575|  3.55k|    bool isScalar(Id resultId)       const { return isScalarType(getTypeId(resultId)); }
_ZNK3spv7Builder13getNumColumnsEj:
  643|      2|    unsigned int getNumColumns(Id resultId) const { return getTypeNumColumns(getTypeId(resultId)); }
_ZNK3spv7Builder17getTypeNumColumnsEj:
  639|      2|    {
  640|       |        assert(isMatrixType(typeId));
  641|      2|        return getNumTypeConstituents(typeId);
  642|      2|    }
_ZNK3spv7Builder10getNumRowsEj:
  649|      2|    unsigned int getNumRows(Id resultId) const { return getTypeNumRows(getTypeId(resultId)); }
_ZNK3spv7Builder14getTypeNumRowsEj:
  645|      2|    {
  646|       |        assert(isMatrixType(typeId));
  647|      2|        return getNumTypeComponents(getContainedTypeId(typeId));
  648|      2|    }
_ZN3spv7Builder12setPrecisionEjNS_10DecorationE:
  876|  14.0k|    {
  877|  14.0k|        if (precision != NoPrecision && id != NoResult)
  ------------------
  |  Branch (877:13): [True: 652, False: 13.3k]
  |  Branch (877:41): [True: 652, False: 0]
  ------------------
  878|    652|            addDecoration(id, precision);
  879|       |
  880|  14.0k|        return id;
  881|  14.0k|    }
_ZNK3spv7Builder11isAggregateEj:
  580|     49|    bool isAggregate(Id resultId)    const { return isAggregateType(getTypeId(resultId)); }
_ZNK3spv7Builder15isAggregateTypeEj:
  608|     49|        { return isArrayType(typeId) || isStructType(typeId) || isCooperativeMatrixType(typeId); }
  ------------------
  |  Branch (608:18): [True: 0, False: 49]
  |  Branch (608:41): [True: 0, False: 49]
  |  Branch (608:65): [True: 0, False: 49]
  ------------------
_ZNK3spv7Builder12isStructTypeEj:
  598|  2.74k|    bool isStructType(Id typeId)       const { return getTypeClass(typeId) == Op::OpTypeStruct; }
_ZN3spv7Builder15accessChainPushEjNS0_11AccessChain13CoherentFlagsEj:
 1198|    922|    {
 1199|    922|        accessChain.indexChain.push_back(offset);
 1200|    922|        accessChain.coherentFlags |= coherentFlags;
 1201|    922|        accessChain.alignment |= alignment;
 1202|    922|    }
_ZNK3spv7Builder10isUintTypeEj:
  589|     34|        { return getTypeClass(typeId) == Op::OpTypeInt && module.getInstruction(typeId)->getImmediateOperand(1) == 0; }
  ------------------
  |  Branch (589:18): [True: 34, False: 0]
  |  Branch (589:59): [True: 24, False: 10]
  ------------------
_ZNK3spv7Builder13getBuildPointEv:
  748|    272|    Block* getBuildPoint() const { return buildPoint; }
_ZN3spv7Builder2IfD2Ev:
  963|    132|        ~If() {}
_ZNK3spv7Builder14isSampledImageEj:
  581|  1.43k|    bool isSampledImage(Id resultId) const { return isSampledImageType(getTypeId(resultId)); }
_ZNK3spv7Builder18isSampledImageTypeEj:
  611|  1.73k|    bool isSampledImageType(Id typeId) const { return getTypeClass(typeId) == Op::OpTypeSampledImage; }
_ZNK3spv7Builder12getImageTypeEj:
  657|    300|    {
  658|    300|        Id typeId = getTypeId(resultId);
  659|    300|        assert(isImageType(typeId) || isSampledImageType(typeId));
  660|    300|        return isSampledImageType(typeId) ? module.getInstruction(typeId)->getIdOperand(0) : typeId;
  ------------------
  |  Branch (660:16): [True: 105, False: 195]
  ------------------
  661|    300|    }
_ZN3spv7Builder16makeUintConstantENS_5ScopeEb:
  686|    234|        { return makeUintConstant((unsigned)u, specConstant); }
_ZNK3spv7Builder18getImageTypeFormatEj:
  561|    129|        { return (ImageFormat)module.getInstruction(typeId)->getImmediateOperand(6); }
_ZN3spv7Builder16makeUintConstantENS_19MemorySemanticsMaskEb:
  690|    234|        { return makeUintConstant((unsigned)u, specConstant); }
_ZNK3spv7Builder16getNumComponentsEj:
  553|    598|    unsigned int getNumComponents(Id resultId) const { return getNumTypeComponents(getTypeId(resultId)); }
_ZN3spv7Builder13setBuildPointEPNS_5BlockE:
  742|  1.08k|    void setBuildPoint(Block* bp) {
  743|  1.08k|        buildPoint = bp;
  744|  1.08k|        descHeapShiftedBaseCache.clear();
  745|  1.08k|        dirtyLineTracker = true;
  746|  1.08k|        dirtyScopeTracker = true;
  747|  1.08k|    }
_ZNK3spv7Builder11isSpvLvalueEv:
 1235|    150|    bool isSpvLvalue() const { return accessChain.swizzle.size() <= 1; }
_ZNK3spv7Builder11isFloatTypeEj:
  590|    116|    bool isFloatType(Id typeId)        const { return getTypeClass(typeId) == Op::OpTypeFloat; }
_ZNK3spv7Builder9isIntTypeEj:
  587|    208|        { return getTypeClass(typeId) == Op::OpTypeInt && module.getInstruction(typeId)->getImmediateOperand(1) != 0; }
  ------------------
  |  Branch (587:18): [True: 208, False: 0]
  |  Branch (587:59): [True: 104, False: 104]
  ------------------
_ZN3spv7Builder10isBoolTypeEj:
  585|     48|        { return groupedTypes[enumCast(Op::OpTypeBool)].size() > 0 && typeId == groupedTypes[enumCast(Op::OpTypeBool)].back()->getResultId(); }
  ------------------
  |  Branch (585:18): [True: 48, False: 0]
  |  Branch (585:71): [True: 48, False: 0]
  ------------------
_ZN3spv7Builder20CompositeConstantKeyC2ENS_2OpEPNS_11InstructionE:
  103|    189|        : kind(Key_Instruction)
  104|    189|        , instruction(instruction)
  105|    189|        , typeClass(typeClass)
  106|    189|        , opcode(Op::OpNop)
  107|    189|        , typeId(NoType)
  108|    189|        , numMembers(0)
  109|    189|        , comps()
  110|    189|        {}
_ZN3spv7Builder20CompositeConstantKeyC2ENS_2OpES2_jRKNSt3__16vectorIjNS3_9allocatorIjEEEEm:
  114|    934|        : kind(Key_CompositeConstant)
  115|    934|        , instruction(nullptr)
  116|    934|        , typeClass(typeClass)
  117|    934|        , opcode(opcode)
  118|    934|        , typeId(typeId)
  119|    934|        , numMembers(numMembers)
  120|    934|        , comps(comps)
  121|    934|        {}
_ZNK3spv7Builder20CompositeConstantKey14getInstructionEv:
  123|    745|        Instruction* getInstruction() const {
  124|    745|            return instruction;
  125|    745|        }
_ZNK3spv7Builder20CompositeConstantKey4HashclERKS1_:
  129|  1.09k|            size_t operator()(CompositeConstantKey const &key) const {
  130|  1.09k|                switch (key.kind) {
  ------------------
  |  Branch (130:25): [True: 1.09k, False: 0]
  ------------------
  131|    189|                case Key_Instruction:
  ------------------
  |  Branch (131:17): [True: 189, False: 908]
  ------------------
  132|    189|                    {
  133|    189|                        Instruction* constant = key.instruction;
  134|    189|                        size_t num_operands = constant->getNumOperands();
  135|    189|                        size_t hash = std::hash<Op>()(key.typeClass) * 7 ^
  136|    189|                            std::hash<Op>()(constant->getOpCode()) * 11 ^
  137|    189|                            std::hash<Id>()(constant->getTypeId()) * 13 ^
  138|    189|                            std::hash<size_t>()(num_operands) * 17;
  139|    679|                        for (size_t i = 0; i < num_operands; ++i) {
  ------------------
  |  Branch (139:44): [True: 490, False: 189]
  ------------------
  140|    490|                            hash = hash * 19 ^ std::hash<Id>()(constant->getIdOperand(i));
  141|    490|                        }
  142|    189|                        return hash;
  143|      0|                    }
  144|    908|                case Key_CompositeConstant:
  ------------------
  |  Branch (144:17): [True: 908, False: 189]
  ------------------
  145|    908|                    {
  146|    908|                        size_t hash = std::hash<Op>()(key.typeClass) * 7 ^
  147|    908|                            std::hash<Op>()(key.opcode) * 11 ^
  148|    908|                            std::hash<Id>()(key.typeId) * 13 ^
  149|    908|                            std::hash<size_t>()(key.numMembers) * 17;
  150|  3.29k|                        for (size_t i = 0; i < key.numMembers; ++i) {
  ------------------
  |  Branch (150:44): [True: 2.38k, False: 908]
  ------------------
  151|  2.38k|                            hash = hash * 19 ^ std::hash<Id>()(key.comps[i]);
  152|  2.38k|                        }
  153|    908|                        return hash;
  154|      0|                    }
  155|  1.09k|                }
  156|      0|                return 0;
  157|  1.09k|            }
_ZNK3spv7Builder20CompositeConstantKey5EqualclERKS1_S4_:
  163|    747|            {
  164|    747|                if (a.typeClass != b.typeClass)
  ------------------
  |  Branch (164:21): [True: 0, False: 747]
  ------------------
  165|      0|                    return false;
  166|       |
  167|    747|                if (a.kind == b.kind) {
  ------------------
  |  Branch (167:21): [True: 1, False: 746]
  ------------------
  168|       |                    // we need only the Instruction case, as the other keys only used for searching
  169|      1|                    return
  170|      1|                        a.kind == Key_Instruction &&
  ------------------
  |  Branch (170:25): [True: 1, False: 0]
  ------------------
  171|      1|                        a.instruction == b.instruction;
  ------------------
  |  Branch (171:25): [True: 0, False: 1]
  ------------------
  172|      1|                }
  173|    746|                const CompositeConstantKey* s = &a;
  174|    746|                const CompositeConstantKey* o = &b;
  175|       |
  176|    746|                if (s->kind == Key_CompositeConstant && o->kind == Key_Instruction) {
  ------------------
  |  Branch (176:21): [True: 0, False: 746]
  |  Branch (176:57): [True: 0, False: 0]
  ------------------
  177|      0|                    s = o;
  178|      0|                    o = &a;
  179|      0|                }
  180|       |
  181|       |                // compare a composite constant with an instruction
  182|    746|                if (s->kind == Key_Instruction && o->kind == Key_CompositeConstant) {
  ------------------
  |  Branch (182:21): [True: 746, False: 0]
  |  Branch (182:51): [True: 746, False: 0]
  ------------------
  183|    746|                    Instruction* constant = s->instruction;
  184|    746|                    if (constant->getTypeId() != o->typeId)
  ------------------
  |  Branch (184:25): [True: 0, False: 746]
  ------------------
  185|      0|                        return false;
  186|       |
  187|    746|                    if (constant->getOpCode() != o->opcode) {
  ------------------
  |  Branch (187:25): [True: 0, False: 746]
  ------------------
  188|      0|                        return false;
  189|      0|                    }
  190|       |
  191|    746|                    if (constant->getNumOperands() != (int)o->numMembers)
  ------------------
  |  Branch (191:25): [True: 0, False: 746]
  ------------------
  192|      0|                        return false;
  193|       |
  194|       |                    // same contents?
  195|  2.72k|                    for (int op = 0; op < constant->getNumOperands(); ++op) {
  ------------------
  |  Branch (195:38): [True: 1.98k, False: 745]
  ------------------
  196|  1.98k|                        if (constant->getIdOperand(op) != o->comps[op]) {
  ------------------
  |  Branch (196:29): [True: 1, False: 1.97k]
  ------------------
  197|      1|                            return false;
  198|      1|                        }
  199|  1.98k|                    }
  200|    745|                    return true;
  201|    746|                }
  202|      0|                return false;
  203|    746|            }
_ZN3spv7Builder12getUniqueIdsEi:
  434|      7|    {
  435|      7|        Id id = uniqueId + 1;
  436|      7|        uniqueId += numIds;
  437|      7|        return id;
  438|      7|    }
_ZNK3spv7Builder10isConstantEj:
  617|    442|    bool isConstant(Id resultId) const { return isConstantOpCode(getOpCode(resultId)); }
_ZNK3spv7Builder21getTypeDimensionalityEj:
  652|     33|    {
  653|       |        assert(isImageType(typeId));
  654|     33|        return (Dim)module.getInstruction(typeId)->getImmediateOperand(1);
  655|     33|    }
_ZNK3spv7Builder18isArrayedImageTypeEj:
  663|     33|    {
  664|       |        assert(isImageType(typeId));
  665|     33|        return module.getInstruction(typeId)->getImmediateOperand(3) != 0;
  666|     33|    }
_ZN3spv7Builder10LoopBlocksC2ERNS_5BlockES3_S3_S3_:
 1008|     11|            head(head), body(body), merge(merge), continue_target(continue_target) { }
_ZNK3spv7Builder17ScalarConstantKeyeqERKS1_:
 1388|  6.24k|        bool operator==(const ScalarConstantKey& other) const {
 1389|  6.24k|            return typeClass == other.typeClass &&
  ------------------
  |  Branch (1389:20): [True: 6.24k, False: 0]
  ------------------
 1390|  6.24k|                   opcode == other.opcode &&
  ------------------
  |  Branch (1390:20): [True: 6.24k, False: 0]
  ------------------
 1391|  6.24k|                   typeId == other.typeId &&
  ------------------
  |  Branch (1391:20): [True: 6.24k, False: 0]
  ------------------
 1392|  6.24k|                   value1 == other.value1 &&
  ------------------
  |  Branch (1392:20): [True: 6.24k, False: 0]
  ------------------
 1393|  6.24k|                   value2 == other.value2;
  ------------------
  |  Branch (1393:20): [True: 6.24k, False: 0]
  ------------------
 1394|  6.24k|        }
_ZNK3spv7Builder21ScalarConstantKeyHash8hash_mixEm:
 1399|  28.7k|        inline std::size_t hash_mix(std::size_t h) const {
 1400|  28.7k|            if constexpr (sizeof(std::size_t) == 8) {
 1401|  28.7k|                h ^= h >> 33;
 1402|  28.7k|                h *= UINT64_C(0xff51afd7ed558ccd);
 1403|  28.7k|                h ^= h >> 33;
 1404|  28.7k|                h *= UINT64_C(0xc4ceb9fe1a85ec53);
 1405|  28.7k|                h ^= h >> 33;
 1406|  28.7k|                return h;
 1407|       |            } else {
 1408|       |                h ^= h >> 16;
 1409|       |                h *= UINT32_C(0x85ebca6b);
 1410|       |                h ^= h >> 13;
 1411|       |                h *= UINT32_C(0xc2b2ae35);
 1412|       |                h ^= h >> 16;
 1413|       |                return h;
 1414|       |            }
 1415|  28.7k|        }
_ZNK3spv7Builder21ScalarConstantKeyHash12hash_combineEmm:
 1418|  28.7k|        inline std::size_t hash_combine(std::size_t seed, std::size_t v) const {
 1419|  28.7k|            return hash_mix(seed + 0x9e3779b9 + v);
 1420|  28.7k|        }
_ZNK3spv7Builder21ScalarConstantKeyHashclERKNS0_17ScalarConstantKeyE:
 1422|  7.18k|        std::size_t operator()(const ScalarConstantKey& k) const {
 1423|  7.18k|            size_t hash1 = hash_combine(std::hash<unsigned>{}(k.typeClass), std::hash<unsigned>{}(k.opcode));
 1424|  7.18k|            size_t hash2 = hash_combine(std::hash<Id>{}(k.value1), std::hash<unsigned>{}(k.value2));
 1425|  7.18k|            size_t hash3 = hash_combine(hash1, hash2);
 1426|  7.18k|            return hash_combine(hash3, std::hash<unsigned>{}(k.typeId));
 1427|  7.18k|        }

_ZN3spv7Builder15postProcessTypeERKNS_11InstructionEj:
   67|  50.3k|{
   68|       |    // Characterize the type being questioned
   69|  50.3k|    Op basicTypeOp = getMostBasicTypeClass(typeId);
   70|  50.3k|    int width = 0;
   71|  50.3k|    if (basicTypeOp == Op::OpTypeFloat || basicTypeOp == Op::OpTypeInt)
  ------------------
  |  Branch (71:9): [True: 19.4k, False: 30.8k]
  |  Branch (71:43): [True: 22.3k, False: 8.54k]
  ------------------
   72|  41.8k|        width = getScalarTypeWidth(typeId);
   73|       |
   74|       |    // Do opcode-specific checks
   75|  50.3k|    switch (inst.getOpCode()) {
   76|  14.4k|    case Op::OpLoad:
  ------------------
  |  Branch (76:5): [True: 14.4k, False: 35.9k]
  ------------------
   77|  21.0k|    case Op::OpStore:
  ------------------
  |  Branch (77:5): [True: 6.63k, False: 43.7k]
  ------------------
   78|  21.0k|        if (basicTypeOp == Op::OpTypeStruct) {
  ------------------
  |  Branch (78:13): [True: 20, False: 21.0k]
  ------------------
   79|     20|            if (containsType(typeId, Op::OpTypeInt, 8))
  ------------------
  |  Branch (79:17): [True: 0, False: 20]
  ------------------
   80|      0|                addCapability(Capability::Int8);
   81|     20|            if (containsType(typeId, Op::OpTypeInt, 16))
  ------------------
  |  Branch (81:17): [True: 0, False: 20]
  ------------------
   82|      0|                addCapability(Capability::Int16);
   83|     20|            if (containsType(typeId, Op::OpTypeFloat, 16))
  ------------------
  |  Branch (83:17): [True: 0, False: 20]
  ------------------
   84|      0|                addCapability(Capability::Float16);
   85|  21.0k|        } else {
   86|  21.0k|            StorageClass storageClass = StorageClass::Max;
   87|  21.0k|            if (module.getInstruction(inst.getIdOperand(0))->getOpCode() != Op::OpUntypedAccessChainKHR) {
  ------------------
  |  Branch (87:17): [True: 21.0k, False: 0]
  ------------------
   88|  21.0k|                storageClass = getStorageClass(inst.getIdOperand(0));
   89|  21.0k|            }
   90|  21.0k|            if (width == 8) {
  ------------------
  |  Branch (90:17): [True: 0, False: 21.0k]
  ------------------
   91|      0|                switch (storageClass) {
   92|      0|                case StorageClass::PhysicalStorageBufferEXT:
  ------------------
  |  Branch (92:17): [True: 0, False: 0]
  ------------------
   93|      0|                case StorageClass::Uniform:
  ------------------
  |  Branch (93:17): [True: 0, False: 0]
  ------------------
   94|      0|                case StorageClass::StorageBuffer:
  ------------------
  |  Branch (94:17): [True: 0, False: 0]
  ------------------
   95|      0|                case StorageClass::PushConstant:
  ------------------
  |  Branch (95:17): [True: 0, False: 0]
  ------------------
   96|      0|                    break;
   97|      0|                default:
  ------------------
  |  Branch (97:17): [True: 0, False: 0]
  ------------------
   98|      0|                    addCapability(Capability::Int8);
   99|      0|                    break;
  100|      0|                }
  101|  21.0k|            } else if (width == 16) {
  ------------------
  |  Branch (101:24): [True: 8.89k, False: 12.1k]
  ------------------
  102|  8.89k|                switch (storageClass) {
  103|      0|                case StorageClass::PhysicalStorageBufferEXT:
  ------------------
  |  Branch (103:17): [True: 0, False: 8.89k]
  ------------------
  104|    252|                case StorageClass::Uniform:
  ------------------
  |  Branch (104:17): [True: 252, False: 8.64k]
  ------------------
  105|    252|                case StorageClass::StorageBuffer:
  ------------------
  |  Branch (105:17): [True: 0, False: 8.89k]
  ------------------
  106|    252|                case StorageClass::PushConstant:
  ------------------
  |  Branch (106:17): [True: 0, False: 8.89k]
  ------------------
  107|  1.26k|                case StorageClass::Input:
  ------------------
  |  Branch (107:17): [True: 1.01k, False: 7.88k]
  ------------------
  108|  1.26k|                case StorageClass::Output:
  ------------------
  |  Branch (108:17): [True: 0, False: 8.89k]
  ------------------
  109|  1.26k|                    break;
  110|  7.62k|                default:
  ------------------
  |  Branch (110:17): [True: 7.62k, False: 1.26k]
  ------------------
  111|  7.62k|                    if (basicTypeOp == Op::OpTypeInt)
  ------------------
  |  Branch (111:25): [True: 5.12k, False: 2.50k]
  ------------------
  112|  5.12k|                        addCapability(Capability::Int16);
  113|  7.62k|                    if (basicTypeOp == Op::OpTypeFloat)
  ------------------
  |  Branch (113:25): [True: 2.50k, False: 5.12k]
  ------------------
  114|  2.50k|                        addCapability(Capability::Float16);
  115|  7.62k|                    break;
  116|  8.89k|                }
  117|  8.89k|            }
  118|  21.0k|        }
  119|  21.0k|        break;
  120|  21.0k|    case Op::OpCopyObject:
  ------------------
  |  Branch (120:5): [True: 0, False: 50.3k]
  ------------------
  121|      0|        break;
  122|      4|    case Op::OpFConvert:
  ------------------
  |  Branch (122:5): [True: 4, False: 50.3k]
  ------------------
  123|    244|    case Op::OpSConvert:
  ------------------
  |  Branch (123:5): [True: 240, False: 50.1k]
  ------------------
  124|    432|    case Op::OpUConvert:
  ------------------
  |  Branch (124:5): [True: 188, False: 50.1k]
  ------------------
  125|       |        // Look for any 8/16-bit storage capabilities. If there are none, assume that
  126|       |        // the convert instruction requires the Float16/Int8/16 capability.
  127|    432|        if (containsType(typeId, Op::OpTypeFloat, 16) || containsType(typeId, Op::OpTypeInt, 16)) {
  ------------------
  |  Branch (127:13): [True: 2, False: 430]
  |  Branch (127:58): [True: 214, False: 216]
  ------------------
  128|    216|            bool foundStorage = false;
  129|  1.31k|            for (auto it = capabilities.begin(); it != capabilities.end(); ++it) {
  ------------------
  |  Branch (129:50): [True: 1.31k, False: 0]
  ------------------
  130|  1.31k|                spv::Capability cap = *it;
  131|  1.31k|                if (cap == spv::Capability::StorageInputOutput16 ||
  ------------------
  |  Branch (131:21): [True: 2, False: 1.31k]
  ------------------
  132|  1.31k|                    cap == spv::Capability::StoragePushConstant16 ||
  ------------------
  |  Branch (132:21): [True: 0, False: 1.31k]
  ------------------
  133|  1.31k|                    cap == spv::Capability::StorageUniformBufferBlock16 ||
  ------------------
  |  Branch (133:21): [True: 0, False: 1.31k]
  ------------------
  134|  1.31k|                    cap == spv::Capability::StorageUniform16) {
  ------------------
  |  Branch (134:21): [True: 214, False: 1.10k]
  ------------------
  135|    216|                    foundStorage = true;
  136|    216|                    break;
  137|    216|                }
  138|  1.31k|            }
  139|    216|            if (!foundStorage) {
  ------------------
  |  Branch (139:17): [True: 0, False: 216]
  ------------------
  140|      0|                if (containsType(typeId, Op::OpTypeFloat, 16))
  ------------------
  |  Branch (140:21): [True: 0, False: 0]
  ------------------
  141|      0|                    addCapability(Capability::Float16);
  142|      0|                if (containsType(typeId, Op::OpTypeInt, 16))
  ------------------
  |  Branch (142:21): [True: 0, False: 0]
  ------------------
  143|      0|                    addCapability(Capability::Int16);
  144|      0|            }
  145|    216|        }
  146|    432|        if (containsType(typeId, Op::OpTypeInt, 8)) {
  ------------------
  |  Branch (146:13): [True: 0, False: 432]
  ------------------
  147|      0|            bool foundStorage = false;
  148|      0|            for (auto it = capabilities.begin(); it != capabilities.end(); ++it) {
  ------------------
  |  Branch (148:50): [True: 0, False: 0]
  ------------------
  149|      0|                spv::Capability cap = *it;
  150|      0|                if (cap == spv::Capability::StoragePushConstant8 ||
  ------------------
  |  Branch (150:21): [True: 0, False: 0]
  ------------------
  151|      0|                    cap == spv::Capability::UniformAndStorageBuffer8BitAccess ||
  ------------------
  |  Branch (151:21): [True: 0, False: 0]
  ------------------
  152|      0|                    cap == spv::Capability::StorageBuffer8BitAccess) {
  ------------------
  |  Branch (152:21): [True: 0, False: 0]
  ------------------
  153|      0|                    foundStorage = true;
  154|      0|                    break;
  155|      0|                }
  156|      0|            }
  157|      0|            if (!foundStorage) {
  ------------------
  |  Branch (157:17): [True: 0, False: 0]
  ------------------
  158|      0|                addCapability(Capability::Int8);
  159|      0|            }
  160|      0|        }
  161|    432|        break;
  162|    645|    case Op::OpExtInst:
  ------------------
  |  Branch (162:5): [True: 645, False: 49.7k]
  ------------------
  163|    645|        switch (inst.getImmediateOperand(1)) {
  164|      0|        case GLSLstd450Frexp:
  ------------------
  |  Branch (164:9): [True: 0, False: 645]
  ------------------
  165|     24|        case GLSLstd450FrexpStruct:
  ------------------
  |  Branch (165:9): [True: 24, False: 621]
  ------------------
  166|     24|            if (getSpvVersion() < spv::Spv_1_3 && containsType(typeId, Op::OpTypeInt, 16))
  ------------------
  |  Branch (166:17): [True: 24, False: 0]
  |  Branch (166:51): [True: 12, False: 12]
  ------------------
  167|     12|                addExtension(spv::E_SPV_AMD_gpu_shader_int16);
  168|     24|            break;
  169|      0|        case GLSLstd450InterpolateAtCentroid:
  ------------------
  |  Branch (169:9): [True: 0, False: 645]
  ------------------
  170|      0|        case GLSLstd450InterpolateAtSample:
  ------------------
  |  Branch (170:9): [True: 0, False: 645]
  ------------------
  171|      0|        case GLSLstd450InterpolateAtOffset:
  ------------------
  |  Branch (171:9): [True: 0, False: 645]
  ------------------
  172|      0|            if (getSpvVersion() < spv::Spv_1_3 && containsType(typeId, Op::OpTypeFloat, 16))
  ------------------
  |  Branch (172:17): [True: 0, False: 0]
  |  Branch (172:51): [True: 0, False: 0]
  ------------------
  173|      0|                addExtension(spv::E_SPV_AMD_gpu_shader_half_float);
  174|      0|            break;
  175|    621|        default:
  ------------------
  |  Branch (175:9): [True: 621, False: 24]
  ------------------
  176|    621|            break;
  177|    645|        }
  178|    645|        if (basicTypeOp == Op::OpTypeInt) {
  ------------------
  |  Branch (178:13): [True: 539, False: 106]
  ------------------
  179|    539|            if (width == 16)
  ------------------
  |  Branch (179:17): [True: 539, False: 0]
  ------------------
  180|    539|                addCapability(Capability::Int16);
  181|      0|            else if (width == 8)
  ------------------
  |  Branch (181:22): [True: 0, False: 0]
  ------------------
  182|      0|                addCapability(Capability::Int8);
  183|    539|        } else if (basicTypeOp == Op::OpTypeFloat) {
  ------------------
  |  Branch (183:20): [True: 94, False: 12]
  ------------------
  184|     94|            if (width == 16)
  ------------------
  |  Branch (184:17): [True: 34, False: 60]
  ------------------
  185|     34|                addCapability(Capability::Float16);
  186|     94|        }
  187|    645|        break;
  188|  5.74k|    case Op::OpAccessChain:
  ------------------
  |  Branch (188:5): [True: 5.74k, False: 44.6k]
  ------------------
  189|  5.74k|    case Op::OpPtrAccessChain:
  ------------------
  |  Branch (189:5): [True: 0, False: 50.3k]
  ------------------
  190|  5.74k|        if (isPointerType(typeId))
  ------------------
  |  Branch (190:13): [True: 3.75k, False: 1.99k]
  ------------------
  191|  3.75k|            break;
  192|  1.99k|        if (basicTypeOp == Op::OpTypeInt) {
  ------------------
  |  Branch (192:13): [True: 1.99k, False: 0]
  ------------------
  193|  1.99k|            if (width == 16)
  ------------------
  |  Branch (193:17): [True: 0, False: 1.99k]
  ------------------
  194|      0|                addCapability(Capability::Int16);
  195|  1.99k|            else if (width == 8)
  ------------------
  |  Branch (195:22): [True: 0, False: 1.99k]
  ------------------
  196|      0|                addCapability(Capability::Int8);
  197|  1.99k|        }
  198|  1.99k|        break;
  199|  22.4k|    default:
  ------------------
  |  Branch (199:5): [True: 22.4k, False: 27.8k]
  ------------------
  200|  22.4k|        if (basicTypeOp == Op::OpTypeInt) {
  ------------------
  |  Branch (200:13): [True: 9.95k, False: 12.5k]
  ------------------
  201|  9.95k|            if (width == 16)
  ------------------
  |  Branch (201:17): [True: 4.12k, False: 5.82k]
  ------------------
  202|  4.12k|                addCapability(Capability::Int16);
  203|  5.82k|            else if (width == 8)
  ------------------
  |  Branch (203:22): [True: 48, False: 5.77k]
  ------------------
  204|     48|                addCapability(Capability::Int8);
  205|  5.77k|            else if (width == 64)
  ------------------
  |  Branch (205:22): [True: 1.07k, False: 4.70k]
  ------------------
  206|  1.07k|                addCapability(Capability::Int64);
  207|  12.5k|        } else if (basicTypeOp == Op::OpTypeFloat) {
  ------------------
  |  Branch (207:20): [True: 8.38k, False: 4.11k]
  ------------------
  208|  8.38k|            if (width == 16)
  ------------------
  |  Branch (208:17): [True: 3.18k, False: 5.19k]
  ------------------
  209|  3.18k|                addCapability(Capability::Float16);
  210|  5.19k|            else if (width == 64)
  ------------------
  |  Branch (210:22): [True: 48, False: 5.15k]
  ------------------
  211|     48|                addCapability(Capability::Float64);
  212|  8.38k|        }
  213|  22.4k|        break;
  214|  50.3k|    }
  215|  50.3k|}
_ZN3spv7Builder11postProcessERNS_11InstructionE:
  250|  21.6k|{
  251|       |    // Add capabilities based simply on the opcode.
  252|  21.6k|    switch (inst.getOpCode()) {
  253|    213|    case Op::OpExtInst:
  ------------------
  |  Branch (253:5): [True: 213, False: 21.4k]
  ------------------
  254|    213|        switch (inst.getImmediateOperand(1)) {
  255|      0|        case GLSLstd450InterpolateAtCentroid:
  ------------------
  |  Branch (255:9): [True: 0, False: 213]
  ------------------
  256|      0|        case GLSLstd450InterpolateAtSample:
  ------------------
  |  Branch (256:9): [True: 0, False: 213]
  ------------------
  257|      0|        case GLSLstd450InterpolateAtOffset:
  ------------------
  |  Branch (257:9): [True: 0, False: 213]
  ------------------
  258|      0|            addCapability(Capability::InterpolationFunction);
  259|      0|            break;
  260|    213|        default:
  ------------------
  |  Branch (260:9): [True: 213, False: 0]
  ------------------
  261|    213|            break;
  262|    213|        }
  263|    213|        break;
  264|    213|    case Op::OpDPdxFine:
  ------------------
  |  Branch (264:5): [True: 0, False: 21.6k]
  ------------------
  265|      0|    case Op::OpDPdyFine:
  ------------------
  |  Branch (265:5): [True: 0, False: 21.6k]
  ------------------
  266|      0|    case Op::OpFwidthFine:
  ------------------
  |  Branch (266:5): [True: 0, False: 21.6k]
  ------------------
  267|      0|    case Op::OpDPdxCoarse:
  ------------------
  |  Branch (267:5): [True: 0, False: 21.6k]
  ------------------
  268|      0|    case Op::OpDPdyCoarse:
  ------------------
  |  Branch (268:5): [True: 0, False: 21.6k]
  ------------------
  269|      0|    case Op::OpFwidthCoarse:
  ------------------
  |  Branch (269:5): [True: 0, False: 21.6k]
  ------------------
  270|      0|        addCapability(Capability::DerivativeControl);
  271|      0|        break;
  272|       |
  273|     39|    case Op::OpImageQueryLod:
  ------------------
  |  Branch (273:5): [True: 39, False: 21.5k]
  ------------------
  274|     45|    case Op::OpImageQuerySize:
  ------------------
  |  Branch (274:5): [True: 6, False: 21.6k]
  ------------------
  275|     72|    case Op::OpImageQuerySizeLod:
  ------------------
  |  Branch (275:5): [True: 27, False: 21.6k]
  ------------------
  276|     76|    case Op::OpImageQuerySamples:
  ------------------
  |  Branch (276:5): [True: 4, False: 21.6k]
  ------------------
  277|    102|    case Op::OpImageQueryLevels:
  ------------------
  |  Branch (277:5): [True: 26, False: 21.6k]
  ------------------
  278|    102|        addCapability(Capability::ImageQuery);
  279|    102|        break;
  280|       |
  281|      0|    case Op::OpGroupNonUniformPartitionNV:
  ------------------
  |  Branch (281:5): [True: 0, False: 21.6k]
  ------------------
  282|      0|        addExtension(E_SPV_NV_shader_subgroup_partitioned);
  283|      0|        addCapability(Capability::GroupNonUniformPartitionedNV);
  284|      0|        break;
  285|       |
  286|  7.21k|    case Op::OpLoad:
  ------------------
  |  Branch (286:5): [True: 7.21k, False: 14.4k]
  ------------------
  287|  10.5k|    case Op::OpStore:
  ------------------
  |  Branch (287:5): [True: 3.31k, False: 18.3k]
  ------------------
  288|  10.5k|        {
  289|       |            // For any load/store to a PhysicalStorageBufferEXT, walk the accesschain
  290|       |            // index list to compute the misalignment. The pre-existing alignment value
  291|       |            // (set via Builder::AccessChain::alignment) only accounts for the base of
  292|       |            // the reference type and any scalar component selection in the accesschain,
  293|       |            // and this function computes the rest from the SPIR-V Offset decorations.
  294|  10.5k|            Instruction *accessChain = module.getInstruction(inst.getIdOperand(0));
  295|  10.5k|            if (accessChain->getOpCode() == Op::OpAccessChain) {
  ------------------
  |  Branch (295:17): [True: 1.86k, False: 8.66k]
  ------------------
  296|  1.86k|                const Instruction* base = module.getInstruction(accessChain->getIdOperand(0));
  297|       |                // Get the type of the base of the access chain. It must be a pointer type.
  298|  1.86k|                Id typeId = base->getTypeId();
  299|  1.86k|                Instruction *type = module.getInstruction(typeId);
  300|  1.86k|                assert(type->getOpCode() == Op::OpTypePointer);
  301|  1.86k|                if (type->getImmediateOperand(0) != StorageClass::PhysicalStorageBuffer) {
  ------------------
  |  Branch (301:21): [True: 1.86k, False: 0]
  ------------------
  302|  1.86k|                    break;
  303|  1.86k|                }
  304|       |                // Get the pointee type.
  305|      0|                typeId = type->getIdOperand(1);
  306|      0|                type = module.getInstruction(typeId);
  307|       |                // Walk the index list for the access chain. For each index, find any
  308|       |                // misalignment that can apply when accessing the member/element via
  309|       |                // Offset/ArrayStride/MatrixStride decorations, and bitwise OR them all
  310|       |                // together.
  311|      0|                int alignment = 0;
  312|      0|                bool first_struct_elem = false;
  313|      0|                for (int i = 1; i < accessChain->getNumOperands(); ++i) {
  ------------------
  |  Branch (313:33): [True: 0, False: 0]
  ------------------
  314|      0|                    Instruction *idx = module.getInstruction(accessChain->getIdOperand(i));
  315|      0|                    if (type->getOpCode() == Op::OpTypeStruct) {
  ------------------
  |  Branch (315:25): [True: 0, False: 0]
  ------------------
  316|      0|                        assert(idx->getOpCode() == Op::OpConstant);
  317|      0|                        unsigned int c = idx->getImmediateOperand(0);
  318|       |
  319|      0|                        const auto function = [&](const std::unique_ptr<Instruction>& decoration) {
  320|      0|                            if (decoration.get()->getOpCode() == Op::OpMemberDecorate &&
  321|      0|                                decoration.get()->getIdOperand(0) == typeId &&
  322|      0|                                decoration.get()->getImmediateOperand(1) == c &&
  323|      0|                                (decoration.get()->getImmediateOperand(2) == Decoration::Offset ||
  324|      0|                                 decoration.get()->getImmediateOperand(2) == Decoration::MatrixStride)) {
  325|      0|                                unsigned int opernad_value = decoration.get()->getImmediateOperand(3);
  326|      0|                                alignment |= opernad_value;
  327|      0|                                if (opernad_value == 0 &&
  328|      0|                                    decoration.get()->getImmediateOperand(2) == Decoration::Offset) {
  329|      0|                                    first_struct_elem = true;
  330|      0|                                }
  331|      0|                            }
  332|      0|                        };
  333|      0|                        std::for_each(decorations.begin(), decorations.end(), function);
  334|       |                        // get the next member type
  335|      0|                        typeId = type->getIdOperand(c);
  336|      0|                        type = module.getInstruction(typeId);
  337|      0|                    } else if (type->getOpCode() == Op::OpTypeArray ||
  ------------------
  |  Branch (337:32): [True: 0, False: 0]
  ------------------
  338|      0|                               type->getOpCode() == Op::OpTypeRuntimeArray) {
  ------------------
  |  Branch (338:32): [True: 0, False: 0]
  ------------------
  339|      0|                        const auto function = [&](const std::unique_ptr<Instruction>& decoration) {
  340|      0|                            if (decoration.get()->getOpCode() == Op::OpDecorate &&
  341|      0|                                decoration.get()->getIdOperand(0) == typeId &&
  342|      0|                                decoration.get()->getImmediateOperand(1) == Decoration::ArrayStride) {
  343|      0|                                alignment |= decoration.get()->getImmediateOperand(2);
  344|      0|                            }
  345|      0|                        };
  346|      0|                        std::for_each(decorations.begin(), decorations.end(), function);
  347|       |                        // Get the element type
  348|      0|                        typeId = type->getIdOperand(0);
  349|      0|                        type = module.getInstruction(typeId);
  350|      0|                    } else {
  351|       |                        // Once we get to any non-aggregate type, we're done.
  352|      0|                        break;
  353|      0|                    }
  354|      0|                }
  355|      0|                assert(inst.getNumOperands() >= 3);
  356|      0|                const bool is_store = inst.getOpCode() == Op::OpStore;
  357|      0|                auto const memoryAccess = (MemoryAccessMask)inst.getImmediateOperand(is_store ? 2 : 1);
  ------------------
  |  Branch (357:86): [True: 0, False: 0]
  ------------------
  358|      0|                assert(anySet(memoryAccess, MemoryAccessMask::Aligned));
  359|      0|                static_cast<void>(memoryAccess);
  360|       |
  361|       |                // Compute the index of the alignment operand.
  362|      0|                int alignmentIdx = 2;
  363|      0|                if (is_store)
  ------------------
  |  Branch (363:21): [True: 0, False: 0]
  ------------------
  364|      0|                    alignmentIdx++;
  365|       |                // Merge new and old (mis)alignment
  366|      0|                alignment |= inst.getImmediateOperand(alignmentIdx);
  367|       |
  368|      0|                Instruction* inst_type = nullptr;
  369|      0|                if (is_store) {
  ------------------
  |  Branch (369:21): [True: 0, False: 0]
  ------------------
  370|       |                    // For a store, we are storing through a pointer, so what this ends up looking like when storing a BDA pointer is we have a "OpTypePointer PhysicalStorageBuffer" pointing at the actual "OpTypePointer PhysicalStorageBuffer" value storing
  371|       |                    // https://godbolt.org/z/58ff4P3sG
  372|      0|                    inst_type = module.getInstruction(accessChain->getTypeId());
  373|      0|                    if (inst_type->getOpCode() == Op::OpTypePointer &&
  ------------------
  |  Branch (373:25): [True: 0, False: 0]
  ------------------
  374|      0|                        inst_type->getImmediateOperand(0) == StorageClass::PhysicalStorageBuffer) {
  ------------------
  |  Branch (374:25): [True: 0, False: 0]
  ------------------
  375|      0|                        inst_type = module.getInstruction(inst_type->getIdOperand(1));
  376|      0|                    }
  377|      0|                } else {
  378|      0|                    inst_type = module.getInstruction(inst.getTypeId());
  379|      0|                }
  380|       |
  381|      0|                if (inst_type->getOpCode() == Op::OpTypePointer &&
  ------------------
  |  Branch (381:21): [True: 0, False: 0]
  ------------------
  382|      0|                    inst_type->getImmediateOperand(0) == StorageClass::PhysicalStorageBuffer) {
  ------------------
  |  Branch (382:21): [True: 0, False: 0]
  ------------------
  383|       |                    // This means we are loading a pointer which means need to ensure it is at least 8-byte aligned
  384|       |                    // See https://github.com/KhronosGroup/glslang/issues/4084
  385|       |                    // In case the alignment is currently 4, need to ensure it is 8 before grabbing the LSB
  386|      0|                    alignment |= 8;
  387|      0|                    alignment &= 8;
  388|      0|                }
  389|       |
  390|       |                // Pick the LSB
  391|      0|                alignment = alignment & ~(alignment & (alignment-1));
  392|       |
  393|       |                // The edge case we find is when copying a struct to another struct, we never find the alignment anywhere,
  394|       |                // so in this case, fallback to doing a full size lookup on the type
  395|      0|                if (alignment == 0 && first_struct_elem) {
  ------------------
  |  Branch (395:21): [True: 0, False: 0]
  |  Branch (395:39): [True: 0, False: 0]
  ------------------
  396|       |                    // Quick get the struct type back
  397|      0|                    const Instruction* pointer_type = module.getInstruction(base->getTypeId());
  398|      0|                    const Instruction* struct_type = module.getInstruction(pointer_type->getIdOperand(1));
  399|      0|                    assert(struct_type->getOpCode() == Op::OpTypeStruct);
  400|       |
  401|      0|                    const Instruction* elem_type = module.getInstruction(struct_type->getIdOperand(0));
  402|      0|                    unsigned int largest_scalar = postProcessGetLargestScalarSize(*elem_type);
  403|      0|                    if (largest_scalar != 0) {
  ------------------
  |  Branch (403:25): [True: 0, False: 0]
  ------------------
  404|      0|                        alignment = largest_scalar;
  405|      0|                    } else {
  406|      0|                        alignment = 16; // fallback if can't determine a godo alignment
  407|      0|                    }
  408|      0|                }
  409|       |                // update the Aligned operand
  410|      0|                assert(alignment != 0);
  411|      0|                inst.setImmediateOperand(alignmentIdx, alignment);
  412|      0|            }
  413|  8.66k|            break;
  414|  10.5k|        }
  415|       |
  416|  10.7k|    default:
  ------------------
  |  Branch (416:5): [True: 10.7k, False: 10.8k]
  ------------------
  417|  10.7k|        break;
  418|  21.6k|    }
  419|       |
  420|       |    // Checks based on type
  421|  21.6k|    if (inst.getTypeId() != NoType)
  ------------------
  |  Branch (421:9): [True: 16.6k, False: 4.96k]
  ------------------
  422|  16.6k|        postProcessType(inst, inst.getTypeId());
  423|  59.4k|    for (int op = 0; op < inst.getNumOperands(); ++op) {
  ------------------
  |  Branch (423:22): [True: 37.7k, False: 21.6k]
  ------------------
  424|  37.7k|        if (inst.isIdOperand(op)) {
  ------------------
  |  Branch (424:13): [True: 34.6k, False: 3.14k]
  ------------------
  425|       |            // In blocks, these are always result ids, but we are relying on
  426|       |            // getTypeId() to return NoType for things like OpLabel.
  427|  34.6k|            if (getTypeId(inst.getIdOperand(op)) != NoType)
  ------------------
  |  Branch (427:17): [True: 33.6k, False: 963]
  ------------------
  428|  33.6k|                postProcessType(inst, getTypeId(inst.getIdOperand(op)));
  429|  34.6k|        }
  430|  37.7k|    }
  431|  21.6k|}
_ZN3spv7Builder14postProcessCFGEv:
  435|     42|{
  436|       |    // reachableBlocks is the set of blockss reached via control flow, or which are
  437|       |    // unreachable continue targert or unreachable merge.
  438|     42|    std::unordered_set<const Block*> reachableBlocks;
  439|     42|    std::unordered_map<Block*, Block*> headerForUnreachableContinue;
  440|     42|    std::unordered_set<Block*> unreachableMerges;
  441|     42|    std::unordered_set<Id> unreachableDefinitions;
  442|       |    // Collect IDs defined in unreachable blocks. For each function, label the
  443|       |    // reachable blocks first. Then for each unreachable block, collect the
  444|       |    // result IDs of the instructions in it.
  445|    241|    for (auto fi = module.getFunctions().cbegin(); fi != module.getFunctions().cend(); fi++) {
  ------------------
  |  Branch (445:52): [True: 199, False: 42]
  ------------------
  446|    199|        Function* f = *fi;
  447|    199|        Block* entry = f->getEntryBlock();
  448|    199|        inReadableOrder(entry,
  449|    199|            [&reachableBlocks, &unreachableMerges, &headerForUnreachableContinue]
  450|    199|            (Block* b, ReachReason why, Block* header) {
  451|    199|               reachableBlocks.insert(b);
  452|    199|               if (why == ReachDeadContinue) headerForUnreachableContinue[b] = header;
  453|    199|               if (why == ReachDeadMerge) unreachableMerges.insert(b);
  454|    199|            });
  455|    913|        for (auto bi = f->getBlocks().cbegin(); bi != f->getBlocks().cend(); bi++) {
  ------------------
  |  Branch (455:49): [True: 714, False: 199]
  ------------------
  456|    714|            Block* b = *bi;
  457|    714|            if (unreachableMerges.count(b) != 0 || headerForUnreachableContinue.count(b) != 0) {
  ------------------
  |  Branch (457:17): [True: 0, False: 714]
  |  Branch (457:52): [True: 0, False: 714]
  ------------------
  458|      0|                auto ii = b->getInstructions().cbegin();
  459|      0|                ++ii; // Keep potential decorations on the label.
  460|      0|                for (; ii != b->getInstructions().cend(); ++ii)
  ------------------
  |  Branch (460:24): [True: 0, False: 0]
  ------------------
  461|      0|                    unreachableDefinitions.insert(ii->get()->getResultId());
  462|    714|            } else if (reachableBlocks.count(b) == 0) {
  ------------------
  |  Branch (462:24): [True: 150, False: 564]
  ------------------
  463|       |                // The normal case for unreachable code.  All definitions are considered dead.
  464|    540|                for (auto ii = b->getInstructions().cbegin(); ii != b->getInstructions().cend(); ++ii)
  ------------------
  |  Branch (464:63): [True: 390, False: 150]
  ------------------
  465|    390|                    unreachableDefinitions.insert(ii->get()->getResultId());
  466|    150|            }
  467|    714|        }
  468|    199|    }
  469|       |
  470|       |    // Modify unreachable merge blocks and unreachable continue targets.
  471|       |    // Delete their contents.
  472|     42|    for (auto mergeIter = unreachableMerges.begin(); mergeIter != unreachableMerges.end(); ++mergeIter) {
  ------------------
  |  Branch (472:54): [True: 0, False: 42]
  ------------------
  473|      0|        (*mergeIter)->rewriteAsCanonicalUnreachableMerge();
  474|      0|    }
  475|     42|    for (auto continueIter = headerForUnreachableContinue.begin();
  476|     42|         continueIter != headerForUnreachableContinue.end();
  ------------------
  |  Branch (476:10): [True: 0, False: 42]
  ------------------
  477|     42|         ++continueIter) {
  478|      0|        Block* continue_target = continueIter->first;
  479|      0|        Block* header = continueIter->second;
  480|      0|        continue_target->rewriteAsCanonicalUnreachableContinue(header);
  481|      0|    }
  482|       |
  483|       |    // Remove unneeded decorations, for unreachable instructions
  484|  1.71k|    for (auto decorationIter = decorations.begin(); decorationIter != decorations.end();) {
  ------------------
  |  Branch (484:53): [True: 1.67k, False: 42]
  ------------------
  485|  1.67k|        Id decorationId = (*decorationIter)->getIdOperand(0);
  486|  1.67k|        if (unreachableDefinitions.count(decorationId) != 0) {
  ------------------
  |  Branch (486:13): [True: 0, False: 1.67k]
  ------------------
  487|      0|            decorationIter = decorations.erase(decorationIter);
  488|  1.67k|        } else {
  489|  1.67k|            ++decorationIter;
  490|  1.67k|        }
  491|  1.67k|    }
  492|     42|}
_ZN3spv7Builder19postProcessFeaturesEv:
  495|     42|void Builder::postProcessFeatures() {
  496|       |    // Add per-instruction capabilities, extensions, etc.,
  497|       |
  498|       |    // Look for any 8/16 bit type in physical storage buffer class, and set the
  499|       |    // appropriate capability. This happens in createSpvVariable for other storage
  500|       |    // classes, but there isn't always a variable for physical storage buffer.
  501|    756|    for (int t = 0; t < (int)groupedTypes[enumCast(Op::OpTypePointer)].size(); ++t) {
  ------------------
  |  Branch (501:21): [True: 714, False: 42]
  ------------------
  502|    714|        Instruction* type = groupedTypes[enumCast(Op::OpTypePointer)][t];
  503|    714|        if (type->getImmediateOperand(0) == (unsigned)StorageClass::PhysicalStorageBufferEXT) {
  ------------------
  |  Branch (503:13): [True: 0, False: 714]
  ------------------
  504|      0|            if (containsType(type->getIdOperand(1), Op::OpTypeInt, 8)) {
  ------------------
  |  Branch (504:17): [True: 0, False: 0]
  ------------------
  505|      0|                addIncorporatedExtension(spv::E_SPV_KHR_8bit_storage, spv::Spv_1_5);
  506|      0|                addCapability(spv::Capability::StorageBuffer8BitAccess);
  507|      0|            }
  508|      0|            if (containsType(type->getIdOperand(1), Op::OpTypeInt, 16) ||
  ------------------
  |  Branch (508:17): [True: 0, False: 0]
  ------------------
  509|      0|                containsType(type->getIdOperand(1), Op::OpTypeFloat, 16)) {
  ------------------
  |  Branch (509:17): [True: 0, False: 0]
  ------------------
  510|      0|                addIncorporatedExtension(spv::E_SPV_KHR_16bit_storage, spv::Spv_1_3);
  511|      0|                addCapability(spv::Capability::StorageBuffer16BitAccess);
  512|      0|            }
  513|      0|        }
  514|    714|    }
  515|       |
  516|       |    // process all block-contained instructions
  517|    241|    for (auto fi = module.getFunctions().cbegin(); fi != module.getFunctions().cend(); fi++) {
  ------------------
  |  Branch (517:52): [True: 199, False: 42]
  ------------------
  518|    199|        Function* f = *fi;
  519|    913|        for (auto bi = f->getBlocks().cbegin(); bi != f->getBlocks().cend(); bi++) {
  ------------------
  |  Branch (519:49): [True: 714, False: 199]
  ------------------
  520|    714|            Block* b = *bi;
  521|  22.3k|            for (auto ii = b->getInstructions().cbegin(); ii != b->getInstructions().cend(); ii++)
  ------------------
  |  Branch (521:59): [True: 21.6k, False: 714]
  ------------------
  522|  21.6k|                postProcess(*ii->get());
  523|       |
  524|       |            // For all local variables that contain pointers to PhysicalStorageBufferEXT, check whether
  525|       |            // there is an existing restrict/aliased decoration. If we don't find one, add Aliased as the
  526|       |            // default.
  527|  1.29k|            for (auto vi = b->getLocalVariables().cbegin(); vi != b->getLocalVariables().cend(); vi++) {
  ------------------
  |  Branch (527:61): [True: 583, False: 714]
  ------------------
  528|    583|                const Instruction& inst = *vi->get();
  529|    583|                Id resultId = inst.getResultId();
  530|    583|                if (containsPhysicalStorageBufferOrArray(getDerefTypeId(resultId))) {
  ------------------
  |  Branch (530:21): [True: 0, False: 583]
  ------------------
  531|      0|                    bool foundDecoration = false;
  532|      0|                    const auto function = [&](const std::unique_ptr<Instruction>& decoration) {
  533|      0|                        if (decoration.get()->getIdOperand(0) == resultId &&
  534|      0|                            decoration.get()->getOpCode() == Op::OpDecorate &&
  535|      0|                            (decoration.get()->getImmediateOperand(1) == spv::Decoration::AliasedPointerEXT ||
  536|      0|                             decoration.get()->getImmediateOperand(1) == spv::Decoration::RestrictPointerEXT)) {
  537|      0|                            foundDecoration = true;
  538|      0|                        }
  539|      0|                    };
  540|      0|                    std::for_each(decorations.begin(), decorations.end(), function);
  541|      0|                    if (!foundDecoration) {
  ------------------
  |  Branch (541:25): [True: 0, False: 0]
  ------------------
  542|      0|                        addDecoration(resultId, spv::Decoration::AliasedPointerEXT);
  543|      0|                    }
  544|      0|                }
  545|    583|            }
  546|    714|        }
  547|    199|    }
  548|       |
  549|       |    // If any Vulkan memory model-specific functionality is used, update the
  550|       |    // OpMemoryModel to match.
  551|     42|    if (capabilities.find(spv::Capability::VulkanMemoryModelKHR) != capabilities.end()) {
  ------------------
  |  Branch (551:9): [True: 0, False: 42]
  ------------------
  552|      0|        memoryModel = spv::MemoryModel::VulkanKHR;
  553|      0|        addIncorporatedExtension(spv::E_SPV_KHR_vulkan_memory_model, spv::Spv_1_5);
  554|      0|    }
  555|       |
  556|       |    // Add Aliased decoration if there's more than one Workgroup Block variable.
  557|       |    // Compile-only mode emits no entry point, so there is no interface to scan.
  558|     42|    if (capabilities.find(spv::Capability::WorkgroupMemoryExplicitLayoutKHR) != capabilities.end() &&
  ------------------
  |  Branch (558:9): [True: 0, False: 42]
  |  Branch (558:9): [True: 0, False: 42]
  ------------------
  559|      0|        !entryPoints.empty()) {
  ------------------
  |  Branch (559:9): [True: 0, False: 0]
  ------------------
  560|      0|        auto &ep = entryPoints[0];
  561|       |
  562|      0|        std::vector<Id> workgroup_variables;
  563|      0|        for (int i = 0; i < (int)ep->getNumOperands(); i++) {
  ------------------
  |  Branch (563:25): [True: 0, False: 0]
  ------------------
  564|      0|            if (!ep->isIdOperand(i))
  ------------------
  |  Branch (564:17): [True: 0, False: 0]
  ------------------
  565|      0|                continue;
  566|       |
  567|      0|            const Id id = ep->getIdOperand(i);
  568|      0|            const Instruction *instr = module.getInstruction(id);
  569|      0|            if (instr->getOpCode() != spv::Op::OpVariable)
  ------------------
  |  Branch (569:17): [True: 0, False: 0]
  ------------------
  570|      0|                continue;
  571|       |
  572|      0|            if (instr->getImmediateOperand(0) == spv::StorageClass::Workgroup)
  ------------------
  |  Branch (572:17): [True: 0, False: 0]
  ------------------
  573|      0|                workgroup_variables.push_back(id);
  574|      0|        }
  575|       |
  576|      0|        if (workgroup_variables.size() > 1) {
  ------------------
  |  Branch (576:13): [True: 0, False: 0]
  ------------------
  577|      0|            for (size_t i = 0; i < workgroup_variables.size(); i++)
  ------------------
  |  Branch (577:32): [True: 0, False: 0]
  ------------------
  578|      0|                addDecoration(workgroup_variables[i], spv::Decoration::Aliased);
  579|      0|        }
  580|      0|    }
  581|     42|}
_ZN3spv7Builder19postProcessSamplersEv:
  589|     42|{
  590|       |    // first, find all OpSampledImage instructions and store them in a map.
  591|     42|    std::map<Id, Instruction*> sampledImageInstrs;
  592|    199|    for (auto f: module.getFunctions()) {
  ------------------
  |  Branch (592:16): [True: 199, False: 42]
  ------------------
  593|    714|	for (auto b: f->getBlocks()) {
  ------------------
  |  Branch (593:13): [True: 714, False: 199]
  ------------------
  594|  21.6k|	    for (auto &i: b->getInstructions()) {
  ------------------
  |  Branch (594:18): [True: 21.6k, False: 714]
  ------------------
  595|  21.6k|        if (i->getOpCode() == spv::Op::OpSampledImage) {
  ------------------
  |  Branch (595:13): [True: 39, False: 21.5k]
  ------------------
  596|     39|		    sampledImageInstrs[i->getResultId()] = i.get();
  597|     39|		}
  598|  21.6k|	    }
  599|    714|	}
  600|    199|    }
  601|       |    // next find all uses of the given ids and rewrite them if needed.
  602|    199|    for (auto f: module.getFunctions()) {
  ------------------
  |  Branch (602:16): [True: 199, False: 42]
  ------------------
  603|    714|	for (auto b: f->getBlocks()) {
  ------------------
  |  Branch (603:13): [True: 714, False: 199]
  ------------------
  604|    714|            auto &instrs = b->getInstructions();
  605|  22.3k|            for (size_t idx = 0; idx < instrs.size(); idx++) {
  ------------------
  |  Branch (605:34): [True: 21.6k, False: 714]
  ------------------
  606|  21.6k|                Instruction *i = instrs[idx].get();
  607|  59.4k|                for (int opnum = 0; opnum < i->getNumOperands(); opnum++) {
  ------------------
  |  Branch (607:37): [True: 37.7k, False: 21.6k]
  ------------------
  608|       |                    // Is this operand of the current instruction the result of an OpSampledImage?
  609|  37.7k|                    if (i->isIdOperand(opnum) &&
  ------------------
  |  Branch (609:25): [True: 34.6k, False: 3.14k]
  |  Branch (609:25): [True: 39, False: 37.7k]
  ------------------
  610|  34.6k|                        sampledImageInstrs.count(i->getIdOperand(opnum)))
  ------------------
  |  Branch (610:25): [True: 39, False: 34.6k]
  ------------------
  611|     39|                    {
  612|     39|                        Instruction *opSampImg = sampledImageInstrs[i->getIdOperand(opnum)];
  613|     39|                        if (i->getBlock() != opSampImg->getBlock()) {
  ------------------
  |  Branch (613:29): [True: 0, False: 39]
  ------------------
  614|      0|                            Instruction *newInstr = new Instruction(getUniqueId(),
  615|      0|                                                                    opSampImg->getTypeId(),
  616|      0|                                                                    spv::Op::OpSampledImage);
  617|      0|                            newInstr->addIdOperand(opSampImg->getIdOperand(0));
  618|      0|                            newInstr->addIdOperand(opSampImg->getIdOperand(1));
  619|      0|                            newInstr->setBlock(b);
  620|       |
  621|       |                            // rewrite the user of the OpSampledImage to use the new instruction.
  622|      0|                            i->setIdOperand(opnum, newInstr->getResultId());
  623|       |                            // insert the new OpSampledImage right before the current instruction.
  624|      0|                            instrs.insert(instrs.begin() + idx,
  625|      0|                                    std::unique_ptr<Instruction>(newInstr));
  626|      0|                            idx++;
  627|      0|                        }
  628|     39|                    }
  629|  37.7k|                }
  630|  21.6k|            }
  631|    714|	}
  632|    199|    }
  633|     42|}
_ZN3spv7Builder11postProcessEb:
  637|     42|{
  638|       |    // postProcessCFG needs an entrypoint to determine what is reachable, but if we are not creating an "executable" shader, we don't have an entrypoint
  639|     42|    if (!compileOnly)
  ------------------
  |  Branch (639:9): [True: 42, False: 0]
  ------------------
  640|     42|        postProcessCFG();
  641|       |
  642|     42|    postProcessFeatures();
  643|     42|    postProcessSamplers();
  644|     42|}
SpvPostProcess.cpp:_ZZN3spv7Builder14postProcessCFGEvENK3$_0clEPNS_5BlockENS_11ReachReasonES3_:
  450|    564|            (Block* b, ReachReason why, Block* header) {
  451|    564|               reachableBlocks.insert(b);
  452|    564|               if (why == ReachDeadContinue) headerForUnreachableContinue[b] = header;
  ------------------
  |  Branch (452:20): [True: 0, False: 564]
  ------------------
  453|    564|               if (why == ReachDeadMerge) unreachableMerges.insert(b);
  ------------------
  |  Branch (453:20): [True: 0, False: 564]
  ------------------
  454|    564|            });

_ZN8spvutils11BitwiseCastIjfEET_T0_:
   25|    198|Dest BitwiseCast(Src source) {
   26|    198|  Dest dest;
   27|    198|  static_assert(sizeof(source) == sizeof(dest),
   28|    198|                "BitwiseCast: Source and destination must have the same size");
   29|    198|  std::memcpy(static_cast<void*>(&dest), &source, sizeof(dest));
   30|    198|  return dest;
   31|    198|}
_ZN8spvutils11BitwiseCastIjNS_10FloatProxyIfEEEET_T0_:
   25|    612|Dest BitwiseCast(Src source) {
   26|    612|  Dest dest;
   27|    612|  static_assert(sizeof(source) == sizeof(dest),
   28|    612|                "BitwiseCast: Source and destination must have the same size");
   29|    612|  std::memcpy(static_cast<void*>(&dest), &source, sizeof(dest));
   30|    612|  return dest;
   31|    612|}
_ZN8spvutils11BitwiseCastINS_10FloatProxyINS_7Float16EEEtEET_T0_:
   25|     30|Dest BitwiseCast(Src source) {
   26|     30|  Dest dest;
   27|     30|  static_assert(sizeof(source) == sizeof(dest),
   28|     30|                "BitwiseCast: Source and destination must have the same size");
   29|     30|  std::memcpy(static_cast<void*>(&dest), &source, sizeof(dest));
   30|     30|  return dest;
   31|     30|}
_ZN8spvutils11BitwiseCastINS_7Float16EtEET_T0_:
   25|    198|Dest BitwiseCast(Src source) {
   26|    198|  Dest dest;
   27|    198|  static_assert(sizeof(source) == sizeof(dest),
   28|    198|                "BitwiseCast: Source and destination must have the same size");
   29|    198|  std::memcpy(static_cast<void*>(&dest), &source, sizeof(dest));
   30|    198|  return dest;
   31|    198|}

_ZNK8spvutils7Float169get_valueEv:
   42|    198|  uint16_t get_value() const { return val; }
_ZN8spvutils10FloatProxyIfEC2Ef:
  293|    198|  FloatProxy(T val) { data_ = BitwiseCast<uint_type>(val); }
_ZN8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEEC2ES2_:
  502|    198|  explicit HexFloat(T f) : value_(f) {}
_ZN8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE6castToINS0_INS1_INS_7Float16EEENS3_IS8_EEEEEEvRT_NS_15round_directionE:
  817|    198|  void castTo(other_T& other, round_direction round_dir) {
  818|    198|    other = other_T(static_cast<typename other_T::native_type>(0));
  819|    198|    bool negate = isNegative();
  820|    198|    if (getUnsignedBits() == 0) {
  ------------------
  |  Branch (820:9): [True: 168, False: 30]
  ------------------
  821|    168|      if (negate) {
  ------------------
  |  Branch (821:11): [True: 0, False: 168]
  ------------------
  822|      0|        other.set_value(-other.value());
  823|      0|      }
  824|    168|      return;
  825|    168|    }
  826|     30|    uint_type significand = getSignificandBits();
  827|     30|    bool carried = false;
  828|     30|    typename other_T::uint_type rounded_significand =
  829|     30|        getRoundedNormalizedSignificand<other_T>(round_dir, &carried);
  830|       |
  831|     30|    int_type exponent = getUnbiasedExponent();
  832|     30|    if (exponent == min_exponent) {
  ------------------
  |  Branch (832:9): [True: 0, False: 30]
  ------------------
  833|       |      // If we are denormal, normalize the exponent, so that we can encode
  834|       |      // easily.
  835|      0|      exponent = static_cast<int_type>(exponent + 1);
  836|      0|      for (uint_type check_bit = first_exponent_bit >> 1; check_bit != 0;
  ------------------
  |  Branch (836:59): [True: 0, False: 0]
  ------------------
  837|      0|           check_bit = static_cast<uint_type>(check_bit >> 1)) {
  838|      0|        exponent = static_cast<int_type>(exponent - 1);
  839|      0|        if (check_bit & significand) break;
  ------------------
  |  Branch (839:13): [True: 0, False: 0]
  ------------------
  840|      0|      }
  841|      0|    }
  842|       |
  843|     30|    bool is_nan =
  844|     30|        (getBits() & exponent_mask) == exponent_mask && significand != 0;
  ------------------
  |  Branch (844:9): [True: 0, False: 30]
  |  Branch (844:57): [True: 0, False: 0]
  ------------------
  845|     30|    bool is_inf =
  846|     30|        !is_nan &&
  ------------------
  |  Branch (846:9): [True: 30, False: 0]
  ------------------
  847|     30|        (((exponent + carried) > static_cast<int_type>(other_T::exponent_bias) && other_T::Traits_T::supportsInfinity()) ||
  ------------------
  |  Branch (847:11): [True: 0, False: 30]
  |  Branch (847:83): [True: 0, False: 0]
  ------------------
  848|     30|         ((exponent + carried) > static_cast<int_type>(other_T::exponent_bias + 1) && !other_T::Traits_T::supportsInfinity()) ||
  ------------------
  |  Branch (848:11): [True: 0, False: 30]
  |  Branch (848:87): [True: 0, False: 0]
  ------------------
  849|     30|         (significand == 0 && (getBits() & exponent_mask) == exponent_mask));
  ------------------
  |  Branch (849:11): [True: 6, False: 24]
  |  Branch (849:31): [True: 0, False: 6]
  ------------------
  850|       |
  851|       |    // If we are Nan or Inf we should pass that through.
  852|     30|    if (is_inf) {
  ------------------
  |  Branch (852:9): [True: 0, False: 30]
  ------------------
  853|      0|      if (other_T::Traits_T::supportsInfinity()) {
  ------------------
  |  Branch (853:11): [True: 0, False: 0]
  ------------------
  854|       |        // encode as +/-inf
  855|      0|        other.set_value(BitwiseCast<typename other_T::underlying_type>(
  856|      0|            static_cast<typename other_T::uint_type>(
  857|      0|                (negate ? other_T::sign_mask : 0) | other_T::exponent_mask)));
  ------------------
  |  Branch (857:18): [True: 0, False: 0]
  ------------------
  858|      0|      } else {
  859|       |        // encode as +/-nan
  860|      0|        other.set_value(BitwiseCast<typename other_T::underlying_type>(
  861|      0|             static_cast<typename other_T::uint_type>(other_T::used_bits_mask & (negate ? ~0 : ~other_T::sign_mask))));
  ------------------
  |  Branch (861:82): [True: 0, False: 0]
  ------------------
  862|      0|      }
  863|      0|      return;
  864|      0|    }
  865|     30|    if (is_nan) {
  ------------------
  |  Branch (865:9): [True: 0, False: 30]
  ------------------
  866|      0|      typename other_T::uint_type shifted_significand;
  867|      0|      shifted_significand = static_cast<typename other_T::uint_type>(
  868|      0|          negatable_left_shift(
  869|      0|              static_cast<int_type>(other_T::num_fraction_bits) -
  870|      0|              static_cast<int_type>(num_fraction_bits), significand));
  871|       |
  872|       |      // We are some sort of Nan. We try to keep the bit-pattern of the Nan
  873|       |      // as close as possible. If we had to shift off bits so we are 0, then we
  874|       |      // just set the last bit.
  875|      0|      other.set_value(BitwiseCast<typename other_T::underlying_type>(
  876|      0|          static_cast<typename other_T::uint_type>(
  877|      0|              (negate ? other_T::sign_mask : 0) | other_T::exponent_mask |
  ------------------
  |  Branch (877:16): [True: 0, False: 0]
  ------------------
  878|      0|              (shifted_significand == 0 ? 0x1 : shifted_significand))));
  ------------------
  |  Branch (878:16): [True: 0, False: 0]
  ------------------
  879|      0|      return;
  880|      0|    }
  881|       |
  882|     30|    bool round_underflow_up =
  883|     30|        isNegative() ? round_dir == kRoundToNegativeInfinity
  ------------------
  |  Branch (883:9): [True: 0, False: 30]
  ------------------
  884|     30|                     : round_dir == kRoundToPositiveInfinity;
  885|     30|    typedef typename other_T::int_type other_int_type;
  886|       |    // setFromSignUnbiasedExponentAndNormalizedSignificand will
  887|       |    // zero out any underflowing value (but retain the sign).
  888|     30|    other.setFromSignUnbiasedExponentAndNormalizedSignificand(
  889|     30|        negate, static_cast<other_int_type>(exponent), rounded_significand,
  890|     30|        round_underflow_up);
  891|     30|    return;
  892|     30|  }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE10isNegativeEv:
  628|    228|  bool isNegative() const { return (getBits() & sign_mask) != 0; }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE15getUnsignedBitsEv:
  575|    198|  uint_type getUnsignedBits() const {
  576|    198|    return static_cast<uint_type>(spvutils::BitwiseCast<uint_type>(value_) &
  577|    198|                                  ~sign_mask);
  578|    198|  }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE18getSignificandBitsEv:
  594|     60|  const uint_type getSignificandBits() const {
  595|     60|    return getBits() & fraction_encode_mask;
  596|     60|  }
_ZN8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE31getRoundedNormalizedSignificandINS0_INS1_INS_7Float16EEENS3_IS8_EEEEEENT_9uint_typeENS_15round_directionEPb:
  730|     30|      round_direction dir, bool* carry_bit) {
  731|     30|    typedef typename other_T::uint_type other_uint_type;
  732|     30|    static const int_type num_throwaway_bits =
  733|     30|        static_cast<int_type>(num_fraction_bits) -
  734|     30|        static_cast<int_type>(other_T::num_fraction_bits);
  735|       |
  736|     30|    static const uint_type last_significant_bit =
  737|     30|        (num_throwaway_bits < 0)
  ------------------
  |  Branch (737:9): [Folded, False: 30]
  ------------------
  738|     30|            ? 0
  739|     30|            : negatable_left_shift(num_throwaway_bits, 1u);
  740|     30|    static const uint_type first_rounded_bit =
  741|     30|        (num_throwaway_bits < 1)
  ------------------
  |  Branch (741:9): [Folded, False: 30]
  ------------------
  742|     30|            ? 0
  743|     30|            : negatable_left_shift(num_throwaway_bits - 1, 1u);
  744|       |
  745|     30|    static const uint_type throwaway_mask_bits =
  746|     30|        num_throwaway_bits > 0 ? num_throwaway_bits : 0;
  ------------------
  |  Branch (746:9): [True: 0, Folded]
  ------------------
  747|     30|    static const uint_type throwaway_mask =
  748|     30|        spvutils::SetBits<uint_type, 0, throwaway_mask_bits>::get;
  749|       |
  750|     30|    *carry_bit = false;
  751|     30|    other_uint_type out_val = 0;
  752|     30|    uint_type significand = getNormalizedSignificand();
  753|       |    // If we are up-casting, then we just have to shift to the right location.
  754|     30|    if (num_throwaway_bits <= 0) {
  ------------------
  |  Branch (754:9): [Folded, False: 30]
  ------------------
  755|      0|      out_val = static_cast<other_uint_type>(significand);
  756|      0|      uint_type shift_amount = static_cast<uint_type>(-num_throwaway_bits);
  757|      0|      out_val = static_cast<other_uint_type>(out_val << shift_amount);
  758|      0|      return out_val;
  759|      0|    }
  760|       |
  761|       |    // If every non-representable bit is 0, then we don't have any casting to
  762|       |    // do.
  763|     30|    if ((significand & throwaway_mask) == 0) {
  ------------------
  |  Branch (763:9): [True: 30, False: 0]
  ------------------
  764|     30|      return static_cast<other_uint_type>(
  765|     30|          negatable_right_shift(num_throwaway_bits, significand));
  766|     30|    }
  767|       |
  768|      0|    bool round_away_from_zero = false;
  769|       |    // We actually have to narrow the significand here, so we have to follow the
  770|       |    // rounding rules.
  771|      0|    switch (dir) {
  ------------------
  |  Branch (771:13): [True: 0, False: 0]
  ------------------
  772|      0|      case kRoundToZero:
  ------------------
  |  Branch (772:7): [True: 0, False: 0]
  ------------------
  773|      0|        break;
  774|      0|      case kRoundToPositiveInfinity:
  ------------------
  |  Branch (774:7): [True: 0, False: 0]
  ------------------
  775|      0|        round_away_from_zero = !isNegative();
  776|      0|        break;
  777|      0|      case kRoundToNegativeInfinity:
  ------------------
  |  Branch (777:7): [True: 0, False: 0]
  ------------------
  778|      0|        round_away_from_zero = isNegative();
  779|      0|        break;
  780|      0|      case kRoundToNearestEven:
  ------------------
  |  Branch (780:7): [True: 0, False: 0]
  ------------------
  781|       |        // Have to round down, round bit is 0
  782|      0|        if ((first_rounded_bit & significand) == 0) {
  ------------------
  |  Branch (782:13): [True: 0, False: 0]
  ------------------
  783|      0|          break;
  784|      0|        }
  785|      0|        if (((significand & throwaway_mask) & ~first_rounded_bit) != 0) {
  ------------------
  |  Branch (785:13): [True: 0, False: 0]
  ------------------
  786|       |          // If any subsequent bit of the rounded portion is non-0 then we round
  787|       |          // up.
  788|      0|          round_away_from_zero = true;
  789|      0|          break;
  790|      0|        }
  791|       |        // We are exactly half-way between 2 numbers, pick even.
  792|      0|        if ((significand & last_significant_bit) != 0) {
  ------------------
  |  Branch (792:13): [True: 0, False: 0]
  ------------------
  793|       |          // 1 for our last bit, round up.
  794|      0|          round_away_from_zero = true;
  795|      0|          break;
  796|      0|        }
  797|      0|        break;
  798|      0|    }
  799|       |
  800|      0|    if (round_away_from_zero) {
  ------------------
  |  Branch (800:9): [True: 0, False: 0]
  ------------------
  801|      0|      return static_cast<other_uint_type>(
  802|      0|          negatable_right_shift(num_throwaway_bits, incrementSignificand(
  803|      0|              significand, last_significant_bit, carry_bit)));
  804|      0|    } else {
  805|      0|      return static_cast<other_uint_type>(
  806|      0|          negatable_right_shift(num_throwaway_bits, significand));
  807|      0|    }
  808|      0|  }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE24getNormalizedSignificandEv:
  617|     30|  const uint_type getNormalizedSignificand() const {
  618|     30|    int_type unbiased_exponent = getUnbiasedNormalizedExponent();
  619|     30|    uint_type significand = getSignificandBits();
  620|     30|    for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
  ------------------
  |  Branch (620:42): [True: 0, False: 30]
  ------------------
  621|      0|      significand = static_cast<uint_type>(significand << 1);
  622|      0|    }
  623|     30|    significand &= fraction_encode_mask;
  624|     30|    return significand;
  625|     30|  }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE29getUnbiasedNormalizedExponentEv:
  600|     30|  const int_type getUnbiasedNormalizedExponent() const {
  601|     30|    if ((getBits() & ~sign_mask) == 0) {  // special case if everything is 0
  ------------------
  |  Branch (601:9): [True: 0, False: 30]
  ------------------
  602|      0|      return 0;
  603|      0|    }
  604|     30|    int_type exp = getUnbiasedExponent();
  605|     30|    if (exp == min_exponent) {  // We are in denorm land.
  ------------------
  |  Branch (605:9): [True: 0, False: 30]
  ------------------
  606|      0|      uint_type significand_bits = getSignificandBits();
  607|      0|      while ((significand_bits & (first_exponent_bit >> 1)) == 0) {
  ------------------
  |  Branch (607:14): [True: 0, False: 0]
  ------------------
  608|      0|        significand_bits = static_cast<uint_type>(significand_bits << 1);
  609|      0|        exp = static_cast<int_type>(exp - 1);
  610|      0|      }
  611|      0|      significand_bits &= fraction_encode_mask;
  612|      0|    }
  613|     30|    return exp;
  614|     30|  }
_ZN8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE21negatable_right_shiftIiEEjT_j:
  717|     30|  {
  718|     30|    if(N >= 0)
  ------------------
  |  Branch (718:8): [True: 30, False: 0]
  ------------------
  719|     30|      return val >> N;
  720|       |
  721|      0|    return val << -N;
  722|     30|  }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE19getUnbiasedExponentEv:
  589|     60|  const int_type getUnbiasedExponent() const {
  590|     60|    return static_cast<int_type>(getExponentBits() - exponent_bias);
  591|     60|  }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE15getExponentBitsEv:
  582|     60|  const uint_type getExponentBits() const {
  583|     60|    return static_cast<uint_type>((getBits() & exponent_mask) >>
  584|     60|                                  num_fraction_bits);
  585|     60|  }
_ZNK8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE7getBitsEv:
  572|    414|  uint_type getBits() const { return spvutils::BitwiseCast<uint_type>(value_); }
_ZN8spvutils8HexFloatINS_10FloatProxyIfEENS_14HexFloatTraitsIS2_EEE20negatable_left_shiftIiEEjT_j:
  708|      2|  {
  709|      2|    if(N >= 0)
  ------------------
  |  Branch (709:8): [True: 2, False: 0]
  ------------------
  710|      2|      return val << N;
  711|       |
  712|      0|    return val >> -N;
  713|      2|  }
_ZN8spvutils8HexFloatINS_10FloatProxyINS_7Float16EEENS_14HexFloatTraitsIS3_EEE51setFromSignUnbiasedExponentAndNormalizedSignificandEbstb:
  644|     30|      bool round_denorm_up) {
  645|     30|    bool significand_is_zero = significand == 0;
  646|       |
  647|     30|    if (exponent <= min_exponent) {
  ------------------
  |  Branch (647:9): [True: 0, False: 30]
  ------------------
  648|       |      // If this was denormalized, then we have to shift the bit on, meaning
  649|       |      // the significand is not zero.
  650|      0|      significand_is_zero = false;
  651|      0|      significand |= first_exponent_bit;
  652|      0|      significand = static_cast<uint_type>(significand >> 1);
  653|      0|    }
  654|       |
  655|     30|    while (exponent < min_exponent) {
  ------------------
  |  Branch (655:12): [True: 0, False: 30]
  ------------------
  656|      0|      significand = static_cast<uint_type>(significand >> 1);
  657|      0|      ++exponent;
  658|      0|    }
  659|       |
  660|     30|    if (exponent == min_exponent) {
  ------------------
  |  Branch (660:9): [True: 0, False: 30]
  ------------------
  661|      0|      if (significand == 0 && !significand_is_zero && round_denorm_up) {
  ------------------
  |  Branch (661:11): [True: 0, False: 0]
  |  Branch (661:31): [True: 0, False: 0]
  |  Branch (661:55): [True: 0, False: 0]
  ------------------
  662|      0|        significand = static_cast<uint_type>(0x1);
  663|      0|      }
  664|      0|    }
  665|       |
  666|     30|    uint_type new_value = 0;
  667|     30|    if (negative) {
  ------------------
  |  Branch (667:9): [True: 0, False: 30]
  ------------------
  668|      0|      new_value = static_cast<uint_type>(new_value | sign_mask);
  669|      0|    }
  670|     30|    exponent = static_cast<int_type>(exponent + exponent_bias);
  671|     30|    assert(exponent >= 0);
  672|       |
  673|       |    // put it all together
  674|     30|    exponent = static_cast<uint_type>((exponent << exponent_left_shift) &
  675|     30|                                      exponent_mask);
  676|     30|    significand = static_cast<uint_type>(significand & fraction_encode_mask);
  677|     30|    new_value = static_cast<uint_type>(new_value | (exponent | significand));
  678|     30|    value_ = BitwiseCast<T>(new_value);
  679|     30|  }
_ZN8spvutils10FloatProxyINS_7Float16EEC2Ev:
  289|     30|  FloatProxy() {}
_ZNK8spvutils8HexFloatINS_10FloatProxyINS_7Float16EEENS_14HexFloatTraitsIS3_EEE5valueEv:
  504|    198|  T value() const { return value_; }
_ZNK8spvutils10FloatProxyINS_7Float16EE10getAsFloatEv:
  303|    198|  T getAsFloat() const { return BitwiseCast<T>(data_); }
_ZN8spvutils7Float16C2Ev:
   33|    198|  Float16() {}
_ZN8spvutils8HexFloatINS_10FloatProxyINS_7Float16EEENS_14HexFloatTraitsIS3_EEEC2ES3_:
  502|    396|  explicit HexFloat(T f) : value_(f) {}
_ZN8spvutils10FloatProxyINS_7Float16EEC2Et:
  297|    396|  FloatProxy(uint_type val) { data_ = val; }

_ZN3spvanENS_17ImageOperandsMaskES0_:
 5704|    516|constexpr ImageOperandsMask operator&(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) & unsigned(b)); }
_ZN3spvcoENS_17ImageOperandsMaskE:
 5706|    129|constexpr ImageOperandsMask operator~(ImageOperandsMask a) { return ImageOperandsMask(~unsigned(a)); }
_ZN3spvanENS_19MemorySemanticsMaskES0_:
 5724|    234|constexpr MemorySemanticsMask operator&(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) & unsigned(b)); }
_ZN3spvorENS_16MemoryAccessMaskES0_:
 5727|  19.2k|constexpr MemoryAccessMask operator|(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) | unsigned(b)); }
_ZN3spvanENS_16MemoryAccessMaskES0_:
 5728|  25.3k|constexpr MemoryAccessMask operator&(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) & unsigned(b)); }
_ZN3spvcoENS_16MemoryAccessMaskE:
 5730|  25.3k|constexpr MemoryAccessMask operator~(MemoryAccessMask a) { return MemoryAccessMask(~unsigned(a)); }

_ZN3spv11InstructionC2EjjNS_2OpE:
  101|  22.6k|    Instruction(Id resultId, Id typeId, Op opCode) : resultId(resultId), typeId(typeId), opCode(opCode), block(nullptr) { }
_ZN3spv11InstructionD2Ev:
  103|  30.2k|    virtual ~Instruction() {}
_ZN3spv11Instruction16addStringOperandEPKc:
  198|  2.22k|    {
  199|  2.22k|        unsigned int word = 0;
  200|  2.22k|        unsigned int shiftAmount = 0;
  201|  2.22k|        unsigned char c;
  202|       |
  203|  23.8k|        do {
  204|  23.8k|            c = *(str++);
  205|  23.8k|            word |= ((unsigned int)c) << shiftAmount;
  206|  23.8k|            shiftAmount += 8;
  207|  23.8k|            if (shiftAmount == 32) {
  ------------------
  |  Branch (207:17): [True: 5.17k, False: 18.6k]
  ------------------
  208|  5.17k|                addImmediateOperand(word);
  209|  5.17k|                word = 0;
  210|  5.17k|                shiftAmount = 0;
  211|  5.17k|            }
  212|  23.8k|        } while (c != 0);
  ------------------
  |  Branch (212:18): [True: 21.6k, False: 2.22k]
  ------------------
  213|       |
  214|       |        // deal with partial last word
  215|  2.22k|        if (shiftAmount > 0) {
  ------------------
  |  Branch (215:13): [True: 1.74k, False: 477]
  ------------------
  216|  1.74k|            addImmediateOperand(word);
  217|  1.74k|        }
  218|  2.22k|    }
_ZN3spv11Instruction19addImmediateOperandEj:
  122|  18.0k|    void addImmediateOperand(unsigned int immediate) {
  123|  18.0k|        operands.push_back(immediate);
  124|  18.0k|        idOperand.push_back(false);
  125|  18.0k|    }
_ZN3spv6Module14mapInstructionEPNS_11InstructionE:
  573|  21.5k|    {
  574|  21.5k|        spv::Id resultId = instruction->getResultId();
  575|       |        // map the instruction's result id
  576|  21.5k|        if (resultId >= idToInstruction.size())
  ------------------
  |  Branch (576:13): [True: 1.36k, False: 20.1k]
  ------------------
  577|  1.36k|            idToInstruction.resize(resultId + 16);
  578|  21.5k|        idToInstruction[resultId] = instruction;
  579|  21.5k|    }
_ZNK3spv11Instruction11getResultIdEv:
  228|   147k|    Id getResultId() const { return resultId; }
_ZN3spv11Instruction12addIdOperandEj:
  108|  41.4k|    void addIdOperand(Id id) {
  109|       |        // ids can't be 0
  110|       |        assert(id);
  111|  41.4k|        operands.push_back(id);
  112|  41.4k|        idOperand.push_back(true);
  113|  41.4k|    }
_ZNK3spv6Module9getTypeIdEj:
  583|   208k|    spv::Id getTypeId(Id resultId) const {
  584|   208k|        return idToInstruction[resultId] == nullptr ? NoType : idToInstruction[resultId]->getTypeId();
  ------------------
  |  Branch (584:16): [True: 0, False: 208k]
  ------------------
  585|   208k|    }
_ZNK3spv11Instruction9getTypeIdEv:
  229|   250k|    Id getTypeId() const { return typeId; }
_ZNK3spv6Module14getInstructionEj:
  581|   405k|    Instruction* getInstruction(Id id) const { return idToInstruction[id]; }
_ZNK3spv11Instruction19getImmediateOperandEi:
  235|   206k|    unsigned int getImmediateOperand(int op) const {
  236|       |        assert(!idOperand[op]);
  237|   206k|        return operands[op];
  238|   206k|    }
_ZNK3spv11Instruction12getIdOperandEi:
  231|   403k|    Id getIdOperand(int op) const {
  232|       |        assert(idOperand[op]);
  233|   403k|        return operands[op];
  234|   403k|    }
_ZNK3spv11Instruction9getOpCodeEv:
  222|   468k|    Op getOpCode() const { return opCode; }
_ZN3spv11IdImmediateC2Ebj:
   88|  1.30k|    IdImmediate(bool i, unsigned w) : isId(i), word(w) {}
_ZNK3spv6Module15getStorageClassEj:
  587|  56.4k|    {
  588|       |        assert(idToInstruction[typeId]->getOpCode() == spv::Op::OpTypePointer ||
  589|  56.4k|               idToInstruction[typeId]->getOpCode() == spv::Op::OpTypeUntypedPointerKHR);
  590|  56.4k|        return (StorageClass)idToInstruction[typeId]->getImmediateOperand(0);
  591|  56.4k|    }
_ZN3spv5Block5getIdEv:
  299|    750|    Id getId() { return instructions.front()->getResultId(); }
_ZN3spv11IdImmediateC2EbNS_17ImageOperandsMaskE:
   91|      4|    IdImmediate(bool i, spv::ImageOperandsMask w) : isId(i), word((unsigned)w) {}
_ZN3spv8Function18setFunctionControlENS_19FunctionControlMaskE:
  485|    199|    {
  486|    199|        functionInstruction.setImmediateOperand(0, static_cast<unsigned>(functionControl));
  487|    199|    }
_ZN3spv11Instruction19setImmediateOperandEjj:
  187|    199|    void setImmediateOperand(unsigned idx, unsigned int immediate) {
  188|       |        assert(!idOperand[idx]);
  189|    199|        operands[idx] = immediate;
  190|    199|    }
_ZNK3spv8Function10getParamIdEi:
  464|     28|    Id getParamId(int p) const { return parameterInstructions[p]->getResultId(); }
_ZNK3spv8Function12getLastBlockEv:
  478|     84|    Block* getLastBlock() const { return blocks.back(); }
_ZNK3spv8Function13getEntryBlockEv:
  477|    356|    Block* getEntryBlock() const { return blocks.front(); }
_ZN3spv11InstructionC2ENS_2OpE:
  102|  7.57k|    explicit Instruction(Op opCode) : resultId(NoResult), typeId(NoType), opCode(opCode), block(nullptr) { }
_ZN3spv11Instruction15reserveOperandsEm:
  104|  17.6k|    void reserveOperands(size_t count) {
  105|  17.6k|        operands.reserve(count);
  106|  17.6k|        idOperand.reserve(count);
  107|  17.6k|    }
_ZNK3spv8Function15hasImplicitThisEv:
  506|     54|    bool hasImplicitThis() const { return implicitThis; }
_ZNK3spv8Function17getParamPrecisionEj:
  514|     18|    {
  515|     18|        return reducedPrecisionParams.find(param) != reducedPrecisionParams.end() ?
  ------------------
  |  Branch (515:16): [True: 0, False: 18]
  ------------------
  516|     18|            Decoration::RelaxedPrecision : NoPrecision;
  517|     18|    }
_ZNK3spv8Function12getParamTypeEi:
  465|     18|    Id getParamType(int p) const { return parameterInstructions[p]->getTypeId(); }
_ZNK3spv8Function5getIdEv:
  463|    759|    Id getId() const { return functionInstruction.getResultId(); }
_ZNK3spv8Function13getReturnTypeEv:
  481|    680|    Id getReturnType() const { return functionInstruction.getTypeId(); }
_ZNK3spv8Function18getReturnPrecisionEv:
  494|    102|        { return reducedPrecisionReturn ? Decoration::RelaxedPrecision : NoPrecision; }
  ------------------
  |  Branch (494:18): [True: 0, False: 102]
  ------------------
_ZN3spv11Instruction19addImmediateOperandENS_12StorageClassE:
  127|  1.62k|    void addImmediateOperand(spv::StorageClass immediate) {
  128|  1.62k|        addImmediateOperand((unsigned)immediate);
  129|  1.62k|    }
_ZN3spv11Instruction19addImmediateOperandENS_13ExecutionModeE:
  131|     42|    void addImmediateOperand(spv::ExecutionMode immediate) {
  132|     42|        addImmediateOperand((unsigned)immediate);
  133|     42|    }
_ZN3spv11Instruction19addImmediateOperandENS_14ExecutionModelE:
  135|     42|    void addImmediateOperand(spv::ExecutionModel immediate) {
  136|     42|        addImmediateOperand((unsigned)immediate);
  137|     42|    }
_ZN3spv11Instruction19addImmediateOperandENS_10DecorationE:
  139|  1.70k|    void addImmediateOperand(spv::Decoration immediate) {
  140|  1.70k|        addImmediateOperand((unsigned)immediate);
  141|  1.70k|    }
_ZN3spv11Instruction19addImmediateOperandENS_10CapabilityE:
  151|    232|    void addImmediateOperand(spv::Capability immediate) {
  152|    232|        addImmediateOperand((unsigned)immediate);
  153|    232|    }
_ZN3spv11Instruction19addImmediateOperandENS_15AddressingModelE:
  155|     42|    void addImmediateOperand(spv::AddressingModel immediate) {
  156|     42|        addImmediateOperand((unsigned)immediate);
  157|     42|    }
_ZN3spv11Instruction19addImmediateOperandENS_11MemoryModelE:
  159|     42|    void addImmediateOperand(spv::MemoryModel immediate) {
  160|     42|        addImmediateOperand((unsigned)immediate);
  161|     42|    }
_ZN3spv11Instruction19addImmediateOperandENS_14SourceLanguageE:
  167|     42|    void addImmediateOperand(spv::SourceLanguage immediate) {
  168|     42|        addImmediateOperand((unsigned)immediate);
  169|     42|    }
_ZN3spv11Instruction19addImmediateOperandENS_3DimE:
  171|    142|    void addImmediateOperand(spv::Dim immediate) {
  172|    142|        addImmediateOperand((unsigned)immediate);
  173|    142|    }
_ZN3spv11Instruction19addImmediateOperandENS_19FunctionControlMaskE:
  175|    199|    void addImmediateOperand(spv::FunctionControlMask immediate){
  176|    199|        addImmediateOperand((unsigned)immediate);
  177|    199|    }
_ZN3spv11Instruction19addImmediateOperandENS_20SelectionControlMaskE:
  179|    144|    void addImmediateOperand(spv::SelectionControlMask immediate) {
  180|    144|        addImmediateOperand((unsigned)immediate);
  181|    144|    }
_ZN3spv11Instruction19addImmediateOperandENS_15LoopControlMaskE:
  183|     11|    void addImmediateOperand(spv::LoopControlMask immediate) {
  184|     11|        addImmediateOperand((unsigned)immediate);
  185|     11|    }
_ZNK3spv11Instruction11isIdOperandEi:
  219|  79.6k|    bool isIdOperand(int op) const { return idOperand[op]; }
_ZN3spv11Instruction8setBlockEPNS_5BlockE:
  220|  21.6k|    void setBlock(Block* b) { block = b; }
_ZNK3spv11Instruction8getBlockEv:
  221|    410|    Block* getBlock() const { return block; }
_ZNK3spv11Instruction14getNumOperandsEv:
  224|   130k|    {
  225|       |        assert(operands.size() == idOperand.size());
  226|   130k|        return (int)operands.size();
  227|   130k|    }
_ZNK3spv11Instruction4dumpERNSt3__16vectorIjNS1_9allocatorIjEEEE:
  242|  29.8k|    {
  243|       |        // Compute the wordCount
  244|  29.8k|        unsigned int wordCount = 1;
  245|  29.8k|        if (typeId)
  ------------------
  |  Branch (245:13): [True: 18.8k, False: 10.9k]
  ------------------
  246|  18.8k|            ++wordCount;
  247|  29.8k|        if (resultId)
  ------------------
  |  Branch (247:13): [True: 21.2k, False: 8.53k]
  ------------------
  248|  21.2k|            ++wordCount;
  249|  29.8k|        wordCount += (unsigned int)operands.size();
  250|       |
  251|       |        // Write out the beginning of the instruction
  252|  29.8k|        out.push_back(((wordCount) << WordCountShift) | (unsigned)opCode);
  253|  29.8k|        if (typeId)
  ------------------
  |  Branch (253:13): [True: 18.8k, False: 10.9k]
  ------------------
  254|  18.8k|            out.push_back(typeId);
  255|  29.8k|        if (resultId)
  ------------------
  |  Branch (255:13): [True: 21.2k, False: 8.53k]
  ------------------
  256|  21.2k|            out.push_back(resultId);
  257|       |
  258|       |        // Write out the operands
  259|  89.1k|        for (int op = 0; op < (int)operands.size(); ++op)
  ------------------
  |  Branch (259:26): [True: 59.3k, False: 29.8k]
  ------------------
  260|  59.3k|            out.push_back(operands[op]);
  261|  29.8k|    }
_ZN3spv5BlockD2Ev:
  296|    714|    {
  297|    714|    }
_ZNK3spv5Block9getParentEv:
  301|  1.65k|    Function& getParent() const { return parent; }
_ZN3spv5Block14addPredecessorEPS0_:
  325|    576|    void addPredecessor(Block* pred) { predecessors.push_back(pred); pred->successors.push_back(this);}
_ZN3spv5Block16addLocalVariableENSt3__110unique_ptrINS_11InstructionENS1_14default_deleteIS3_EEEE:
  326|    583|    void addLocalVariable(std::unique_ptr<Instruction> inst) { localVariables.push_back(std::move(inst)); }
_ZNK3spv5Block13getSuccessorsEv:
  328|  1.12k|    const std::vector<Block*>& getSuccessors() const { return successors; }
_ZN3spv5Block15getInstructionsEv:
  329|  25.1k|    std::vector<std::unique_ptr<Instruction> >& getInstructions() {
  330|  25.1k|        return instructions;
  331|  25.1k|    }
_ZNK3spv5Block17getLocalVariablesEv:
  332|  2.01k|    const std::vector<std::unique_ptr<Instruction> >& getLocalVariables() const { return localVariables; }
_ZN3spv5Block14setUnreachableEv:
  333|    150|    void setUnreachable() { unreachable = true; }
_ZNK3spv5Block19getMergeInstructionEv:
  336|  1.12k|    const Instruction* getMergeInstruction() const {
  337|  1.12k|        if (instructions.size() < 2) return nullptr;
  ------------------
  |  Branch (337:13): [True: 0, False: 1.12k]
  ------------------
  338|  1.12k|        const Instruction* nextToLast = (instructions.cend() - 2)->get();
  339|  1.12k|        switch (nextToLast->getOpCode()) {
  340|    288|            case Op::OpSelectionMerge:
  ------------------
  |  Branch (340:13): [True: 288, False: 840]
  ------------------
  341|    310|            case Op::OpLoopMerge:
  ------------------
  |  Branch (341:13): [True: 22, False: 1.10k]
  ------------------
  342|    310|                return nextToLast;
  343|    818|            default:
  ------------------
  |  Branch (343:13): [True: 818, False: 310]
  ------------------
  344|    818|                return nullptr;
  345|  1.12k|        }
  346|      0|        return nullptr;
  347|  1.12k|    }
_ZNK3spv5Block12isTerminatedEv:
  379|    233|    {
  380|    233|        switch (instructions.back()->getOpCode()) {
  381|      0|        case Op::OpBranch:
  ------------------
  |  Branch (381:9): [True: 0, False: 233]
  ------------------
  382|      0|        case Op::OpBranchConditional:
  ------------------
  |  Branch (382:9): [True: 0, False: 233]
  ------------------
  383|      0|        case Op::OpSwitch:
  ------------------
  |  Branch (383:9): [True: 0, False: 233]
  ------------------
  384|      0|        case Op::OpKill:
  ------------------
  |  Branch (384:9): [True: 0, False: 233]
  ------------------
  385|      0|        case Op::OpTerminateInvocation:
  ------------------
  |  Branch (385:9): [True: 0, False: 233]
  ------------------
  386|      0|        case Op::OpReturn:
  ------------------
  |  Branch (386:9): [True: 0, False: 233]
  ------------------
  387|      0|        case Op::OpReturnValue:
  ------------------
  |  Branch (387:9): [True: 0, False: 233]
  ------------------
  388|      0|        case Op::OpUnreachable:
  ------------------
  |  Branch (388:9): [True: 0, False: 233]
  ------------------
  389|      0|        case Op::OpAbortKHR:
  ------------------
  |  Branch (389:9): [True: 0, False: 233]
  ------------------
  390|      0|            return true;
  391|    233|        default:
  ------------------
  |  Branch (391:9): [True: 233, False: 0]
  ------------------
  392|    233|            return false;
  393|    233|        }
  394|    233|    }
_ZNK3spv5Block4dumpERNSt3__16vectorIjNS1_9allocatorIjEEEE:
  397|    564|    {
  398|    564|        instructions[0]->dump(out);
  399|  1.14k|        for (int i = 0; i < (int)localVariables.size(); ++i)
  ------------------
  |  Branch (399:25): [True: 583, False: 564]
  ------------------
  400|    583|            localVariables[i]->dump(out);
  401|  21.2k|        for (int i = 1; i < (int)instructions.size(); ++i)
  ------------------
  |  Branch (401:25): [True: 20.6k, False: 564]
  ------------------
  402|  20.6k|            instructions[i]->dump(out);
  403|    564|    }
_ZN3spv8FunctionD2Ev:
  456|    199|    {
  457|    213|        for (int i = 0; i < (int)parameterInstructions.size(); ++i)
  ------------------
  |  Branch (457:25): [True: 14, False: 199]
  ------------------
  458|     14|            delete parameterInstructions[i];
  459|       |
  460|    913|        for (int i = 0; i < (int)blocks.size(); ++i)
  ------------------
  |  Branch (460:25): [True: 714, False: 199]
  ------------------
  461|    714|            delete blocks[i];
  462|    199|    }
_ZN3spv8Function8addBlockEPNS_5BlockE:
  467|    714|    void addBlock(Block* block) { blocks.push_back(block); }
_ZNK3spv8Function9getParentEv:
  476|  17.7k|    Module& getParent() const { return parent; }
_ZNK3spv8Function9getBlocksEv:
  479|  2.62k|    const std::vector<Block*>& getBlocks() const { return blocks; }
_ZN3spv8Function18setReturnPrecisionENS_10DecorationE:
  489|    199|    {
  490|    199|        if (precision == Decoration::RelaxedPrecision)
  ------------------
  |  Branch (490:13): [True: 0, False: 199]
  ------------------
  491|      0|            reducedPrecisionReturn = true;
  492|    199|    }
_ZNK3spv8Function4dumpERNSt3__16vectorIjNS1_9allocatorIjEEEE:
  520|    199|    {
  521|       |        // OpLine
  522|    199|        if (lineInstruction != nullptr) {
  ------------------
  |  Branch (522:13): [True: 0, False: 199]
  ------------------
  523|      0|            lineInstruction->dump(out);
  524|      0|        }
  525|       |
  526|       |        // OpFunction
  527|    199|        functionInstruction.dump(out);
  528|       |
  529|       |        // OpFunctionParameter
  530|    213|        for (int p = 0; p < (int)parameterInstructions.size(); ++p)
  ------------------
  |  Branch (530:25): [True: 14, False: 199]
  ------------------
  531|     14|            parameterInstructions[p]->dump(out);
  532|       |
  533|       |        // Blocks
  534|    199|        inReadableOrder(blocks[0], [&out](const Block* b, ReachReason, Block*) { b->dump(out); });
  535|    199|        Instruction end(0, 0, Op::OpFunctionEnd);
  536|    199|        end.dump(out);
  537|    199|    }
_ZNK3spv8Function11getLinkTypeEv:
  539|    199|    LinkageType getLinkType() const { return linkType; }
_ZN3spv6ModuleC2Ev:
  564|     42|    Module() {}
_ZN3spv6ModuleD2Ev:
  566|     42|    {
  567|       |        // TODO delete things
  568|     42|    }
_ZN3spv6Module11addFunctionEPNS_8FunctionE:
  570|    199|    void addFunction(Function *fun) { functions.push_back(fun); }
_ZNK3spv6Module12getFunctionsEv:
  582|    650|    const std::vector<Function*>& getFunctions() const { return functions; }
_ZNK3spv6Module4dumpERNSt3__16vectorIjNS1_9allocatorIjEEEE:
  594|     42|    {
  595|    241|        for (int f = 0; f < (int)functions.size(); ++f)
  ------------------
  |  Branch (595:25): [True: 199, False: 42]
  ------------------
  596|    199|            functions[f]->dump(out);
  597|     42|    }
_ZN3spv8Function16addLocalVariableENSt3__110unique_ptrINS_11InstructionENS1_14default_deleteIS3_EEEE:
  645|    583|{
  646|    583|    Instruction* raw_instruction = inst.get();
  647|    583|    blocks[0]->addLocalVariable(std::move(inst));
  648|    583|    parent.mapInstruction(raw_instruction);
  649|    583|}
_ZN3spv5Block14addInstructionENSt3__110unique_ptrINS_11InstructionENS1_14default_deleteIS3_EEEE:
  659|  20.9k|{
  660|  20.9k|    Instruction* raw_instruction = inst.get();
  661|  20.9k|    instructions.push_back(std::move(inst));
  662|  20.9k|    raw_instruction->setBlock(this);
  663|  20.9k|    if (raw_instruction->getResultId())
  ------------------
  |  Branch (663:9): [True: 16.6k, False: 4.25k]
  ------------------
  664|  16.6k|        parent.getParent().mapInstruction(raw_instruction);
  665|  20.9k|}
_ZN3spv8FunctionC2EjjjjNS_11LinkageTypeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERNS_6ModuleE:
  617|    199|    : parent(parent), lineInstruction(nullptr),
  618|    199|      functionInstruction(id, resultType, Op::OpFunction), implicitThis(false),
  619|    199|      reducedPrecisionReturn(false),
  620|    199|      linkType(linkage)
  621|    199|{
  622|       |    // OpFunction
  623|    199|    functionInstruction.reserveOperands(2);
  624|    199|    functionInstruction.addImmediateOperand(FunctionControlMask::MaskNone);
  625|    199|    functionInstruction.addIdOperand(functionType);
  626|    199|    parent.mapInstruction(&functionInstruction);
  627|    199|    parent.addFunction(this);
  628|       |
  629|       |    // OpFunctionParameter
  630|    199|    Instruction* typeInst = parent.getInstruction(functionType);
  631|    199|    int numParams = typeInst->getNumOperands() - 1;
  632|    213|    for (int p = 0; p < numParams; ++p) {
  ------------------
  |  Branch (632:21): [True: 14, False: 199]
  ------------------
  633|     14|        Instruction* param = new Instruction(firstParamId + p, typeInst->getIdOperand(p + 1), Op::OpFunctionParameter);
  634|     14|        parent.mapInstruction(param);
  635|     14|        parameterInstructions.push_back(param);
  636|     14|    }
  637|       |
  638|       |    // If importing/exporting, save the function name (without the mangled parameters) for the linkage decoration
  639|    199|    if (linkType != LinkageType::Max) {
  ------------------
  |  Branch (639:9): [True: 0, False: 199]
  ------------------
  640|      0|        exportName = name.substr(0, name.find_first_of('('));
  641|      0|    }
  642|    199|}
_ZN3spv5BlockC2EjRNS_8FunctionE:
  651|    714|__inline Block::Block(Id id, Function& parent) : parent(parent), unreachable(false)
  652|    714|{
  653|    714|    instructions.push_back(std::unique_ptr<Instruction>(new Instruction(id, NoType, Op::OpLabel)));
  654|    714|    instructions.back()->setBlock(this);
  655|    714|    parent.getParent().mapInstruction(instructions.back().get());
  656|    714|}
_ZZNK3spv8Function4dumpERNSt3__16vectorIjNS1_9allocatorIjEEEEENKUlPKNS_5BlockENS_11ReachReasonEPS7_E_clES9_SA_SB_:
  534|    564|        inReadableOrder(blocks[0], [&out](const Block* b, ReachReason, Block*) { b->dump(out); });

_ZN3spv6anySetENS_17ImageOperandsMaskES0_:
   65|    387|{
   66|    387|    return (value & mask) != spv::ImageOperandsMask::MaskNone;
   67|    387|}
_ZN3spv6anySetENS_19MemorySemanticsMaskES0_:
   70|    234|{
   71|    234|    return (value & mask) != spv::MemorySemanticsMask::MaskNone;
   72|    234|}
_ZN3spv8enumCastINS_2OpEjEET0_T_:
   83|   208k|{
   84|   208k|    return static_cast<To>(value);
   85|   208k|}
_ZN3spveqEjNS_12StorageClassE:
   56|  1.86k|__inline bool operator==(uint32_t word, spv::StorageClass storage) { return word == (unsigned)storage; }
_ZN3spvneEjNS_12StorageClassE:
   57|  1.86k|__inline bool operator!=(uint32_t word, spv::StorageClass storage) { return !(word == storage); }

hlslScanContext.cpp:_ZNK12_GLOBAL__N_18str_hashclEPKc:
   68|    788|    {
   69|       |        // djb2
   70|    788|        unsigned long hash = 5381;
   71|    788|        int c;
   72|       |
   73|  7.94k|        while ((c = *str++) != 0)
  ------------------
  |  Branch (73:16): [True: 7.16k, False: 788]
  ------------------
   74|  7.16k|            hash = ((hash << 5) + hash) + c;
   75|       |
   76|    788|        return hash;
   77|    788|    }
hlslScanContext.cpp:_ZNK12_GLOBAL__N_16str_eqclEPKcS2_:
   60|     32|    {
   61|     32|        return strcmp(lhs, rhs) == 0;
   62|     32|    }

_ZNK7glslang20TIntermConstantUnion4foldENS_9TOperatorEPKNS_12TIntermTypedE:
   86|  1.67k|{
   87|       |    // For most cases, the return type matches the argument type, so set that
   88|       |    // up and just code to exceptions below.
   89|  1.67k|    TType returnType;
   90|  1.67k|    returnType.shallowCopy(getType());
   91|       |
   92|       |    //
   93|       |    // A pair of nodes is to be folded together
   94|       |    //
   95|       |
   96|  1.67k|    const TIntermConstantUnion *rightNode = rightConstantNode->getAsConstantUnion();
   97|  1.67k|    TConstUnionArray leftUnionArray = getConstArray();
   98|  1.67k|    TConstUnionArray rightUnionArray = rightNode->getConstArray();
   99|       |
  100|       |    // Figure out the size of the result
  101|  1.67k|    int newComps;
  102|  1.67k|    int constComps;
  103|  1.67k|    switch(op) {
  104|     21|    case EOpMatrixTimesMatrix:
  ------------------
  |  Branch (104:5): [True: 21, False: 1.65k]
  ------------------
  105|     21|        newComps = rightNode->getMatrixCols() * getMatrixRows();
  106|     21|        break;
  107|      0|    case EOpMatrixTimesVector:
  ------------------
  |  Branch (107:5): [True: 0, False: 1.67k]
  ------------------
  108|      0|        newComps = getMatrixRows();
  109|      0|        break;
  110|      0|    case EOpVectorTimesMatrix:
  ------------------
  |  Branch (110:5): [True: 0, False: 1.67k]
  ------------------
  111|      0|        newComps = rightNode->getMatrixCols();
  112|      0|        break;
  113|  1.65k|    default:
  ------------------
  |  Branch (113:5): [True: 1.65k, False: 21]
  ------------------
  114|  1.65k|        newComps = getType().computeNumComponents();
  115|  1.65k|        constComps = rightConstantNode->getType().computeNumComponents();
  116|  1.65k|        if (constComps == 1 && newComps > 1) {
  ------------------
  |  Branch (116:13): [True: 1.47k, False: 179]
  |  Branch (116:32): [True: 64, False: 1.40k]
  ------------------
  117|       |            // for a case like vec4 f = vec4(2,3,4,5) + 1.2;
  118|     64|            TConstUnionArray smearedArray(newComps, rightNode->getConstArray()[0]);
  119|     64|            rightUnionArray = smearedArray;
  120|  1.58k|        } else if (constComps > 1 && newComps == 1) {
  ------------------
  |  Branch (120:20): [True: 179, False: 1.40k]
  |  Branch (120:38): [True: 40, False: 139]
  ------------------
  121|       |            // for a case like vec4 f = 1.2 + vec4(2,3,4,5);
  122|     40|            newComps = constComps;
  123|     40|            rightUnionArray = rightNode->getConstArray();
  124|     40|            TConstUnionArray smearedArray(newComps, getConstArray()[0]);
  125|     40|            leftUnionArray = smearedArray;
  126|     40|            returnType.shallowCopy(rightNode->getType());
  127|     40|        }
  128|  1.65k|        break;
  129|  1.67k|    }
  130|       |
  131|  1.67k|    TConstUnionArray newConstArray(newComps);
  132|  1.67k|    TType constBool(EbtBool, EvqConst);
  133|       |
  134|  1.67k|    switch(op) {
  135|    900|    case EOpAdd:
  ------------------
  |  Branch (135:5): [True: 900, False: 772]
  ------------------
  136|  1.96k|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (136:25): [True: 1.06k, False: 900]
  ------------------
  137|  1.06k|            newConstArray[i] = leftUnionArray[i] + rightUnionArray[i];
  138|    900|        break;
  139|     85|    case EOpSub:
  ------------------
  |  Branch (139:5): [True: 85, False: 1.58k]
  ------------------
  140|    177|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (140:25): [True: 92, False: 85]
  ------------------
  141|     92|            newConstArray[i] = leftUnionArray[i] - rightUnionArray[i];
  142|     85|        break;
  143|       |
  144|     70|    case EOpMul:
  ------------------
  |  Branch (144:5): [True: 70, False: 1.60k]
  ------------------
  145|     70|    case EOpVectorTimesScalar:
  ------------------
  |  Branch (145:5): [True: 0, False: 1.67k]
  ------------------
  146|     70|    case EOpMatrixTimesScalar:
  ------------------
  |  Branch (146:5): [True: 0, False: 1.67k]
  ------------------
  147|    141|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (147:25): [True: 71, False: 70]
  ------------------
  148|     71|            newConstArray[i] = leftUnionArray[i] * rightUnionArray[i];
  149|     70|        break;
  150|     21|    case EOpMatrixTimesMatrix:
  ------------------
  |  Branch (150:5): [True: 21, False: 1.65k]
  ------------------
  151|     63|        for (int row = 0; row < getMatrixRows(); row++) {
  ------------------
  |  Branch (151:27): [True: 42, False: 21]
  ------------------
  152|    168|            for (int column = 0; column < rightNode->getMatrixCols(); column++) {
  ------------------
  |  Branch (152:34): [True: 126, False: 42]
  ------------------
  153|    126|                double sum = 0.0f;
  154|    378|                for (int i = 0; i < rightNode->getMatrixRows(); i++)
  ------------------
  |  Branch (154:33): [True: 252, False: 126]
  ------------------
  155|    252|                    sum += leftUnionArray[i * getMatrixRows() + row].getDConst() * rightUnionArray[column * rightNode->getMatrixRows() + i].getDConst();
  156|    126|                newConstArray[column * getMatrixRows() + row].setDConst(sum);
  157|    126|            }
  158|     42|        }
  159|     21|        returnType.shallowCopy(TType(getType().getBasicType(), EvqConst, 0, rightNode->getMatrixCols(), getMatrixRows()));
  160|     21|        break;
  161|    333|    case EOpDiv:
  ------------------
  |  Branch (161:5): [True: 333, False: 1.33k]
  ------------------
  162|    670|        for (int i = 0; i < newComps; i++) {
  ------------------
  |  Branch (162:25): [True: 337, False: 333]
  ------------------
  163|    337|            switch (getType().getBasicType()) {
  164|      0|            case EbtDouble:
  ------------------
  |  Branch (164:13): [True: 0, False: 337]
  ------------------
  165|    234|            case EbtFloat:
  ------------------
  |  Branch (165:13): [True: 234, False: 103]
  ------------------
  166|    234|            case EbtFloat16:
  ------------------
  |  Branch (166:13): [True: 0, False: 337]
  ------------------
  167|    234|            case EbtBFloat16:
  ------------------
  |  Branch (167:13): [True: 0, False: 337]
  ------------------
  168|    234|            case EbtFloatE5M2:
  ------------------
  |  Branch (168:13): [True: 0, False: 337]
  ------------------
  169|    234|            case EbtFloatE4M3:
  ------------------
  |  Branch (169:13): [True: 0, False: 337]
  ------------------
  170|    234|            case EbtFloatE2M1:
  ------------------
  |  Branch (170:13): [True: 0, False: 337]
  ------------------
  171|    234|            case EbtFloatE3M2:
  ------------------
  |  Branch (171:13): [True: 0, False: 337]
  ------------------
  172|    234|            case EbtFloatE2M3:
  ------------------
  |  Branch (172:13): [True: 0, False: 337]
  ------------------
  173|    234|            case EbtFloatUE8M0:
  ------------------
  |  Branch (173:13): [True: 0, False: 337]
  ------------------
  174|    234|            case EbtFloatMXINT8:
  ------------------
  |  Branch (174:13): [True: 0, False: 337]
  ------------------
  175|    234|                if (rightUnionArray[i].getDConst() != 0.0)
  ------------------
  |  Branch (175:21): [True: 42, False: 192]
  ------------------
  176|     42|                    newConstArray[i].setDConst(leftUnionArray[i].getDConst() / rightUnionArray[i].getDConst());
  177|    192|                else if (leftUnionArray[i].getDConst() > 0.0)
  ------------------
  |  Branch (177:26): [True: 64, False: 128]
  ------------------
  178|     64|                    newConstArray[i].setDConst((double)INFINITY);
  179|    128|                else if (leftUnionArray[i].getDConst() < 0.0)
  ------------------
  |  Branch (179:26): [True: 64, False: 64]
  ------------------
  180|     64|                    newConstArray[i].setDConst(-(double)INFINITY);
  181|     64|                else
  182|     64|                    newConstArray[i].setDConst((double)NAN);
  183|    234|                break;
  184|       |
  185|    101|            case EbtInt:
  ------------------
  |  Branch (185:13): [True: 101, False: 236]
  ------------------
  186|    101|                if (rightUnionArray[i] == 0)
  ------------------
  |  Branch (186:21): [True: 32, False: 69]
  ------------------
  187|     32|                    newConstArray[i].setIConst(0x7FFFFFFF);
  188|     69|                else if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == (int)-0x80000000ll)
  ------------------
  |  Branch (188:26): [True: 69, False: 0]
  |  Branch (188:66): [True: 23, False: 46]
  ------------------
  189|     23|                    newConstArray[i].setIConst((int)-0x80000000ll);
  190|     46|                else
  191|     46|                    newConstArray[i].setIConst(leftUnionArray[i].getIConst() / rightUnionArray[i].getIConst());
  192|    101|                break;
  193|       |
  194|      2|            case EbtUint:
  ------------------
  |  Branch (194:13): [True: 2, False: 335]
  ------------------
  195|      2|                if (rightUnionArray[i] == 0u)
  ------------------
  |  Branch (195:21): [True: 0, False: 2]
  ------------------
  196|      0|                    newConstArray[i].setUConst(0xFFFFFFFFu);
  197|      2|                else
  198|      2|                    newConstArray[i].setUConst(leftUnionArray[i].getUConst() / rightUnionArray[i].getUConst());
  199|      2|                break;
  200|       |
  201|      0|            case EbtInt8:
  ------------------
  |  Branch (201:13): [True: 0, False: 337]
  ------------------
  202|      0|                if (rightUnionArray[i] == (signed char)0)
  ------------------
  |  Branch (202:21): [True: 0, False: 0]
  ------------------
  203|      0|                    newConstArray[i].setI8Const((signed char)0x7F);
  204|      0|                else if (rightUnionArray[i].getI8Const() == (signed char)-1 && leftUnionArray[i].getI8Const() == (signed char)-0x80)
  ------------------
  |  Branch (204:26): [True: 0, False: 0]
  |  Branch (204:80): [True: 0, False: 0]
  ------------------
  205|      0|                    newConstArray[i].setI8Const((signed char)-0x80);
  206|      0|                else
  207|      0|                    newConstArray[i].setI8Const(leftUnionArray[i].getI8Const() / rightUnionArray[i].getI8Const());
  208|      0|                break;
  209|       |
  210|      0|            case EbtUint8:
  ------------------
  |  Branch (210:13): [True: 0, False: 337]
  ------------------
  211|      0|                if (rightUnionArray[i] == (unsigned char)0u)
  ------------------
  |  Branch (211:21): [True: 0, False: 0]
  ------------------
  212|      0|                    newConstArray[i].setU8Const((unsigned char)0xFFu);
  213|      0|                else
  214|      0|                    newConstArray[i].setU8Const(leftUnionArray[i].getU8Const() / rightUnionArray[i].getU8Const());
  215|      0|                break;
  216|       |
  217|      0|           case EbtInt16:
  ------------------
  |  Branch (217:12): [True: 0, False: 337]
  ------------------
  218|      0|                if (rightUnionArray[i] == (signed short)0)
  ------------------
  |  Branch (218:21): [True: 0, False: 0]
  ------------------
  219|      0|                    newConstArray[i].setI16Const((signed short)0x7FFF);
  220|      0|                else if (rightUnionArray[i].getI16Const() == (signed short)-1 && leftUnionArray[i].getI16Const() == (signed short)-0x8000)
  ------------------
  |  Branch (220:26): [True: 0, False: 0]
  |  Branch (220:82): [True: 0, False: 0]
  ------------------
  221|      0|                    newConstArray[i].setI16Const((signed short)-0x8000);
  222|      0|                else
  223|      0|                    newConstArray[i].setI16Const(leftUnionArray[i].getI16Const() / rightUnionArray[i].getI16Const());
  224|      0|                break;
  225|       |
  226|      0|            case EbtUint16:
  ------------------
  |  Branch (226:13): [True: 0, False: 337]
  ------------------
  227|      0|                if (rightUnionArray[i] == (unsigned short)0u)
  ------------------
  |  Branch (227:21): [True: 0, False: 0]
  ------------------
  228|      0|                    newConstArray[i].setU16Const((unsigned short)0xFFFFu);
  229|      0|                else
  230|      0|                    newConstArray[i].setU16Const(leftUnionArray[i].getU16Const() / rightUnionArray[i].getU16Const());
  231|      0|                break;
  232|       |
  233|      0|            case EbtInt64:
  ------------------
  |  Branch (233:13): [True: 0, False: 337]
  ------------------
  234|      0|                if (rightUnionArray[i] == 0ll)
  ------------------
  |  Branch (234:21): [True: 0, False: 0]
  ------------------
  235|      0|                    newConstArray[i].setI64Const(LLONG_MAX);
  236|      0|                else if (rightUnionArray[i].getI64Const() == -1 && leftUnionArray[i].getI64Const() == LLONG_MIN)
  ------------------
  |  Branch (236:26): [True: 0, False: 0]
  |  Branch (236:68): [True: 0, False: 0]
  ------------------
  237|      0|                    newConstArray[i].setI64Const(LLONG_MIN);
  238|      0|                else
  239|      0|                    newConstArray[i].setI64Const(leftUnionArray[i].getI64Const() / rightUnionArray[i].getI64Const());
  240|      0|                break;
  241|       |
  242|      0|            case EbtUint64:
  ------------------
  |  Branch (242:13): [True: 0, False: 337]
  ------------------
  243|      0|                if (rightUnionArray[i] == 0ull)
  ------------------
  |  Branch (243:21): [True: 0, False: 0]
  ------------------
  244|      0|                    newConstArray[i].setU64Const(0xFFFFFFFFFFFFFFFFull);
  245|      0|                else
  246|      0|                    newConstArray[i].setU64Const(leftUnionArray[i].getU64Const() / rightUnionArray[i].getU64Const());
  247|      0|                break;
  248|      0|            default:
  ------------------
  |  Branch (248:13): [True: 0, False: 337]
  ------------------
  249|      0|                return nullptr;
  250|    337|            }
  251|    337|        }
  252|    333|        break;
  253|       |
  254|    333|    case EOpMatrixTimesVector:
  ------------------
  |  Branch (254:5): [True: 0, False: 1.67k]
  ------------------
  255|      0|        for (int i = 0; i < getMatrixRows(); i++) {
  ------------------
  |  Branch (255:25): [True: 0, False: 0]
  ------------------
  256|      0|            double sum = 0.0f;
  257|      0|            for (int j = 0; j < rightNode->getVectorSize(); j++) {
  ------------------
  |  Branch (257:29): [True: 0, False: 0]
  ------------------
  258|      0|                sum += leftUnionArray[j*getMatrixRows() + i].getDConst() * rightUnionArray[j].getDConst();
  259|      0|            }
  260|      0|            newConstArray[i].setDConst(sum);
  261|      0|        }
  262|       |
  263|      0|        returnType.shallowCopy(TType(getBasicType(), EvqConst, getMatrixRows()));
  264|      0|        break;
  265|       |
  266|      0|    case EOpVectorTimesMatrix:
  ------------------
  |  Branch (266:5): [True: 0, False: 1.67k]
  ------------------
  267|      0|        for (int i = 0; i < rightNode->getMatrixCols(); i++) {
  ------------------
  |  Branch (267:25): [True: 0, False: 0]
  ------------------
  268|      0|            double sum = 0.0f;
  269|      0|            for (int j = 0; j < getVectorSize(); j++)
  ------------------
  |  Branch (269:29): [True: 0, False: 0]
  ------------------
  270|      0|                sum += leftUnionArray[j].getDConst() * rightUnionArray[i*rightNode->getMatrixRows() + j].getDConst();
  271|      0|            newConstArray[i].setDConst(sum);
  272|      0|        }
  273|       |
  274|      0|        returnType.shallowCopy(TType(getBasicType(), EvqConst, rightNode->getMatrixCols()));
  275|      0|        break;
  276|       |
  277|    126|    case EOpMod:
  ------------------
  |  Branch (277:5): [True: 126, False: 1.54k]
  ------------------
  278|    315|        for (int i = 0; i < newComps; i++) {
  ------------------
  |  Branch (278:25): [True: 189, False: 126]
  ------------------
  279|    189|            if (rightUnionArray[i] == 0)
  ------------------
  |  Branch (279:17): [True: 93, False: 96]
  ------------------
  280|     93|                newConstArray[i] = leftUnionArray[i];
  281|     96|            else {
  282|     96|                switch (getType().getBasicType()) {
  283|      1|                case EbtInt:
  ------------------
  |  Branch (283:17): [True: 1, False: 95]
  ------------------
  284|      1|                    if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == INT_MIN) {
  ------------------
  |  Branch (284:25): [True: 0, False: 1]
  |  Branch (284:65): [True: 0, False: 0]
  ------------------
  285|      0|                        newConstArray[i].setIConst(0);
  286|      0|                        break;
  287|      1|                    } else goto modulo_default;
  288|      0|                case EbtInt64:
  ------------------
  |  Branch (288:17): [True: 0, False: 96]
  ------------------
  289|      0|                    if (rightUnionArray[i].getI64Const() == -1 && leftUnionArray[i].getI64Const() == LLONG_MIN) {
  ------------------
  |  Branch (289:25): [True: 0, False: 0]
  |  Branch (289:67): [True: 0, False: 0]
  ------------------
  290|      0|                        newConstArray[i].setI64Const(0);
  291|      0|                        break;
  292|      0|                    } else goto modulo_default;
  293|      0|                case EbtInt16:
  ------------------
  |  Branch (293:17): [True: 0, False: 96]
  ------------------
  294|      0|                    if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == SHRT_MIN) {
  ------------------
  |  Branch (294:25): [True: 0, False: 0]
  |  Branch (294:65): [True: 0, False: 0]
  ------------------
  295|      0|                        newConstArray[i].setIConst(0);
  296|      0|                        break;
  297|      0|                    } else goto modulo_default;
  298|     95|                default:
  ------------------
  |  Branch (298:17): [True: 95, False: 1]
  ------------------
  299|     96|                modulo_default:
  300|     96|                    newConstArray[i] = leftUnionArray[i] % rightUnionArray[i];
  301|     96|                }
  302|     96|            }
  303|    189|        }
  304|    126|        break;
  305|       |
  306|    126|    case EOpRightShift:
  ------------------
  |  Branch (306:5): [True: 15, False: 1.65k]
  ------------------
  307|     43|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (307:25): [True: 28, False: 15]
  ------------------
  308|     28|            newConstArray[i] = leftUnionArray[i] >> rightUnionArray[i];
  309|     15|        break;
  310|       |
  311|      2|    case EOpLeftShift:
  ------------------
  |  Branch (311:5): [True: 2, False: 1.67k]
  ------------------
  312|      4|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (312:25): [True: 2, False: 2]
  ------------------
  313|      2|            newConstArray[i] = leftUnionArray[i] << rightUnionArray[i];
  314|      2|        break;
  315|       |
  316|      2|    case EOpAnd:
  ------------------
  |  Branch (316:5): [True: 2, False: 1.67k]
  ------------------
  317|      5|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (317:25): [True: 3, False: 2]
  ------------------
  318|      3|            newConstArray[i] = leftUnionArray[i] & rightUnionArray[i];
  319|      2|        break;
  320|      0|    case EOpInclusiveOr:
  ------------------
  |  Branch (320:5): [True: 0, False: 1.67k]
  ------------------
  321|      0|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (321:25): [True: 0, False: 0]
  ------------------
  322|      0|            newConstArray[i] = leftUnionArray[i] | rightUnionArray[i];
  323|      0|        break;
  324|      0|    case EOpExclusiveOr:
  ------------------
  |  Branch (324:5): [True: 0, False: 1.67k]
  ------------------
  325|      0|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (325:25): [True: 0, False: 0]
  ------------------
  326|      0|            newConstArray[i] = leftUnionArray[i] ^ rightUnionArray[i];
  327|      0|        break;
  328|       |
  329|      0|    case EOpLogicalAnd: // this code is written for possible future use, will not get executed currently
  ------------------
  |  Branch (329:5): [True: 0, False: 1.67k]
  ------------------
  330|      0|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (330:25): [True: 0, False: 0]
  ------------------
  331|      0|            newConstArray[i] = leftUnionArray[i] && rightUnionArray[i];
  332|      0|        break;
  333|       |
  334|      0|    case EOpLogicalOr: // this code is written for possible future use, will not get executed currently
  ------------------
  |  Branch (334:5): [True: 0, False: 1.67k]
  ------------------
  335|      0|        for (int i = 0; i < newComps; i++)
  ------------------
  |  Branch (335:25): [True: 0, False: 0]
  ------------------
  336|      0|            newConstArray[i] = leftUnionArray[i] || rightUnionArray[i];
  337|      0|        break;
  338|       |
  339|      0|    case EOpLogicalXor:
  ------------------
  |  Branch (339:5): [True: 0, False: 1.67k]
  ------------------
  340|      0|        for (int i = 0; i < newComps; i++) {
  ------------------
  |  Branch (340:25): [True: 0, False: 0]
  ------------------
  341|      0|            switch (getType().getBasicType()) {
  342|      0|            case EbtBool: newConstArray[i].setBConst((leftUnionArray[i] == rightUnionArray[i]) ? false : true); break;
  ------------------
  |  Branch (342:13): [True: 0, False: 0]
  |  Branch (342:54): [True: 0, False: 0]
  ------------------
  343|      0|            default: assert(false && "Default missing");
  ------------------
  |  Branch (343:13): [True: 0, False: 0]
  ------------------
  344|      0|            }
  345|      0|        }
  346|      0|        break;
  347|       |
  348|     25|    case EOpLessThan:
  ------------------
  |  Branch (348:5): [True: 25, False: 1.64k]
  ------------------
  349|     25|        newConstArray[0].setBConst(leftUnionArray[0] < rightUnionArray[0]);
  350|     25|        returnType.shallowCopy(constBool);
  351|     25|        break;
  352|     60|    case EOpGreaterThan:
  ------------------
  |  Branch (352:5): [True: 60, False: 1.61k]
  ------------------
  353|     60|        newConstArray[0].setBConst(leftUnionArray[0] > rightUnionArray[0]);
  354|     60|        returnType.shallowCopy(constBool);
  355|     60|        break;
  356|     27|    case EOpLessThanEqual:
  ------------------
  |  Branch (356:5): [True: 27, False: 1.64k]
  ------------------
  357|     27|        newConstArray[0].setBConst(! (leftUnionArray[0] > rightUnionArray[0]));
  358|     27|        returnType.shallowCopy(constBool);
  359|     27|        break;
  360|      1|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (360:5): [True: 1, False: 1.67k]
  ------------------
  361|      1|        newConstArray[0].setBConst(! (leftUnionArray[0] < rightUnionArray[0]));
  362|      1|        returnType.shallowCopy(constBool);
  363|      1|        break;
  364|      4|    case EOpEqual:
  ------------------
  |  Branch (364:5): [True: 4, False: 1.66k]
  ------------------
  365|      4|        newConstArray[0].setBConst(rightNode->getConstArray() == leftUnionArray);
  366|      4|        returnType.shallowCopy(constBool);
  367|      4|        break;
  368|      1|    case EOpNotEqual:
  ------------------
  |  Branch (368:5): [True: 1, False: 1.67k]
  ------------------
  369|      1|        newConstArray[0].setBConst(rightNode->getConstArray() != leftUnionArray);
  370|      1|        returnType.shallowCopy(constBool);
  371|      1|        break;
  372|       |
  373|      0|    default:
  ------------------
  |  Branch (373:5): [True: 0, False: 1.67k]
  ------------------
  374|      0|        return nullptr;
  375|  1.67k|    }
  376|       |
  377|  1.67k|    TIntermConstantUnion *newNode = new TIntermConstantUnion(newConstArray, returnType);
  378|  1.67k|    newNode->setLoc(getLoc());
  379|       |
  380|  1.67k|    return newNode;
  381|  1.67k|}
_ZNK7glslang20TIntermConstantUnion4foldENS_9TOperatorERKNS_5TTypeE:
  389|  30.5k|{
  390|       |    // First, size the result, which is mostly the same as the argument's size,
  391|       |    // but not always, and classify what is componentwise.
  392|       |    // Also, eliminate cases that can't be compile-time constant.
  393|  30.5k|    int resultSize;
  394|  30.5k|    bool componentWise = true;
  395|       |
  396|  30.5k|    int objectSize = getType().computeNumComponents();
  397|  30.5k|    switch (op) {
  398|      0|    case EOpDeterminant:
  ------------------
  |  Branch (398:5): [True: 0, False: 30.5k]
  ------------------
  399|     54|    case EOpAny:
  ------------------
  |  Branch (399:5): [True: 54, False: 30.5k]
  ------------------
  400|    114|    case EOpAll:
  ------------------
  |  Branch (400:5): [True: 60, False: 30.5k]
  ------------------
  401|    152|    case EOpLength:
  ------------------
  |  Branch (401:5): [True: 38, False: 30.5k]
  ------------------
  402|    152|        componentWise = false;
  403|    152|        resultSize = 1;
  404|    152|        break;
  405|       |
  406|      0|    case EOpEmitStreamVertex:
  ------------------
  |  Branch (406:5): [True: 0, False: 30.5k]
  ------------------
  407|      0|    case EOpEndStreamPrimitive:
  ------------------
  |  Branch (407:5): [True: 0, False: 30.5k]
  ------------------
  408|       |        // These don't fold
  409|      0|        return nullptr;
  410|       |
  411|      0|    case EOpPackSnorm2x16:
  ------------------
  |  Branch (411:5): [True: 0, False: 30.5k]
  ------------------
  412|      0|    case EOpPackUnorm2x16:
  ------------------
  |  Branch (412:5): [True: 0, False: 30.5k]
  ------------------
  413|      0|    case EOpPackHalf2x16:
  ------------------
  |  Branch (413:5): [True: 0, False: 30.5k]
  ------------------
  414|      0|        componentWise = false;
  415|      0|        resultSize = 1;
  416|      0|        break;
  417|       |
  418|      0|    case EOpUnpackSnorm2x16:
  ------------------
  |  Branch (418:5): [True: 0, False: 30.5k]
  ------------------
  419|      0|    case EOpUnpackUnorm2x16:
  ------------------
  |  Branch (419:5): [True: 0, False: 30.5k]
  ------------------
  420|      0|    case EOpUnpackHalf2x16:
  ------------------
  |  Branch (420:5): [True: 0, False: 30.5k]
  ------------------
  421|      0|        componentWise = false;
  422|      0|        resultSize = 2;
  423|      0|        break;
  424|       |
  425|      0|    case EOpPack16:
  ------------------
  |  Branch (425:5): [True: 0, False: 30.5k]
  ------------------
  426|      0|    case EOpPack32:
  ------------------
  |  Branch (426:5): [True: 0, False: 30.5k]
  ------------------
  427|      0|    case EOpPack64:
  ------------------
  |  Branch (427:5): [True: 0, False: 30.5k]
  ------------------
  428|      0|    case EOpUnpack32:
  ------------------
  |  Branch (428:5): [True: 0, False: 30.5k]
  ------------------
  429|      0|    case EOpUnpack16:
  ------------------
  |  Branch (429:5): [True: 0, False: 30.5k]
  ------------------
  430|      0|    case EOpUnpack8:
  ------------------
  |  Branch (430:5): [True: 0, False: 30.5k]
  ------------------
  431|     39|    case EOpNormalize:
  ------------------
  |  Branch (431:5): [True: 39, False: 30.5k]
  ------------------
  432|     39|        componentWise = false;
  433|     39|        resultSize = objectSize;
  434|     39|        break;
  435|       |
  436|  30.4k|    default:
  ------------------
  |  Branch (436:5): [True: 30.4k, False: 191]
  ------------------
  437|  30.4k|        resultSize = objectSize;
  438|  30.4k|        break;
  439|  30.5k|    }
  440|       |
  441|       |    // Set up for processing
  442|  30.5k|    TConstUnionArray newConstArray(resultSize);
  443|  30.5k|    const TConstUnionArray& unionArray = getConstArray();
  444|       |
  445|       |    // Process non-component-wise operations
  446|  30.5k|    switch (op) {
  447|     38|    case EOpLength:
  ------------------
  |  Branch (447:5): [True: 38, False: 30.5k]
  ------------------
  448|     77|    case EOpNormalize:
  ------------------
  |  Branch (448:5): [True: 39, False: 30.5k]
  ------------------
  449|     77|    {
  450|     77|        double sum = 0;
  451|    230|        for (int i = 0; i < objectSize; i++)
  ------------------
  |  Branch (451:25): [True: 153, False: 77]
  ------------------
  452|    153|            sum += unionArray[i].getDConst() * unionArray[i].getDConst();
  453|     77|        double length = sqrt(sum);
  454|     77|        if (op == EOpLength)
  ------------------
  |  Branch (454:13): [True: 38, False: 39]
  ------------------
  455|     38|            newConstArray[0].setDConst(length);
  456|     39|        else {
  457|    116|            for (int i = 0; i < objectSize; i++)
  ------------------
  |  Branch (457:29): [True: 77, False: 39]
  ------------------
  458|     77|                newConstArray[i].setDConst(unionArray[i].getDConst() / length);
  459|     39|        }
  460|     77|        break;
  461|     38|    }
  462|       |
  463|     54|    case EOpAny:
  ------------------
  |  Branch (463:5): [True: 54, False: 30.5k]
  ------------------
  464|     54|    {
  465|     54|        bool result = false;
  466|    270|        for (int i = 0; i < objectSize; i++) {
  ------------------
  |  Branch (466:25): [True: 216, False: 54]
  ------------------
  467|    216|            if (unionArray[i].getBConst())
  ------------------
  |  Branch (467:17): [True: 93, False: 123]
  ------------------
  468|     93|                result = true;
  469|    216|        }
  470|     54|        newConstArray[0].setBConst(result);
  471|     54|        break;
  472|     38|    }
  473|     60|    case EOpAll:
  ------------------
  |  Branch (473:5): [True: 60, False: 30.5k]
  ------------------
  474|     60|    {
  475|     60|        bool result = true;
  476|    300|        for (int i = 0; i < objectSize; i++) {
  ------------------
  |  Branch (476:25): [True: 240, False: 60]
  ------------------
  477|    240|            if (! unionArray[i].getBConst())
  ------------------
  |  Branch (477:17): [True: 99, False: 141]
  ------------------
  478|     99|                result = false;
  479|    240|        }
  480|     60|        newConstArray[0].setBConst(result);
  481|     60|        break;
  482|     38|    }
  483|       |
  484|      0|    case EOpPackSnorm2x16:
  ------------------
  |  Branch (484:5): [True: 0, False: 30.5k]
  ------------------
  485|      0|    case EOpPackUnorm2x16:
  ------------------
  |  Branch (485:5): [True: 0, False: 30.5k]
  ------------------
  486|      0|    case EOpPackHalf2x16:
  ------------------
  |  Branch (486:5): [True: 0, False: 30.5k]
  ------------------
  487|      0|    case EOpPack16:
  ------------------
  |  Branch (487:5): [True: 0, False: 30.5k]
  ------------------
  488|      0|    case EOpPack32:
  ------------------
  |  Branch (488:5): [True: 0, False: 30.5k]
  ------------------
  489|      0|    case EOpPack64:
  ------------------
  |  Branch (489:5): [True: 0, False: 30.5k]
  ------------------
  490|      0|    case EOpUnpack32:
  ------------------
  |  Branch (490:5): [True: 0, False: 30.5k]
  ------------------
  491|      0|    case EOpUnpack16:
  ------------------
  |  Branch (491:5): [True: 0, False: 30.5k]
  ------------------
  492|      0|    case EOpUnpack8:
  ------------------
  |  Branch (492:5): [True: 0, False: 30.5k]
  ------------------
  493|       |
  494|      0|    case EOpUnpackSnorm2x16:
  ------------------
  |  Branch (494:5): [True: 0, False: 30.5k]
  ------------------
  495|      0|    case EOpUnpackUnorm2x16:
  ------------------
  |  Branch (495:5): [True: 0, False: 30.5k]
  ------------------
  496|      0|    case EOpUnpackHalf2x16:
  ------------------
  |  Branch (496:5): [True: 0, False: 30.5k]
  ------------------
  497|       |
  498|      0|    case EOpDeterminant:
  ------------------
  |  Branch (498:5): [True: 0, False: 30.5k]
  ------------------
  499|      0|    case EOpMatrixInverse:
  ------------------
  |  Branch (499:5): [True: 0, False: 30.5k]
  ------------------
  500|      0|    case EOpTranspose:
  ------------------
  |  Branch (500:5): [True: 0, False: 30.5k]
  ------------------
  501|      0|        return nullptr;
  502|       |
  503|  30.4k|    default:
  ------------------
  |  Branch (503:5): [True: 30.4k, False: 191]
  ------------------
  504|  30.4k|        assert(componentWise);
  505|  30.4k|        break;
  506|  30.5k|    }
  507|       |
  508|       |    // Turn off the componentwise loop
  509|  30.5k|    if (! componentWise)
  ------------------
  |  Branch (509:9): [True: 191, False: 30.4k]
  ------------------
  510|    191|        objectSize = 0;
  511|       |
  512|       |    // Process component-wise operations
  513|  62.2k|    for (int i = 0; i < objectSize; i++) {
  ------------------
  |  Branch (513:21): [True: 32.5k, False: 29.7k]
  ------------------
  514|       |        // First read the value and convert to i64/u64/f64/bool, then convert
  515|       |        // to the destination type (still 64b), then convert down to the
  516|       |        // destination size.
  517|  32.5k|        if (IsOpNumericConv(op)) {
  ------------------
  |  Branch (517:13): [True: 20.9k, False: 11.5k]
  ------------------
  518|  20.9k|            enum ConvType { CONV_FLOAT, CONV_INT, CONV_UINT, CONV_BOOL };
  519|  20.9k|            ConvType srcType = CONV_UINT, dstType = CONV_UINT;
  520|  20.9k|            double valf = 0.0;
  521|  20.9k|            uint64_t valu = 0;
  522|  20.9k|            int64_t vali = 0;
  523|  20.9k|            bool valb = false;
  524|  20.9k|            switch (getType().getBasicType()) {
  525|      1|            case EbtDouble:
  ------------------
  |  Branch (525:13): [True: 1, False: 20.9k]
  ------------------
  526|      1|            case EbtFloat16:
  ------------------
  |  Branch (526:13): [True: 0, False: 20.9k]
  ------------------
  527|      1|            case EbtBFloat16:
  ------------------
  |  Branch (527:13): [True: 0, False: 20.9k]
  ------------------
  528|      1|            case EbtFloatE5M2:
  ------------------
  |  Branch (528:13): [True: 0, False: 20.9k]
  ------------------
  529|      1|            case EbtFloatE4M3:
  ------------------
  |  Branch (529:13): [True: 0, False: 20.9k]
  ------------------
  530|      1|            case EbtFloatE2M1:
  ------------------
  |  Branch (530:13): [True: 0, False: 20.9k]
  ------------------
  531|      1|            case EbtFloatE3M2:
  ------------------
  |  Branch (531:13): [True: 0, False: 20.9k]
  ------------------
  532|      1|            case EbtFloatE2M3:
  ------------------
  |  Branch (532:13): [True: 0, False: 20.9k]
  ------------------
  533|      1|            case EbtFloatUE8M0:
  ------------------
  |  Branch (533:13): [True: 0, False: 20.9k]
  ------------------
  534|      1|            case EbtFloatMXINT8:
  ------------------
  |  Branch (534:13): [True: 0, False: 20.9k]
  ------------------
  535|      2|            case EbtFloat:
  ------------------
  |  Branch (535:13): [True: 1, False: 20.9k]
  ------------------
  536|      2|                valf = unionArray[i].getDConst();
  537|      2|                srcType = CONV_FLOAT;
  538|      2|                break;
  539|      0|            case EbtInt8:
  ------------------
  |  Branch (539:13): [True: 0, False: 20.9k]
  ------------------
  540|      0|                vali = unionArray[i].getI8Const();
  541|      0|                srcType = CONV_INT;
  542|      0|                break;
  543|      1|            case EbtInt16:
  ------------------
  |  Branch (543:13): [True: 1, False: 20.9k]
  ------------------
  544|      1|                vali = unionArray[i].getI16Const();
  545|      1|                srcType = CONV_INT;
  546|      1|                break;
  547|  20.9k|            case EbtInt:
  ------------------
  |  Branch (547:13): [True: 20.9k, False: 8]
  ------------------
  548|  20.9k|                vali = unionArray[i].getIConst();
  549|  20.9k|                srcType = CONV_INT;
  550|  20.9k|                break;
  551|      0|            case EbtInt64:
  ------------------
  |  Branch (551:13): [True: 0, False: 20.9k]
  ------------------
  552|      0|                vali = unionArray[i].getI64Const();
  553|      0|                srcType = CONV_INT;
  554|      0|                break;
  555|      0|            case EbtUint8:
  ------------------
  |  Branch (555:13): [True: 0, False: 20.9k]
  ------------------
  556|      0|                valu = unionArray[i].getU8Const();
  557|      0|                srcType = CONV_UINT;
  558|      0|                break;
  559|      0|            case EbtUint16:
  ------------------
  |  Branch (559:13): [True: 0, False: 20.9k]
  ------------------
  560|      0|                valu = unionArray[i].getU16Const();
  561|      0|                srcType = CONV_UINT;
  562|      0|                break;
  563|      1|            case EbtUint:
  ------------------
  |  Branch (563:13): [True: 1, False: 20.9k]
  ------------------
  564|      1|                valu = unionArray[i].getUConst();
  565|      1|                srcType = CONV_UINT;
  566|      1|                break;
  567|      2|            case EbtUint64:
  ------------------
  |  Branch (567:13): [True: 2, False: 20.9k]
  ------------------
  568|      2|                valu = unionArray[i].getU64Const();
  569|      2|                srcType = CONV_UINT;
  570|      2|                break;
  571|      2|            case EbtBool:
  ------------------
  |  Branch (571:13): [True: 2, False: 20.9k]
  ------------------
  572|      2|                valb = unionArray[i].getBConst();
  573|      2|                srcType = CONV_BOOL;
  574|      2|                break;
  575|      0|            default:
  ------------------
  |  Branch (575:13): [True: 0, False: 20.9k]
  ------------------
  576|      0|                assert(0);
  577|      0|                break;
  578|  20.9k|            }
  579|       |
  580|  20.9k|            switch (returnType.getBasicType()) {
  581|      0|            case EbtDouble:
  ------------------
  |  Branch (581:13): [True: 0, False: 20.9k]
  ------------------
  582|  3.53k|            case EbtFloat16:
  ------------------
  |  Branch (582:13): [True: 3.53k, False: 17.4k]
  ------------------
  583|  3.53k|            case EbtBFloat16:
  ------------------
  |  Branch (583:13): [True: 0, False: 20.9k]
  ------------------
  584|  3.53k|            case EbtFloatE5M2:
  ------------------
  |  Branch (584:13): [True: 0, False: 20.9k]
  ------------------
  585|  3.53k|            case EbtFloatE4M3:
  ------------------
  |  Branch (585:13): [True: 0, False: 20.9k]
  ------------------
  586|  3.53k|            case EbtFloatE2M1:
  ------------------
  |  Branch (586:13): [True: 0, False: 20.9k]
  ------------------
  587|  3.53k|            case EbtFloatE3M2:
  ------------------
  |  Branch (587:13): [True: 0, False: 20.9k]
  ------------------
  588|  3.53k|            case EbtFloatE2M3:
  ------------------
  |  Branch (588:13): [True: 0, False: 20.9k]
  ------------------
  589|  3.53k|            case EbtFloatUE8M0:
  ------------------
  |  Branch (589:13): [True: 0, False: 20.9k]
  ------------------
  590|  3.53k|            case EbtFloatMXINT8:
  ------------------
  |  Branch (590:13): [True: 0, False: 20.9k]
  ------------------
  591|  3.53k|            case EbtFloat:
  ------------------
  |  Branch (591:13): [True: 0, False: 20.9k]
  ------------------
  592|  3.53k|                dstType = CONV_FLOAT;
  593|  3.53k|                break;
  594|  6.31k|            case EbtInt8:
  ------------------
  |  Branch (594:13): [True: 6.31k, False: 14.6k]
  ------------------
  595|  11.8k|            case EbtInt16:
  ------------------
  |  Branch (595:13): [True: 5.53k, False: 15.4k]
  ------------------
  596|  11.8k|            case EbtInt:
  ------------------
  |  Branch (596:13): [True: 0, False: 20.9k]
  ------------------
  597|  11.8k|            case EbtInt64:
  ------------------
  |  Branch (597:13): [True: 0, False: 20.9k]
  ------------------
  598|  11.8k|                dstType = CONV_INT;
  599|  11.8k|                break;
  600|  3.66k|            case EbtUint8:
  ------------------
  |  Branch (600:13): [True: 3.66k, False: 17.2k]
  ------------------
  601|  5.57k|            case EbtUint16:
  ------------------
  |  Branch (601:13): [True: 1.90k, False: 19.0k]
  ------------------
  602|  5.57k|            case EbtUint:
  ------------------
  |  Branch (602:13): [True: 0, False: 20.9k]
  ------------------
  603|  5.57k|            case EbtUint64:
  ------------------
  |  Branch (603:13): [True: 0, False: 20.9k]
  ------------------
  604|  5.57k|                dstType = CONV_UINT;
  605|  5.57k|                break;
  606|      0|            case EbtBool:
  ------------------
  |  Branch (606:13): [True: 0, False: 20.9k]
  ------------------
  607|      0|                dstType = CONV_BOOL;
  608|      0|                break;
  609|      0|            default:
  ------------------
  |  Branch (609:13): [True: 0, False: 20.9k]
  ------------------
  610|      0|                assert(0);
  611|      0|                break;
  612|  20.9k|            }
  613|  20.9k|            if (dstType == CONV_BOOL) {
  ------------------
  |  Branch (613:17): [True: 0, False: 20.9k]
  ------------------
  614|      0|                switch (srcType) {
  615|      0|                case CONV_FLOAT:
  ------------------
  |  Branch (615:17): [True: 0, False: 0]
  ------------------
  616|      0|                    valb = (valf != 0.0); break;
  617|      0|                case CONV_INT:
  ------------------
  |  Branch (617:17): [True: 0, False: 0]
  ------------------
  618|      0|                    valb = (vali != 0.0); break;
  619|      0|                case CONV_UINT:
  ------------------
  |  Branch (619:17): [True: 0, False: 0]
  ------------------
  620|      0|                    valb = (valu != 0.0); break;
  621|      0|                default:
  ------------------
  |  Branch (621:17): [True: 0, False: 0]
  ------------------
  622|      0|                    break;
  623|      0|                }
  624|  20.9k|            } else if (dstType == CONV_FLOAT) {
  ------------------
  |  Branch (624:24): [True: 3.53k, False: 17.4k]
  ------------------
  625|  3.53k|                switch (srcType) {
  626|      0|                case CONV_BOOL:
  ------------------
  |  Branch (626:17): [True: 0, False: 3.53k]
  ------------------
  627|      0|                    valf = (double)valb; break;
  628|  3.53k|                case CONV_INT:
  ------------------
  |  Branch (628:17): [True: 3.53k, False: 1]
  ------------------
  629|  3.53k|                    valf = (double)vali; break;
  630|      0|                case CONV_UINT:
  ------------------
  |  Branch (630:17): [True: 0, False: 3.53k]
  ------------------
  631|      0|                    valf = (double)valu; break;
  632|      1|                default:
  ------------------
  |  Branch (632:17): [True: 1, False: 3.53k]
  ------------------
  633|      1|                    break;
  634|  3.53k|                }
  635|  17.4k|            } else if (dstType == CONV_INT) {
  ------------------
  |  Branch (635:24): [True: 11.8k, False: 5.57k]
  ------------------
  636|  11.8k|                switch (srcType) {
  637|      1|                case CONV_BOOL:
  ------------------
  |  Branch (637:17): [True: 1, False: 11.8k]
  ------------------
  638|      1|                    vali = (int64_t)valb; break;
  639|      0|                case CONV_FLOAT:
  ------------------
  |  Branch (639:17): [True: 0, False: 11.8k]
  ------------------
  640|      0|                    vali = (int64_t)valf; break;
  641|      1|                case CONV_UINT:
  ------------------
  |  Branch (641:17): [True: 1, False: 11.8k]
  ------------------
  642|      1|                    vali = (int64_t)valu; break;
  643|  11.8k|                default:
  ------------------
  |  Branch (643:17): [True: 11.8k, False: 2]
  ------------------
  644|  11.8k|                    break;
  645|  11.8k|                }
  646|  11.8k|            } else if (dstType == CONV_UINT) {
  ------------------
  |  Branch (646:24): [True: 5.57k, False: 0]
  ------------------
  647|  5.57k|                switch (srcType) {
  648|      1|                case CONV_BOOL:
  ------------------
  |  Branch (648:17): [True: 1, False: 5.56k]
  ------------------
  649|      1|                    valu = (uint64_t)valb; break;
  650|      1|                case CONV_FLOAT:
  ------------------
  |  Branch (650:17): [True: 1, False: 5.56k]
  ------------------
  651|      1|                    valu = (uint64_t)valf; break;
  652|  5.56k|                case CONV_INT:
  ------------------
  |  Branch (652:17): [True: 5.56k, False: 4]
  ------------------
  653|  5.56k|                    valu = (uint64_t)vali; break;
  654|      2|                default:
  ------------------
  |  Branch (654:17): [True: 2, False: 5.56k]
  ------------------
  655|      2|                    break;
  656|  5.57k|                }
  657|  5.57k|            }
  658|  20.9k|            switch (returnType.getBasicType()) {
  659|      0|            case EbtDouble:
  ------------------
  |  Branch (659:13): [True: 0, False: 20.9k]
  ------------------
  660|  3.53k|            case EbtFloat16:
  ------------------
  |  Branch (660:13): [True: 3.53k, False: 17.4k]
  ------------------
  661|  3.53k|            case EbtBFloat16:
  ------------------
  |  Branch (661:13): [True: 0, False: 20.9k]
  ------------------
  662|  3.53k|            case EbtFloatE5M2:
  ------------------
  |  Branch (662:13): [True: 0, False: 20.9k]
  ------------------
  663|  3.53k|            case EbtFloatE4M3:
  ------------------
  |  Branch (663:13): [True: 0, False: 20.9k]
  ------------------
  664|  3.53k|            case EbtFloatE2M1:
  ------------------
  |  Branch (664:13): [True: 0, False: 20.9k]
  ------------------
  665|  3.53k|            case EbtFloatE3M2:
  ------------------
  |  Branch (665:13): [True: 0, False: 20.9k]
  ------------------
  666|  3.53k|            case EbtFloatE2M3:
  ------------------
  |  Branch (666:13): [True: 0, False: 20.9k]
  ------------------
  667|  3.53k|            case EbtFloatUE8M0:
  ------------------
  |  Branch (667:13): [True: 0, False: 20.9k]
  ------------------
  668|  3.53k|            case EbtFloatMXINT8:
  ------------------
  |  Branch (668:13): [True: 0, False: 20.9k]
  ------------------
  669|  3.53k|            case EbtFloat:
  ------------------
  |  Branch (669:13): [True: 0, False: 20.9k]
  ------------------
  670|  3.53k|                newConstArray[i].setDConst(valf); break;
  671|  6.31k|            case EbtInt8:
  ------------------
  |  Branch (671:13): [True: 6.31k, False: 14.6k]
  ------------------
  672|  6.31k|                newConstArray[i].setI8Const(static_cast<int8_t>(vali)); break;
  673|  5.53k|            case EbtInt16:
  ------------------
  |  Branch (673:13): [True: 5.53k, False: 15.4k]
  ------------------
  674|  5.53k|                newConstArray[i].setI16Const(static_cast<int16_t>(vali)); break;
  675|      0|            case EbtInt:
  ------------------
  |  Branch (675:13): [True: 0, False: 20.9k]
  ------------------
  676|      0|                newConstArray[i].setIConst(static_cast<int32_t>(vali)); break;
  677|      0|            case EbtInt64:
  ------------------
  |  Branch (677:13): [True: 0, False: 20.9k]
  ------------------
  678|      0|                newConstArray[i].setI64Const(vali); break;
  679|  3.66k|            case EbtUint8:
  ------------------
  |  Branch (679:13): [True: 3.66k, False: 17.2k]
  ------------------
  680|  3.66k|                newConstArray[i].setU8Const(static_cast<uint8_t>(valu)); break;
  681|  1.90k|            case EbtUint16:
  ------------------
  |  Branch (681:13): [True: 1.90k, False: 19.0k]
  ------------------
  682|  1.90k|                newConstArray[i].setU16Const(static_cast<uint16_t>(valu)); break;
  683|      0|            case EbtUint:
  ------------------
  |  Branch (683:13): [True: 0, False: 20.9k]
  ------------------
  684|      0|                newConstArray[i].setUConst(static_cast<uint32_t>(valu)); break;
  685|      0|            case EbtUint64:
  ------------------
  |  Branch (685:13): [True: 0, False: 20.9k]
  ------------------
  686|      0|                newConstArray[i].setU64Const(valu); break;
  687|      0|            case EbtBool:
  ------------------
  |  Branch (687:13): [True: 0, False: 20.9k]
  ------------------
  688|      0|                newConstArray[i].setBConst(valb); break;
  689|      0|            default:
  ------------------
  |  Branch (689:13): [True: 0, False: 20.9k]
  ------------------
  690|      0|                assert(0);
  691|      0|                break;
  692|  20.9k|            }
  693|  20.9k|            continue;
  694|  20.9k|        }
  695|  11.5k|        switch (op) {
  696|  6.00k|        case EOpNegative:
  ------------------
  |  Branch (696:9): [True: 6.00k, False: 5.59k]
  ------------------
  697|  6.00k|            switch (getType().getBasicType()) {
  698|      7|            case EbtDouble:
  ------------------
  |  Branch (698:13): [True: 7, False: 5.99k]
  ------------------
  699|     16|            case EbtFloat16:
  ------------------
  |  Branch (699:13): [True: 9, False: 5.99k]
  ------------------
  700|     16|            case EbtBFloat16:
  ------------------
  |  Branch (700:13): [True: 0, False: 6.00k]
  ------------------
  701|     16|            case EbtFloatE5M2:
  ------------------
  |  Branch (701:13): [True: 0, False: 6.00k]
  ------------------
  702|     16|            case EbtFloatE4M3:
  ------------------
  |  Branch (702:13): [True: 0, False: 6.00k]
  ------------------
  703|     16|            case EbtFloatE2M1:
  ------------------
  |  Branch (703:13): [True: 0, False: 6.00k]
  ------------------
  704|     16|            case EbtFloatE3M2:
  ------------------
  |  Branch (704:13): [True: 0, False: 6.00k]
  ------------------
  705|     16|            case EbtFloatE2M3:
  ------------------
  |  Branch (705:13): [True: 0, False: 6.00k]
  ------------------
  706|     16|            case EbtFloatUE8M0:
  ------------------
  |  Branch (706:13): [True: 0, False: 6.00k]
  ------------------
  707|     16|            case EbtFloatMXINT8:
  ------------------
  |  Branch (707:13): [True: 0, False: 6.00k]
  ------------------
  708|    354|            case EbtFloat: newConstArray[i].setDConst(-unionArray[i].getDConst()); break;
  ------------------
  |  Branch (708:13): [True: 338, False: 5.66k]
  ------------------
  709|       |            // Note: avoid UBSAN error regarding negating 0x80000000
  710|  5.31k|            case EbtInt:   newConstArray[i].setIConst(
  ------------------
  |  Branch (710:13): [True: 5.31k, False: 686]
  ------------------
  711|  5.31k|                                static_cast<unsigned int>(unionArray[i].getIConst()) == 0x80000000
  ------------------
  |  Branch (711:33): [True: 23, False: 5.29k]
  ------------------
  712|  5.31k|                                    ? -0x7FFFFFFF - 1
  713|  5.31k|                                    : -unionArray[i].getIConst());
  714|  5.31k|                           break;
  715|     12|            case EbtUint:  newConstArray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst())));  break;
  ------------------
  |  Branch (715:13): [True: 12, False: 5.99k]
  ------------------
  716|      2|            case EbtInt8:  newConstArray[i].setI8Const(-unionArray[i].getI8Const()); break;
  ------------------
  |  Branch (716:13): [True: 2, False: 6.00k]
  ------------------
  717|      0|            case EbtUint8: newConstArray[i].setU8Const(static_cast<unsigned int>(-static_cast<signed int>(unionArray[i].getU8Const())));  break;
  ------------------
  |  Branch (717:13): [True: 0, False: 6.00k]
  ------------------
  718|    225|            case EbtInt16: newConstArray[i].setI16Const(-unionArray[i].getI16Const()); break;
  ------------------
  |  Branch (718:13): [True: 225, False: 5.77k]
  ------------------
  719|      4|            case EbtUint16:newConstArray[i].setU16Const(static_cast<unsigned int>(-static_cast<signed int>(unionArray[i].getU16Const())));  break;
  ------------------
  |  Branch (719:13): [True: 4, False: 5.99k]
  ------------------
  720|     89|            case EbtInt64: {
  ------------------
  |  Branch (720:13): [True: 89, False: 5.91k]
  ------------------
  721|     89|                int64_t i64val = unionArray[i].getI64Const();
  722|     89|                newConstArray[i].setI64Const(i64val == INT64_MIN ? INT64_MIN : -i64val);
  ------------------
  |  Branch (722:46): [True: 0, False: 89]
  ------------------
  723|     89|                break;
  724|     16|            }
  725|      0|            case EbtUint64: newConstArray[i].setU64Const(static_cast<unsigned long long>(-static_cast<long long>(unionArray[i].getU64Const())));  break;
  ------------------
  |  Branch (725:13): [True: 0, False: 6.00k]
  ------------------
  726|      0|            default:
  ------------------
  |  Branch (726:13): [True: 0, False: 6.00k]
  ------------------
  727|      0|                return nullptr;
  728|  6.00k|            }
  729|  6.00k|            break;
  730|  6.00k|        case EOpLogicalNot:
  ------------------
  |  Branch (730:9): [True: 0, False: 11.5k]
  ------------------
  731|      0|        case EOpVectorLogicalNot:
  ------------------
  |  Branch (731:9): [True: 0, False: 11.5k]
  ------------------
  732|      0|            switch (getType().getBasicType()) {
  733|      0|            case EbtBool:  newConstArray[i].setBConst(!unionArray[i].getBConst()); break;
  ------------------
  |  Branch (733:13): [True: 0, False: 0]
  ------------------
  734|      0|            default:
  ------------------
  |  Branch (734:13): [True: 0, False: 0]
  ------------------
  735|      0|                return nullptr;
  736|      0|            }
  737|      0|            break;
  738|    152|        case EOpBitwiseNot:
  ------------------
  |  Branch (738:9): [True: 152, False: 11.4k]
  ------------------
  739|    152|            newConstArray[i] = ~unionArray[i];
  740|    152|            break;
  741|     10|        case EOpRadians:
  ------------------
  |  Branch (741:9): [True: 10, False: 11.5k]
  ------------------
  742|     10|            newConstArray[i].setDConst(unionArray[i].getDConst() * pi / 180.0);
  743|     10|            break;
  744|     38|        case EOpDegrees:
  ------------------
  |  Branch (744:9): [True: 38, False: 11.5k]
  ------------------
  745|     38|            newConstArray[i].setDConst(unionArray[i].getDConst() * 180.0 / pi);
  746|     38|            break;
  747|     44|        case EOpSin:
  ------------------
  |  Branch (747:9): [True: 44, False: 11.5k]
  ------------------
  748|     44|            newConstArray[i].setDConst(sin(unionArray[i].getDConst()));
  749|     44|            break;
  750|     48|        case EOpCos:
  ------------------
  |  Branch (750:9): [True: 48, False: 11.5k]
  ------------------
  751|     48|            newConstArray[i].setDConst(cos(unionArray[i].getDConst()));
  752|     48|            break;
  753|     14|        case EOpTan:
  ------------------
  |  Branch (753:9): [True: 14, False: 11.5k]
  ------------------
  754|     14|            newConstArray[i].setDConst(tan(unionArray[i].getDConst()));
  755|     14|            break;
  756|     28|        case EOpAsin:
  ------------------
  |  Branch (756:9): [True: 28, False: 11.5k]
  ------------------
  757|     28|            newConstArray[i].setDConst(asin(unionArray[i].getDConst()));
  758|     28|            break;
  759|     28|        case EOpAcos:
  ------------------
  |  Branch (759:9): [True: 28, False: 11.5k]
  ------------------
  760|     28|            newConstArray[i].setDConst(acos(unionArray[i].getDConst()));
  761|     28|            break;
  762|     28|        case EOpAtan:
  ------------------
  |  Branch (762:9): [True: 28, False: 11.5k]
  ------------------
  763|     28|            newConstArray[i].setDConst(atan(unionArray[i].getDConst()));
  764|     28|            break;
  765|      4|        case EOpSinh:
  ------------------
  |  Branch (765:9): [True: 4, False: 11.5k]
  ------------------
  766|      4|            newConstArray[i].setDConst(sinh(unionArray[i].getDConst()));
  767|      4|            break;
  768|      2|        case EOpCosh:
  ------------------
  |  Branch (768:9): [True: 2, False: 11.5k]
  ------------------
  769|      2|            newConstArray[i].setDConst(cosh(unionArray[i].getDConst()));
  770|      2|            break;
  771|      2|        case EOpTanh:
  ------------------
  |  Branch (771:9): [True: 2, False: 11.5k]
  ------------------
  772|      2|            newConstArray[i].setDConst(tanh(unionArray[i].getDConst()));
  773|      2|            break;
  774|      2|        case EOpAsinh:
  ------------------
  |  Branch (774:9): [True: 2, False: 11.5k]
  ------------------
  775|      2|            newConstArray[i].setDConst(asinh(unionArray[i].getDConst()));
  776|      2|            break;
  777|      4|        case EOpAcosh:
  ------------------
  |  Branch (777:9): [True: 4, False: 11.5k]
  ------------------
  778|      4|            newConstArray[i].setDConst(acosh(unionArray[i].getDConst()));
  779|      4|            break;
  780|      2|        case EOpAtanh:
  ------------------
  |  Branch (780:9): [True: 2, False: 11.5k]
  ------------------
  781|      2|            newConstArray[i].setDConst(atanh(unionArray[i].getDConst()));
  782|      2|            break;
  783|       |
  784|     74|        case EOpDPdx:
  ------------------
  |  Branch (784:9): [True: 74, False: 11.5k]
  ------------------
  785|    152|        case EOpDPdy:
  ------------------
  |  Branch (785:9): [True: 78, False: 11.5k]
  ------------------
  786|    226|        case EOpFwidth:
  ------------------
  |  Branch (786:9): [True: 74, False: 11.5k]
  ------------------
  787|    226|        case EOpDPdxFine:
  ------------------
  |  Branch (787:9): [True: 0, False: 11.5k]
  ------------------
  788|    226|        case EOpDPdyFine:
  ------------------
  |  Branch (788:9): [True: 0, False: 11.5k]
  ------------------
  789|    226|        case EOpFwidthFine:
  ------------------
  |  Branch (789:9): [True: 0, False: 11.5k]
  ------------------
  790|    226|        case EOpDPdxCoarse:
  ------------------
  |  Branch (790:9): [True: 0, False: 11.5k]
  ------------------
  791|    226|        case EOpDPdyCoarse:
  ------------------
  |  Branch (791:9): [True: 0, False: 11.5k]
  ------------------
  792|    226|        case EOpFwidthCoarse:
  ------------------
  |  Branch (792:9): [True: 0, False: 11.5k]
  ------------------
  793|       |            // The derivatives are all mandated to create a constant 0.
  794|    226|            newConstArray[i].setDConst(0.0);
  795|    226|            break;
  796|       |
  797|     39|        case EOpExp:
  ------------------
  |  Branch (797:9): [True: 39, False: 11.5k]
  ------------------
  798|     39|            newConstArray[i].setDConst(exp(unionArray[i].getDConst()));
  799|     39|            break;
  800|     39|        case EOpLog:
  ------------------
  |  Branch (800:9): [True: 39, False: 11.5k]
  ------------------
  801|     39|            newConstArray[i].setDConst(log(unionArray[i].getDConst()));
  802|     39|            break;
  803|     39|        case EOpExp2:
  ------------------
  |  Branch (803:9): [True: 39, False: 11.5k]
  ------------------
  804|     39|            newConstArray[i].setDConst(exp2(unionArray[i].getDConst()));
  805|     39|            break;
  806|     39|        case EOpLog2:
  ------------------
  |  Branch (806:9): [True: 39, False: 11.5k]
  ------------------
  807|     39|            newConstArray[i].setDConst(log2(unionArray[i].getDConst()));
  808|     39|            break;
  809|     97|        case EOpSqrt:
  ------------------
  |  Branch (809:9): [True: 97, False: 11.4k]
  ------------------
  810|     97|            newConstArray[i].setDConst(sqrt(unionArray[i].getDConst()));
  811|     97|            break;
  812|     39|        case EOpInverseSqrt:
  ------------------
  |  Branch (812:9): [True: 39, False: 11.5k]
  ------------------
  813|     39|            newConstArray[i].setDConst(1.0 / sqrt(unionArray[i].getDConst()));
  814|     39|            break;
  815|       |
  816|    114|        case EOpAbs:
  ------------------
  |  Branch (816:9): [True: 114, False: 11.4k]
  ------------------
  817|    114|            if (unionArray[i].getType() == EbtDouble)
  ------------------
  |  Branch (817:17): [True: 78, False: 36]
  ------------------
  818|     78|                newConstArray[i].setDConst(fabs(unionArray[i].getDConst()));
  819|     36|            else if (unionArray[i].getType() == EbtInt)
  ------------------
  |  Branch (819:22): [True: 36, False: 0]
  ------------------
  820|     36|                newConstArray[i].setIConst(abs(unionArray[i].getIConst()));
  821|      0|            else
  822|      0|                newConstArray[i] = unionArray[i];
  823|    114|            break;
  824|    108|        case EOpSign:
  ------------------
  |  Branch (824:9): [True: 108, False: 11.4k]
  ------------------
  825|    108|            #define SIGN(X) (X == 0 ? 0 : (X < 0 ? -1 : 1))
  826|    108|            if (unionArray[i].getType() == EbtDouble)
  ------------------
  |  Branch (826:17): [True: 54, False: 54]
  ------------------
  827|     54|                newConstArray[i].setDConst(SIGN(unionArray[i].getDConst()));
  ------------------
  |  |  825|     54|            #define SIGN(X) (X == 0 ? 0 : (X < 0 ? -1 : 1))
  |  |  ------------------
  |  |  |  Branch (825:30): [True: 17, False: 37]
  |  |  |  Branch (825:44): [True: 18, False: 19]
  |  |  ------------------
  ------------------
  828|     54|            else
  829|     54|                newConstArray[i].setIConst(SIGN(unionArray[i].getIConst()));
  ------------------
  |  |  825|     54|            #define SIGN(X) (X == 0 ? 0 : (X < 0 ? -1 : 1))
  |  |  ------------------
  |  |  |  Branch (825:30): [True: 18, False: 36]
  |  |  |  Branch (825:44): [True: 18, False: 18]
  |  |  ------------------
  ------------------
  830|    108|            break;
  831|     19|        case EOpFloor:
  ------------------
  |  Branch (831:9): [True: 19, False: 11.5k]
  ------------------
  832|     19|            newConstArray[i].setDConst(floor(unionArray[i].getDConst()));
  833|     19|            break;
  834|     38|        case EOpTrunc:
  ------------------
  |  Branch (834:9): [True: 38, False: 11.5k]
  ------------------
  835|     38|            if (unionArray[i].getDConst() > 0)
  ------------------
  |  Branch (835:17): [True: 19, False: 19]
  ------------------
  836|     19|                newConstArray[i].setDConst(floor(unionArray[i].getDConst()));
  837|     19|            else
  838|     19|                newConstArray[i].setDConst(ceil(unionArray[i].getDConst()));
  839|     38|            break;
  840|     39|        case EOpRound:
  ------------------
  |  Branch (840:9): [True: 39, False: 11.5k]
  ------------------
  841|     39|            newConstArray[i].setDConst(floor(0.5 + unionArray[i].getDConst()));
  842|     39|            break;
  843|     76|        case EOpRoundEven:
  ------------------
  |  Branch (843:9): [True: 76, False: 11.5k]
  ------------------
  844|     76|        {
  845|     76|            double flr = floor(unionArray[i].getDConst());
  846|     76|            bool even = flr / 2.0 == floor(flr / 2.0);
  847|     76|            double rounded = even ? ceil(unionArray[i].getDConst() - 0.5) : floor(unionArray[i].getDConst() + 0.5);
  ------------------
  |  Branch (847:30): [True: 38, False: 38]
  ------------------
  848|     76|            newConstArray[i].setDConst(rounded);
  849|     76|            break;
  850|    226|        }
  851|     19|        case EOpCeil:
  ------------------
  |  Branch (851:9): [True: 19, False: 11.5k]
  ------------------
  852|     19|            newConstArray[i].setDConst(ceil(unionArray[i].getDConst()));
  853|     19|            break;
  854|     40|        case EOpFract:
  ------------------
  |  Branch (854:9): [True: 40, False: 11.5k]
  ------------------
  855|     40|        {
  856|     40|            double x = unionArray[i].getDConst();
  857|     40|            newConstArray[i].setDConst(x - floor(x));
  858|     40|            break;
  859|    226|        }
  860|       |
  861|     63|        case EOpIsNan:
  ------------------
  |  Branch (861:9): [True: 63, False: 11.5k]
  ------------------
  862|     63|        {
  863|     63|            newConstArray[i].setBConst(std::isnan(unionArray[i].getDConst()));
  864|     63|            break;
  865|    226|        }
  866|     64|        case EOpIsInf:
  ------------------
  |  Branch (866:9): [True: 64, False: 11.5k]
  ------------------
  867|     64|        {
  868|     64|            newConstArray[i].setBConst(std::isinf(unionArray[i].getDConst()));
  869|     64|            break;
  870|    226|        }
  871|       |
  872|      4|        case EOpConvPtrToUint64:
  ------------------
  |  Branch (872:9): [True: 4, False: 11.5k]
  ------------------
  873|     16|        case EOpConvUint64ToPtr:
  ------------------
  |  Branch (873:9): [True: 12, False: 11.5k]
  ------------------
  874|     20|        case EOpConstructReference:
  ------------------
  |  Branch (874:9): [True: 4, False: 11.5k]
  ------------------
  875|     20|            newConstArray[i].setU64Const(unionArray[i].getU64Const()); break;
  876|       |
  877|       |        // The constant is held as a double, so narrow it back to the declared
  878|       |        // width before reinterpreting its bits.
  879|      4|        case EOpFloatBitsToInt:
  ------------------
  |  Branch (879:9): [True: 4, False: 11.5k]
  ------------------
  880|      4|            newConstArray[i].setIConst(bitCast<int>(static_cast<float>(unionArray[i].getDConst())));
  881|      4|            break;
  882|      6|        case EOpFloatBitsToUint:
  ------------------
  |  Branch (882:9): [True: 6, False: 11.5k]
  ------------------
  883|      6|            newConstArray[i].setUConst(bitCast<unsigned int>(static_cast<float>(unionArray[i].getDConst())));
  884|      6|            break;
  885|      2|        case EOpIntBitsToFloat:
  ------------------
  |  Branch (885:9): [True: 2, False: 11.5k]
  ------------------
  886|      2|            newConstArray[i].setDConst(bitCast<float>(unionArray[i].getIConst()));
  887|      2|            break;
  888|      2|        case EOpUintBitsToFloat:
  ------------------
  |  Branch (888:9): [True: 2, False: 11.5k]
  ------------------
  889|      2|            newConstArray[i].setDConst(bitCast<float>(unionArray[i].getUConst()));
  890|      2|            break;
  891|    819|        case EOpDoubleBitsToInt64:
  ------------------
  |  Branch (891:9): [True: 819, False: 10.7k]
  ------------------
  892|    819|            newConstArray[i].setI64Const(bitCast<long long>(unionArray[i].getDConst()));
  893|    819|            break;
  894|    802|        case EOpDoubleBitsToUint64:
  ------------------
  |  Branch (894:9): [True: 802, False: 10.7k]
  ------------------
  895|    802|            newConstArray[i].setU64Const(bitCast<unsigned long long>(unionArray[i].getDConst()));
  896|    802|            break;
  897|    779|        case EOpInt64BitsToDouble:
  ------------------
  |  Branch (897:9): [True: 779, False: 10.8k]
  ------------------
  898|    779|            newConstArray[i].setDConst(bitCast<double>(unionArray[i].getI64Const()));
  899|    779|            break;
  900|    759|        case EOpUint64BitsToDouble:
  ------------------
  |  Branch (900:9): [True: 759, False: 10.8k]
  ------------------
  901|    759|            newConstArray[i].setDConst(bitCast<double>(unionArray[i].getU64Const()));
  902|    759|            break;
  903|       |
  904|       |        // TODO: 3.0 Functionality: unary constant folding: the rest of the ops have to be fleshed out
  905|       |
  906|      0|        case EOpFloat16BitsToInt16:
  ------------------
  |  Branch (906:9): [True: 0, False: 11.5k]
  ------------------
  907|      0|        case EOpFloat16BitsToUint16:
  ------------------
  |  Branch (907:9): [True: 0, False: 11.5k]
  ------------------
  908|      0|        case EOpInt16BitsToFloat16:
  ------------------
  |  Branch (908:9): [True: 0, False: 11.5k]
  ------------------
  909|      0|        case EOpUint16BitsToFloat16:
  ------------------
  |  Branch (909:9): [True: 0, False: 11.5k]
  ------------------
  910|    893|        default:
  ------------------
  |  Branch (910:9): [True: 893, False: 10.6k]
  ------------------
  911|    893|            return nullptr;
  912|  11.5k|        }
  913|  11.5k|    }
  914|       |
  915|  29.7k|    TIntermConstantUnion *newNode = new TIntermConstantUnion(newConstArray, returnType);
  916|  29.7k|    newNode->getWritableType().getQualifier().storage = EvqConst;
  917|  29.7k|    newNode->setLoc(getLoc());
  918|       |
  919|  29.7k|    return newNode;
  920|  30.5k|}
_ZN7glslang13TIntermediate4foldEPNS_16TIntermAggregateE:
  927|  98.7k|{
  928|  98.7k|    if (aggrNode == nullptr)
  ------------------
  |  Branch (928:9): [True: 0, False: 98.7k]
  ------------------
  929|      0|        return aggrNode;
  930|       |
  931|  98.7k|    if (! areAllChildConst(aggrNode))
  ------------------
  |  Branch (931:9): [True: 31.0k, False: 67.6k]
  ------------------
  932|  31.0k|        return aggrNode;
  933|       |
  934|  67.6k|    if (aggrNode->isConstructor())
  ------------------
  |  Branch (934:9): [True: 57.2k, False: 10.3k]
  ------------------
  935|  57.2k|        return foldConstructor(aggrNode);
  936|       |
  937|  10.3k|    TIntermSequence& children = aggrNode->getSequence();
  938|       |
  939|       |    // First, see if this is an operation to constant fold, kick out if not,
  940|       |    // see what size the result is if so.
  941|       |
  942|  10.3k|    bool componentwise = false;  // will also say componentwise if a scalar argument gets repeated to make per-component results
  943|  10.3k|    int objectSize;
  944|  10.3k|    switch (aggrNode->getOp()) {
  945|     29|    case EOpAtan:
  ------------------
  |  Branch (945:5): [True: 29, False: 10.3k]
  ------------------
  946|     48|    case EOpPow:
  ------------------
  |  Branch (946:5): [True: 19, False: 10.3k]
  ------------------
  947|    100|    case EOpMin:
  ------------------
  |  Branch (947:5): [True: 52, False: 10.3k]
  ------------------
  948|    153|    case EOpMax:
  ------------------
  |  Branch (948:5): [True: 53, False: 10.3k]
  ------------------
  949|    304|    case EOpMix:
  ------------------
  |  Branch (949:5): [True: 151, False: 10.2k]
  ------------------
  950|    304|    case EOpMod:
  ------------------
  |  Branch (950:5): [True: 0, False: 10.3k]
  ------------------
  951|    336|    case EOpClamp:
  ------------------
  |  Branch (951:5): [True: 32, False: 10.3k]
  ------------------
  952|  1.10k|    case EOpLessThan:
  ------------------
  |  Branch (952:5): [True: 773, False: 9.61k]
  ------------------
  953|  1.83k|    case EOpGreaterThan:
  ------------------
  |  Branch (953:5): [True: 725, False: 9.65k]
  ------------------
  954|  2.59k|    case EOpLessThanEqual:
  ------------------
  |  Branch (954:5): [True: 765, False: 9.61k]
  ------------------
  955|  3.31k|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (955:5): [True: 711, False: 9.67k]
  ------------------
  956|  4.01k|    case EOpVectorEqual:
  ------------------
  |  Branch (956:5): [True: 704, False: 9.67k]
  ------------------
  957|  4.66k|    case EOpVectorNotEqual:
  ------------------
  |  Branch (957:5): [True: 650, False: 9.73k]
  ------------------
  958|  4.66k|        componentwise = true;
  959|  4.66k|        objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents();
  960|  4.66k|        break;
  961|     10|    case EOpCross:
  ------------------
  |  Branch (961:5): [True: 10, False: 10.3k]
  ------------------
  962|     23|    case EOpReflect:
  ------------------
  |  Branch (962:5): [True: 13, False: 10.3k]
  ------------------
  963|     57|    case EOpRefract:
  ------------------
  |  Branch (963:5): [True: 34, False: 10.3k]
  ------------------
  964|     80|    case EOpFaceForward:
  ------------------
  |  Branch (964:5): [True: 23, False: 10.3k]
  ------------------
  965|     80|        objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents();
  966|     80|        break;
  967|     11|    case EOpDistance:
  ------------------
  |  Branch (967:5): [True: 11, False: 10.3k]
  ------------------
  968|    225|    case EOpDot:
  ------------------
  |  Branch (968:5): [True: 214, False: 10.1k]
  ------------------
  969|    225|        objectSize = 1;
  970|    225|        break;
  971|      5|    case EOpOuterProduct:
  ------------------
  |  Branch (971:5): [True: 5, False: 10.3k]
  ------------------
  972|      5|        objectSize = children[0]->getAsTyped()->getType().getVectorSize() *
  973|      5|                     children[1]->getAsTyped()->getType().getVectorSize();
  974|      5|        break;
  975|     32|    case EOpStep:
  ------------------
  |  Branch (975:5): [True: 32, False: 10.3k]
  ------------------
  976|     32|        componentwise = true;
  977|     32|        objectSize = std::max(children[0]->getAsTyped()->getType().computeNumComponents(),
  978|     32|                              children[1]->getAsTyped()->getType().computeNumComponents());
  979|     32|        break;
  980|     32|    case EOpSmoothStep:
  ------------------
  |  Branch (980:5): [True: 32, False: 10.3k]
  ------------------
  981|     32|        componentwise = true;
  982|     32|        objectSize = std::max(children[0]->getAsTyped()->getType().computeNumComponents(),
  983|     32|                              children[2]->getAsTyped()->getType().computeNumComponents());
  984|     32|        break;
  985|      0|    case EOpMul:
  ------------------
  |  Branch (985:5): [True: 0, False: 10.3k]
  ------------------
  986|      0|        {
  987|      0|        TIntermConstantUnion* left = children[0]->getAsConstantUnion();
  988|      0|        TIntermConstantUnion* right = children[1]->getAsConstantUnion();
  989|      0|        return left->fold(EOpMul, right);
  990|     11|        }
  991|  5.34k|    default:
  ------------------
  |  Branch (991:5): [True: 5.34k, False: 5.03k]
  ------------------
  992|  5.34k|        return aggrNode;
  993|  10.3k|    }
  994|  5.03k|    TConstUnionArray newConstArray(objectSize);
  995|       |
  996|  5.03k|    TVector<TConstUnionArray> childConstUnions;
  997|  15.3k|    for (unsigned int arg = 0; arg < children.size(); ++arg)
  ------------------
  |  Branch (997:32): [True: 10.3k, False: 5.03k]
  ------------------
  998|  10.3k|        childConstUnions.push_back(children[arg]->getAsConstantUnion()->getConstArray());
  999|       |
 1000|  5.03k|    if (componentwise) {
  ------------------
  |  Branch (1000:9): [True: 4.72k, False: 310]
  ------------------
 1001|  18.3k|        for (int comp = 0; comp < objectSize; comp++) {
  ------------------
  |  Branch (1001:28): [True: 13.6k, False: 4.64k]
  ------------------
 1002|       |
 1003|       |            // some arguments are scalars instead of matching vectors; simulate a smear
 1004|  13.6k|            int arg0comp = std::min(comp, children[0]->getAsTyped()->getType().computeNumComponents() - 1);
 1005|  13.6k|            int arg1comp = 0;
 1006|  13.6k|            if (children.size() > 1)
  ------------------
  |  Branch (1006:17): [True: 13.6k, False: 0]
  ------------------
 1007|  13.6k|                arg1comp = std::min(comp, children[1]->getAsTyped()->getType().computeNumComponents() - 1);
 1008|  13.6k|            int arg2comp = 0;
 1009|  13.6k|            if (children.size() > 2)
  ------------------
  |  Branch (1009:17): [True: 432, False: 13.2k]
  ------------------
 1010|    432|                arg2comp = std::min(comp, children[2]->getAsTyped()->getType().computeNumComponents() - 1);
 1011|       |
 1012|  13.6k|            switch (aggrNode->getOp()) {
 1013|     74|            case EOpAtan:
  ------------------
  |  Branch (1013:13): [True: 74, False: 13.6k]
  ------------------
 1014|     74|                newConstArray[comp].setDConst(atan2(childConstUnions[0][arg0comp].getDConst(), childConstUnions[1][arg1comp].getDConst()));
 1015|     74|                break;
 1016|     32|            case EOpPow:
  ------------------
  |  Branch (1016:13): [True: 32, False: 13.6k]
  ------------------
 1017|     32|                newConstArray[comp].setDConst(pow(childConstUnions[0][arg0comp].getDConst(), childConstUnions[1][arg1comp].getDConst()));
 1018|     32|                break;
 1019|      0|            case EOpMod:
  ------------------
  |  Branch (1019:13): [True: 0, False: 13.6k]
  ------------------
 1020|      0|            {
 1021|      0|                double arg0 = childConstUnions[0][arg0comp].getDConst();
 1022|      0|                double arg1 = childConstUnions[1][arg1comp].getDConst();
 1023|      0|                double result = arg0 - arg1 * floor(arg0 / arg1);
 1024|      0|                newConstArray[comp].setDConst(result);
 1025|      0|                break;
 1026|      0|            }
 1027|     66|            case EOpMin:
  ------------------
  |  Branch (1027:13): [True: 66, False: 13.6k]
  ------------------
 1028|     66|                switch(children[0]->getAsTyped()->getBasicType()) {
 1029|      0|                case EbtFloat16:
  ------------------
  |  Branch (1029:17): [True: 0, False: 66]
  ------------------
 1030|      0|                case EbtBFloat16:
  ------------------
  |  Branch (1030:17): [True: 0, False: 66]
  ------------------
 1031|      0|                case EbtFloatE5M2:
  ------------------
  |  Branch (1031:17): [True: 0, False: 66]
  ------------------
 1032|      0|                case EbtFloatE4M3:
  ------------------
  |  Branch (1032:17): [True: 0, False: 66]
  ------------------
 1033|      0|                case EbtFloatE2M1:
  ------------------
  |  Branch (1033:17): [True: 0, False: 66]
  ------------------
 1034|      0|                case EbtFloatE3M2:
  ------------------
  |  Branch (1034:17): [True: 0, False: 66]
  ------------------
 1035|      0|                case EbtFloatE2M3:
  ------------------
  |  Branch (1035:17): [True: 0, False: 66]
  ------------------
 1036|      0|                case EbtFloatUE8M0:
  ------------------
  |  Branch (1036:17): [True: 0, False: 66]
  ------------------
 1037|      0|                case EbtFloatMXINT8:
  ------------------
  |  Branch (1037:17): [True: 0, False: 66]
  ------------------
 1038|     38|                case EbtFloat:
  ------------------
  |  Branch (1038:17): [True: 38, False: 28]
  ------------------
 1039|     38|                case EbtDouble:
  ------------------
  |  Branch (1039:17): [True: 0, False: 66]
  ------------------
 1040|     38|                    newConstArray[comp].setDConst(std::min(childConstUnions[0][arg0comp].getDConst(), childConstUnions[1][arg1comp].getDConst()));
 1041|     38|                    break;
 1042|     28|                case EbtInt:
  ------------------
  |  Branch (1042:17): [True: 28, False: 38]
  ------------------
 1043|     28|                    newConstArray[comp].setIConst(std::min(childConstUnions[0][arg0comp].getIConst(), childConstUnions[1][arg1comp].getIConst()));
 1044|     28|                    break;
 1045|      0|                case EbtUint:
  ------------------
  |  Branch (1045:17): [True: 0, False: 66]
  ------------------
 1046|      0|                    newConstArray[comp].setUConst(std::min(childConstUnions[0][arg0comp].getUConst(), childConstUnions[1][arg1comp].getUConst()));
 1047|      0|                    break;
 1048|      0|                case EbtInt8:
  ------------------
  |  Branch (1048:17): [True: 0, False: 66]
  ------------------
 1049|      0|                    newConstArray[comp].setI8Const(std::min(childConstUnions[0][arg0comp].getI8Const(), childConstUnions[1][arg1comp].getI8Const()));
 1050|      0|                    break;
 1051|      0|                case EbtUint8:
  ------------------
  |  Branch (1051:17): [True: 0, False: 66]
  ------------------
 1052|      0|                    newConstArray[comp].setU8Const(std::min(childConstUnions[0][arg0comp].getU8Const(), childConstUnions[1][arg1comp].getU8Const()));
 1053|      0|                    break;
 1054|      0|                case EbtInt16:
  ------------------
  |  Branch (1054:17): [True: 0, False: 66]
  ------------------
 1055|      0|                    newConstArray[comp].setI16Const(std::min(childConstUnions[0][arg0comp].getI16Const(), childConstUnions[1][arg1comp].getI16Const()));
 1056|      0|                    break;
 1057|      0|                case EbtUint16:
  ------------------
  |  Branch (1057:17): [True: 0, False: 66]
  ------------------
 1058|      0|                    newConstArray[comp].setU16Const(std::min(childConstUnions[0][arg0comp].getU16Const(), childConstUnions[1][arg1comp].getU16Const()));
 1059|      0|                    break;
 1060|      0|                case EbtInt64:
  ------------------
  |  Branch (1060:17): [True: 0, False: 66]
  ------------------
 1061|      0|                    newConstArray[comp].setI64Const(std::min(childConstUnions[0][arg0comp].getI64Const(), childConstUnions[1][arg1comp].getI64Const()));
 1062|      0|                    break;
 1063|      0|                case EbtUint64:
  ------------------
  |  Branch (1063:17): [True: 0, False: 66]
  ------------------
 1064|      0|                    newConstArray[comp].setU64Const(std::min(childConstUnions[0][arg0comp].getU64Const(), childConstUnions[1][arg1comp].getU64Const()));
 1065|      0|                    break;
 1066|      0|                default: assert(false && "Default missing");
  ------------------
  |  Branch (1066:17): [True: 0, False: 66]
  ------------------
 1067|     66|                }
 1068|     66|                break;
 1069|     67|            case EOpMax:
  ------------------
  |  Branch (1069:13): [True: 67, False: 13.6k]
  ------------------
 1070|     67|                switch(children[0]->getAsTyped()->getBasicType()) {
 1071|      0|                case EbtFloat16:
  ------------------
  |  Branch (1071:17): [True: 0, False: 67]
  ------------------
 1072|      0|                case EbtBFloat16:
  ------------------
  |  Branch (1072:17): [True: 0, False: 67]
  ------------------
 1073|      0|                case EbtFloatE5M2:
  ------------------
  |  Branch (1073:17): [True: 0, False: 67]
  ------------------
 1074|      0|                case EbtFloatE4M3:
  ------------------
  |  Branch (1074:17): [True: 0, False: 67]
  ------------------
 1075|      0|                case EbtFloatE2M1:
  ------------------
  |  Branch (1075:17): [True: 0, False: 67]
  ------------------
 1076|      0|                case EbtFloatE3M2:
  ------------------
  |  Branch (1076:17): [True: 0, False: 67]
  ------------------
 1077|      0|                case EbtFloatE2M3:
  ------------------
  |  Branch (1077:17): [True: 0, False: 67]
  ------------------
 1078|      0|                case EbtFloatUE8M0:
  ------------------
  |  Branch (1078:17): [True: 0, False: 67]
  ------------------
 1079|      0|                case EbtFloatMXINT8:
  ------------------
  |  Branch (1079:17): [True: 0, False: 67]
  ------------------
 1080|     39|                case EbtFloat:
  ------------------
  |  Branch (1080:17): [True: 39, False: 28]
  ------------------
 1081|     39|                case EbtDouble:
  ------------------
  |  Branch (1081:17): [True: 0, False: 67]
  ------------------
 1082|     39|                    newConstArray[comp].setDConst(std::max(childConstUnions[0][arg0comp].getDConst(), childConstUnions[1][arg1comp].getDConst()));
 1083|     39|                    break;
 1084|     28|                case EbtInt:
  ------------------
  |  Branch (1084:17): [True: 28, False: 39]
  ------------------
 1085|     28|                    newConstArray[comp].setIConst(std::max(childConstUnions[0][arg0comp].getIConst(), childConstUnions[1][arg1comp].getIConst()));
 1086|     28|                    break;
 1087|      0|                case EbtUint:
  ------------------
  |  Branch (1087:17): [True: 0, False: 67]
  ------------------
 1088|      0|                    newConstArray[comp].setUConst(std::max(childConstUnions[0][arg0comp].getUConst(), childConstUnions[1][arg1comp].getUConst()));
 1089|      0|                    break;
 1090|      0|                case EbtInt8:
  ------------------
  |  Branch (1090:17): [True: 0, False: 67]
  ------------------
 1091|      0|                    newConstArray[comp].setI8Const(std::max(childConstUnions[0][arg0comp].getI8Const(), childConstUnions[1][arg1comp].getI8Const()));
 1092|      0|                    break;
 1093|      0|                case EbtUint8:
  ------------------
  |  Branch (1093:17): [True: 0, False: 67]
  ------------------
 1094|      0|                    newConstArray[comp].setU8Const(std::max(childConstUnions[0][arg0comp].getU8Const(), childConstUnions[1][arg1comp].getU8Const()));
 1095|      0|                    break;
 1096|      0|                case EbtInt16:
  ------------------
  |  Branch (1096:17): [True: 0, False: 67]
  ------------------
 1097|      0|                    newConstArray[comp].setI16Const(std::max(childConstUnions[0][arg0comp].getI16Const(), childConstUnions[1][arg1comp].getI16Const()));
 1098|      0|                    break;
 1099|      0|                case EbtUint16:
  ------------------
  |  Branch (1099:17): [True: 0, False: 67]
  ------------------
 1100|      0|                    newConstArray[comp].setU16Const(std::max(childConstUnions[0][arg0comp].getU16Const(), childConstUnions[1][arg1comp].getU16Const()));
 1101|      0|                    break;
 1102|      0|                case EbtInt64:
  ------------------
  |  Branch (1102:17): [True: 0, False: 67]
  ------------------
 1103|      0|                    newConstArray[comp].setI64Const(std::max(childConstUnions[0][arg0comp].getI64Const(), childConstUnions[1][arg1comp].getI64Const()));
 1104|      0|                    break;
 1105|      0|                case EbtUint64:
  ------------------
  |  Branch (1105:17): [True: 0, False: 67]
  ------------------
 1106|      0|                    newConstArray[comp].setU64Const(std::max(childConstUnions[0][arg0comp].getU64Const(), childConstUnions[1][arg1comp].getU64Const()));
 1107|      0|                    break;
 1108|      0|                default: assert(false && "Default missing");
  ------------------
  |  Branch (1108:17): [True: 0, False: 67]
  ------------------
 1109|     67|                }
 1110|     67|                break;
 1111|     92|            case EOpClamp:
  ------------------
  |  Branch (1111:13): [True: 92, False: 13.5k]
  ------------------
 1112|     92|                switch(children[0]->getAsTyped()->getBasicType()) {
 1113|      0|                case EbtFloat16:
  ------------------
  |  Branch (1113:17): [True: 0, False: 92]
  ------------------
 1114|      0|                case EbtBFloat16:
  ------------------
  |  Branch (1114:17): [True: 0, False: 92]
  ------------------
 1115|      0|                case EbtFloatE5M2:
  ------------------
  |  Branch (1115:17): [True: 0, False: 92]
  ------------------
 1116|      0|                case EbtFloatE4M3:
  ------------------
  |  Branch (1116:17): [True: 0, False: 92]
  ------------------
 1117|      0|                case EbtFloatE2M1:
  ------------------
  |  Branch (1117:17): [True: 0, False: 92]
  ------------------
 1118|      0|                case EbtFloatE3M2:
  ------------------
  |  Branch (1118:17): [True: 0, False: 92]
  ------------------
 1119|      0|                case EbtFloatE2M3:
  ------------------
  |  Branch (1119:17): [True: 0, False: 92]
  ------------------
 1120|      0|                case EbtFloatUE8M0:
  ------------------
  |  Branch (1120:17): [True: 0, False: 92]
  ------------------
 1121|      0|                case EbtFloatMXINT8:
  ------------------
  |  Branch (1121:17): [True: 0, False: 92]
  ------------------
 1122|      5|                case EbtFloat:
  ------------------
  |  Branch (1122:17): [True: 5, False: 87]
  ------------------
 1123|      8|                case EbtDouble:
  ------------------
  |  Branch (1123:17): [True: 3, False: 89]
  ------------------
 1124|      8|                    newConstArray[comp].setDConst(std::min(std::max(childConstUnions[0][arg0comp].getDConst(), childConstUnions[1][arg1comp].getDConst()),
 1125|      8|                                                                                                               childConstUnions[2][arg2comp].getDConst()));
 1126|      8|                    break;
 1127|     84|                case EbtUint:
  ------------------
  |  Branch (1127:17): [True: 84, False: 8]
  ------------------
 1128|     84|                    newConstArray[comp].setUConst(std::min(std::max(childConstUnions[0][arg0comp].getUConst(), childConstUnions[1][arg1comp].getUConst()),
 1129|     84|                                                                                                                   childConstUnions[2][arg2comp].getUConst()));
 1130|     84|                    break;
 1131|      0|                case EbtInt8:
  ------------------
  |  Branch (1131:17): [True: 0, False: 92]
  ------------------
 1132|      0|                    newConstArray[comp].setI8Const(std::min(std::max(childConstUnions[0][arg0comp].getI8Const(), childConstUnions[1][arg1comp].getI8Const()),
 1133|      0|                                                                                                                   childConstUnions[2][arg2comp].getI8Const()));
 1134|      0|                    break;
 1135|      0|                case EbtUint8:
  ------------------
  |  Branch (1135:17): [True: 0, False: 92]
  ------------------
 1136|      0|                     newConstArray[comp].setU8Const(std::min(std::max(childConstUnions[0][arg0comp].getU8Const(), childConstUnions[1][arg1comp].getU8Const()),
 1137|      0|                                                                                                                   childConstUnions[2][arg2comp].getU8Const()));
 1138|      0|                    break;
 1139|      0|                case EbtInt16:
  ------------------
  |  Branch (1139:17): [True: 0, False: 92]
  ------------------
 1140|      0|                    newConstArray[comp].setI16Const(std::min(std::max(childConstUnions[0][arg0comp].getI16Const(), childConstUnions[1][arg1comp].getI16Const()),
 1141|      0|                                                                                                                   childConstUnions[2][arg2comp].getI16Const()));
 1142|      0|                    break;
 1143|      0|                case EbtUint16:
  ------------------
  |  Branch (1143:17): [True: 0, False: 92]
  ------------------
 1144|      0|                    newConstArray[comp].setU16Const(std::min(std::max(childConstUnions[0][arg0comp].getU16Const(), childConstUnions[1][arg1comp].getU16Const()),
 1145|      0|                                                                                                                   childConstUnions[2][arg2comp].getU16Const()));
 1146|      0|                    break;
 1147|      0|                case EbtInt:
  ------------------
  |  Branch (1147:17): [True: 0, False: 92]
  ------------------
 1148|      0|                    newConstArray[comp].setIConst(std::min(std::max(childConstUnions[0][arg0comp].getIConst(), childConstUnions[1][arg1comp].getIConst()),
 1149|      0|                                                                                                                   childConstUnions[2][arg2comp].getIConst()));
 1150|      0|                    break;
 1151|      0|                case EbtInt64:
  ------------------
  |  Branch (1151:17): [True: 0, False: 92]
  ------------------
 1152|      0|                    newConstArray[comp].setI64Const(std::min(std::max(childConstUnions[0][arg0comp].getI64Const(), childConstUnions[1][arg1comp].getI64Const()),
 1153|      0|                                                                                                                       childConstUnions[2][arg2comp].getI64Const()));
 1154|      0|                    break;
 1155|      0|                case EbtUint64:
  ------------------
  |  Branch (1155:17): [True: 0, False: 92]
  ------------------
 1156|      0|                    newConstArray[comp].setU64Const(std::min(std::max(childConstUnions[0][arg0comp].getU64Const(), childConstUnions[1][arg1comp].getU64Const()),
 1157|      0|                                                                                                                       childConstUnions[2][arg2comp].getU64Const()));
 1158|      0|                    break;
 1159|      0|                default: assert(false && "Default missing");
  ------------------
  |  Branch (1159:17): [True: 0, False: 92]
  ------------------
 1160|     92|                }
 1161|     92|                break;
 1162|  2.31k|            case EOpLessThan:
  ------------------
  |  Branch (1162:13): [True: 2.31k, False: 11.3k]
  ------------------
 1163|  2.31k|                newConstArray[comp].setBConst(childConstUnions[0][arg0comp] < childConstUnions[1][arg1comp]);
 1164|  2.31k|                break;
 1165|  2.20k|            case EOpGreaterThan:
  ------------------
  |  Branch (1165:13): [True: 2.20k, False: 11.4k]
  ------------------
 1166|  2.20k|                newConstArray[comp].setBConst(childConstUnions[0][arg0comp] > childConstUnions[1][arg1comp]);
 1167|  2.20k|                break;
 1168|  2.31k|            case EOpLessThanEqual:
  ------------------
  |  Branch (1168:13): [True: 2.31k, False: 11.3k]
  ------------------
 1169|  2.31k|                newConstArray[comp].setBConst(! (childConstUnions[0][arg0comp] > childConstUnions[1][arg1comp]));
 1170|  2.31k|                break;
 1171|  2.08k|            case EOpGreaterThanEqual:
  ------------------
  |  Branch (1171:13): [True: 2.08k, False: 11.5k]
  ------------------
 1172|  2.08k|                newConstArray[comp].setBConst(! (childConstUnions[0][arg0comp] < childConstUnions[1][arg1comp]));
 1173|  2.08k|                break;
 1174|  2.04k|            case EOpVectorEqual:
  ------------------
  |  Branch (1174:13): [True: 2.04k, False: 11.6k]
  ------------------
 1175|  2.04k|                newConstArray[comp].setBConst(childConstUnions[0][arg0comp] == childConstUnions[1][arg1comp]);
 1176|  2.04k|                break;
 1177|  1.98k|            case EOpVectorNotEqual:
  ------------------
  |  Branch (1177:13): [True: 1.98k, False: 11.6k]
  ------------------
 1178|  1.98k|                newConstArray[comp].setBConst(childConstUnions[0][arg0comp] != childConstUnions[1][arg1comp]);
 1179|  1.98k|                break;
 1180|    215|            case EOpMix:
  ------------------
  |  Branch (1180:13): [True: 215, False: 13.4k]
  ------------------
 1181|    215|                if (!children[0]->getAsTyped()->isFloatingDomain())
  ------------------
  |  Branch (1181:21): [True: 87, False: 128]
  ------------------
 1182|     87|                    return aggrNode;
 1183|    128|                if (children[2]->getAsTyped()->getBasicType() == EbtBool) {
  ------------------
  |  Branch (1183:21): [True: 62, False: 66]
  ------------------
 1184|     62|                    newConstArray[comp].setDConst(childConstUnions[2][arg2comp].getBConst()
  ------------------
  |  Branch (1184:51): [True: 31, False: 31]
  ------------------
 1185|     62|                        ? childConstUnions[1][arg1comp].getDConst()
 1186|     62|                        : childConstUnions[0][arg0comp].getDConst());
 1187|     66|                } else {
 1188|     66|                    newConstArray[comp].setDConst(
 1189|     66|                        childConstUnions[0][arg0comp].getDConst() * (1.0 - childConstUnions[2][arg2comp].getDConst()) +
 1190|     66|                        childConstUnions[1][arg1comp].getDConst() *        childConstUnions[2][arg2comp].getDConst());
 1191|     66|                }
 1192|    128|                break;
 1193|     64|            case EOpStep:
  ------------------
  |  Branch (1193:13): [True: 64, False: 13.6k]
  ------------------
 1194|     64|                newConstArray[comp].setDConst(childConstUnions[1][arg1comp].getDConst() < childConstUnions[0][arg0comp].getDConst() ? 0.0 : 1.0);
  ------------------
  |  Branch (1194:47): [True: 32, False: 32]
  ------------------
 1195|     64|                break;
 1196|    125|            case EOpSmoothStep:
  ------------------
  |  Branch (1196:13): [True: 125, False: 13.5k]
  ------------------
 1197|    125|            {
 1198|    125|                double t = (childConstUnions[2][arg2comp].getDConst() - childConstUnions[0][arg0comp].getDConst()) /
 1199|    125|                           (childConstUnions[1][arg1comp].getDConst() - childConstUnions[0][arg0comp].getDConst());
 1200|    125|                if (t < 0.0)
  ------------------
  |  Branch (1200:21): [True: 35, False: 90]
  ------------------
 1201|     35|                    t = 0.0;
 1202|    125|                if (t > 1.0)
  ------------------
  |  Branch (1202:21): [True: 31, False: 94]
  ------------------
 1203|     31|                    t = 1.0;
 1204|    125|                newConstArray[comp].setDConst(t * t * (3.0 - 2.0 * t));
 1205|    125|                break;
 1206|    215|            }
 1207|      0|            default:
  ------------------
  |  Branch (1207:13): [True: 0, False: 13.6k]
  ------------------
 1208|      0|                return aggrNode;
 1209|  13.6k|            }
 1210|  13.6k|        }
 1211|  4.72k|    } else {
 1212|       |        // Non-componentwise...
 1213|       |
 1214|    310|        int numComps = children[0]->getAsConstantUnion()->getType().computeNumComponents();
 1215|    310|        double dot;
 1216|       |
 1217|    310|        switch (aggrNode->getOp()) {
 1218|     11|        case EOpDistance:
  ------------------
  |  Branch (1218:9): [True: 11, False: 299]
  ------------------
 1219|     11|        {
 1220|     11|            double sum = 0.0;
 1221|     33|            for (int comp = 0; comp < numComps; ++comp) {
  ------------------
  |  Branch (1221:32): [True: 22, False: 11]
  ------------------
 1222|     22|                double diff = childConstUnions[1][comp].getDConst() - childConstUnions[0][comp].getDConst();
 1223|     22|                sum += diff * diff;
 1224|     22|            }
 1225|     11|            newConstArray[0].setDConst(sqrt(sum));
 1226|     11|            break;
 1227|      0|        }
 1228|    214|        case EOpDot:
  ------------------
  |  Branch (1228:9): [True: 214, False: 96]
  ------------------
 1229|    214|            if (!children[0]->getAsTyped()->isFloatingDomain()) {
  ------------------
  |  Branch (1229:17): [True: 214, False: 0]
  ------------------
 1230|    214|                return aggrNode;
 1231|    214|            }
 1232|      0|            newConstArray[0].setDConst(childConstUnions[0].dot(childConstUnions[1]));
 1233|      0|            break;
 1234|     10|        case EOpCross:
  ------------------
  |  Branch (1234:9): [True: 10, False: 300]
  ------------------
 1235|     10|            newConstArray[0] = childConstUnions[0][1] * childConstUnions[1][2] - childConstUnions[0][2] * childConstUnions[1][1];
 1236|     10|            newConstArray[1] = childConstUnions[0][2] * childConstUnions[1][0] - childConstUnions[0][0] * childConstUnions[1][2];
 1237|     10|            newConstArray[2] = childConstUnions[0][0] * childConstUnions[1][1] - childConstUnions[0][1] * childConstUnions[1][0];
 1238|     10|            break;
 1239|     23|        case EOpFaceForward:
  ------------------
  |  Branch (1239:9): [True: 23, False: 287]
  ------------------
 1240|       |            // If dot(Nref, I) < 0 return N, otherwise return -N:  Arguments are (N, I, Nref).
 1241|     23|            dot = childConstUnions[1].dot(childConstUnions[2]);
 1242|     92|            for (int comp = 0; comp < numComps; ++comp) {
  ------------------
  |  Branch (1242:32): [True: 69, False: 23]
  ------------------
 1243|     69|                if (dot < 0.0)
  ------------------
  |  Branch (1243:21): [True: 39, False: 30]
  ------------------
 1244|     39|                    newConstArray[comp] = childConstUnions[0][comp];
 1245|     30|                else
 1246|     30|                    newConstArray[comp].setDConst(-childConstUnions[0][comp].getDConst());
 1247|     69|            }
 1248|     23|            break;
 1249|     13|        case EOpReflect:
  ------------------
  |  Branch (1249:9): [True: 13, False: 297]
  ------------------
 1250|       |            // I - 2 * dot(N, I) * N:  Arguments are (I, N).
 1251|     13|            dot = childConstUnions[0].dot(childConstUnions[1]);
 1252|     13|            dot *= 2.0;
 1253|     39|            for (int comp = 0; comp < numComps; ++comp)
  ------------------
  |  Branch (1253:32): [True: 26, False: 13]
  ------------------
 1254|     26|                newConstArray[comp].setDConst(childConstUnions[0][comp].getDConst() - dot * childConstUnions[1][comp].getDConst());
 1255|     13|            break;
 1256|     34|        case EOpRefract:
  ------------------
  |  Branch (1256:9): [True: 34, False: 276]
  ------------------
 1257|     34|        {
 1258|       |            // Arguments are (I, N, eta).
 1259|       |            // k = 1.0 - eta * eta * (1.0 - dot(N, I) * dot(N, I))
 1260|       |            // if (k < 0.0)
 1261|       |            //     return dvec(0.0)
 1262|       |            // else
 1263|       |            //     return eta * I - (eta * dot(N, I) + sqrt(k)) * N
 1264|     34|            dot = childConstUnions[0].dot(childConstUnions[1]);
 1265|     34|            double eta = childConstUnions[2][0].getDConst();
 1266|     34|            double k = 1.0 - eta * eta * (1.0 - dot * dot);
 1267|     34|            if (k < 0.0) {
  ------------------
  |  Branch (1267:17): [True: 8, False: 26]
  ------------------
 1268|     24|                for (int comp = 0; comp < numComps; ++comp)
  ------------------
  |  Branch (1268:36): [True: 16, False: 8]
  ------------------
 1269|     16|                    newConstArray[comp].setDConst(0.0);
 1270|     26|            } else {
 1271|     78|                for (int comp = 0; comp < numComps; ++comp)
  ------------------
  |  Branch (1271:36): [True: 52, False: 26]
  ------------------
 1272|     52|                    newConstArray[comp].setDConst(eta * childConstUnions[0][comp].getDConst() - (eta * dot + sqrt(k)) * childConstUnions[1][comp].getDConst());
 1273|     26|            }
 1274|     34|            break;
 1275|    214|        }
 1276|      5|        case EOpOuterProduct:
  ------------------
  |  Branch (1276:9): [True: 5, False: 305]
  ------------------
 1277|      5|        {
 1278|      5|            int numRows = numComps;
 1279|      5|            int numCols = children[1]->getAsConstantUnion()->getType().computeNumComponents();
 1280|     15|            for (int row = 0; row < numRows; ++row)
  ------------------
  |  Branch (1280:31): [True: 10, False: 5]
  ------------------
 1281|     40|                for (int col = 0; col < numCols; ++col)
  ------------------
  |  Branch (1281:35): [True: 30, False: 10]
  ------------------
 1282|     30|                    newConstArray[col * numRows + row] = childConstUnions[0][row] * childConstUnions[1][col];
 1283|      5|            break;
 1284|    214|        }
 1285|      0|        default:
  ------------------
  |  Branch (1285:9): [True: 0, False: 310]
  ------------------
 1286|      0|            return aggrNode;
 1287|    310|        }
 1288|    310|    }
 1289|       |
 1290|  4.73k|    TIntermConstantUnion *newNode = new TIntermConstantUnion(newConstArray, aggrNode->getType());
 1291|  4.73k|    newNode->getWritableType().getQualifier().storage = EvqConst;
 1292|  4.73k|    newNode->setLoc(aggrNode->getLoc());
 1293|       |
 1294|  4.73k|    return newNode;
 1295|  5.03k|}
_ZN7glslang13TIntermediate16areAllChildConstEPNS_16TIntermAggregateE:
 1298|  98.7k|{
 1299|  98.7k|    bool allConstant = true;
 1300|       |
 1301|       |    // check if all the child nodes are constants so that they can be inserted into
 1302|       |    // the parent node
 1303|  98.7k|    if (aggrNode) {
  ------------------
  |  Branch (1303:9): [True: 98.7k, False: 0]
  ------------------
 1304|  98.7k|        TIntermSequence& childSequenceVector = aggrNode->getSequence();
 1305|  98.7k|        for (TIntermSequence::iterator p  = childSequenceVector.begin();
 1306|   190k|                                       p != childSequenceVector.end(); p++) {
  ------------------
  |  Branch (1306:40): [True: 123k, False: 67.6k]
  ------------------
 1307|   123k|            if (!(*p)->getAsTyped()->getAsConstantUnion())
  ------------------
  |  Branch (1307:17): [True: 31.0k, False: 92.1k]
  ------------------
 1308|  31.0k|                return false;
 1309|   123k|        }
 1310|  98.7k|    }
 1311|       |
 1312|  67.6k|    return allConstant;
 1313|  98.7k|}
_ZN7glslang13TIntermediate15foldConstructorEPNS_16TIntermAggregateE:
 1316|  57.2k|{
 1317|  57.2k|    bool error = false;
 1318|       |
 1319|  57.2k|    TConstUnionArray unionArray(aggrNode->getType().computeNumComponents());
 1320|  57.2k|    if (aggrNode->getSequence().size() == 1)
  ------------------
  |  Branch (1320:9): [True: 44.3k, False: 12.9k]
  ------------------
 1321|  44.3k|        error = parseConstTree(aggrNode, unionArray, aggrNode->getOp(), aggrNode->getType(), true);
 1322|  12.9k|    else
 1323|  12.9k|        error = parseConstTree(aggrNode, unionArray, aggrNode->getOp(), aggrNode->getType());
 1324|       |
 1325|  57.2k|    if (error)
  ------------------
  |  Branch (1325:9): [True: 0, False: 57.2k]
  ------------------
 1326|      0|        return aggrNode;
 1327|       |
 1328|  57.2k|    return addConstantUnion(unionArray, aggrNode->getType(), aggrNode->getLoc());
 1329|  57.2k|}
_ZN7glslang13TIntermediate15foldDereferenceEPNS_12TIntermTypedEiRKNS_10TSourceLocE:
 1337|    835|{
 1338|    835|    TType dereferencedType(node->getType(), index);
 1339|    835|    dereferencedType.getQualifier().storage = EvqConst;
 1340|    835|    TIntermTyped* result = nullptr;
 1341|    835|    int size = dereferencedType.computeNumComponents();
 1342|       |
 1343|       |    // arrays, vectors, matrices, all use simple multiplicative math
 1344|       |    // while structures need to add up heterogeneous members
 1345|    835|    int start;
 1346|    835|    if (node->getType().isCoopMat())
  ------------------
  |  Branch (1346:9): [True: 0, False: 835]
  ------------------
 1347|      0|        start = 0;
 1348|    835|    else if (node->isArray() || ! node->isStruct())
  ------------------
  |  Branch (1348:14): [True: 242, False: 593]
  |  Branch (1348:33): [True: 509, False: 84]
  ------------------
 1349|    751|        start = size * index;
 1350|     84|    else {
 1351|       |        // it is a structure
 1352|     84|        assert(node->isStruct());
 1353|     84|        start = 0;
 1354|    200|        for (int i = 0; i < index; ++i)
  ------------------
  |  Branch (1354:25): [True: 116, False: 84]
  ------------------
 1355|    116|            start += (*node->getType().getStruct())[i].type->computeNumComponents();
 1356|     84|    }
 1357|       |
 1358|    835|    size = std::min(size, node->getAsConstantUnion()->getConstArray().size());
 1359|    835|    result = addConstantUnion(TConstUnionArray(node->getAsConstantUnion()->getConstArray(), start, size), node->getType(), loc);
 1360|       |
 1361|    835|    if (result == nullptr)
  ------------------
  |  Branch (1361:9): [True: 0, False: 835]
  ------------------
 1362|      0|        result = node;
 1363|    835|    else
 1364|    835|        result->setType(dereferencedType);
 1365|       |
 1366|    835|    return result;
 1367|    835|}
_ZN7glslang13TIntermediate11foldSwizzleEPNS_12TIntermTypedERNS_17TSwizzleSelectorsIiEERKNS_10TSourceLocE:
 1374|    358|{
 1375|    358|    const TConstUnionArray& unionArray = node->getAsConstantUnion()->getConstArray();
 1376|    358|    TConstUnionArray constArray(selectors.size());
 1377|       |
 1378|    716|    for (int i = 0; i < selectors.size(); i++)
  ------------------
  |  Branch (1378:21): [True: 358, False: 358]
  ------------------
 1379|    358|        constArray[i] = unionArray[selectors[i]];
 1380|       |
 1381|    358|    TIntermTyped* result = addConstantUnion(constArray, node->getType(), loc);
 1382|       |
 1383|    358|    if (result == nullptr)
  ------------------
  |  Branch (1383:9): [True: 0, False: 358]
  ------------------
 1384|      0|        result = node;
 1385|    358|    else
 1386|    358|        result->setType(TType(node->getBasicType(), EvqConst, selectors.size()));
 1387|       |
 1388|    358|    return result;
 1389|    358|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIifEET_T0_:
   57|      4|{
   58|      4|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|      4|    To to;
   60|      4|    memcpy(&to, &from, sizeof(to));
   61|      4|    return to;
   62|      4|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIjfEET_T0_:
   57|      6|{
   58|      6|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|      6|    To to;
   60|      6|    memcpy(&to, &from, sizeof(to));
   61|      6|    return to;
   62|      6|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIfiEET_T0_:
   57|      2|{
   58|      2|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|      2|    To to;
   60|      2|    memcpy(&to, &from, sizeof(to));
   61|      2|    return to;
   62|      2|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIfjEET_T0_:
   57|      2|{
   58|      2|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|      2|    To to;
   60|      2|    memcpy(&to, &from, sizeof(to));
   61|      2|    return to;
   62|      2|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIxdEET_T0_:
   57|    819|{
   58|    819|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|    819|    To to;
   60|    819|    memcpy(&to, &from, sizeof(to));
   61|    819|    return to;
   62|    819|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIydEET_T0_:
   57|    802|{
   58|    802|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|    802|    To to;
   60|    802|    memcpy(&to, &from, sizeof(to));
   61|    802|    return to;
   62|    802|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIdxEET_T0_:
   57|    779|{
   58|    779|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|    779|    To to;
   60|    779|    memcpy(&to, &from, sizeof(to));
   61|    779|    return to;
   62|    779|}
Constant.cpp:_ZN12_GLOBAL__N_17bitCastIdyEET_T0_:
   57|    759|{
   58|    759|    static_assert(sizeof(To) == sizeof(From), "bitCast requires equally sized types");
   59|    759|    To to;
   60|    759|    memcpy(&to, &from, sizeof(to));
   61|    759|    return to;
   62|    759|}

_ZN7glslang13TInfoSinkBase6appendEPKc:
   42|  40.0M|{
   43|  40.0M|    if (outputStream & EString) {
  ------------------
  |  Branch (43:9): [True: 40.0M, False: 0]
  ------------------
   44|  40.0M|        if (s == nullptr)
  ------------------
  |  Branch (44:13): [True: 0, False: 40.0M]
  ------------------
   45|      0|            sink.append("(null)");
   46|  40.0M|        else {
   47|  40.0M|            checkMem(strlen(s));
   48|  40.0M|            sink.append(s);
   49|  40.0M|        }
   50|  40.0M|    }
   51|       |
   52|       |//#ifdef _WIN32
   53|       |//    if (outputStream & EDebugger)
   54|       |//        OutputDebugString(s);
   55|       |//#endif
   56|       |
   57|  40.0M|    if (outputStream & EStdOut)
  ------------------
  |  Branch (57:9): [True: 0, False: 40.0M]
  ------------------
   58|      0|        fprintf(stdout, "%s", s);
   59|  40.0M|}
_ZN7glslang13TInfoSinkBase6appendERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   82|  3.87M|{
   83|  3.87M|    if (outputStream & EString) {
  ------------------
  |  Branch (83:9): [True: 3.87M, False: 0]
  ------------------
   84|  3.87M|        checkMem(t.size());
   85|  3.87M|        sink.append(t);
   86|  3.87M|    }
   87|       |
   88|       |//#ifdef _WIN32
   89|       |//    if (outputStream & EDebugger)
   90|       |//        OutputDebugString(t.c_str());
   91|       |//#endif
   92|       |
   93|  3.87M|    if (outputStream & EStdOut)
  ------------------
  |  Branch (93:9): [True: 0, False: 3.87M]
  ------------------
   94|      0|        fprintf(stdout, "%s", t.c_str());
   95|  3.87M|}
_ZN7glslang13TInfoSinkBase6appendERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEE:
   98|  3.14k|{
   99|  3.14k|    if (outputStream & EString) {
  ------------------
  |  Branch (99:9): [True: 3.14k, False: 0]
  ------------------
  100|  3.14k|        checkMem(t.size());
  101|  3.14k|        sink.append(t.c_str());
  102|  3.14k|    }
  103|       |
  104|       |//#ifdef _WIN32
  105|       |//    if (outputStream & EDebugger)
  106|       |//        OutputDebugString(t.c_str());
  107|       |//#endif
  108|       |
  109|  3.14k|    if (outputStream & EStdOut)
  ------------------
  |  Branch (109:9): [True: 0, False: 3.14k]
  ------------------
  110|      0|        fprintf(stdout, "%s", t.c_str());
  111|  3.14k|}

_ZN7glslang9TBuiltIns17addTabledBuiltinsEi8EProfileRKNS_10SpvVersionE:
  509|  1.42k|{
  510|  1.42k|    const auto forEachFunction = [&](TString& decls, const span<const BuiltInFunction>& functions) {
  511|  1.42k|        for (const auto& fn : functions) {
  512|  1.42k|            if (ValidVersion(fn, version, profile, spvVersion)) {
  513|  1.42k|                AddTabledBuiltin(decls, fn);
  514|  1.42k|                if (profile != EEsProfile) {
  515|  1.42k|                    AddLongVectorBuiltin(decls, fn);
  516|  1.42k|                }
  517|  1.42k|            }
  518|  1.42k|        }
  519|  1.42k|    };
  520|       |
  521|  1.42k|    forEachFunction(commonBuiltins, BaseFunctions);
  522|  1.42k|    forEachFunction(stageBuiltins[EShLangFragment], DerivativeFunctions);
  523|       |
  524|  1.42k|    if ((profile == EEsProfile && version >= 320) || (profile != EEsProfile && version >= 450))
  ------------------
  |  Branch (524:10): [True: 148, False: 1.27k]
  |  Branch (524:35): [True: 7, False: 141]
  |  Branch (524:55): [True: 1.27k, False: 141]
  |  Branch (524:80): [True: 301, False: 971]
  ------------------
  525|    308|        forEachFunction(stageBuiltins[EShLangCompute], DerivativeFunctions);
  526|  1.42k|}
_ZN7glslang9TBuiltIns20relateTabledBuiltinsEi8EProfileRKNS_10SpvVersionE11EShLanguageRNS_12TSymbolTableE:
  530|  8.65k|{
  531|  8.65k|    RelateTabledBuiltins(BaseFunctions, symbolTable);
  532|  8.65k|    RelateTabledBuiltins(DerivativeFunctions, symbolTable);
  533|  8.65k|    RelateTabledBuiltins(CustomFunctions, symbolTable);
  534|  8.65k|}
_ZN7glslang18TBuiltInParseablesC2Ev:
  544|  5.68k|{
  545|  5.68k|}
_ZN7glslang18TBuiltInParseablesD2Ev:
  549|  5.68k|{
  550|  5.68k|}
_ZN7glslang9TBuiltInsC2Ev:
  553|  5.68k|{
  554|       |    // Set up textual representations for making all the permutations
  555|       |    // of texturing/imaging functions.
  556|  5.68k|    prefixes[EbtFloat] =  "";
  557|  5.68k|    prefixes[EbtInt]   = "i";
  558|  5.68k|    prefixes[EbtUint]  = "u";
  559|  5.68k|    prefixes[EbtFloat16] = "f16";
  560|  5.68k|    prefixes[EbtInt8]  = "i8";
  561|  5.68k|    prefixes[EbtUint8] = "u8";
  562|  5.68k|    prefixes[EbtInt16]  = "i16";
  563|  5.68k|    prefixes[EbtUint16] = "u16";
  564|  5.68k|    prefixes[EbtInt64]  = "i64";
  565|  5.68k|    prefixes[EbtUint64] = "u64";
  566|       |
  567|  5.68k|    postfixes[2] = "2";
  568|  5.68k|    postfixes[3] = "3";
  569|  5.68k|    postfixes[4] = "4";
  570|       |
  571|       |    // Map from symbolic class of texturing dimension to numeric dimensions.
  572|  5.68k|    dimMap[Esd2D] = 2;
  573|  5.68k|    dimMap[Esd3D] = 3;
  574|  5.68k|    dimMap[EsdCube] = 3;
  575|  5.68k|    dimMap[Esd1D] = 1;
  576|  5.68k|    dimMap[EsdRect] = 2;
  577|  5.68k|    dimMap[EsdBuffer] = 1;
  578|  5.68k|    dimMap[EsdSubpass] = 2;  // potentially unused for now
  579|  5.68k|    dimMap[EsdAttachmentEXT] = 2;  // potentially unused for now
  580|  5.68k|}
_ZN7glslang9TBuiltIns10initializeEi8EProfileRKNS_10SpvVersionE:
  596|  1.42k|{
  597|  1.42k|    addTabledBuiltins(version, profile, spvVersion);
  598|       |
  599|       |    //============================================================================
  600|       |    //
  601|       |    // Prototypes for built-in functions used repeatly by different shaders
  602|       |    //
  603|       |    //============================================================================
  604|       |
  605|       |    //
  606|       |    // Derivatives Functions.
  607|       |    //
  608|  1.42k|    TString derivatives (
  609|  1.42k|        "float dFdx(float p);"
  610|  1.42k|        "vec2  dFdx(vec2  p);"
  611|  1.42k|        "vec3  dFdx(vec3  p);"
  612|  1.42k|        "vec4  dFdx(vec4  p);"
  613|       |
  614|  1.42k|        "float dFdy(float p);"
  615|  1.42k|        "vec2  dFdy(vec2  p);"
  616|  1.42k|        "vec3  dFdy(vec3  p);"
  617|  1.42k|        "vec4  dFdy(vec4  p);"
  618|       |
  619|  1.42k|        "float fwidth(float p);"
  620|  1.42k|        "vec2  fwidth(vec2  p);"
  621|  1.42k|        "vec3  fwidth(vec3  p);"
  622|  1.42k|        "vec4  fwidth(vec4  p);"
  623|  1.42k|    );
  624|       |
  625|  1.42k|    TString derivativeControls (
  626|  1.42k|        "float dFdxFine(float p);"
  627|  1.42k|        "vec2  dFdxFine(vec2  p);"
  628|  1.42k|        "vec3  dFdxFine(vec3  p);"
  629|  1.42k|        "vec4  dFdxFine(vec4  p);"
  630|       |
  631|  1.42k|        "float dFdyFine(float p);"
  632|  1.42k|        "vec2  dFdyFine(vec2  p);"
  633|  1.42k|        "vec3  dFdyFine(vec3  p);"
  634|  1.42k|        "vec4  dFdyFine(vec4  p);"
  635|       |
  636|  1.42k|        "float fwidthFine(float p);"
  637|  1.42k|        "vec2  fwidthFine(vec2  p);"
  638|  1.42k|        "vec3  fwidthFine(vec3  p);"
  639|  1.42k|        "vec4  fwidthFine(vec4  p);"
  640|       |
  641|  1.42k|        "float dFdxCoarse(float p);"
  642|  1.42k|        "vec2  dFdxCoarse(vec2  p);"
  643|  1.42k|        "vec3  dFdxCoarse(vec3  p);"
  644|  1.42k|        "vec4  dFdxCoarse(vec4  p);"
  645|       |
  646|  1.42k|        "float dFdyCoarse(float p);"
  647|  1.42k|        "vec2  dFdyCoarse(vec2  p);"
  648|  1.42k|        "vec3  dFdyCoarse(vec3  p);"
  649|  1.42k|        "vec4  dFdyCoarse(vec4  p);"
  650|       |
  651|  1.42k|        "float fwidthCoarse(float p);"
  652|  1.42k|        "vec2  fwidthCoarse(vec2  p);"
  653|  1.42k|        "vec3  fwidthCoarse(vec3  p);"
  654|  1.42k|        "vec4  fwidthCoarse(vec4  p);"
  655|  1.42k|    );
  656|       |
  657|  1.42k|    TString derivativesAndControl16bits (
  658|  1.42k|        "float16_t dFdx(float16_t);"
  659|  1.42k|        "f16vec2   dFdx(f16vec2);"
  660|  1.42k|        "f16vec3   dFdx(f16vec3);"
  661|  1.42k|        "f16vec4   dFdx(f16vec4);"
  662|       |
  663|  1.42k|        "float16_t dFdy(float16_t);"
  664|  1.42k|        "f16vec2   dFdy(f16vec2);"
  665|  1.42k|        "f16vec3   dFdy(f16vec3);"
  666|  1.42k|        "f16vec4   dFdy(f16vec4);"
  667|       |
  668|  1.42k|        "float16_t dFdxFine(float16_t);"
  669|  1.42k|        "f16vec2   dFdxFine(f16vec2);"
  670|  1.42k|        "f16vec3   dFdxFine(f16vec3);"
  671|  1.42k|        "f16vec4   dFdxFine(f16vec4);"
  672|       |
  673|  1.42k|        "float16_t dFdyFine(float16_t);"
  674|  1.42k|        "f16vec2   dFdyFine(f16vec2);"
  675|  1.42k|        "f16vec3   dFdyFine(f16vec3);"
  676|  1.42k|        "f16vec4   dFdyFine(f16vec4);"
  677|       |
  678|  1.42k|        "float16_t dFdxCoarse(float16_t);"
  679|  1.42k|        "f16vec2   dFdxCoarse(f16vec2);"
  680|  1.42k|        "f16vec3   dFdxCoarse(f16vec3);"
  681|  1.42k|        "f16vec4   dFdxCoarse(f16vec4);"
  682|       |
  683|  1.42k|        "float16_t dFdyCoarse(float16_t);"
  684|  1.42k|        "f16vec2   dFdyCoarse(f16vec2);"
  685|  1.42k|        "f16vec3   dFdyCoarse(f16vec3);"
  686|  1.42k|        "f16vec4   dFdyCoarse(f16vec4);"
  687|       |
  688|  1.42k|        "float16_t fwidth(float16_t);"
  689|  1.42k|        "f16vec2   fwidth(f16vec2);"
  690|  1.42k|        "f16vec3   fwidth(f16vec3);"
  691|  1.42k|        "f16vec4   fwidth(f16vec4);"
  692|       |
  693|  1.42k|        "float16_t fwidthFine(float16_t);"
  694|  1.42k|        "f16vec2   fwidthFine(f16vec2);"
  695|  1.42k|        "f16vec3   fwidthFine(f16vec3);"
  696|  1.42k|        "f16vec4   fwidthFine(f16vec4);"
  697|       |
  698|  1.42k|        "float16_t fwidthCoarse(float16_t);"
  699|  1.42k|        "f16vec2   fwidthCoarse(f16vec2);"
  700|  1.42k|        "f16vec3   fwidthCoarse(f16vec3);"
  701|  1.42k|        "f16vec4   fwidthCoarse(f16vec4);"
  702|  1.42k|    );
  703|       |
  704|  1.42k|    TString derivativesAndControl64bits (
  705|  1.42k|        "float64_t dFdx(float64_t);"
  706|  1.42k|        "f64vec2   dFdx(f64vec2);"
  707|  1.42k|        "f64vec3   dFdx(f64vec3);"
  708|  1.42k|        "f64vec4   dFdx(f64vec4);"
  709|       |
  710|  1.42k|        "float64_t dFdy(float64_t);"
  711|  1.42k|        "f64vec2   dFdy(f64vec2);"
  712|  1.42k|        "f64vec3   dFdy(f64vec3);"
  713|  1.42k|        "f64vec4   dFdy(f64vec4);"
  714|       |
  715|  1.42k|        "float64_t dFdxFine(float64_t);"
  716|  1.42k|        "f64vec2   dFdxFine(f64vec2);"
  717|  1.42k|        "f64vec3   dFdxFine(f64vec3);"
  718|  1.42k|        "f64vec4   dFdxFine(f64vec4);"
  719|       |
  720|  1.42k|        "float64_t dFdyFine(float64_t);"
  721|  1.42k|        "f64vec2   dFdyFine(f64vec2);"
  722|  1.42k|        "f64vec3   dFdyFine(f64vec3);"
  723|  1.42k|        "f64vec4   dFdyFine(f64vec4);"
  724|       |
  725|  1.42k|        "float64_t dFdxCoarse(float64_t);"
  726|  1.42k|        "f64vec2   dFdxCoarse(f64vec2);"
  727|  1.42k|        "f64vec3   dFdxCoarse(f64vec3);"
  728|  1.42k|        "f64vec4   dFdxCoarse(f64vec4);"
  729|       |
  730|  1.42k|        "float64_t dFdyCoarse(float64_t);"
  731|  1.42k|        "f64vec2   dFdyCoarse(f64vec2);"
  732|  1.42k|        "f64vec3   dFdyCoarse(f64vec3);"
  733|  1.42k|        "f64vec4   dFdyCoarse(f64vec4);"
  734|       |
  735|  1.42k|        "float64_t fwidth(float64_t);"
  736|  1.42k|        "f64vec2   fwidth(f64vec2);"
  737|  1.42k|        "f64vec3   fwidth(f64vec3);"
  738|  1.42k|        "f64vec4   fwidth(f64vec4);"
  739|       |
  740|  1.42k|        "float64_t fwidthFine(float64_t);"
  741|  1.42k|        "f64vec2   fwidthFine(f64vec2);"
  742|  1.42k|        "f64vec3   fwidthFine(f64vec3);"
  743|  1.42k|        "f64vec4   fwidthFine(f64vec4);"
  744|       |
  745|  1.42k|        "float64_t fwidthCoarse(float64_t);"
  746|  1.42k|        "f64vec2   fwidthCoarse(f64vec2);"
  747|  1.42k|        "f64vec3   fwidthCoarse(f64vec3);"
  748|  1.42k|        "f64vec4   fwidthCoarse(f64vec4);"
  749|  1.42k|    );
  750|       |
  751|       |    //============================================================================
  752|       |    //
  753|       |    // Prototypes for built-in functions seen by both vertex and fragment shaders.
  754|       |    //
  755|       |    //============================================================================
  756|       |
  757|       |    //
  758|       |    // double functions added to desktop 4.00, but not fma, frexp, ldexp, or pack/unpack
  759|       |    //
  760|  1.42k|    if (profile != EEsProfile && version >= 150) {  // ARB_gpu_shader_fp64
  ------------------
  |  Branch (760:9): [True: 1.27k, False: 148]
  |  Branch (760:34): [True: 756, False: 516]
  ------------------
  761|    756|        commonBuiltins.append(
  762|       |
  763|    756|            "double sqrt(double);"
  764|    756|            "dvec2  sqrt(dvec2);"
  765|    756|            "dvec3  sqrt(dvec3);"
  766|    756|            "dvec4  sqrt(dvec4);"
  767|       |
  768|    756|            "double inversesqrt(double);"
  769|    756|            "dvec2  inversesqrt(dvec2);"
  770|    756|            "dvec3  inversesqrt(dvec3);"
  771|    756|            "dvec4  inversesqrt(dvec4);"
  772|       |
  773|    756|            "double abs(double);"
  774|    756|            "dvec2  abs(dvec2);"
  775|    756|            "dvec3  abs(dvec3);"
  776|    756|            "dvec4  abs(dvec4);"
  777|       |
  778|    756|            "double sign(double);"
  779|    756|            "dvec2  sign(dvec2);"
  780|    756|            "dvec3  sign(dvec3);"
  781|    756|            "dvec4  sign(dvec4);"
  782|       |
  783|    756|            "double floor(double);"
  784|    756|            "dvec2  floor(dvec2);"
  785|    756|            "dvec3  floor(dvec3);"
  786|    756|            "dvec4  floor(dvec4);"
  787|       |
  788|    756|            "double trunc(double);"
  789|    756|            "dvec2  trunc(dvec2);"
  790|    756|            "dvec3  trunc(dvec3);"
  791|    756|            "dvec4  trunc(dvec4);"
  792|       |
  793|    756|            "double round(double);"
  794|    756|            "dvec2  round(dvec2);"
  795|    756|            "dvec3  round(dvec3);"
  796|    756|            "dvec4  round(dvec4);"
  797|       |
  798|    756|            "double roundEven(double);"
  799|    756|            "dvec2  roundEven(dvec2);"
  800|    756|            "dvec3  roundEven(dvec3);"
  801|    756|            "dvec4  roundEven(dvec4);"
  802|       |
  803|    756|            "double ceil(double);"
  804|    756|            "dvec2  ceil(dvec2);"
  805|    756|            "dvec3  ceil(dvec3);"
  806|    756|            "dvec4  ceil(dvec4);"
  807|       |
  808|    756|            "double fract(double);"
  809|    756|            "dvec2  fract(dvec2);"
  810|    756|            "dvec3  fract(dvec3);"
  811|    756|            "dvec4  fract(dvec4);"
  812|       |
  813|    756|            "double mod(double, double);"
  814|    756|            "dvec2  mod(dvec2 , double);"
  815|    756|            "dvec3  mod(dvec3 , double);"
  816|    756|            "dvec4  mod(dvec4 , double);"
  817|    756|            "dvec2  mod(dvec2 , dvec2);"
  818|    756|            "dvec3  mod(dvec3 , dvec3);"
  819|    756|            "dvec4  mod(dvec4 , dvec4);"
  820|       |
  821|    756|            "double modf(double, out double);"
  822|    756|            "dvec2  modf(dvec2,  out dvec2);"
  823|    756|            "dvec3  modf(dvec3,  out dvec3);"
  824|    756|            "dvec4  modf(dvec4,  out dvec4);"
  825|       |
  826|    756|            "double min(double, double);"
  827|    756|            "dvec2  min(dvec2,  double);"
  828|    756|            "dvec3  min(dvec3,  double);"
  829|    756|            "dvec4  min(dvec4,  double);"
  830|    756|            "dvec2  min(dvec2,  dvec2);"
  831|    756|            "dvec3  min(dvec3,  dvec3);"
  832|    756|            "dvec4  min(dvec4,  dvec4);"
  833|       |
  834|    756|            "double max(double, double);"
  835|    756|            "dvec2  max(dvec2 , double);"
  836|    756|            "dvec3  max(dvec3 , double);"
  837|    756|            "dvec4  max(dvec4 , double);"
  838|    756|            "dvec2  max(dvec2 , dvec2);"
  839|    756|            "dvec3  max(dvec3 , dvec3);"
  840|    756|            "dvec4  max(dvec4 , dvec4);"
  841|       |
  842|    756|            "double clamp(double, double, double);"
  843|    756|            "dvec2  clamp(dvec2 , double, double);"
  844|    756|            "dvec3  clamp(dvec3 , double, double);"
  845|    756|            "dvec4  clamp(dvec4 , double, double);"
  846|    756|            "dvec2  clamp(dvec2 , dvec2 , dvec2);"
  847|    756|            "dvec3  clamp(dvec3 , dvec3 , dvec3);"
  848|    756|            "dvec4  clamp(dvec4 , dvec4 , dvec4);"
  849|       |
  850|    756|            "double mix(double, double, double);"
  851|    756|            "dvec2  mix(dvec2,  dvec2,  double);"
  852|    756|            "dvec3  mix(dvec3,  dvec3,  double);"
  853|    756|            "dvec4  mix(dvec4,  dvec4,  double);"
  854|    756|            "dvec2  mix(dvec2,  dvec2,  dvec2);"
  855|    756|            "dvec3  mix(dvec3,  dvec3,  dvec3);"
  856|    756|            "dvec4  mix(dvec4,  dvec4,  dvec4);"
  857|    756|            "double mix(double, double, bool);"
  858|    756|            "dvec2  mix(dvec2,  dvec2,  bvec2);"
  859|    756|            "dvec3  mix(dvec3,  dvec3,  bvec3);"
  860|    756|            "dvec4  mix(dvec4,  dvec4,  bvec4);"
  861|       |
  862|    756|            "double step(double, double);"
  863|    756|            "dvec2  step(dvec2 , dvec2);"
  864|    756|            "dvec3  step(dvec3 , dvec3);"
  865|    756|            "dvec4  step(dvec4 , dvec4);"
  866|    756|            "dvec2  step(double, dvec2);"
  867|    756|            "dvec3  step(double, dvec3);"
  868|    756|            "dvec4  step(double, dvec4);"
  869|       |
  870|    756|            "double smoothstep(double, double, double);"
  871|    756|            "dvec2  smoothstep(dvec2 , dvec2 , dvec2);"
  872|    756|            "dvec3  smoothstep(dvec3 , dvec3 , dvec3);"
  873|    756|            "dvec4  smoothstep(dvec4 , dvec4 , dvec4);"
  874|    756|            "dvec2  smoothstep(double, double, dvec2);"
  875|    756|            "dvec3  smoothstep(double, double, dvec3);"
  876|    756|            "dvec4  smoothstep(double, double, dvec4);"
  877|       |
  878|    756|            "bool  isnan(double);"
  879|    756|            "bvec2 isnan(dvec2);"
  880|    756|            "bvec3 isnan(dvec3);"
  881|    756|            "bvec4 isnan(dvec4);"
  882|       |
  883|    756|            "bool  isinf(double);"
  884|    756|            "bvec2 isinf(dvec2);"
  885|    756|            "bvec3 isinf(dvec3);"
  886|    756|            "bvec4 isinf(dvec4);"
  887|       |
  888|    756|            "double length(double);"
  889|    756|            "double length(dvec2);"
  890|    756|            "double length(dvec3);"
  891|    756|            "double length(dvec4);"
  892|       |
  893|    756|            "double distance(double, double);"
  894|    756|            "double distance(dvec2 , dvec2);"
  895|    756|            "double distance(dvec3 , dvec3);"
  896|    756|            "double distance(dvec4 , dvec4);"
  897|       |
  898|    756|            "double dot(double, double);"
  899|    756|            "double dot(dvec2 , dvec2);"
  900|    756|            "double dot(dvec3 , dvec3);"
  901|    756|            "double dot(dvec4 , dvec4);"
  902|       |
  903|    756|            "dvec3 cross(dvec3, dvec3);"
  904|       |
  905|    756|            "double normalize(double);"
  906|    756|            "dvec2  normalize(dvec2);"
  907|    756|            "dvec3  normalize(dvec3);"
  908|    756|            "dvec4  normalize(dvec4);"
  909|       |
  910|    756|            "double faceforward(double, double, double);"
  911|    756|            "dvec2  faceforward(dvec2,  dvec2,  dvec2);"
  912|    756|            "dvec3  faceforward(dvec3,  dvec3,  dvec3);"
  913|    756|            "dvec4  faceforward(dvec4,  dvec4,  dvec4);"
  914|       |
  915|    756|            "double reflect(double, double);"
  916|    756|            "dvec2  reflect(dvec2 , dvec2 );"
  917|    756|            "dvec3  reflect(dvec3 , dvec3 );"
  918|    756|            "dvec4  reflect(dvec4 , dvec4 );"
  919|       |
  920|    756|            "double refract(double, double, double);"
  921|    756|            "dvec2  refract(dvec2 , dvec2 , double);"
  922|    756|            "dvec3  refract(dvec3 , dvec3 , double);"
  923|    756|            "dvec4  refract(dvec4 , dvec4 , double);"
  924|       |
  925|    756|            "dmat2 matrixCompMult(dmat2, dmat2);"
  926|    756|            "dmat3 matrixCompMult(dmat3, dmat3);"
  927|    756|            "dmat4 matrixCompMult(dmat4, dmat4);"
  928|    756|            "dmat2x3 matrixCompMult(dmat2x3, dmat2x3);"
  929|    756|            "dmat2x4 matrixCompMult(dmat2x4, dmat2x4);"
  930|    756|            "dmat3x2 matrixCompMult(dmat3x2, dmat3x2);"
  931|    756|            "dmat3x4 matrixCompMult(dmat3x4, dmat3x4);"
  932|    756|            "dmat4x2 matrixCompMult(dmat4x2, dmat4x2);"
  933|    756|            "dmat4x3 matrixCompMult(dmat4x3, dmat4x3);"
  934|       |
  935|    756|            "dmat2   outerProduct(dvec2, dvec2);"
  936|    756|            "dmat3   outerProduct(dvec3, dvec3);"
  937|    756|            "dmat4   outerProduct(dvec4, dvec4);"
  938|    756|            "dmat2x3 outerProduct(dvec3, dvec2);"
  939|    756|            "dmat3x2 outerProduct(dvec2, dvec3);"
  940|    756|            "dmat2x4 outerProduct(dvec4, dvec2);"
  941|    756|            "dmat4x2 outerProduct(dvec2, dvec4);"
  942|    756|            "dmat3x4 outerProduct(dvec4, dvec3);"
  943|    756|            "dmat4x3 outerProduct(dvec3, dvec4);"
  944|       |
  945|    756|            "dmat2   transpose(dmat2);"
  946|    756|            "dmat3   transpose(dmat3);"
  947|    756|            "dmat4   transpose(dmat4);"
  948|    756|            "dmat2x3 transpose(dmat3x2);"
  949|    756|            "dmat3x2 transpose(dmat2x3);"
  950|    756|            "dmat2x4 transpose(dmat4x2);"
  951|    756|            "dmat4x2 transpose(dmat2x4);"
  952|    756|            "dmat3x4 transpose(dmat4x3);"
  953|    756|            "dmat4x3 transpose(dmat3x4);"
  954|       |
  955|    756|            "double determinant(dmat2);"
  956|    756|            "double determinant(dmat3);"
  957|    756|            "double determinant(dmat4);"
  958|       |
  959|    756|            "dmat2 inverse(dmat2);"
  960|    756|            "dmat3 inverse(dmat3);"
  961|    756|            "dmat4 inverse(dmat4);"
  962|       |
  963|    756|            "bvec2 lessThan(dvec2, dvec2);"
  964|    756|            "bvec3 lessThan(dvec3, dvec3);"
  965|    756|            "bvec4 lessThan(dvec4, dvec4);"
  966|       |
  967|    756|            "bvec2 lessThanEqual(dvec2, dvec2);"
  968|    756|            "bvec3 lessThanEqual(dvec3, dvec3);"
  969|    756|            "bvec4 lessThanEqual(dvec4, dvec4);"
  970|       |
  971|    756|            "bvec2 greaterThan(dvec2, dvec2);"
  972|    756|            "bvec3 greaterThan(dvec3, dvec3);"
  973|    756|            "bvec4 greaterThan(dvec4, dvec4);"
  974|       |
  975|    756|            "bvec2 greaterThanEqual(dvec2, dvec2);"
  976|    756|            "bvec3 greaterThanEqual(dvec3, dvec3);"
  977|    756|            "bvec4 greaterThanEqual(dvec4, dvec4);"
  978|       |
  979|    756|            "bvec2 equal(dvec2, dvec2);"
  980|    756|            "bvec3 equal(dvec3, dvec3);"
  981|    756|            "bvec4 equal(dvec4, dvec4);"
  982|       |
  983|    756|            "bvec2 notEqual(dvec2, dvec2);"
  984|    756|            "bvec3 notEqual(dvec3, dvec3);"
  985|    756|            "bvec4 notEqual(dvec4, dvec4);"
  986|       |
  987|    756|            "\n");
  988|    756|    }
  989|       |
  990|  1.42k|    if (profile == EEsProfile && version >= 310) {  // Explicit Types
  ------------------
  |  Branch (990:9): [True: 148, False: 1.27k]
  |  Branch (990:34): [True: 148, False: 0]
  ------------------
  991|    148|      commonBuiltins.append(
  992|       |
  993|    148|        "float64_t sqrt(float64_t);"
  994|    148|        "f64vec2  sqrt(f64vec2);"
  995|    148|        "f64vec3  sqrt(f64vec3);"
  996|    148|        "f64vec4  sqrt(f64vec4);"
  997|       |
  998|    148|        "float64_t inversesqrt(float64_t);"
  999|    148|        "f64vec2  inversesqrt(f64vec2);"
 1000|    148|        "f64vec3  inversesqrt(f64vec3);"
 1001|    148|        "f64vec4  inversesqrt(f64vec4);"
 1002|       |
 1003|    148|        "float64_t abs(float64_t);"
 1004|    148|        "f64vec2  abs(f64vec2);"
 1005|    148|        "f64vec3  abs(f64vec3);"
 1006|    148|        "f64vec4  abs(f64vec4);"
 1007|       |
 1008|    148|        "float64_t sign(float64_t);"
 1009|    148|        "f64vec2  sign(f64vec2);"
 1010|    148|        "f64vec3  sign(f64vec3);"
 1011|    148|        "f64vec4  sign(f64vec4);"
 1012|       |
 1013|    148|        "float64_t floor(float64_t);"
 1014|    148|        "f64vec2  floor(f64vec2);"
 1015|    148|        "f64vec3  floor(f64vec3);"
 1016|    148|        "f64vec4  floor(f64vec4);"
 1017|       |
 1018|    148|        "float64_t trunc(float64_t);"
 1019|    148|        "f64vec2  trunc(f64vec2);"
 1020|    148|        "f64vec3  trunc(f64vec3);"
 1021|    148|        "f64vec4  trunc(f64vec4);"
 1022|       |
 1023|    148|        "float64_t round(float64_t);"
 1024|    148|        "f64vec2  round(f64vec2);"
 1025|    148|        "f64vec3  round(f64vec3);"
 1026|    148|        "f64vec4  round(f64vec4);"
 1027|       |
 1028|    148|        "float64_t roundEven(float64_t);"
 1029|    148|        "f64vec2  roundEven(f64vec2);"
 1030|    148|        "f64vec3  roundEven(f64vec3);"
 1031|    148|        "f64vec4  roundEven(f64vec4);"
 1032|       |
 1033|    148|        "float64_t ceil(float64_t);"
 1034|    148|        "f64vec2  ceil(f64vec2);"
 1035|    148|        "f64vec3  ceil(f64vec3);"
 1036|    148|        "f64vec4  ceil(f64vec4);"
 1037|       |
 1038|    148|        "float64_t fract(float64_t);"
 1039|    148|        "f64vec2  fract(f64vec2);"
 1040|    148|        "f64vec3  fract(f64vec3);"
 1041|    148|        "f64vec4  fract(f64vec4);"
 1042|       |
 1043|    148|        "float64_t mod(float64_t, float64_t);"
 1044|    148|        "f64vec2  mod(f64vec2 , float64_t);"
 1045|    148|        "f64vec3  mod(f64vec3 , float64_t);"
 1046|    148|        "f64vec4  mod(f64vec4 , float64_t);"
 1047|    148|        "f64vec2  mod(f64vec2 , f64vec2);"
 1048|    148|        "f64vec3  mod(f64vec3 , f64vec3);"
 1049|    148|        "f64vec4  mod(f64vec4 , f64vec4);"
 1050|       |
 1051|    148|        "float64_t modf(float64_t, out float64_t);"
 1052|    148|        "f64vec2  modf(f64vec2,  out f64vec2);"
 1053|    148|        "f64vec3  modf(f64vec3,  out f64vec3);"
 1054|    148|        "f64vec4  modf(f64vec4,  out f64vec4);"
 1055|       |
 1056|    148|        "float64_t min(float64_t, float64_t);"
 1057|    148|        "f64vec2  min(f64vec2,  float64_t);"
 1058|    148|        "f64vec3  min(f64vec3,  float64_t);"
 1059|    148|        "f64vec4  min(f64vec4,  float64_t);"
 1060|    148|        "f64vec2  min(f64vec2,  f64vec2);"
 1061|    148|        "f64vec3  min(f64vec3,  f64vec3);"
 1062|    148|        "f64vec4  min(f64vec4,  f64vec4);"
 1063|       |
 1064|    148|        "float64_t max(float64_t, float64_t);"
 1065|    148|        "f64vec2  max(f64vec2 , float64_t);"
 1066|    148|        "f64vec3  max(f64vec3 , float64_t);"
 1067|    148|        "f64vec4  max(f64vec4 , float64_t);"
 1068|    148|        "f64vec2  max(f64vec2 , f64vec2);"
 1069|    148|        "f64vec3  max(f64vec3 , f64vec3);"
 1070|    148|        "f64vec4  max(f64vec4 , f64vec4);"
 1071|       |
 1072|    148|        "float64_t clamp(float64_t, float64_t, float64_t);"
 1073|    148|        "f64vec2  clamp(f64vec2 , float64_t, float64_t);"
 1074|    148|        "f64vec3  clamp(f64vec3 , float64_t, float64_t);"
 1075|    148|        "f64vec4  clamp(f64vec4 , float64_t, float64_t);"
 1076|    148|        "f64vec2  clamp(f64vec2 , f64vec2 , f64vec2);"
 1077|    148|        "f64vec3  clamp(f64vec3 , f64vec3 , f64vec3);"
 1078|    148|        "f64vec4  clamp(f64vec4 , f64vec4 , f64vec4);"
 1079|       |
 1080|    148|        "float64_t mix(float64_t, float64_t, float64_t);"
 1081|    148|        "f64vec2  mix(f64vec2,  f64vec2,  float64_t);"
 1082|    148|        "f64vec3  mix(f64vec3,  f64vec3,  float64_t);"
 1083|    148|        "f64vec4  mix(f64vec4,  f64vec4,  float64_t);"
 1084|    148|        "f64vec2  mix(f64vec2,  f64vec2,  f64vec2);"
 1085|    148|        "f64vec3  mix(f64vec3,  f64vec3,  f64vec3);"
 1086|    148|        "f64vec4  mix(f64vec4,  f64vec4,  f64vec4);"
 1087|    148|        "float64_t mix(float64_t, float64_t, bool);"
 1088|    148|        "f64vec2  mix(f64vec2,  f64vec2,  bvec2);"
 1089|    148|        "f64vec3  mix(f64vec3,  f64vec3,  bvec3);"
 1090|    148|        "f64vec4  mix(f64vec4,  f64vec4,  bvec4);"
 1091|       |
 1092|    148|        "float64_t step(float64_t, float64_t);"
 1093|    148|        "f64vec2  step(f64vec2 , f64vec2);"
 1094|    148|        "f64vec3  step(f64vec3 , f64vec3);"
 1095|    148|        "f64vec4  step(f64vec4 , f64vec4);"
 1096|    148|        "f64vec2  step(float64_t, f64vec2);"
 1097|    148|        "f64vec3  step(float64_t, f64vec3);"
 1098|    148|        "f64vec4  step(float64_t, f64vec4);"
 1099|       |
 1100|    148|        "float64_t smoothstep(float64_t, float64_t, float64_t);"
 1101|    148|        "f64vec2  smoothstep(f64vec2 , f64vec2 , f64vec2);"
 1102|    148|        "f64vec3  smoothstep(f64vec3 , f64vec3 , f64vec3);"
 1103|    148|        "f64vec4  smoothstep(f64vec4 , f64vec4 , f64vec4);"
 1104|    148|        "f64vec2  smoothstep(float64_t, float64_t, f64vec2);"
 1105|    148|        "f64vec3  smoothstep(float64_t, float64_t, f64vec3);"
 1106|    148|        "f64vec4  smoothstep(float64_t, float64_t, f64vec4);"
 1107|       |
 1108|    148|        "float64_t length(float64_t);"
 1109|    148|        "float64_t length(f64vec2);"
 1110|    148|        "float64_t length(f64vec3);"
 1111|    148|        "float64_t length(f64vec4);"
 1112|       |
 1113|    148|        "float64_t distance(float64_t, float64_t);"
 1114|    148|        "float64_t distance(f64vec2 , f64vec2);"
 1115|    148|        "float64_t distance(f64vec3 , f64vec3);"
 1116|    148|        "float64_t distance(f64vec4 , f64vec4);"
 1117|       |
 1118|    148|        "float64_t dot(float64_t, float64_t);"
 1119|    148|        "float64_t dot(f64vec2 , f64vec2);"
 1120|    148|        "float64_t dot(f64vec3 , f64vec3);"
 1121|    148|        "float64_t dot(f64vec4 , f64vec4);"
 1122|       |
 1123|    148|        "f64vec3 cross(f64vec3, f64vec3);"
 1124|       |
 1125|    148|        "float64_t normalize(float64_t);"
 1126|    148|        "f64vec2  normalize(f64vec2);"
 1127|    148|        "f64vec3  normalize(f64vec3);"
 1128|    148|        "f64vec4  normalize(f64vec4);"
 1129|       |
 1130|    148|        "float64_t faceforward(float64_t, float64_t, float64_t);"
 1131|    148|        "f64vec2  faceforward(f64vec2,  f64vec2,  f64vec2);"
 1132|    148|        "f64vec3  faceforward(f64vec3,  f64vec3,  f64vec3);"
 1133|    148|        "f64vec4  faceforward(f64vec4,  f64vec4,  f64vec4);"
 1134|       |
 1135|    148|        "float64_t reflect(float64_t, float64_t);"
 1136|    148|        "f64vec2  reflect(f64vec2 , f64vec2 );"
 1137|    148|        "f64vec3  reflect(f64vec3 , f64vec3 );"
 1138|    148|        "f64vec4  reflect(f64vec4 , f64vec4 );"
 1139|       |
 1140|    148|        "float64_t refract(float64_t, float64_t, float64_t);"
 1141|    148|        "f64vec2  refract(f64vec2 , f64vec2 , float64_t);"
 1142|    148|        "f64vec3  refract(f64vec3 , f64vec3 , float64_t);"
 1143|    148|        "f64vec4  refract(f64vec4 , f64vec4 , float64_t);"
 1144|       |
 1145|    148|        "f64mat2 matrixCompMult(f64mat2, f64mat2);"
 1146|    148|        "f64mat3 matrixCompMult(f64mat3, f64mat3);"
 1147|    148|        "f64mat4 matrixCompMult(f64mat4, f64mat4);"
 1148|    148|        "f64mat2x3 matrixCompMult(f64mat2x3, f64mat2x3);"
 1149|    148|        "f64mat2x4 matrixCompMult(f64mat2x4, f64mat2x4);"
 1150|    148|        "f64mat3x2 matrixCompMult(f64mat3x2, f64mat3x2);"
 1151|    148|        "f64mat3x4 matrixCompMult(f64mat3x4, f64mat3x4);"
 1152|    148|        "f64mat4x2 matrixCompMult(f64mat4x2, f64mat4x2);"
 1153|    148|        "f64mat4x3 matrixCompMult(f64mat4x3, f64mat4x3);"
 1154|       |
 1155|    148|        "f64mat2   outerProduct(f64vec2, f64vec2);"
 1156|    148|        "f64mat3   outerProduct(f64vec3, f64vec3);"
 1157|    148|        "f64mat4   outerProduct(f64vec4, f64vec4);"
 1158|    148|        "f64mat2x3 outerProduct(f64vec3, f64vec2);"
 1159|    148|        "f64mat3x2 outerProduct(f64vec2, f64vec3);"
 1160|    148|        "f64mat2x4 outerProduct(f64vec4, f64vec2);"
 1161|    148|        "f64mat4x2 outerProduct(f64vec2, f64vec4);"
 1162|    148|        "f64mat3x4 outerProduct(f64vec4, f64vec3);"
 1163|    148|        "f64mat4x3 outerProduct(f64vec3, f64vec4);"
 1164|       |
 1165|    148|        "f64mat2   transpose(f64mat2);"
 1166|    148|        "f64mat3   transpose(f64mat3);"
 1167|    148|        "f64mat4   transpose(f64mat4);"
 1168|    148|        "f64mat2x3 transpose(f64mat3x2);"
 1169|    148|        "f64mat3x2 transpose(f64mat2x3);"
 1170|    148|        "f64mat2x4 transpose(f64mat4x2);"
 1171|    148|        "f64mat4x2 transpose(f64mat2x4);"
 1172|    148|        "f64mat3x4 transpose(f64mat4x3);"
 1173|    148|        "f64mat4x3 transpose(f64mat3x4);"
 1174|       |
 1175|    148|        "float64_t determinant(f64mat2);"
 1176|    148|        "float64_t determinant(f64mat3);"
 1177|    148|        "float64_t determinant(f64mat4);"
 1178|       |
 1179|    148|        "f64mat2 inverse(f64mat2);"
 1180|    148|        "f64mat3 inverse(f64mat3);"
 1181|    148|        "f64mat4 inverse(f64mat4);"
 1182|       |
 1183|    148|        "\n");
 1184|    148|    }
 1185|       |
 1186|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (1186:10): [True: 1.27k, False: 148]
  |  Branch (1186:35): [True: 301, False: 971]
  |  Branch (1186:55): [True: 148, False: 971]
  |  Branch (1186:80): [True: 148, False: 0]
  ------------------
 1187|    449|        commonBuiltins.append(
 1188|       |
 1189|    449|            "int64_t abs(int64_t);"
 1190|    449|            "i64vec2 abs(i64vec2);"
 1191|    449|            "i64vec3 abs(i64vec3);"
 1192|    449|            "i64vec4 abs(i64vec4);"
 1193|       |
 1194|    449|            "int64_t sign(int64_t);"
 1195|    449|            "i64vec2 sign(i64vec2);"
 1196|    449|            "i64vec3 sign(i64vec3);"
 1197|    449|            "i64vec4 sign(i64vec4);"
 1198|       |
 1199|    449|            "int64_t  min(int64_t,  int64_t);"
 1200|    449|            "i64vec2  min(i64vec2,  int64_t);"
 1201|    449|            "i64vec3  min(i64vec3,  int64_t);"
 1202|    449|            "i64vec4  min(i64vec4,  int64_t);"
 1203|    449|            "i64vec2  min(i64vec2,  i64vec2);"
 1204|    449|            "i64vec3  min(i64vec3,  i64vec3);"
 1205|    449|            "i64vec4  min(i64vec4,  i64vec4);"
 1206|    449|            "uint64_t min(uint64_t, uint64_t);"
 1207|    449|            "u64vec2  min(u64vec2,  uint64_t);"
 1208|    449|            "u64vec3  min(u64vec3,  uint64_t);"
 1209|    449|            "u64vec4  min(u64vec4,  uint64_t);"
 1210|    449|            "u64vec2  min(u64vec2,  u64vec2);"
 1211|    449|            "u64vec3  min(u64vec3,  u64vec3);"
 1212|    449|            "u64vec4  min(u64vec4,  u64vec4);"
 1213|       |
 1214|    449|            "int64_t  max(int64_t,  int64_t);"
 1215|    449|            "i64vec2  max(i64vec2,  int64_t);"
 1216|    449|            "i64vec3  max(i64vec3,  int64_t);"
 1217|    449|            "i64vec4  max(i64vec4,  int64_t);"
 1218|    449|            "i64vec2  max(i64vec2,  i64vec2);"
 1219|    449|            "i64vec3  max(i64vec3,  i64vec3);"
 1220|    449|            "i64vec4  max(i64vec4,  i64vec4);"
 1221|    449|            "uint64_t max(uint64_t, uint64_t);"
 1222|    449|            "u64vec2  max(u64vec2,  uint64_t);"
 1223|    449|            "u64vec3  max(u64vec3,  uint64_t);"
 1224|    449|            "u64vec4  max(u64vec4,  uint64_t);"
 1225|    449|            "u64vec2  max(u64vec2,  u64vec2);"
 1226|    449|            "u64vec3  max(u64vec3,  u64vec3);"
 1227|    449|            "u64vec4  max(u64vec4,  u64vec4);"
 1228|       |
 1229|    449|            "int64_t  clamp(int64_t,  int64_t,  int64_t);"
 1230|    449|            "i64vec2  clamp(i64vec2,  int64_t,  int64_t);"
 1231|    449|            "i64vec3  clamp(i64vec3,  int64_t,  int64_t);"
 1232|    449|            "i64vec4  clamp(i64vec4,  int64_t,  int64_t);"
 1233|    449|            "i64vec2  clamp(i64vec2,  i64vec2,  i64vec2);"
 1234|    449|            "i64vec3  clamp(i64vec3,  i64vec3,  i64vec3);"
 1235|    449|            "i64vec4  clamp(i64vec4,  i64vec4,  i64vec4);"
 1236|    449|            "uint64_t clamp(uint64_t, uint64_t, uint64_t);"
 1237|    449|            "u64vec2  clamp(u64vec2,  uint64_t, uint64_t);"
 1238|    449|            "u64vec3  clamp(u64vec3,  uint64_t, uint64_t);"
 1239|    449|            "u64vec4  clamp(u64vec4,  uint64_t, uint64_t);"
 1240|    449|            "u64vec2  clamp(u64vec2,  u64vec2,  u64vec2);"
 1241|    449|            "u64vec3  clamp(u64vec3,  u64vec3,  u64vec3);"
 1242|    449|            "u64vec4  clamp(u64vec4,  u64vec4,  u64vec4);"
 1243|       |
 1244|    449|            "int64_t  mix(int64_t,  int64_t,  bool);"
 1245|    449|            "i64vec2  mix(i64vec2,  i64vec2,  bvec2);"
 1246|    449|            "i64vec3  mix(i64vec3,  i64vec3,  bvec3);"
 1247|    449|            "i64vec4  mix(i64vec4,  i64vec4,  bvec4);"
 1248|    449|            "uint64_t mix(uint64_t, uint64_t, bool);"
 1249|    449|            "u64vec2  mix(u64vec2,  u64vec2,  bvec2);"
 1250|    449|            "u64vec3  mix(u64vec3,  u64vec3,  bvec3);"
 1251|    449|            "u64vec4  mix(u64vec4,  u64vec4,  bvec4);"
 1252|       |
 1253|    449|            "int64_t doubleBitsToInt64(float64_t);"
 1254|    449|            "i64vec2 doubleBitsToInt64(f64vec2);"
 1255|    449|            "i64vec3 doubleBitsToInt64(f64vec3);"
 1256|    449|            "i64vec4 doubleBitsToInt64(f64vec4);"
 1257|       |
 1258|    449|            "uint64_t doubleBitsToUint64(float64_t);"
 1259|    449|            "u64vec2  doubleBitsToUint64(f64vec2);"
 1260|    449|            "u64vec3  doubleBitsToUint64(f64vec3);"
 1261|    449|            "u64vec4  doubleBitsToUint64(f64vec4);"
 1262|       |
 1263|    449|            "float64_t int64BitsToDouble(int64_t);"
 1264|    449|            "f64vec2  int64BitsToDouble(i64vec2);"
 1265|    449|            "f64vec3  int64BitsToDouble(i64vec3);"
 1266|    449|            "f64vec4  int64BitsToDouble(i64vec4);"
 1267|       |
 1268|    449|            "float64_t uint64BitsToDouble(uint64_t);"
 1269|    449|            "f64vec2  uint64BitsToDouble(u64vec2);"
 1270|    449|            "f64vec3  uint64BitsToDouble(u64vec3);"
 1271|    449|            "f64vec4  uint64BitsToDouble(u64vec4);"
 1272|       |
 1273|    449|            "int64_t  packInt2x32(ivec2);"
 1274|    449|            "uint64_t packUint2x32(uvec2);"
 1275|    449|            "ivec2    unpackInt2x32(int64_t);"
 1276|    449|            "uvec2    unpackUint2x32(uint64_t);"
 1277|       |
 1278|    449|            "bvec2 lessThan(i64vec2, i64vec2);"
 1279|    449|            "bvec3 lessThan(i64vec3, i64vec3);"
 1280|    449|            "bvec4 lessThan(i64vec4, i64vec4);"
 1281|    449|            "bvec2 lessThan(u64vec2, u64vec2);"
 1282|    449|            "bvec3 lessThan(u64vec3, u64vec3);"
 1283|    449|            "bvec4 lessThan(u64vec4, u64vec4);"
 1284|       |
 1285|    449|            "bvec2 lessThanEqual(i64vec2, i64vec2);"
 1286|    449|            "bvec3 lessThanEqual(i64vec3, i64vec3);"
 1287|    449|            "bvec4 lessThanEqual(i64vec4, i64vec4);"
 1288|    449|            "bvec2 lessThanEqual(u64vec2, u64vec2);"
 1289|    449|            "bvec3 lessThanEqual(u64vec3, u64vec3);"
 1290|    449|            "bvec4 lessThanEqual(u64vec4, u64vec4);"
 1291|       |
 1292|    449|            "bvec2 greaterThan(i64vec2, i64vec2);"
 1293|    449|            "bvec3 greaterThan(i64vec3, i64vec3);"
 1294|    449|            "bvec4 greaterThan(i64vec4, i64vec4);"
 1295|    449|            "bvec2 greaterThan(u64vec2, u64vec2);"
 1296|    449|            "bvec3 greaterThan(u64vec3, u64vec3);"
 1297|    449|            "bvec4 greaterThan(u64vec4, u64vec4);"
 1298|       |
 1299|    449|            "bvec2 greaterThanEqual(i64vec2, i64vec2);"
 1300|    449|            "bvec3 greaterThanEqual(i64vec3, i64vec3);"
 1301|    449|            "bvec4 greaterThanEqual(i64vec4, i64vec4);"
 1302|    449|            "bvec2 greaterThanEqual(u64vec2, u64vec2);"
 1303|    449|            "bvec3 greaterThanEqual(u64vec3, u64vec3);"
 1304|    449|            "bvec4 greaterThanEqual(u64vec4, u64vec4);"
 1305|       |
 1306|    449|            "bvec2 equal(i64vec2, i64vec2);"
 1307|    449|            "bvec3 equal(i64vec3, i64vec3);"
 1308|    449|            "bvec4 equal(i64vec4, i64vec4);"
 1309|    449|            "bvec2 equal(u64vec2, u64vec2);"
 1310|    449|            "bvec3 equal(u64vec3, u64vec3);"
 1311|    449|            "bvec4 equal(u64vec4, u64vec4);"
 1312|       |
 1313|    449|            "bvec2 notEqual(i64vec2, i64vec2);"
 1314|    449|            "bvec3 notEqual(i64vec3, i64vec3);"
 1315|    449|            "bvec4 notEqual(i64vec4, i64vec4);"
 1316|    449|            "bvec2 notEqual(u64vec2, u64vec2);"
 1317|    449|            "bvec3 notEqual(u64vec3, u64vec3);"
 1318|    449|            "bvec4 notEqual(u64vec4, u64vec4);"
 1319|       |
 1320|    449|            "int64_t bitCount(int64_t);"
 1321|    449|            "i64vec2 bitCount(i64vec2);"
 1322|    449|            "i64vec3 bitCount(i64vec3);"
 1323|    449|            "i64vec4 bitCount(i64vec4);"
 1324|       |
 1325|    449|            "int64_t bitCount(uint64_t);"
 1326|    449|            "i64vec2 bitCount(u64vec2);"
 1327|    449|            "i64vec3 bitCount(u64vec3);"
 1328|    449|            "i64vec4 bitCount(u64vec4);"
 1329|       |
 1330|    449|            "int64_t findLSB(int64_t);"
 1331|    449|            "i64vec2 findLSB(i64vec2);"
 1332|    449|            "i64vec3 findLSB(i64vec3);"
 1333|    449|            "i64vec4 findLSB(i64vec4);"
 1334|       |
 1335|    449|            "int64_t findLSB(uint64_t);"
 1336|    449|            "i64vec2 findLSB(u64vec2);"
 1337|    449|            "i64vec3 findLSB(u64vec3);"
 1338|    449|            "i64vec4 findLSB(u64vec4);"
 1339|       |
 1340|    449|            "int64_t findMSB(int64_t);"
 1341|    449|            "i64vec2 findMSB(i64vec2);"
 1342|    449|            "i64vec3 findMSB(i64vec3);"
 1343|    449|            "i64vec4 findMSB(i64vec4);"
 1344|       |
 1345|    449|            "int64_t findMSB(uint64_t);"
 1346|    449|            "i64vec2 findMSB(u64vec2);"
 1347|    449|            "i64vec3 findMSB(u64vec3);"
 1348|    449|            "i64vec4 findMSB(u64vec4);"
 1349|       |
 1350|    449|            "\n"
 1351|    449|        );
 1352|    449|    }
 1353|       |
 1354|       |    // GL_AMD_shader_trinary_minmax
 1355|  1.42k|    if (profile != EEsProfile && version >= 430) {
  ------------------
  |  Branch (1355:9): [True: 1.27k, False: 148]
  |  Branch (1355:34): [True: 536, False: 736]
  ------------------
 1356|    536|        commonBuiltins.append(
 1357|    536|            "float min3(float, float, float);"
 1358|    536|            "vec2  min3(vec2,  vec2,  vec2);"
 1359|    536|            "vec3  min3(vec3,  vec3,  vec3);"
 1360|    536|            "vec4  min3(vec4,  vec4,  vec4);"
 1361|       |
 1362|    536|            "int   min3(int,   int,   int);"
 1363|    536|            "ivec2 min3(ivec2, ivec2, ivec2);"
 1364|    536|            "ivec3 min3(ivec3, ivec3, ivec3);"
 1365|    536|            "ivec4 min3(ivec4, ivec4, ivec4);"
 1366|       |
 1367|    536|            "uint  min3(uint,  uint,  uint);"
 1368|    536|            "uvec2 min3(uvec2, uvec2, uvec2);"
 1369|    536|            "uvec3 min3(uvec3, uvec3, uvec3);"
 1370|    536|            "uvec4 min3(uvec4, uvec4, uvec4);"
 1371|       |
 1372|    536|            "float max3(float, float, float);"
 1373|    536|            "vec2  max3(vec2,  vec2,  vec2);"
 1374|    536|            "vec3  max3(vec3,  vec3,  vec3);"
 1375|    536|            "vec4  max3(vec4,  vec4,  vec4);"
 1376|       |
 1377|    536|            "int   max3(int,   int,   int);"
 1378|    536|            "ivec2 max3(ivec2, ivec2, ivec2);"
 1379|    536|            "ivec3 max3(ivec3, ivec3, ivec3);"
 1380|    536|            "ivec4 max3(ivec4, ivec4, ivec4);"
 1381|       |
 1382|    536|            "uint  max3(uint,  uint,  uint);"
 1383|    536|            "uvec2 max3(uvec2, uvec2, uvec2);"
 1384|    536|            "uvec3 max3(uvec3, uvec3, uvec3);"
 1385|    536|            "uvec4 max3(uvec4, uvec4, uvec4);"
 1386|       |
 1387|    536|            "float mid3(float, float, float);"
 1388|    536|            "vec2  mid3(vec2,  vec2,  vec2);"
 1389|    536|            "vec3  mid3(vec3,  vec3,  vec3);"
 1390|    536|            "vec4  mid3(vec4,  vec4,  vec4);"
 1391|       |
 1392|    536|            "int   mid3(int,   int,   int);"
 1393|    536|            "ivec2 mid3(ivec2, ivec2, ivec2);"
 1394|    536|            "ivec3 mid3(ivec3, ivec3, ivec3);"
 1395|    536|            "ivec4 mid3(ivec4, ivec4, ivec4);"
 1396|       |
 1397|    536|            "uint  mid3(uint,  uint,  uint);"
 1398|    536|            "uvec2 mid3(uvec2, uvec2, uvec2);"
 1399|    536|            "uvec3 mid3(uvec3, uvec3, uvec3);"
 1400|    536|            "uvec4 mid3(uvec4, uvec4, uvec4);"
 1401|       |
 1402|    536|            "float16_t min3(float16_t, float16_t, float16_t);"
 1403|    536|            "f16vec2   min3(f16vec2,   f16vec2,   f16vec2);"
 1404|    536|            "f16vec3   min3(f16vec3,   f16vec3,   f16vec3);"
 1405|    536|            "f16vec4   min3(f16vec4,   f16vec4,   f16vec4);"
 1406|       |
 1407|    536|            "float16_t max3(float16_t, float16_t, float16_t);"
 1408|    536|            "f16vec2   max3(f16vec2,   f16vec2,   f16vec2);"
 1409|    536|            "f16vec3   max3(f16vec3,   f16vec3,   f16vec3);"
 1410|    536|            "f16vec4   max3(f16vec4,   f16vec4,   f16vec4);"
 1411|       |
 1412|    536|            "float16_t mid3(float16_t, float16_t, float16_t);"
 1413|    536|            "f16vec2   mid3(f16vec2,   f16vec2,   f16vec2);"
 1414|    536|            "f16vec3   mid3(f16vec3,   f16vec3,   f16vec3);"
 1415|    536|            "f16vec4   mid3(f16vec4,   f16vec4,   f16vec4);"
 1416|       |
 1417|    536|            "int16_t   min3(int16_t,   int16_t,   int16_t);"
 1418|    536|            "i16vec2   min3(i16vec2,   i16vec2,   i16vec2);"
 1419|    536|            "i16vec3   min3(i16vec3,   i16vec3,   i16vec3);"
 1420|    536|            "i16vec4   min3(i16vec4,   i16vec4,   i16vec4);"
 1421|       |
 1422|    536|            "int16_t   max3(int16_t,   int16_t,   int16_t);"
 1423|    536|            "i16vec2   max3(i16vec2,   i16vec2,   i16vec2);"
 1424|    536|            "i16vec3   max3(i16vec3,   i16vec3,   i16vec3);"
 1425|    536|            "i16vec4   max3(i16vec4,   i16vec4,   i16vec4);"
 1426|       |
 1427|    536|            "int16_t   mid3(int16_t,   int16_t,   int16_t);"
 1428|    536|            "i16vec2   mid3(i16vec2,   i16vec2,   i16vec2);"
 1429|    536|            "i16vec3   mid3(i16vec3,   i16vec3,   i16vec3);"
 1430|    536|            "i16vec4   mid3(i16vec4,   i16vec4,   i16vec4);"
 1431|       |
 1432|    536|            "uint16_t  min3(uint16_t,  uint16_t,  uint16_t);"
 1433|    536|            "u16vec2   min3(u16vec2,   u16vec2,   u16vec2);"
 1434|    536|            "u16vec3   min3(u16vec3,   u16vec3,   u16vec3);"
 1435|    536|            "u16vec4   min3(u16vec4,   u16vec4,   u16vec4);"
 1436|       |
 1437|    536|            "uint16_t  max3(uint16_t,  uint16_t,  uint16_t);"
 1438|    536|            "u16vec2   max3(u16vec2,   u16vec2,   u16vec2);"
 1439|    536|            "u16vec3   max3(u16vec3,   u16vec3,   u16vec3);"
 1440|    536|            "u16vec4   max3(u16vec4,   u16vec4,   u16vec4);"
 1441|       |
 1442|    536|            "uint16_t  mid3(uint16_t,  uint16_t,  uint16_t);"
 1443|    536|            "u16vec2   mid3(u16vec2,   u16vec2,   u16vec2);"
 1444|    536|            "u16vec3   mid3(u16vec3,   u16vec3,   u16vec3);"
 1445|    536|            "u16vec4   mid3(u16vec4,   u16vec4,   u16vec4);"
 1446|       |
 1447|    536|            "\n"
 1448|    536|        );
 1449|    536|    }
 1450|       |
 1451|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (1451:10): [True: 148, False: 1.27k]
  |  Branch (1451:35): [True: 148, False: 0]
  ------------------
 1452|  1.27k|        (profile != EEsProfile && version >= 430)) {
  ------------------
  |  Branch (1452:10): [True: 1.27k, False: 0]
  |  Branch (1452:35): [True: 536, False: 736]
  ------------------
 1453|    684|        commonBuiltins.append(
 1454|    684|            "uint atomicAdd(coherent volatile nontemporal inout uint, uint, int, int, int);"
 1455|    684|            " int atomicAdd(coherent volatile nontemporal inout  int,  int, int, int, int);"
 1456|       |
 1457|    684|            "uint atomicMin(coherent volatile nontemporal inout uint, uint, int, int, int);"
 1458|    684|            " int atomicMin(coherent volatile nontemporal inout  int,  int, int, int, int);"
 1459|       |
 1460|    684|            "uint atomicMax(coherent volatile nontemporal inout uint, uint, int, int, int);"
 1461|    684|            " int atomicMax(coherent volatile nontemporal inout  int,  int, int, int, int);"
 1462|       |
 1463|    684|            "uint atomicAnd(coherent volatile nontemporal inout uint, uint, int, int, int);"
 1464|    684|            " int atomicAnd(coherent volatile nontemporal inout  int,  int, int, int, int);"
 1465|       |
 1466|    684|            "uint atomicOr (coherent volatile nontemporal inout uint, uint, int, int, int);"
 1467|    684|            " int atomicOr (coherent volatile nontemporal inout  int,  int, int, int, int);"
 1468|       |
 1469|    684|            "uint atomicXor(coherent volatile nontemporal inout uint, uint, int, int, int);"
 1470|    684|            " int atomicXor(coherent volatile nontemporal inout  int,  int, int, int, int);"
 1471|       |
 1472|    684|            "uint atomicExchange(coherent volatile nontemporal inout uint, uint, int, int, int);"
 1473|    684|            " int atomicExchange(coherent volatile nontemporal inout  int,  int, int, int, int);"
 1474|       |
 1475|    684|            "uint atomicCompSwap(coherent volatile nontemporal inout uint, uint, uint, int, int, int, int, int);"
 1476|    684|            " int atomicCompSwap(coherent volatile nontemporal inout  int,  int,  int, int, int, int, int, int);"
 1477|       |
 1478|    684|            "uint atomicLoad(coherent volatile nontemporal in uint, int, int, int);"
 1479|    684|            " int atomicLoad(coherent volatile nontemporal in  int, int, int, int);"
 1480|       |
 1481|    684|            "void atomicStore(coherent volatile nontemporal out uint, uint, int, int, int);"
 1482|    684|            "void atomicStore(coherent volatile nontemporal out  int,  int, int, int, int);"
 1483|       |
 1484|    684|            "\n");
 1485|    684|    }
 1486|       |
 1487|  1.42k|    if (profile != EEsProfile && version >= 440) {
  ------------------
  |  Branch (1487:9): [True: 1.27k, False: 148]
  |  Branch (1487:34): [True: 376, False: 896]
  ------------------
 1488|    376|        commonBuiltins.append(
 1489|    376|            "uint64_t atomicMin(coherent volatile nontemporal inout uint64_t, uint64_t);"
 1490|    376|            " int64_t atomicMin(coherent volatile nontemporal inout  int64_t,  int64_t);"
 1491|    376|            "uint64_t atomicMin(coherent volatile nontemporal inout uint64_t, uint64_t, int, int, int);"
 1492|    376|            " int64_t atomicMin(coherent volatile nontemporal inout  int64_t,  int64_t, int, int, int);"
 1493|    376|            "float16_t atomicMin(coherent volatile nontemporal inout float16_t, float16_t);"
 1494|    376|            "float16_t atomicMin(coherent volatile nontemporal inout float16_t, float16_t, int, int, int);"
 1495|    376|            "   float atomicMin(coherent volatile nontemporal inout float, float);"
 1496|    376|            "   float atomicMin(coherent volatile nontemporal inout float, float, int, int, int);"
 1497|    376|            "  double atomicMin(coherent volatile nontemporal inout double, double);"
 1498|    376|            "  double atomicMin(coherent volatile nontemporal inout double, double, int, int, int);"
 1499|       |
 1500|    376|            "uint64_t atomicMax(coherent volatile nontemporal inout uint64_t, uint64_t);"
 1501|    376|            " int64_t atomicMax(coherent volatile nontemporal inout  int64_t,  int64_t);"
 1502|    376|            "uint64_t atomicMax(coherent volatile nontemporal inout uint64_t, uint64_t, int, int, int);"
 1503|    376|            " int64_t atomicMax(coherent volatile nontemporal inout  int64_t,  int64_t, int, int, int);"
 1504|    376|            "float16_t atomicMax(coherent volatile nontemporal inout float16_t, float16_t);"
 1505|    376|            "float16_t atomicMax(coherent volatile nontemporal inout float16_t, float16_t, int, int, int);"
 1506|    376|            "   float atomicMax(coherent volatile nontemporal inout float, float);"
 1507|    376|            "   float atomicMax(coherent volatile nontemporal inout float, float, int, int, int);"
 1508|    376|            "  double atomicMax(coherent volatile nontemporal inout double, double);"
 1509|    376|            "  double atomicMax(coherent volatile nontemporal inout double, double, int, int, int);"
 1510|       |
 1511|    376|            "uint64_t atomicAnd(coherent volatile nontemporal inout uint64_t, uint64_t);"
 1512|    376|            " int64_t atomicAnd(coherent volatile nontemporal inout  int64_t,  int64_t);"
 1513|    376|            "uint64_t atomicAnd(coherent volatile nontemporal inout uint64_t, uint64_t, int, int, int);"
 1514|    376|            " int64_t atomicAnd(coherent volatile nontemporal inout  int64_t,  int64_t, int, int, int);"
 1515|       |
 1516|    376|            "uint64_t atomicOr (coherent volatile nontemporal inout uint64_t, uint64_t);"
 1517|    376|            " int64_t atomicOr (coherent volatile nontemporal inout  int64_t,  int64_t);"
 1518|    376|            "uint64_t atomicOr (coherent volatile nontemporal inout uint64_t, uint64_t, int, int, int);"
 1519|    376|            " int64_t atomicOr (coherent volatile nontemporal inout  int64_t,  int64_t, int, int, int);"
 1520|       |
 1521|    376|            "uint64_t atomicXor(coherent volatile nontemporal inout uint64_t, uint64_t);"
 1522|    376|            " int64_t atomicXor(coherent volatile nontemporal inout  int64_t,  int64_t);"
 1523|    376|            "uint64_t atomicXor(coherent volatile nontemporal inout uint64_t, uint64_t, int, int, int);"
 1524|    376|            " int64_t atomicXor(coherent volatile nontemporal inout  int64_t,  int64_t, int, int, int);"
 1525|       |
 1526|    376|            "uint64_t atomicAdd(coherent volatile nontemporal inout uint64_t, uint64_t);"
 1527|    376|            " int64_t atomicAdd(coherent volatile nontemporal inout  int64_t,  int64_t);"
 1528|    376|            "uint64_t atomicAdd(coherent volatile nontemporal inout uint64_t, uint64_t, int, int, int);"
 1529|    376|            " int64_t atomicAdd(coherent volatile nontemporal inout  int64_t,  int64_t, int, int, int);"
 1530|    376|            "float16_t atomicAdd(coherent volatile nontemporal inout float16_t, float16_t);"
 1531|    376|            "float16_t atomicAdd(coherent volatile nontemporal inout float16_t, float16_t, int, int, int);"
 1532|    376|            "   float atomicAdd(coherent volatile nontemporal inout float, float);"
 1533|    376|            "   float atomicAdd(coherent volatile nontemporal inout float, float, int, int, int);"
 1534|    376|            "  double atomicAdd(coherent volatile nontemporal inout double, double);"
 1535|    376|            "  double atomicAdd(coherent volatile nontemporal inout double, double, int, int, int);"
 1536|       |
 1537|    376|            "uint64_t atomicExchange(coherent volatile nontemporal inout uint64_t, uint64_t);"
 1538|    376|            " int64_t atomicExchange(coherent volatile nontemporal inout  int64_t,  int64_t);"
 1539|    376|            "uint64_t atomicExchange(coherent volatile nontemporal inout uint64_t, uint64_t, int, int, int);"
 1540|    376|            " int64_t atomicExchange(coherent volatile nontemporal inout  int64_t,  int64_t, int, int, int);"
 1541|    376|            "float16_t atomicExchange(coherent volatile nontemporal inout float16_t, float16_t);"
 1542|    376|            "float16_t atomicExchange(coherent volatile nontemporal inout float16_t, float16_t, int, int, int);"
 1543|    376|            "   float atomicExchange(coherent volatile nontemporal inout float, float);"
 1544|    376|            "   float atomicExchange(coherent volatile nontemporal inout float, float, int, int, int);"
 1545|    376|            "  double atomicExchange(coherent volatile nontemporal inout double, double);"
 1546|    376|            "  double atomicExchange(coherent volatile nontemporal inout double, double, int, int, int);"
 1547|       |
 1548|    376|            "uint64_t atomicCompSwap(coherent volatile nontemporal inout uint64_t, uint64_t, uint64_t);"
 1549|    376|            " int64_t atomicCompSwap(coherent volatile nontemporal inout  int64_t,  int64_t,  int64_t);"
 1550|    376|            "uint64_t atomicCompSwap(coherent volatile nontemporal inout uint64_t, uint64_t, uint64_t, int, int, int, int, int);"
 1551|    376|            " int64_t atomicCompSwap(coherent volatile nontemporal inout  int64_t,  int64_t,  int64_t, int, int, int, int, int);"
 1552|       |
 1553|    376|            "uint64_t atomicLoad(coherent volatile nontemporal in uint64_t, int, int, int);"
 1554|    376|            " int64_t atomicLoad(coherent volatile nontemporal in  int64_t, int, int, int);"
 1555|    376|            "float16_t atomicLoad(coherent volatile nontemporal in float16_t, int, int, int);"
 1556|    376|            "   float atomicLoad(coherent volatile nontemporal in float, int, int, int);"
 1557|    376|            "  double atomicLoad(coherent volatile nontemporal in double, int, int, int);"
 1558|       |
 1559|    376|            "void atomicStore(coherent volatile nontemporal out uint64_t, uint64_t, int, int, int);"
 1560|    376|            "void atomicStore(coherent volatile nontemporal out  int64_t,  int64_t, int, int, int);"
 1561|    376|            "void atomicStore(coherent volatile nontemporal out float16_t, float16_t, int, int, int);"
 1562|    376|            "void atomicStore(coherent volatile nontemporal out float, float, int, int, int);"
 1563|    376|            "void atomicStore(coherent volatile nontemporal out double, double, int, int, int);"
 1564|    376|            "\n");
 1565|    376|    }
 1566|       |
 1567|       |    // NV_shader_atomic_fp16_vector
 1568|  1.42k|    if (profile != EEsProfile && version >= 430) {
  ------------------
  |  Branch (1568:9): [True: 1.27k, False: 148]
  |  Branch (1568:34): [True: 536, False: 736]
  ------------------
 1569|    536|        commonBuiltins.append(
 1570|    536|            "f16vec2 atomicAdd(coherent volatile nontemporal inout f16vec2, f16vec2);"
 1571|    536|            "f16vec4 atomicAdd(coherent volatile nontemporal inout f16vec4, f16vec4);"
 1572|    536|            "f16vec2 atomicMin(coherent volatile nontemporal inout f16vec2, f16vec2);"
 1573|    536|            "f16vec4 atomicMin(coherent volatile nontemporal inout f16vec4, f16vec4);"
 1574|    536|            "f16vec2 atomicMax(coherent volatile nontemporal inout f16vec2, f16vec2);"
 1575|    536|            "f16vec4 atomicMax(coherent volatile nontemporal inout f16vec4, f16vec4);"
 1576|    536|            "f16vec2 atomicExchange(coherent volatile nontemporal inout f16vec2, f16vec2);"
 1577|    536|            "f16vec4 atomicExchange(coherent volatile nontemporal inout f16vec4, f16vec4);"
 1578|    536|            "\n");
 1579|    536|    }
 1580|       |
 1581|  1.42k|    if ((profile == EEsProfile && version >= 300) ||
  ------------------
  |  Branch (1581:10): [True: 148, False: 1.27k]
  |  Branch (1581:35): [True: 148, False: 0]
  ------------------
 1582|  1.27k|        (profile != EEsProfile && version >= 150)) { // GL_ARB_shader_bit_encoding
  ------------------
  |  Branch (1582:10): [True: 1.27k, False: 0]
  |  Branch (1582:35): [True: 756, False: 516]
  ------------------
 1583|    904|        commonBuiltins.append(
 1584|    904|            "int   floatBitsToInt(highp float value);"
 1585|    904|            "ivec2 floatBitsToInt(highp vec2  value);"
 1586|    904|            "ivec3 floatBitsToInt(highp vec3  value);"
 1587|    904|            "ivec4 floatBitsToInt(highp vec4  value);"
 1588|       |
 1589|    904|            "uint  floatBitsToUint(highp float value);"
 1590|    904|            "uvec2 floatBitsToUint(highp vec2  value);"
 1591|    904|            "uvec3 floatBitsToUint(highp vec3  value);"
 1592|    904|            "uvec4 floatBitsToUint(highp vec4  value);"
 1593|       |
 1594|    904|            "float intBitsToFloat(highp int   value);"
 1595|    904|            "vec2  intBitsToFloat(highp ivec2 value);"
 1596|    904|            "vec3  intBitsToFloat(highp ivec3 value);"
 1597|    904|            "vec4  intBitsToFloat(highp ivec4 value);"
 1598|       |
 1599|    904|            "float uintBitsToFloat(highp uint  value);"
 1600|    904|            "vec2  uintBitsToFloat(highp uvec2 value);"
 1601|    904|            "vec3  uintBitsToFloat(highp uvec3 value);"
 1602|    904|            "vec4  uintBitsToFloat(highp uvec4 value);"
 1603|       |
 1604|    904|            "\n");
 1605|    904|    }
 1606|       |
 1607|  1.42k|    if ((profile != EEsProfile && version >= 150) || // GL_NV_gpu_shader5
  ------------------
  |  Branch (1607:10): [True: 1.27k, False: 148]
  |  Branch (1607:35): [True: 756, False: 516]
  ------------------
 1608|    904|        (profile == EEsProfile && version >= 310)) {    // GL_OES_gpu_shader5
  ------------------
  |  Branch (1608:10): [True: 148, False: 516]
  |  Branch (1608:35): [True: 148, False: 0]
  ------------------
 1609|       |
 1610|    904|        commonBuiltins.append(
 1611|    904|            "float  fma(float,  float,  float );"
 1612|    904|            "vec2   fma(vec2,   vec2,   vec2  );"
 1613|    904|            "vec3   fma(vec3,   vec3,   vec3  );"
 1614|    904|            "vec4   fma(vec4,   vec4,   vec4  );"
 1615|    904|            "\n");
 1616|    904|    }
 1617|       |
 1618|  1.42k|    if (profile != EEsProfile && version >= 150) {  // ARB_gpu_shader_fp64
  ------------------
  |  Branch (1618:9): [True: 1.27k, False: 148]
  |  Branch (1618:34): [True: 756, False: 516]
  ------------------
 1619|    756|            commonBuiltins.append(
 1620|    756|                "double fma(double, double, double);"
 1621|    756|                "dvec2  fma(dvec2,  dvec2,  dvec2 );"
 1622|    756|                "dvec3  fma(dvec3,  dvec3,  dvec3 );"
 1623|    756|                "dvec4  fma(dvec4,  dvec4,  dvec4 );"
 1624|    756|                "\n");
 1625|    756|    }
 1626|       |
 1627|  1.42k|    if (profile == EEsProfile && version >= 310) {  // ARB_gpu_shader_fp64
  ------------------
  |  Branch (1627:9): [True: 148, False: 1.27k]
  |  Branch (1627:34): [True: 148, False: 0]
  ------------------
 1628|    148|            commonBuiltins.append(
 1629|    148|                "float64_t fma(float64_t, float64_t, float64_t);"
 1630|    148|                "f64vec2  fma(f64vec2,  f64vec2,  f64vec2 );"
 1631|    148|                "f64vec3  fma(f64vec3,  f64vec3,  f64vec3 );"
 1632|    148|                "f64vec4  fma(f64vec4,  f64vec4,  f64vec4 );"
 1633|    148|                "\n");
 1634|    148|    }
 1635|       |
 1636|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (1636:10): [True: 148, False: 1.27k]
  |  Branch (1636:35): [True: 148, False: 0]
  ------------------
 1637|  1.27k|        (profile != EEsProfile && version >= 150)) { // GL_NV_gpu_shader5
  ------------------
  |  Branch (1637:10): [True: 1.27k, False: 0]
  |  Branch (1637:35): [True: 756, False: 516]
  ------------------
 1638|    904|        commonBuiltins.append(
 1639|    904|            "float frexp(highp float, out highp int);"
 1640|    904|            "vec2  frexp(highp vec2,  out highp ivec2);"
 1641|    904|            "vec3  frexp(highp vec3,  out highp ivec3);"
 1642|    904|            "vec4  frexp(highp vec4,  out highp ivec4);"
 1643|       |
 1644|    904|            "float ldexp(highp float, highp int);"
 1645|    904|            "vec2  ldexp(highp vec2,  highp ivec2);"
 1646|    904|            "vec3  ldexp(highp vec3,  highp ivec3);"
 1647|    904|            "vec4  ldexp(highp vec4,  highp ivec4);"
 1648|       |
 1649|    904|            "\n");
 1650|    904|    }
 1651|       |
 1652|  1.42k|    if (profile != EEsProfile && version >= 150) { // ARB_gpu_shader_fp64
  ------------------
  |  Branch (1652:9): [True: 1.27k, False: 148]
  |  Branch (1652:34): [True: 756, False: 516]
  ------------------
 1653|    756|        commonBuiltins.append(
 1654|    756|            "double frexp(double, out int);"
 1655|    756|            "dvec2  frexp( dvec2, out ivec2);"
 1656|    756|            "dvec3  frexp( dvec3, out ivec3);"
 1657|    756|            "dvec4  frexp( dvec4, out ivec4);"
 1658|       |
 1659|    756|            "double ldexp(double, int);"
 1660|    756|            "dvec2  ldexp( dvec2, ivec2);"
 1661|    756|            "dvec3  ldexp( dvec3, ivec3);"
 1662|    756|            "dvec4  ldexp( dvec4, ivec4);"
 1663|       |
 1664|    756|            "double packDouble2x32(uvec2);"
 1665|    756|            "uvec2 unpackDouble2x32(double);"
 1666|       |
 1667|    756|            "\n");
 1668|    756|    }
 1669|       |
 1670|  1.42k|    if (profile == EEsProfile && version >= 310) { // ARB_gpu_shader_fp64
  ------------------
  |  Branch (1670:9): [True: 148, False: 1.27k]
  |  Branch (1670:34): [True: 148, False: 0]
  ------------------
 1671|    148|        commonBuiltins.append(
 1672|    148|            "float64_t frexp(float64_t, out int);"
 1673|    148|            "f64vec2  frexp( f64vec2, out ivec2);"
 1674|    148|            "f64vec3  frexp( f64vec3, out ivec3);"
 1675|    148|            "f64vec4  frexp( f64vec4, out ivec4);"
 1676|       |
 1677|    148|            "float64_t ldexp(float64_t, int);"
 1678|    148|            "f64vec2  ldexp( f64vec2, ivec2);"
 1679|    148|            "f64vec3  ldexp( f64vec3, ivec3);"
 1680|    148|            "f64vec4  ldexp( f64vec4, ivec4);"
 1681|       |
 1682|    148|            "\n");
 1683|    148|    }
 1684|       |
 1685|  1.42k|    if ((profile == EEsProfile && version >= 300) ||
  ------------------
  |  Branch (1685:10): [True: 148, False: 1.27k]
  |  Branch (1685:35): [True: 148, False: 0]
  ------------------
 1686|  1.27k|        (profile != EEsProfile && version >= 150)) {
  ------------------
  |  Branch (1686:10): [True: 1.27k, False: 0]
  |  Branch (1686:35): [True: 756, False: 516]
  ------------------
 1687|    904|        commonBuiltins.append(
 1688|    904|            "highp uint packUnorm2x16(vec2);"
 1689|    904|                  "vec2 unpackUnorm2x16(highp uint);"
 1690|    904|            "\n");
 1691|    904|    }
 1692|       |
 1693|  1.42k|    if ((profile == EEsProfile && version >= 300) ||
  ------------------
  |  Branch (1693:10): [True: 148, False: 1.27k]
  |  Branch (1693:35): [True: 148, False: 0]
  ------------------
 1694|  1.27k|        (profile != EEsProfile && version >= 150)) {
  ------------------
  |  Branch (1694:10): [True: 1.27k, False: 0]
  |  Branch (1694:35): [True: 756, False: 516]
  ------------------
 1695|    904|        commonBuiltins.append(
 1696|    904|            "highp uint packSnorm2x16(vec2);"
 1697|    904|            "      vec2 unpackSnorm2x16(highp uint);"
 1698|    904|            "highp uint packHalf2x16(vec2);"
 1699|    904|            "\n");
 1700|    904|    }
 1701|       |
 1702|  1.42k|    if (profile == EEsProfile && version >= 300) {
  ------------------
  |  Branch (1702:9): [True: 148, False: 1.27k]
  |  Branch (1702:34): [True: 148, False: 0]
  ------------------
 1703|    148|        commonBuiltins.append(
 1704|    148|            "mediump vec2 unpackHalf2x16(highp uint);"
 1705|    148|            "\n");
 1706|  1.27k|    } else if (profile != EEsProfile && version >= 150) {
  ------------------
  |  Branch (1706:16): [True: 1.27k, False: 0]
  |  Branch (1706:41): [True: 756, False: 516]
  ------------------
 1707|    756|        commonBuiltins.append(
 1708|    756|            "        vec2 unpackHalf2x16(highp uint);"
 1709|    756|            "\n");
 1710|    756|    }
 1711|       |
 1712|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (1712:10): [True: 148, False: 1.27k]
  |  Branch (1712:35): [True: 148, False: 0]
  ------------------
 1713|  1.27k|        (profile != EEsProfile && version >= 150)) {
  ------------------
  |  Branch (1713:10): [True: 1.27k, False: 0]
  |  Branch (1713:35): [True: 756, False: 516]
  ------------------
 1714|    904|        commonBuiltins.append(
 1715|    904|            "highp uint packSnorm4x8(vec4);"
 1716|    904|            "highp uint packUnorm4x8(vec4);"
 1717|    904|            "\n");
 1718|    904|    }
 1719|       |
 1720|  1.42k|    if (profile == EEsProfile && version >= 310) {
  ------------------
  |  Branch (1720:9): [True: 148, False: 1.27k]
  |  Branch (1720:34): [True: 148, False: 0]
  ------------------
 1721|    148|        commonBuiltins.append(
 1722|    148|            "mediump vec4 unpackSnorm4x8(highp uint);"
 1723|    148|            "mediump vec4 unpackUnorm4x8(highp uint);"
 1724|    148|            "\n");
 1725|  1.27k|    } else if (profile != EEsProfile && version >= 150) {
  ------------------
  |  Branch (1725:16): [True: 1.27k, False: 0]
  |  Branch (1725:41): [True: 756, False: 516]
  ------------------
 1726|    756|        commonBuiltins.append(
 1727|    756|                    "vec4 unpackSnorm4x8(highp uint);"
 1728|    756|                    "vec4 unpackUnorm4x8(highp uint);"
 1729|    756|            "\n");
 1730|    756|    }
 1731|       |
 1732|       |    //
 1733|       |    // Matrix Functions.
 1734|       |    //
 1735|  1.42k|    commonBuiltins.append(
 1736|  1.42k|        "mat2 matrixCompMult(mat2 x, mat2 y);"
 1737|  1.42k|        "mat3 matrixCompMult(mat3 x, mat3 y);"
 1738|  1.42k|        "mat4 matrixCompMult(mat4 x, mat4 y);"
 1739|       |
 1740|  1.42k|        "\n");
 1741|       |
 1742|       |    // 120 is correct for both ES and desktop
 1743|  1.42k|    if (version >= 120) {
  ------------------
  |  Branch (1743:9): [True: 1.42k, False: 0]
  ------------------
 1744|  1.42k|        commonBuiltins.append(
 1745|  1.42k|            "mat2   outerProduct(vec2 c, vec2 r);"
 1746|  1.42k|            "mat3   outerProduct(vec3 c, vec3 r);"
 1747|  1.42k|            "mat4   outerProduct(vec4 c, vec4 r);"
 1748|  1.42k|            "mat2x3 outerProduct(vec3 c, vec2 r);"
 1749|  1.42k|            "mat3x2 outerProduct(vec2 c, vec3 r);"
 1750|  1.42k|            "mat2x4 outerProduct(vec4 c, vec2 r);"
 1751|  1.42k|            "mat4x2 outerProduct(vec2 c, vec4 r);"
 1752|  1.42k|            "mat3x4 outerProduct(vec4 c, vec3 r);"
 1753|  1.42k|            "mat4x3 outerProduct(vec3 c, vec4 r);"
 1754|       |
 1755|  1.42k|            "mat2   transpose(mat2   m);"
 1756|  1.42k|            "mat3   transpose(mat3   m);"
 1757|  1.42k|            "mat4   transpose(mat4   m);"
 1758|  1.42k|            "mat2x3 transpose(mat3x2 m);"
 1759|  1.42k|            "mat3x2 transpose(mat2x3 m);"
 1760|  1.42k|            "mat2x4 transpose(mat4x2 m);"
 1761|  1.42k|            "mat4x2 transpose(mat2x4 m);"
 1762|  1.42k|            "mat3x4 transpose(mat4x3 m);"
 1763|  1.42k|            "mat4x3 transpose(mat3x4 m);"
 1764|       |
 1765|  1.42k|            "mat2x3 matrixCompMult(mat2x3, mat2x3);"
 1766|  1.42k|            "mat2x4 matrixCompMult(mat2x4, mat2x4);"
 1767|  1.42k|            "mat3x2 matrixCompMult(mat3x2, mat3x2);"
 1768|  1.42k|            "mat3x4 matrixCompMult(mat3x4, mat3x4);"
 1769|  1.42k|            "mat4x2 matrixCompMult(mat4x2, mat4x2);"
 1770|  1.42k|            "mat4x3 matrixCompMult(mat4x3, mat4x3);"
 1771|       |
 1772|  1.42k|            "\n");
 1773|       |
 1774|       |        // 150 is correct for both ES and desktop
 1775|  1.42k|        if (version >= 150) {
  ------------------
  |  Branch (1775:13): [True: 904, False: 516]
  ------------------
 1776|    904|            commonBuiltins.append(
 1777|    904|                "float determinant(mat2 m);"
 1778|    904|                "float determinant(mat3 m);"
 1779|    904|                "float determinant(mat4 m);"
 1780|       |
 1781|    904|                "mat2 inverse(mat2 m);"
 1782|    904|                "mat3 inverse(mat3 m);"
 1783|    904|                "mat4 inverse(mat4 m);"
 1784|       |
 1785|    904|                "\n");
 1786|    904|        }
 1787|  1.42k|    }
 1788|       |
 1789|       |    //
 1790|       |    // Original-style texture functions existing in all stages.
 1791|       |    // (Per-stage functions below.)
 1792|       |    //
 1793|  1.42k|    if ((profile == EEsProfile && version == 100) ||
  ------------------
  |  Branch (1793:10): [True: 148, False: 1.27k]
  |  Branch (1793:35): [True: 0, False: 148]
  ------------------
 1794|  1.42k|         profile == ECompatibilityProfile ||
  ------------------
  |  Branch (1794:10): [True: 55, False: 1.36k]
  ------------------
 1795|  1.36k|        (profile == ECoreProfile && version < 420) ||
  ------------------
  |  Branch (1795:10): [True: 701, False: 664]
  |  Branch (1795:37): [True: 190, False: 511]
  ------------------
 1796|  1.17k|         profile == ENoProfile) {
  ------------------
  |  Branch (1796:10): [True: 516, False: 659]
  ------------------
 1797|    761|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (1797:13): [True: 0, False: 761]
  ------------------
 1798|      0|            commonBuiltins.append(
 1799|      0|                "vec4 texture2D(sampler2D, vec2);"
 1800|       |
 1801|      0|                "vec4 texture2DProj(sampler2D, vec3);"
 1802|      0|                "vec4 texture2DProj(sampler2D, vec4);"
 1803|       |
 1804|      0|                "vec4 texture3D(sampler3D, vec3);"     // OES_texture_3D, but caught by keyword check
 1805|      0|                "vec4 texture3DProj(sampler3D, vec4);" // OES_texture_3D, but caught by keyword check
 1806|       |
 1807|      0|                "vec4 textureCube(samplerCube, vec3);"
 1808|       |
 1809|      0|                "\n");
 1810|      0|        }
 1811|    761|    }
 1812|       |
 1813|  1.42k|    if ( profile == ECompatibilityProfile ||
  ------------------
  |  Branch (1813:10): [True: 55, False: 1.36k]
  ------------------
 1814|  1.36k|        (profile == ECoreProfile && version < 420) ||
  ------------------
  |  Branch (1814:10): [True: 701, False: 664]
  |  Branch (1814:37): [True: 190, False: 511]
  ------------------
 1815|  1.17k|         profile == ENoProfile) {
  ------------------
  |  Branch (1815:10): [True: 516, False: 659]
  ------------------
 1816|    761|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (1816:13): [True: 0, False: 761]
  ------------------
 1817|      0|            commonBuiltins.append(
 1818|      0|                "vec4 texture1D(sampler1D, float);"
 1819|       |
 1820|      0|                "vec4 texture1DProj(sampler1D, vec2);"
 1821|      0|                "vec4 texture1DProj(sampler1D, vec4);"
 1822|       |
 1823|      0|                "vec4 shadow1D(sampler1DShadow, vec3);"
 1824|      0|                "vec4 shadow2D(sampler2DShadow, vec3);"
 1825|      0|                "vec4 shadow1DProj(sampler1DShadow, vec4);"
 1826|      0|                "vec4 shadow2DProj(sampler2DShadow, vec4);"
 1827|       |
 1828|      0|                "vec4 texture2DRect(sampler2DRect, vec2);"          // GL_ARB_texture_rectangle, caught by keyword check
 1829|      0|                "vec4 texture2DRectProj(sampler2DRect, vec3);"      // GL_ARB_texture_rectangle, caught by keyword check
 1830|      0|                "vec4 texture2DRectProj(sampler2DRect, vec4);"      // GL_ARB_texture_rectangle, caught by keyword check
 1831|      0|                "vec4 shadow2DRect(sampler2DRectShadow, vec3);"     // GL_ARB_texture_rectangle, caught by keyword check
 1832|      0|                "vec4 shadow2DRectProj(sampler2DRectShadow, vec4);" // GL_ARB_texture_rectangle, caught by keyword check
 1833|       |
 1834|      0|                "vec4 texture1DArray(sampler1DArray, vec2);"      // GL_EXT_texture_array
 1835|      0|                "vec4 texture2DArray(sampler2DArray, vec3);"      // GL_EXT_texture_array
 1836|      0|                "vec4 shadow1DArray(sampler1DArrayShadow, vec3);" // GL_EXT_texture_array
 1837|      0|                "vec4 shadow2DArray(sampler2DArrayShadow, vec4);" // GL_EXT_texture_array
 1838|      0|                "vec4 texture1DArray(sampler1DArray, vec2, float);"                // GL_EXT_texture_array
 1839|      0|                "vec4 texture2DArray(sampler2DArray, vec3, float);"                // GL_EXT_texture_array
 1840|      0|                "vec4 shadow1DArray(sampler1DArrayShadow, vec3, float);"           // GL_EXT_texture_array
 1841|      0|                "vec4 texture1DArrayLod(sampler1DArray, vec2, float);"      // GL_EXT_texture_array
 1842|      0|                "vec4 texture2DArrayLod(sampler2DArray, vec3, float);"      // GL_EXT_texture_array
 1843|      0|                "vec4 shadow1DArrayLod(sampler1DArrayShadow, vec3, float);" // GL_EXT_texture_array
 1844|      0|                "\n");
 1845|      0|        }
 1846|    761|    }
 1847|       |
 1848|  1.42k|    if (profile == EEsProfile) {
  ------------------
  |  Branch (1848:9): [True: 148, False: 1.27k]
  ------------------
 1849|    148|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (1849:13): [True: 0, False: 148]
  ------------------
 1850|      0|            if (version < 300) {
  ------------------
  |  Branch (1850:17): [True: 0, False: 0]
  ------------------
 1851|      0|                commonBuiltins.append(
 1852|      0|                    "vec4 texture2D(samplerExternalOES, vec2 coord);" // GL_OES_EGL_image_external
 1853|      0|                    "vec4 texture2DProj(samplerExternalOES, vec3);"   // GL_OES_EGL_image_external
 1854|      0|                    "vec4 texture2DProj(samplerExternalOES, vec4);"   // GL_OES_EGL_image_external
 1855|      0|                "\n");
 1856|      0|            } else {
 1857|      0|                commonBuiltins.append(
 1858|      0|                    "highp ivec2 textureSize(samplerExternalOES, int lod);"   // GL_OES_EGL_image_external_essl3
 1859|      0|                    "vec4 texture(samplerExternalOES, vec2);"                 // GL_OES_EGL_image_external_essl3
 1860|      0|                    "vec4 texture(samplerExternalOES, vec2, float bias);"     // GL_OES_EGL_image_external_essl3
 1861|      0|                    "vec4 textureProj(samplerExternalOES, vec3);"             // GL_OES_EGL_image_external_essl3
 1862|      0|                    "vec4 textureProj(samplerExternalOES, vec3, float bias);" // GL_OES_EGL_image_external_essl3
 1863|      0|                    "vec4 textureProj(samplerExternalOES, vec4);"             // GL_OES_EGL_image_external_essl3
 1864|      0|                    "vec4 textureProj(samplerExternalOES, vec4, float bias);" // GL_OES_EGL_image_external_essl3
 1865|      0|                    "vec4 texelFetch(samplerExternalOES, ivec2, int lod);"    // GL_OES_EGL_image_external_essl3
 1866|      0|                "\n");
 1867|      0|            }
 1868|      0|            commonBuiltins.append(
 1869|      0|                "highp ivec2 textureSize(__samplerExternal2DY2YEXT, int lod);" // GL_EXT_YUV_target
 1870|      0|                "vec4 texture(__samplerExternal2DY2YEXT, vec2);"               // GL_EXT_YUV_target
 1871|      0|                "vec4 texture(__samplerExternal2DY2YEXT, vec2, float bias);"   // GL_EXT_YUV_target
 1872|      0|                "vec4 textureProj(__samplerExternal2DY2YEXT, vec3);"           // GL_EXT_YUV_target
 1873|      0|                "vec4 textureProj(__samplerExternal2DY2YEXT, vec3, float bias);" // GL_EXT_YUV_target
 1874|      0|                "vec4 textureProj(__samplerExternal2DY2YEXT, vec4);"           // GL_EXT_YUV_target
 1875|      0|                "vec4 textureProj(__samplerExternal2DY2YEXT, vec4, float bias);" // GL_EXT_YUV_target
 1876|      0|                "vec4 texelFetch(__samplerExternal2DY2YEXT sampler, ivec2, int lod);" // GL_EXT_YUV_target
 1877|      0|                "\n");
 1878|      0|            commonBuiltins.append(
 1879|      0|                "vec4 texture2DGradEXT(sampler2D, vec2, vec2, vec2);"      // GL_EXT_shader_texture_lod
 1880|      0|                "vec4 texture2DProjGradEXT(sampler2D, vec3, vec2, vec2);"  // GL_EXT_shader_texture_lod
 1881|      0|                "vec4 texture2DProjGradEXT(sampler2D, vec4, vec2, vec2);"  // GL_EXT_shader_texture_lod
 1882|      0|                "vec4 textureCubeGradEXT(samplerCube, vec3, vec3, vec3);"  // GL_EXT_shader_texture_lod
 1883|       |
 1884|      0|                "float shadow2DEXT(sampler2DShadow, vec3);"     // GL_EXT_shadow_samplers
 1885|      0|                "float shadow2DProjEXT(sampler2DShadow, vec4);" // GL_EXT_shadow_samplers
 1886|       |
 1887|      0|                "\n");
 1888|      0|        }
 1889|    148|    }
 1890|       |
 1891|       |    //
 1892|       |    // Noise functions.
 1893|       |    //
 1894|  1.42k|    if (spvVersion.spv == 0 && profile != EEsProfile) {
  ------------------
  |  Branch (1894:9): [True: 0, False: 1.42k]
  |  Branch (1894:32): [True: 0, False: 0]
  ------------------
 1895|      0|        commonBuiltins.append(
 1896|      0|            "float noise1(float x);"
 1897|      0|            "float noise1(vec2  x);"
 1898|      0|            "float noise1(vec3  x);"
 1899|      0|            "float noise1(vec4  x);"
 1900|       |
 1901|      0|            "vec2 noise2(float x);"
 1902|      0|            "vec2 noise2(vec2  x);"
 1903|      0|            "vec2 noise2(vec3  x);"
 1904|      0|            "vec2 noise2(vec4  x);"
 1905|       |
 1906|      0|            "vec3 noise3(float x);"
 1907|      0|            "vec3 noise3(vec2  x);"
 1908|      0|            "vec3 noise3(vec3  x);"
 1909|      0|            "vec3 noise3(vec4  x);"
 1910|       |
 1911|      0|            "vec4 noise4(float x);"
 1912|      0|            "vec4 noise4(vec2  x);"
 1913|      0|            "vec4 noise4(vec3  x);"
 1914|      0|            "vec4 noise4(vec4  x);"
 1915|       |
 1916|      0|            "\n");
 1917|      0|    }
 1918|       |
 1919|  1.42k|    if (spvVersion.vulkan == 0) {
  ------------------
  |  Branch (1919:9): [True: 0, False: 1.42k]
  ------------------
 1920|       |        //
 1921|       |        // Atomic counter functions.
 1922|       |        //
 1923|      0|        if ((profile != EEsProfile && version >= 300) ||
  ------------------
  |  Branch (1923:14): [True: 0, False: 0]
  |  Branch (1923:39): [True: 0, False: 0]
  ------------------
 1924|      0|            (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (1924:14): [True: 0, False: 0]
  |  Branch (1924:39): [True: 0, False: 0]
  ------------------
 1925|      0|            commonBuiltins.append(
 1926|      0|                "uint atomicCounterIncrement(atomic_uint);"
 1927|      0|                "uint atomicCounterDecrement(atomic_uint);"
 1928|      0|                "uint atomicCounter(atomic_uint);"
 1929|       |
 1930|      0|                "\n");
 1931|      0|        }
 1932|      0|        if (profile != EEsProfile && version == 450) {
  ------------------
  |  Branch (1932:13): [True: 0, False: 0]
  |  Branch (1932:38): [True: 0, False: 0]
  ------------------
 1933|      0|            commonBuiltins.append(
 1934|      0|                "uint atomicCounterAddARB(atomic_uint, uint);"
 1935|      0|                "uint atomicCounterSubtractARB(atomic_uint, uint);"
 1936|      0|                "uint atomicCounterMinARB(atomic_uint, uint);"
 1937|      0|                "uint atomicCounterMaxARB(atomic_uint, uint);"
 1938|      0|                "uint atomicCounterAndARB(atomic_uint, uint);"
 1939|      0|                "uint atomicCounterOrARB(atomic_uint, uint);"
 1940|      0|                "uint atomicCounterXorARB(atomic_uint, uint);"
 1941|      0|                "uint atomicCounterExchangeARB(atomic_uint, uint);"
 1942|      0|                "uint atomicCounterCompSwapARB(atomic_uint, uint, uint);"
 1943|       |
 1944|      0|                "\n");
 1945|      0|        }
 1946|       |
 1947|       |
 1948|      0|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (1948:13): [True: 0, False: 0]
  |  Branch (1948:38): [True: 0, False: 0]
  ------------------
 1949|      0|            commonBuiltins.append(
 1950|      0|                "uint atomicCounterAdd(atomic_uint, uint);"
 1951|      0|                "uint atomicCounterSubtract(atomic_uint, uint);"
 1952|      0|                "uint atomicCounterMin(atomic_uint, uint);"
 1953|      0|                "uint atomicCounterMax(atomic_uint, uint);"
 1954|      0|                "uint atomicCounterAnd(atomic_uint, uint);"
 1955|      0|                "uint atomicCounterOr(atomic_uint, uint);"
 1956|      0|                "uint atomicCounterXor(atomic_uint, uint);"
 1957|      0|                "uint atomicCounterExchange(atomic_uint, uint);"
 1958|      0|                "uint atomicCounterCompSwap(atomic_uint, uint, uint);"
 1959|       |
 1960|      0|                "\n");
 1961|      0|        }
 1962|      0|    }
 1963|  1.42k|    else if (spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (1963:14): [True: 0, False: 1.42k]
  ------------------
 1964|       |        //
 1965|       |        // Atomic counter functions act as aliases to normal atomic functions.
 1966|       |        // replace definitions to take 'volatile coherent nontemporal uint' instead of 'atomic_uint'
 1967|       |        // and map to equivalent non-counter atomic op
 1968|       |        //
 1969|      0|        if ((profile != EEsProfile && version >= 300) ||
  ------------------
  |  Branch (1969:14): [True: 0, False: 0]
  |  Branch (1969:39): [True: 0, False: 0]
  ------------------
 1970|      0|            (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (1970:14): [True: 0, False: 0]
  |  Branch (1970:39): [True: 0, False: 0]
  ------------------
 1971|      0|            commonBuiltins.append(
 1972|      0|                "uint atomicCounterIncrement(volatile coherent nontemporal uint);"
 1973|      0|                "uint atomicCounterDecrement(volatile coherent nontemporal uint);"
 1974|      0|                "uint atomicCounter(volatile coherent nontemporal uint);"
 1975|       |
 1976|      0|                "\n");
 1977|      0|        }
 1978|      0|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (1978:13): [True: 0, False: 0]
  |  Branch (1978:38): [True: 0, False: 0]
  ------------------
 1979|      0|            commonBuiltins.append(
 1980|      0|                "uint atomicCounterAdd(volatile coherent nontemporal uint, uint);"
 1981|      0|                "uint atomicCounterSubtract(volatile coherent nontemporal uint, uint);"
 1982|      0|                "uint atomicCounterMin(volatile coherent nontemporal uint, uint);"
 1983|      0|                "uint atomicCounterMax(volatile coherent nontemporal uint, uint);"
 1984|      0|                "uint atomicCounterAnd(volatile coherent nontemporal uint, uint);"
 1985|      0|                "uint atomicCounterOr(volatile coherent nontemporal uint, uint);"
 1986|      0|                "uint atomicCounterXor(volatile coherent nontemporal uint, uint);"
 1987|      0|                "uint atomicCounterExchange(volatile coherent nontemporal uint, uint);"
 1988|      0|                "uint atomicCounterCompSwap(volatile coherent nontemporal uint, uint, uint);"
 1989|       |
 1990|      0|                "\n");
 1991|      0|        }
 1992|      0|    }
 1993|       |
 1994|       |    // Bitfield
 1995|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (1995:10): [True: 148, False: 1.27k]
  |  Branch (1995:35): [True: 148, False: 0]
  ------------------
 1996|  1.27k|        (profile != EEsProfile && version >= 150)) { // ARB_gpu_shader5/NV_gpu_shader5
  ------------------
  |  Branch (1996:10): [True: 1.27k, False: 0]
  |  Branch (1996:35): [True: 756, False: 516]
  ------------------
 1997|    904|        commonBuiltins.append(
 1998|    904|            "  int bitfieldExtract(  int, int, int);"
 1999|    904|            "ivec2 bitfieldExtract(ivec2, int, int);"
 2000|    904|            "ivec3 bitfieldExtract(ivec3, int, int);"
 2001|    904|            "ivec4 bitfieldExtract(ivec4, int, int);"
 2002|       |
 2003|    904|            " uint bitfieldExtract( uint, int, int);"
 2004|    904|            "uvec2 bitfieldExtract(uvec2, int, int);"
 2005|    904|            "uvec3 bitfieldExtract(uvec3, int, int);"
 2006|    904|            "uvec4 bitfieldExtract(uvec4, int, int);"
 2007|       |
 2008|    904|            "  int bitfieldInsert(  int base,   int, int, int);"
 2009|    904|            "ivec2 bitfieldInsert(ivec2 base, ivec2, int, int);"
 2010|    904|            "ivec3 bitfieldInsert(ivec3 base, ivec3, int, int);"
 2011|    904|            "ivec4 bitfieldInsert(ivec4 base, ivec4, int, int);"
 2012|       |
 2013|    904|            " uint bitfieldInsert( uint base,  uint, int, int);"
 2014|    904|            "uvec2 bitfieldInsert(uvec2 base, uvec2, int, int);"
 2015|    904|            "uvec3 bitfieldInsert(uvec3 base, uvec3, int, int);"
 2016|    904|            "uvec4 bitfieldInsert(uvec4 base, uvec4, int, int);"
 2017|       |
 2018|    904|            "\n");
 2019|    904|    }
 2020|       |
 2021|  1.42k|    if (profile != EEsProfile && version >= 150) { //GL_ARB_gpu_shader5/GL_NV_gpu_shader5
  ------------------
  |  Branch (2021:9): [True: 1.27k, False: 148]
  |  Branch (2021:34): [True: 756, False: 516]
  ------------------
 2022|    756|        commonBuiltins.append(
 2023|    756|            "  int findLSB(  int);"
 2024|    756|            "ivec2 findLSB(ivec2);"
 2025|    756|            "ivec3 findLSB(ivec3);"
 2026|    756|            "ivec4 findLSB(ivec4);"
 2027|       |
 2028|    756|            "  int findLSB( uint);"
 2029|    756|            "ivec2 findLSB(uvec2);"
 2030|    756|            "ivec3 findLSB(uvec3);"
 2031|    756|            "ivec4 findLSB(uvec4);"
 2032|       |
 2033|    756|            "\n");
 2034|    756|    } else if (profile == EEsProfile && version >= 310) {
  ------------------
  |  Branch (2034:16): [True: 148, False: 516]
  |  Branch (2034:41): [True: 148, False: 0]
  ------------------
 2035|    148|        commonBuiltins.append(
 2036|    148|            "lowp   int findLSB(  int);"
 2037|    148|            "lowp ivec2 findLSB(ivec2);"
 2038|    148|            "lowp ivec3 findLSB(ivec3);"
 2039|    148|            "lowp ivec4 findLSB(ivec4);"
 2040|       |
 2041|    148|            "lowp   int findLSB( uint);"
 2042|    148|            "lowp ivec2 findLSB(uvec2);"
 2043|    148|            "lowp ivec3 findLSB(uvec3);"
 2044|    148|            "lowp ivec4 findLSB(uvec4);"
 2045|       |
 2046|    148|            "\n");
 2047|    148|    }
 2048|       |
 2049|  1.42k|    if (profile != EEsProfile && version >= 150) { //GL_ARB_gpu_shader5/GL_NV_gpu_shader5
  ------------------
  |  Branch (2049:9): [True: 1.27k, False: 148]
  |  Branch (2049:34): [True: 756, False: 516]
  ------------------
 2050|    756|        commonBuiltins.append(
 2051|    756|            "  int bitCount(  int);"
 2052|    756|            "ivec2 bitCount(ivec2);"
 2053|    756|            "ivec3 bitCount(ivec3);"
 2054|    756|            "ivec4 bitCount(ivec4);"
 2055|       |
 2056|    756|            "  int bitCount( uint);"
 2057|    756|            "ivec2 bitCount(uvec2);"
 2058|    756|            "ivec3 bitCount(uvec3);"
 2059|    756|            "ivec4 bitCount(uvec4);"
 2060|       |
 2061|    756|            "  int findMSB(highp   int);"
 2062|    756|            "ivec2 findMSB(highp ivec2);"
 2063|    756|            "ivec3 findMSB(highp ivec3);"
 2064|    756|            "ivec4 findMSB(highp ivec4);"
 2065|       |
 2066|    756|            "  int findMSB(highp  uint);"
 2067|    756|            "ivec2 findMSB(highp uvec2);"
 2068|    756|            "ivec3 findMSB(highp uvec3);"
 2069|    756|            "ivec4 findMSB(highp uvec4);"
 2070|    756|            "\n");
 2071|    756|    }
 2072|       |
 2073|  1.42k|    if (profile != EEsProfile && version >= 150 && version < 450) { //GL_NV_gpu_shader5
  ------------------
  |  Branch (2073:9): [True: 1.27k, False: 148]
  |  Branch (2073:34): [True: 756, False: 516]
  |  Branch (2073:52): [True: 455, False: 301]
  ------------------
 2074|    455|        commonBuiltins.append(
 2075|    455|            "int64_t  packInt2x32(ivec2);"
 2076|    455|            "uint64_t packUint2x32(uvec2);"
 2077|    455|            "ivec2    unpackInt2x32(int64_t);"
 2078|    455|            "uvec2    unpackUint2x32(uint64_t);"
 2079|       |
 2080|    455|            "uint     packFloat2x16(f16vec2);"
 2081|    455|            "f16vec2  unpackFloat2x16(uint);"
 2082|       |
 2083|    455|            "int64_t doubleBitsToInt64(double);"
 2084|    455|            "i64vec2 doubleBitsToInt64(dvec2);"
 2085|    455|            "i64vec3 doubleBitsToInt64(dvec3);"
 2086|    455|            "i64vec4 doubleBitsToInt64(dvec4);"
 2087|       |
 2088|    455|            "uint64_t doubleBitsToUint64(double);"
 2089|    455|            "u64vec2  doubleBitsToUint64(dvec2);"
 2090|    455|            "u64vec3  doubleBitsToUint64(dvec3);"
 2091|    455|            "u64vec4  doubleBitsToUint64(dvec4);"
 2092|       |
 2093|    455|            "double int64BitsToDouble(int64_t);"
 2094|    455|            "dvec2  int64BitsToDouble(i64vec2);"
 2095|    455|            "dvec3  int64BitsToDouble(i64vec3);"
 2096|    455|            "dvec4  int64BitsToDouble(i64vec4);"
 2097|       |
 2098|    455|            "double uint64BitsToDouble(uint64_t);"
 2099|    455|            "dvec2  uint64BitsToDouble(u64vec2);"
 2100|    455|            "dvec3  uint64BitsToDouble(u64vec3);"
 2101|    455|            "dvec4  uint64BitsToDouble(u64vec4);"
 2102|       |            // Modifications to Vector Relational Functions
 2103|       |            // Introduction of explicitly sized types
 2104|    455|            "bvec2 lessThan(i64vec2, i64vec2);"
 2105|    455|            "bvec3 lessThan(i64vec3, i64vec3);"
 2106|    455|            "bvec4 lessThan(i64vec4, i64vec4);"
 2107|    455|            "bvec2 lessThan(u64vec2, u64vec2);"
 2108|    455|            "bvec3 lessThan(u64vec3, u64vec3);"
 2109|    455|            "bvec4 lessThan(u64vec4, u64vec4);"
 2110|       |
 2111|    455|            "bvec2 lessThanEqual(i64vec2, i64vec2);"
 2112|    455|            "bvec3 lessThanEqual(i64vec3, i64vec3);"
 2113|    455|            "bvec4 lessThanEqual(i64vec4, i64vec4);"
 2114|    455|            "bvec2 lessThanEqual(u64vec2, u64vec2);"
 2115|    455|            "bvec3 lessThanEqual(u64vec3, u64vec3);"
 2116|    455|            "bvec4 lessThanEqual(u64vec4, u64vec4);"
 2117|       |
 2118|    455|            "bvec2 greaterThan(i64vec2, i64vec2);"
 2119|    455|            "bvec3 greaterThan(i64vec3, i64vec3);"
 2120|    455|            "bvec4 greaterThan(i64vec4, i64vec4);"
 2121|    455|            "bvec2 greaterThan(u64vec2, u64vec2);"
 2122|    455|            "bvec3 greaterThan(u64vec3, u64vec3);"
 2123|    455|            "bvec4 greaterThan(u64vec4, u64vec4);"
 2124|       |
 2125|    455|            "bvec2 greaterThanEqual(i64vec2, i64vec2);"
 2126|    455|            "bvec3 greaterThanEqual(i64vec3, i64vec3);"
 2127|    455|            "bvec4 greaterThanEqual(i64vec4, i64vec4);"
 2128|    455|            "bvec2 greaterThanEqual(u64vec2, u64vec2);"
 2129|    455|            "bvec3 greaterThanEqual(u64vec3, u64vec3);"
 2130|    455|            "bvec4 greaterThanEqual(u64vec4, u64vec4);"
 2131|       |
 2132|    455|            "bvec2 equal(i64vec2, i64vec2);"
 2133|    455|            "bvec3 equal(i64vec3, i64vec3);"
 2134|    455|            "bvec4 equal(i64vec4, i64vec4);"
 2135|    455|            "bvec2 equal(u64vec2, u64vec2);"
 2136|    455|            "bvec3 equal(u64vec3, u64vec3);"
 2137|    455|            "bvec4 equal(u64vec4, u64vec4);"
 2138|       |
 2139|    455|            "bvec2 notEqual(i64vec2, i64vec2);"
 2140|    455|            "bvec3 notEqual(i64vec3, i64vec3);"
 2141|    455|            "bvec4 notEqual(i64vec4, i64vec4);"
 2142|    455|            "bvec2 notEqual(u64vec2, u64vec2);"
 2143|    455|            "bvec3 notEqual(u64vec3, u64vec3);"
 2144|    455|            "bvec4 notEqual(u64vec4, u64vec4);"
 2145|       |
 2146|    455|            "bvec2 lessThan(f16vec2, f16vec2);"
 2147|    455|            "bvec3 lessThan(f16vec3, f16vec3);"
 2148|    455|            "bvec4 lessThan(f16vec4, f16vec4);"
 2149|       |
 2150|    455|            "bvec2 lessThanEqual(f16vec2, f16vec2);"
 2151|    455|            "bvec3 lessThanEqual(f16vec3, f16vec3);"
 2152|    455|            "bvec4 lessThanEqual(f16vec4, f16vec4);"
 2153|       |
 2154|    455|            "bvec2 greaterThan(f16vec2, f16vec2);"
 2155|    455|            "bvec3 greaterThan(f16vec3, f16vec3);"
 2156|    455|            "bvec4 greaterThan(f16vec4, f16vec4);"
 2157|       |
 2158|    455|            "bvec2 greaterThanEqual(f16vec2, f16vec2);"
 2159|    455|            "bvec3 greaterThanEqual(f16vec3, f16vec3);"
 2160|    455|            "bvec4 greaterThanEqual(f16vec4, f16vec4);"
 2161|       |
 2162|    455|            "bvec2 equal(f16vec2, f16vec2);"
 2163|    455|            "bvec3 equal(f16vec3, f16vec3);"
 2164|    455|            "bvec4 equal(f16vec4, f16vec4);"
 2165|       |
 2166|    455|            "bvec2 notEqual(f16vec2, f16vec2);"
 2167|    455|            "bvec3 notEqual(f16vec3, f16vec3);"
 2168|    455|            "bvec4 notEqual(f16vec4, f16vec4);"
 2169|       |
 2170|       |            // Dependency on GL_ARB_gpu_shader_fp64
 2171|    455|            "bvec2 lessThan(dvec2, dvec2);"
 2172|    455|            "bvec3 lessThan(dvec3, dvec3);"
 2173|    455|            "bvec4 lessThan(dvec4, dvec4);"
 2174|       |
 2175|    455|            "bvec2 lessThanEqual(dvec2, dvec2);"
 2176|    455|            "bvec3 lessThanEqual(dvec3, dvec3);"
 2177|    455|            "bvec4 lessThanEqual(dvec4, dvec4);"
 2178|       |
 2179|    455|            "bvec2 greaterThan(dvec2, dvec2);"
 2180|    455|            "bvec3 greaterThan(dvec3, dvec3);"
 2181|    455|            "bvec4 greaterThan(dvec4, dvec4);"
 2182|       |
 2183|    455|            "bvec2 greaterThanEqual(dvec2, dvec2);"
 2184|    455|            "bvec3 greaterThanEqual(dvec3, dvec3);"
 2185|    455|            "bvec4 greaterThanEqual(dvec4, dvec4);"
 2186|       |
 2187|    455|            "bvec2 equal(dvec2, dvec2);"
 2188|    455|            "bvec3 equal(dvec3, dvec3);"
 2189|    455|            "bvec4 equal(dvec4, dvec4);"
 2190|       |
 2191|    455|            "bvec2 notEqual(dvec2, dvec2);"
 2192|    455|            "bvec3 notEqual(dvec3, dvec3);"
 2193|    455|            "bvec4 notEqual(dvec4, dvec4);"
 2194|       |
 2195|    455|            "\n");
 2196|    455|    }
 2197|       |
 2198|       |
 2199|  1.42k|    if (profile != EEsProfile && version >= 150) {
  ------------------
  |  Branch (2199:9): [True: 1.27k, False: 148]
  |  Branch (2199:34): [True: 756, False: 516]
  ------------------
 2200|    756|        commonBuiltins.append(
 2201|    756|            "bool anyThreadNV(bool);"
 2202|    756|            "bool allThreadsNV(bool);"
 2203|    756|            "bool allThreadsEqualNV(bool);"
 2204|       |
 2205|    756|            "\n");
 2206|    756|    }
 2207|       |
 2208|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (2208:10): [True: 148, False: 1.27k]
  |  Branch (2208:35): [True: 148, False: 0]
  ------------------
 2209|  1.27k|        (profile != EEsProfile && version >= 150)) { // NV_gpu_shader5
  ------------------
  |  Branch (2209:10): [True: 1.27k, False: 0]
  |  Branch (2209:35): [True: 756, False: 516]
  ------------------
 2210|    904|        commonBuiltins.append(
 2211|    904|            " uint uaddCarry(highp  uint, highp  uint, out lowp  uint carry);"
 2212|    904|            "uvec2 uaddCarry(highp uvec2, highp uvec2, out lowp uvec2 carry);"
 2213|    904|            "uvec3 uaddCarry(highp uvec3, highp uvec3, out lowp uvec3 carry);"
 2214|    904|            "uvec4 uaddCarry(highp uvec4, highp uvec4, out lowp uvec4 carry);"
 2215|       |
 2216|    904|            " uint usubBorrow(highp  uint, highp  uint, out lowp  uint borrow);"
 2217|    904|            "uvec2 usubBorrow(highp uvec2, highp uvec2, out lowp uvec2 borrow);"
 2218|    904|            "uvec3 usubBorrow(highp uvec3, highp uvec3, out lowp uvec3 borrow);"
 2219|    904|            "uvec4 usubBorrow(highp uvec4, highp uvec4, out lowp uvec4 borrow);"
 2220|       |
 2221|    904|            "void umulExtended(highp  uint, highp  uint, out highp  uint, out highp  uint lsb);"
 2222|    904|            "void umulExtended(highp uvec2, highp uvec2, out highp uvec2, out highp uvec2 lsb);"
 2223|    904|            "void umulExtended(highp uvec3, highp uvec3, out highp uvec3, out highp uvec3 lsb);"
 2224|    904|            "void umulExtended(highp uvec4, highp uvec4, out highp uvec4, out highp uvec4 lsb);"
 2225|       |
 2226|    904|            "void imulExtended(highp   int, highp   int, out highp   int, out highp   int lsb);"
 2227|    904|            "void imulExtended(highp ivec2, highp ivec2, out highp ivec2, out highp ivec2 lsb);"
 2228|    904|            "void imulExtended(highp ivec3, highp ivec3, out highp ivec3, out highp ivec3 lsb);"
 2229|    904|            "void imulExtended(highp ivec4, highp ivec4, out highp ivec4, out highp ivec4 lsb);"
 2230|       |
 2231|    904|            "  int bitfieldReverse(highp   int);"
 2232|    904|            "ivec2 bitfieldReverse(highp ivec2);"
 2233|    904|            "ivec3 bitfieldReverse(highp ivec3);"
 2234|    904|            "ivec4 bitfieldReverse(highp ivec4);"
 2235|       |
 2236|    904|            " uint bitfieldReverse(highp  uint);"
 2237|    904|            "uvec2 bitfieldReverse(highp uvec2);"
 2238|    904|            "uvec3 bitfieldReverse(highp uvec3);"
 2239|    904|            "uvec4 bitfieldReverse(highp uvec4);"
 2240|       |
 2241|    904|            "\n");
 2242|    904|    }
 2243|       |
 2244|  1.42k|    if (profile == EEsProfile && version >= 310) {
  ------------------
  |  Branch (2244:9): [True: 148, False: 1.27k]
  |  Branch (2244:34): [True: 148, False: 0]
  ------------------
 2245|    148|        commonBuiltins.append(
 2246|    148|            "lowp   int bitCount(  int);"
 2247|    148|            "lowp ivec2 bitCount(ivec2);"
 2248|    148|            "lowp ivec3 bitCount(ivec3);"
 2249|    148|            "lowp ivec4 bitCount(ivec4);"
 2250|       |
 2251|    148|            "lowp   int bitCount( uint);"
 2252|    148|            "lowp ivec2 bitCount(uvec2);"
 2253|    148|            "lowp ivec3 bitCount(uvec3);"
 2254|    148|            "lowp ivec4 bitCount(uvec4);"
 2255|       |
 2256|    148|            "lowp   int findMSB(highp   int);"
 2257|    148|            "lowp ivec2 findMSB(highp ivec2);"
 2258|    148|            "lowp ivec3 findMSB(highp ivec3);"
 2259|    148|            "lowp ivec4 findMSB(highp ivec4);"
 2260|       |
 2261|    148|            "lowp   int findMSB(highp  uint);"
 2262|    148|            "lowp ivec2 findMSB(highp uvec2);"
 2263|    148|            "lowp ivec3 findMSB(highp uvec3);"
 2264|    148|            "lowp ivec4 findMSB(highp uvec4);"
 2265|       |
 2266|    148|            "\n");
 2267|    148|    }
 2268|       |
 2269|       |    // GL_ARB_shader_ballot
 2270|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (2270:9): [True: 1.27k, False: 148]
  |  Branch (2270:34): [True: 301, False: 971]
  ------------------
 2271|    301|        commonBuiltins.append(
 2272|    301|            "uint64_t ballotARB(bool);"
 2273|       |
 2274|    301|            "float readInvocationARB(float, uint);"
 2275|    301|            "vec2  readInvocationARB(vec2,  uint);"
 2276|    301|            "vec3  readInvocationARB(vec3,  uint);"
 2277|    301|            "vec4  readInvocationARB(vec4,  uint);"
 2278|       |
 2279|    301|            "int   readInvocationARB(int,   uint);"
 2280|    301|            "ivec2 readInvocationARB(ivec2, uint);"
 2281|    301|            "ivec3 readInvocationARB(ivec3, uint);"
 2282|    301|            "ivec4 readInvocationARB(ivec4, uint);"
 2283|       |
 2284|    301|            "uint  readInvocationARB(uint,  uint);"
 2285|    301|            "uvec2 readInvocationARB(uvec2, uint);"
 2286|    301|            "uvec3 readInvocationARB(uvec3, uint);"
 2287|    301|            "uvec4 readInvocationARB(uvec4, uint);"
 2288|       |
 2289|    301|            "float readFirstInvocationARB(float);"
 2290|    301|            "vec2  readFirstInvocationARB(vec2);"
 2291|    301|            "vec3  readFirstInvocationARB(vec3);"
 2292|    301|            "vec4  readFirstInvocationARB(vec4);"
 2293|       |
 2294|    301|            "int   readFirstInvocationARB(int);"
 2295|    301|            "ivec2 readFirstInvocationARB(ivec2);"
 2296|    301|            "ivec3 readFirstInvocationARB(ivec3);"
 2297|    301|            "ivec4 readFirstInvocationARB(ivec4);"
 2298|       |
 2299|    301|            "uint  readFirstInvocationARB(uint);"
 2300|    301|            "uvec2 readFirstInvocationARB(uvec2);"
 2301|    301|            "uvec3 readFirstInvocationARB(uvec3);"
 2302|    301|            "uvec4 readFirstInvocationARB(uvec4);"
 2303|       |
 2304|    301|            "\n");
 2305|    301|    }
 2306|       |
 2307|       |    // GL_ARB_shader_group_vote
 2308|  1.42k|    if (profile != EEsProfile && version >= 430) {
  ------------------
  |  Branch (2308:9): [True: 1.27k, False: 148]
  |  Branch (2308:34): [True: 536, False: 736]
  ------------------
 2309|    536|        commonBuiltins.append(
 2310|    536|            "bool anyInvocationARB(bool);"
 2311|    536|            "bool allInvocationsARB(bool);"
 2312|    536|            "bool allInvocationsEqualARB(bool);"
 2313|       |
 2314|    536|            "\n");
 2315|    536|    }
 2316|       |
 2317|       |    // GL_EXT_integer_dot_product
 2318|  1.42k|    if ((profile == EEsProfile && version >= 300) ||
  ------------------
  |  Branch (2318:10): [True: 148, False: 1.27k]
  |  Branch (2318:35): [True: 148, False: 0]
  ------------------
 2319|  1.27k|        (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (2319:10): [True: 1.27k, False: 0]
  |  Branch (2319:35): [True: 301, False: 971]
  ------------------
 2320|    449|        commonBuiltins.append(
 2321|       |
 2322|    449|            "uint dotEXT(uvec2 a, uvec2 b);"
 2323|    449|            "int dotEXT(ivec2 a, ivec2 b);"
 2324|    449|            "int dotEXT(ivec2 a, uvec2 b);"
 2325|    449|            "int dotEXT(uvec2 a, ivec2 b);"
 2326|       |
 2327|    449|            "uint dotEXT(uvec3 a, uvec3 b);"
 2328|    449|            "int dotEXT(ivec3 a, ivec3 b);"
 2329|    449|            "int dotEXT(ivec3 a, uvec3 b);"
 2330|    449|            "int dotEXT(uvec3 a, ivec3 b);"
 2331|       |
 2332|    449|            "uint dotEXT(uvec4 a, uvec4 b);"
 2333|    449|            "int dotEXT(ivec4 a, ivec4 b);"
 2334|    449|            "int dotEXT(ivec4 a, uvec4 b);"
 2335|    449|            "int dotEXT(uvec4 a, ivec4 b);"
 2336|       |
 2337|    449|            "uint dotPacked4x8EXT(uint a, uint b);"
 2338|    449|            "int dotPacked4x8EXT(int a, uint b);"
 2339|    449|            "int dotPacked4x8EXT(uint a, int b);"
 2340|    449|            "int dotPacked4x8EXT(int a, int b);"
 2341|       |
 2342|    449|            "uint dotEXT(u8vec2 a, u8vec2 b);"
 2343|    449|            "int dotEXT(i8vec2 a, u8vec2 b);"
 2344|    449|            "int dotEXT(u8vec2 a, i8vec2 b);"
 2345|    449|            "int dotEXT(i8vec2 a, i8vec2 b);"
 2346|       |
 2347|    449|            "uint dotEXT(u8vec3 a, u8vec3 b);"
 2348|    449|            "int dotEXT(i8vec3 a, u8vec3 b);"
 2349|    449|            "int dotEXT(u8vec3 a, i8vec3 b);"
 2350|    449|            "int dotEXT(i8vec3 a, i8vec3 b);"
 2351|       |
 2352|    449|            "uint dotEXT(u8vec4 a, u8vec4 b);"
 2353|    449|            "int dotEXT(i8vec4 a, u8vec4 b);"
 2354|    449|            "int dotEXT(u8vec4 a, i8vec4 b);"
 2355|    449|            "int dotEXT(i8vec4 a, i8vec4 b);"
 2356|       |
 2357|    449|            "uint dotEXT(u16vec2 a, u16vec2 b);"
 2358|    449|            "int dotEXT(i16vec2 a, u16vec2 b);"
 2359|    449|            "int dotEXT(u16vec2 a, i16vec2 b);"
 2360|    449|            "int dotEXT(i16vec2 a, i16vec2 b);"
 2361|       |
 2362|    449|            "uint dotEXT(u16vec3 a, u16vec3 b);"
 2363|    449|            "int dotEXT(i16vec3 a, u16vec3 b);"
 2364|    449|            "int dotEXT(u16vec3 a, i16vec3 b);"
 2365|    449|            "int dotEXT(i16vec3 a, i16vec3 b);"
 2366|       |
 2367|    449|            "uint dotEXT(u16vec4 a, u16vec4 b);"
 2368|    449|            "int dotEXT(i16vec4 a, u16vec4 b);"
 2369|    449|            "int dotEXT(u16vec4 a, i16vec4 b);"
 2370|    449|            "int dotEXT(i16vec4 a, i16vec4 b);"
 2371|       |
 2372|    449|            "uint64_t dotEXT(u64vec2 a, u64vec2 b);"
 2373|    449|            "int64_t dotEXT(i64vec2 a, u64vec2 b);"
 2374|    449|            "int64_t dotEXT(u64vec2 a, i64vec2 b);"
 2375|    449|            "int64_t dotEXT(i64vec2 a, i64vec2 b);"
 2376|       |
 2377|    449|            "uint64_t dotEXT(u64vec3 a, u64vec3 b);"
 2378|    449|            "int64_t dotEXT(i64vec3 a, u64vec3 b);"
 2379|    449|            "int64_t dotEXT(u64vec3 a, i64vec3 b);"
 2380|    449|            "int64_t dotEXT(i64vec3 a, i64vec3 b);"
 2381|       |
 2382|    449|            "uint64_t dotEXT(u64vec4 a, u64vec4 b);"
 2383|    449|            "int64_t dotEXT(i64vec4 a, u64vec4 b);"
 2384|    449|            "int64_t dotEXT(u64vec4 a, i64vec4 b);"
 2385|    449|            "int64_t dotEXT(i64vec4 a, i64vec4 b);"
 2386|       |
 2387|    449|            "uint dotAccSatEXT(uvec2 a, uvec2 b, uint c);"
 2388|    449|            "int dotAccSatEXT(ivec2 a, uvec2 b, int c);"
 2389|    449|            "int dotAccSatEXT(uvec2 a, ivec2 b, int c);"
 2390|    449|            "int dotAccSatEXT(ivec2 a, ivec2 b, int c);"
 2391|       |
 2392|    449|            "uint dotAccSatEXT(uvec3 a, uvec3 b, uint c);"
 2393|    449|            "int dotAccSatEXT(ivec3 a, uvec3 b, int c);"
 2394|    449|            "int dotAccSatEXT(uvec3 a, ivec3 b, int c);"
 2395|    449|            "int dotAccSatEXT(ivec3 a, ivec3 b, int c);"
 2396|       |
 2397|    449|            "uint dotAccSatEXT(uvec4 a, uvec4 b, uint c);"
 2398|    449|            "int dotAccSatEXT(ivec4 a, uvec4 b, int c);"
 2399|    449|            "int dotAccSatEXT(uvec4 a, ivec4 b, int c);"
 2400|    449|            "int dotAccSatEXT(ivec4 a, ivec4 b, int c);"
 2401|       |
 2402|    449|            "uint dotPacked4x8AccSatEXT(uint a, uint b, uint c);"
 2403|    449|            "int dotPacked4x8AccSatEXT(int a, uint b, int c);"
 2404|    449|            "int dotPacked4x8AccSatEXT(uint a, int b, int c);"
 2405|    449|            "int dotPacked4x8AccSatEXT(int a, int b, int c);"
 2406|       |
 2407|    449|            "uint dotAccSatEXT(u8vec2 a, u8vec2 b, uint c);"
 2408|    449|            "int dotAccSatEXT(i8vec2 a, u8vec2 b, int c);"
 2409|    449|            "int dotAccSatEXT(u8vec2 a, i8vec2 b, int c);"
 2410|    449|            "int dotAccSatEXT(i8vec2 a, i8vec2 b, int c);"
 2411|       |
 2412|    449|            "uint dotAccSatEXT(u8vec3 a, u8vec3 b, uint c);"
 2413|    449|            "int dotAccSatEXT(i8vec3 a, u8vec3 b, int c);"
 2414|    449|            "int dotAccSatEXT(u8vec3 a, i8vec3 b, int c);"
 2415|    449|            "int dotAccSatEXT(i8vec3 a, i8vec3 b, int c);"
 2416|       |
 2417|    449|            "uint dotAccSatEXT(u8vec4 a, u8vec4 b, uint c);"
 2418|    449|            "int dotAccSatEXT(i8vec4 a, u8vec4 b, int c);"
 2419|    449|            "int dotAccSatEXT(u8vec4 a, i8vec4 b, int c);"
 2420|    449|            "int dotAccSatEXT(i8vec4 a, i8vec4 b, int c);"
 2421|       |
 2422|    449|            "uint dotAccSatEXT(u16vec2 a, u16vec2 b, uint c);"
 2423|    449|            "int dotAccSatEXT(i16vec2 a, u16vec2 b, int c);"
 2424|    449|            "int dotAccSatEXT(u16vec2 a, i16vec2 b, int c);"
 2425|    449|            "int dotAccSatEXT(i16vec2 a, i16vec2 b, int c);"
 2426|       |
 2427|    449|            "uint dotAccSatEXT(u16vec3 a, u16vec3 b, uint c);"
 2428|    449|            "int dotAccSatEXT(i16vec3 a, u16vec3 b, int c);"
 2429|    449|            "int dotAccSatEXT(u16vec3 a, i16vec3 b, int c);"
 2430|    449|            "int dotAccSatEXT(i16vec3 a, i16vec3 b, int c);"
 2431|       |
 2432|    449|            "uint dotAccSatEXT(u16vec4 a, u16vec4 b, uint c);"
 2433|    449|            "int dotAccSatEXT(i16vec4 a, u16vec4 b, int c);"
 2434|    449|            "int dotAccSatEXT(u16vec4 a, i16vec4 b, int c);"
 2435|    449|            "int dotAccSatEXT(i16vec4 a, i16vec4 b, int c);"
 2436|       |
 2437|    449|            "uint64_t dotAccSatEXT(u64vec2 a, u64vec2 b, uint64_t c);"
 2438|    449|            "int64_t dotAccSatEXT(i64vec2 a, u64vec2 b, int64_t c);"
 2439|    449|            "int64_t dotAccSatEXT(u64vec2 a, i64vec2 b, int64_t c);"
 2440|    449|            "int64_t dotAccSatEXT(i64vec2 a, i64vec2 b, int64_t c);"
 2441|       |
 2442|    449|            "uint64_t dotAccSatEXT(u64vec3 a, u64vec3 b, uint64_t c);"
 2443|    449|            "int64_t dotAccSatEXT(i64vec3 a, u64vec3 b, int64_t c);"
 2444|    449|            "int64_t dotAccSatEXT(u64vec3 a, i64vec3 b, int64_t c);"
 2445|    449|            "int64_t dotAccSatEXT(i64vec3 a, i64vec3 b, int64_t c);"
 2446|       |
 2447|    449|            "uint64_t dotAccSatEXT(u64vec4 a, u64vec4 b, uint64_t c);"
 2448|    449|            "int64_t dotAccSatEXT(i64vec4 a, u64vec4 b, int64_t c);"
 2449|    449|            "int64_t dotAccSatEXT(u64vec4 a, i64vec4 b, int64_t c);"
 2450|    449|            "int64_t dotAccSatEXT(i64vec4 a, i64vec4 b, int64_t c);"
 2451|    449|            "\n");
 2452|    449|    }
 2453|       |
 2454|       |    // GL_KHR_shader_subgroup
 2455|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (2455:10): [True: 148, False: 1.27k]
  |  Branch (2455:35): [True: 148, False: 0]
  ------------------
 2456|  1.42k|        (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (2456:10): [True: 1.27k, False: 0]
  |  Branch (2456:35): [True: 1.27k, False: 0]
  ------------------
 2457|  1.42k|        commonBuiltins.append(
 2458|  1.42k|            "void subgroupBarrier();"
 2459|  1.42k|            "void subgroupMemoryBarrier();"
 2460|  1.42k|            "void subgroupMemoryBarrierBuffer();"
 2461|  1.42k|            "void subgroupMemoryBarrierImage();"
 2462|  1.42k|            "bool subgroupElect();"
 2463|       |
 2464|  1.42k|            "bool   subgroupAll(bool);\n"
 2465|  1.42k|            "bool   subgroupAny(bool);\n"
 2466|  1.42k|            "uvec4  subgroupBallot(bool);\n"
 2467|  1.42k|            "bool   subgroupInverseBallot(uvec4);\n"
 2468|  1.42k|            "bool   subgroupBallotBitExtract(uvec4, uint);\n"
 2469|  1.42k|            "uint   subgroupBallotBitCount(uvec4);\n"
 2470|  1.42k|            "uint   subgroupBallotInclusiveBitCount(uvec4);\n"
 2471|  1.42k|            "uint   subgroupBallotExclusiveBitCount(uvec4);\n"
 2472|  1.42k|            "uint   subgroupBallotFindLSB(uvec4);\n"
 2473|  1.42k|            "uint   subgroupBallotFindMSB(uvec4);\n"
 2474|  1.42k|            );
 2475|       |
 2476|       |        // Generate all flavors of subgroup ops.
 2477|  1.42k|        static const char *subgroupOps[] =
 2478|  1.42k|        {
 2479|  1.42k|            "bool   subgroupAllEqual(%s);\n",
 2480|  1.42k|            "%s     subgroupBroadcast(%s, uint);\n",
 2481|  1.42k|            "%s     subgroupBroadcastFirst(%s);\n",
 2482|  1.42k|            "%s     subgroupShuffle(%s, uint);\n",
 2483|  1.42k|            "%s     subgroupShuffleXor(%s, uint);\n",
 2484|  1.42k|            "%s     subgroupShuffleUp(%s, uint delta);\n",
 2485|  1.42k|            "%s     subgroupShuffleDown(%s, uint delta);\n",
 2486|  1.42k|            "%s     subgroupRotate(%s, uint);\n",
 2487|  1.42k|            "%s     subgroupClusteredRotate(%s, uint, uint);\n",
 2488|  1.42k|            "%s     subgroupAdd(%s);\n",
 2489|  1.42k|            "%s     subgroupMul(%s);\n",
 2490|  1.42k|            "%s     subgroupMin(%s);\n",
 2491|  1.42k|            "%s     subgroupMax(%s);\n",
 2492|  1.42k|            "%s     subgroupAnd(%s);\n",
 2493|  1.42k|            "%s     subgroupOr(%s);\n",
 2494|  1.42k|            "%s     subgroupXor(%s);\n",
 2495|  1.42k|            "%s     subgroupInclusiveAdd(%s);\n",
 2496|  1.42k|            "%s     subgroupInclusiveMul(%s);\n",
 2497|  1.42k|            "%s     subgroupInclusiveMin(%s);\n",
 2498|  1.42k|            "%s     subgroupInclusiveMax(%s);\n",
 2499|  1.42k|            "%s     subgroupInclusiveAnd(%s);\n",
 2500|  1.42k|            "%s     subgroupInclusiveOr(%s);\n",
 2501|  1.42k|            "%s     subgroupInclusiveXor(%s);\n",
 2502|  1.42k|            "%s     subgroupExclusiveAdd(%s);\n",
 2503|  1.42k|            "%s     subgroupExclusiveMul(%s);\n",
 2504|  1.42k|            "%s     subgroupExclusiveMin(%s);\n",
 2505|  1.42k|            "%s     subgroupExclusiveMax(%s);\n",
 2506|  1.42k|            "%s     subgroupExclusiveAnd(%s);\n",
 2507|  1.42k|            "%s     subgroupExclusiveOr(%s);\n",
 2508|  1.42k|            "%s     subgroupExclusiveXor(%s);\n",
 2509|  1.42k|            "%s     subgroupClusteredAdd(%s, uint);\n",
 2510|  1.42k|            "%s     subgroupClusteredMul(%s, uint);\n",
 2511|  1.42k|            "%s     subgroupClusteredMin(%s, uint);\n",
 2512|  1.42k|            "%s     subgroupClusteredMax(%s, uint);\n",
 2513|  1.42k|            "%s     subgroupClusteredAnd(%s, uint);\n",
 2514|  1.42k|            "%s     subgroupClusteredOr(%s, uint);\n",
 2515|  1.42k|            "%s     subgroupClusteredXor(%s, uint);\n",
 2516|  1.42k|            "%s     subgroupQuadBroadcast(%s, uint);\n",
 2517|  1.42k|            "%s     subgroupQuadSwapHorizontal(%s);\n",
 2518|  1.42k|            "%s     subgroupQuadSwapVertical(%s);\n",
 2519|  1.42k|            "%s     subgroupQuadSwapDiagonal(%s);\n",
 2520|  1.42k|            "uvec4  subgroupPartitionNV(%s);\n",
 2521|  1.42k|            "%s     subgroupPartitionedAddNV(%s, uvec4 ballot);\n",
 2522|  1.42k|            "%s     subgroupPartitionedMulNV(%s, uvec4 ballot);\n",
 2523|  1.42k|            "%s     subgroupPartitionedMinNV(%s, uvec4 ballot);\n",
 2524|  1.42k|            "%s     subgroupPartitionedMaxNV(%s, uvec4 ballot);\n",
 2525|  1.42k|            "%s     subgroupPartitionedAndNV(%s, uvec4 ballot);\n",
 2526|  1.42k|            "%s     subgroupPartitionedOrNV(%s, uvec4 ballot);\n",
 2527|  1.42k|            "%s     subgroupPartitionedXorNV(%s, uvec4 ballot);\n",
 2528|  1.42k|            "%s     subgroupPartitionedInclusiveAddNV(%s, uvec4 ballot);\n",
 2529|  1.42k|            "%s     subgroupPartitionedInclusiveMulNV(%s, uvec4 ballot);\n",
 2530|  1.42k|            "%s     subgroupPartitionedInclusiveMinNV(%s, uvec4 ballot);\n",
 2531|  1.42k|            "%s     subgroupPartitionedInclusiveMaxNV(%s, uvec4 ballot);\n",
 2532|  1.42k|            "%s     subgroupPartitionedInclusiveAndNV(%s, uvec4 ballot);\n",
 2533|  1.42k|            "%s     subgroupPartitionedInclusiveOrNV(%s, uvec4 ballot);\n",
 2534|  1.42k|            "%s     subgroupPartitionedInclusiveXorNV(%s, uvec4 ballot);\n",
 2535|  1.42k|            "%s     subgroupPartitionedExclusiveAddNV(%s, uvec4 ballot);\n",
 2536|  1.42k|            "%s     subgroupPartitionedExclusiveMulNV(%s, uvec4 ballot);\n",
 2537|  1.42k|            "%s     subgroupPartitionedExclusiveMinNV(%s, uvec4 ballot);\n",
 2538|  1.42k|            "%s     subgroupPartitionedExclusiveMaxNV(%s, uvec4 ballot);\n",
 2539|  1.42k|            "%s     subgroupPartitionedExclusiveAndNV(%s, uvec4 ballot);\n",
 2540|  1.42k|            "%s     subgroupPartitionedExclusiveOrNV(%s, uvec4 ballot);\n",
 2541|  1.42k|            "%s     subgroupPartitionedExclusiveXorNV(%s, uvec4 ballot);\n",
 2542|  1.42k|        };
 2543|       |
 2544|  1.42k|        static const char *floatTypes[] = {
 2545|  1.42k|            "float", "vec2", "vec3", "vec4",
 2546|  1.42k|            "float16_t", "f16vec2", "f16vec3", "f16vec4",
 2547|  1.42k|        };
 2548|  1.42k|        static const char *doubleTypes[] = {
 2549|  1.42k|            "double", "dvec2", "dvec3", "dvec4",
 2550|  1.42k|        };
 2551|  1.42k|        static const char *intTypes[] = {
 2552|  1.42k|            "int8_t", "i8vec2", "i8vec3", "i8vec4",
 2553|  1.42k|            "int16_t", "i16vec2", "i16vec3", "i16vec4",
 2554|  1.42k|            "int", "ivec2", "ivec3", "ivec4",
 2555|  1.42k|            "int64_t", "i64vec2", "i64vec3", "i64vec4",
 2556|  1.42k|            "uint8_t", "u8vec2", "u8vec3", "u8vec4",
 2557|  1.42k|            "uint16_t", "u16vec2", "u16vec3", "u16vec4",
 2558|  1.42k|            "uint", "uvec2", "uvec3", "uvec4",
 2559|  1.42k|            "uint64_t", "u64vec2", "u64vec3", "u64vec4",
 2560|  1.42k|        };
 2561|  1.42k|        static const char *boolTypes[] = {
 2562|  1.42k|            "bool", "bvec2", "bvec3", "bvec4",
 2563|  1.42k|        };
 2564|       |
 2565|  90.8k|        for (size_t i = 0; i < sizeof(subgroupOps)/sizeof(subgroupOps[0]); ++i) {
  ------------------
  |  Branch (2565:28): [True: 89.4k, False: 1.42k]
  ------------------
 2566|  89.4k|            const char *op = subgroupOps[i];
 2567|       |
 2568|       |            // Logical operations don't support float
 2569|  89.4k|            bool logicalOp = strstr(op, "Or") || strstr(op, "And") ||
  ------------------
  |  Branch (2569:30): [True: 9.94k, False: 79.5k]
  |  Branch (2569:50): [True: 9.94k, False: 69.5k]
  ------------------
 2570|  69.5k|                             (strstr(op, "Xor") && !strstr(op, "ShuffleXor"));
  ------------------
  |  Branch (2570:31): [True: 11.3k, False: 58.2k]
  |  Branch (2570:52): [True: 9.94k, False: 1.42k]
  ------------------
 2571|       |            // Math operations don't support bool
 2572|  89.4k|            bool mathOp = strstr(op, "Add") || strstr(op, "Mul") || strstr(op, "Min") || strstr(op, "Max");
  ------------------
  |  Branch (2572:27): [True: 9.94k, False: 79.5k]
  |  Branch (2572:48): [True: 9.94k, False: 69.5k]
  |  Branch (2572:69): [True: 9.94k, False: 59.6k]
  |  Branch (2572:90): [True: 9.94k, False: 49.7k]
  ------------------
 2573|       |
 2574|  89.4k|            const int bufSize = 256;
 2575|  89.4k|            char buf[bufSize];
 2576|       |
 2577|  89.4k|            if (!logicalOp) {
  ------------------
  |  Branch (2577:17): [True: 59.6k, False: 29.8k]
  ------------------
 2578|   536k|                for (size_t j = 0; j < sizeof(floatTypes)/sizeof(floatTypes[0]); ++j) {
  ------------------
  |  Branch (2578:36): [True: 477k, False: 59.6k]
  ------------------
 2579|   477k|                    snprintf(buf, bufSize, op, floatTypes[j], floatTypes[j]);
 2580|   477k|                    commonBuiltins.append(buf);
 2581|   477k|                }
 2582|  59.6k|                if (profile != EEsProfile && version >= 400) {
  ------------------
  |  Branch (2582:21): [True: 53.4k, False: 6.21k]
  |  Branch (2582:46): [True: 23.8k, False: 29.5k]
  ------------------
 2583|   119k|                    for (size_t j = 0; j < sizeof(doubleTypes)/sizeof(doubleTypes[0]); ++j) {
  ------------------
  |  Branch (2583:40): [True: 95.5k, False: 23.8k]
  ------------------
 2584|  95.5k|                        snprintf(buf, bufSize, op, doubleTypes[j], doubleTypes[j]);
 2585|  95.5k|                        commonBuiltins.append(buf);
 2586|  95.5k|                    }
 2587|  23.8k|                }
 2588|  59.6k|            }
 2589|  89.4k|            if (!mathOp) {
  ------------------
  |  Branch (2589:17): [True: 49.7k, False: 39.7k]
  ------------------
 2590|   248k|                for (size_t j = 0; j < sizeof(boolTypes)/sizeof(boolTypes[0]); ++j) {
  ------------------
  |  Branch (2590:36): [True: 198k, False: 49.7k]
  ------------------
 2591|   198k|                    snprintf(buf, bufSize, op, boolTypes[j], boolTypes[j]);
 2592|   198k|                    commonBuiltins.append(buf);
 2593|   198k|                }
 2594|  49.7k|            }
 2595|  2.95M|            for (size_t j = 0; j < sizeof(intTypes)/sizeof(intTypes[0]); ++j) {
  ------------------
  |  Branch (2595:32): [True: 2.86M, False: 89.4k]
  ------------------
 2596|  2.86M|                snprintf(buf, bufSize, op, intTypes[j], intTypes[j]);
 2597|  2.86M|                commonBuiltins.append(buf);
 2598|  2.86M|            }
 2599|  89.4k|            snprintf(buf, bufSize, op, "vector", "vector");
 2600|  89.4k|            commonBuiltins.append(buf);
 2601|  89.4k|        }
 2602|       |
 2603|  1.42k|        stageBuiltins[EShLangCompute].append(
 2604|  1.42k|            "void subgroupMemoryBarrierShared();"
 2605|       |
 2606|  1.42k|            "\n"
 2607|  1.42k|            );
 2608|  1.42k|        stageBuiltins[EShLangMesh].append(
 2609|  1.42k|            "void subgroupMemoryBarrierShared();"
 2610|  1.42k|            "\n"
 2611|  1.42k|            );
 2612|  1.42k|        stageBuiltins[EShLangTask].append(
 2613|  1.42k|            "void subgroupMemoryBarrierShared();"
 2614|  1.42k|            "\n"
 2615|  1.42k|            );
 2616|  1.42k|    }
 2617|       |
 2618|       |    // GL_EXT_shader_quad_control
 2619|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (2619:10): [True: 148, False: 1.27k]
  |  Branch (2619:35): [True: 148, False: 0]
  ------------------
 2620|  1.42k|        (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (2620:10): [True: 1.27k, False: 0]
  |  Branch (2620:35): [True: 1.27k, False: 0]
  ------------------
 2621|  1.42k|        commonBuiltins.append(
 2622|  1.42k|            "bool subgroupQuadAll(bool);\n"
 2623|  1.42k|            "bool subgroupQuadAny(bool);\n"
 2624|  1.42k|            );
 2625|  1.42k|    }
 2626|       |
 2627|  1.42k|    if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (2627:9): [True: 1.27k, False: 148]
  |  Branch (2627:34): [True: 45, False: 1.22k]
  ------------------
 2628|     45|        commonBuiltins.append(
 2629|     45|            "bool anyInvocation(bool);"
 2630|     45|            "bool allInvocations(bool);"
 2631|     45|            "bool allInvocationsEqual(bool);"
 2632|       |
 2633|     45|            "\n");
 2634|     45|    }
 2635|       |
 2636|       |    // GL_AMD_shader_ballot
 2637|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (2637:9): [True: 1.27k, False: 148]
  |  Branch (2637:34): [True: 301, False: 971]
  ------------------
 2638|    301|        commonBuiltins.append(
 2639|    301|            "float minInvocationsAMD(float);"
 2640|    301|            "vec2  minInvocationsAMD(vec2);"
 2641|    301|            "vec3  minInvocationsAMD(vec3);"
 2642|    301|            "vec4  minInvocationsAMD(vec4);"
 2643|       |
 2644|    301|            "int   minInvocationsAMD(int);"
 2645|    301|            "ivec2 minInvocationsAMD(ivec2);"
 2646|    301|            "ivec3 minInvocationsAMD(ivec3);"
 2647|    301|            "ivec4 minInvocationsAMD(ivec4);"
 2648|       |
 2649|    301|            "uint  minInvocationsAMD(uint);"
 2650|    301|            "uvec2 minInvocationsAMD(uvec2);"
 2651|    301|            "uvec3 minInvocationsAMD(uvec3);"
 2652|    301|            "uvec4 minInvocationsAMD(uvec4);"
 2653|       |
 2654|    301|            "double minInvocationsAMD(double);"
 2655|    301|            "dvec2  minInvocationsAMD(dvec2);"
 2656|    301|            "dvec3  minInvocationsAMD(dvec3);"
 2657|    301|            "dvec4  minInvocationsAMD(dvec4);"
 2658|       |
 2659|    301|            "int64_t minInvocationsAMD(int64_t);"
 2660|    301|            "i64vec2 minInvocationsAMD(i64vec2);"
 2661|    301|            "i64vec3 minInvocationsAMD(i64vec3);"
 2662|    301|            "i64vec4 minInvocationsAMD(i64vec4);"
 2663|       |
 2664|    301|            "uint64_t minInvocationsAMD(uint64_t);"
 2665|    301|            "u64vec2  minInvocationsAMD(u64vec2);"
 2666|    301|            "u64vec3  minInvocationsAMD(u64vec3);"
 2667|    301|            "u64vec4  minInvocationsAMD(u64vec4);"
 2668|       |
 2669|    301|            "float16_t minInvocationsAMD(float16_t);"
 2670|    301|            "f16vec2   minInvocationsAMD(f16vec2);"
 2671|    301|            "f16vec3   minInvocationsAMD(f16vec3);"
 2672|    301|            "f16vec4   minInvocationsAMD(f16vec4);"
 2673|       |
 2674|    301|            "int16_t minInvocationsAMD(int16_t);"
 2675|    301|            "i16vec2 minInvocationsAMD(i16vec2);"
 2676|    301|            "i16vec3 minInvocationsAMD(i16vec3);"
 2677|    301|            "i16vec4 minInvocationsAMD(i16vec4);"
 2678|       |
 2679|    301|            "uint16_t minInvocationsAMD(uint16_t);"
 2680|    301|            "u16vec2  minInvocationsAMD(u16vec2);"
 2681|    301|            "u16vec3  minInvocationsAMD(u16vec3);"
 2682|    301|            "u16vec4  minInvocationsAMD(u16vec4);"
 2683|       |
 2684|    301|            "float minInvocationsInclusiveScanAMD(float);"
 2685|    301|            "vec2  minInvocationsInclusiveScanAMD(vec2);"
 2686|    301|            "vec3  minInvocationsInclusiveScanAMD(vec3);"
 2687|    301|            "vec4  minInvocationsInclusiveScanAMD(vec4);"
 2688|       |
 2689|    301|            "int   minInvocationsInclusiveScanAMD(int);"
 2690|    301|            "ivec2 minInvocationsInclusiveScanAMD(ivec2);"
 2691|    301|            "ivec3 minInvocationsInclusiveScanAMD(ivec3);"
 2692|    301|            "ivec4 minInvocationsInclusiveScanAMD(ivec4);"
 2693|       |
 2694|    301|            "uint  minInvocationsInclusiveScanAMD(uint);"
 2695|    301|            "uvec2 minInvocationsInclusiveScanAMD(uvec2);"
 2696|    301|            "uvec3 minInvocationsInclusiveScanAMD(uvec3);"
 2697|    301|            "uvec4 minInvocationsInclusiveScanAMD(uvec4);"
 2698|       |
 2699|    301|            "double minInvocationsInclusiveScanAMD(double);"
 2700|    301|            "dvec2  minInvocationsInclusiveScanAMD(dvec2);"
 2701|    301|            "dvec3  minInvocationsInclusiveScanAMD(dvec3);"
 2702|    301|            "dvec4  minInvocationsInclusiveScanAMD(dvec4);"
 2703|       |
 2704|    301|            "int64_t minInvocationsInclusiveScanAMD(int64_t);"
 2705|    301|            "i64vec2 minInvocationsInclusiveScanAMD(i64vec2);"
 2706|    301|            "i64vec3 minInvocationsInclusiveScanAMD(i64vec3);"
 2707|    301|            "i64vec4 minInvocationsInclusiveScanAMD(i64vec4);"
 2708|       |
 2709|    301|            "uint64_t minInvocationsInclusiveScanAMD(uint64_t);"
 2710|    301|            "u64vec2  minInvocationsInclusiveScanAMD(u64vec2);"
 2711|    301|            "u64vec3  minInvocationsInclusiveScanAMD(u64vec3);"
 2712|    301|            "u64vec4  minInvocationsInclusiveScanAMD(u64vec4);"
 2713|       |
 2714|    301|            "float16_t minInvocationsInclusiveScanAMD(float16_t);"
 2715|    301|            "f16vec2   minInvocationsInclusiveScanAMD(f16vec2);"
 2716|    301|            "f16vec3   minInvocationsInclusiveScanAMD(f16vec3);"
 2717|    301|            "f16vec4   minInvocationsInclusiveScanAMD(f16vec4);"
 2718|       |
 2719|    301|            "int16_t minInvocationsInclusiveScanAMD(int16_t);"
 2720|    301|            "i16vec2 minInvocationsInclusiveScanAMD(i16vec2);"
 2721|    301|            "i16vec3 minInvocationsInclusiveScanAMD(i16vec3);"
 2722|    301|            "i16vec4 minInvocationsInclusiveScanAMD(i16vec4);"
 2723|       |
 2724|    301|            "uint16_t minInvocationsInclusiveScanAMD(uint16_t);"
 2725|    301|            "u16vec2  minInvocationsInclusiveScanAMD(u16vec2);"
 2726|    301|            "u16vec3  minInvocationsInclusiveScanAMD(u16vec3);"
 2727|    301|            "u16vec4  minInvocationsInclusiveScanAMD(u16vec4);"
 2728|       |
 2729|    301|            "float minInvocationsExclusiveScanAMD(float);"
 2730|    301|            "vec2  minInvocationsExclusiveScanAMD(vec2);"
 2731|    301|            "vec3  minInvocationsExclusiveScanAMD(vec3);"
 2732|    301|            "vec4  minInvocationsExclusiveScanAMD(vec4);"
 2733|       |
 2734|    301|            "int   minInvocationsExclusiveScanAMD(int);"
 2735|    301|            "ivec2 minInvocationsExclusiveScanAMD(ivec2);"
 2736|    301|            "ivec3 minInvocationsExclusiveScanAMD(ivec3);"
 2737|    301|            "ivec4 minInvocationsExclusiveScanAMD(ivec4);"
 2738|       |
 2739|    301|            "uint  minInvocationsExclusiveScanAMD(uint);"
 2740|    301|            "uvec2 minInvocationsExclusiveScanAMD(uvec2);"
 2741|    301|            "uvec3 minInvocationsExclusiveScanAMD(uvec3);"
 2742|    301|            "uvec4 minInvocationsExclusiveScanAMD(uvec4);"
 2743|       |
 2744|    301|            "double minInvocationsExclusiveScanAMD(double);"
 2745|    301|            "dvec2  minInvocationsExclusiveScanAMD(dvec2);"
 2746|    301|            "dvec3  minInvocationsExclusiveScanAMD(dvec3);"
 2747|    301|            "dvec4  minInvocationsExclusiveScanAMD(dvec4);"
 2748|       |
 2749|    301|            "int64_t minInvocationsExclusiveScanAMD(int64_t);"
 2750|    301|            "i64vec2 minInvocationsExclusiveScanAMD(i64vec2);"
 2751|    301|            "i64vec3 minInvocationsExclusiveScanAMD(i64vec3);"
 2752|    301|            "i64vec4 minInvocationsExclusiveScanAMD(i64vec4);"
 2753|       |
 2754|    301|            "uint64_t minInvocationsExclusiveScanAMD(uint64_t);"
 2755|    301|            "u64vec2  minInvocationsExclusiveScanAMD(u64vec2);"
 2756|    301|            "u64vec3  minInvocationsExclusiveScanAMD(u64vec3);"
 2757|    301|            "u64vec4  minInvocationsExclusiveScanAMD(u64vec4);"
 2758|       |
 2759|    301|            "float16_t minInvocationsExclusiveScanAMD(float16_t);"
 2760|    301|            "f16vec2   minInvocationsExclusiveScanAMD(f16vec2);"
 2761|    301|            "f16vec3   minInvocationsExclusiveScanAMD(f16vec3);"
 2762|    301|            "f16vec4   minInvocationsExclusiveScanAMD(f16vec4);"
 2763|       |
 2764|    301|            "int16_t minInvocationsExclusiveScanAMD(int16_t);"
 2765|    301|            "i16vec2 minInvocationsExclusiveScanAMD(i16vec2);"
 2766|    301|            "i16vec3 minInvocationsExclusiveScanAMD(i16vec3);"
 2767|    301|            "i16vec4 minInvocationsExclusiveScanAMD(i16vec4);"
 2768|       |
 2769|    301|            "uint16_t minInvocationsExclusiveScanAMD(uint16_t);"
 2770|    301|            "u16vec2  minInvocationsExclusiveScanAMD(u16vec2);"
 2771|    301|            "u16vec3  minInvocationsExclusiveScanAMD(u16vec3);"
 2772|    301|            "u16vec4  minInvocationsExclusiveScanAMD(u16vec4);"
 2773|       |
 2774|    301|            "float maxInvocationsAMD(float);"
 2775|    301|            "vec2  maxInvocationsAMD(vec2);"
 2776|    301|            "vec3  maxInvocationsAMD(vec3);"
 2777|    301|            "vec4  maxInvocationsAMD(vec4);"
 2778|       |
 2779|    301|            "int   maxInvocationsAMD(int);"
 2780|    301|            "ivec2 maxInvocationsAMD(ivec2);"
 2781|    301|            "ivec3 maxInvocationsAMD(ivec3);"
 2782|    301|            "ivec4 maxInvocationsAMD(ivec4);"
 2783|       |
 2784|    301|            "uint  maxInvocationsAMD(uint);"
 2785|    301|            "uvec2 maxInvocationsAMD(uvec2);"
 2786|    301|            "uvec3 maxInvocationsAMD(uvec3);"
 2787|    301|            "uvec4 maxInvocationsAMD(uvec4);"
 2788|       |
 2789|    301|            "double maxInvocationsAMD(double);"
 2790|    301|            "dvec2  maxInvocationsAMD(dvec2);"
 2791|    301|            "dvec3  maxInvocationsAMD(dvec3);"
 2792|    301|            "dvec4  maxInvocationsAMD(dvec4);"
 2793|       |
 2794|    301|            "int64_t maxInvocationsAMD(int64_t);"
 2795|    301|            "i64vec2 maxInvocationsAMD(i64vec2);"
 2796|    301|            "i64vec3 maxInvocationsAMD(i64vec3);"
 2797|    301|            "i64vec4 maxInvocationsAMD(i64vec4);"
 2798|       |
 2799|    301|            "uint64_t maxInvocationsAMD(uint64_t);"
 2800|    301|            "u64vec2  maxInvocationsAMD(u64vec2);"
 2801|    301|            "u64vec3  maxInvocationsAMD(u64vec3);"
 2802|    301|            "u64vec4  maxInvocationsAMD(u64vec4);"
 2803|       |
 2804|    301|            "float16_t maxInvocationsAMD(float16_t);"
 2805|    301|            "f16vec2   maxInvocationsAMD(f16vec2);"
 2806|    301|            "f16vec3   maxInvocationsAMD(f16vec3);"
 2807|    301|            "f16vec4   maxInvocationsAMD(f16vec4);"
 2808|       |
 2809|    301|            "int16_t maxInvocationsAMD(int16_t);"
 2810|    301|            "i16vec2 maxInvocationsAMD(i16vec2);"
 2811|    301|            "i16vec3 maxInvocationsAMD(i16vec3);"
 2812|    301|            "i16vec4 maxInvocationsAMD(i16vec4);"
 2813|       |
 2814|    301|            "uint16_t maxInvocationsAMD(uint16_t);"
 2815|    301|            "u16vec2  maxInvocationsAMD(u16vec2);"
 2816|    301|            "u16vec3  maxInvocationsAMD(u16vec3);"
 2817|    301|            "u16vec4  maxInvocationsAMD(u16vec4);"
 2818|       |
 2819|    301|            "float maxInvocationsInclusiveScanAMD(float);"
 2820|    301|            "vec2  maxInvocationsInclusiveScanAMD(vec2);"
 2821|    301|            "vec3  maxInvocationsInclusiveScanAMD(vec3);"
 2822|    301|            "vec4  maxInvocationsInclusiveScanAMD(vec4);"
 2823|       |
 2824|    301|            "int   maxInvocationsInclusiveScanAMD(int);"
 2825|    301|            "ivec2 maxInvocationsInclusiveScanAMD(ivec2);"
 2826|    301|            "ivec3 maxInvocationsInclusiveScanAMD(ivec3);"
 2827|    301|            "ivec4 maxInvocationsInclusiveScanAMD(ivec4);"
 2828|       |
 2829|    301|            "uint  maxInvocationsInclusiveScanAMD(uint);"
 2830|    301|            "uvec2 maxInvocationsInclusiveScanAMD(uvec2);"
 2831|    301|            "uvec3 maxInvocationsInclusiveScanAMD(uvec3);"
 2832|    301|            "uvec4 maxInvocationsInclusiveScanAMD(uvec4);"
 2833|       |
 2834|    301|            "double maxInvocationsInclusiveScanAMD(double);"
 2835|    301|            "dvec2  maxInvocationsInclusiveScanAMD(dvec2);"
 2836|    301|            "dvec3  maxInvocationsInclusiveScanAMD(dvec3);"
 2837|    301|            "dvec4  maxInvocationsInclusiveScanAMD(dvec4);"
 2838|       |
 2839|    301|            "int64_t maxInvocationsInclusiveScanAMD(int64_t);"
 2840|    301|            "i64vec2 maxInvocationsInclusiveScanAMD(i64vec2);"
 2841|    301|            "i64vec3 maxInvocationsInclusiveScanAMD(i64vec3);"
 2842|    301|            "i64vec4 maxInvocationsInclusiveScanAMD(i64vec4);"
 2843|       |
 2844|    301|            "uint64_t maxInvocationsInclusiveScanAMD(uint64_t);"
 2845|    301|            "u64vec2  maxInvocationsInclusiveScanAMD(u64vec2);"
 2846|    301|            "u64vec3  maxInvocationsInclusiveScanAMD(u64vec3);"
 2847|    301|            "u64vec4  maxInvocationsInclusiveScanAMD(u64vec4);"
 2848|       |
 2849|    301|            "float16_t maxInvocationsInclusiveScanAMD(float16_t);"
 2850|    301|            "f16vec2   maxInvocationsInclusiveScanAMD(f16vec2);"
 2851|    301|            "f16vec3   maxInvocationsInclusiveScanAMD(f16vec3);"
 2852|    301|            "f16vec4   maxInvocationsInclusiveScanAMD(f16vec4);"
 2853|       |
 2854|    301|            "int16_t maxInvocationsInclusiveScanAMD(int16_t);"
 2855|    301|            "i16vec2 maxInvocationsInclusiveScanAMD(i16vec2);"
 2856|    301|            "i16vec3 maxInvocationsInclusiveScanAMD(i16vec3);"
 2857|    301|            "i16vec4 maxInvocationsInclusiveScanAMD(i16vec4);"
 2858|       |
 2859|    301|            "uint16_t maxInvocationsInclusiveScanAMD(uint16_t);"
 2860|    301|            "u16vec2  maxInvocationsInclusiveScanAMD(u16vec2);"
 2861|    301|            "u16vec3  maxInvocationsInclusiveScanAMD(u16vec3);"
 2862|    301|            "u16vec4  maxInvocationsInclusiveScanAMD(u16vec4);"
 2863|       |
 2864|    301|            "float maxInvocationsExclusiveScanAMD(float);"
 2865|    301|            "vec2  maxInvocationsExclusiveScanAMD(vec2);"
 2866|    301|            "vec3  maxInvocationsExclusiveScanAMD(vec3);"
 2867|    301|            "vec4  maxInvocationsExclusiveScanAMD(vec4);"
 2868|       |
 2869|    301|            "int   maxInvocationsExclusiveScanAMD(int);"
 2870|    301|            "ivec2 maxInvocationsExclusiveScanAMD(ivec2);"
 2871|    301|            "ivec3 maxInvocationsExclusiveScanAMD(ivec3);"
 2872|    301|            "ivec4 maxInvocationsExclusiveScanAMD(ivec4);"
 2873|       |
 2874|    301|            "uint  maxInvocationsExclusiveScanAMD(uint);"
 2875|    301|            "uvec2 maxInvocationsExclusiveScanAMD(uvec2);"
 2876|    301|            "uvec3 maxInvocationsExclusiveScanAMD(uvec3);"
 2877|    301|            "uvec4 maxInvocationsExclusiveScanAMD(uvec4);"
 2878|       |
 2879|    301|            "double maxInvocationsExclusiveScanAMD(double);"
 2880|    301|            "dvec2  maxInvocationsExclusiveScanAMD(dvec2);"
 2881|    301|            "dvec3  maxInvocationsExclusiveScanAMD(dvec3);"
 2882|    301|            "dvec4  maxInvocationsExclusiveScanAMD(dvec4);"
 2883|       |
 2884|    301|            "int64_t maxInvocationsExclusiveScanAMD(int64_t);"
 2885|    301|            "i64vec2 maxInvocationsExclusiveScanAMD(i64vec2);"
 2886|    301|            "i64vec3 maxInvocationsExclusiveScanAMD(i64vec3);"
 2887|    301|            "i64vec4 maxInvocationsExclusiveScanAMD(i64vec4);"
 2888|       |
 2889|    301|            "uint64_t maxInvocationsExclusiveScanAMD(uint64_t);"
 2890|    301|            "u64vec2  maxInvocationsExclusiveScanAMD(u64vec2);"
 2891|    301|            "u64vec3  maxInvocationsExclusiveScanAMD(u64vec3);"
 2892|    301|            "u64vec4  maxInvocationsExclusiveScanAMD(u64vec4);"
 2893|       |
 2894|    301|            "float16_t maxInvocationsExclusiveScanAMD(float16_t);"
 2895|    301|            "f16vec2   maxInvocationsExclusiveScanAMD(f16vec2);"
 2896|    301|            "f16vec3   maxInvocationsExclusiveScanAMD(f16vec3);"
 2897|    301|            "f16vec4   maxInvocationsExclusiveScanAMD(f16vec4);"
 2898|       |
 2899|    301|            "int16_t maxInvocationsExclusiveScanAMD(int16_t);"
 2900|    301|            "i16vec2 maxInvocationsExclusiveScanAMD(i16vec2);"
 2901|    301|            "i16vec3 maxInvocationsExclusiveScanAMD(i16vec3);"
 2902|    301|            "i16vec4 maxInvocationsExclusiveScanAMD(i16vec4);"
 2903|       |
 2904|    301|            "uint16_t maxInvocationsExclusiveScanAMD(uint16_t);"
 2905|    301|            "u16vec2  maxInvocationsExclusiveScanAMD(u16vec2);"
 2906|    301|            "u16vec3  maxInvocationsExclusiveScanAMD(u16vec3);"
 2907|    301|            "u16vec4  maxInvocationsExclusiveScanAMD(u16vec4);"
 2908|       |
 2909|    301|            "float addInvocationsAMD(float);"
 2910|    301|            "vec2  addInvocationsAMD(vec2);"
 2911|    301|            "vec3  addInvocationsAMD(vec3);"
 2912|    301|            "vec4  addInvocationsAMD(vec4);"
 2913|       |
 2914|    301|            "int   addInvocationsAMD(int);"
 2915|    301|            "ivec2 addInvocationsAMD(ivec2);"
 2916|    301|            "ivec3 addInvocationsAMD(ivec3);"
 2917|    301|            "ivec4 addInvocationsAMD(ivec4);"
 2918|       |
 2919|    301|            "uint  addInvocationsAMD(uint);"
 2920|    301|            "uvec2 addInvocationsAMD(uvec2);"
 2921|    301|            "uvec3 addInvocationsAMD(uvec3);"
 2922|    301|            "uvec4 addInvocationsAMD(uvec4);"
 2923|       |
 2924|    301|            "double  addInvocationsAMD(double);"
 2925|    301|            "dvec2   addInvocationsAMD(dvec2);"
 2926|    301|            "dvec3   addInvocationsAMD(dvec3);"
 2927|    301|            "dvec4   addInvocationsAMD(dvec4);"
 2928|       |
 2929|    301|            "int64_t addInvocationsAMD(int64_t);"
 2930|    301|            "i64vec2 addInvocationsAMD(i64vec2);"
 2931|    301|            "i64vec3 addInvocationsAMD(i64vec3);"
 2932|    301|            "i64vec4 addInvocationsAMD(i64vec4);"
 2933|       |
 2934|    301|            "uint64_t addInvocationsAMD(uint64_t);"
 2935|    301|            "u64vec2  addInvocationsAMD(u64vec2);"
 2936|    301|            "u64vec3  addInvocationsAMD(u64vec3);"
 2937|    301|            "u64vec4  addInvocationsAMD(u64vec4);"
 2938|       |
 2939|    301|            "float16_t addInvocationsAMD(float16_t);"
 2940|    301|            "f16vec2   addInvocationsAMD(f16vec2);"
 2941|    301|            "f16vec3   addInvocationsAMD(f16vec3);"
 2942|    301|            "f16vec4   addInvocationsAMD(f16vec4);"
 2943|       |
 2944|    301|            "int16_t addInvocationsAMD(int16_t);"
 2945|    301|            "i16vec2 addInvocationsAMD(i16vec2);"
 2946|    301|            "i16vec3 addInvocationsAMD(i16vec3);"
 2947|    301|            "i16vec4 addInvocationsAMD(i16vec4);"
 2948|       |
 2949|    301|            "uint16_t addInvocationsAMD(uint16_t);"
 2950|    301|            "u16vec2  addInvocationsAMD(u16vec2);"
 2951|    301|            "u16vec3  addInvocationsAMD(u16vec3);"
 2952|    301|            "u16vec4  addInvocationsAMD(u16vec4);"
 2953|       |
 2954|    301|            "float addInvocationsInclusiveScanAMD(float);"
 2955|    301|            "vec2  addInvocationsInclusiveScanAMD(vec2);"
 2956|    301|            "vec3  addInvocationsInclusiveScanAMD(vec3);"
 2957|    301|            "vec4  addInvocationsInclusiveScanAMD(vec4);"
 2958|       |
 2959|    301|            "int   addInvocationsInclusiveScanAMD(int);"
 2960|    301|            "ivec2 addInvocationsInclusiveScanAMD(ivec2);"
 2961|    301|            "ivec3 addInvocationsInclusiveScanAMD(ivec3);"
 2962|    301|            "ivec4 addInvocationsInclusiveScanAMD(ivec4);"
 2963|       |
 2964|    301|            "uint  addInvocationsInclusiveScanAMD(uint);"
 2965|    301|            "uvec2 addInvocationsInclusiveScanAMD(uvec2);"
 2966|    301|            "uvec3 addInvocationsInclusiveScanAMD(uvec3);"
 2967|    301|            "uvec4 addInvocationsInclusiveScanAMD(uvec4);"
 2968|       |
 2969|    301|            "double  addInvocationsInclusiveScanAMD(double);"
 2970|    301|            "dvec2   addInvocationsInclusiveScanAMD(dvec2);"
 2971|    301|            "dvec3   addInvocationsInclusiveScanAMD(dvec3);"
 2972|    301|            "dvec4   addInvocationsInclusiveScanAMD(dvec4);"
 2973|       |
 2974|    301|            "int64_t addInvocationsInclusiveScanAMD(int64_t);"
 2975|    301|            "i64vec2 addInvocationsInclusiveScanAMD(i64vec2);"
 2976|    301|            "i64vec3 addInvocationsInclusiveScanAMD(i64vec3);"
 2977|    301|            "i64vec4 addInvocationsInclusiveScanAMD(i64vec4);"
 2978|       |
 2979|    301|            "uint64_t addInvocationsInclusiveScanAMD(uint64_t);"
 2980|    301|            "u64vec2  addInvocationsInclusiveScanAMD(u64vec2);"
 2981|    301|            "u64vec3  addInvocationsInclusiveScanAMD(u64vec3);"
 2982|    301|            "u64vec4  addInvocationsInclusiveScanAMD(u64vec4);"
 2983|       |
 2984|    301|            "float16_t addInvocationsInclusiveScanAMD(float16_t);"
 2985|    301|            "f16vec2   addInvocationsInclusiveScanAMD(f16vec2);"
 2986|    301|            "f16vec3   addInvocationsInclusiveScanAMD(f16vec3);"
 2987|    301|            "f16vec4   addInvocationsInclusiveScanAMD(f16vec4);"
 2988|       |
 2989|    301|            "int16_t addInvocationsInclusiveScanAMD(int16_t);"
 2990|    301|            "i16vec2 addInvocationsInclusiveScanAMD(i16vec2);"
 2991|    301|            "i16vec3 addInvocationsInclusiveScanAMD(i16vec3);"
 2992|    301|            "i16vec4 addInvocationsInclusiveScanAMD(i16vec4);"
 2993|       |
 2994|    301|            "uint16_t addInvocationsInclusiveScanAMD(uint16_t);"
 2995|    301|            "u16vec2  addInvocationsInclusiveScanAMD(u16vec2);"
 2996|    301|            "u16vec3  addInvocationsInclusiveScanAMD(u16vec3);"
 2997|    301|            "u16vec4  addInvocationsInclusiveScanAMD(u16vec4);"
 2998|       |
 2999|    301|            "float addInvocationsExclusiveScanAMD(float);"
 3000|    301|            "vec2  addInvocationsExclusiveScanAMD(vec2);"
 3001|    301|            "vec3  addInvocationsExclusiveScanAMD(vec3);"
 3002|    301|            "vec4  addInvocationsExclusiveScanAMD(vec4);"
 3003|       |
 3004|    301|            "int   addInvocationsExclusiveScanAMD(int);"
 3005|    301|            "ivec2 addInvocationsExclusiveScanAMD(ivec2);"
 3006|    301|            "ivec3 addInvocationsExclusiveScanAMD(ivec3);"
 3007|    301|            "ivec4 addInvocationsExclusiveScanAMD(ivec4);"
 3008|       |
 3009|    301|            "uint  addInvocationsExclusiveScanAMD(uint);"
 3010|    301|            "uvec2 addInvocationsExclusiveScanAMD(uvec2);"
 3011|    301|            "uvec3 addInvocationsExclusiveScanAMD(uvec3);"
 3012|    301|            "uvec4 addInvocationsExclusiveScanAMD(uvec4);"
 3013|       |
 3014|    301|            "double  addInvocationsExclusiveScanAMD(double);"
 3015|    301|            "dvec2   addInvocationsExclusiveScanAMD(dvec2);"
 3016|    301|            "dvec3   addInvocationsExclusiveScanAMD(dvec3);"
 3017|    301|            "dvec4   addInvocationsExclusiveScanAMD(dvec4);"
 3018|       |
 3019|    301|            "int64_t addInvocationsExclusiveScanAMD(int64_t);"
 3020|    301|            "i64vec2 addInvocationsExclusiveScanAMD(i64vec2);"
 3021|    301|            "i64vec3 addInvocationsExclusiveScanAMD(i64vec3);"
 3022|    301|            "i64vec4 addInvocationsExclusiveScanAMD(i64vec4);"
 3023|       |
 3024|    301|            "uint64_t addInvocationsExclusiveScanAMD(uint64_t);"
 3025|    301|            "u64vec2  addInvocationsExclusiveScanAMD(u64vec2);"
 3026|    301|            "u64vec3  addInvocationsExclusiveScanAMD(u64vec3);"
 3027|    301|            "u64vec4  addInvocationsExclusiveScanAMD(u64vec4);"
 3028|       |
 3029|    301|            "float16_t addInvocationsExclusiveScanAMD(float16_t);"
 3030|    301|            "f16vec2   addInvocationsExclusiveScanAMD(f16vec2);"
 3031|    301|            "f16vec3   addInvocationsExclusiveScanAMD(f16vec3);"
 3032|    301|            "f16vec4   addInvocationsExclusiveScanAMD(f16vec4);"
 3033|       |
 3034|    301|            "int16_t addInvocationsExclusiveScanAMD(int16_t);"
 3035|    301|            "i16vec2 addInvocationsExclusiveScanAMD(i16vec2);"
 3036|    301|            "i16vec3 addInvocationsExclusiveScanAMD(i16vec3);"
 3037|    301|            "i16vec4 addInvocationsExclusiveScanAMD(i16vec4);"
 3038|       |
 3039|    301|            "uint16_t addInvocationsExclusiveScanAMD(uint16_t);"
 3040|    301|            "u16vec2  addInvocationsExclusiveScanAMD(u16vec2);"
 3041|    301|            "u16vec3  addInvocationsExclusiveScanAMD(u16vec3);"
 3042|    301|            "u16vec4  addInvocationsExclusiveScanAMD(u16vec4);"
 3043|       |
 3044|    301|            "float minInvocationsNonUniformAMD(float);"
 3045|    301|            "vec2  minInvocationsNonUniformAMD(vec2);"
 3046|    301|            "vec3  minInvocationsNonUniformAMD(vec3);"
 3047|    301|            "vec4  minInvocationsNonUniformAMD(vec4);"
 3048|       |
 3049|    301|            "int   minInvocationsNonUniformAMD(int);"
 3050|    301|            "ivec2 minInvocationsNonUniformAMD(ivec2);"
 3051|    301|            "ivec3 minInvocationsNonUniformAMD(ivec3);"
 3052|    301|            "ivec4 minInvocationsNonUniformAMD(ivec4);"
 3053|       |
 3054|    301|            "uint  minInvocationsNonUniformAMD(uint);"
 3055|    301|            "uvec2 minInvocationsNonUniformAMD(uvec2);"
 3056|    301|            "uvec3 minInvocationsNonUniformAMD(uvec3);"
 3057|    301|            "uvec4 minInvocationsNonUniformAMD(uvec4);"
 3058|       |
 3059|    301|            "double minInvocationsNonUniformAMD(double);"
 3060|    301|            "dvec2  minInvocationsNonUniformAMD(dvec2);"
 3061|    301|            "dvec3  minInvocationsNonUniformAMD(dvec3);"
 3062|    301|            "dvec4  minInvocationsNonUniformAMD(dvec4);"
 3063|       |
 3064|    301|            "int64_t minInvocationsNonUniformAMD(int64_t);"
 3065|    301|            "i64vec2 minInvocationsNonUniformAMD(i64vec2);"
 3066|    301|            "i64vec3 minInvocationsNonUniformAMD(i64vec3);"
 3067|    301|            "i64vec4 minInvocationsNonUniformAMD(i64vec4);"
 3068|       |
 3069|    301|            "uint64_t minInvocationsNonUniformAMD(uint64_t);"
 3070|    301|            "u64vec2  minInvocationsNonUniformAMD(u64vec2);"
 3071|    301|            "u64vec3  minInvocationsNonUniformAMD(u64vec3);"
 3072|    301|            "u64vec4  minInvocationsNonUniformAMD(u64vec4);"
 3073|       |
 3074|    301|            "float16_t minInvocationsNonUniformAMD(float16_t);"
 3075|    301|            "f16vec2   minInvocationsNonUniformAMD(f16vec2);"
 3076|    301|            "f16vec3   minInvocationsNonUniformAMD(f16vec3);"
 3077|    301|            "f16vec4   minInvocationsNonUniformAMD(f16vec4);"
 3078|       |
 3079|    301|            "int16_t minInvocationsNonUniformAMD(int16_t);"
 3080|    301|            "i16vec2 minInvocationsNonUniformAMD(i16vec2);"
 3081|    301|            "i16vec3 minInvocationsNonUniformAMD(i16vec3);"
 3082|    301|            "i16vec4 minInvocationsNonUniformAMD(i16vec4);"
 3083|       |
 3084|    301|            "uint16_t minInvocationsNonUniformAMD(uint16_t);"
 3085|    301|            "u16vec2  minInvocationsNonUniformAMD(u16vec2);"
 3086|    301|            "u16vec3  minInvocationsNonUniformAMD(u16vec3);"
 3087|    301|            "u16vec4  minInvocationsNonUniformAMD(u16vec4);"
 3088|       |
 3089|    301|            "float minInvocationsInclusiveScanNonUniformAMD(float);"
 3090|    301|            "vec2  minInvocationsInclusiveScanNonUniformAMD(vec2);"
 3091|    301|            "vec3  minInvocationsInclusiveScanNonUniformAMD(vec3);"
 3092|    301|            "vec4  minInvocationsInclusiveScanNonUniformAMD(vec4);"
 3093|       |
 3094|    301|            "int   minInvocationsInclusiveScanNonUniformAMD(int);"
 3095|    301|            "ivec2 minInvocationsInclusiveScanNonUniformAMD(ivec2);"
 3096|    301|            "ivec3 minInvocationsInclusiveScanNonUniformAMD(ivec3);"
 3097|    301|            "ivec4 minInvocationsInclusiveScanNonUniformAMD(ivec4);"
 3098|       |
 3099|    301|            "uint  minInvocationsInclusiveScanNonUniformAMD(uint);"
 3100|    301|            "uvec2 minInvocationsInclusiveScanNonUniformAMD(uvec2);"
 3101|    301|            "uvec3 minInvocationsInclusiveScanNonUniformAMD(uvec3);"
 3102|    301|            "uvec4 minInvocationsInclusiveScanNonUniformAMD(uvec4);"
 3103|       |
 3104|    301|            "double minInvocationsInclusiveScanNonUniformAMD(double);"
 3105|    301|            "dvec2  minInvocationsInclusiveScanNonUniformAMD(dvec2);"
 3106|    301|            "dvec3  minInvocationsInclusiveScanNonUniformAMD(dvec3);"
 3107|    301|            "dvec4  minInvocationsInclusiveScanNonUniformAMD(dvec4);"
 3108|       |
 3109|    301|            "int64_t minInvocationsInclusiveScanNonUniformAMD(int64_t);"
 3110|    301|            "i64vec2 minInvocationsInclusiveScanNonUniformAMD(i64vec2);"
 3111|    301|            "i64vec3 minInvocationsInclusiveScanNonUniformAMD(i64vec3);"
 3112|    301|            "i64vec4 minInvocationsInclusiveScanNonUniformAMD(i64vec4);"
 3113|       |
 3114|    301|            "uint64_t minInvocationsInclusiveScanNonUniformAMD(uint64_t);"
 3115|    301|            "u64vec2  minInvocationsInclusiveScanNonUniformAMD(u64vec2);"
 3116|    301|            "u64vec3  minInvocationsInclusiveScanNonUniformAMD(u64vec3);"
 3117|    301|            "u64vec4  minInvocationsInclusiveScanNonUniformAMD(u64vec4);"
 3118|       |
 3119|    301|            "float16_t minInvocationsInclusiveScanNonUniformAMD(float16_t);"
 3120|    301|            "f16vec2   minInvocationsInclusiveScanNonUniformAMD(f16vec2);"
 3121|    301|            "f16vec3   minInvocationsInclusiveScanNonUniformAMD(f16vec3);"
 3122|    301|            "f16vec4   minInvocationsInclusiveScanNonUniformAMD(f16vec4);"
 3123|       |
 3124|    301|            "int16_t minInvocationsInclusiveScanNonUniformAMD(int16_t);"
 3125|    301|            "i16vec2 minInvocationsInclusiveScanNonUniformAMD(i16vec2);"
 3126|    301|            "i16vec3 minInvocationsInclusiveScanNonUniformAMD(i16vec3);"
 3127|    301|            "i16vec4 minInvocationsInclusiveScanNonUniformAMD(i16vec4);"
 3128|       |
 3129|    301|            "uint16_t minInvocationsInclusiveScanNonUniformAMD(uint16_t);"
 3130|    301|            "u16vec2  minInvocationsInclusiveScanNonUniformAMD(u16vec2);"
 3131|    301|            "u16vec3  minInvocationsInclusiveScanNonUniformAMD(u16vec3);"
 3132|    301|            "u16vec4  minInvocationsInclusiveScanNonUniformAMD(u16vec4);"
 3133|       |
 3134|    301|            "float minInvocationsExclusiveScanNonUniformAMD(float);"
 3135|    301|            "vec2  minInvocationsExclusiveScanNonUniformAMD(vec2);"
 3136|    301|            "vec3  minInvocationsExclusiveScanNonUniformAMD(vec3);"
 3137|    301|            "vec4  minInvocationsExclusiveScanNonUniformAMD(vec4);"
 3138|       |
 3139|    301|            "int   minInvocationsExclusiveScanNonUniformAMD(int);"
 3140|    301|            "ivec2 minInvocationsExclusiveScanNonUniformAMD(ivec2);"
 3141|    301|            "ivec3 minInvocationsExclusiveScanNonUniformAMD(ivec3);"
 3142|    301|            "ivec4 minInvocationsExclusiveScanNonUniformAMD(ivec4);"
 3143|       |
 3144|    301|            "uint  minInvocationsExclusiveScanNonUniformAMD(uint);"
 3145|    301|            "uvec2 minInvocationsExclusiveScanNonUniformAMD(uvec2);"
 3146|    301|            "uvec3 minInvocationsExclusiveScanNonUniformAMD(uvec3);"
 3147|    301|            "uvec4 minInvocationsExclusiveScanNonUniformAMD(uvec4);"
 3148|       |
 3149|    301|            "double minInvocationsExclusiveScanNonUniformAMD(double);"
 3150|    301|            "dvec2  minInvocationsExclusiveScanNonUniformAMD(dvec2);"
 3151|    301|            "dvec3  minInvocationsExclusiveScanNonUniformAMD(dvec3);"
 3152|    301|            "dvec4  minInvocationsExclusiveScanNonUniformAMD(dvec4);"
 3153|       |
 3154|    301|            "int64_t minInvocationsExclusiveScanNonUniformAMD(int64_t);"
 3155|    301|            "i64vec2 minInvocationsExclusiveScanNonUniformAMD(i64vec2);"
 3156|    301|            "i64vec3 minInvocationsExclusiveScanNonUniformAMD(i64vec3);"
 3157|    301|            "i64vec4 minInvocationsExclusiveScanNonUniformAMD(i64vec4);"
 3158|       |
 3159|    301|            "uint64_t minInvocationsExclusiveScanNonUniformAMD(uint64_t);"
 3160|    301|            "u64vec2  minInvocationsExclusiveScanNonUniformAMD(u64vec2);"
 3161|    301|            "u64vec3  minInvocationsExclusiveScanNonUniformAMD(u64vec3);"
 3162|    301|            "u64vec4  minInvocationsExclusiveScanNonUniformAMD(u64vec4);"
 3163|       |
 3164|    301|            "float16_t minInvocationsExclusiveScanNonUniformAMD(float16_t);"
 3165|    301|            "f16vec2   minInvocationsExclusiveScanNonUniformAMD(f16vec2);"
 3166|    301|            "f16vec3   minInvocationsExclusiveScanNonUniformAMD(f16vec3);"
 3167|    301|            "f16vec4   minInvocationsExclusiveScanNonUniformAMD(f16vec4);"
 3168|       |
 3169|    301|            "int16_t minInvocationsExclusiveScanNonUniformAMD(int16_t);"
 3170|    301|            "i16vec2 minInvocationsExclusiveScanNonUniformAMD(i16vec2);"
 3171|    301|            "i16vec3 minInvocationsExclusiveScanNonUniformAMD(i16vec3);"
 3172|    301|            "i16vec4 minInvocationsExclusiveScanNonUniformAMD(i16vec4);"
 3173|       |
 3174|    301|            "uint16_t minInvocationsExclusiveScanNonUniformAMD(uint16_t);"
 3175|    301|            "u16vec2  minInvocationsExclusiveScanNonUniformAMD(u16vec2);"
 3176|    301|            "u16vec3  minInvocationsExclusiveScanNonUniformAMD(u16vec3);"
 3177|    301|            "u16vec4  minInvocationsExclusiveScanNonUniformAMD(u16vec4);"
 3178|       |
 3179|    301|            "float maxInvocationsNonUniformAMD(float);"
 3180|    301|            "vec2  maxInvocationsNonUniformAMD(vec2);"
 3181|    301|            "vec3  maxInvocationsNonUniformAMD(vec3);"
 3182|    301|            "vec4  maxInvocationsNonUniformAMD(vec4);"
 3183|       |
 3184|    301|            "int   maxInvocationsNonUniformAMD(int);"
 3185|    301|            "ivec2 maxInvocationsNonUniformAMD(ivec2);"
 3186|    301|            "ivec3 maxInvocationsNonUniformAMD(ivec3);"
 3187|    301|            "ivec4 maxInvocationsNonUniformAMD(ivec4);"
 3188|       |
 3189|    301|            "uint  maxInvocationsNonUniformAMD(uint);"
 3190|    301|            "uvec2 maxInvocationsNonUniformAMD(uvec2);"
 3191|    301|            "uvec3 maxInvocationsNonUniformAMD(uvec3);"
 3192|    301|            "uvec4 maxInvocationsNonUniformAMD(uvec4);"
 3193|       |
 3194|    301|            "double maxInvocationsNonUniformAMD(double);"
 3195|    301|            "dvec2  maxInvocationsNonUniformAMD(dvec2);"
 3196|    301|            "dvec3  maxInvocationsNonUniformAMD(dvec3);"
 3197|    301|            "dvec4  maxInvocationsNonUniformAMD(dvec4);"
 3198|       |
 3199|    301|            "int64_t maxInvocationsNonUniformAMD(int64_t);"
 3200|    301|            "i64vec2 maxInvocationsNonUniformAMD(i64vec2);"
 3201|    301|            "i64vec3 maxInvocationsNonUniformAMD(i64vec3);"
 3202|    301|            "i64vec4 maxInvocationsNonUniformAMD(i64vec4);"
 3203|       |
 3204|    301|            "uint64_t maxInvocationsNonUniformAMD(uint64_t);"
 3205|    301|            "u64vec2  maxInvocationsNonUniformAMD(u64vec2);"
 3206|    301|            "u64vec3  maxInvocationsNonUniformAMD(u64vec3);"
 3207|    301|            "u64vec4  maxInvocationsNonUniformAMD(u64vec4);"
 3208|       |
 3209|    301|            "float16_t maxInvocationsNonUniformAMD(float16_t);"
 3210|    301|            "f16vec2   maxInvocationsNonUniformAMD(f16vec2);"
 3211|    301|            "f16vec3   maxInvocationsNonUniformAMD(f16vec3);"
 3212|    301|            "f16vec4   maxInvocationsNonUniformAMD(f16vec4);"
 3213|       |
 3214|    301|            "int16_t maxInvocationsNonUniformAMD(int16_t);"
 3215|    301|            "i16vec2 maxInvocationsNonUniformAMD(i16vec2);"
 3216|    301|            "i16vec3 maxInvocationsNonUniformAMD(i16vec3);"
 3217|    301|            "i16vec4 maxInvocationsNonUniformAMD(i16vec4);"
 3218|       |
 3219|    301|            "uint16_t maxInvocationsNonUniformAMD(uint16_t);"
 3220|    301|            "u16vec2  maxInvocationsNonUniformAMD(u16vec2);"
 3221|    301|            "u16vec3  maxInvocationsNonUniformAMD(u16vec3);"
 3222|    301|            "u16vec4  maxInvocationsNonUniformAMD(u16vec4);"
 3223|       |
 3224|    301|            "float maxInvocationsInclusiveScanNonUniformAMD(float);"
 3225|    301|            "vec2  maxInvocationsInclusiveScanNonUniformAMD(vec2);"
 3226|    301|            "vec3  maxInvocationsInclusiveScanNonUniformAMD(vec3);"
 3227|    301|            "vec4  maxInvocationsInclusiveScanNonUniformAMD(vec4);"
 3228|       |
 3229|    301|            "int   maxInvocationsInclusiveScanNonUniformAMD(int);"
 3230|    301|            "ivec2 maxInvocationsInclusiveScanNonUniformAMD(ivec2);"
 3231|    301|            "ivec3 maxInvocationsInclusiveScanNonUniformAMD(ivec3);"
 3232|    301|            "ivec4 maxInvocationsInclusiveScanNonUniformAMD(ivec4);"
 3233|       |
 3234|    301|            "uint  maxInvocationsInclusiveScanNonUniformAMD(uint);"
 3235|    301|            "uvec2 maxInvocationsInclusiveScanNonUniformAMD(uvec2);"
 3236|    301|            "uvec3 maxInvocationsInclusiveScanNonUniformAMD(uvec3);"
 3237|    301|            "uvec4 maxInvocationsInclusiveScanNonUniformAMD(uvec4);"
 3238|       |
 3239|    301|            "double maxInvocationsInclusiveScanNonUniformAMD(double);"
 3240|    301|            "dvec2  maxInvocationsInclusiveScanNonUniformAMD(dvec2);"
 3241|    301|            "dvec3  maxInvocationsInclusiveScanNonUniformAMD(dvec3);"
 3242|    301|            "dvec4  maxInvocationsInclusiveScanNonUniformAMD(dvec4);"
 3243|       |
 3244|    301|            "int64_t maxInvocationsInclusiveScanNonUniformAMD(int64_t);"
 3245|    301|            "i64vec2 maxInvocationsInclusiveScanNonUniformAMD(i64vec2);"
 3246|    301|            "i64vec3 maxInvocationsInclusiveScanNonUniformAMD(i64vec3);"
 3247|    301|            "i64vec4 maxInvocationsInclusiveScanNonUniformAMD(i64vec4);"
 3248|       |
 3249|    301|            "uint64_t maxInvocationsInclusiveScanNonUniformAMD(uint64_t);"
 3250|    301|            "u64vec2  maxInvocationsInclusiveScanNonUniformAMD(u64vec2);"
 3251|    301|            "u64vec3  maxInvocationsInclusiveScanNonUniformAMD(u64vec3);"
 3252|    301|            "u64vec4  maxInvocationsInclusiveScanNonUniformAMD(u64vec4);"
 3253|       |
 3254|    301|            "float16_t maxInvocationsInclusiveScanNonUniformAMD(float16_t);"
 3255|    301|            "f16vec2   maxInvocationsInclusiveScanNonUniformAMD(f16vec2);"
 3256|    301|            "f16vec3   maxInvocationsInclusiveScanNonUniformAMD(f16vec3);"
 3257|    301|            "f16vec4   maxInvocationsInclusiveScanNonUniformAMD(f16vec4);"
 3258|       |
 3259|    301|            "int16_t maxInvocationsInclusiveScanNonUniformAMD(int16_t);"
 3260|    301|            "i16vec2 maxInvocationsInclusiveScanNonUniformAMD(i16vec2);"
 3261|    301|            "i16vec3 maxInvocationsInclusiveScanNonUniformAMD(i16vec3);"
 3262|    301|            "i16vec4 maxInvocationsInclusiveScanNonUniformAMD(i16vec4);"
 3263|       |
 3264|    301|            "uint16_t maxInvocationsInclusiveScanNonUniformAMD(uint16_t);"
 3265|    301|            "u16vec2  maxInvocationsInclusiveScanNonUniformAMD(u16vec2);"
 3266|    301|            "u16vec3  maxInvocationsInclusiveScanNonUniformAMD(u16vec3);"
 3267|    301|            "u16vec4  maxInvocationsInclusiveScanNonUniformAMD(u16vec4);"
 3268|       |
 3269|    301|            "float maxInvocationsExclusiveScanNonUniformAMD(float);"
 3270|    301|            "vec2  maxInvocationsExclusiveScanNonUniformAMD(vec2);"
 3271|    301|            "vec3  maxInvocationsExclusiveScanNonUniformAMD(vec3);"
 3272|    301|            "vec4  maxInvocationsExclusiveScanNonUniformAMD(vec4);"
 3273|       |
 3274|    301|            "int   maxInvocationsExclusiveScanNonUniformAMD(int);"
 3275|    301|            "ivec2 maxInvocationsExclusiveScanNonUniformAMD(ivec2);"
 3276|    301|            "ivec3 maxInvocationsExclusiveScanNonUniformAMD(ivec3);"
 3277|    301|            "ivec4 maxInvocationsExclusiveScanNonUniformAMD(ivec4);"
 3278|       |
 3279|    301|            "uint  maxInvocationsExclusiveScanNonUniformAMD(uint);"
 3280|    301|            "uvec2 maxInvocationsExclusiveScanNonUniformAMD(uvec2);"
 3281|    301|            "uvec3 maxInvocationsExclusiveScanNonUniformAMD(uvec3);"
 3282|    301|            "uvec4 maxInvocationsExclusiveScanNonUniformAMD(uvec4);"
 3283|       |
 3284|    301|            "double maxInvocationsExclusiveScanNonUniformAMD(double);"
 3285|    301|            "dvec2  maxInvocationsExclusiveScanNonUniformAMD(dvec2);"
 3286|    301|            "dvec3  maxInvocationsExclusiveScanNonUniformAMD(dvec3);"
 3287|    301|            "dvec4  maxInvocationsExclusiveScanNonUniformAMD(dvec4);"
 3288|       |
 3289|    301|            "int64_t maxInvocationsExclusiveScanNonUniformAMD(int64_t);"
 3290|    301|            "i64vec2 maxInvocationsExclusiveScanNonUniformAMD(i64vec2);"
 3291|    301|            "i64vec3 maxInvocationsExclusiveScanNonUniformAMD(i64vec3);"
 3292|    301|            "i64vec4 maxInvocationsExclusiveScanNonUniformAMD(i64vec4);"
 3293|       |
 3294|    301|            "uint64_t maxInvocationsExclusiveScanNonUniformAMD(uint64_t);"
 3295|    301|            "u64vec2  maxInvocationsExclusiveScanNonUniformAMD(u64vec2);"
 3296|    301|            "u64vec3  maxInvocationsExclusiveScanNonUniformAMD(u64vec3);"
 3297|    301|            "u64vec4  maxInvocationsExclusiveScanNonUniformAMD(u64vec4);"
 3298|       |
 3299|    301|            "float16_t maxInvocationsExclusiveScanNonUniformAMD(float16_t);"
 3300|    301|            "f16vec2   maxInvocationsExclusiveScanNonUniformAMD(f16vec2);"
 3301|    301|            "f16vec3   maxInvocationsExclusiveScanNonUniformAMD(f16vec3);"
 3302|    301|            "f16vec4   maxInvocationsExclusiveScanNonUniformAMD(f16vec4);"
 3303|       |
 3304|    301|            "int16_t maxInvocationsExclusiveScanNonUniformAMD(int16_t);"
 3305|    301|            "i16vec2 maxInvocationsExclusiveScanNonUniformAMD(i16vec2);"
 3306|    301|            "i16vec3 maxInvocationsExclusiveScanNonUniformAMD(i16vec3);"
 3307|    301|            "i16vec4 maxInvocationsExclusiveScanNonUniformAMD(i16vec4);"
 3308|       |
 3309|    301|            "uint16_t maxInvocationsExclusiveScanNonUniformAMD(uint16_t);"
 3310|    301|            "u16vec2  maxInvocationsExclusiveScanNonUniformAMD(u16vec2);"
 3311|    301|            "u16vec3  maxInvocationsExclusiveScanNonUniformAMD(u16vec3);"
 3312|    301|            "u16vec4  maxInvocationsExclusiveScanNonUniformAMD(u16vec4);"
 3313|       |
 3314|    301|            "float addInvocationsNonUniformAMD(float);"
 3315|    301|            "vec2  addInvocationsNonUniformAMD(vec2);"
 3316|    301|            "vec3  addInvocationsNonUniformAMD(vec3);"
 3317|    301|            "vec4  addInvocationsNonUniformAMD(vec4);"
 3318|       |
 3319|    301|            "int   addInvocationsNonUniformAMD(int);"
 3320|    301|            "ivec2 addInvocationsNonUniformAMD(ivec2);"
 3321|    301|            "ivec3 addInvocationsNonUniformAMD(ivec3);"
 3322|    301|            "ivec4 addInvocationsNonUniformAMD(ivec4);"
 3323|       |
 3324|    301|            "uint  addInvocationsNonUniformAMD(uint);"
 3325|    301|            "uvec2 addInvocationsNonUniformAMD(uvec2);"
 3326|    301|            "uvec3 addInvocationsNonUniformAMD(uvec3);"
 3327|    301|            "uvec4 addInvocationsNonUniformAMD(uvec4);"
 3328|       |
 3329|    301|            "double addInvocationsNonUniformAMD(double);"
 3330|    301|            "dvec2  addInvocationsNonUniformAMD(dvec2);"
 3331|    301|            "dvec3  addInvocationsNonUniformAMD(dvec3);"
 3332|    301|            "dvec4  addInvocationsNonUniformAMD(dvec4);"
 3333|       |
 3334|    301|            "int64_t addInvocationsNonUniformAMD(int64_t);"
 3335|    301|            "i64vec2 addInvocationsNonUniformAMD(i64vec2);"
 3336|    301|            "i64vec3 addInvocationsNonUniformAMD(i64vec3);"
 3337|    301|            "i64vec4 addInvocationsNonUniformAMD(i64vec4);"
 3338|       |
 3339|    301|            "uint64_t addInvocationsNonUniformAMD(uint64_t);"
 3340|    301|            "u64vec2  addInvocationsNonUniformAMD(u64vec2);"
 3341|    301|            "u64vec3  addInvocationsNonUniformAMD(u64vec3);"
 3342|    301|            "u64vec4  addInvocationsNonUniformAMD(u64vec4);"
 3343|       |
 3344|    301|            "float16_t addInvocationsNonUniformAMD(float16_t);"
 3345|    301|            "f16vec2   addInvocationsNonUniformAMD(f16vec2);"
 3346|    301|            "f16vec3   addInvocationsNonUniformAMD(f16vec3);"
 3347|    301|            "f16vec4   addInvocationsNonUniformAMD(f16vec4);"
 3348|       |
 3349|    301|            "int16_t addInvocationsNonUniformAMD(int16_t);"
 3350|    301|            "i16vec2 addInvocationsNonUniformAMD(i16vec2);"
 3351|    301|            "i16vec3 addInvocationsNonUniformAMD(i16vec3);"
 3352|    301|            "i16vec4 addInvocationsNonUniformAMD(i16vec4);"
 3353|       |
 3354|    301|            "uint16_t addInvocationsNonUniformAMD(uint16_t);"
 3355|    301|            "u16vec2  addInvocationsNonUniformAMD(u16vec2);"
 3356|    301|            "u16vec3  addInvocationsNonUniformAMD(u16vec3);"
 3357|    301|            "u16vec4  addInvocationsNonUniformAMD(u16vec4);"
 3358|       |
 3359|    301|            "float addInvocationsInclusiveScanNonUniformAMD(float);"
 3360|    301|            "vec2  addInvocationsInclusiveScanNonUniformAMD(vec2);"
 3361|    301|            "vec3  addInvocationsInclusiveScanNonUniformAMD(vec3);"
 3362|    301|            "vec4  addInvocationsInclusiveScanNonUniformAMD(vec4);"
 3363|       |
 3364|    301|            "int   addInvocationsInclusiveScanNonUniformAMD(int);"
 3365|    301|            "ivec2 addInvocationsInclusiveScanNonUniformAMD(ivec2);"
 3366|    301|            "ivec3 addInvocationsInclusiveScanNonUniformAMD(ivec3);"
 3367|    301|            "ivec4 addInvocationsInclusiveScanNonUniformAMD(ivec4);"
 3368|       |
 3369|    301|            "uint  addInvocationsInclusiveScanNonUniformAMD(uint);"
 3370|    301|            "uvec2 addInvocationsInclusiveScanNonUniformAMD(uvec2);"
 3371|    301|            "uvec3 addInvocationsInclusiveScanNonUniformAMD(uvec3);"
 3372|    301|            "uvec4 addInvocationsInclusiveScanNonUniformAMD(uvec4);"
 3373|       |
 3374|    301|            "double addInvocationsInclusiveScanNonUniformAMD(double);"
 3375|    301|            "dvec2  addInvocationsInclusiveScanNonUniformAMD(dvec2);"
 3376|    301|            "dvec3  addInvocationsInclusiveScanNonUniformAMD(dvec3);"
 3377|    301|            "dvec4  addInvocationsInclusiveScanNonUniformAMD(dvec4);"
 3378|       |
 3379|    301|            "int64_t addInvocationsInclusiveScanNonUniformAMD(int64_t);"
 3380|    301|            "i64vec2 addInvocationsInclusiveScanNonUniformAMD(i64vec2);"
 3381|    301|            "i64vec3 addInvocationsInclusiveScanNonUniformAMD(i64vec3);"
 3382|    301|            "i64vec4 addInvocationsInclusiveScanNonUniformAMD(i64vec4);"
 3383|       |
 3384|    301|            "uint64_t addInvocationsInclusiveScanNonUniformAMD(uint64_t);"
 3385|    301|            "u64vec2  addInvocationsInclusiveScanNonUniformAMD(u64vec2);"
 3386|    301|            "u64vec3  addInvocationsInclusiveScanNonUniformAMD(u64vec3);"
 3387|    301|            "u64vec4  addInvocationsInclusiveScanNonUniformAMD(u64vec4);"
 3388|       |
 3389|    301|            "float16_t addInvocationsInclusiveScanNonUniformAMD(float16_t);"
 3390|    301|            "f16vec2   addInvocationsInclusiveScanNonUniformAMD(f16vec2);"
 3391|    301|            "f16vec3   addInvocationsInclusiveScanNonUniformAMD(f16vec3);"
 3392|    301|            "f16vec4   addInvocationsInclusiveScanNonUniformAMD(f16vec4);"
 3393|       |
 3394|    301|            "int16_t addInvocationsInclusiveScanNonUniformAMD(int16_t);"
 3395|    301|            "i16vec2 addInvocationsInclusiveScanNonUniformAMD(i16vec2);"
 3396|    301|            "i16vec3 addInvocationsInclusiveScanNonUniformAMD(i16vec3);"
 3397|    301|            "i16vec4 addInvocationsInclusiveScanNonUniformAMD(i16vec4);"
 3398|       |
 3399|    301|            "uint16_t addInvocationsInclusiveScanNonUniformAMD(uint16_t);"
 3400|    301|            "u16vec2  addInvocationsInclusiveScanNonUniformAMD(u16vec2);"
 3401|    301|            "u16vec3  addInvocationsInclusiveScanNonUniformAMD(u16vec3);"
 3402|    301|            "u16vec4  addInvocationsInclusiveScanNonUniformAMD(u16vec4);"
 3403|       |
 3404|    301|            "float addInvocationsExclusiveScanNonUniformAMD(float);"
 3405|    301|            "vec2  addInvocationsExclusiveScanNonUniformAMD(vec2);"
 3406|    301|            "vec3  addInvocationsExclusiveScanNonUniformAMD(vec3);"
 3407|    301|            "vec4  addInvocationsExclusiveScanNonUniformAMD(vec4);"
 3408|       |
 3409|    301|            "int   addInvocationsExclusiveScanNonUniformAMD(int);"
 3410|    301|            "ivec2 addInvocationsExclusiveScanNonUniformAMD(ivec2);"
 3411|    301|            "ivec3 addInvocationsExclusiveScanNonUniformAMD(ivec3);"
 3412|    301|            "ivec4 addInvocationsExclusiveScanNonUniformAMD(ivec4);"
 3413|       |
 3414|    301|            "uint  addInvocationsExclusiveScanNonUniformAMD(uint);"
 3415|    301|            "uvec2 addInvocationsExclusiveScanNonUniformAMD(uvec2);"
 3416|    301|            "uvec3 addInvocationsExclusiveScanNonUniformAMD(uvec3);"
 3417|    301|            "uvec4 addInvocationsExclusiveScanNonUniformAMD(uvec4);"
 3418|       |
 3419|    301|            "double addInvocationsExclusiveScanNonUniformAMD(double);"
 3420|    301|            "dvec2  addInvocationsExclusiveScanNonUniformAMD(dvec2);"
 3421|    301|            "dvec3  addInvocationsExclusiveScanNonUniformAMD(dvec3);"
 3422|    301|            "dvec4  addInvocationsExclusiveScanNonUniformAMD(dvec4);"
 3423|       |
 3424|    301|            "int64_t addInvocationsExclusiveScanNonUniformAMD(int64_t);"
 3425|    301|            "i64vec2 addInvocationsExclusiveScanNonUniformAMD(i64vec2);"
 3426|    301|            "i64vec3 addInvocationsExclusiveScanNonUniformAMD(i64vec3);"
 3427|    301|            "i64vec4 addInvocationsExclusiveScanNonUniformAMD(i64vec4);"
 3428|       |
 3429|    301|            "uint64_t addInvocationsExclusiveScanNonUniformAMD(uint64_t);"
 3430|    301|            "u64vec2  addInvocationsExclusiveScanNonUniformAMD(u64vec2);"
 3431|    301|            "u64vec3  addInvocationsExclusiveScanNonUniformAMD(u64vec3);"
 3432|    301|            "u64vec4  addInvocationsExclusiveScanNonUniformAMD(u64vec4);"
 3433|       |
 3434|    301|            "float16_t addInvocationsExclusiveScanNonUniformAMD(float16_t);"
 3435|    301|            "f16vec2   addInvocationsExclusiveScanNonUniformAMD(f16vec2);"
 3436|    301|            "f16vec3   addInvocationsExclusiveScanNonUniformAMD(f16vec3);"
 3437|    301|            "f16vec4   addInvocationsExclusiveScanNonUniformAMD(f16vec4);"
 3438|       |
 3439|    301|            "int16_t addInvocationsExclusiveScanNonUniformAMD(int16_t);"
 3440|    301|            "i16vec2 addInvocationsExclusiveScanNonUniformAMD(i16vec2);"
 3441|    301|            "i16vec3 addInvocationsExclusiveScanNonUniformAMD(i16vec3);"
 3442|    301|            "i16vec4 addInvocationsExclusiveScanNonUniformAMD(i16vec4);"
 3443|       |
 3444|    301|            "uint16_t addInvocationsExclusiveScanNonUniformAMD(uint16_t);"
 3445|    301|            "u16vec2  addInvocationsExclusiveScanNonUniformAMD(u16vec2);"
 3446|    301|            "u16vec3  addInvocationsExclusiveScanNonUniformAMD(u16vec3);"
 3447|    301|            "u16vec4  addInvocationsExclusiveScanNonUniformAMD(u16vec4);"
 3448|       |
 3449|    301|            "float swizzleInvocationsAMD(float, uvec4);"
 3450|    301|            "vec2  swizzleInvocationsAMD(vec2,  uvec4);"
 3451|    301|            "vec3  swizzleInvocationsAMD(vec3,  uvec4);"
 3452|    301|            "vec4  swizzleInvocationsAMD(vec4,  uvec4);"
 3453|       |
 3454|    301|            "int   swizzleInvocationsAMD(int,   uvec4);"
 3455|    301|            "ivec2 swizzleInvocationsAMD(ivec2, uvec4);"
 3456|    301|            "ivec3 swizzleInvocationsAMD(ivec3, uvec4);"
 3457|    301|            "ivec4 swizzleInvocationsAMD(ivec4, uvec4);"
 3458|       |
 3459|    301|            "uint  swizzleInvocationsAMD(uint,  uvec4);"
 3460|    301|            "uvec2 swizzleInvocationsAMD(uvec2, uvec4);"
 3461|    301|            "uvec3 swizzleInvocationsAMD(uvec3, uvec4);"
 3462|    301|            "uvec4 swizzleInvocationsAMD(uvec4, uvec4);"
 3463|       |
 3464|    301|            "float swizzleInvocationsMaskedAMD(float, uvec3);"
 3465|    301|            "vec2  swizzleInvocationsMaskedAMD(vec2,  uvec3);"
 3466|    301|            "vec3  swizzleInvocationsMaskedAMD(vec3,  uvec3);"
 3467|    301|            "vec4  swizzleInvocationsMaskedAMD(vec4,  uvec3);"
 3468|       |
 3469|    301|            "int   swizzleInvocationsMaskedAMD(int,   uvec3);"
 3470|    301|            "ivec2 swizzleInvocationsMaskedAMD(ivec2, uvec3);"
 3471|    301|            "ivec3 swizzleInvocationsMaskedAMD(ivec3, uvec3);"
 3472|    301|            "ivec4 swizzleInvocationsMaskedAMD(ivec4, uvec3);"
 3473|       |
 3474|    301|            "uint  swizzleInvocationsMaskedAMD(uint,  uvec3);"
 3475|    301|            "uvec2 swizzleInvocationsMaskedAMD(uvec2, uvec3);"
 3476|    301|            "uvec3 swizzleInvocationsMaskedAMD(uvec3, uvec3);"
 3477|    301|            "uvec4 swizzleInvocationsMaskedAMD(uvec4, uvec3);"
 3478|       |
 3479|    301|            "float writeInvocationAMD(float, float, uint);"
 3480|    301|            "vec2  writeInvocationAMD(vec2,  vec2,  uint);"
 3481|    301|            "vec3  writeInvocationAMD(vec3,  vec3,  uint);"
 3482|    301|            "vec4  writeInvocationAMD(vec4,  vec4,  uint);"
 3483|       |
 3484|    301|            "int   writeInvocationAMD(int,   int,   uint);"
 3485|    301|            "ivec2 writeInvocationAMD(ivec2, ivec2, uint);"
 3486|    301|            "ivec3 writeInvocationAMD(ivec3, ivec3, uint);"
 3487|    301|            "ivec4 writeInvocationAMD(ivec4, ivec4, uint);"
 3488|       |
 3489|    301|            "uint  writeInvocationAMD(uint,  uint,  uint);"
 3490|    301|            "uvec2 writeInvocationAMD(uvec2, uvec2, uint);"
 3491|    301|            "uvec3 writeInvocationAMD(uvec3, uvec3, uint);"
 3492|    301|            "uvec4 writeInvocationAMD(uvec4, uvec4, uint);"
 3493|       |
 3494|    301|            "uint mbcntAMD(uint64_t);"
 3495|       |
 3496|    301|            "\n");
 3497|    301|    }
 3498|       |
 3499|       |    // GL_AMD_gcn_shader
 3500|  1.42k|    if (profile != EEsProfile && version >= 440) {
  ------------------
  |  Branch (3500:9): [True: 1.27k, False: 148]
  |  Branch (3500:34): [True: 376, False: 896]
  ------------------
 3501|    376|        commonBuiltins.append(
 3502|    376|            "float cubeFaceIndexAMD(vec3);"
 3503|    376|            "vec2  cubeFaceCoordAMD(vec3);"
 3504|    376|            "uint64_t timeAMD();"
 3505|    376|            "uint64_t ballotAMD(bool);"
 3506|       |
 3507|    376|            "in int gl_SIMDGroupSizeAMD;"
 3508|    376|            "\n");
 3509|    376|    }
 3510|       |
 3511|       |    // GL_AMD_shader_fragment_mask
 3512|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (3512:9): [True: 1.27k, False: 148]
  |  Branch (3512:34): [True: 301, False: 971]
  ------------------
 3513|    301|        commonBuiltins.append(
 3514|    301|            "uint fragmentMaskFetchAMD(sampler2DMS,       ivec2);"
 3515|    301|            "uint fragmentMaskFetchAMD(isampler2DMS,      ivec2);"
 3516|    301|            "uint fragmentMaskFetchAMD(usampler2DMS,      ivec2);"
 3517|       |
 3518|    301|            "uint fragmentMaskFetchAMD(sampler2DMSArray,  ivec3);"
 3519|    301|            "uint fragmentMaskFetchAMD(isampler2DMSArray, ivec3);"
 3520|    301|            "uint fragmentMaskFetchAMD(usampler2DMSArray, ivec3);"
 3521|       |
 3522|    301|            "vec4  fragmentFetchAMD(sampler2DMS,       ivec2, uint);"
 3523|    301|            "ivec4 fragmentFetchAMD(isampler2DMS,      ivec2, uint);"
 3524|    301|            "uvec4 fragmentFetchAMD(usampler2DMS,      ivec2, uint);"
 3525|       |
 3526|    301|            "vec4  fragmentFetchAMD(sampler2DMSArray,  ivec3, uint);"
 3527|    301|            "ivec4 fragmentFetchAMD(isampler2DMSArray, ivec3, uint);"
 3528|    301|            "uvec4 fragmentFetchAMD(usampler2DMSArray, ivec3, uint);"
 3529|       |
 3530|    301|            "\n");
 3531|    301|    }
 3532|       |
 3533|  1.42k|    if ((profile != EEsProfile && version >= 130) ||
  ------------------
  |  Branch (3533:10): [True: 1.27k, False: 148]
  |  Branch (3533:35): [True: 1.27k, False: 0]
  ------------------
 3534|  1.42k|        (profile == EEsProfile && version >= 300)) {
  ------------------
  |  Branch (3534:10): [True: 148, False: 0]
  |  Branch (3534:35): [True: 148, False: 0]
  ------------------
 3535|  1.42k|        commonBuiltins.append(
 3536|  1.42k|            "uint countLeadingZeros(uint);"
 3537|  1.42k|            "uvec2 countLeadingZeros(uvec2);"
 3538|  1.42k|            "uvec3 countLeadingZeros(uvec3);"
 3539|  1.42k|            "uvec4 countLeadingZeros(uvec4);"
 3540|       |
 3541|  1.42k|            "uint countTrailingZeros(uint);"
 3542|  1.42k|            "uvec2 countTrailingZeros(uvec2);"
 3543|  1.42k|            "uvec3 countTrailingZeros(uvec3);"
 3544|  1.42k|            "uvec4 countTrailingZeros(uvec4);"
 3545|       |
 3546|  1.42k|            "uint absoluteDifference(int, int);"
 3547|  1.42k|            "uvec2 absoluteDifference(ivec2, ivec2);"
 3548|  1.42k|            "uvec3 absoluteDifference(ivec3, ivec3);"
 3549|  1.42k|            "uvec4 absoluteDifference(ivec4, ivec4);"
 3550|       |
 3551|  1.42k|            "uint16_t absoluteDifference(int16_t, int16_t);"
 3552|  1.42k|            "u16vec2 absoluteDifference(i16vec2, i16vec2);"
 3553|  1.42k|            "u16vec3 absoluteDifference(i16vec3, i16vec3);"
 3554|  1.42k|            "u16vec4 absoluteDifference(i16vec4, i16vec4);"
 3555|       |
 3556|  1.42k|            "uint64_t absoluteDifference(int64_t, int64_t);"
 3557|  1.42k|            "u64vec2 absoluteDifference(i64vec2, i64vec2);"
 3558|  1.42k|            "u64vec3 absoluteDifference(i64vec3, i64vec3);"
 3559|  1.42k|            "u64vec4 absoluteDifference(i64vec4, i64vec4);"
 3560|       |
 3561|  1.42k|            "uint absoluteDifference(uint, uint);"
 3562|  1.42k|            "uvec2 absoluteDifference(uvec2, uvec2);"
 3563|  1.42k|            "uvec3 absoluteDifference(uvec3, uvec3);"
 3564|  1.42k|            "uvec4 absoluteDifference(uvec4, uvec4);"
 3565|       |
 3566|  1.42k|            "uint16_t absoluteDifference(uint16_t, uint16_t);"
 3567|  1.42k|            "u16vec2 absoluteDifference(u16vec2, u16vec2);"
 3568|  1.42k|            "u16vec3 absoluteDifference(u16vec3, u16vec3);"
 3569|  1.42k|            "u16vec4 absoluteDifference(u16vec4, u16vec4);"
 3570|       |
 3571|  1.42k|            "uint64_t absoluteDifference(uint64_t, uint64_t);"
 3572|  1.42k|            "u64vec2 absoluteDifference(u64vec2, u64vec2);"
 3573|  1.42k|            "u64vec3 absoluteDifference(u64vec3, u64vec3);"
 3574|  1.42k|            "u64vec4 absoluteDifference(u64vec4, u64vec4);"
 3575|       |
 3576|  1.42k|            "int addSaturate(int, int);"
 3577|  1.42k|            "ivec2 addSaturate(ivec2, ivec2);"
 3578|  1.42k|            "ivec3 addSaturate(ivec3, ivec3);"
 3579|  1.42k|            "ivec4 addSaturate(ivec4, ivec4);"
 3580|       |
 3581|  1.42k|            "int16_t addSaturate(int16_t, int16_t);"
 3582|  1.42k|            "i16vec2 addSaturate(i16vec2, i16vec2);"
 3583|  1.42k|            "i16vec3 addSaturate(i16vec3, i16vec3);"
 3584|  1.42k|            "i16vec4 addSaturate(i16vec4, i16vec4);"
 3585|       |
 3586|  1.42k|            "int64_t addSaturate(int64_t, int64_t);"
 3587|  1.42k|            "i64vec2 addSaturate(i64vec2, i64vec2);"
 3588|  1.42k|            "i64vec3 addSaturate(i64vec3, i64vec3);"
 3589|  1.42k|            "i64vec4 addSaturate(i64vec4, i64vec4);"
 3590|       |
 3591|  1.42k|            "uint addSaturate(uint, uint);"
 3592|  1.42k|            "uvec2 addSaturate(uvec2, uvec2);"
 3593|  1.42k|            "uvec3 addSaturate(uvec3, uvec3);"
 3594|  1.42k|            "uvec4 addSaturate(uvec4, uvec4);"
 3595|       |
 3596|  1.42k|            "uint16_t addSaturate(uint16_t, uint16_t);"
 3597|  1.42k|            "u16vec2 addSaturate(u16vec2, u16vec2);"
 3598|  1.42k|            "u16vec3 addSaturate(u16vec3, u16vec3);"
 3599|  1.42k|            "u16vec4 addSaturate(u16vec4, u16vec4);"
 3600|       |
 3601|  1.42k|            "uint64_t addSaturate(uint64_t, uint64_t);"
 3602|  1.42k|            "u64vec2 addSaturate(u64vec2, u64vec2);"
 3603|  1.42k|            "u64vec3 addSaturate(u64vec3, u64vec3);"
 3604|  1.42k|            "u64vec4 addSaturate(u64vec4, u64vec4);"
 3605|       |
 3606|  1.42k|            "int subtractSaturate(int, int);"
 3607|  1.42k|            "ivec2 subtractSaturate(ivec2, ivec2);"
 3608|  1.42k|            "ivec3 subtractSaturate(ivec3, ivec3);"
 3609|  1.42k|            "ivec4 subtractSaturate(ivec4, ivec4);"
 3610|       |
 3611|  1.42k|            "int16_t subtractSaturate(int16_t, int16_t);"
 3612|  1.42k|            "i16vec2 subtractSaturate(i16vec2, i16vec2);"
 3613|  1.42k|            "i16vec3 subtractSaturate(i16vec3, i16vec3);"
 3614|  1.42k|            "i16vec4 subtractSaturate(i16vec4, i16vec4);"
 3615|       |
 3616|  1.42k|            "int64_t subtractSaturate(int64_t, int64_t);"
 3617|  1.42k|            "i64vec2 subtractSaturate(i64vec2, i64vec2);"
 3618|  1.42k|            "i64vec3 subtractSaturate(i64vec3, i64vec3);"
 3619|  1.42k|            "i64vec4 subtractSaturate(i64vec4, i64vec4);"
 3620|       |
 3621|  1.42k|            "uint subtractSaturate(uint, uint);"
 3622|  1.42k|            "uvec2 subtractSaturate(uvec2, uvec2);"
 3623|  1.42k|            "uvec3 subtractSaturate(uvec3, uvec3);"
 3624|  1.42k|            "uvec4 subtractSaturate(uvec4, uvec4);"
 3625|       |
 3626|  1.42k|            "uint16_t subtractSaturate(uint16_t, uint16_t);"
 3627|  1.42k|            "u16vec2 subtractSaturate(u16vec2, u16vec2);"
 3628|  1.42k|            "u16vec3 subtractSaturate(u16vec3, u16vec3);"
 3629|  1.42k|            "u16vec4 subtractSaturate(u16vec4, u16vec4);"
 3630|       |
 3631|  1.42k|            "uint64_t subtractSaturate(uint64_t, uint64_t);"
 3632|  1.42k|            "u64vec2 subtractSaturate(u64vec2, u64vec2);"
 3633|  1.42k|            "u64vec3 subtractSaturate(u64vec3, u64vec3);"
 3634|  1.42k|            "u64vec4 subtractSaturate(u64vec4, u64vec4);"
 3635|       |
 3636|  1.42k|            "int average(int, int);"
 3637|  1.42k|            "ivec2 average(ivec2, ivec2);"
 3638|  1.42k|            "ivec3 average(ivec3, ivec3);"
 3639|  1.42k|            "ivec4 average(ivec4, ivec4);"
 3640|       |
 3641|  1.42k|            "int16_t average(int16_t, int16_t);"
 3642|  1.42k|            "i16vec2 average(i16vec2, i16vec2);"
 3643|  1.42k|            "i16vec3 average(i16vec3, i16vec3);"
 3644|  1.42k|            "i16vec4 average(i16vec4, i16vec4);"
 3645|       |
 3646|  1.42k|            "int64_t average(int64_t, int64_t);"
 3647|  1.42k|            "i64vec2 average(i64vec2, i64vec2);"
 3648|  1.42k|            "i64vec3 average(i64vec3, i64vec3);"
 3649|  1.42k|            "i64vec4 average(i64vec4, i64vec4);"
 3650|       |
 3651|  1.42k|            "uint average(uint, uint);"
 3652|  1.42k|            "uvec2 average(uvec2, uvec2);"
 3653|  1.42k|            "uvec3 average(uvec3, uvec3);"
 3654|  1.42k|            "uvec4 average(uvec4, uvec4);"
 3655|       |
 3656|  1.42k|            "uint16_t average(uint16_t, uint16_t);"
 3657|  1.42k|            "u16vec2 average(u16vec2, u16vec2);"
 3658|  1.42k|            "u16vec3 average(u16vec3, u16vec3);"
 3659|  1.42k|            "u16vec4 average(u16vec4, u16vec4);"
 3660|       |
 3661|  1.42k|            "uint64_t average(uint64_t, uint64_t);"
 3662|  1.42k|            "u64vec2 average(u64vec2, u64vec2);"
 3663|  1.42k|            "u64vec3 average(u64vec3, u64vec3);"
 3664|  1.42k|            "u64vec4 average(u64vec4, u64vec4);"
 3665|       |
 3666|  1.42k|            "int averageRounded(int, int);"
 3667|  1.42k|            "ivec2 averageRounded(ivec2, ivec2);"
 3668|  1.42k|            "ivec3 averageRounded(ivec3, ivec3);"
 3669|  1.42k|            "ivec4 averageRounded(ivec4, ivec4);"
 3670|       |
 3671|  1.42k|            "int16_t averageRounded(int16_t, int16_t);"
 3672|  1.42k|            "i16vec2 averageRounded(i16vec2, i16vec2);"
 3673|  1.42k|            "i16vec3 averageRounded(i16vec3, i16vec3);"
 3674|  1.42k|            "i16vec4 averageRounded(i16vec4, i16vec4);"
 3675|       |
 3676|  1.42k|            "int64_t averageRounded(int64_t, int64_t);"
 3677|  1.42k|            "i64vec2 averageRounded(i64vec2, i64vec2);"
 3678|  1.42k|            "i64vec3 averageRounded(i64vec3, i64vec3);"
 3679|  1.42k|            "i64vec4 averageRounded(i64vec4, i64vec4);"
 3680|       |
 3681|  1.42k|            "uint averageRounded(uint, uint);"
 3682|  1.42k|            "uvec2 averageRounded(uvec2, uvec2);"
 3683|  1.42k|            "uvec3 averageRounded(uvec3, uvec3);"
 3684|  1.42k|            "uvec4 averageRounded(uvec4, uvec4);"
 3685|       |
 3686|  1.42k|            "uint16_t averageRounded(uint16_t, uint16_t);"
 3687|  1.42k|            "u16vec2 averageRounded(u16vec2, u16vec2);"
 3688|  1.42k|            "u16vec3 averageRounded(u16vec3, u16vec3);"
 3689|  1.42k|            "u16vec4 averageRounded(u16vec4, u16vec4);"
 3690|       |
 3691|  1.42k|            "uint64_t averageRounded(uint64_t, uint64_t);"
 3692|  1.42k|            "u64vec2 averageRounded(u64vec2, u64vec2);"
 3693|  1.42k|            "u64vec3 averageRounded(u64vec3, u64vec3);"
 3694|  1.42k|            "u64vec4 averageRounded(u64vec4, u64vec4);"
 3695|       |
 3696|  1.42k|            "int multiply32x16(int, int);"
 3697|  1.42k|            "ivec2 multiply32x16(ivec2, ivec2);"
 3698|  1.42k|            "ivec3 multiply32x16(ivec3, ivec3);"
 3699|  1.42k|            "ivec4 multiply32x16(ivec4, ivec4);"
 3700|       |
 3701|  1.42k|            "uint multiply32x16(uint, uint);"
 3702|  1.42k|            "uvec2 multiply32x16(uvec2, uvec2);"
 3703|  1.42k|            "uvec3 multiply32x16(uvec3, uvec3);"
 3704|  1.42k|            "uvec4 multiply32x16(uvec4, uvec4);"
 3705|  1.42k|            "\n");
 3706|  1.42k|    }
 3707|       |
 3708|  1.42k|    if ((profile != EEsProfile && version >= 450) ||
  ------------------
  |  Branch (3708:10): [True: 1.27k, False: 148]
  |  Branch (3708:35): [True: 301, False: 971]
  ------------------
 3709|  1.11k|        (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (3709:10): [True: 148, False: 971]
  |  Branch (3709:35): [True: 7, False: 141]
  ------------------
 3710|    308|        commonBuiltins.append(
 3711|    308|            "struct gl_TextureFootprint2DNV {"
 3712|    308|                "uvec2 anchor;"
 3713|    308|                "uvec2 offset;"
 3714|    308|                "uvec2 mask;"
 3715|    308|                "uint lod;"
 3716|    308|                "uint granularity;"
 3717|    308|            "};"
 3718|       |
 3719|    308|            "struct gl_TextureFootprint3DNV {"
 3720|    308|                "uvec3 anchor;"
 3721|    308|                "uvec3 offset;"
 3722|    308|                "uvec2 mask;"
 3723|    308|                "uint lod;"
 3724|    308|                "uint granularity;"
 3725|    308|            "};"
 3726|    308|            "bool textureFootprintNV(sampler2D, vec2, int, bool, out gl_TextureFootprint2DNV);"
 3727|    308|            "bool textureFootprintNV(isampler2D, vec2, int, bool, out gl_TextureFootprint2DNV);"
 3728|    308|            "bool textureFootprintNV(usampler2D, vec2, int, bool, out gl_TextureFootprint2DNV);"
 3729|    308|            "bool textureFootprintNV(sampler3D, vec3, int, bool, out gl_TextureFootprint3DNV);"
 3730|    308|            "bool textureFootprintNV(isampler3D, vec3, int, bool, out gl_TextureFootprint3DNV);"
 3731|    308|            "bool textureFootprintNV(usampler3D, vec3, int, bool, out gl_TextureFootprint3DNV);"
 3732|    308|            "bool textureFootprintNV(sampler2D, vec2, int, bool, out gl_TextureFootprint2DNV, float);"
 3733|    308|            "bool textureFootprintNV(isampler2D, vec2, int, bool, out gl_TextureFootprint2DNV, float);"
 3734|    308|            "bool textureFootprintNV(usampler2D, vec2, int, bool, out gl_TextureFootprint2DNV, float);"
 3735|    308|            "bool textureFootprintNV(sampler3D, vec3, int, bool, out gl_TextureFootprint3DNV, float);"
 3736|    308|            "bool textureFootprintNV(isampler3D, vec3, int, bool, out gl_TextureFootprint3DNV, float);"
 3737|    308|            "bool textureFootprintNV(usampler3D, vec3, int, bool, out gl_TextureFootprint3DNV, float);"
 3738|    308|            "bool textureFootprintClampNV(sampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3739|    308|            "bool textureFootprintClampNV(isampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3740|    308|            "bool textureFootprintClampNV(usampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3741|    308|            "bool textureFootprintClampNV(sampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV);"
 3742|    308|            "bool textureFootprintClampNV(isampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV);"
 3743|    308|            "bool textureFootprintClampNV(usampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV);"
 3744|    308|            "bool textureFootprintClampNV(sampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV, float);"
 3745|    308|            "bool textureFootprintClampNV(isampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV, float);"
 3746|    308|            "bool textureFootprintClampNV(usampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV, float);"
 3747|    308|            "bool textureFootprintClampNV(sampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV, float);"
 3748|    308|            "bool textureFootprintClampNV(isampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV, float);"
 3749|    308|            "bool textureFootprintClampNV(usampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV, float);"
 3750|    308|            "bool textureFootprintLodNV(sampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3751|    308|            "bool textureFootprintLodNV(isampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3752|    308|            "bool textureFootprintLodNV(usampler2D, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3753|    308|            "bool textureFootprintLodNV(sampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV);"
 3754|    308|            "bool textureFootprintLodNV(isampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV);"
 3755|    308|            "bool textureFootprintLodNV(usampler3D, vec3, float, int, bool, out gl_TextureFootprint3DNV);"
 3756|    308|            "bool textureFootprintGradNV(sampler2D, vec2, vec2, vec2, int, bool, out gl_TextureFootprint2DNV);"
 3757|    308|            "bool textureFootprintGradNV(isampler2D, vec2, vec2, vec2, int, bool, out gl_TextureFootprint2DNV);"
 3758|    308|            "bool textureFootprintGradNV(usampler2D, vec2, vec2, vec2, int, bool, out gl_TextureFootprint2DNV);"
 3759|    308|            "bool textureFootprintGradClampNV(sampler2D, vec2, vec2, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3760|    308|            "bool textureFootprintGradClampNV(isampler2D, vec2, vec2, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3761|    308|            "bool textureFootprintGradClampNV(usampler2D, vec2, vec2, vec2, float, int, bool, out gl_TextureFootprint2DNV);"
 3762|    308|            "\n");
 3763|    308|    }
 3764|       |
 3765|  1.42k|    if ((profile == EEsProfile && version >= 300 && version < 310) ||
  ------------------
  |  Branch (3765:10): [True: 148, False: 1.27k]
  |  Branch (3765:35): [True: 148, False: 0]
  |  Branch (3765:53): [True: 0, False: 148]
  ------------------
 3766|  1.42k|        (profile != EEsProfile && version >= 150 && version < 450)) { // GL_EXT_shader_integer_mix
  ------------------
  |  Branch (3766:10): [True: 1.27k, False: 148]
  |  Branch (3766:35): [True: 756, False: 516]
  |  Branch (3766:53): [True: 455, False: 301]
  ------------------
 3767|    455|        commonBuiltins.append("int mix(int, int, bool);"
 3768|    455|                              "ivec2 mix(ivec2, ivec2, bvec2);"
 3769|    455|                              "ivec3 mix(ivec3, ivec3, bvec3);"
 3770|    455|                              "ivec4 mix(ivec4, ivec4, bvec4);"
 3771|    455|                              "uint  mix(uint,  uint,  bool );"
 3772|    455|                              "uvec2 mix(uvec2, uvec2, bvec2);"
 3773|    455|                              "uvec3 mix(uvec3, uvec3, bvec3);"
 3774|    455|                              "uvec4 mix(uvec4, uvec4, bvec4);"
 3775|    455|                              "bool  mix(bool,  bool,  bool );"
 3776|    455|                              "bvec2 mix(bvec2, bvec2, bvec2);"
 3777|    455|                              "bvec3 mix(bvec3, bvec3, bvec3);"
 3778|    455|                              "bvec4 mix(bvec4, bvec4, bvec4);"
 3779|       |
 3780|    455|                              "\n");
 3781|    455|    }
 3782|       |
 3783|       |    // GL_AMD_gpu_shader_half_float/Explicit types
 3784|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (3784:10): [True: 1.27k, False: 148]
  |  Branch (3784:35): [True: 301, False: 971]
  |  Branch (3784:55): [True: 148, False: 971]
  |  Branch (3784:80): [True: 148, False: 0]
  ------------------
 3785|    449|        commonBuiltins.append(
 3786|    449|            "float16_t radians(float16_t);"
 3787|    449|            "f16vec2   radians(f16vec2);"
 3788|    449|            "f16vec3   radians(f16vec3);"
 3789|    449|            "f16vec4   radians(f16vec4);"
 3790|       |
 3791|    449|            "float16_t degrees(float16_t);"
 3792|    449|            "f16vec2   degrees(f16vec2);"
 3793|    449|            "f16vec3   degrees(f16vec3);"
 3794|    449|            "f16vec4   degrees(f16vec4);"
 3795|       |
 3796|    449|            "float16_t sin(float16_t);"
 3797|    449|            "f16vec2   sin(f16vec2);"
 3798|    449|            "f16vec3   sin(f16vec3);"
 3799|    449|            "f16vec4   sin(f16vec4);"
 3800|       |
 3801|    449|            "float16_t cos(float16_t);"
 3802|    449|            "f16vec2   cos(f16vec2);"
 3803|    449|            "f16vec3   cos(f16vec3);"
 3804|    449|            "f16vec4   cos(f16vec4);"
 3805|       |
 3806|    449|            "float16_t tan(float16_t);"
 3807|    449|            "f16vec2   tan(f16vec2);"
 3808|    449|            "f16vec3   tan(f16vec3);"
 3809|    449|            "f16vec4   tan(f16vec4);"
 3810|       |
 3811|    449|            "float16_t asin(float16_t);"
 3812|    449|            "f16vec2   asin(f16vec2);"
 3813|    449|            "f16vec3   asin(f16vec3);"
 3814|    449|            "f16vec4   asin(f16vec4);"
 3815|       |
 3816|    449|            "float16_t acos(float16_t);"
 3817|    449|            "f16vec2   acos(f16vec2);"
 3818|    449|            "f16vec3   acos(f16vec3);"
 3819|    449|            "f16vec4   acos(f16vec4);"
 3820|       |
 3821|    449|            "float16_t atan(float16_t, float16_t);"
 3822|    449|            "f16vec2   atan(f16vec2,   f16vec2);"
 3823|    449|            "f16vec3   atan(f16vec3,   f16vec3);"
 3824|    449|            "f16vec4   atan(f16vec4,   f16vec4);"
 3825|       |
 3826|    449|            "float16_t atan(float16_t);"
 3827|    449|            "f16vec2   atan(f16vec2);"
 3828|    449|            "f16vec3   atan(f16vec3);"
 3829|    449|            "f16vec4   atan(f16vec4);"
 3830|       |
 3831|    449|            "float16_t sinh(float16_t);"
 3832|    449|            "f16vec2   sinh(f16vec2);"
 3833|    449|            "f16vec3   sinh(f16vec3);"
 3834|    449|            "f16vec4   sinh(f16vec4);"
 3835|       |
 3836|    449|            "float16_t cosh(float16_t);"
 3837|    449|            "f16vec2   cosh(f16vec2);"
 3838|    449|            "f16vec3   cosh(f16vec3);"
 3839|    449|            "f16vec4   cosh(f16vec4);"
 3840|       |
 3841|    449|            "float16_t tanh(float16_t);"
 3842|    449|            "f16vec2   tanh(f16vec2);"
 3843|    449|            "f16vec3   tanh(f16vec3);"
 3844|    449|            "f16vec4   tanh(f16vec4);"
 3845|       |
 3846|    449|            "float16_t asinh(float16_t);"
 3847|    449|            "f16vec2   asinh(f16vec2);"
 3848|    449|            "f16vec3   asinh(f16vec3);"
 3849|    449|            "f16vec4   asinh(f16vec4);"
 3850|       |
 3851|    449|            "float16_t acosh(float16_t);"
 3852|    449|            "f16vec2   acosh(f16vec2);"
 3853|    449|            "f16vec3   acosh(f16vec3);"
 3854|    449|            "f16vec4   acosh(f16vec4);"
 3855|       |
 3856|    449|            "float16_t atanh(float16_t);"
 3857|    449|            "f16vec2   atanh(f16vec2);"
 3858|    449|            "f16vec3   atanh(f16vec3);"
 3859|    449|            "f16vec4   atanh(f16vec4);"
 3860|       |
 3861|    449|            "float16_t pow(float16_t, float16_t);"
 3862|    449|            "f16vec2   pow(f16vec2,   f16vec2);"
 3863|    449|            "f16vec3   pow(f16vec3,   f16vec3);"
 3864|    449|            "f16vec4   pow(f16vec4,   f16vec4);"
 3865|       |
 3866|    449|            "float16_t exp(float16_t);"
 3867|    449|            "f16vec2   exp(f16vec2);"
 3868|    449|            "f16vec3   exp(f16vec3);"
 3869|    449|            "f16vec4   exp(f16vec4);"
 3870|       |
 3871|    449|            "float16_t log(float16_t);"
 3872|    449|            "f16vec2   log(f16vec2);"
 3873|    449|            "f16vec3   log(f16vec3);"
 3874|    449|            "f16vec4   log(f16vec4);"
 3875|       |
 3876|    449|            "float16_t exp2(float16_t);"
 3877|    449|            "f16vec2   exp2(f16vec2);"
 3878|    449|            "f16vec3   exp2(f16vec3);"
 3879|    449|            "f16vec4   exp2(f16vec4);"
 3880|       |
 3881|    449|            "float16_t log2(float16_t);"
 3882|    449|            "f16vec2   log2(f16vec2);"
 3883|    449|            "f16vec3   log2(f16vec3);"
 3884|    449|            "f16vec4   log2(f16vec4);"
 3885|       |
 3886|    449|            "float16_t sqrt(float16_t);"
 3887|    449|            "f16vec2   sqrt(f16vec2);"
 3888|    449|            "f16vec3   sqrt(f16vec3);"
 3889|    449|            "f16vec4   sqrt(f16vec4);"
 3890|       |
 3891|    449|            "float16_t inversesqrt(float16_t);"
 3892|    449|            "f16vec2   inversesqrt(f16vec2);"
 3893|    449|            "f16vec3   inversesqrt(f16vec3);"
 3894|    449|            "f16vec4   inversesqrt(f16vec4);"
 3895|       |
 3896|    449|            "float16_t abs(float16_t);"
 3897|    449|            "f16vec2   abs(f16vec2);"
 3898|    449|            "f16vec3   abs(f16vec3);"
 3899|    449|            "f16vec4   abs(f16vec4);"
 3900|       |
 3901|    449|            "float16_t sign(float16_t);"
 3902|    449|            "f16vec2   sign(f16vec2);"
 3903|    449|            "f16vec3   sign(f16vec3);"
 3904|    449|            "f16vec4   sign(f16vec4);"
 3905|       |
 3906|    449|            "float16_t floor(float16_t);"
 3907|    449|            "f16vec2   floor(f16vec2);"
 3908|    449|            "f16vec3   floor(f16vec3);"
 3909|    449|            "f16vec4   floor(f16vec4);"
 3910|       |
 3911|    449|            "float16_t trunc(float16_t);"
 3912|    449|            "f16vec2   trunc(f16vec2);"
 3913|    449|            "f16vec3   trunc(f16vec3);"
 3914|    449|            "f16vec4   trunc(f16vec4);"
 3915|       |
 3916|    449|            "float16_t round(float16_t);"
 3917|    449|            "f16vec2   round(f16vec2);"
 3918|    449|            "f16vec3   round(f16vec3);"
 3919|    449|            "f16vec4   round(f16vec4);"
 3920|       |
 3921|    449|            "float16_t roundEven(float16_t);"
 3922|    449|            "f16vec2   roundEven(f16vec2);"
 3923|    449|            "f16vec3   roundEven(f16vec3);"
 3924|    449|            "f16vec4   roundEven(f16vec4);"
 3925|       |
 3926|    449|            "float16_t ceil(float16_t);"
 3927|    449|            "f16vec2   ceil(f16vec2);"
 3928|    449|            "f16vec3   ceil(f16vec3);"
 3929|    449|            "f16vec4   ceil(f16vec4);"
 3930|       |
 3931|    449|            "float16_t fract(float16_t);"
 3932|    449|            "f16vec2   fract(f16vec2);"
 3933|    449|            "f16vec3   fract(f16vec3);"
 3934|    449|            "f16vec4   fract(f16vec4);"
 3935|       |
 3936|    449|            "float16_t mod(float16_t, float16_t);"
 3937|    449|            "f16vec2   mod(f16vec2,   float16_t);"
 3938|    449|            "f16vec3   mod(f16vec3,   float16_t);"
 3939|    449|            "f16vec4   mod(f16vec4,   float16_t);"
 3940|    449|            "f16vec2   mod(f16vec2,   f16vec2);"
 3941|    449|            "f16vec3   mod(f16vec3,   f16vec3);"
 3942|    449|            "f16vec4   mod(f16vec4,   f16vec4);"
 3943|       |
 3944|    449|            "float16_t modf(float16_t, out float16_t);"
 3945|    449|            "f16vec2   modf(f16vec2,   out f16vec2);"
 3946|    449|            "f16vec3   modf(f16vec3,   out f16vec3);"
 3947|    449|            "f16vec4   modf(f16vec4,   out f16vec4);"
 3948|       |
 3949|    449|            "float16_t min(float16_t, float16_t);"
 3950|    449|            "f16vec2   min(f16vec2,   float16_t);"
 3951|    449|            "f16vec3   min(f16vec3,   float16_t);"
 3952|    449|            "f16vec4   min(f16vec4,   float16_t);"
 3953|    449|            "f16vec2   min(f16vec2,   f16vec2);"
 3954|    449|            "f16vec3   min(f16vec3,   f16vec3);"
 3955|    449|            "f16vec4   min(f16vec4,   f16vec4);"
 3956|       |
 3957|    449|            "float16_t max(float16_t, float16_t);"
 3958|    449|            "f16vec2   max(f16vec2,   float16_t);"
 3959|    449|            "f16vec3   max(f16vec3,   float16_t);"
 3960|    449|            "f16vec4   max(f16vec4,   float16_t);"
 3961|    449|            "f16vec2   max(f16vec2,   f16vec2);"
 3962|    449|            "f16vec3   max(f16vec3,   f16vec3);"
 3963|    449|            "f16vec4   max(f16vec4,   f16vec4);"
 3964|       |
 3965|    449|            "float16_t clamp(float16_t, float16_t, float16_t);"
 3966|    449|            "f16vec2   clamp(f16vec2,   float16_t, float16_t);"
 3967|    449|            "f16vec3   clamp(f16vec3,   float16_t, float16_t);"
 3968|    449|            "f16vec4   clamp(f16vec4,   float16_t, float16_t);"
 3969|    449|            "f16vec2   clamp(f16vec2,   f16vec2,   f16vec2);"
 3970|    449|            "f16vec3   clamp(f16vec3,   f16vec3,   f16vec3);"
 3971|    449|            "f16vec4   clamp(f16vec4,   f16vec4,   f16vec4);"
 3972|       |
 3973|    449|            "float16_t mix(float16_t, float16_t, float16_t);"
 3974|    449|            "f16vec2   mix(f16vec2,   f16vec2,   float16_t);"
 3975|    449|            "f16vec3   mix(f16vec3,   f16vec3,   float16_t);"
 3976|    449|            "f16vec4   mix(f16vec4,   f16vec4,   float16_t);"
 3977|    449|            "f16vec2   mix(f16vec2,   f16vec2,   f16vec2);"
 3978|    449|            "f16vec3   mix(f16vec3,   f16vec3,   f16vec3);"
 3979|    449|            "f16vec4   mix(f16vec4,   f16vec4,   f16vec4);"
 3980|    449|            "float16_t mix(float16_t, float16_t, bool);"
 3981|    449|            "f16vec2   mix(f16vec2,   f16vec2,   bvec2);"
 3982|    449|            "f16vec3   mix(f16vec3,   f16vec3,   bvec3);"
 3983|    449|            "f16vec4   mix(f16vec4,   f16vec4,   bvec4);"
 3984|       |
 3985|    449|            "float16_t step(float16_t, float16_t);"
 3986|    449|            "f16vec2   step(f16vec2,   f16vec2);"
 3987|    449|            "f16vec3   step(f16vec3,   f16vec3);"
 3988|    449|            "f16vec4   step(f16vec4,   f16vec4);"
 3989|    449|            "f16vec2   step(float16_t, f16vec2);"
 3990|    449|            "f16vec3   step(float16_t, f16vec3);"
 3991|    449|            "f16vec4   step(float16_t, f16vec4);"
 3992|       |
 3993|    449|            "float16_t smoothstep(float16_t, float16_t, float16_t);"
 3994|    449|            "f16vec2   smoothstep(f16vec2,   f16vec2,   f16vec2);"
 3995|    449|            "f16vec3   smoothstep(f16vec3,   f16vec3,   f16vec3);"
 3996|    449|            "f16vec4   smoothstep(f16vec4,   f16vec4,   f16vec4);"
 3997|    449|            "f16vec2   smoothstep(float16_t, float16_t, f16vec2);"
 3998|    449|            "f16vec3   smoothstep(float16_t, float16_t, f16vec3);"
 3999|    449|            "f16vec4   smoothstep(float16_t, float16_t, f16vec4);"
 4000|       |
 4001|    449|            "bool  isnan(float16_t);"
 4002|    449|            "bvec2 isnan(f16vec2);"
 4003|    449|            "bvec3 isnan(f16vec3);"
 4004|    449|            "bvec4 isnan(f16vec4);"
 4005|       |
 4006|    449|            "bool  isinf(float16_t);"
 4007|    449|            "bvec2 isinf(f16vec2);"
 4008|    449|            "bvec3 isinf(f16vec3);"
 4009|    449|            "bvec4 isinf(f16vec4);"
 4010|       |
 4011|    449|            "float16_t fma(float16_t, float16_t, float16_t);"
 4012|    449|            "f16vec2   fma(f16vec2,   f16vec2,   f16vec2);"
 4013|    449|            "f16vec3   fma(f16vec3,   f16vec3,   f16vec3);"
 4014|    449|            "f16vec4   fma(f16vec4,   f16vec4,   f16vec4);"
 4015|       |
 4016|    449|            "float16_t frexp(float16_t, out int);"
 4017|    449|            "f16vec2   frexp(f16vec2,   out ivec2);"
 4018|    449|            "f16vec3   frexp(f16vec3,   out ivec3);"
 4019|    449|            "f16vec4   frexp(f16vec4,   out ivec4);"
 4020|       |
 4021|    449|            "float16_t ldexp(float16_t, in int);"
 4022|    449|            "f16vec2   ldexp(f16vec2,   in ivec2);"
 4023|    449|            "f16vec3   ldexp(f16vec3,   in ivec3);"
 4024|    449|            "f16vec4   ldexp(f16vec4,   in ivec4);"
 4025|       |
 4026|    449|            "uint    packFloat2x16(f16vec2);"
 4027|    449|            "f16vec2 unpackFloat2x16(uint);"
 4028|       |
 4029|    449|            "float16_t length(float16_t);"
 4030|    449|            "float16_t length(f16vec2);"
 4031|    449|            "float16_t length(f16vec3);"
 4032|    449|            "float16_t length(f16vec4);"
 4033|       |
 4034|    449|            "float16_t distance(float16_t, float16_t);"
 4035|    449|            "float16_t distance(f16vec2,   f16vec2);"
 4036|    449|            "float16_t distance(f16vec3,   f16vec3);"
 4037|    449|            "float16_t distance(f16vec4,   f16vec4);"
 4038|       |
 4039|    449|            "float16_t dot(float16_t, float16_t);"
 4040|    449|            "float16_t dot(f16vec2,   f16vec2);"
 4041|    449|            "float16_t dot(f16vec3,   f16vec3);"
 4042|    449|            "float16_t dot(f16vec4,   f16vec4);"
 4043|       |
 4044|    449|            "f16vec3 cross(f16vec3, f16vec3);"
 4045|       |
 4046|    449|            "float16_t normalize(float16_t);"
 4047|    449|            "f16vec2   normalize(f16vec2);"
 4048|    449|            "f16vec3   normalize(f16vec3);"
 4049|    449|            "f16vec4   normalize(f16vec4);"
 4050|       |
 4051|    449|            "float16_t faceforward(float16_t, float16_t, float16_t);"
 4052|    449|            "f16vec2   faceforward(f16vec2,   f16vec2,   f16vec2);"
 4053|    449|            "f16vec3   faceforward(f16vec3,   f16vec3,   f16vec3);"
 4054|    449|            "f16vec4   faceforward(f16vec4,   f16vec4,   f16vec4);"
 4055|       |
 4056|    449|            "float16_t reflect(float16_t, float16_t);"
 4057|    449|            "f16vec2   reflect(f16vec2,   f16vec2);"
 4058|    449|            "f16vec3   reflect(f16vec3,   f16vec3);"
 4059|    449|            "f16vec4   reflect(f16vec4,   f16vec4);"
 4060|       |
 4061|    449|            "float16_t refract(float16_t, float16_t, float16_t);"
 4062|    449|            "f16vec2   refract(f16vec2,   f16vec2,   float16_t);"
 4063|    449|            "f16vec3   refract(f16vec3,   f16vec3,   float16_t);"
 4064|    449|            "f16vec4   refract(f16vec4,   f16vec4,   float16_t);"
 4065|       |
 4066|    449|            "f16mat2   matrixCompMult(f16mat2,   f16mat2);"
 4067|    449|            "f16mat3   matrixCompMult(f16mat3,   f16mat3);"
 4068|    449|            "f16mat4   matrixCompMult(f16mat4,   f16mat4);"
 4069|    449|            "f16mat2x3 matrixCompMult(f16mat2x3, f16mat2x3);"
 4070|    449|            "f16mat2x4 matrixCompMult(f16mat2x4, f16mat2x4);"
 4071|    449|            "f16mat3x2 matrixCompMult(f16mat3x2, f16mat3x2);"
 4072|    449|            "f16mat3x4 matrixCompMult(f16mat3x4, f16mat3x4);"
 4073|    449|            "f16mat4x2 matrixCompMult(f16mat4x2, f16mat4x2);"
 4074|    449|            "f16mat4x3 matrixCompMult(f16mat4x3, f16mat4x3);"
 4075|       |
 4076|    449|            "f16mat2   outerProduct(f16vec2, f16vec2);"
 4077|    449|            "f16mat3   outerProduct(f16vec3, f16vec3);"
 4078|    449|            "f16mat4   outerProduct(f16vec4, f16vec4);"
 4079|    449|            "f16mat2x3 outerProduct(f16vec3, f16vec2);"
 4080|    449|            "f16mat3x2 outerProduct(f16vec2, f16vec3);"
 4081|    449|            "f16mat2x4 outerProduct(f16vec4, f16vec2);"
 4082|    449|            "f16mat4x2 outerProduct(f16vec2, f16vec4);"
 4083|    449|            "f16mat3x4 outerProduct(f16vec4, f16vec3);"
 4084|    449|            "f16mat4x3 outerProduct(f16vec3, f16vec4);"
 4085|       |
 4086|    449|            "f16mat2   transpose(f16mat2);"
 4087|    449|            "f16mat3   transpose(f16mat3);"
 4088|    449|            "f16mat4   transpose(f16mat4);"
 4089|    449|            "f16mat2x3 transpose(f16mat3x2);"
 4090|    449|            "f16mat3x2 transpose(f16mat2x3);"
 4091|    449|            "f16mat2x4 transpose(f16mat4x2);"
 4092|    449|            "f16mat4x2 transpose(f16mat2x4);"
 4093|    449|            "f16mat3x4 transpose(f16mat4x3);"
 4094|    449|            "f16mat4x3 transpose(f16mat3x4);"
 4095|       |
 4096|    449|            "float16_t determinant(f16mat2);"
 4097|    449|            "float16_t determinant(f16mat3);"
 4098|    449|            "float16_t determinant(f16mat4);"
 4099|       |
 4100|    449|            "f16mat2 inverse(f16mat2);"
 4101|    449|            "f16mat3 inverse(f16mat3);"
 4102|    449|            "f16mat4 inverse(f16mat4);"
 4103|       |
 4104|    449|            "bvec2 lessThan(f16vec2, f16vec2);"
 4105|    449|            "bvec3 lessThan(f16vec3, f16vec3);"
 4106|    449|            "bvec4 lessThan(f16vec4, f16vec4);"
 4107|       |
 4108|    449|            "bvec2 lessThanEqual(f16vec2, f16vec2);"
 4109|    449|            "bvec3 lessThanEqual(f16vec3, f16vec3);"
 4110|    449|            "bvec4 lessThanEqual(f16vec4, f16vec4);"
 4111|       |
 4112|    449|            "bvec2 greaterThan(f16vec2, f16vec2);"
 4113|    449|            "bvec3 greaterThan(f16vec3, f16vec3);"
 4114|    449|            "bvec4 greaterThan(f16vec4, f16vec4);"
 4115|       |
 4116|    449|            "bvec2 greaterThanEqual(f16vec2, f16vec2);"
 4117|    449|            "bvec3 greaterThanEqual(f16vec3, f16vec3);"
 4118|    449|            "bvec4 greaterThanEqual(f16vec4, f16vec4);"
 4119|       |
 4120|    449|            "bvec2 equal(f16vec2, f16vec2);"
 4121|    449|            "bvec3 equal(f16vec3, f16vec3);"
 4122|    449|            "bvec4 equal(f16vec4, f16vec4);"
 4123|       |
 4124|    449|            "bvec2 notEqual(f16vec2, f16vec2);"
 4125|    449|            "bvec3 notEqual(f16vec3, f16vec3);"
 4126|    449|            "bvec4 notEqual(f16vec4, f16vec4);"
 4127|       |
 4128|    449|            "bfloat16_t dot(bfloat16_t, bfloat16_t);"
 4129|    449|            "bfloat16_t dot(bf16vec2,   bf16vec2);"
 4130|    449|            "bfloat16_t dot(bf16vec3,   bf16vec3);"
 4131|    449|            "bfloat16_t dot(bf16vec4,   bf16vec4);"
 4132|       |
 4133|    449|            "int16_t  bfloat16BitsToIntEXT(bfloat16_t value);"
 4134|    449|            "i16vec2  bfloat16BitsToIntEXT(bf16vec2 value);"
 4135|    449|            "i16vec3  bfloat16BitsToIntEXT(bf16vec3 value);"
 4136|    449|            "i16vec4  bfloat16BitsToIntEXT(bf16vec4 value);"
 4137|       |
 4138|    449|            "uint16_t bfloat16BitsToUintEXT(bfloat16_t value);"
 4139|    449|            "u16vec2  bfloat16BitsToUintEXT(bf16vec2 value);"
 4140|    449|            "u16vec3  bfloat16BitsToUintEXT(bf16vec3 value);"
 4141|    449|            "u16vec4  bfloat16BitsToUintEXT(bf16vec4 value);"
 4142|       |
 4143|    449|            "bfloat16_t intBitsToBFloat16EXT(int16_t value);"
 4144|    449|            "bf16vec2   intBitsToBFloat16EXT(i16vec2 value);"
 4145|    449|            "bf16vec3   intBitsToBFloat16EXT(i16vec3 value);"
 4146|    449|            "bf16vec4   intBitsToBFloat16EXT(i16vec4 value);"
 4147|       |
 4148|    449|            "bfloat16_t uintBitsToBFloat16EXT(uint16_t value);"
 4149|    449|            "bf16vec2   uintBitsToBFloat16EXT(u16vec2 value);"
 4150|    449|            "bf16vec3   uintBitsToBFloat16EXT(u16vec3 value);"
 4151|    449|            "bf16vec4   uintBitsToBFloat16EXT(u16vec4 value);"
 4152|       |
 4153|    449|            "int8_t  floate5m2BitsToIntEXT(floate5m2_t value);"
 4154|    449|            "i8vec2  floate5m2BitsToIntEXT(fe5m2vec2 value);"
 4155|    449|            "i8vec3  floate5m2BitsToIntEXT(fe5m2vec3 value);"
 4156|    449|            "i8vec4  floate5m2BitsToIntEXT(fe5m2vec4 value);"
 4157|       |
 4158|    449|            "uint8_t floate5m2BitsToUintEXT(floate5m2_t value);"
 4159|    449|            "u8vec2  floate5m2BitsToUintEXT(fe5m2vec2 value);"
 4160|    449|            "u8vec3  floate5m2BitsToUintEXT(fe5m2vec3 value);"
 4161|    449|            "u8vec4  floate5m2BitsToUintEXT(fe5m2vec4 value);"
 4162|       |
 4163|    449|            "floate5m2_t intBitsToFloate5m2EXT(int8_t value);"
 4164|    449|            "fe5m2vec2   intBitsToFloate5m2EXT(i8vec2 value);"
 4165|    449|            "fe5m2vec3   intBitsToFloate5m2EXT(i8vec3 value);"
 4166|    449|            "fe5m2vec4   intBitsToFloate5m2EXT(i8vec4 value);"
 4167|       |
 4168|    449|            "floate5m2_t uintBitsToFloate5m2EXT(uint8_t value);"
 4169|    449|            "fe5m2vec2   uintBitsToFloate5m2EXT(u8vec2 value);"
 4170|    449|            "fe5m2vec3   uintBitsToFloate5m2EXT(u8vec3 value);"
 4171|    449|            "fe5m2vec4   uintBitsToFloate5m2EXT(u8vec4 value);"
 4172|       |
 4173|    449|            "int8_t  floate4m3BitsToIntEXT(floate4m3_t value);"
 4174|    449|            "i8vec2  floate4m3BitsToIntEXT(fe4m3vec2 value);"
 4175|    449|            "i8vec3  floate4m3BitsToIntEXT(fe4m3vec3 value);"
 4176|    449|            "i8vec4  floate4m3BitsToIntEXT(fe4m3vec4 value);"
 4177|       |
 4178|    449|            "uint8_t floate4m3BitsToUintEXT(floate4m3_t value);"
 4179|    449|            "u8vec2  floate4m3BitsToUintEXT(fe4m3vec2 value);"
 4180|    449|            "u8vec3  floate4m3BitsToUintEXT(fe4m3vec3 value);"
 4181|    449|            "u8vec4  floate4m3BitsToUintEXT(fe4m3vec4 value);"
 4182|       |
 4183|    449|            "floate4m3_t intBitsToFloate4m3EXT(int8_t value);"
 4184|    449|            "fe4m3vec2   intBitsToFloate4m3EXT(i8vec2 value);"
 4185|    449|            "fe4m3vec3   intBitsToFloate4m3EXT(i8vec3 value);"
 4186|    449|            "fe4m3vec4   intBitsToFloate4m3EXT(i8vec4 value);"
 4187|       |
 4188|    449|            "floate4m3_t uintBitsToFloate4m3EXT(uint8_t value);"
 4189|    449|            "fe4m3vec2   uintBitsToFloate4m3EXT(u8vec2 value);"
 4190|    449|            "fe4m3vec3   uintBitsToFloate4m3EXT(u8vec3 value);"
 4191|    449|            "fe4m3vec4   uintBitsToFloate4m3EXT(u8vec4 value);"
 4192|       |
 4193|    449|            "void saturatedConvertEXT();"
 4194|       |
 4195|    449|            "int8_t  floatue8m0BitsToIntEXT(floatue8m0_t value);"
 4196|    449|            "i8vec2  floatue8m0BitsToIntEXT(fue8m0vec2 value);"
 4197|    449|            "i8vec3  floatue8m0BitsToIntEXT(fue8m0vec3 value);"
 4198|    449|            "i8vec4  floatue8m0BitsToIntEXT(fue8m0vec4 value);"
 4199|       |
 4200|    449|            "uint8_t floatue8m0BitsToUintEXT(floatue8m0_t value);"
 4201|    449|            "u8vec2  floatue8m0BitsToUintEXT(fue8m0vec2 value);"
 4202|    449|            "u8vec3  floatue8m0BitsToUintEXT(fue8m0vec3 value);"
 4203|    449|            "u8vec4  floatue8m0BitsToUintEXT(fue8m0vec4 value);"
 4204|       |
 4205|    449|            "floatue8m0_t intBitsToFloatue8m0EXT(int8_t value);"
 4206|    449|            "fue8m0vec2   intBitsToFloatue8m0EXT(i8vec2 value);"
 4207|    449|            "fue8m0vec3   intBitsToFloatue8m0EXT(i8vec3 value);"
 4208|    449|            "fue8m0vec4   intBitsToFloatue8m0EXT(i8vec4 value);"
 4209|       |
 4210|    449|            "floatue8m0_t uintBitsToFloatue8m0EXT(uint8_t value);"
 4211|    449|            "fue8m0vec2   uintBitsToFloatue8m0EXT(u8vec2 value);"
 4212|    449|            "fue8m0vec3   uintBitsToFloatue8m0EXT(u8vec3 value);"
 4213|    449|            "fue8m0vec4   uintBitsToFloatue8m0EXT(u8vec4 value);"
 4214|       |
 4215|    449|            "int8_t  floatmxint8BitsToIntEXT(floatmxint8_t value);"
 4216|    449|            "i8vec2  floatmxint8BitsToIntEXT(fmxint8vec2 value);"
 4217|    449|            "i8vec3  floatmxint8BitsToIntEXT(fmxint8vec3 value);"
 4218|    449|            "i8vec4  floatmxint8BitsToIntEXT(fmxint8vec4 value);"
 4219|       |
 4220|    449|            "uint8_t floatmxint8BitsToUintEXT(floatmxint8_t value);"
 4221|    449|            "u8vec2  floatmxint8BitsToUintEXT(fmxint8vec2 value);"
 4222|    449|            "u8vec3  floatmxint8BitsToUintEXT(fmxint8vec3 value);"
 4223|    449|            "u8vec4  floatmxint8BitsToUintEXT(fmxint8vec4 value);"
 4224|       |
 4225|    449|            "floatmxint8_t intBitsToFloatmxint8EXT(int8_t value);"
 4226|    449|            "fmxint8vec2   intBitsToFloatmxint8EXT(i8vec2 value);"
 4227|    449|            "fmxint8vec3   intBitsToFloatmxint8EXT(i8vec3 value);"
 4228|    449|            "fmxint8vec4   intBitsToFloatmxint8EXT(i8vec4 value);"
 4229|       |
 4230|    449|            "floatmxint8_t uintBitsToFloatmxint8EXT(uint8_t value);"
 4231|    449|            "fmxint8vec2   uintBitsToFloatmxint8EXT(u8vec2 value);"
 4232|    449|            "fmxint8vec3   uintBitsToFloatmxint8EXT(u8vec3 value);"
 4233|    449|            "fmxint8vec4   uintBitsToFloatmxint8EXT(u8vec4 value);"
 4234|       |
 4235|    449|            "fe2m1vec2               unpackFloat2xfe2m1EXT(uint8_t value);"
 4236|    449|            "fe2m1vec4               unpackFloat4xfe2m1EXT(uint16_t value);"
 4237|    449|            "vector<floate2m1_t, 8>  unpackFloat8xfe2m1EXT(uint32_t value);"
 4238|    449|            "vector<floate2m1_t, 16> unpackFloat16xfe2m1EXT(u32vec2 value);"
 4239|       |
 4240|    449|            "uint8_t                 packFloat2xfe2m1EXT(fe2m1vec2 value);"
 4241|    449|            "uint16_t                packFloat4xfe2m1EXT(fe2m1vec4 value);"
 4242|    449|            "uint32_t                packFloat8xfe2m1EXT(vector<floate2m1_t, 8> value);"
 4243|    449|            "u32vec2                 packFloat16xfe2m1EXT(vector<floate2m1_t, 16> value);"
 4244|       |
 4245|    449|            "fe3m2vec4               unpackFloat4xfe3m2EXT(u8vec3 value);"
 4246|    449|            "vector<floate3m2_t, 8>  unpackFloat8xfe3m2EXT(u16vec3 value);"
 4247|    449|            "vector<floate3m2_t, 16> unpackFloat16xfe3m2EXT(u32vec3 value);"
 4248|       |
 4249|    449|            "u8vec3                  packFloat4xfe3m2EXT(fe3m2vec4 value);"
 4250|    449|            "u16vec3                 packFloat8xfe3m2EXT(vector<floate3m2_t, 8> value);"
 4251|    449|            "u32vec3                 packFloat16xfe3m2EXT(vector<floate3m2_t, 16> value);"
 4252|       |
 4253|    449|            "fe2m3vec4               unpackFloat4xfe2m3EXT(u8vec3 value);"
 4254|    449|            "vector<floate2m3_t, 8>  unpackFloat8xfe2m3EXT(u16vec3 value);"
 4255|    449|            "vector<floate2m3_t, 16> unpackFloat16xfe2m3EXT(u32vec3 value);"
 4256|       |
 4257|    449|            "u8vec3                  packFloat4xfe2m3EXT(fe2m3vec4 value);"
 4258|    449|            "u16vec3                 packFloat8xfe2m3EXT(vector<floate2m3_t, 8> value);"
 4259|    449|            "u32vec3                 packFloat16xfe2m3EXT(vector<floate2m3_t, 16> value);"
 4260|       |
 4261|    449|            "floate2m1_t             bitcastExtractfe2m1EXT(uint8_t, uint);"
 4262|    449|            "fe2m1vec2               bitcastExtractfe2m1EXT(u8vec2, uint);"
 4263|    449|            "fe2m1vec3               bitcastExtractfe2m1EXT(u8vec3, uint);"
 4264|    449|            "fe2m1vec4               bitcastExtractfe2m1EXT(u8vec4, uint);"
 4265|       |
 4266|    449|            "floate3m2_t             bitcastExtractfe3m2EXT(uint8_t, uint);"
 4267|    449|            "fe3m2vec2               bitcastExtractfe3m2EXT(u8vec2, uint);"
 4268|    449|            "fe3m2vec3               bitcastExtractfe3m2EXT(u8vec3, uint);"
 4269|    449|            "fe3m2vec4               bitcastExtractfe3m2EXT(u8vec4, uint);"
 4270|       |
 4271|    449|            "floate2m3_t             bitcastExtractfe2m3EXT(uint8_t, uint);"
 4272|    449|            "fe2m3vec2               bitcastExtractfe2m3EXT(u8vec2, uint);"
 4273|    449|            "fe2m3vec3               bitcastExtractfe2m3EXT(u8vec3, uint);"
 4274|    449|            "fe2m3vec4               bitcastExtractfe2m3EXT(u8vec4, uint);"
 4275|       |
 4276|    449|            "\n");
 4277|    449|    }
 4278|       |
 4279|       |    // Explicit types
 4280|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (4280:10): [True: 1.27k, False: 148]
  |  Branch (4280:35): [True: 301, False: 971]
  |  Branch (4280:55): [True: 148, False: 971]
  |  Branch (4280:80): [True: 148, False: 0]
  ------------------
 4281|    449|        commonBuiltins.append(
 4282|    449|            "int8_t abs(int8_t);"
 4283|    449|            "i8vec2 abs(i8vec2);"
 4284|    449|            "i8vec3 abs(i8vec3);"
 4285|    449|            "i8vec4 abs(i8vec4);"
 4286|       |
 4287|    449|            "int8_t sign(int8_t);"
 4288|    449|            "i8vec2 sign(i8vec2);"
 4289|    449|            "i8vec3 sign(i8vec3);"
 4290|    449|            "i8vec4 sign(i8vec4);"
 4291|       |
 4292|    449|            "int8_t min(int8_t x, int8_t y);"
 4293|    449|            "i8vec2 min(i8vec2 x, int8_t y);"
 4294|    449|            "i8vec3 min(i8vec3 x, int8_t y);"
 4295|    449|            "i8vec4 min(i8vec4 x, int8_t y);"
 4296|    449|            "i8vec2 min(i8vec2 x, i8vec2 y);"
 4297|    449|            "i8vec3 min(i8vec3 x, i8vec3 y);"
 4298|    449|            "i8vec4 min(i8vec4 x, i8vec4 y);"
 4299|       |
 4300|    449|            "uint8_t min(uint8_t x, uint8_t y);"
 4301|    449|            "u8vec2 min(u8vec2 x, uint8_t y);"
 4302|    449|            "u8vec3 min(u8vec3 x, uint8_t y);"
 4303|    449|            "u8vec4 min(u8vec4 x, uint8_t y);"
 4304|    449|            "u8vec2 min(u8vec2 x, u8vec2 y);"
 4305|    449|            "u8vec3 min(u8vec3 x, u8vec3 y);"
 4306|    449|            "u8vec4 min(u8vec4 x, u8vec4 y);"
 4307|       |
 4308|    449|            "int8_t max(int8_t x, int8_t y);"
 4309|    449|            "i8vec2 max(i8vec2 x, int8_t y);"
 4310|    449|            "i8vec3 max(i8vec3 x, int8_t y);"
 4311|    449|            "i8vec4 max(i8vec4 x, int8_t y);"
 4312|    449|            "i8vec2 max(i8vec2 x, i8vec2 y);"
 4313|    449|            "i8vec3 max(i8vec3 x, i8vec3 y);"
 4314|    449|            "i8vec4 max(i8vec4 x, i8vec4 y);"
 4315|       |
 4316|    449|            "uint8_t max(uint8_t x, uint8_t y);"
 4317|    449|            "u8vec2 max(u8vec2 x, uint8_t y);"
 4318|    449|            "u8vec3 max(u8vec3 x, uint8_t y);"
 4319|    449|            "u8vec4 max(u8vec4 x, uint8_t y);"
 4320|    449|            "u8vec2 max(u8vec2 x, u8vec2 y);"
 4321|    449|            "u8vec3 max(u8vec3 x, u8vec3 y);"
 4322|    449|            "u8vec4 max(u8vec4 x, u8vec4 y);"
 4323|       |
 4324|    449|            "int8_t    clamp(int8_t x, int8_t minVal, int8_t maxVal);"
 4325|    449|            "i8vec2  clamp(i8vec2  x, int8_t minVal, int8_t maxVal);"
 4326|    449|            "i8vec3  clamp(i8vec3  x, int8_t minVal, int8_t maxVal);"
 4327|    449|            "i8vec4  clamp(i8vec4  x, int8_t minVal, int8_t maxVal);"
 4328|    449|            "i8vec2  clamp(i8vec2  x, i8vec2  minVal, i8vec2  maxVal);"
 4329|    449|            "i8vec3  clamp(i8vec3  x, i8vec3  minVal, i8vec3  maxVal);"
 4330|    449|            "i8vec4  clamp(i8vec4  x, i8vec4  minVal, i8vec4  maxVal);"
 4331|       |
 4332|    449|            "uint8_t   clamp(uint8_t x, uint8_t minVal, uint8_t maxVal);"
 4333|    449|            "u8vec2  clamp(u8vec2  x, uint8_t minVal, uint8_t maxVal);"
 4334|    449|            "u8vec3  clamp(u8vec3  x, uint8_t minVal, uint8_t maxVal);"
 4335|    449|            "u8vec4  clamp(u8vec4  x, uint8_t minVal, uint8_t maxVal);"
 4336|    449|            "u8vec2  clamp(u8vec2  x, u8vec2  minVal, u8vec2  maxVal);"
 4337|    449|            "u8vec3  clamp(u8vec3  x, u8vec3  minVal, u8vec3  maxVal);"
 4338|    449|            "u8vec4  clamp(u8vec4  x, u8vec4  minVal, u8vec4  maxVal);"
 4339|       |
 4340|    449|            "int8_t  mix(int8_t,  int8_t,  bool);"
 4341|    449|            "i8vec2  mix(i8vec2,  i8vec2,  bvec2);"
 4342|    449|            "i8vec3  mix(i8vec3,  i8vec3,  bvec3);"
 4343|    449|            "i8vec4  mix(i8vec4,  i8vec4,  bvec4);"
 4344|    449|            "uint8_t mix(uint8_t, uint8_t, bool);"
 4345|    449|            "u8vec2  mix(u8vec2,  u8vec2,  bvec2);"
 4346|    449|            "u8vec3  mix(u8vec3,  u8vec3,  bvec3);"
 4347|    449|            "u8vec4  mix(u8vec4,  u8vec4,  bvec4);"
 4348|       |
 4349|    449|            "bvec2 lessThan(i8vec2, i8vec2);"
 4350|    449|            "bvec3 lessThan(i8vec3, i8vec3);"
 4351|    449|            "bvec4 lessThan(i8vec4, i8vec4);"
 4352|    449|            "bvec2 lessThan(u8vec2, u8vec2);"
 4353|    449|            "bvec3 lessThan(u8vec3, u8vec3);"
 4354|    449|            "bvec4 lessThan(u8vec4, u8vec4);"
 4355|       |
 4356|    449|            "bvec2 lessThanEqual(i8vec2, i8vec2);"
 4357|    449|            "bvec3 lessThanEqual(i8vec3, i8vec3);"
 4358|    449|            "bvec4 lessThanEqual(i8vec4, i8vec4);"
 4359|    449|            "bvec2 lessThanEqual(u8vec2, u8vec2);"
 4360|    449|            "bvec3 lessThanEqual(u8vec3, u8vec3);"
 4361|    449|            "bvec4 lessThanEqual(u8vec4, u8vec4);"
 4362|       |
 4363|    449|            "bvec2 greaterThan(i8vec2, i8vec2);"
 4364|    449|            "bvec3 greaterThan(i8vec3, i8vec3);"
 4365|    449|            "bvec4 greaterThan(i8vec4, i8vec4);"
 4366|    449|            "bvec2 greaterThan(u8vec2, u8vec2);"
 4367|    449|            "bvec3 greaterThan(u8vec3, u8vec3);"
 4368|    449|            "bvec4 greaterThan(u8vec4, u8vec4);"
 4369|       |
 4370|    449|            "bvec2 greaterThanEqual(i8vec2, i8vec2);"
 4371|    449|            "bvec3 greaterThanEqual(i8vec3, i8vec3);"
 4372|    449|            "bvec4 greaterThanEqual(i8vec4, i8vec4);"
 4373|    449|            "bvec2 greaterThanEqual(u8vec2, u8vec2);"
 4374|    449|            "bvec3 greaterThanEqual(u8vec3, u8vec3);"
 4375|    449|            "bvec4 greaterThanEqual(u8vec4, u8vec4);"
 4376|       |
 4377|    449|            "bvec2 equal(i8vec2, i8vec2);"
 4378|    449|            "bvec3 equal(i8vec3, i8vec3);"
 4379|    449|            "bvec4 equal(i8vec4, i8vec4);"
 4380|    449|            "bvec2 equal(u8vec2, u8vec2);"
 4381|    449|            "bvec3 equal(u8vec3, u8vec3);"
 4382|    449|            "bvec4 equal(u8vec4, u8vec4);"
 4383|       |
 4384|    449|            "bvec2 notEqual(i8vec2, i8vec2);"
 4385|    449|            "bvec3 notEqual(i8vec3, i8vec3);"
 4386|    449|            "bvec4 notEqual(i8vec4, i8vec4);"
 4387|    449|            "bvec2 notEqual(u8vec2, u8vec2);"
 4388|    449|            "bvec3 notEqual(u8vec3, u8vec3);"
 4389|    449|            "bvec4 notEqual(u8vec4, u8vec4);"
 4390|       |
 4391|    449|            "  int8_t bitfieldExtract(  int8_t, int8_t, int8_t);"
 4392|    449|            "i8vec2 bitfieldExtract(i8vec2, int8_t, int8_t);"
 4393|    449|            "i8vec3 bitfieldExtract(i8vec3, int8_t, int8_t);"
 4394|    449|            "i8vec4 bitfieldExtract(i8vec4, int8_t, int8_t);"
 4395|       |
 4396|    449|            " uint8_t bitfieldExtract( uint8_t, int8_t, int8_t);"
 4397|    449|            "u8vec2 bitfieldExtract(u8vec2, int8_t, int8_t);"
 4398|    449|            "u8vec3 bitfieldExtract(u8vec3, int8_t, int8_t);"
 4399|    449|            "u8vec4 bitfieldExtract(u8vec4, int8_t, int8_t);"
 4400|       |
 4401|    449|            "  int8_t bitfieldInsert(  int8_t base,   int8_t, int8_t, int8_t);"
 4402|    449|            "i8vec2 bitfieldInsert(i8vec2 base, i8vec2, int8_t, int8_t);"
 4403|    449|            "i8vec3 bitfieldInsert(i8vec3 base, i8vec3, int8_t, int8_t);"
 4404|    449|            "i8vec4 bitfieldInsert(i8vec4 base, i8vec4, int8_t, int8_t);"
 4405|       |
 4406|    449|            " uint8_t bitfieldInsert( uint8_t base,  uint8_t, int8_t, int8_t);"
 4407|    449|            "u8vec2 bitfieldInsert(u8vec2 base, u8vec2, int8_t, int8_t);"
 4408|    449|            "u8vec3 bitfieldInsert(u8vec3 base, u8vec3, int8_t, int8_t);"
 4409|    449|            "u8vec4 bitfieldInsert(u8vec4 base, u8vec4, int8_t, int8_t);"
 4410|       |
 4411|    449|            "  int8_t bitCount(  int8_t);"
 4412|    449|            "i8vec2 bitCount(i8vec2);"
 4413|    449|            "i8vec3 bitCount(i8vec3);"
 4414|    449|            "i8vec4 bitCount(i8vec4);"
 4415|       |
 4416|    449|            "  int8_t bitCount( uint8_t);"
 4417|    449|            "i8vec2 bitCount(u8vec2);"
 4418|    449|            "i8vec3 bitCount(u8vec3);"
 4419|    449|            "i8vec4 bitCount(u8vec4);"
 4420|       |
 4421|    449|            "int8_t bitfieldReverse(highp int8_t);"
 4422|    449|            "i8vec2 bitfieldReverse(highp i8vec2);"
 4423|    449|            "i8vec3 bitfieldReverse(highp i8vec3);"
 4424|    449|            "i8vec4 bitfieldReverse(highp i8vec4);"
 4425|       |
 4426|    449|            "uint8_t bitfieldReverse(highp uint8_t);"
 4427|    449|            "u8vec2  bitfieldReverse(highp u8vec2);"
 4428|    449|            "u8vec3  bitfieldReverse(highp u8vec3);"
 4429|    449|            "u8vec4  bitfieldReverse(highp u8vec4);"
 4430|       |
 4431|    449|            "  int8_t findLSB(  int8_t);"
 4432|    449|            "i8vec2 findLSB(i8vec2);"
 4433|    449|            "i8vec3 findLSB(i8vec3);"
 4434|    449|            "i8vec4 findLSB(i8vec4);"
 4435|       |
 4436|    449|            "  int8_t findLSB( uint8_t);"
 4437|    449|            "i8vec2 findLSB(u8vec2);"
 4438|    449|            "i8vec3 findLSB(u8vec3);"
 4439|    449|            "i8vec4 findLSB(u8vec4);"
 4440|       |
 4441|    449|            "  int8_t findMSB(  int8_t);"
 4442|    449|            "i8vec2 findMSB(i8vec2);"
 4443|    449|            "i8vec3 findMSB(i8vec3);"
 4444|    449|            "i8vec4 findMSB(i8vec4);"
 4445|       |
 4446|    449|            "  int8_t findMSB( uint8_t);"
 4447|    449|            "i8vec2 findMSB(u8vec2);"
 4448|    449|            "i8vec3 findMSB(u8vec3);"
 4449|    449|            "i8vec4 findMSB(u8vec4);"
 4450|       |
 4451|    449|            "int16_t abs(int16_t);"
 4452|    449|            "i16vec2 abs(i16vec2);"
 4453|    449|            "i16vec3 abs(i16vec3);"
 4454|    449|            "i16vec4 abs(i16vec4);"
 4455|       |
 4456|    449|            "int16_t sign(int16_t);"
 4457|    449|            "i16vec2 sign(i16vec2);"
 4458|    449|            "i16vec3 sign(i16vec3);"
 4459|    449|            "i16vec4 sign(i16vec4);"
 4460|       |
 4461|    449|            "int16_t min(int16_t x, int16_t y);"
 4462|    449|            "i16vec2 min(i16vec2 x, int16_t y);"
 4463|    449|            "i16vec3 min(i16vec3 x, int16_t y);"
 4464|    449|            "i16vec4 min(i16vec4 x, int16_t y);"
 4465|    449|            "i16vec2 min(i16vec2 x, i16vec2 y);"
 4466|    449|            "i16vec3 min(i16vec3 x, i16vec3 y);"
 4467|    449|            "i16vec4 min(i16vec4 x, i16vec4 y);"
 4468|       |
 4469|    449|            "uint16_t min(uint16_t x, uint16_t y);"
 4470|    449|            "u16vec2 min(u16vec2 x, uint16_t y);"
 4471|    449|            "u16vec3 min(u16vec3 x, uint16_t y);"
 4472|    449|            "u16vec4 min(u16vec4 x, uint16_t y);"
 4473|    449|            "u16vec2 min(u16vec2 x, u16vec2 y);"
 4474|    449|            "u16vec3 min(u16vec3 x, u16vec3 y);"
 4475|    449|            "u16vec4 min(u16vec4 x, u16vec4 y);"
 4476|       |
 4477|    449|            "int16_t max(int16_t x, int16_t y);"
 4478|    449|            "i16vec2 max(i16vec2 x, int16_t y);"
 4479|    449|            "i16vec3 max(i16vec3 x, int16_t y);"
 4480|    449|            "i16vec4 max(i16vec4 x, int16_t y);"
 4481|    449|            "i16vec2 max(i16vec2 x, i16vec2 y);"
 4482|    449|            "i16vec3 max(i16vec3 x, i16vec3 y);"
 4483|    449|            "i16vec4 max(i16vec4 x, i16vec4 y);"
 4484|       |
 4485|    449|            "uint16_t max(uint16_t x, uint16_t y);"
 4486|    449|            "u16vec2 max(u16vec2 x, uint16_t y);"
 4487|    449|            "u16vec3 max(u16vec3 x, uint16_t y);"
 4488|    449|            "u16vec4 max(u16vec4 x, uint16_t y);"
 4489|    449|            "u16vec2 max(u16vec2 x, u16vec2 y);"
 4490|    449|            "u16vec3 max(u16vec3 x, u16vec3 y);"
 4491|    449|            "u16vec4 max(u16vec4 x, u16vec4 y);"
 4492|       |
 4493|    449|            "int16_t    clamp(int16_t x, int16_t minVal, int16_t maxVal);"
 4494|    449|            "i16vec2  clamp(i16vec2  x, int16_t minVal, int16_t maxVal);"
 4495|    449|            "i16vec3  clamp(i16vec3  x, int16_t minVal, int16_t maxVal);"
 4496|    449|            "i16vec4  clamp(i16vec4  x, int16_t minVal, int16_t maxVal);"
 4497|    449|            "i16vec2  clamp(i16vec2  x, i16vec2  minVal, i16vec2  maxVal);"
 4498|    449|            "i16vec3  clamp(i16vec3  x, i16vec3  minVal, i16vec3  maxVal);"
 4499|    449|            "i16vec4  clamp(i16vec4  x, i16vec4  minVal, i16vec4  maxVal);"
 4500|       |
 4501|    449|            "uint16_t   clamp(uint16_t x, uint16_t minVal, uint16_t maxVal);"
 4502|    449|            "u16vec2  clamp(u16vec2  x, uint16_t minVal, uint16_t maxVal);"
 4503|    449|            "u16vec3  clamp(u16vec3  x, uint16_t minVal, uint16_t maxVal);"
 4504|    449|            "u16vec4  clamp(u16vec4  x, uint16_t minVal, uint16_t maxVal);"
 4505|    449|            "u16vec2  clamp(u16vec2  x, u16vec2  minVal, u16vec2  maxVal);"
 4506|    449|            "u16vec3  clamp(u16vec3  x, u16vec3  minVal, u16vec3  maxVal);"
 4507|    449|            "u16vec4  clamp(u16vec4  x, u16vec4  minVal, u16vec4  maxVal);"
 4508|       |
 4509|    449|            "int16_t  mix(int16_t,  int16_t,  bool);"
 4510|    449|            "i16vec2  mix(i16vec2,  i16vec2,  bvec2);"
 4511|    449|            "i16vec3  mix(i16vec3,  i16vec3,  bvec3);"
 4512|    449|            "i16vec4  mix(i16vec4,  i16vec4,  bvec4);"
 4513|    449|            "uint16_t mix(uint16_t, uint16_t, bool);"
 4514|    449|            "u16vec2  mix(u16vec2,  u16vec2,  bvec2);"
 4515|    449|            "u16vec3  mix(u16vec3,  u16vec3,  bvec3);"
 4516|    449|            "u16vec4  mix(u16vec4,  u16vec4,  bvec4);"
 4517|       |
 4518|    449|            "float16_t frexp(float16_t, out int16_t);"
 4519|    449|            "f16vec2   frexp(f16vec2,   out i16vec2);"
 4520|    449|            "f16vec3   frexp(f16vec3,   out i16vec3);"
 4521|    449|            "f16vec4   frexp(f16vec4,   out i16vec4);"
 4522|       |
 4523|    449|            "float16_t ldexp(float16_t, int16_t);"
 4524|    449|            "f16vec2   ldexp(f16vec2,   i16vec2);"
 4525|    449|            "f16vec3   ldexp(f16vec3,   i16vec3);"
 4526|    449|            "f16vec4   ldexp(f16vec4,   i16vec4);"
 4527|       |
 4528|    449|            "int16_t halfBitsToInt16(float16_t);"
 4529|    449|            "i16vec2 halfBitsToInt16(f16vec2);"
 4530|    449|            "i16vec3 halfBitsToInt16(f16vec3);"
 4531|    449|            "i16vec4 halfBitsToInt16(f16vec4);"
 4532|       |
 4533|    449|            "uint16_t halfBitsToUint16(float16_t);"
 4534|    449|            "u16vec2  halfBitsToUint16(f16vec2);"
 4535|    449|            "u16vec3  halfBitsToUint16(f16vec3);"
 4536|    449|            "u16vec4  halfBitsToUint16(f16vec4);"
 4537|       |
 4538|    449|            "int16_t float16BitsToInt16(float16_t);"
 4539|    449|            "i16vec2 float16BitsToInt16(f16vec2);"
 4540|    449|            "i16vec3 float16BitsToInt16(f16vec3);"
 4541|    449|            "i16vec4 float16BitsToInt16(f16vec4);"
 4542|       |
 4543|    449|            "uint16_t float16BitsToUint16(float16_t);"
 4544|    449|            "u16vec2  float16BitsToUint16(f16vec2);"
 4545|    449|            "u16vec3  float16BitsToUint16(f16vec3);"
 4546|    449|            "u16vec4  float16BitsToUint16(f16vec4);"
 4547|       |
 4548|    449|            "float16_t int16BitsToFloat16(int16_t);"
 4549|    449|            "f16vec2   int16BitsToFloat16(i16vec2);"
 4550|    449|            "f16vec3   int16BitsToFloat16(i16vec3);"
 4551|    449|            "f16vec4   int16BitsToFloat16(i16vec4);"
 4552|       |
 4553|    449|            "float16_t uint16BitsToFloat16(uint16_t);"
 4554|    449|            "f16vec2   uint16BitsToFloat16(u16vec2);"
 4555|    449|            "f16vec3   uint16BitsToFloat16(u16vec3);"
 4556|    449|            "f16vec4   uint16BitsToFloat16(u16vec4);"
 4557|       |
 4558|    449|            "float16_t int16BitsToHalf(int16_t);"
 4559|    449|            "f16vec2   int16BitsToHalf(i16vec2);"
 4560|    449|            "f16vec3   int16BitsToHalf(i16vec3);"
 4561|    449|            "f16vec4   int16BitsToHalf(i16vec4);"
 4562|       |
 4563|    449|            "float16_t uint16BitsToHalf(uint16_t);"
 4564|    449|            "f16vec2   uint16BitsToHalf(u16vec2);"
 4565|    449|            "f16vec3   uint16BitsToHalf(u16vec3);"
 4566|    449|            "f16vec4   uint16BitsToHalf(u16vec4);"
 4567|       |
 4568|    449|            "int      packInt2x16(i16vec2);"
 4569|    449|            "uint     packUint2x16(u16vec2);"
 4570|    449|            "int64_t  packInt4x16(i16vec4);"
 4571|    449|            "uint64_t packUint4x16(u16vec4);"
 4572|    449|            "i16vec2  unpackInt2x16(int);"
 4573|    449|            "u16vec2  unpackUint2x16(uint);"
 4574|    449|            "i16vec4  unpackInt4x16(int64_t);"
 4575|    449|            "u16vec4  unpackUint4x16(uint64_t);"
 4576|       |
 4577|    449|            "bvec2 lessThan(i16vec2, i16vec2);"
 4578|    449|            "bvec3 lessThan(i16vec3, i16vec3);"
 4579|    449|            "bvec4 lessThan(i16vec4, i16vec4);"
 4580|    449|            "bvec2 lessThan(u16vec2, u16vec2);"
 4581|    449|            "bvec3 lessThan(u16vec3, u16vec3);"
 4582|    449|            "bvec4 lessThan(u16vec4, u16vec4);"
 4583|       |
 4584|    449|            "bvec2 lessThanEqual(i16vec2, i16vec2);"
 4585|    449|            "bvec3 lessThanEqual(i16vec3, i16vec3);"
 4586|    449|            "bvec4 lessThanEqual(i16vec4, i16vec4);"
 4587|    449|            "bvec2 lessThanEqual(u16vec2, u16vec2);"
 4588|    449|            "bvec3 lessThanEqual(u16vec3, u16vec3);"
 4589|    449|            "bvec4 lessThanEqual(u16vec4, u16vec4);"
 4590|       |
 4591|    449|            "bvec2 greaterThan(i16vec2, i16vec2);"
 4592|    449|            "bvec3 greaterThan(i16vec3, i16vec3);"
 4593|    449|            "bvec4 greaterThan(i16vec4, i16vec4);"
 4594|    449|            "bvec2 greaterThan(u16vec2, u16vec2);"
 4595|    449|            "bvec3 greaterThan(u16vec3, u16vec3);"
 4596|    449|            "bvec4 greaterThan(u16vec4, u16vec4);"
 4597|       |
 4598|    449|            "bvec2 greaterThanEqual(i16vec2, i16vec2);"
 4599|    449|            "bvec3 greaterThanEqual(i16vec3, i16vec3);"
 4600|    449|            "bvec4 greaterThanEqual(i16vec4, i16vec4);"
 4601|    449|            "bvec2 greaterThanEqual(u16vec2, u16vec2);"
 4602|    449|            "bvec3 greaterThanEqual(u16vec3, u16vec3);"
 4603|    449|            "bvec4 greaterThanEqual(u16vec4, u16vec4);"
 4604|       |
 4605|    449|            "bvec2 equal(i16vec2, i16vec2);"
 4606|    449|            "bvec3 equal(i16vec3, i16vec3);"
 4607|    449|            "bvec4 equal(i16vec4, i16vec4);"
 4608|    449|            "bvec2 equal(u16vec2, u16vec2);"
 4609|    449|            "bvec3 equal(u16vec3, u16vec3);"
 4610|    449|            "bvec4 equal(u16vec4, u16vec4);"
 4611|       |
 4612|    449|            "bvec2 notEqual(i16vec2, i16vec2);"
 4613|    449|            "bvec3 notEqual(i16vec3, i16vec3);"
 4614|    449|            "bvec4 notEqual(i16vec4, i16vec4);"
 4615|    449|            "bvec2 notEqual(u16vec2, u16vec2);"
 4616|    449|            "bvec3 notEqual(u16vec3, u16vec3);"
 4617|    449|            "bvec4 notEqual(u16vec4, u16vec4);"
 4618|       |
 4619|    449|            "  int16_t bitfieldExtract(  int16_t, int16_t, int16_t);"
 4620|    449|            "i16vec2 bitfieldExtract(i16vec2, int16_t, int16_t);"
 4621|    449|            "i16vec3 bitfieldExtract(i16vec3, int16_t, int16_t);"
 4622|    449|            "i16vec4 bitfieldExtract(i16vec4, int16_t, int16_t);"
 4623|       |
 4624|    449|            " uint16_t bitfieldExtract( uint16_t, int16_t, int16_t);"
 4625|    449|            "u16vec2 bitfieldExtract(u16vec2, int16_t, int16_t);"
 4626|    449|            "u16vec3 bitfieldExtract(u16vec3, int16_t, int16_t);"
 4627|    449|            "u16vec4 bitfieldExtract(u16vec4, int16_t, int16_t);"
 4628|       |
 4629|    449|            "  int16_t bitfieldInsert(  int16_t base,   int16_t, int16_t, int16_t);"
 4630|    449|            "i16vec2 bitfieldInsert(i16vec2 base, i16vec2, int16_t, int16_t);"
 4631|    449|            "i16vec3 bitfieldInsert(i16vec3 base, i16vec3, int16_t, int16_t);"
 4632|    449|            "i16vec4 bitfieldInsert(i16vec4 base, i16vec4, int16_t, int16_t);"
 4633|       |
 4634|    449|            " uint16_t bitfieldInsert( uint16_t base,  uint16_t, int16_t, int16_t);"
 4635|    449|            "u16vec2 bitfieldInsert(u16vec2 base, u16vec2, int16_t, int16_t);"
 4636|    449|            "u16vec3 bitfieldInsert(u16vec3 base, u16vec3, int16_t, int16_t);"
 4637|    449|            "u16vec4 bitfieldInsert(u16vec4 base, u16vec4, int16_t, int16_t);"
 4638|       |
 4639|    449|            "  int16_t bitCount(  int16_t);"
 4640|    449|            "i16vec2 bitCount(i16vec2);"
 4641|    449|            "i16vec3 bitCount(i16vec3);"
 4642|    449|            "i16vec4 bitCount(i16vec4);"
 4643|       |
 4644|    449|            "  int16_t bitCount( uint16_t);"
 4645|    449|            "i16vec2 bitCount(u16vec2);"
 4646|    449|            "i16vec3 bitCount(u16vec3);"
 4647|    449|            "i16vec4 bitCount(u16vec4);"
 4648|       |
 4649|    449|            "int16_t bitfieldReverse(highp int16_t);"
 4650|    449|            "i16vec2 bitfieldReverse(highp i16vec2);"
 4651|    449|            "i16vec3 bitfieldReverse(highp i16vec3);"
 4652|    449|            "i16vec4 bitfieldReverse(highp i16vec4);"
 4653|       |
 4654|    449|            "uint16_t bitfieldReverse(highp uint16_t);"
 4655|    449|            "u16vec2  bitfieldReverse(highp u16vec2);"
 4656|    449|            "u16vec3  bitfieldReverse(highp u16vec3);"
 4657|    449|            "u16vec4  bitfieldReverse(highp u16vec4);"
 4658|       |
 4659|    449|            "  int16_t findLSB(  int16_t);"
 4660|    449|            "i16vec2 findLSB(i16vec2);"
 4661|    449|            "i16vec3 findLSB(i16vec3);"
 4662|    449|            "i16vec4 findLSB(i16vec4);"
 4663|       |
 4664|    449|            "  int16_t findLSB( uint16_t);"
 4665|    449|            "i16vec2 findLSB(u16vec2);"
 4666|    449|            "i16vec3 findLSB(u16vec3);"
 4667|    449|            "i16vec4 findLSB(u16vec4);"
 4668|       |
 4669|    449|            "  int16_t findMSB(  int16_t);"
 4670|    449|            "i16vec2 findMSB(i16vec2);"
 4671|    449|            "i16vec3 findMSB(i16vec3);"
 4672|    449|            "i16vec4 findMSB(i16vec4);"
 4673|       |
 4674|    449|            "  int16_t findMSB( uint16_t);"
 4675|    449|            "i16vec2 findMSB(u16vec2);"
 4676|    449|            "i16vec3 findMSB(u16vec3);"
 4677|    449|            "i16vec4 findMSB(u16vec4);"
 4678|       |
 4679|    449|            "int16_t  pack16(i8vec2);"
 4680|    449|            "uint16_t pack16(u8vec2);"
 4681|    449|            "int32_t  pack32(i8vec4);"
 4682|    449|            "uint32_t pack32(u8vec4);"
 4683|    449|            "int32_t  pack32(i16vec2);"
 4684|    449|            "uint32_t pack32(u16vec2);"
 4685|    449|            "int64_t  pack64(i16vec4);"
 4686|    449|            "uint64_t pack64(u16vec4);"
 4687|    449|            "int64_t  pack64(i32vec2);"
 4688|    449|            "uint64_t pack64(u32vec2);"
 4689|       |
 4690|    449|            "i8vec2   unpack8(int16_t);"
 4691|    449|            "u8vec2   unpack8(uint16_t);"
 4692|    449|            "i8vec4   unpack8(int32_t);"
 4693|    449|            "u8vec4   unpack8(uint32_t);"
 4694|    449|            "i16vec2  unpack16(int32_t);"
 4695|    449|            "u16vec2  unpack16(uint32_t);"
 4696|    449|            "i16vec4  unpack16(int64_t);"
 4697|    449|            "u16vec4  unpack16(uint64_t);"
 4698|    449|            "i32vec2  unpack32(int64_t);"
 4699|    449|            "u32vec2  unpack32(uint64_t);"
 4700|       |
 4701|       |            // GL_EXT_expect_assume
 4702|    449|            "int8_t expectEXT(int8_t, int8_t);"
 4703|    449|            "i8vec2 expectEXT(i8vec2, i8vec2);"
 4704|    449|            "i8vec3 expectEXT(i8vec3, i8vec3);"
 4705|    449|            "i8vec4 expectEXT(i8vec4, i8vec4);"
 4706|       |
 4707|    449|            "uint8_t expectEXT(uint8_t, uint8_t);"
 4708|    449|            "u8vec2 expectEXT(u8vec2, u8vec2);"
 4709|    449|            "u8vec3 expectEXT(u8vec3, u8vec3);"
 4710|    449|            "u8vec4 expectEXT(u8vec4, u8vec4);"
 4711|       |
 4712|    449|            "int16_t expectEXT(int16_t, int16_t);"
 4713|    449|            "i16vec2 expectEXT(i16vec2, i16vec2);"
 4714|    449|            "i16vec3 expectEXT(i16vec3, i16vec3);"
 4715|    449|            "i16vec4 expectEXT(i16vec4, i16vec4);"
 4716|       |
 4717|    449|            "uint16_t expectEXT(uint16_t, uint16_t);"
 4718|    449|            "u16vec2 expectEXT(u16vec2, u16vec2);"
 4719|    449|            "u16vec3 expectEXT(u16vec3, u16vec3);"
 4720|    449|            "u16vec4 expectEXT(u16vec4, u16vec4);"
 4721|       |
 4722|    449|            "int64_t expectEXT(int64_t, int64_t);"
 4723|    449|            "i64vec2 expectEXT(i64vec2, i64vec2);"
 4724|    449|            "i64vec3 expectEXT(i64vec3, i64vec3);"
 4725|    449|            "i64vec4 expectEXT(i64vec4, i64vec4);"
 4726|       |
 4727|    449|            "uint64_t expectEXT(uint64_t, uint64_t);"
 4728|    449|            "u64vec2 expectEXT(u64vec2, u64vec2);"
 4729|    449|            "u64vec3 expectEXT(u64vec3, u64vec3);"
 4730|    449|            "u64vec4 expectEXT(u64vec4, u64vec4);"
 4731|    449|            "\n");
 4732|    449|    }
 4733|       |
 4734|       |    // Builtins for GL_EXT_texture_shadow_lod
 4735|  1.42k|    if ((profile == EEsProfile && version >= 300) || ((profile != EEsProfile && version >= 130))) {
  ------------------
  |  Branch (4735:10): [True: 148, False: 1.27k]
  |  Branch (4735:35): [True: 148, False: 0]
  |  Branch (4735:56): [True: 1.27k, False: 0]
  |  Branch (4735:81): [True: 1.27k, False: 0]
  ------------------
 4736|  1.42k|        commonBuiltins.append(
 4737|  1.42k|            "float texture(sampler2DArrayShadow, vec4, float);"
 4738|  1.42k|            "float texture(samplerCubeArrayShadow, vec4, float, float);"
 4739|  1.42k|            "float textureLod(sampler2DArrayShadow, vec4, float);"
 4740|  1.42k|            "float textureLod(samplerCubeShadow, vec4, float);"
 4741|  1.42k|            "float textureLod(samplerCubeArrayShadow, vec4, float, float);"
 4742|  1.42k|            "float textureLodOffset(sampler2DArrayShadow, vec4, float, ivec2);"
 4743|  1.42k|            "float textureOffset(sampler2DArrayShadow, vec4 , ivec2, float);"
 4744|  1.42k|            "\n");
 4745|  1.42k|    }
 4746|       |
 4747|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (4747:9): [True: 1.27k, False: 148]
  |  Branch (4747:34): [True: 301, False: 971]
  ------------------
 4748|    301|        stageBuiltins[EShLangFragment].append(derivativesAndControl64bits);
 4749|    301|        stageBuiltins[EShLangFragment].append(
 4750|    301|            "float64_t interpolateAtCentroid(float64_t);"
 4751|    301|            "f64vec2   interpolateAtCentroid(f64vec2);"
 4752|    301|            "f64vec3   interpolateAtCentroid(f64vec3);"
 4753|    301|            "f64vec4   interpolateAtCentroid(f64vec4);"
 4754|       |
 4755|    301|            "float64_t interpolateAtSample(float64_t, int);"
 4756|    301|            "f64vec2   interpolateAtSample(f64vec2,   int);"
 4757|    301|            "f64vec3   interpolateAtSample(f64vec3,   int);"
 4758|    301|            "f64vec4   interpolateAtSample(f64vec4,   int);"
 4759|       |
 4760|    301|            "float64_t interpolateAtOffset(float64_t, f64vec2);"
 4761|    301|            "f64vec2   interpolateAtOffset(f64vec2,   f64vec2);"
 4762|    301|            "f64vec3   interpolateAtOffset(f64vec3,   f64vec2);"
 4763|    301|            "f64vec4   interpolateAtOffset(f64vec4,   f64vec2);"
 4764|       |
 4765|    301|            "\n");
 4766|       |
 4767|    301|    }
 4768|       |
 4769|       |    // GL_EXT_expect_assume
 4770|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (4770:10): [True: 148, False: 1.27k]
  |  Branch (4770:35): [True: 148, False: 0]
  ------------------
 4771|  1.42k|         ((profile != EEsProfile && version >= 140))) {
  ------------------
  |  Branch (4771:12): [True: 1.27k, False: 0]
  |  Branch (4771:37): [True: 1.27k, False: 0]
  ------------------
 4772|  1.42k|        commonBuiltins.append(
 4773|  1.42k|            "void assumeEXT(bool);"
 4774|       |
 4775|  1.42k|            "bool expectEXT(bool, bool);"
 4776|  1.42k|            "bvec2 expectEXT(bvec2, bvec2);"
 4777|  1.42k|            "bvec3 expectEXT(bvec3, bvec3);"
 4778|  1.42k|            "bvec4 expectEXT(bvec4, bvec4);"
 4779|       |
 4780|  1.42k|            "int expectEXT(int, int);"
 4781|  1.42k|            "ivec2 expectEXT(ivec2, ivec2);"
 4782|  1.42k|            "ivec3 expectEXT(ivec3, ivec3);"
 4783|  1.42k|            "ivec4 expectEXT(ivec4, ivec4);"
 4784|       |
 4785|  1.42k|            "uint expectEXT(uint, uint);"
 4786|  1.42k|            "uvec2 expectEXT(uvec2, uvec2);"
 4787|  1.42k|            "uvec3 expectEXT(uvec3, uvec3);"
 4788|  1.42k|            "uvec4 expectEXT(uvec4, uvec4);"
 4789|  1.42k|            "\n");
 4790|  1.42k|    }
 4791|       |
 4792|       |    // QCOM_image_processing
 4793|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (4793:10): [True: 148, False: 1.27k]
  |  Branch (4793:35): [True: 148, False: 0]
  ------------------
 4794|  1.42k|         (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (4794:11): [True: 1.27k, False: 0]
  |  Branch (4794:36): [True: 1.27k, False: 0]
  ------------------
 4795|  1.42k|        commonBuiltins.append(
 4796|  1.42k|           "vec4 textureWeightedQCOM(sampler2D, vec2, sampler2DArray);"
 4797|  1.42k|           "vec4 textureWeightedQCOM(sampler2D, vec2, sampler1DArray);"
 4798|  1.42k|           "vec4 textureBoxFilterQCOM(sampler2D, vec2, vec2);"
 4799|  1.42k|           "vec4 textureBlockMatchSADQCOM(sampler2D, uvec2, sampler2D, uvec2, uvec2);"
 4800|  1.42k|           "vec4 textureBlockMatchSSDQCOM(sampler2D, uvec2, sampler2D, uvec2, uvec2);"
 4801|       |
 4802|  1.42k|           "vec4 textureBlockMatchWindowSSDQCOM(sampler2D, uvec2, sampler2D, uvec2, uvec2);"
 4803|  1.42k|           "vec4 textureBlockMatchWindowSADQCOM(sampler2D, uvec2, sampler2D, uvec2, uvec2);"
 4804|  1.42k|           "vec4 textureBlockMatchGatherSSDQCOM(sampler2D, uvec2, sampler2D, uvec2, uvec2);"
 4805|  1.42k|           "vec4 textureBlockMatchGatherSADQCOM(sampler2D, uvec2, sampler2D, uvec2, uvec2);"
 4806|  1.42k|           "\n");
 4807|  1.42k|    }
 4808|       |
 4809|       |    //============================================================================
 4810|       |    //
 4811|       |    // Prototypes for built-in functions seen by vertex shaders only.
 4812|       |    // (Except legacy lod functions, where it depends which release they are
 4813|       |    // vertex only.)
 4814|       |    //
 4815|       |    //============================================================================
 4816|       |
 4817|       |    //
 4818|       |    // Geometric Functions.
 4819|       |    //
 4820|  1.42k|    if (spvVersion.vulkan == 0 && IncludeLegacy(version, profile, spvVersion))
  ------------------
  |  Branch (4820:9): [True: 0, False: 1.42k]
  |  Branch (4820:35): [True: 0, False: 0]
  ------------------
 4821|      0|        stageBuiltins[EShLangVertex].append("vec4 ftransform();");
 4822|       |
 4823|       |    //
 4824|       |    // Original-style texture Functions with lod.
 4825|       |    //
 4826|  1.42k|    TString* s;
 4827|  1.42k|    if (version == 100)
  ------------------
  |  Branch (4827:9): [True: 0, False: 1.42k]
  ------------------
 4828|      0|        s = &stageBuiltins[EShLangVertex];
 4829|  1.42k|    else
 4830|  1.42k|        s = &commonBuiltins;
 4831|  1.42k|    if ((profile == EEsProfile && version == 100) ||
  ------------------
  |  Branch (4831:10): [True: 148, False: 1.27k]
  |  Branch (4831:35): [True: 0, False: 148]
  ------------------
 4832|  1.42k|         profile == ECompatibilityProfile ||
  ------------------
  |  Branch (4832:10): [True: 55, False: 1.36k]
  ------------------
 4833|  1.36k|        (profile == ECoreProfile && version < 420) ||
  ------------------
  |  Branch (4833:10): [True: 701, False: 664]
  |  Branch (4833:37): [True: 190, False: 511]
  ------------------
 4834|  1.17k|         profile == ENoProfile) {
  ------------------
  |  Branch (4834:10): [True: 516, False: 659]
  ------------------
 4835|    761|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (4835:13): [True: 0, False: 761]
  ------------------
 4836|      0|            s->append(
 4837|      0|                "vec4 texture2DLod(sampler2D, vec2, float);"         // GL_ARB_shader_texture_lod
 4838|      0|                "vec4 texture2DProjLod(sampler2D, vec3, float);"     // GL_ARB_shader_texture_lod
 4839|      0|                "vec4 texture2DProjLod(sampler2D, vec4, float);"     // GL_ARB_shader_texture_lod
 4840|      0|                "vec4 texture3DLod(sampler3D, vec3, float);"         // GL_ARB_shader_texture_lod  // OES_texture_3D, but caught by keyword check
 4841|      0|                "vec4 texture3DProjLod(sampler3D, vec4, float);"     // GL_ARB_shader_texture_lod  // OES_texture_3D, but caught by keyword check
 4842|      0|                "vec4 textureCubeLod(samplerCube, vec3, float);"     // GL_ARB_shader_texture_lod
 4843|       |
 4844|      0|                "\n");
 4845|      0|        }
 4846|    761|    }
 4847|  1.42k|    if ( profile == ECompatibilityProfile ||
  ------------------
  |  Branch (4847:10): [True: 55, False: 1.36k]
  ------------------
 4848|  1.36k|        (profile == ECoreProfile && version < 420) ||
  ------------------
  |  Branch (4848:10): [True: 701, False: 664]
  |  Branch (4848:37): [True: 190, False: 511]
  ------------------
 4849|  1.17k|         profile == ENoProfile) {
  ------------------
  |  Branch (4849:10): [True: 516, False: 659]
  ------------------
 4850|    761|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (4850:13): [True: 0, False: 761]
  ------------------
 4851|      0|            s->append(
 4852|      0|                "vec4 texture1DLod(sampler1D, float, float);"                          // GL_ARB_shader_texture_lod
 4853|      0|                "vec4 texture1DProjLod(sampler1D, vec2, float);"                       // GL_ARB_shader_texture_lod
 4854|      0|                "vec4 texture1DProjLod(sampler1D, vec4, float);"                       // GL_ARB_shader_texture_lod
 4855|      0|                "vec4 shadow1DLod(sampler1DShadow, vec3, float);"                      // GL_ARB_shader_texture_lod
 4856|      0|                "vec4 shadow2DLod(sampler2DShadow, vec3, float);"                      // GL_ARB_shader_texture_lod
 4857|      0|                "vec4 shadow1DProjLod(sampler1DShadow, vec4, float);"                  // GL_ARB_shader_texture_lod
 4858|      0|                "vec4 shadow2DProjLod(sampler2DShadow, vec4, float);"                  // GL_ARB_shader_texture_lod
 4859|       |
 4860|      0|                "vec4 texture1DGradARB(sampler1D, float, float, float);"               // GL_ARB_shader_texture_lod
 4861|      0|                "vec4 texture1DProjGradARB(sampler1D, vec2, float, float);"            // GL_ARB_shader_texture_lod
 4862|      0|                "vec4 texture1DProjGradARB(sampler1D, vec4, float, float);"            // GL_ARB_shader_texture_lod
 4863|      0|                "vec4 texture2DGradARB(sampler2D, vec2, vec2, vec2);"                  // GL_ARB_shader_texture_lod
 4864|      0|                "vec4 texture2DProjGradARB(sampler2D, vec3, vec2, vec2);"              // GL_ARB_shader_texture_lod
 4865|      0|                "vec4 texture2DProjGradARB(sampler2D, vec4, vec2, vec2);"              // GL_ARB_shader_texture_lod
 4866|      0|                "vec4 texture3DGradARB(sampler3D, vec3, vec3, vec3);"                  // GL_ARB_shader_texture_lod
 4867|      0|                "vec4 texture3DProjGradARB(sampler3D, vec4, vec3, vec3);"              // GL_ARB_shader_texture_lod
 4868|      0|                "vec4 textureCubeGradARB(samplerCube, vec3, vec3, vec3);"              // GL_ARB_shader_texture_lod
 4869|      0|                "vec4 shadow1DGradARB(sampler1DShadow, vec3, float, float);"           // GL_ARB_shader_texture_lod
 4870|      0|                "vec4 shadow1DProjGradARB( sampler1DShadow, vec4, float, float);"      // GL_ARB_shader_texture_lod
 4871|      0|                "vec4 shadow2DGradARB(sampler2DShadow, vec3, vec2, vec2);"             // GL_ARB_shader_texture_lod
 4872|      0|                "vec4 shadow2DProjGradARB( sampler2DShadow, vec4, vec2, vec2);"        // GL_ARB_shader_texture_lod
 4873|      0|                "vec4 texture2DRectGradARB(sampler2DRect, vec2, vec2, vec2);"          // GL_ARB_shader_texture_lod
 4874|      0|                "vec4 texture2DRectProjGradARB( sampler2DRect, vec3, vec2, vec2);"     // GL_ARB_shader_texture_lod
 4875|      0|                "vec4 texture2DRectProjGradARB( sampler2DRect, vec4, vec2, vec2);"     // GL_ARB_shader_texture_lod
 4876|      0|                "vec4 shadow2DRectGradARB( sampler2DRectShadow, vec3, vec2, vec2);"    // GL_ARB_shader_texture_lod
 4877|      0|                "vec4 shadow2DRectProjGradARB(sampler2DRectShadow, vec4, vec2, vec2);" // GL_ARB_shader_texture_lod
 4878|       |
 4879|      0|                "\n");
 4880|      0|        }
 4881|    761|    }
 4882|       |
 4883|  1.42k|    if ((profile != EEsProfile && version >= 150) ||
  ------------------
  |  Branch (4883:10): [True: 1.27k, False: 148]
  |  Branch (4883:35): [True: 756, False: 516]
  ------------------
 4884|    904|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (4884:10): [True: 148, False: 516]
  |  Branch (4884:35): [True: 148, False: 0]
  ------------------
 4885|       |        //============================================================================
 4886|       |        //
 4887|       |        // Prototypes for built-in functions seen by geometry shaders only.
 4888|       |        //
 4889|       |        //============================================================================
 4890|    904|        if (profile != EEsProfile && version >= 150) {
  ------------------
  |  Branch (4890:13): [True: 756, False: 148]
  |  Branch (4890:38): [True: 756, False: 0]
  ------------------
 4891|    756|            stageBuiltins[EShLangGeometry].append(
 4892|    756|                "void EmitStreamVertex(int);"
 4893|    756|                "void EndStreamPrimitive(int);"
 4894|    756|                );
 4895|    756|        }
 4896|    904|        stageBuiltins[EShLangGeometry].append(
 4897|    904|            "void EmitVertex();"
 4898|    904|            "void EndPrimitive();"
 4899|    904|            "\n");
 4900|    904|    }
 4901|       |
 4902|       |    //============================================================================
 4903|       |    //
 4904|       |    // Prototypes for all control functions.
 4905|       |    //
 4906|       |    //============================================================================
 4907|  1.42k|    bool esBarrier = (profile == EEsProfile && version >= 310);
  ------------------
  |  Branch (4907:23): [True: 148, False: 1.27k]
  |  Branch (4907:48): [True: 148, False: 0]
  ------------------
 4908|  1.42k|    if ((profile != EEsProfile && version >= 150) || esBarrier)
  ------------------
  |  Branch (4908:10): [True: 1.27k, False: 148]
  |  Branch (4908:35): [True: 756, False: 516]
  |  Branch (4908:54): [True: 148, False: 516]
  ------------------
 4909|    904|        stageBuiltins[EShLangTessControl].append(
 4910|    904|            "void barrier();"
 4911|    904|            );
 4912|  1.42k|    if ((profile != EEsProfile && version >= 420) || esBarrier)
  ------------------
  |  Branch (4912:10): [True: 1.27k, False: 148]
  |  Branch (4912:35): [True: 537, False: 735]
  |  Branch (4912:54): [True: 148, False: 735]
  ------------------
 4913|    685|        stageBuiltins[EShLangCompute].append(
 4914|    685|            "void barrier();"
 4915|    685|            );
 4916|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (4916:10): [True: 1.27k, False: 148]
  |  Branch (4916:35): [True: 301, False: 971]
  |  Branch (4916:55): [True: 148, False: 971]
  |  Branch (4916:80): [True: 7, False: 141]
  ------------------
 4917|    308|        stageBuiltins[EShLangMesh].append(
 4918|    308|            "void barrier();"
 4919|    308|            );
 4920|    308|        stageBuiltins[EShLangTask].append(
 4921|    308|            "void barrier();"
 4922|    308|            );
 4923|    308|    }
 4924|  1.42k|    if ((profile != EEsProfile && version >= 420) || esBarrier)
  ------------------
  |  Branch (4924:10): [True: 1.27k, False: 148]
  |  Branch (4924:35): [True: 537, False: 735]
  |  Branch (4924:54): [True: 148, False: 735]
  ------------------
 4925|    685|        stageBuiltins[EShLangCompute].append(
 4926|    685|            "void controlBarrierArrive();"
 4927|    685|            "void controlBarrierWait();"
 4928|    685|            );
 4929|  1.42k|    if ((profile != EEsProfile && version >= 130) || esBarrier)
  ------------------
  |  Branch (4929:10): [True: 1.27k, False: 148]
  |  Branch (4929:35): [True: 1.27k, False: 0]
  |  Branch (4929:54): [True: 148, False: 0]
  ------------------
 4930|  1.42k|        commonBuiltins.append(
 4931|  1.42k|            "void memoryBarrier();"
 4932|  1.42k|            );
 4933|  1.42k|    if ((profile != EEsProfile && version >= 420) || esBarrier) {
  ------------------
  |  Branch (4933:10): [True: 1.27k, False: 148]
  |  Branch (4933:35): [True: 537, False: 735]
  |  Branch (4933:54): [True: 148, False: 735]
  ------------------
 4934|    685|        commonBuiltins.append(
 4935|    685|            "void memoryBarrierBuffer();"
 4936|    685|            );
 4937|    685|        stageBuiltins[EShLangCompute].append(
 4938|    685|            "void memoryBarrierShared();"
 4939|    685|            "void groupMemoryBarrier();"
 4940|    685|            );
 4941|    685|    }
 4942|  1.42k|    if ((profile != EEsProfile && version >= 420) || esBarrier) {
  ------------------
  |  Branch (4942:10): [True: 1.27k, False: 148]
  |  Branch (4942:35): [True: 537, False: 735]
  |  Branch (4942:54): [True: 148, False: 735]
  ------------------
 4943|    685|        if (spvVersion.vulkan == 0 || spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (4943:13): [True: 0, False: 685]
  |  Branch (4943:39): [True: 0, False: 685]
  ------------------
 4944|      0|            commonBuiltins.append("void memoryBarrierAtomicCounter();");
 4945|      0|        }
 4946|    685|        commonBuiltins.append("void memoryBarrierImage();");
 4947|    685|    }
 4948|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (4948:10): [True: 1.27k, False: 148]
  |  Branch (4948:35): [True: 301, False: 971]
  |  Branch (4948:55): [True: 148, False: 971]
  |  Branch (4948:80): [True: 7, False: 141]
  ------------------
 4949|    308|        stageBuiltins[EShLangMesh].append(
 4950|    308|            "void memoryBarrierShared();"
 4951|    308|            "void groupMemoryBarrier();"
 4952|    308|        );
 4953|    308|        stageBuiltins[EShLangTask].append(
 4954|    308|            "void memoryBarrierShared();"
 4955|    308|            "void groupMemoryBarrier();"
 4956|    308|        );
 4957|    308|    }
 4958|       |
 4959|  1.42k|    commonBuiltins.append("void controlBarrier(int, int, int, int);\n"
 4960|  1.42k|                          "void memoryBarrier(int, int, int);\n");
 4961|       |
 4962|  1.42k|    commonBuiltins.append("void controlBarrierArrive(int, int, int, int);\n"
 4963|  1.42k|                          "void controlBarrierWait(int, int, int, int);\n");
 4964|       |
 4965|  1.42k|    commonBuiltins.append("void debugPrintfEXT();\n");
 4966|       |
 4967|  1.42k|    commonBuiltins.append("void abortEXT();\n");
 4968|       |
 4969|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (4969:9): [True: 1.27k, False: 148]
  |  Branch (4969:34): [True: 301, False: 971]
  ------------------
 4970|       |        // coopMatStoreNV perhaps ought to have "out" on the buf parameter, but
 4971|       |        // adding it introduces undesirable tempArgs on the stack. What we want
 4972|       |        // is more like "buf" thought of as a pointer value being an in parameter.
 4973|    301|        stageBuiltins[EShLangCompute].append(
 4974|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal float16_t[] buf, uint element, uint stride, bool colMajor);\n"
 4975|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal float[] buf, uint element, uint stride, bool colMajor);\n"
 4976|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal uint8_t[] buf, uint element, uint stride, bool colMajor);\n"
 4977|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal uint16_t[] buf, uint element, uint stride, bool colMajor);\n"
 4978|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal uint[] buf, uint element, uint stride, bool colMajor);\n"
 4979|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal uint64_t[] buf, uint element, uint stride, bool colMajor);\n"
 4980|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal uvec2[] buf, uint element, uint stride, bool colMajor);\n"
 4981|    301|            "void coopMatLoadNV(out fcoopmatNV m, volatile coherent nontemporal uvec4[] buf, uint element, uint stride, bool colMajor);\n"
 4982|       |
 4983|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal float16_t[] buf, uint element, uint stride, bool colMajor);\n"
 4984|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal float[] buf, uint element, uint stride, bool colMajor);\n"
 4985|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal float64_t[] buf, uint element, uint stride, bool colMajor);\n"
 4986|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal uint8_t[] buf, uint element, uint stride, bool colMajor);\n"
 4987|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal uint16_t[] buf, uint element, uint stride, bool colMajor);\n"
 4988|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal uint[] buf, uint element, uint stride, bool colMajor);\n"
 4989|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal uint64_t[] buf, uint element, uint stride, bool colMajor);\n"
 4990|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal uvec2[] buf, uint element, uint stride, bool colMajor);\n"
 4991|    301|            "void coopMatStoreNV(fcoopmatNV m, volatile coherent nontemporal uvec4[] buf, uint element, uint stride, bool colMajor);\n"
 4992|       |
 4993|    301|            "fcoopmatNV coopMatMulAddNV(fcoopmatNV A, fcoopmatNV B, fcoopmatNV C);\n"
 4994|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal int8_t[] buf, uint element, uint stride, bool colMajor);\n"
 4995|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal int16_t[] buf, uint element, uint stride, bool colMajor);\n"
 4996|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal int[] buf, uint element, uint stride, bool colMajor);\n"
 4997|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal int64_t[] buf, uint element, uint stride, bool colMajor);\n"
 4998|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal ivec2[] buf, uint element, uint stride, bool colMajor);\n"
 4999|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal ivec4[] buf, uint element, uint stride, bool colMajor);\n"
 5000|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal uint8_t[] buf, uint element, uint stride, bool colMajor);\n"
 5001|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal uint16_t[] buf, uint element, uint stride, bool colMajor);\n"
 5002|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal uint[] buf, uint element, uint stride, bool colMajor);\n"
 5003|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal uint64_t[] buf, uint element, uint stride, bool colMajor);\n"
 5004|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal uvec2[] buf, uint element, uint stride, bool colMajor);\n"
 5005|    301|            "void coopMatLoadNV(out icoopmatNV m, volatile coherent nontemporal uvec4[] buf, uint element, uint stride, bool colMajor);\n"
 5006|       |
 5007|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal int8_t[] buf, uint element, uint stride, bool colMajor);\n"
 5008|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal int16_t[] buf, uint element, uint stride, bool colMajor);\n"
 5009|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal int[] buf, uint element, uint stride, bool colMajor);\n"
 5010|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal int64_t[] buf, uint element, uint stride, bool colMajor);\n"
 5011|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal ivec2[] buf, uint element, uint stride, bool colMajor);\n"
 5012|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal ivec4[] buf, uint element, uint stride, bool colMajor);\n"
 5013|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal uint8_t[] buf, uint element, uint stride, bool colMajor);\n"
 5014|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal uint16_t[] buf, uint element, uint stride, bool colMajor);\n"
 5015|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal uint[] buf, uint element, uint stride, bool colMajor);\n"
 5016|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal uint64_t[] buf, uint element, uint stride, bool colMajor);\n"
 5017|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal uvec2[] buf, uint element, uint stride, bool colMajor);\n"
 5018|    301|            "void coopMatLoadNV(out ucoopmatNV m, volatile coherent nontemporal uvec4[] buf, uint element, uint stride, bool colMajor);\n"
 5019|       |
 5020|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal int8_t[] buf, uint element, uint stride, bool colMajor);\n"
 5021|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal int16_t[] buf, uint element, uint stride, bool colMajor);\n"
 5022|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal int[] buf, uint element, uint stride, bool colMajor);\n"
 5023|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal int64_t[] buf, uint element, uint stride, bool colMajor);\n"
 5024|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal ivec2[] buf, uint element, uint stride, bool colMajor);\n"
 5025|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal ivec4[] buf, uint element, uint stride, bool colMajor);\n"
 5026|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal uint8_t[] buf, uint element, uint stride, bool colMajor);\n"
 5027|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal uint16_t[] buf, uint element, uint stride, bool colMajor);\n"
 5028|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal uint[] buf, uint element, uint stride, bool colMajor);\n"
 5029|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal uint64_t[] buf, uint element, uint stride, bool colMajor);\n"
 5030|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal uvec2[] buf, uint element, uint stride, bool colMajor);\n"
 5031|    301|            "void coopMatStoreNV(icoopmatNV m, volatile coherent nontemporal uvec4[] buf, uint element, uint stride, bool colMajor);\n"
 5032|       |
 5033|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal int8_t[] buf, uint element, uint stride, bool colMajor);\n"
 5034|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal int16_t[] buf, uint element, uint stride, bool colMajor);\n"
 5035|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal int[] buf, uint element, uint stride, bool colMajor);\n"
 5036|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal int64_t[] buf, uint element, uint stride, bool colMajor);\n"
 5037|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal ivec2[] buf, uint element, uint stride, bool colMajor);\n"
 5038|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal ivec4[] buf, uint element, uint stride, bool colMajor);\n"
 5039|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal uint8_t[] buf, uint element, uint stride, bool colMajor);\n"
 5040|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal uint16_t[] buf, uint element, uint stride, bool colMajor);\n"
 5041|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal uint[] buf, uint element, uint stride, bool colMajor);\n"
 5042|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal uint64_t[] buf, uint element, uint stride, bool colMajor);\n"
 5043|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal uvec2[] buf, uint element, uint stride, bool colMajor);\n"
 5044|    301|            "void coopMatStoreNV(ucoopmatNV m, volatile coherent nontemporal uvec4[] buf, uint element, uint stride, bool colMajor);\n"
 5045|       |
 5046|    301|            "icoopmatNV coopMatMulAddNV(icoopmatNV A, icoopmatNV B, icoopmatNV C);\n"
 5047|    301|            "ucoopmatNV coopMatMulAddNV(ucoopmatNV A, ucoopmatNV B, ucoopmatNV C);\n"
 5048|    301|            );
 5049|       |
 5050|    301|        std::stringstream cooperativeMatrixFuncs;
 5051|       |
 5052|    301|        {
 5053|    301|            static const char *allTypes[] =
 5054|    301|            {
 5055|    301|                "float", "vec2", "vec4",
 5056|    301|                "float16_t", "f16vec2", "f16vec4",
 5057|    301|                "bfloat16_t", "bf16vec2", "bf16vec4",
 5058|    301|                "floate5m2_t", "fe5m2vec2", "fe5m2vec4",
 5059|    301|                "floate4m3_t", "fe4m3vec2", "fe4m3vec4",
 5060|    301|                "double", "dvec2", "dvec4",
 5061|    301|                "int8_t", "i8vec2", "i8vec4",
 5062|    301|                "int16_t", "i16vec2", "i16vec4",
 5063|    301|                "int", "ivec2", "ivec4",
 5064|    301|                "int64_t", "i64vec2", "i64vec4",
 5065|    301|                "uint8_t", "u8vec2", "u8vec4",
 5066|    301|                "uint16_t", "u16vec2", "u16vec4",
 5067|    301|                "uint", "uvec2", "uvec4",
 5068|    301|                "uint64_t", "u64vec2", "u64vec4",
 5069|    301|            };
 5070|    602|            for (auto elemTy : {"uint", "uint64_t"}) {
  ------------------
  |  Branch (5070:30): [True: 602, False: 301]
  ------------------
 5071|  25.2k|                for (auto t : allTypes) {
  ------------------
  |  Branch (5071:29): [True: 25.2k, False: 602]
  ------------------
 5072|  25.2k|                    cooperativeMatrixFuncs << "void coopMatLoad(out coopmat m, volatile coherent nontemporal " << t << "[] buf, " << elemTy << " element, uint stride, int matrixLayout);\n";
 5073|  25.2k|                    cooperativeMatrixFuncs << "void coopMatStore(coopmat m, volatile coherent nontemporal " << t << "[] buf, " << elemTy << " element, uint stride, int matrixLayout);\n";
 5074|  25.2k|                }
 5075|       |                // Just use uint8_t for buffer type, we have special matching rules to allow any conversion
 5076|    602|                cooperativeMatrixFuncs << "void coopMatLoadTensorNV(inout coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t);\n";
 5077|    602|                cooperativeMatrixFuncs << "void coopMatLoadTensorNV(inout coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t, tensorViewNV v);\n";
 5078|    602|                cooperativeMatrixFuncs << "void coopMatLoadTensorNV(inout coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t, __function f);\n";
 5079|    602|                cooperativeMatrixFuncs << "void coopMatLoadTensorNV(inout coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t, tensorViewNV v, __function f);\n";
 5080|    602|                cooperativeMatrixFuncs << "void coopMatLoadTensorNV(inout coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t, __function f, __function g);\n";
 5081|    602|                cooperativeMatrixFuncs << "void coopMatLoadTensorNV(inout coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t, tensorViewNV v, __function f, __function g);\n";
 5082|    602|                cooperativeMatrixFuncs << "void coopMatStoreTensorNV(coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t);\n";
 5083|    602|                cooperativeMatrixFuncs << "void coopMatStoreTensorNV(coopmat m, volatile coherent nontemporal uint8_t[] buf, " << elemTy << " element, tensorLayoutNV t, tensorViewNV v);\n";
 5084|    602|            }
 5085|    301|        }
 5086|       |
 5087|    301|        cooperativeMatrixFuncs <<
 5088|    301|            "coopmat coopMatMulAdd(coopmat A, coopmat B, coopmat C);\n"
 5089|    301|            "coopmat coopMatMulAdd(coopmat A, coopmat B, coopmat C, int matrixOperands);\n";
 5090|       |
 5091|    301|        commonBuiltins.append(cooperativeMatrixFuncs.str().c_str());
 5092|       |
 5093|    301|        commonBuiltins.append(
 5094|    301|            "const int gl_MatrixUseA = 0;\n"
 5095|    301|            "const int gl_MatrixUseB = 1;\n"
 5096|    301|            "const int gl_MatrixUseAccumulator = 2;\n"
 5097|    301|            "const int gl_MatrixOperandsSaturatingAccumulation = 0x10;\n"
 5098|    301|            "const int gl_CooperativeMatrixLayoutRowMajor = 0;\n"
 5099|    301|            "const int gl_CooperativeMatrixLayoutColumnMajor = 1;\n"
 5100|    301|            "const int gl_CooperativeMatrixLayoutRowBlockedInterleavedARM = 4202;\n"
 5101|    301|            "const int gl_CooperativeMatrixLayoutColumnBlockedInterleavedARM = 4203;\n"
 5102|    301|            "\n"
 5103|    301|            );
 5104|       |
 5105|    301|        commonBuiltins.append(
 5106|    301|            "void coopMatTransposeNV(out coopmat, coopmat);"
 5107|    301|            "void coopMatReduceNV(out coopmat, coopmat, int, __function);"
 5108|    301|            "void coopMatPerElementNV();"
 5109|    301|        );
 5110|       |
 5111|    301|        commonBuiltins.append(
 5112|    301|            "void coopMatTransposeEXT(out coopmat, coopmat);"
 5113|    301|            "void coopMatReduceEXT(out coopmat, coopmat, int, __function);"
 5114|    301|            "void coopMatPerElementEXT();"
 5115|    301|            "uvec2 coopMatGetCoordinateEXT(coopmat, uint index);"
 5116|    301|        );
 5117|       |
 5118|    301|        commonBuiltins.append(
 5119|    301|            "const int gl_CooperativeMatrixReduceRowNV = 0x1;\n"
 5120|    301|            "const int gl_CooperativeMatrixReduceColumnNV = 0x2;\n"
 5121|    301|            "const int gl_CooperativeMatrixReduceRowAndColumnNV = 0x3;\n"
 5122|    301|            "const int gl_CooperativeMatrixReduce2x2NV = 0x4;\n"
 5123|       |
 5124|    301|            "const int gl_CooperativeMatrixReduceRowEXT = 0x1;\n"
 5125|    301|            "const int gl_CooperativeMatrixReduceColumnEXT = 0x2;\n"
 5126|    301|            "const int gl_CooperativeMatrixReduceRowAndColumnEXT = 0x3;\n"
 5127|    301|            "const int gl_CooperativeMatrixReduce2x2EXT = 0x4;\n"
 5128|    301|            "\n"
 5129|    301|            );
 5130|       |
 5131|    301|        commonBuiltins.append(
 5132|    301|            "const int gl_CooperativeMatrixClampModeUndefinedNV = 0x0;\n"
 5133|    301|            "const int gl_CooperativeMatrixClampModeConstantNV = 0x1;\n"
 5134|    301|            "const int gl_CooperativeMatrixClampModeClampToEdgeNV = 0x2;\n"
 5135|    301|            "const int gl_CooperativeMatrixClampModeRepeatNV = 0x3;\n"
 5136|    301|            "const int gl_CooperativeMatrixClampModeMirrorRepeatNV = 0x4;\n"
 5137|    301|            "\n"
 5138|    301|            );
 5139|       |
 5140|    301|        {
 5141|    301|          std::stringstream coopMatConvFuncs;
 5142|       |
 5143|    301|          const std::string eltTypes[] = {"uint32_t", "uint", "int32_t", "int", "float32_t", "float", "float16_t"};
 5144|       |
 5145|  2.10k|          for (auto srcEltTy : eltTypes) {
  ------------------
  |  Branch (5145:30): [True: 2.10k, False: 301]
  ------------------
 5146|  14.7k|            for (auto dstEltTy : eltTypes) {
  ------------------
  |  Branch (5146:32): [True: 14.7k, False: 2.10k]
  ------------------
 5147|  14.7k|              coopMatConvFuncs << "void bitcastQCOM(" << srcEltTy.c_str() << " SrcArr[], " << dstEltTy.c_str()
 5148|  14.7k|                << " DstArr[]);\n";
 5149|  14.7k|            }
 5150|  2.10k|          }
 5151|    301|          coopMatConvFuncs << "\n";
 5152|       |
 5153|  2.40k|          for (auto eltTy : {"float32_t", "float16_t", "int8_t", "uint8_t", "uint32_t", "uint", "int32_t", "int"}) {
  ------------------
  |  Branch (5153:27): [True: 2.40k, False: 301]
  ------------------
 5154|  2.40k|            coopMatConvFuncs << "void vectorToCoopmatQCOM(" << eltTy << " SrcVec[], coopmat CM);\n";
 5155|  2.40k|            coopMatConvFuncs << "void coopmatToVectorQCOM(coopmat CM, " << eltTy << " Dstvec[]);\n";
 5156|  2.40k|          }
 5157|       |
 5158|  2.10k|          for (auto eltTy : {"uint32_t", "uint", "int32_t", "int", "float32_t", "float", "float16_t"}) {
  ------------------
  |  Branch (5158:27): [True: 2.10k, False: 301]
  ------------------
 5159|  2.10k|            coopMatConvFuncs << "void extractSubArrayQCOM(" << eltTy << " arr[], uint index, " << eltTy << " subarr[]);\n";
 5160|  2.10k|          }
 5161|       |
 5162|    301|          commonBuiltins.append(coopMatConvFuncs.str().c_str());
 5163|    301|        }
 5164|       |
 5165|    301|        commonBuiltins.append(
 5166|    301|            "tensorLayoutNV createTensorLayoutNV(uint Dim);\n"
 5167|    301|            "tensorLayoutNV createTensorLayoutNV(uint Dim, uint Mode);\n"
 5168|       |
 5169|    301|            "tensorLayoutNV setTensorLayoutBlockSizeNV(tensorLayoutNV t, uint blockSize0);\n"
 5170|    301|            "tensorLayoutNV setTensorLayoutBlockSizeNV(tensorLayoutNV t, uint blockSize0, uint blockSize1);\n"
 5171|    301|            "tensorLayoutNV setTensorLayoutBlockSizeNV(tensorLayoutNV t, uint blockSize0, uint blockSize1, uint blockSize2);\n"
 5172|    301|            "tensorLayoutNV setTensorLayoutBlockSizeNV(tensorLayoutNV t, uint blockSize0, uint blockSize1, uint blockSize2, uint blockSize3);\n"
 5173|    301|            "tensorLayoutNV setTensorLayoutBlockSizeNV(tensorLayoutNV t, uint blockSize0, uint blockSize1, uint blockSize2, uint blockSize3, uint blockSize4);\n"
 5174|       |
 5175|    301|            "tensorLayoutNV setTensorLayoutDimensionNV(tensorLayoutNV t, uint dim0);\n"
 5176|    301|            "tensorLayoutNV setTensorLayoutDimensionNV(tensorLayoutNV t, uint dim0, uint dim1);\n"
 5177|    301|            "tensorLayoutNV setTensorLayoutDimensionNV(tensorLayoutNV t, uint dim0, uint dim1, uint dim2);\n"
 5178|    301|            "tensorLayoutNV setTensorLayoutDimensionNV(tensorLayoutNV t, uint dim0, uint dim1, uint dim2, uint dim3);\n"
 5179|    301|            "tensorLayoutNV setTensorLayoutDimensionNV(tensorLayoutNV t, uint dim0, uint dim1, uint dim2, uint dim3, uint dim4);\n"
 5180|       |
 5181|    301|            "tensorLayoutNV setTensorLayoutStrideNV(tensorLayoutNV t, uint stride0);\n"
 5182|    301|            "tensorLayoutNV setTensorLayoutStrideNV(tensorLayoutNV t, uint stride0, uint stride1);\n"
 5183|    301|            "tensorLayoutNV setTensorLayoutStrideNV(tensorLayoutNV t, uint stride0, uint stride1, uint stride2);\n"
 5184|    301|            "tensorLayoutNV setTensorLayoutStrideNV(tensorLayoutNV t, uint stride0, uint stride1, uint stride2, uint stride3);\n"
 5185|    301|            "tensorLayoutNV setTensorLayoutStrideNV(tensorLayoutNV t, uint stride0, uint stride1, uint stride2, uint stride3, uint stride4);\n"
 5186|       |
 5187|    301|            "tensorLayoutNV sliceTensorLayoutNV(tensorLayoutNV t, uint offset0, uint span0);\n"
 5188|    301|            "tensorLayoutNV sliceTensorLayoutNV(tensorLayoutNV t, uint offset0, uint span0, uint offset1, uint span1);\n"
 5189|    301|            "tensorLayoutNV sliceTensorLayoutNV(tensorLayoutNV t, uint offset0, uint span0, uint offset1, uint span1, uint offset2, uint span2);\n"
 5190|    301|            "tensorLayoutNV sliceTensorLayoutNV(tensorLayoutNV t, uint offset0, uint span0, uint offset1, uint span1, uint offset2, uint span2, uint offset3, uint span3);\n"
 5191|    301|            "tensorLayoutNV sliceTensorLayoutNV(tensorLayoutNV t, uint offset0, uint span0, uint offset1, uint span1, uint offset2, uint span2, uint offset3, uint span3, uint offset4, uint span4);\n"
 5192|       |
 5193|    301|            "tensorLayoutNV setTensorLayoutClampValueNV(tensorLayoutNV t, uint value);\n"
 5194|       |
 5195|    301|            "tensorViewNV createTensorViewNV(uint Dim);\n"
 5196|    301|            "tensorViewNV createTensorViewNV(uint Dim, bool HasDimensions);\n"
 5197|    301|            "tensorViewNV createTensorViewNV(uint Dim, bool HasDimensions, uint p0);\n"
 5198|    301|            "tensorViewNV createTensorViewNV(uint Dim, bool HasDimensions, uint p0, uint p1);\n"
 5199|    301|            "tensorViewNV createTensorViewNV(uint Dim, bool HasDimensions, uint p0, uint p1, uint p2);\n"
 5200|    301|            "tensorViewNV createTensorViewNV(uint Dim, bool HasDimensions, uint p0, uint p1, uint p2, uint p3);\n"
 5201|    301|            "tensorViewNV createTensorViewNV(uint Dim, bool HasDimensions, uint p0, uint p1, uint p2, uint p3, uint p4);\n"
 5202|       |
 5203|    301|            "tensorViewNV setTensorViewDimensionsNV(tensorViewNV v, uint dim0);\n"
 5204|    301|            "tensorViewNV setTensorViewDimensionsNV(tensorViewNV v, uint dim0, uint dim1);\n"
 5205|    301|            "tensorViewNV setTensorViewDimensionsNV(tensorViewNV v, uint dim0, uint dim1, uint dim2);\n"
 5206|    301|            "tensorViewNV setTensorViewDimensionsNV(tensorViewNV v, uint dim0, uint dim1, uint dim2, uint dim3);\n"
 5207|    301|            "tensorViewNV setTensorViewDimensionsNV(tensorViewNV v, uint dim0, uint dim1, uint dim2, uint dim3, uint dim4);\n"
 5208|       |
 5209|    301|            "tensorViewNV setTensorViewStrideNV(tensorViewNV v, uint stride0);\n"
 5210|    301|            "tensorViewNV setTensorViewStrideNV(tensorViewNV v, uint stride0, uint stride1);\n"
 5211|    301|            "tensorViewNV setTensorViewStrideNV(tensorViewNV v, uint stride0, uint stride1, uint stride2);\n"
 5212|    301|            "tensorViewNV setTensorViewStrideNV(tensorViewNV v, uint stride0, uint stride1, uint stride2, uint stride3);\n"
 5213|    301|            "tensorViewNV setTensorViewStrideNV(tensorViewNV v, uint stride0, uint stride1, uint stride2, uint stride3, uint stride4);\n"
 5214|       |
 5215|    301|            "tensorViewNV setTensorViewClipNV(tensorViewNV v, uint clipRowOffset, uint clipRowSpan, uint clipColOffset, uint clipColSpan);\n"
 5216|    301|            "\n"
 5217|    301|        );
 5218|       |
 5219|       |        // GL_ARM_tensors builtins.
 5220|    301|        static const char *tensorDataTypesARM[] = {
 5221|    301|            "bool",
 5222|    301|            "int8_t", "int16_t", "int32_t", "int64_t",
 5223|    301|            "uint8_t", "uint16_t", "uint32_t", "uint64_t",
 5224|    301|            "float16_t", "float32_t", "float64_t",
 5225|    301|            "bfloat16_t", "floate5m2_t", "floate4m3_t",
 5226|    301|        };
 5227|    301|        std::ostringstream ostream;
 5228|  4.51k|        for (auto t : tensorDataTypesARM) {
  ------------------
  |  Branch (5228:21): [True: 4.51k, False: 301]
  ------------------
 5229|       |            // Scalar
 5230|  4.51k|            ostream << "void tensorReadARM(readonly tensorARM t, uint coords[], out "
 5231|  4.51k|                    << t << " data, uint tensorOperands = 0U, ...);\n";
 5232|  4.51k|            ostream << "void tensorWriteARM(writeonly tensorARM t, uint coords[], "
 5233|  4.51k|                    << t << " data, uint tensorOperands = 0U, ...);\n";
 5234|       |            // Array
 5235|  4.51k|            ostream << "void tensorReadARM(readonly tensorARM t, uint coords[], "
 5236|  4.51k|                    << t << " data[], uint tensorOperands = 0U, ...);\n";
 5237|  4.51k|            ostream << "void tensorWriteARM(writeonly tensorARM t, uint coords[], "
 5238|  4.51k|                    << t << " data[], uint tensorOperands = 0U, ...);\n";
 5239|  4.51k|        }
 5240|    301|        ostream << "uint tensorSizeARM(readonly writeonly tensorARM t, uint dim);\n";
 5241|    301|        commonBuiltins.append(ostream.str());
 5242|    301|    }
 5243|       |
 5244|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (5244:9): [True: 1.27k, False: 148]
  |  Branch (5244:34): [True: 301, False: 971]
  ------------------
 5245|    301|        const char *basicTypes[] = {
 5246|    301|            "int8_t",
 5247|    301|            "int16_t",
 5248|    301|            "int32_t",
 5249|    301|            "int64_t",
 5250|    301|            "uint8_t",
 5251|    301|            "uint16_t",
 5252|    301|            "uint32_t",
 5253|    301|            "uint64_t",
 5254|    301|            "float16_t",
 5255|    301|            "float32_t",
 5256|    301|            "float64_t",
 5257|    301|        };
 5258|    301|        std::string coopVecOffsetTypes[] = {
 5259|    301|            "uint",
 5260|    301|            "uint64_t",
 5261|    301|        };
 5262|    602|        for (auto offsetTy : coopVecOffsetTypes) {
  ------------------
  |  Branch (5262:28): [True: 602, False: 301]
  ------------------
 5263|  7.22k|            for (uint32_t i = 0; i < sizeof(basicTypes)/sizeof(basicTypes[0]); ++i) {
  ------------------
  |  Branch (5263:34): [True: 6.62k, False: 602]
  ------------------
 5264|  6.62k|                std::string func = std::string("void coopVecMatMulNV(out coopvecNV result, ") +
 5265|  6.62k|                                   std::string("coopvecNV v, ") +
 5266|  6.62k|                                   std::string("int inputInterpretation, ") +
 5267|  6.62k|                                   std::string(basicTypes[i]) + std::string("[] matrix, ") +
 5268|  6.62k|                                   offsetTy + std::string(" matrixOffset, ") +
 5269|  6.62k|                                   std::string("int matrixInterpretation, ") +
 5270|  6.62k|                                   std::string("uint M, ") +
 5271|  6.62k|                                   std::string("uint K, ") +
 5272|  6.62k|                                   std::string("int matrixLayout, ") +
 5273|  6.62k|                                   std::string("bool transpose, ") +
 5274|  6.62k|                                   std::string("uint matrixStride);\n");
 5275|  6.62k|                commonBuiltins.append(func.c_str());
 5276|       |
 5277|  79.4k|                for (uint32_t j = 0; j < sizeof(basicTypes)/sizeof(basicTypes[0]); ++j) {
  ------------------
  |  Branch (5277:38): [True: 72.8k, False: 6.62k]
  ------------------
 5278|  72.8k|                    func = std::string("void coopVecMatMulAddNV(out coopvecNV result, ") +
 5279|  72.8k|                           std::string("coopvecNV v, ") +
 5280|  72.8k|                           std::string("int inputInterpretation, ") +
 5281|  72.8k|                           std::string(basicTypes[i]) + std::string("[] matrix, ") +
 5282|  72.8k|                           offsetTy + std::string(" matrixOffset, ") +
 5283|  72.8k|                           std::string("int matrixInterpretation, ") +
 5284|  72.8k|                           std::string(basicTypes[j]) + std::string("[] bias, ") +
 5285|  72.8k|                           offsetTy + std::string(" biasOffset, ") +
 5286|  72.8k|                           std::string("int biasInterpretation, ") +
 5287|  72.8k|                           std::string("uint M, ") +
 5288|  72.8k|                           std::string("uint K, ") +
 5289|  72.8k|                           std::string("int matrixLayout, ") +
 5290|  72.8k|                           std::string("bool transpose, ") +
 5291|  72.8k|                           std::string("uint matrixStride);\n");
 5292|  72.8k|                    commonBuiltins.append(func.c_str());
 5293|  72.8k|                }
 5294|       |
 5295|  6.62k|                func = std::string("void coopVecOuterProductAccumulateNV(coopvecNV v1, coopvecNV v2, ") +
 5296|  6.62k|                       std::string(basicTypes[i]) +
 5297|  6.62k|                       std::string("[] buf, ") + offsetTy + std::string(" offset, uint stride, int matrixLayout, int matrixInterpretation);\n");
 5298|  6.62k|                commonBuiltins.append(func.c_str());
 5299|       |
 5300|  6.62k|                func = std::string("void coopVecReduceSumAccumulateNV(coopvecNV v, ") +
 5301|  6.62k|                       std::string(basicTypes[i]) +
 5302|  6.62k|                       std::string("[] buf, ") + offsetTy + std::string(" offset);\n");
 5303|  6.62k|                commonBuiltins.append(func.c_str());
 5304|  6.62k|            }
 5305|    602|        }
 5306|    301|        std::string cooperativeVectorFuncs =
 5307|    301|            "coopvecNV fma(coopvecNV, coopvecNV, coopvecNV);\n"
 5308|    301|            "coopvecNV min(coopvecNV, coopvecNV);\n"
 5309|    301|            "coopvecNV max(coopvecNV, coopvecNV);\n"
 5310|    301|            "coopvecNV step(coopvecNV, coopvecNV);\n"
 5311|    301|            "coopvecNV exp(coopvecNV);\n"
 5312|    301|            "coopvecNV log(coopvecNV);\n"
 5313|    301|            "coopvecNV tanh(coopvecNV);\n"
 5314|    301|            "coopvecNV atan(coopvecNV);\n"
 5315|    301|            "coopvecNV clamp(coopvecNV, coopvecNV, coopvecNV);\n";
 5316|       |
 5317|    301|        commonBuiltins.append(cooperativeVectorFuncs.c_str());
 5318|       |
 5319|    301|        if (profile != EEsProfile) {
  ------------------
  |  Branch (5319:13): [True: 301, False: 0]
  ------------------
 5320|    301|            std::string longVectorFuncs =
 5321|       |
 5322|       |                // manually add long vector prototypes for functions not in BaseFunctions/etc
 5323|    301|                "vector frexp(vector, vector);\n"
 5324|    301|                "vector ldexp(vector, vector);\n"
 5325|    301|                "vector fma(vector, vector, vector);\n"
 5326|       |
 5327|    301|                "vector floatBitsToInt(vector);\n"
 5328|    301|                "vector floatBitsToUint(vector);\n"
 5329|    301|                "vector intBitsToFloat(vector);\n"
 5330|    301|                "vector uintBitsToFloat(vector);\n"
 5331|    301|                "vector doubleBitsToInt64(vector);"
 5332|    301|                "vector doubleBitsToUint64(vector);"
 5333|    301|                "vector int64BitsToDouble(vector);"
 5334|    301|                "vector uint64BitsToDouble(vector);"
 5335|    301|                "vector bfloat16BitsToIntEXT(vector);"
 5336|    301|                "vector bfloat16BitsToUintEXT(vector);"
 5337|    301|                "vector intBitsToBFloat16EXT(vector);"
 5338|    301|                "vector uintBitsToBFloat16EXT(vector);"
 5339|    301|                "vector halfBitsToInt16(vector);"
 5340|    301|                "vector halfBitsToUint16(vector);"
 5341|    301|                "vector float16BitsToInt16(vector);"
 5342|    301|                "vector float16BitsToUint16(vector);"
 5343|    301|                "vector int16BitsToFloat16(vector);"
 5344|    301|                "vector uint16BitsToFloat16(vector);"
 5345|    301|                "vector int16BitsToHalf(vector);"
 5346|    301|                "vector uint16BitsToHalf(vector);"
 5347|    301|                "vector floate5m2BitsToIntEXT(vector);"
 5348|    301|                "vector floate5m2BitsToUintEXT(vector);"
 5349|    301|                "vector intBitsToFloate5m2EXT(vector);"
 5350|    301|                "vector uintBitsToFloate5m2EXT(vector);"
 5351|    301|                "vector floate4m3BitsToIntEXT(vector);"
 5352|    301|                "vector floate4m3BitsToUintEXT(vector);"
 5353|    301|                "vector intBitsToFloate4m3EXT(vector);"
 5354|    301|                "vector uintBitsToFloate4m3EXT(vector);"
 5355|       |
 5356|    301|                "vector floatue8m0BitsToIntEXT(vector);"
 5357|    301|                "vector floatue8m0BitsToUintEXT(vector);"
 5358|    301|                "vector intBitsToFloatue8m0EXT(vector);"
 5359|    301|                "vector uintBitsToFloatue8m0EXT(vector);"
 5360|    301|                "vector floatmxint8BitsToIntEXT(vector);"
 5361|    301|                "vector floatmxint8BitsToUintEXT(vector);"
 5362|    301|                "vector intBitsToFloatmxint8EXT(vector);"
 5363|    301|                "vector uintBitsToFloatmxint8EXT(vector);"
 5364|       |
 5365|    301|                "vector uaddCarry(highp vector, highp vector, out lowp vector carry);"
 5366|    301|                "vector usubBorrow(highp vector, highp vector, out lowp vector borrow);"
 5367|    301|                "void umulExtended(highp vector, highp vector, out highp vector, out highp vector);"
 5368|    301|                "void imulExtended(highp vector, highp vector, out highp vector, out highp vector);"
 5369|    301|                "vector bitfieldExtract(vector, int, int);"
 5370|    301|                "vector bitfieldInsert(vector, vector, int, int);"
 5371|    301|                "vector bitfieldReverse(highp vector);"
 5372|    301|                "vector bitCount(vector);"
 5373|    301|                "vector findLSB(vector);"
 5374|    301|                "vector findMSB(vector);"
 5375|       |
 5376|       |                // BaseFunctions overloads with a scalar parameter don't get generated in AddLongVectorBuiltin
 5377|    301|                "vector mod(vector, double);\n"
 5378|    301|                "vector min(vector, double);\n"
 5379|    301|                "vector max(vector, double);\n"
 5380|    301|                "vector clamp(vector, double, double);"
 5381|    301|                "vector mix(vector, vector,  double);"
 5382|    301|                "vector step(double, vector);"
 5383|    301|                "vector smoothstep(double, double, vector);"
 5384|    301|                "vector refract(vector, vector, double);"
 5385|       |
 5386|    301|                "vector mod(vector, float16_t);\n"
 5387|    301|                "vector min(vector, float16_t);\n"
 5388|    301|                "vector max(vector, float16_t);\n"
 5389|    301|                "vector clamp(vector, float16_t, float16_t);"
 5390|    301|                "vector mix(vector, vector,  float16_t);"
 5391|    301|                "vector step(float16_t, vector);"
 5392|    301|                "vector smoothstep(float16_t, float16_t, vector);"
 5393|    301|                "vector refract(vector, vector, float16_t);"
 5394|       |
 5395|    301|                "vector min(vector, uint64_t);\n"
 5396|    301|                "vector max(vector, uint64_t);\n"
 5397|    301|                "vector clamp(vector, uint64_t, uint64_t);"
 5398|    301|                "vector mix(vector, vector,  uint64_t);"
 5399|       |
 5400|    301|                "vector min(vector, int64_t);\n"
 5401|    301|                "vector max(vector, int64_t);\n"
 5402|    301|                "vector clamp(vector, int64_t, int64_t);"
 5403|    301|                "vector mix(vector, vector,  int64_t);"
 5404|       |
 5405|    301|                "vector min(vector, uint16_t);\n"
 5406|    301|                "vector max(vector, uint16_t);\n"
 5407|    301|                "vector clamp(vector, uint16_t, uint16_t);"
 5408|    301|                "vector mix(vector, vector,  uint16_t);"
 5409|       |
 5410|    301|                "vector min(vector, int16_t);\n"
 5411|    301|                "vector max(vector, int16_t);\n"
 5412|    301|                "vector clamp(vector, int16_t, int16_t);"
 5413|    301|                "vector mix(vector, vector,  int16_t);"
 5414|       |
 5415|    301|                "vector min(vector, uint8_t);\n"
 5416|    301|                "vector max(vector, uint8_t);\n"
 5417|    301|                "vector clamp(vector, uint8_t, uint8_t);"
 5418|    301|                "vector mix(vector, vector,  uint8_t);"
 5419|       |
 5420|    301|                "vector min(vector, int8_t);\n"
 5421|    301|                "vector max(vector, int8_t);\n"
 5422|    301|                "vector clamp(vector, int8_t, int8_t);"
 5423|    301|                "vector mix(vector, vector,  int8_t);"
 5424|       |
 5425|    301|                "vector expectEXT(vector, vector);"
 5426|       |
 5427|    301|                "vector bitcastExtractfe2m1EXT(vector, uint);"
 5428|    301|                "vector bitcastExtractfe3m2EXT(vector, uint);"
 5429|    301|                "vector bitcastExtractfe2m3EXT(vector, uint);"
 5430|    301|                ;
 5431|       |
 5432|    301|            std::string longVectorDerivativeFuncs =
 5433|    301|                "vector dFdxFine(vector);"
 5434|    301|                "vector dFdyFine(vector);"
 5435|    301|                "vector fwidthFine(vector);"
 5436|    301|                "vector dFdxCoarse(vector);"
 5437|    301|                "vector dFdyCoarse(vector);"
 5438|    301|                "vector fwidthCoarse(vector);"
 5439|       |
 5440|    301|                ;
 5441|    301|            commonBuiltins.append(longVectorFuncs.c_str());
 5442|    301|            stageBuiltins[EShLangFragment].append(longVectorDerivativeFuncs.c_str());
 5443|    301|            stageBuiltins[EShLangCompute].append(longVectorDerivativeFuncs.c_str());
 5444|    301|        }
 5445|       |
 5446|    301|        const char *scalarAndVectorTypes[] = {
 5447|    301|            "int8_t",
 5448|    301|            "int16_t",
 5449|    301|            "int32_t",
 5450|    301|            "int64_t",
 5451|    301|            "uint8_t",
 5452|    301|            "uint16_t",
 5453|    301|            "uint32_t",
 5454|    301|            "uint64_t",
 5455|    301|            "float16_t",
 5456|    301|            "float32_t",
 5457|    301|            "float64_t",
 5458|    301|            "i8vec2",
 5459|    301|            "i16vec2",
 5460|    301|            "i32vec2",
 5461|    301|            "i64vec2",
 5462|    301|            "u8vec2",
 5463|    301|            "u16vec2",
 5464|    301|            "u32vec2",
 5465|    301|            "u64vec2",
 5466|    301|            "f16vec2",
 5467|    301|            "f32vec2",
 5468|    301|            "f64vec2",
 5469|    301|            "i8vec3",
 5470|    301|            "i16vec3",
 5471|    301|            "i32vec3",
 5472|    301|            "i64vec3",
 5473|    301|            "u8vec3",
 5474|    301|            "u16vec3",
 5475|    301|            "u32vec3",
 5476|    301|            "u64vec3",
 5477|    301|            "f16vec3",
 5478|    301|            "f32vec3",
 5479|    301|            "f64vec3",
 5480|    301|            "i8vec4",
 5481|    301|            "i16vec4",
 5482|    301|            "i32vec4",
 5483|    301|            "i64vec4",
 5484|    301|            "u8vec4",
 5485|    301|            "u16vec4",
 5486|    301|            "u32vec4",
 5487|    301|            "u64vec4",
 5488|    301|            "f16vec4",
 5489|    301|            "f32vec4",
 5490|    301|            "f64vec4",
 5491|    301|        };
 5492|       |
 5493|    602|        for (auto offsetTy : coopVecOffsetTypes) {
  ------------------
  |  Branch (5493:28): [True: 602, False: 301]
  ------------------
 5494|  27.0k|            for (uint32_t i = 0; i < sizeof(scalarAndVectorTypes)/sizeof(scalarAndVectorTypes[0]); ++i) {
  ------------------
  |  Branch (5494:34): [True: 26.4k, False: 602]
  ------------------
 5495|  26.4k|                std::string load = std::string("void coopVecLoadNV(out coopvecNV v, volatile coherent ") +
 5496|  26.4k|                                   std::string(scalarAndVectorTypes[i]) + std::string("[] buf, ") + offsetTy + std::string(" offset);");
 5497|  26.4k|                std::string store = std::string("void coopVecStoreNV(coopvecNV v, volatile coherent ") +
 5498|  26.4k|                                   std::string(scalarAndVectorTypes[i]) + std::string("[] buf, ") + offsetTy + std::string(" offset);");
 5499|  26.4k|                commonBuiltins.append(load.c_str());
 5500|  26.4k|                commonBuiltins.append(store.c_str());
 5501|  26.4k|            }
 5502|    602|        }
 5503|       |
 5504|    301|        commonBuiltins.append(
 5505|    301|            "const int gl_CooperativeVectorMatrixLayoutRowMajorNV = 0;\n"
 5506|    301|            "const int gl_CooperativeVectorMatrixLayoutColumnMajorNV = 1;\n"
 5507|    301|            "const int gl_CooperativeVectorMatrixLayoutInferencingOptimalNV = 2;\n"
 5508|    301|            "const int gl_CooperativeVectorMatrixLayoutTrainingOptimalNV = 3;\n"
 5509|    301|            "\n"
 5510|    301|            );
 5511|       |
 5512|    301|        commonBuiltins.append(
 5513|    301|            "const int gl_ComponentTypeFloat16NV                = 0;\n"
 5514|    301|            "const int gl_ComponentTypeFloat32NV                = 1;\n"
 5515|    301|            "const int gl_ComponentTypeFloat64NV                = 2;\n"
 5516|    301|            "const int gl_ComponentTypeSignedInt8NV             = 3;\n"
 5517|    301|            "const int gl_ComponentTypeSignedInt16NV            = 4;\n"
 5518|    301|            "const int gl_ComponentTypeSignedInt32NV            = 5;\n"
 5519|    301|            "const int gl_ComponentTypeSignedInt64NV            = 6;\n"
 5520|    301|            "const int gl_ComponentTypeUnsignedInt8NV           = 7;\n"
 5521|    301|            "const int gl_ComponentTypeUnsignedInt16NV          = 8;\n"
 5522|    301|            "const int gl_ComponentTypeUnsignedInt32NV          = 9;\n"
 5523|    301|            "const int gl_ComponentTypeUnsignedInt64NV          = 10;\n"
 5524|    301|            "const int gl_ComponentTypeSignedInt8PackedNV       = 1000491000;\n"
 5525|    301|            "const int gl_ComponentTypeUnsignedInt8PackedNV     = 1000491001;\n"
 5526|    301|            "const int gl_ComponentTypeFloatE4M3NV              = 1000491002;\n"
 5527|    301|            "const int gl_ComponentTypeFloatE5M2NV              = 1000491003;\n"
 5528|    301|            "\n"
 5529|    301|            );
 5530|    301|    }
 5531|       |
 5532|       |    //============================================================================
 5533|       |    //
 5534|       |    // Prototypes for built-in functions seen by fragment shaders only.
 5535|       |    //
 5536|       |    //============================================================================
 5537|       |
 5538|       |    //
 5539|       |    // Original-style texture Functions with bias.
 5540|       |    //
 5541|  1.42k|    if (spvVersion.spv == 0 && (profile != EEsProfile || version == 100)) {
  ------------------
  |  Branch (5541:9): [True: 0, False: 1.42k]
  |  Branch (5541:33): [True: 0, False: 0]
  |  Branch (5541:58): [True: 0, False: 0]
  ------------------
 5542|      0|        stageBuiltins[EShLangFragment].append(
 5543|      0|            "vec4 texture2D(sampler2D, vec2, float);"
 5544|      0|            "vec4 texture2DProj(sampler2D, vec3, float);"
 5545|      0|            "vec4 texture2DProj(sampler2D, vec4, float);"
 5546|      0|            "vec4 texture3D(sampler3D, vec3, float);"        // OES_texture_3D
 5547|      0|            "vec4 texture3DProj(sampler3D, vec4, float);"    // OES_texture_3D
 5548|      0|            "vec4 textureCube(samplerCube, vec3, float);"
 5549|       |
 5550|      0|            "\n");
 5551|      0|    }
 5552|  1.42k|    if (spvVersion.spv == 0 && (profile != EEsProfile && version > 100)) {
  ------------------
  |  Branch (5552:9): [True: 0, False: 1.42k]
  |  Branch (5552:33): [True: 0, False: 0]
  |  Branch (5552:58): [True: 0, False: 0]
  ------------------
 5553|      0|        stageBuiltins[EShLangFragment].append(
 5554|      0|            "vec4 texture1D(sampler1D, float, float);"
 5555|      0|            "vec4 texture1DProj(sampler1D, vec2, float);"
 5556|      0|            "vec4 texture1DProj(sampler1D, vec4, float);"
 5557|      0|            "vec4 shadow1D(sampler1DShadow, vec3, float);"
 5558|      0|            "vec4 shadow2D(sampler2DShadow, vec3, float);"
 5559|      0|            "vec4 shadow1DProj(sampler1DShadow, vec4, float);"
 5560|      0|            "vec4 shadow2DProj(sampler2DShadow, vec4, float);"
 5561|       |
 5562|      0|            "\n");
 5563|      0|    }
 5564|  1.42k|    if (spvVersion.spv == 0 && profile == EEsProfile) {
  ------------------
  |  Branch (5564:9): [True: 0, False: 1.42k]
  |  Branch (5564:32): [True: 0, False: 0]
  ------------------
 5565|      0|        stageBuiltins[EShLangFragment].append(
 5566|      0|            "vec4 texture2DLodEXT(sampler2D, vec2, float);"      // GL_EXT_shader_texture_lod
 5567|      0|            "vec4 texture2DProjLodEXT(sampler2D, vec3, float);"  // GL_EXT_shader_texture_lod
 5568|      0|            "vec4 texture2DProjLodEXT(sampler2D, vec4, float);"  // GL_EXT_shader_texture_lod
 5569|      0|            "vec4 textureCubeLodEXT(samplerCube, vec3, float);"  // GL_EXT_shader_texture_lod
 5570|       |
 5571|      0|            "\n");
 5572|      0|    }
 5573|       |
 5574|       |    // GL_EXT_shader_tile_image
 5575|  1.42k|    if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (5575:9): [True: 1.42k, False: 0]
  ------------------
 5576|  1.42k|        stageBuiltins[EShLangFragment].append(
 5577|  1.42k|            "lowp uint stencilAttachmentReadEXT();"
 5578|  1.42k|            "lowp uint stencilAttachmentReadEXT(int);"
 5579|  1.42k|            "highp float depthAttachmentReadEXT();"
 5580|  1.42k|            "highp float depthAttachmentReadEXT(int);"
 5581|  1.42k|            "\n");
 5582|  1.42k|        stageBuiltins[EShLangFragment].append(
 5583|  1.42k|            "vec4 colorAttachmentReadEXT(attachmentEXT);"
 5584|  1.42k|            "vec4 colorAttachmentReadEXT(attachmentEXT, int);"
 5585|  1.42k|            "ivec4 colorAttachmentReadEXT(iattachmentEXT);"
 5586|  1.42k|            "ivec4 colorAttachmentReadEXT(iattachmentEXT, int);"
 5587|  1.42k|            "uvec4 colorAttachmentReadEXT(uattachmentEXT);"
 5588|  1.42k|            "uvec4 colorAttachmentReadEXT(uattachmentEXT, int);"
 5589|  1.42k|            "\n");
 5590|  1.42k|    }
 5591|       |
 5592|       |    // GL_ARB_derivative_control
 5593|  1.42k|    if (profile != EEsProfile && version >= 400) {
  ------------------
  |  Branch (5593:9): [True: 1.27k, False: 148]
  |  Branch (5593:34): [True: 569, False: 703]
  ------------------
 5594|    569|        stageBuiltins[EShLangFragment].append(derivativeControls);
 5595|    569|        stageBuiltins[EShLangFragment].append("\n");
 5596|    569|    }
 5597|       |
 5598|       |    // GL_OES_shader_multisample_interpolation
 5599|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (5599:10): [True: 148, False: 1.27k]
  |  Branch (5599:35): [True: 148, False: 0]
  ------------------
 5600|  1.27k|        (profile != EEsProfile && version >= 150)) { // NV_gpu_shader5
  ------------------
  |  Branch (5600:10): [True: 1.27k, False: 0]
  |  Branch (5600:35): [True: 756, False: 516]
  ------------------
 5601|    904|        stageBuiltins[EShLangFragment].append(
 5602|    904|            "float interpolateAtCentroid(float);"
 5603|    904|            "vec2  interpolateAtCentroid(vec2);"
 5604|    904|            "vec3  interpolateAtCentroid(vec3);"
 5605|    904|            "vec4  interpolateAtCentroid(vec4);"
 5606|       |
 5607|    904|            "float interpolateAtSample(float, int);"
 5608|    904|            "vec2  interpolateAtSample(vec2,  int);"
 5609|    904|            "vec3  interpolateAtSample(vec3,  int);"
 5610|    904|            "vec4  interpolateAtSample(vec4,  int);"
 5611|       |
 5612|    904|            "float interpolateAtOffset(float, vec2);"
 5613|    904|            "vec2  interpolateAtOffset(vec2,  vec2);"
 5614|    904|            "vec3  interpolateAtOffset(vec3,  vec2);"
 5615|    904|            "vec4  interpolateAtOffset(vec4,  vec2);"
 5616|       |
 5617|    904|            "\n");
 5618|    904|    }
 5619|       |
 5620|  1.42k|    stageBuiltins[EShLangFragment].append(
 5621|  1.42k|        "void beginInvocationInterlockARB(void);"
 5622|  1.42k|        "void endInvocationInterlockARB(void);");
 5623|       |
 5624|  1.42k|    stageBuiltins[EShLangFragment].append(
 5625|  1.42k|        "bool helperInvocationEXT();"
 5626|  1.42k|        "\n");
 5627|       |
 5628|       |    // GL_AMD_shader_explicit_vertex_parameter
 5629|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (5629:9): [True: 1.27k, False: 148]
  |  Branch (5629:34): [True: 301, False: 971]
  ------------------
 5630|    301|        stageBuiltins[EShLangFragment].append(
 5631|    301|            "float interpolateAtVertexAMD(float, uint);"
 5632|    301|            "vec2  interpolateAtVertexAMD(vec2,  uint);"
 5633|    301|            "vec3  interpolateAtVertexAMD(vec3,  uint);"
 5634|    301|            "vec4  interpolateAtVertexAMD(vec4,  uint);"
 5635|       |
 5636|    301|            "int   interpolateAtVertexAMD(int,   uint);"
 5637|    301|            "ivec2 interpolateAtVertexAMD(ivec2, uint);"
 5638|    301|            "ivec3 interpolateAtVertexAMD(ivec3, uint);"
 5639|    301|            "ivec4 interpolateAtVertexAMD(ivec4, uint);"
 5640|       |
 5641|    301|            "uint  interpolateAtVertexAMD(uint,  uint);"
 5642|    301|            "uvec2 interpolateAtVertexAMD(uvec2, uint);"
 5643|    301|            "uvec3 interpolateAtVertexAMD(uvec3, uint);"
 5644|    301|            "uvec4 interpolateAtVertexAMD(uvec4, uint);"
 5645|       |
 5646|    301|            "float16_t interpolateAtVertexAMD(float16_t, uint);"
 5647|    301|            "f16vec2   interpolateAtVertexAMD(f16vec2,   uint);"
 5648|    301|            "f16vec3   interpolateAtVertexAMD(f16vec3,   uint);"
 5649|    301|            "f16vec4   interpolateAtVertexAMD(f16vec4,   uint);"
 5650|       |
 5651|    301|            "\n");
 5652|    301|    }
 5653|       |
 5654|       |    // GL_AMD_gpu_shader_half_float
 5655|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (5655:9): [True: 1.27k, False: 148]
  |  Branch (5655:34): [True: 301, False: 971]
  ------------------
 5656|    301|        stageBuiltins[EShLangFragment].append(derivativesAndControl16bits);
 5657|    301|        stageBuiltins[EShLangFragment].append("\n");
 5658|       |
 5659|    301|        stageBuiltins[EShLangFragment].append(
 5660|    301|            "float16_t interpolateAtCentroid(float16_t);"
 5661|    301|            "f16vec2   interpolateAtCentroid(f16vec2);"
 5662|    301|            "f16vec3   interpolateAtCentroid(f16vec3);"
 5663|    301|            "f16vec4   interpolateAtCentroid(f16vec4);"
 5664|       |
 5665|    301|            "float16_t interpolateAtSample(float16_t, int);"
 5666|    301|            "f16vec2   interpolateAtSample(f16vec2,   int);"
 5667|    301|            "f16vec3   interpolateAtSample(f16vec3,   int);"
 5668|    301|            "f16vec4   interpolateAtSample(f16vec4,   int);"
 5669|       |
 5670|    301|            "float16_t interpolateAtOffset(float16_t, f16vec2);"
 5671|    301|            "f16vec2   interpolateAtOffset(f16vec2,   f16vec2);"
 5672|    301|            "f16vec3   interpolateAtOffset(f16vec3,   f16vec2);"
 5673|    301|            "f16vec4   interpolateAtOffset(f16vec4,   f16vec2);"
 5674|       |
 5675|    301|            "\n");
 5676|    301|    }
 5677|       |
 5678|       |    // GL_ARB_shader_clock& GL_EXT_shader_realtime_clock
 5679|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (5679:9): [True: 1.27k, False: 148]
  |  Branch (5679:34): [True: 301, False: 971]
  ------------------
 5680|    301|        commonBuiltins.append(
 5681|    301|            "uvec2 clock2x32ARB();"
 5682|    301|            "uint64_t clockARB();"
 5683|    301|            "uvec2 clockRealtime2x32EXT();"
 5684|    301|            "uint64_t clockRealtimeEXT();"
 5685|    301|            "\n");
 5686|    301|    }
 5687|       |
 5688|       |    // GL_AMD_shader_fragment_mask
 5689|  1.42k|    if (profile != EEsProfile && version >= 450 && spvVersion.vulkan > 0) {
  ------------------
  |  Branch (5689:9): [True: 1.27k, False: 148]
  |  Branch (5689:34): [True: 301, False: 971]
  |  Branch (5689:52): [True: 301, False: 0]
  ------------------
 5690|    301|        stageBuiltins[EShLangFragment].append(
 5691|    301|            "uint fragmentMaskFetchAMD(subpassInputMS);"
 5692|    301|            "uint fragmentMaskFetchAMD(isubpassInputMS);"
 5693|    301|            "uint fragmentMaskFetchAMD(usubpassInputMS);"
 5694|       |
 5695|    301|            "vec4  fragmentFetchAMD(subpassInputMS,  uint);"
 5696|    301|            "ivec4 fragmentFetchAMD(isubpassInputMS, uint);"
 5697|    301|            "uvec4 fragmentFetchAMD(usubpassInputMS, uint);"
 5698|       |
 5699|    301|            "\n");
 5700|    301|    }
 5701|       |
 5702|       |    // Builtins for GL_NV_ray_tracing/GL_NV_ray_tracing_motion_blur/GL_EXT_ray_tracing/GL_EXT_ray_query/
 5703|       |    // GL_NV_shader_invocation_reorder/GL_KHR_ray_tracing_position_Fetch
 5704|  1.42k|    if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (5704:9): [True: 1.27k, False: 148]
  |  Branch (5704:34): [True: 45, False: 1.22k]
  ------------------
 5705|     45|         commonBuiltins.append("void rayQueryInitializeEXT(rayQueryEXT, accelerationStructureEXT, uint, uint, vec3, float, vec3, float);"
 5706|     45|            "void rayQueryTerminateEXT(rayQueryEXT);"
 5707|     45|            "void rayQueryGenerateIntersectionEXT(rayQueryEXT, float);"
 5708|     45|            "void rayQueryConfirmIntersectionEXT(rayQueryEXT);"
 5709|     45|            "bool rayQueryProceedEXT(rayQueryEXT);"
 5710|     45|            "uint rayQueryGetIntersectionTypeEXT(rayQueryEXT, bool);"
 5711|     45|            "float rayQueryGetRayTMinEXT(rayQueryEXT);"
 5712|     45|            "uint rayQueryGetRayFlagsEXT(rayQueryEXT);"
 5713|     45|            "vec3 rayQueryGetWorldRayOriginEXT(rayQueryEXT);"
 5714|     45|            "vec3 rayQueryGetWorldRayDirectionEXT(rayQueryEXT);"
 5715|     45|            "float rayQueryGetIntersectionTEXT(rayQueryEXT, bool);"
 5716|     45|            "int rayQueryGetIntersectionInstanceCustomIndexEXT(rayQueryEXT, bool);"
 5717|     45|            "int rayQueryGetIntersectionInstanceIdEXT(rayQueryEXT, bool);"
 5718|     45|            "uint rayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetEXT(rayQueryEXT, bool);"
 5719|     45|            "int rayQueryGetIntersectionGeometryIndexEXT(rayQueryEXT, bool);"
 5720|     45|            "int rayQueryGetIntersectionPrimitiveIndexEXT(rayQueryEXT, bool);"
 5721|     45|            "vec2 rayQueryGetIntersectionBarycentricsEXT(rayQueryEXT, bool);"
 5722|     45|            "bool rayQueryGetIntersectionFrontFaceEXT(rayQueryEXT, bool);"
 5723|     45|            "bool rayQueryGetIntersectionCandidateAABBOpaqueEXT(rayQueryEXT);"
 5724|     45|            "vec3 rayQueryGetIntersectionObjectRayDirectionEXT(rayQueryEXT, bool);"
 5725|     45|            "vec3 rayQueryGetIntersectionObjectRayOriginEXT(rayQueryEXT, bool);"
 5726|     45|            "mat4x3 rayQueryGetIntersectionObjectToWorldEXT(rayQueryEXT, bool);"
 5727|     45|            "mat4x3 rayQueryGetIntersectionWorldToObjectEXT(rayQueryEXT, bool);"
 5728|     45|            "void rayQueryGetIntersectionTriangleVertexPositionsEXT(rayQueryEXT, bool, out vec3[3]);"
 5729|     45|            "int rayQueryGetIntersectionClusterIdNV(rayQueryEXT, bool);"
 5730|     45|            "vec3 rayQueryGetIntersectionSpherePositionNV(rayQueryEXT, bool);"
 5731|     45|            "float rayQueryGetIntersectionSphereRadiusNV(rayQueryEXT, bool);"
 5732|     45|            "float rayQueryGetIntersectionLSSHitValueNV(rayQueryEXT, bool);"
 5733|     45|            "void rayQueryGetIntersectionLSSPositionsNV(rayQueryEXT, bool, out vec3[2]);"
 5734|     45|            "void rayQueryGetIntersectionLSSRadiiNV(rayQueryEXT, bool, out float[2]);"
 5735|     45|            "bool rayQueryIsSphereHitNV(rayQueryEXT, bool);"
 5736|     45|            "bool rayQueryIsLSSHitNV(rayQueryEXT, bool);"
 5737|     45|            "\n");
 5738|       |
 5739|     45|        stageBuiltins[EShLangRayGen].append(
 5740|     45|            "void traceNV(accelerationStructureNV,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5741|     45|            "void traceRayMotionNV(accelerationStructureNV,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5742|     45|            "void traceRayEXT(accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5743|     45|            "void executeCallableNV(uint, int);"
 5744|     45|            "void executeCallableEXT(uint, int);"
 5745|     45|            "void hitObjectTraceRayNV(hitObjectNV,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5746|     45|            "void hitObjectTraceRayMotionNV(hitObjectNV,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5747|     45|            "void hitObjectRecordHitNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,uint,vec3,float,vec3,float,int);"
 5748|     45|            "void hitObjectRecordHitMotionNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5749|     45|            "void hitObjectRecordHitWithIndexNV(hitObjectNV, accelerationStructureEXT,int,int,int,uint,uint,vec3,float,vec3,float,int);"
 5750|     45|            "void hitObjectRecordHitWithIndexMotionNV(hitObjectNV, accelerationStructureEXT,int,int,int,uint,uint,vec3,float,vec3,float,float,int);"
 5751|     45|            "void hitObjectRecordMissNV(hitObjectNV,uint,vec3,float,vec3,float);"
 5752|     45|            "void hitObjectRecordMissMotionNV(hitObjectNV,uint,vec3,float,vec3,float,float);"
 5753|     45|            "void hitObjectRecordEmptyNV(hitObjectNV);"
 5754|     45|            "void hitObjectExecuteShaderNV(hitObjectNV,int);"
 5755|     45|            "bool hitObjectIsEmptyNV(hitObjectNV);"
 5756|     45|            "bool hitObjectIsMissNV(hitObjectNV);"
 5757|     45|            "bool hitObjectIsHitNV(hitObjectNV);"
 5758|     45|            "float hitObjectGetRayTMinNV(hitObjectNV);"
 5759|     45|            "float hitObjectGetRayTMaxNV(hitObjectNV);"
 5760|     45|            "vec3 hitObjectGetWorldRayOriginNV(hitObjectNV);"
 5761|     45|            "vec3 hitObjectGetWorldRayDirectionNV(hitObjectNV);"
 5762|     45|            "vec3 hitObjectGetObjectRayOriginNV(hitObjectNV);"
 5763|     45|            "vec3 hitObjectGetObjectRayDirectionNV(hitObjectNV);"
 5764|     45|            "mat4x3 hitObjectGetWorldToObjectNV(hitObjectNV);"
 5765|     45|            "mat4x3 hitObjectGetObjectToWorldNV(hitObjectNV);"
 5766|     45|            "int hitObjectGetInstanceCustomIndexNV(hitObjectNV);"
 5767|     45|            "int hitObjectGetInstanceIdNV(hitObjectNV);"
 5768|     45|            "int hitObjectGetGeometryIndexNV(hitObjectNV);"
 5769|     45|            "int hitObjectGetPrimitiveIndexNV(hitObjectNV);"
 5770|     45|            "uint hitObjectGetHitKindNV(hitObjectNV);"
 5771|     45|            "void hitObjectGetAttributesNV(hitObjectNV,int);"
 5772|     45|            "float hitObjectGetCurrentTimeNV(hitObjectNV);"
 5773|     45|            "uint hitObjectGetShaderBindingTableRecordIndexNV(hitObjectNV);"
 5774|     45|            "uvec2 hitObjectGetShaderRecordBufferHandleNV(hitObjectNV);"
 5775|     45|            "int hitObjectGetClusterIdNV(hitObjectNV);"
 5776|     45|            "void reorderThreadNV(uint, uint);"
 5777|     45|            "void reorderThreadNV(hitObjectNV);"
 5778|     45|            "void reorderThreadNV(hitObjectNV, uint, uint);"
 5779|     45|            "vec3 fetchMicroTriangleVertexPositionNV(accelerationStructureEXT, int, int, int, ivec2);"
 5780|     45|            "vec2 fetchMicroTriangleVertexBarycentricNV(accelerationStructureEXT, int, int, int, ivec2);"
 5781|     45|            "vec3 hitObjectGetSpherePositionNV(hitObjectNV);"
 5782|     45|            "float hitObjectGetSphereRadiusNV(hitObjectNV);"
 5783|     45|            "void hitObjectGetLSSPositionsNV(hitObjectNV, out vec3[2]);"
 5784|     45|            "void hitObjectGetLSSRadiiNV(hitObjectNV, out float[2]);"
 5785|     45|            "bool hitObjectIsSphereHitNV(hitObjectNV);"
 5786|     45|            "bool hitObjectIsLSSHitNV(hitObjectNV);"
 5787|     45|            "void hitObjectTraceRayEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5788|     45|            "void hitObjectTraceRayMotionEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5789|     45|            "void hitObjectRecordMissEXT(hitObjectEXT,uint,uint,vec3,float,vec3,float);"
 5790|     45|            "void hitObjectRecordMissMotionEXT(hitObjectEXT,uint,uint,vec3,float,vec3,float,float);"
 5791|     45|            "void hitObjectRecordEmptyEXT(hitObjectEXT);"
 5792|     45|            "void hitObjectExecuteShaderEXT(hitObjectEXT,int);"
 5793|     45|            "bool hitObjectIsEmptyEXT(hitObjectEXT);"
 5794|     45|            "bool hitObjectIsMissEXT(hitObjectEXT);"
 5795|     45|            "bool hitObjectIsHitEXT(hitObjectEXT);"
 5796|     45|            "float hitObjectGetRayTMinEXT(hitObjectEXT);"
 5797|     45|            "float hitObjectGetRayTMaxEXT(hitObjectEXT);"
 5798|     45|            "uint hitObjectGetRayFlagsEXT(hitObjectEXT);"
 5799|     45|            "vec3 hitObjectGetWorldRayOriginEXT(hitObjectEXT);"
 5800|     45|            "vec3 hitObjectGetWorldRayDirectionEXT(hitObjectEXT);"
 5801|     45|            "vec3 hitObjectGetObjectRayOriginEXT(hitObjectEXT);"
 5802|     45|            "vec3 hitObjectGetObjectRayDirectionEXT(hitObjectEXT);"
 5803|     45|            "mat4x3 hitObjectGetWorldToObjectEXT(hitObjectEXT);"
 5804|     45|            "mat4x3 hitObjectGetObjectToWorldEXT(hitObjectEXT);"
 5805|     45|            "int hitObjectGetInstanceCustomIndexEXT(hitObjectEXT);"
 5806|     45|            "int hitObjectGetInstanceIdEXT(hitObjectEXT);"
 5807|     45|            "int hitObjectGetGeometryIndexEXT(hitObjectEXT);"
 5808|     45|            "int hitObjectGetPrimitiveIndexEXT(hitObjectEXT);"
 5809|     45|            "uint hitObjectGetHitKindEXT(hitObjectEXT);"
 5810|     45|            "void hitObjectGetAttributesEXT(hitObjectEXT,int);"
 5811|     45|            "float hitObjectGetCurrentTimeEXT(hitObjectEXT);"
 5812|     45|            "uint hitObjectGetShaderBindingTableRecordIndexEXT(hitObjectEXT);"
 5813|     45|            "uvec2 hitObjectGetShaderRecordBufferHandleEXT(hitObjectEXT);"
 5814|     45|            "void hitObjectSetShaderBindingTableRecordIndexEXT(hitObjectEXT, uint);"
 5815|     45|            "void hitObjectReorderExecuteEXT(hitObjectEXT,int);"
 5816|     45|            "void hitObjectReorderExecuteEXT(hitObjectEXT,uint,uint,int);"
 5817|     45|            "void hitObjectTraceReorderExecuteEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5818|     45|            "void hitObjectTraceReorderExecuteEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,uint,uint,int);"
 5819|     45|            "void hitObjectTraceMotionReorderExecuteEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5820|     45|            "void hitObjectTraceMotionReorderExecuteEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,uint,uint,int);"
 5821|     45|            "void hitObjectRecordFromQueryEXT(hitObjectEXT, rayQueryEXT, uint, int);"
 5822|     45|            "void hitObjectRecordFromQueryEXT(hitObjectEXT, rayQueryEXT, uint, int, uint);"
 5823|     45|            "void hitObjectGetIntersectionTriangleVertexPositionsEXT(hitObjectEXT, out vec3[3]);"
 5824|     45|            "void reorderThreadEXT(uint, uint);"
 5825|     45|            "void reorderThreadEXT(hitObjectEXT);"
 5826|     45|            "void reorderThreadEXT(hitObjectEXT, uint, uint);"
 5827|     45|            "\n");
 5828|     45|        stageBuiltins[EShLangIntersect].append(
 5829|     45|            "bool reportIntersectionNV(float, uint);"
 5830|     45|            "bool reportIntersectionEXT(float, uint);"
 5831|     45|            "\n");
 5832|     45|        stageBuiltins[EShLangAnyHit].append(
 5833|     45|            "void ignoreIntersectionNV();"
 5834|     45|            "void terminateRayNV();"
 5835|     45|            "\n");
 5836|     45|        stageBuiltins[EShLangClosestHit].append(
 5837|     45|            "void traceNV(accelerationStructureNV,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5838|     45|            "void traceRayMotionNV(accelerationStructureNV,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5839|     45|            "void traceRayEXT(accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5840|     45|            "void executeCallableNV(uint, int);"
 5841|     45|            "void executeCallableEXT(uint, int);"
 5842|     45|            "void hitObjectTraceRayNV(hitObjectNV,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5843|     45|            "void hitObjectTraceRayMotionNV(hitObjectNV,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5844|     45|            "void hitObjectRecordHitNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,uint,vec3,float,vec3,float,int);"
 5845|     45|            "void hitObjectRecordHitMotionNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5846|     45|            "void hitObjectRecordHitWithIndexNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,vec3,float,vec3,float,int);"
 5847|     45|            "void hitObjectRecordHitWithIndexMotionNV(hitObjectNV, accelerationStructureEXT,int,int,int,uint,uint,vec3,float,vec3,float,float,int);"
 5848|     45|            "void hitObjectRecordMissNV(hitObjectNV, uint, vec3, float, vec3, float);"
 5849|     45|            "void hitObjectRecordMissMotionNV(hitObjectNV,uint,vec3,float,vec3,float,float);"
 5850|     45|            "void hitObjectRecordEmptyNV(hitObjectNV);"
 5851|     45|            "void hitObjectExecuteShaderNV(hitObjectNV, int);"
 5852|     45|            "bool hitObjectIsEmptyNV(hitObjectNV);"
 5853|     45|            "bool hitObjectIsMissNV(hitObjectNV);"
 5854|     45|            "bool hitObjectIsHitNV(hitObjectNV);"
 5855|     45|            "float hitObjectGetRayTMinNV(hitObjectNV);"
 5856|     45|            "float hitObjectGetRayTMaxNV(hitObjectNV);"
 5857|     45|            "vec3 hitObjectGetWorldRayOriginNV(hitObjectNV);"
 5858|     45|            "vec3 hitObjectGetWorldRayDirectionNV(hitObjectNV);"
 5859|     45|            "vec3 hitObjectGetObjectRayOriginNV(hitObjectNV);"
 5860|     45|            "vec3 hitObjectGetObjectRayDirectionNV(hitObjectNV);"
 5861|     45|            "mat4x3 hitObjectGetWorldToObjectNV(hitObjectNV);"
 5862|     45|            "mat4x3 hitObjectGetObjectToWorldNV(hitObjectNV);"
 5863|     45|            "int hitObjectGetInstanceCustomIndexNV(hitObjectNV);"
 5864|     45|            "int hitObjectGetInstanceIdNV(hitObjectNV);"
 5865|     45|            "int hitObjectGetGeometryIndexNV(hitObjectNV);"
 5866|     45|            "int hitObjectGetPrimitiveIndexNV(hitObjectNV);"
 5867|     45|            "uint hitObjectGetHitKindNV(hitObjectNV);"
 5868|     45|            "void hitObjectGetAttributesNV(hitObjectNV,int);"
 5869|     45|            "float hitObjectGetCurrentTimeNV(hitObjectNV);"
 5870|     45|            "uint hitObjectGetShaderBindingTableRecordIndexNV(hitObjectNV);"
 5871|     45|            "uvec2 hitObjectGetShaderRecordBufferHandleNV(hitObjectNV);"
 5872|     45|            "int hitObjectGetClusterIdNV(hitObjectNV);"
 5873|     45|            "vec3 hitObjectGetSpherePositionNV(hitObjectNV);"
 5874|     45|            "float hitObjectGetSphereRadiusNV(hitObjectNV);"
 5875|     45|            "void hitObjectGetLSSPositionsNV(hitObjectNV, out vec3[2]);"
 5876|     45|            "void hitObjectGetLSSRadiiNV(hitObjectNV, out float[2]);"
 5877|     45|            "bool hitObjectIsSphereHitNV(hitObjectNV);"
 5878|     45|            "bool hitObjectIsLSSHitNV(hitObjectNV);"
 5879|     45|            "void hitObjectTraceRayEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5880|     45|            "void hitObjectTraceRayMotionEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5881|     45|            "void hitObjectRecordMissEXT(hitObjectEXT,uint,uint,vec3,float,vec3,float);"
 5882|     45|            "void hitObjectRecordMissMotionEXT(hitObjectEXT,uint,uint,vec3,float,vec3,float,float);"
 5883|     45|            "void hitObjectRecordEmptyEXT(hitObjectEXT);"
 5884|     45|            "void hitObjectExecuteShaderEXT(hitObjectEXT,int);"
 5885|     45|            "bool hitObjectIsEmptyEXT(hitObjectEXT);"
 5886|     45|            "bool hitObjectIsMissEXT(hitObjectEXT);"
 5887|     45|            "bool hitObjectIsHitEXT(hitObjectEXT);"
 5888|     45|            "float hitObjectGetRayTMinEXT(hitObjectEXT);"
 5889|     45|            "float hitObjectGetRayTMaxEXT(hitObjectEXT);"
 5890|     45|            "uint hitObjectGetRayFlagsEXT(hitObjectEXT);"
 5891|     45|            "vec3 hitObjectGetWorldRayOriginEXT(hitObjectEXT);"
 5892|     45|            "vec3 hitObjectGetWorldRayDirectionEXT(hitObjectEXT);"
 5893|     45|            "vec3 hitObjectGetObjectRayOriginEXT(hitObjectEXT);"
 5894|     45|            "vec3 hitObjectGetObjectRayDirectionEXT(hitObjectEXT);"
 5895|     45|            "mat4x3 hitObjectGetWorldToObjectEXT(hitObjectEXT);"
 5896|     45|            "mat4x3 hitObjectGetObjectToWorldEXT(hitObjectEXT);"
 5897|     45|            "int hitObjectGetInstanceCustomIndexEXT(hitObjectEXT);"
 5898|     45|            "int hitObjectGetInstanceIdEXT(hitObjectEXT);"
 5899|     45|            "int hitObjectGetGeometryIndexEXT(hitObjectEXT);"
 5900|     45|            "int hitObjectGetPrimitiveIndexEXT(hitObjectEXT);"
 5901|     45|            "uint hitObjectGetHitKindEXT(hitObjectEXT);"
 5902|     45|            "void hitObjectGetAttributesEXT(hitObjectEXT,int);"
 5903|     45|            "float hitObjectGetCurrentTimeEXT(hitObjectEXT);"
 5904|     45|            "uint hitObjectGetShaderBindingTableRecordIndexEXT(hitObjectEXT);"
 5905|     45|            "uvec2 hitObjectGetShaderRecordBufferHandleEXT(hitObjectEXT);"
 5906|     45|            "void hitObjectSetShaderBindingTableRecordIndexEXT(hitObjectEXT, uint);"
 5907|     45|            "void hitObjectRecordFromQueryEXT(hitObjectEXT, rayQueryEXT,uint, int);"
 5908|     45|            "void hitObjectRecordFromQueryEXT(hitObjectEXT, rayQueryEXT,uint, int, uint);"
 5909|     45|            "void hitObjectGetIntersectionTriangleVertexPositionsEXT(hitObjectEXT, out vec3[3]);"
 5910|     45|            "\n");
 5911|     45|        stageBuiltins[EShLangMiss].append(
 5912|     45|            "void traceNV(accelerationStructureNV,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5913|     45|            "void traceRayMotionNV(accelerationStructureNV,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5914|     45|            "void traceRayEXT(accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5915|     45|            "void executeCallableNV(uint, int);"
 5916|     45|            "void executeCallableEXT(uint, int);"
 5917|     45|            "void hitObjectTraceRayNV(hitObjectNV,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5918|     45|            "void hitObjectTraceRayMotionNV(hitObjectNV,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5919|     45|            "void hitObjectRecordHitNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,uint,vec3,float,vec3,float,int);"
 5920|     45|            "void hitObjectRecordHitMotionNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5921|     45|            "void hitObjectRecordHitWithIndexNV(hitObjectNV,accelerationStructureEXT,int,int,int,uint,uint,vec3,float,vec3,float,int);"
 5922|     45|            "void hitObjectRecordHitWithIndexMotionNV(hitObjectNV, accelerationStructureEXT,int,int,int,uint,uint,vec3,float,vec3,float,float,int);"
 5923|     45|            "void hitObjectRecordMissNV(hitObjectNV, uint, vec3, float, vec3, float);"
 5924|     45|            "void hitObjectRecordMissMotionNV(hitObjectNV,uint,vec3,float,vec3,float,float);"
 5925|     45|            "void hitObjectRecordEmptyNV(hitObjectNV);"
 5926|     45|            "void hitObjectExecuteShaderNV(hitObjectNV, int);"
 5927|     45|            "bool hitObjectIsEmptyNV(hitObjectNV);"
 5928|     45|            "bool hitObjectIsMissNV(hitObjectNV);"
 5929|     45|            "bool hitObjectIsHitNV(hitObjectNV);"
 5930|     45|            "float hitObjectGetRayTMinNV(hitObjectNV);"
 5931|     45|            "float hitObjectGetRayTMaxNV(hitObjectNV);"
 5932|     45|            "vec3 hitObjectGetWorldRayOriginNV(hitObjectNV);"
 5933|     45|            "vec3 hitObjectGetWorldRayDirectionNV(hitObjectNV);"
 5934|     45|            "vec3 hitObjectGetObjectRayOriginNV(hitObjectNV);"
 5935|     45|            "vec3 hitObjectGetObjectRayDirectionNV(hitObjectNV);"
 5936|     45|            "mat4x3 hitObjectGetWorldToObjectNV(hitObjectNV);"
 5937|     45|            "mat4x3 hitObjectGetObjectToWorldNV(hitObjectNV);"
 5938|     45|            "int hitObjectGetInstanceCustomIndexNV(hitObjectNV);"
 5939|     45|            "int hitObjectGetInstanceIdNV(hitObjectNV);"
 5940|     45|            "int hitObjectGetGeometryIndexNV(hitObjectNV);"
 5941|     45|            "int hitObjectGetPrimitiveIndexNV(hitObjectNV);"
 5942|     45|            "uint hitObjectGetHitKindNV(hitObjectNV);"
 5943|     45|            "void hitObjectGetAttributesNV(hitObjectNV,int);"
 5944|     45|            "float hitObjectGetCurrentTimeNV(hitObjectNV);"
 5945|     45|            "uint hitObjectGetShaderBindingTableRecordIndexNV(hitObjectNV);"
 5946|     45|            "uvec2 hitObjectGetShaderRecordBufferHandleNV(hitObjectNV);"
 5947|     45|            "int hitObjectGetClusterIdNV(hitObjectNV);"
 5948|     45|            "vec3 hitObjectGetSpherePositionNV(hitObjectNV);"
 5949|     45|            "float hitObjectGetSphereRadiusNV(hitObjectNV);"
 5950|     45|            "void hitObjectGetLSSPositionsNV(hitObjectNV, out vec3[2]);"
 5951|     45|            "void hitObjectGetLSSRadiiNV(hitObjectNV, out float[2]);"
 5952|     45|            "bool hitObjectIsSphereHitNV(hitObjectNV);"
 5953|     45|            "bool hitObjectIsLSSHitNV(hitObjectNV);"
 5954|     45|            "void hitObjectTraceRayEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,int);"
 5955|     45|            "void hitObjectTraceRayMotionEXT(hitObjectEXT,accelerationStructureEXT,uint,uint,uint,uint,uint,vec3,float,vec3,float,float,int);"
 5956|     45|            "void hitObjectRecordMissEXT(hitObjectEXT,uint,uint,vec3,float,vec3,float);"
 5957|     45|            "void hitObjectRecordMissMotionEXT(hitObjectEXT,uint,uint,vec3,float,vec3,float,float);"
 5958|     45|            "void hitObjectRecordEmptyEXT(hitObjectEXT);"
 5959|     45|            "void hitObjectExecuteShaderEXT(hitObjectEXT,int);"
 5960|     45|            "bool hitObjectIsEmptyEXT(hitObjectEXT);"
 5961|     45|            "bool hitObjectIsMissEXT(hitObjectEXT);"
 5962|     45|            "bool hitObjectIsHitEXT(hitObjectEXT);"
 5963|     45|            "float hitObjectGetRayTMinEXT(hitObjectEXT);"
 5964|     45|            "float hitObjectGetRayTMaxEXT(hitObjectEXT);"
 5965|     45|            "uint hitObjectGetRayFlagsEXT(hitObjectEXT);"
 5966|     45|            "vec3 hitObjectGetWorldRayOriginEXT(hitObjectEXT);"
 5967|     45|            "vec3 hitObjectGetWorldRayDirectionEXT(hitObjectEXT);"
 5968|     45|            "vec3 hitObjectGetObjectRayOriginEXT(hitObjectEXT);"
 5969|     45|            "vec3 hitObjectGetObjectRayDirectionEXT(hitObjectEXT);"
 5970|     45|            "mat4x3 hitObjectGetWorldToObjectEXT(hitObjectEXT);"
 5971|     45|            "mat4x3 hitObjectGetObjectToWorldEXT(hitObjectEXT);"
 5972|     45|            "int hitObjectGetInstanceCustomIndexEXT(hitObjectEXT);"
 5973|     45|            "int hitObjectGetInstanceIdEXT(hitObjectEXT);"
 5974|     45|            "int hitObjectGetGeometryIndexEXT(hitObjectEXT);"
 5975|     45|            "int hitObjectGetPrimitiveIndexEXT(hitObjectEXT);"
 5976|     45|            "uint hitObjectGetHitKindEXT(hitObjectEXT);"
 5977|     45|            "void hitObjectGetAttributesEXT(hitObjectEXT,int);"
 5978|     45|            "float hitObjectGetCurrentTimeEXT(hitObjectEXT);"
 5979|     45|            "uint hitObjectGetShaderBindingTableRecordIndexEXT(hitObjectEXT);"
 5980|     45|            "uvec2 hitObjectGetShaderRecordBufferHandleEXT(hitObjectEXT);"
 5981|     45|            "void hitObjectSetShaderBindingTableRecordIndexEXT(hitObjectEXT, uint);"
 5982|     45|            "void hitObjectRecordFromQueryEXT(hitObjectEXT, rayQueryEXT, uint, int);"
 5983|     45|            "void hitObjectRecordFromQueryEXT(hitObjectEXT, rayQueryEXT, uint, int, uint);"
 5984|     45|            "void hitObjectGetIntersectionTriangleVertexPositionsEXT(hitObjectEXT, out vec3[3]);"
 5985|     45|            "\n");
 5986|     45|        stageBuiltins[EShLangCallable].append(
 5987|     45|            "void executeCallableNV(uint, int);"
 5988|     45|            "void executeCallableEXT(uint, int);"
 5989|     45|            "\n");
 5990|     45|    }
 5991|       |
 5992|       |    // GL_KHR_compute_shader_derivatives / SPV_NV_compute_shader_derivatives
 5993|  1.42k|    if ((profile == EEsProfile && version >= 320) || (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (5993:10): [True: 148, False: 1.27k]
  |  Branch (5993:35): [True: 7, False: 141]
  |  Branch (5993:55): [True: 1.27k, False: 141]
  |  Branch (5993:80): [True: 301, False: 971]
  ------------------
 5994|    308|        if (profile != EEsProfile) {
  ------------------
  |  Branch (5994:13): [True: 301, False: 7]
  ------------------
 5995|    301|            stageBuiltins[EShLangCompute].append(derivatives);
 5996|    301|            stageBuiltins[EShLangTask].append(derivatives);
 5997|    301|            stageBuiltins[EShLangMesh].append(derivatives);
 5998|    301|        }
 5999|       |
 6000|    308|        stageBuiltins[EShLangCompute].append(derivativeControls);
 6001|    308|        stageBuiltins[EShLangCompute].append("\n");
 6002|       |
 6003|    308|        if (profile != EEsProfile) {
  ------------------
  |  Branch (6003:13): [True: 301, False: 7]
  ------------------
 6004|    301|            stageBuiltins[EShLangTask].append(derivativeControls);
 6005|    301|            stageBuiltins[EShLangTask].append("\n");
 6006|    301|            stageBuiltins[EShLangMesh].append(derivativeControls);
 6007|    301|            stageBuiltins[EShLangMesh].append("\n");
 6008|    301|        }
 6009|    308|    }
 6010|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (6010:9): [True: 1.27k, False: 148]
  |  Branch (6010:34): [True: 301, False: 971]
  ------------------
 6011|    301|        stageBuiltins[EShLangCompute].append(derivativesAndControl16bits);
 6012|    301|        stageBuiltins[EShLangCompute].append(derivativesAndControl64bits);
 6013|    301|        stageBuiltins[EShLangCompute].append("\n");
 6014|    301|        stageBuiltins[EShLangTask].append(derivativesAndControl16bits);
 6015|    301|        stageBuiltins[EShLangTask].append(derivativesAndControl64bits);
 6016|    301|        stageBuiltins[EShLangTask].append("\n");
 6017|    301|        stageBuiltins[EShLangMesh].append(derivativesAndControl16bits);
 6018|    301|        stageBuiltins[EShLangMesh].append(derivativesAndControl64bits);
 6019|    301|        stageBuiltins[EShLangMesh].append("\n");
 6020|    301|    }
 6021|       |
 6022|       |    // Builtins for GL_NV_mesh_shader
 6023|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (6023:10): [True: 1.27k, False: 148]
  |  Branch (6023:35): [True: 301, False: 971]
  |  Branch (6023:55): [True: 148, False: 971]
  |  Branch (6023:80): [True: 7, False: 141]
  ------------------
 6024|    308|        stageBuiltins[EShLangMesh].append(
 6025|    308|            "void writePackedPrimitiveIndices4x8NV(uint, uint);"
 6026|    308|            "\n");
 6027|    308|    }
 6028|       |    // Builtins for GL_EXT_mesh_shader
 6029|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (6029:10): [True: 1.27k, False: 148]
  |  Branch (6029:35): [True: 301, False: 971]
  |  Branch (6029:55): [True: 148, False: 971]
  |  Branch (6029:80): [True: 7, False: 141]
  ------------------
 6030|       |        // Builtins for GL_EXT_mesh_shader
 6031|    308|        stageBuiltins[EShLangTask].append(
 6032|    308|            "void EmitMeshTasksEXT(uint, uint, uint);"
 6033|    308|            "\n");
 6034|       |
 6035|    308|        stageBuiltins[EShLangMesh].append(
 6036|    308|            "void SetMeshOutputsEXT(uint, uint);"
 6037|    308|            "\n");
 6038|    308|    }
 6039|       |    // Builtins for GL_NV_displacement_micromap
 6040|  1.42k|    if ((profile != EEsProfile && version >= 460) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (6040:10): [True: 1.27k, False: 148]
  |  Branch (6040:35): [True: 45, False: 1.22k]
  |  Branch (6040:55): [True: 148, False: 1.22k]
  |  Branch (6040:80): [True: 7, False: 141]
  ------------------
 6041|     52|        stageBuiltins[EShLangMesh].append(
 6042|     52|            "vec3 fetchMicroTriangleVertexPositionNV(accelerationStructureEXT, int, int, int, ivec2);"
 6043|     52|            "vec2 fetchMicroTriangleVertexBarycentricNV(accelerationStructureEXT, int, int, int, ivec2);"
 6044|     52|            "\n");
 6045|       |
 6046|     52|        stageBuiltins[EShLangCompute].append(
 6047|     52|            "vec3 fetchMicroTriangleVertexPositionNV(accelerationStructureEXT, int, int, int, ivec2);"
 6048|     52|            "vec2 fetchMicroTriangleVertexBarycentricNV(accelerationStructureEXT, int, int, int, ivec2);"
 6049|     52|            "\n");
 6050|       |
 6051|     52|    }
 6052|       |
 6053|       |
 6054|       |    //============================================================================
 6055|       |    //
 6056|       |    // Standard Uniforms
 6057|       |    //
 6058|       |    //============================================================================
 6059|       |
 6060|       |    //
 6061|       |    // Depth range in window coordinates, p. 33
 6062|       |    //
 6063|  1.42k|    if (spvVersion.spv == 0) {
  ------------------
  |  Branch (6063:9): [True: 0, False: 1.42k]
  ------------------
 6064|      0|        commonBuiltins.append(
 6065|      0|            "struct gl_DepthRangeParameters {"
 6066|      0|            );
 6067|      0|        if (profile == EEsProfile) {
  ------------------
  |  Branch (6067:13): [True: 0, False: 0]
  ------------------
 6068|      0|            commonBuiltins.append(
 6069|      0|                "highp float near;"   // n
 6070|      0|                "highp float far;"    // f
 6071|      0|                "highp float diff;"   // f - n
 6072|      0|                );
 6073|      0|        } else {
 6074|      0|            commonBuiltins.append(
 6075|      0|                "float near;"  // n
 6076|      0|                "float far;"   // f
 6077|      0|                "float diff;"  // f - n
 6078|      0|                );
 6079|      0|        }
 6080|       |
 6081|      0|        commonBuiltins.append(
 6082|      0|            "};"
 6083|      0|            "uniform gl_DepthRangeParameters gl_DepthRange;"
 6084|      0|            "\n");
 6085|      0|    }
 6086|       |
 6087|  1.42k|    if (spvVersion.spv == 0 && IncludeLegacy(version, profile, spvVersion)) {
  ------------------
  |  Branch (6087:9): [True: 0, False: 1.42k]
  |  Branch (6087:32): [True: 0, False: 0]
  ------------------
 6088|       |        //
 6089|       |        // Matrix state. p. 31, 32, 37, 39, 40.
 6090|       |        //
 6091|      0|        commonBuiltins.append(
 6092|      0|            "uniform mat4  gl_ModelViewMatrix;"
 6093|      0|            "uniform mat4  gl_ProjectionMatrix;"
 6094|      0|            "uniform mat4  gl_ModelViewProjectionMatrix;"
 6095|       |
 6096|       |            //
 6097|       |            // Derived matrix state that provides inverse and transposed versions
 6098|       |            // of the matrices above.
 6099|       |            //
 6100|      0|            "uniform mat3  gl_NormalMatrix;"
 6101|       |
 6102|      0|            "uniform mat4  gl_ModelViewMatrixInverse;"
 6103|      0|            "uniform mat4  gl_ProjectionMatrixInverse;"
 6104|      0|            "uniform mat4  gl_ModelViewProjectionMatrixInverse;"
 6105|       |
 6106|      0|            "uniform mat4  gl_ModelViewMatrixTranspose;"
 6107|      0|            "uniform mat4  gl_ProjectionMatrixTranspose;"
 6108|      0|            "uniform mat4  gl_ModelViewProjectionMatrixTranspose;"
 6109|       |
 6110|      0|            "uniform mat4  gl_ModelViewMatrixInverseTranspose;"
 6111|      0|            "uniform mat4  gl_ProjectionMatrixInverseTranspose;"
 6112|      0|            "uniform mat4  gl_ModelViewProjectionMatrixInverseTranspose;"
 6113|       |
 6114|       |            //
 6115|       |            // Normal scaling p. 39.
 6116|       |            //
 6117|      0|            "uniform float gl_NormalScale;"
 6118|       |
 6119|       |            //
 6120|       |            // Point Size, p. 66, 67.
 6121|       |            //
 6122|      0|            "struct gl_PointParameters {"
 6123|      0|                "float size;"
 6124|      0|                "float sizeMin;"
 6125|      0|                "float sizeMax;"
 6126|      0|                "float fadeThresholdSize;"
 6127|      0|                "float distanceConstantAttenuation;"
 6128|      0|                "float distanceLinearAttenuation;"
 6129|      0|                "float distanceQuadraticAttenuation;"
 6130|      0|            "};"
 6131|       |
 6132|      0|            "uniform gl_PointParameters gl_Point;"
 6133|       |
 6134|       |            //
 6135|       |            // Material State p. 50, 55.
 6136|       |            //
 6137|      0|            "struct gl_MaterialParameters {"
 6138|      0|                "vec4  emission;"    // Ecm
 6139|      0|                "vec4  ambient;"     // Acm
 6140|      0|                "vec4  diffuse;"     // Dcm
 6141|      0|                "vec4  specular;"    // Scm
 6142|      0|                "float shininess;"   // Srm
 6143|      0|            "};"
 6144|      0|            "uniform gl_MaterialParameters  gl_FrontMaterial;"
 6145|      0|            "uniform gl_MaterialParameters  gl_BackMaterial;"
 6146|       |
 6147|       |            //
 6148|       |            // Light State p 50, 53, 55.
 6149|       |            //
 6150|      0|            "struct gl_LightSourceParameters {"
 6151|      0|                "vec4  ambient;"             // Acli
 6152|      0|                "vec4  diffuse;"             // Dcli
 6153|      0|                "vec4  specular;"            // Scli
 6154|      0|                "vec4  position;"            // Ppli
 6155|      0|                "vec4  halfVector;"          // Derived: Hi
 6156|      0|                "vec3  spotDirection;"       // Sdli
 6157|      0|                "float spotExponent;"        // Srli
 6158|      0|                "float spotCutoff;"          // Crli
 6159|       |                                                        // (range: [0.0,90.0], 180.0)
 6160|      0|                "float spotCosCutoff;"       // Derived: cos(Crli)
 6161|       |                                                        // (range: [1.0,0.0],-1.0)
 6162|      0|                "float constantAttenuation;" // K0
 6163|      0|                "float linearAttenuation;"   // K1
 6164|      0|                "float quadraticAttenuation;"// K2
 6165|      0|            "};"
 6166|       |
 6167|      0|            "struct gl_LightModelParameters {"
 6168|      0|                "vec4  ambient;"       // Acs
 6169|      0|            "};"
 6170|       |
 6171|      0|            "uniform gl_LightModelParameters  gl_LightModel;"
 6172|       |
 6173|       |            //
 6174|       |            // Derived state from products of light and material.
 6175|       |            //
 6176|      0|            "struct gl_LightModelProducts {"
 6177|      0|                "vec4  sceneColor;"     // Derived. Ecm + Acm * Acs
 6178|      0|            "};"
 6179|       |
 6180|      0|            "uniform gl_LightModelProducts gl_FrontLightModelProduct;"
 6181|      0|            "uniform gl_LightModelProducts gl_BackLightModelProduct;"
 6182|       |
 6183|      0|            "struct gl_LightProducts {"
 6184|      0|                "vec4  ambient;"        // Acm * Acli
 6185|      0|                "vec4  diffuse;"        // Dcm * Dcli
 6186|      0|                "vec4  specular;"       // Scm * Scli
 6187|      0|            "};"
 6188|       |
 6189|       |            //
 6190|       |            // Fog p. 161
 6191|       |            //
 6192|      0|            "struct gl_FogParameters {"
 6193|      0|                "vec4  color;"
 6194|      0|                "float density;"
 6195|      0|                "float start;"
 6196|      0|                "float end;"
 6197|      0|                "float scale;"   //  1 / (gl_FogEnd - gl_FogStart)
 6198|      0|            "};"
 6199|       |
 6200|      0|            "uniform gl_FogParameters gl_Fog;"
 6201|       |
 6202|      0|            "\n");
 6203|      0|    }
 6204|       |
 6205|       |    //============================================================================
 6206|       |    //
 6207|       |    // Define the interface to the compute shader.
 6208|       |    //
 6209|       |    //============================================================================
 6210|       |
 6211|  1.42k|    if ((profile != EEsProfile && version >= 420) ||
  ------------------
  |  Branch (6211:10): [True: 1.27k, False: 148]
  |  Branch (6211:35): [True: 537, False: 735]
  ------------------
 6212|    883|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6212:10): [True: 148, False: 735]
  |  Branch (6212:35): [True: 148, False: 0]
  ------------------
 6213|    685|        stageBuiltins[EShLangCompute].append(
 6214|    685|            "in    highp uvec3 gl_NumWorkGroups;"
 6215|    685|            "const highp uvec3 gl_WorkGroupSize = uvec3(1,1,1);"
 6216|       |
 6217|    685|            "in highp uvec3 gl_WorkGroupID;"
 6218|    685|            "in highp uvec3 gl_LocalInvocationID;"
 6219|       |
 6220|    685|            "in highp uvec3 gl_GlobalInvocationID;"
 6221|    685|            "in highp uint gl_LocalInvocationIndex;"
 6222|       |
 6223|    685|            "\n");
 6224|    685|    }
 6225|       |
 6226|  1.42k|    if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (6226:10): [True: 1.27k, False: 148]
  |  Branch (6226:35): [True: 1.27k, False: 0]
  ------------------
 6227|  1.42k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6227:10): [True: 148, False: 0]
  |  Branch (6227:35): [True: 148, False: 0]
  ------------------
 6228|  1.42k|        stageBuiltins[EShLangCompute].append(
 6229|  1.42k|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 6230|  1.42k|            "\n");
 6231|  1.42k|    }
 6232|       |
 6233|       |    // GL_QCOM_tile_shading
 6234|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (6234:10): [True: 148, False: 1.27k]
  |  Branch (6234:35): [True: 148, False: 0]
  ------------------
 6235|  1.27k|        (profile != EEsProfile && version >= 460)) {
  ------------------
  |  Branch (6235:10): [True: 1.27k, False: 0]
  |  Branch (6235:35): [True: 45, False: 1.22k]
  ------------------
 6236|    193|        stageBuiltins[EShLangCompute].append(
 6237|    193|            "in highp uvec2 gl_TileOffsetQCOM;"     // GL_QCOM_tile_shading
 6238|    193|            "in highp uvec3 gl_TileDimensionQCOM;"  // GL_QCOM_tile_shading
 6239|    193|            "in highp uvec2 gl_TileApronSizeQCOM;"  // GL_QCOM_tile_shading
 6240|    193|            "\n");
 6241|    193|    }
 6242|       |
 6243|       |    //============================================================================
 6244|       |    //
 6245|       |    // Define the interface to the mesh/task shader.
 6246|       |    //
 6247|       |    //============================================================================
 6248|       |
 6249|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (6249:10): [True: 1.27k, False: 148]
  |  Branch (6249:35): [True: 301, False: 971]
  |  Branch (6249:55): [True: 148, False: 971]
  |  Branch (6249:80): [True: 7, False: 141]
  ------------------
 6250|       |        // per-vertex attributes
 6251|    308|        stageBuiltins[EShLangMesh].append(
 6252|    308|            "out gl_MeshPerVertexNV {"
 6253|    308|                "vec4 gl_Position;"
 6254|    308|                "float gl_PointSize;"
 6255|    308|                "float gl_ClipDistance[];"
 6256|    308|                "float gl_CullDistance[];"
 6257|    308|                "perviewNV vec4 gl_PositionPerViewNV[];"
 6258|    308|                "perviewNV float gl_ClipDistancePerViewNV[][];"
 6259|    308|                "perviewNV float gl_CullDistancePerViewNV[][];"
 6260|    308|            "} gl_MeshVerticesNV[];"
 6261|    308|        );
 6262|       |
 6263|       |        // per-primitive attributes
 6264|    308|        stageBuiltins[EShLangMesh].append(
 6265|    308|            "perprimitiveNV out gl_MeshPerPrimitiveNV {"
 6266|    308|                "int gl_PrimitiveID;"
 6267|    308|                "int gl_Layer;"
 6268|    308|                "int gl_ViewportIndex;"
 6269|    308|                "int gl_ViewportMask[];"
 6270|    308|                "perviewNV int gl_LayerPerViewNV[];"
 6271|    308|                "perviewNV int gl_ViewportMaskPerViewNV[][];"
 6272|    308|            "} gl_MeshPrimitivesNV[];"
 6273|    308|        );
 6274|       |
 6275|    308|        stageBuiltins[EShLangMesh].append(
 6276|    308|            "out uint gl_PrimitiveCountNV;"
 6277|    308|            "out uint gl_PrimitiveIndicesNV[];"
 6278|       |
 6279|    308|            "in uint gl_MeshViewCountNV;"
 6280|    308|            "in uint gl_MeshViewIndicesNV[4];"
 6281|       |
 6282|    308|            "const highp uvec3 gl_WorkGroupSize = uvec3(1,1,1);"
 6283|       |
 6284|    308|            "in highp uvec3 gl_WorkGroupID;"
 6285|    308|            "in highp uvec3 gl_LocalInvocationID;"
 6286|       |
 6287|    308|            "in highp uvec3 gl_GlobalInvocationID;"
 6288|    308|            "in highp uint gl_LocalInvocationIndex;"
 6289|    308|            "\n");
 6290|       |
 6291|       |        // GL_EXT_mesh_shader
 6292|    308|        stageBuiltins[EShLangMesh].append(
 6293|    308|            "out uint gl_PrimitivePointIndicesEXT[];"
 6294|    308|            "out uvec2 gl_PrimitiveLineIndicesEXT[];"
 6295|    308|            "out uvec3 gl_PrimitiveTriangleIndicesEXT[];"
 6296|    308|            "in    highp uvec3 gl_NumWorkGroups;"
 6297|    308|            "\n");
 6298|       |
 6299|       |        // per-vertex attributes
 6300|    308|        stageBuiltins[EShLangMesh].append(
 6301|    308|            "out gl_MeshPerVertexEXT {"
 6302|    308|                "vec4 gl_Position;"
 6303|    308|                "float gl_PointSize;"
 6304|    308|                "float gl_ClipDistance[];"
 6305|    308|                "float gl_CullDistance[];"
 6306|    308|            "} gl_MeshVerticesEXT[];"
 6307|    308|        );
 6308|       |
 6309|       |        // per-primitive attributes
 6310|    308|        stageBuiltins[EShLangMesh].append(
 6311|    308|            "perprimitiveEXT out gl_MeshPerPrimitiveEXT {"
 6312|    308|                "int gl_PrimitiveID;"
 6313|    308|                "int gl_Layer;"
 6314|    308|                "int gl_ViewportIndex;"
 6315|    308|                "bool gl_CullPrimitiveEXT;"
 6316|    308|                "int  gl_PrimitiveShadingRateEXT;"
 6317|    308|            "} gl_MeshPrimitivesEXT[];"
 6318|    308|        );
 6319|       |
 6320|    308|        stageBuiltins[EShLangTask].append(
 6321|    308|            "out uint gl_TaskCountNV;"
 6322|       |
 6323|    308|            "const highp uvec3 gl_WorkGroupSize = uvec3(1,1,1);"
 6324|       |
 6325|    308|            "in highp uvec3 gl_WorkGroupID;"
 6326|    308|            "in highp uvec3 gl_LocalInvocationID;"
 6327|       |
 6328|    308|            "in highp uvec3 gl_GlobalInvocationID;"
 6329|    308|            "in highp uint gl_LocalInvocationIndex;"
 6330|       |
 6331|    308|            "in uint gl_MeshViewCountNV;"
 6332|    308|            "in uint gl_MeshViewIndicesNV[4];"
 6333|    308|            "in    highp uvec3 gl_NumWorkGroups;"
 6334|    308|            "\n");
 6335|    308|    }
 6336|       |
 6337|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (6337:9): [True: 1.27k, False: 148]
  |  Branch (6337:34): [True: 301, False: 971]
  ------------------
 6338|    301|        stageBuiltins[EShLangMesh].append(
 6339|    301|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 6340|    301|            "in int gl_DrawIDARB;"             // GL_ARB_shader_draw_parameters
 6341|    301|            "in int gl_ViewIndex;"             // GL_EXT_multiview
 6342|    301|            "\n");
 6343|       |
 6344|    301|        stageBuiltins[EShLangTask].append(
 6345|    301|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 6346|    301|            "in int gl_DrawIDARB;"             // GL_ARB_shader_draw_parameters
 6347|    301|            "\n");
 6348|       |
 6349|    301|        if (version >= 460) {
  ------------------
  |  Branch (6349:13): [True: 45, False: 256]
  ------------------
 6350|     45|            stageBuiltins[EShLangMesh].append(
 6351|     45|                "in int gl_DrawID;"
 6352|     45|                "\n");
 6353|       |
 6354|     45|            stageBuiltins[EShLangTask].append(
 6355|     45|                "in int gl_DrawID;"
 6356|     45|                "\n");
 6357|     45|        }
 6358|    301|    }
 6359|       |
 6360|       |    //============================================================================
 6361|       |    //
 6362|       |    // Define the interface to the vertex shader.
 6363|       |    //
 6364|       |    //============================================================================
 6365|       |
 6366|  1.42k|    if (profile != EEsProfile) {
  ------------------
  |  Branch (6366:9): [True: 1.27k, False: 148]
  ------------------
 6367|  1.27k|        if (version < 130) {
  ------------------
  |  Branch (6367:13): [True: 0, False: 1.27k]
  ------------------
 6368|      0|            stageBuiltins[EShLangVertex].append(
 6369|      0|                "attribute vec4  gl_Color;"
 6370|      0|                "attribute vec4  gl_SecondaryColor;"
 6371|      0|                "attribute vec3  gl_Normal;"
 6372|      0|                "attribute vec4  gl_Vertex;"
 6373|      0|                "attribute vec4  gl_MultiTexCoord0;"
 6374|      0|                "attribute vec4  gl_MultiTexCoord1;"
 6375|      0|                "attribute vec4  gl_MultiTexCoord2;"
 6376|      0|                "attribute vec4  gl_MultiTexCoord3;"
 6377|      0|                "attribute vec4  gl_MultiTexCoord4;"
 6378|      0|                "attribute vec4  gl_MultiTexCoord5;"
 6379|      0|                "attribute vec4  gl_MultiTexCoord6;"
 6380|      0|                "attribute vec4  gl_MultiTexCoord7;"
 6381|      0|                "attribute float gl_FogCoord;"
 6382|      0|                "\n");
 6383|  1.27k|        } else if (IncludeLegacy(version, profile, spvVersion)) {
  ------------------
  |  Branch (6383:20): [True: 55, False: 1.21k]
  ------------------
 6384|     55|            stageBuiltins[EShLangVertex].append(
 6385|     55|                "in vec4  gl_Color;"
 6386|     55|                "in vec4  gl_SecondaryColor;"
 6387|     55|                "in vec3  gl_Normal;"
 6388|     55|                "in vec4  gl_Vertex;"
 6389|     55|                "in vec4  gl_MultiTexCoord0;"
 6390|     55|                "in vec4  gl_MultiTexCoord1;"
 6391|     55|                "in vec4  gl_MultiTexCoord2;"
 6392|     55|                "in vec4  gl_MultiTexCoord3;"
 6393|     55|                "in vec4  gl_MultiTexCoord4;"
 6394|     55|                "in vec4  gl_MultiTexCoord5;"
 6395|     55|                "in vec4  gl_MultiTexCoord6;"
 6396|     55|                "in vec4  gl_MultiTexCoord7;"
 6397|     55|                "in float gl_FogCoord;"
 6398|     55|                "\n");
 6399|     55|        }
 6400|       |
 6401|  1.27k|        if (version < 150) {
  ------------------
  |  Branch (6401:13): [True: 516, False: 756]
  ------------------
 6402|    516|            if (version < 130) {
  ------------------
  |  Branch (6402:17): [True: 0, False: 516]
  ------------------
 6403|      0|                stageBuiltins[EShLangVertex].append(
 6404|      0|                    "        vec4  gl_ClipVertex;"       // needs qualifier fixed later
 6405|      0|                    "varying vec4  gl_FrontColor;"
 6406|      0|                    "varying vec4  gl_BackColor;"
 6407|      0|                    "varying vec4  gl_FrontSecondaryColor;"
 6408|      0|                    "varying vec4  gl_BackSecondaryColor;"
 6409|      0|                    "varying vec4  gl_TexCoord[];"
 6410|      0|                    "varying float gl_FogFragCoord;"
 6411|      0|                    "\n");
 6412|    516|            } else if (IncludeLegacy(version, profile, spvVersion)) {
  ------------------
  |  Branch (6412:24): [True: 0, False: 516]
  ------------------
 6413|      0|                stageBuiltins[EShLangVertex].append(
 6414|      0|                    "    vec4  gl_ClipVertex;"       // needs qualifier fixed later
 6415|      0|                    "out vec4  gl_FrontColor;"
 6416|      0|                    "out vec4  gl_BackColor;"
 6417|      0|                    "out vec4  gl_FrontSecondaryColor;"
 6418|      0|                    "out vec4  gl_BackSecondaryColor;"
 6419|      0|                    "out vec4  gl_TexCoord[];"
 6420|      0|                    "out float gl_FogFragCoord;"
 6421|      0|                    "\n");
 6422|      0|            }
 6423|    516|            stageBuiltins[EShLangVertex].append(
 6424|    516|                "vec4 gl_Position;"   // needs qualifier fixed later
 6425|    516|                "float gl_PointSize;" // needs qualifier fixed later
 6426|    516|                );
 6427|       |
 6428|    516|            if (version == 130 || version == 140)
  ------------------
  |  Branch (6428:17): [True: 0, False: 516]
  |  Branch (6428:35): [True: 516, False: 0]
  ------------------
 6429|    516|                stageBuiltins[EShLangVertex].append(
 6430|    516|                    "out float gl_ClipDistance[];"
 6431|    516|                    "out float gl_CullDistance[];"  // GL_ARB_cull_distance
 6432|    516|                    );
 6433|    756|        } else {
 6434|       |            // version >= 150
 6435|    756|            stageBuiltins[EShLangVertex].append(
 6436|    756|                "out gl_PerVertex {"
 6437|    756|                    "vec4 gl_Position;"     // needs qualifier fixed later
 6438|    756|                    "float gl_PointSize;"   // needs qualifier fixed later
 6439|    756|                    "float gl_ClipDistance[];"
 6440|    756|                    "float gl_CullDistance[];"  // GL_ARB_cull_distance, core in 450
 6441|    756|                    );
 6442|    756|            if (IncludeLegacy(version, profile, spvVersion))
  ------------------
  |  Branch (6442:17): [True: 55, False: 701]
  ------------------
 6443|     55|                stageBuiltins[EShLangVertex].append(
 6444|     55|                    "vec4 gl_ClipVertex;"   // needs qualifier fixed later
 6445|     55|                    "vec4 gl_FrontColor;"
 6446|     55|                    "vec4 gl_BackColor;"
 6447|     55|                    "vec4 gl_FrontSecondaryColor;"
 6448|     55|                    "vec4 gl_BackSecondaryColor;"
 6449|     55|                    "vec4 gl_TexCoord[];"
 6450|     55|                    "float gl_FogFragCoord;"
 6451|     55|                    );
 6452|    756|            stageBuiltins[EShLangVertex].append(
 6453|    756|                "};"
 6454|    756|                "\n");
 6455|    756|        }
 6456|  1.27k|        if (version >= 130 && spvVersion.vulkan == 0)
  ------------------
  |  Branch (6456:13): [True: 1.27k, False: 0]
  |  Branch (6456:31): [True: 0, False: 1.27k]
  ------------------
 6457|      0|            stageBuiltins[EShLangVertex].append(
 6458|      0|                "int gl_VertexID;"            // needs qualifier fixed later
 6459|      0|                );
 6460|  1.27k|        if (spvVersion.vulkan == 0)
  ------------------
  |  Branch (6460:13): [True: 0, False: 1.27k]
  ------------------
 6461|      0|            stageBuiltins[EShLangVertex].append(
 6462|      0|                "int gl_InstanceID;"          // needs qualifier fixed later
 6463|      0|                );
 6464|  1.27k|        if (spvVersion.vulkan > 0 && version >= 140)
  ------------------
  |  Branch (6464:13): [True: 1.27k, False: 0]
  |  Branch (6464:38): [True: 1.27k, False: 0]
  ------------------
 6465|  1.27k|            stageBuiltins[EShLangVertex].append(
 6466|  1.27k|                "in int gl_VertexIndex;"
 6467|  1.27k|                "in int gl_InstanceIndex;"
 6468|  1.27k|                );
 6469|       |
 6470|  1.27k|        if (spvVersion.vulkan > 0 && version >= 140 && spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (6470:13): [True: 1.27k, False: 0]
  |  Branch (6470:38): [True: 1.27k, False: 0]
  |  Branch (6470:56): [True: 0, False: 1.27k]
  ------------------
 6471|      0|            stageBuiltins[EShLangVertex].append(
 6472|      0|                "in int gl_VertexID;"         // declare with 'in' qualifier
 6473|      0|                "in int gl_InstanceID;"
 6474|      0|                );
 6475|       |
 6476|  1.27k|        if (version >= 440) {
  ------------------
  |  Branch (6476:13): [True: 376, False: 896]
  ------------------
 6477|    376|            stageBuiltins[EShLangVertex].append(
 6478|    376|                "in int gl_BaseVertexARB;"
 6479|    376|                "in int gl_BaseInstanceARB;"
 6480|    376|                "in int gl_DrawIDARB;"
 6481|    376|                );
 6482|    376|        }
 6483|  1.27k|        if (version >= 410) {
  ------------------
  |  Branch (6483:13): [True: 539, False: 733]
  ------------------
 6484|    539|            stageBuiltins[EShLangVertex].append(
 6485|    539|                "out int gl_ViewportIndex;"
 6486|    539|                "out int gl_Layer;"
 6487|    539|                );
 6488|    539|        }
 6489|  1.27k|        if (version >= 460) {
  ------------------
  |  Branch (6489:13): [True: 45, False: 1.22k]
  ------------------
 6490|     45|            stageBuiltins[EShLangVertex].append(
 6491|     45|                "in int gl_BaseVertex;"
 6492|     45|                "in int gl_BaseInstance;"
 6493|     45|                "in int gl_DrawID;"
 6494|     45|                );
 6495|     45|        }
 6496|       |
 6497|  1.27k|        if (version >= 430)
  ------------------
  |  Branch (6497:13): [True: 536, False: 736]
  ------------------
 6498|    536|            stageBuiltins[EShLangVertex].append(
 6499|    536|                "out int gl_ViewportMask[];"             // GL_NV_viewport_array2
 6500|    536|                );
 6501|       |
 6502|  1.27k|        if (version >= 450)
  ------------------
  |  Branch (6502:13): [True: 301, False: 971]
  ------------------
 6503|    301|            stageBuiltins[EShLangVertex].append(
 6504|    301|                "out int gl_SecondaryViewportMaskNV[];"  // GL_NV_stereo_view_rendering
 6505|    301|                "out vec4 gl_SecondaryPositionNV;"       // GL_NV_stereo_view_rendering
 6506|    301|                "out vec4 gl_PositionPerViewNV[];"       // GL_NVX_multiview_per_view_attributes
 6507|    301|                "out int  gl_ViewportMaskPerViewNV[];"   // GL_NVX_multiview_per_view_attributes
 6508|    301|                );
 6509|  1.27k|    } else {
 6510|       |        // ES profile
 6511|    148|        if (version == 100) {
  ------------------
  |  Branch (6511:13): [True: 0, False: 148]
  ------------------
 6512|      0|            stageBuiltins[EShLangVertex].append(
 6513|      0|                "highp   vec4  gl_Position;"  // needs qualifier fixed later
 6514|      0|                "mediump float gl_PointSize;" // needs qualifier fixed later
 6515|      0|                "highp int gl_InstanceID;" // needs qualifier fixed later
 6516|      0|                );
 6517|    148|        } else {
 6518|    148|            if (spvVersion.vulkan == 0 || spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (6518:17): [True: 0, False: 148]
  |  Branch (6518:43): [True: 0, False: 148]
  ------------------
 6519|      0|                stageBuiltins[EShLangVertex].append(
 6520|      0|                    "in highp int gl_VertexID;"      // needs qualifier fixed later
 6521|      0|                    "in highp int gl_InstanceID;"    // needs qualifier fixed later
 6522|      0|                    );
 6523|    148|            if (spvVersion.vulkan > 0)
  ------------------
  |  Branch (6523:17): [True: 148, False: 0]
  ------------------
 6524|    148|                stageBuiltins[EShLangVertex].append(
 6525|    148|                    "in highp int gl_VertexIndex;"
 6526|    148|                    "in highp int gl_InstanceIndex;"
 6527|    148|                    );
 6528|    148|            if (version < 310)
  ------------------
  |  Branch (6528:17): [True: 0, False: 148]
  ------------------
 6529|      0|                stageBuiltins[EShLangVertex].append(
 6530|      0|                    "highp vec4  gl_Position;"    // needs qualifier fixed later
 6531|      0|                    "highp float gl_PointSize;"   // needs qualifier fixed later
 6532|      0|                    "out highp float gl_ClipDistance[];"  // GL_EXT_clip_cull_distance
 6533|      0|                    "out highp float gl_CullDistance[];"  // GL_EXT_clip_cull_distance
 6534|      0|                    );
 6535|    148|            else
 6536|    148|                stageBuiltins[EShLangVertex].append(
 6537|    148|                    "out gl_PerVertex {"
 6538|    148|                        "highp vec4  gl_Position;"    // needs qualifier fixed later
 6539|    148|                        "highp float gl_PointSize;"   // needs qualifier fixed later
 6540|    148|                        "highp float gl_ClipDistance[];"  // GL_EXT_clip_cull_distance
 6541|    148|                        "highp float gl_CullDistance[];"  // GL_EXT_clip_cull_distance
 6542|    148|                    "};"
 6543|    148|                    );
 6544|    148|        }
 6545|    148|    }
 6546|       |
 6547|  1.42k|    if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (6547:10): [True: 1.27k, False: 148]
  |  Branch (6547:35): [True: 1.27k, False: 0]
  ------------------
 6548|  1.42k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6548:10): [True: 148, False: 0]
  |  Branch (6548:35): [True: 148, False: 0]
  ------------------
 6549|  1.42k|        stageBuiltins[EShLangVertex].append(
 6550|  1.42k|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 6551|  1.42k|            "in highp int gl_ViewIndex;"       // GL_EXT_multiview
 6552|  1.42k|            "\n");
 6553|  1.42k|    }
 6554|       |
 6555|  1.42k|    if (version >= 300 /* both ES and non-ES */) {
  ------------------
  |  Branch (6555:9): [True: 748, False: 672]
  ------------------
 6556|    748|        stageBuiltins[EShLangVertex].append(
 6557|    748|            "in highp uint gl_ViewID_OVR;"     // GL_OVR_multiview, GL_OVR_multiview2
 6558|    748|            "\n");
 6559|    748|    }
 6560|       |
 6561|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6561:10): [True: 1.27k, False: 148]
  |  Branch (6561:35): [True: 301, False: 971]
  |  Branch (6561:55): [True: 148, False: 971]
  |  Branch (6561:80): [True: 148, False: 0]
  ------------------
 6562|    449|        stageBuiltins[EShLangVertex].append(
 6563|    449|            "out highp int gl_PrimitiveShadingRateEXT;" // GL_EXT_fragment_shading_rate
 6564|    449|            "\n");
 6565|    449|    }
 6566|       |
 6567|       |    //============================================================================
 6568|       |    //
 6569|       |    // Define the interface to the geometry shader.
 6570|       |    //
 6571|       |    //============================================================================
 6572|       |
 6573|  1.42k|    if (profile == ECoreProfile || profile == ECompatibilityProfile) {
  ------------------
  |  Branch (6573:9): [True: 701, False: 719]
  |  Branch (6573:36): [True: 55, False: 664]
  ------------------
 6574|    756|        stageBuiltins[EShLangGeometry].append(
 6575|    756|            "in gl_PerVertex {"
 6576|    756|                "vec4 gl_Position;"
 6577|    756|                "float gl_PointSize;"
 6578|    756|                "float gl_ClipDistance[];"
 6579|    756|                "float gl_CullDistance[];"  // GL_ARB_cull_distance, core in 450
 6580|    756|                );
 6581|    756|        if (profile == ECompatibilityProfile)
  ------------------
  |  Branch (6581:13): [True: 55, False: 701]
  ------------------
 6582|     55|            stageBuiltins[EShLangGeometry].append(
 6583|     55|                "vec4 gl_ClipVertex;"
 6584|     55|                "vec4 gl_FrontColor;"
 6585|     55|                "vec4 gl_BackColor;"
 6586|     55|                "vec4 gl_FrontSecondaryColor;"
 6587|     55|                "vec4 gl_BackSecondaryColor;"
 6588|     55|                "vec4 gl_TexCoord[];"
 6589|     55|                "float gl_FogFragCoord;"
 6590|     55|                );
 6591|    756|        if (version >= 450)
  ------------------
  |  Branch (6591:13): [True: 301, False: 455]
  ------------------
 6592|    301|            stageBuiltins[EShLangGeometry].append(
 6593|    301|                "vec4 gl_SecondaryPositionNV;"   // GL_NV_stereo_view_rendering
 6594|    301|                "vec4 gl_PositionPerViewNV[];"   // GL_NVX_multiview_per_view_attributes
 6595|    301|                );
 6596|    756|        stageBuiltins[EShLangGeometry].append(
 6597|    756|            "} gl_in[];"
 6598|       |
 6599|    756|            "in int gl_PrimitiveIDIn;"
 6600|    756|            "out gl_PerVertex {"
 6601|    756|                "vec4 gl_Position;"
 6602|    756|                "float gl_PointSize;"
 6603|    756|                "float gl_ClipDistance[];"
 6604|    756|                "float gl_CullDistance[];"  // GL_ARB_cull_distance, core in 450
 6605|    756|                "\n");
 6606|    756|        if (profile == ECompatibilityProfile && version >= 400)
  ------------------
  |  Branch (6606:13): [True: 55, False: 701]
  |  Branch (6606:49): [True: 26, False: 29]
  ------------------
 6607|     26|            stageBuiltins[EShLangGeometry].append(
 6608|     26|                "vec4 gl_ClipVertex;"
 6609|     26|                "vec4 gl_FrontColor;"
 6610|     26|                "vec4 gl_BackColor;"
 6611|     26|                "vec4 gl_FrontSecondaryColor;"
 6612|     26|                "vec4 gl_BackSecondaryColor;"
 6613|     26|                "vec4 gl_TexCoord[];"
 6614|     26|                "float gl_FogFragCoord;"
 6615|     26|                );
 6616|    756|        stageBuiltins[EShLangGeometry].append(
 6617|    756|            "};"
 6618|       |
 6619|    756|            "out int gl_PrimitiveID;"
 6620|    756|            "out int gl_Layer;");
 6621|       |
 6622|    756|        if (version >= 150)
  ------------------
  |  Branch (6622:13): [True: 756, False: 0]
  ------------------
 6623|    756|            stageBuiltins[EShLangGeometry].append(
 6624|    756|            "out int gl_ViewportIndex;"
 6625|    756|            );
 6626|       |
 6627|    756|        if (profile == ECompatibilityProfile && version < 400)
  ------------------
  |  Branch (6627:13): [True: 55, False: 701]
  |  Branch (6627:49): [True: 29, False: 26]
  ------------------
 6628|     29|            stageBuiltins[EShLangGeometry].append(
 6629|     29|            "out vec4 gl_ClipVertex;"
 6630|     29|            );
 6631|       |
 6632|    756|        if (version >= 150)
  ------------------
  |  Branch (6632:13): [True: 756, False: 0]
  ------------------
 6633|    756|            stageBuiltins[EShLangGeometry].append(
 6634|    756|            "in int gl_InvocationID;"
 6635|    756|            );
 6636|       |
 6637|    756|        if (version >= 430)
  ------------------
  |  Branch (6637:13): [True: 536, False: 220]
  ------------------
 6638|    536|            stageBuiltins[EShLangGeometry].append(
 6639|    536|                "out int gl_ViewportMask[];"               // GL_NV_viewport_array2
 6640|    536|            );
 6641|       |
 6642|    756|        if (version >= 450)
  ------------------
  |  Branch (6642:13): [True: 301, False: 455]
  ------------------
 6643|    301|            stageBuiltins[EShLangGeometry].append(
 6644|    301|                "out int gl_SecondaryViewportMaskNV[];"    // GL_NV_stereo_view_rendering
 6645|    301|                "out vec4 gl_SecondaryPositionNV;"         // GL_NV_stereo_view_rendering
 6646|    301|                "out vec4 gl_PositionPerViewNV[];"         // GL_NVX_multiview_per_view_attributes
 6647|    301|                "out int  gl_ViewportMaskPerViewNV[];"     // GL_NVX_multiview_per_view_attributes
 6648|    301|            );
 6649|       |
 6650|    756|        stageBuiltins[EShLangGeometry].append("\n");
 6651|    756|    } else if (profile == EEsProfile && version >= 310) {
  ------------------
  |  Branch (6651:16): [True: 148, False: 516]
  |  Branch (6651:41): [True: 148, False: 0]
  ------------------
 6652|    148|        stageBuiltins[EShLangGeometry].append(
 6653|    148|            "in gl_PerVertex {"
 6654|    148|                "highp vec4 gl_Position;"
 6655|    148|                "highp float gl_PointSize;"
 6656|    148|                "highp float gl_ClipDistance[];"  // GL_EXT_clip_cull_distance
 6657|    148|                "highp float gl_CullDistance[];"  // GL_EXT_clip_cull_distance
 6658|    148|            "} gl_in[];"
 6659|    148|            "\n"
 6660|    148|            "in highp int gl_PrimitiveIDIn;"
 6661|    148|            "in highp int gl_InvocationID;"
 6662|    148|            "\n"
 6663|    148|            "out gl_PerVertex {"
 6664|    148|                "highp vec4 gl_Position;"
 6665|    148|                "highp float gl_PointSize;"
 6666|    148|                "highp float gl_ClipDistance[];"  // GL_EXT_clip_cull_distance
 6667|    148|                "highp float gl_CullDistance[];"  // GL_EXT_clip_cull_distance
 6668|    148|            "};"
 6669|    148|            "\n"
 6670|    148|            "out highp int gl_PrimitiveID;"
 6671|    148|            "out highp int gl_Layer;"
 6672|    148|            "\n"
 6673|    148|            );
 6674|    148|    }
 6675|       |
 6676|  1.42k|    if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (6676:10): [True: 1.27k, False: 148]
  |  Branch (6676:35): [True: 1.27k, False: 0]
  ------------------
 6677|  1.42k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6677:10): [True: 148, False: 0]
  |  Branch (6677:35): [True: 148, False: 0]
  ------------------
 6678|  1.42k|        stageBuiltins[EShLangGeometry].append(
 6679|  1.42k|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 6680|  1.42k|            "in highp int gl_ViewIndex;"       // GL_EXT_multiview
 6681|  1.42k|            "\n");
 6682|  1.42k|    }
 6683|       |
 6684|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6684:10): [True: 1.27k, False: 148]
  |  Branch (6684:35): [True: 301, False: 971]
  |  Branch (6684:55): [True: 148, False: 971]
  |  Branch (6684:80): [True: 148, False: 0]
  ------------------
 6685|    449|        stageBuiltins[EShLangGeometry].append(
 6686|    449|            "out highp int gl_PrimitiveShadingRateEXT;" // GL_EXT_fragment_shading_rate
 6687|    449|            "\n");
 6688|    449|    }
 6689|       |
 6690|       |    //============================================================================
 6691|       |    //
 6692|       |    // Define the interface to the tessellation control shader.
 6693|       |    //
 6694|       |    //============================================================================
 6695|       |
 6696|  1.42k|    if (profile != EEsProfile && version >= 150) {
  ------------------
  |  Branch (6696:9): [True: 1.27k, False: 148]
  |  Branch (6696:34): [True: 756, False: 516]
  ------------------
 6697|       |        // Note:  "in gl_PerVertex {...} gl_in[gl_MaxPatchVertices];" is declared in initialize() below,
 6698|       |        // as it depends on the resource sizing of gl_MaxPatchVertices.
 6699|       |
 6700|    756|        stageBuiltins[EShLangTessControl].append(
 6701|    756|            "in int gl_PatchVerticesIn;"
 6702|    756|            "in int gl_PrimitiveID;"
 6703|    756|            "in int gl_InvocationID;"
 6704|       |
 6705|    756|            "out gl_PerVertex {"
 6706|    756|                "vec4 gl_Position;"
 6707|    756|                "float gl_PointSize;"
 6708|    756|                "float gl_ClipDistance[];"
 6709|    756|                "float gl_CullDistance[];"  // GL_ARB_cull_distance, core in 450
 6710|    756|                );
 6711|    756|        if (profile == ECompatibilityProfile)
  ------------------
  |  Branch (6711:13): [True: 55, False: 701]
  ------------------
 6712|     55|            stageBuiltins[EShLangTessControl].append(
 6713|     55|                "vec4 gl_ClipVertex;"
 6714|     55|                "vec4 gl_FrontColor;"
 6715|     55|                "vec4 gl_BackColor;"
 6716|     55|                "vec4 gl_FrontSecondaryColor;"
 6717|     55|                "vec4 gl_BackSecondaryColor;"
 6718|     55|                "vec4 gl_TexCoord[];"
 6719|     55|                "float gl_FogFragCoord;"
 6720|     55|                );
 6721|    756|        if (version >= 430)
  ------------------
  |  Branch (6721:13): [True: 536, False: 220]
  ------------------
 6722|    536|            stageBuiltins[EShLangTessControl].append(
 6723|    536|                "int  gl_ViewportMask[];"             // GL_NV_viewport_array2
 6724|    536|            );
 6725|    756|        if (version >= 450)
  ------------------
  |  Branch (6725:13): [True: 301, False: 455]
  ------------------
 6726|    301|            stageBuiltins[EShLangTessControl].append(
 6727|    301|                "vec4 gl_SecondaryPositionNV;"        // GL_NV_stereo_view_rendering
 6728|    301|                "int  gl_SecondaryViewportMaskNV[];"  // GL_NV_stereo_view_rendering
 6729|    301|                "vec4 gl_PositionPerViewNV[];"        // GL_NVX_multiview_per_view_attributes
 6730|    301|                "int  gl_ViewportMaskPerViewNV[];"    // GL_NVX_multiview_per_view_attributes
 6731|    301|                );
 6732|       |        // Vulkan does not allow Layer or ViewportIndex in tessellation control shaders.
 6733|    756|        if (version >= 430 && spvVersion.vulkan == 0)
  ------------------
  |  Branch (6733:13): [True: 536, False: 220]
  |  Branch (6733:31): [True: 0, False: 536]
  ------------------
 6734|      0|            stageBuiltins[EShLangTessControl].append(
 6735|      0|                "int  gl_ViewportIndex;"              // GL_NV_viewport_array2
 6736|      0|                "int  gl_Layer;"                      // GL_NV_viewport_array2
 6737|      0|                );
 6738|    756|        stageBuiltins[EShLangTessControl].append(
 6739|    756|            "} gl_out[];"
 6740|       |
 6741|    756|            "patch out float gl_TessLevelOuter[4];"
 6742|    756|            "patch out float gl_TessLevelInner[2];"
 6743|    756|            "\n");
 6744|       |
 6745|    756|        if (version >= 410)
  ------------------
  |  Branch (6745:13): [True: 539, False: 217]
  ------------------
 6746|    539|            stageBuiltins[EShLangTessControl].append(
 6747|    539|                "out int gl_ViewportIndex;"
 6748|    539|                "out int gl_Layer;"
 6749|    539|                "\n");
 6750|       |
 6751|    756|    } else {
 6752|       |        // Note:  "in gl_PerVertex {...} gl_in[gl_MaxPatchVertices];" is declared in initialize() below,
 6753|       |        // as it depends on the resource sizing of gl_MaxPatchVertices.
 6754|       |
 6755|    664|        stageBuiltins[EShLangTessControl].append(
 6756|    664|            "in highp int gl_PatchVerticesIn;"
 6757|    664|            "in highp int gl_PrimitiveID;"
 6758|    664|            "in highp int gl_InvocationID;"
 6759|       |
 6760|    664|            "out gl_PerVertex {"
 6761|    664|                "highp vec4 gl_Position;"
 6762|    664|                "highp float gl_PointSize;"
 6763|    664|                );
 6764|    664|        if (profile == EEsProfile)
  ------------------
  |  Branch (6764:13): [True: 148, False: 516]
  ------------------
 6765|    148|            stageBuiltins[EShLangTessControl].append(
 6766|    148|                "highp float gl_ClipDistance[];"  // GL_EXT_clip_cull_distance
 6767|    148|                "highp float gl_CullDistance[];"  // GL_EXT_clip_cull_distance
 6768|    148|                );
 6769|    664|        stageBuiltins[EShLangTessControl].append(
 6770|    664|            "} gl_out[];"
 6771|       |
 6772|    664|            "patch out highp float gl_TessLevelOuter[4];"
 6773|    664|            "patch out highp float gl_TessLevelInner[2];"
 6774|    664|            "patch out highp vec4 gl_BoundingBoxOES[2];"
 6775|    664|            "patch out highp vec4 gl_BoundingBoxEXT[2];"
 6776|    664|            "\n");
 6777|    664|        if (profile == EEsProfile && version >= 320) {
  ------------------
  |  Branch (6777:13): [True: 148, False: 516]
  |  Branch (6777:38): [True: 7, False: 141]
  ------------------
 6778|      7|            stageBuiltins[EShLangTessControl].append(
 6779|      7|                "patch out highp vec4 gl_BoundingBox[2];"
 6780|      7|                "\n"
 6781|      7|            );
 6782|      7|        }
 6783|    664|    }
 6784|       |
 6785|  1.42k|    if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (6785:10): [True: 1.27k, False: 148]
  |  Branch (6785:35): [True: 1.27k, False: 0]
  ------------------
 6786|  1.42k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6786:10): [True: 148, False: 0]
  |  Branch (6786:35): [True: 148, False: 0]
  ------------------
 6787|  1.42k|        stageBuiltins[EShLangTessControl].append(
 6788|  1.42k|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 6789|  1.42k|            "in highp int gl_ViewIndex;"       // GL_EXT_multiview
 6790|  1.42k|            "\n");
 6791|  1.42k|    }
 6792|       |
 6793|       |    //============================================================================
 6794|       |    //
 6795|       |    // Define the interface to the tessellation evaluation shader.
 6796|       |    //
 6797|       |    //============================================================================
 6798|       |
 6799|  1.42k|    if (profile != EEsProfile && version >= 150) {
  ------------------
  |  Branch (6799:9): [True: 1.27k, False: 148]
  |  Branch (6799:34): [True: 756, False: 516]
  ------------------
 6800|       |        // Note:  "in gl_PerVertex {...} gl_in[gl_MaxPatchVertices];" is declared in initialize() below,
 6801|       |        // as it depends on the resource sizing of gl_MaxPatchVertices.
 6802|       |
 6803|    756|        stageBuiltins[EShLangTessEvaluation].append(
 6804|    756|            "in int gl_PatchVerticesIn;"
 6805|    756|            "in int gl_PrimitiveID;"
 6806|    756|            "in vec3 gl_TessCoord;"
 6807|       |
 6808|    756|            "patch in float gl_TessLevelOuter[4];"
 6809|    756|            "patch in float gl_TessLevelInner[2];"
 6810|       |
 6811|    756|            "out gl_PerVertex {"
 6812|    756|                "vec4 gl_Position;"
 6813|    756|                "float gl_PointSize;"
 6814|    756|                "float gl_ClipDistance[];"
 6815|    756|                "float gl_CullDistance[];"  // GL_ARB_cull_distance, core in 450
 6816|    756|            );
 6817|    756|        if (version >= 400 && profile == ECompatibilityProfile)
  ------------------
  |  Branch (6817:13): [True: 569, False: 187]
  |  Branch (6817:31): [True: 26, False: 543]
  ------------------
 6818|     26|            stageBuiltins[EShLangTessEvaluation].append(
 6819|     26|                "vec4 gl_ClipVertex;"
 6820|     26|                "vec4 gl_FrontColor;"
 6821|     26|                "vec4 gl_BackColor;"
 6822|     26|                "vec4 gl_FrontSecondaryColor;"
 6823|     26|                "vec4 gl_BackSecondaryColor;"
 6824|     26|                "vec4 gl_TexCoord[];"
 6825|     26|                "float gl_FogFragCoord;"
 6826|     26|                );
 6827|    756|        stageBuiltins[EShLangTessEvaluation].append(
 6828|    756|            "};"
 6829|    756|            "\n");
 6830|       |
 6831|    756|        if (version >= 410)
  ------------------
  |  Branch (6831:13): [True: 539, False: 217]
  ------------------
 6832|    539|            stageBuiltins[EShLangTessEvaluation].append(
 6833|    539|                "out int gl_ViewportIndex;"
 6834|    539|                "out int gl_Layer;"
 6835|    539|                "\n");
 6836|       |
 6837|    756|        if (version >= 430)
  ------------------
  |  Branch (6837:13): [True: 536, False: 220]
  ------------------
 6838|    536|            stageBuiltins[EShLangTessEvaluation].append(
 6839|    536|                "out int  gl_ViewportMask[];"             // GL_NV_viewport_array2
 6840|    536|            );
 6841|       |
 6842|    756|        if (version >= 450)
  ------------------
  |  Branch (6842:13): [True: 301, False: 455]
  ------------------
 6843|    301|            stageBuiltins[EShLangTessEvaluation].append(
 6844|    301|                "out vec4 gl_SecondaryPositionNV;"        // GL_NV_stereo_view_rendering
 6845|    301|                "out int  gl_SecondaryViewportMaskNV[];"  // GL_NV_stereo_view_rendering
 6846|    301|                "out vec4 gl_PositionPerViewNV[];"        // GL_NVX_multiview_per_view_attributes
 6847|    301|                "out int  gl_ViewportMaskPerViewNV[];"    // GL_NVX_multiview_per_view_attributes
 6848|    301|                );
 6849|       |
 6850|    756|    } else if (profile == EEsProfile && version >= 310) {
  ------------------
  |  Branch (6850:16): [True: 148, False: 516]
  |  Branch (6850:41): [True: 148, False: 0]
  ------------------
 6851|       |        // Note:  "in gl_PerVertex {...} gl_in[gl_MaxPatchVertices];" is declared in initialize() below,
 6852|       |        // as it depends on the resource sizing of gl_MaxPatchVertices.
 6853|       |
 6854|    148|        stageBuiltins[EShLangTessEvaluation].append(
 6855|    148|            "in highp int gl_PatchVerticesIn;"
 6856|    148|            "in highp int gl_PrimitiveID;"
 6857|    148|            "in highp vec3 gl_TessCoord;"
 6858|       |
 6859|    148|            "patch in highp float gl_TessLevelOuter[4];"
 6860|    148|            "patch in highp float gl_TessLevelInner[2];"
 6861|       |
 6862|    148|            "out gl_PerVertex {"
 6863|    148|                "highp vec4 gl_Position;"
 6864|    148|                "highp float gl_PointSize;"
 6865|    148|                "highp float gl_ClipDistance[];"  // GL_EXT_clip_cull_distance
 6866|    148|                "highp float gl_CullDistance[];"  // GL_EXT_clip_cull_distance
 6867|    148|            );
 6868|    148|        stageBuiltins[EShLangTessEvaluation].append(
 6869|    148|            "};"
 6870|    148|            "\n");
 6871|    148|    }
 6872|       |
 6873|  1.42k|    if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (6873:10): [True: 1.27k, False: 148]
  |  Branch (6873:35): [True: 1.27k, False: 0]
  ------------------
 6874|  1.42k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (6874:10): [True: 148, False: 0]
  |  Branch (6874:35): [True: 148, False: 0]
  ------------------
 6875|  1.42k|        stageBuiltins[EShLangTessEvaluation].append(
 6876|  1.42k|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 6877|  1.42k|            "in highp int gl_ViewIndex;"       // GL_EXT_multiview
 6878|  1.42k|            "\n");
 6879|  1.42k|    }
 6880|       |
 6881|       |    //============================================================================
 6882|       |    //
 6883|       |    // Define the interface to the fragment shader.
 6884|       |    //
 6885|       |    //============================================================================
 6886|       |
 6887|  1.42k|    if (profile != EEsProfile) {
  ------------------
  |  Branch (6887:9): [True: 1.27k, False: 148]
  ------------------
 6888|       |
 6889|  1.27k|        stageBuiltins[EShLangFragment].append(
 6890|  1.27k|            "vec4  gl_FragCoord;"   // needs qualifier fixed later
 6891|  1.27k|            "bool  gl_FrontFacing;" // needs qualifier fixed later
 6892|  1.27k|            "float gl_FragDepth;"   // needs qualifier fixed later
 6893|  1.27k|            );
 6894|  1.27k|        if (version >= 120)
  ------------------
  |  Branch (6894:13): [True: 1.27k, False: 0]
  ------------------
 6895|  1.27k|            stageBuiltins[EShLangFragment].append(
 6896|  1.27k|                "vec2 gl_PointCoord;"  // needs qualifier fixed later
 6897|  1.27k|                );
 6898|  1.27k|        if (version >= 140)
  ------------------
  |  Branch (6898:13): [True: 1.27k, False: 0]
  ------------------
 6899|  1.27k|            stageBuiltins[EShLangFragment].append(
 6900|  1.27k|                "out int gl_FragStencilRefARB;"
 6901|  1.27k|                );
 6902|  1.27k|        if (IncludeLegacy(version, profile, spvVersion) || (! ForwardCompatibility && version < 420))
  ------------------
  |  Branch (6902:13): [True: 55, False: 1.21k]
  |  Branch (6902:61): [True: 1.21k, Folded]
  |  Branch (6902:87): [True: 706, False: 511]
  ------------------
 6903|    761|            stageBuiltins[EShLangFragment].append(
 6904|    761|                "vec4 gl_FragColor;"   // needs qualifier fixed later
 6905|    761|                );
 6906|       |
 6907|  1.27k|        if (version < 130) {
  ------------------
  |  Branch (6907:13): [True: 0, False: 1.27k]
  ------------------
 6908|      0|            stageBuiltins[EShLangFragment].append(
 6909|      0|                "varying vec4  gl_Color;"
 6910|      0|                "varying vec4  gl_SecondaryColor;"
 6911|      0|                "varying vec4  gl_TexCoord[];"
 6912|      0|                "varying float gl_FogFragCoord;"
 6913|      0|                );
 6914|  1.27k|        } else {
 6915|  1.27k|            stageBuiltins[EShLangFragment].append(
 6916|  1.27k|                "in float gl_ClipDistance[];"
 6917|  1.27k|                "in float gl_CullDistance[];"  // GL_ARB_cull_distance, core in 450
 6918|  1.27k|                );
 6919|       |
 6920|  1.27k|            if (IncludeLegacy(version, profile, spvVersion)) {
  ------------------
  |  Branch (6920:17): [True: 55, False: 1.21k]
  ------------------
 6921|     55|                if (version < 150)
  ------------------
  |  Branch (6921:21): [True: 0, False: 55]
  ------------------
 6922|      0|                    stageBuiltins[EShLangFragment].append(
 6923|      0|                        "in float gl_FogFragCoord;"
 6924|      0|                        "in vec4  gl_TexCoord[];"
 6925|      0|                        "in vec4  gl_Color;"
 6926|      0|                        "in vec4  gl_SecondaryColor;"
 6927|      0|                        );
 6928|     55|                else
 6929|     55|                    stageBuiltins[EShLangFragment].append(
 6930|     55|                        "in gl_PerFragment {"
 6931|     55|                            "in float gl_FogFragCoord;"
 6932|     55|                            "in vec4  gl_TexCoord[];"
 6933|     55|                            "in vec4  gl_Color;"
 6934|     55|                            "in vec4  gl_SecondaryColor;"
 6935|     55|                        "};"
 6936|     55|                        );
 6937|     55|            }
 6938|  1.27k|        }
 6939|       |
 6940|  1.27k|        if (version >= 150)
  ------------------
  |  Branch (6940:13): [True: 756, False: 516]
  ------------------
 6941|    756|            stageBuiltins[EShLangFragment].append(
 6942|    756|                "flat in int gl_PrimitiveID;"
 6943|    756|                );
 6944|       |
 6945|  1.27k|        if (version >= 130) { // ARB_sample_shading
  ------------------
  |  Branch (6945:13): [True: 1.27k, False: 0]
  ------------------
 6946|  1.27k|            stageBuiltins[EShLangFragment].append(
 6947|  1.27k|                "flat in  int  gl_SampleID;"
 6948|  1.27k|                "     in  vec2 gl_SamplePosition;"
 6949|  1.27k|                "     out int  gl_SampleMask[];"
 6950|  1.27k|                );
 6951|       |
 6952|  1.27k|            if (spvVersion.spv == 0) {
  ------------------
  |  Branch (6952:17): [True: 0, False: 1.27k]
  ------------------
 6953|      0|                stageBuiltins[EShLangFragment].append(
 6954|      0|                    "uniform int gl_NumSamples;"
 6955|      0|                );
 6956|      0|            }
 6957|  1.27k|        }
 6958|       |
 6959|  1.27k|        if (version >= 150)
  ------------------
  |  Branch (6959:13): [True: 756, False: 516]
  ------------------
 6960|    756|            stageBuiltins[EShLangFragment].append(
 6961|    756|                "flat in  int  gl_SampleMaskIn[];"
 6962|    756|            );
 6963|       |
 6964|  1.27k|        if (version >= 430)
  ------------------
  |  Branch (6964:13): [True: 536, False: 736]
  ------------------
 6965|    536|            stageBuiltins[EShLangFragment].append(
 6966|    536|                "flat in int gl_Layer;"
 6967|    536|                "flat in int gl_ViewportIndex;"
 6968|    536|                );
 6969|       |
 6970|  1.27k|        if (version >= 450)
  ------------------
  |  Branch (6970:13): [True: 301, False: 971]
  ------------------
 6971|    301|            stageBuiltins[EShLangFragment].append(
 6972|    301|                "bool gl_HelperInvocation;"     // needs qualifier fixed later
 6973|    301|                );
 6974|       |
 6975|  1.27k|        if (version >= 450)
  ------------------
  |  Branch (6975:13): [True: 301, False: 971]
  ------------------
 6976|    301|            stageBuiltins[EShLangFragment].append( // GL_EXT_fragment_invocation_density
 6977|    301|                "flat in ivec2 gl_FragSizeEXT;"
 6978|    301|                "flat in int   gl_FragInvocationCountEXT;"
 6979|    301|                );
 6980|       |
 6981|  1.27k|        if (version >= 450)
  ------------------
  |  Branch (6981:13): [True: 301, False: 971]
  ------------------
 6982|    301|            stageBuiltins[EShLangFragment].append(
 6983|    301|                "in vec2 gl_BaryCoordNoPerspAMD;"
 6984|    301|                "in vec2 gl_BaryCoordNoPerspCentroidAMD;"
 6985|    301|                "in vec2 gl_BaryCoordNoPerspSampleAMD;"
 6986|    301|                "in vec2 gl_BaryCoordSmoothAMD;"
 6987|    301|                "in vec2 gl_BaryCoordSmoothCentroidAMD;"
 6988|    301|                "in vec2 gl_BaryCoordSmoothSampleAMD;"
 6989|    301|                "in vec3 gl_BaryCoordPullModelAMD;"
 6990|    301|                );
 6991|       |
 6992|  1.27k|        if (version >= 430)
  ------------------
  |  Branch (6992:13): [True: 536, False: 736]
  ------------------
 6993|    536|            stageBuiltins[EShLangFragment].append(
 6994|    536|                "in bool gl_FragFullyCoveredNV;"
 6995|    536|                );
 6996|  1.27k|        if (version >= 450)
  ------------------
  |  Branch (6996:13): [True: 301, False: 971]
  ------------------
 6997|    301|            stageBuiltins[EShLangFragment].append(
 6998|    301|                "flat in ivec2 gl_FragmentSizeNV;"          // GL_NV_shading_rate_image
 6999|    301|                "flat in int   gl_InvocationsPerPixelNV;"
 7000|    301|                "in vec3 gl_BaryCoordNV;"                   // GL_NV_fragment_shader_barycentric
 7001|    301|                "in vec3 gl_BaryCoordNoPerspNV;"
 7002|    301|                "in vec3 gl_BaryCoordEXT;"                  // GL_EXT_fragment_shader_barycentric
 7003|    301|                "in vec3 gl_BaryCoordNoPerspEXT;"
 7004|    301|                );
 7005|       |
 7006|  1.27k|        if (version >= 450)
  ------------------
  |  Branch (7006:13): [True: 301, False: 971]
  ------------------
 7007|    301|            stageBuiltins[EShLangFragment].append(
 7008|    301|                "flat in int gl_ShadingRateEXT;" // GL_EXT_fragment_shading_rate
 7009|    301|            );
 7010|       |
 7011|  1.27k|    } else {
 7012|       |        // ES profile
 7013|       |
 7014|    148|        if (version == 100) {
  ------------------
  |  Branch (7014:13): [True: 0, False: 148]
  ------------------
 7015|      0|            stageBuiltins[EShLangFragment].append(
 7016|      0|                "mediump vec4 gl_FragCoord;"    // needs qualifier fixed later
 7017|      0|                "        bool gl_FrontFacing;"  // needs qualifier fixed later
 7018|      0|                "mediump vec4 gl_FragColor;"    // needs qualifier fixed later
 7019|      0|                "mediump vec2 gl_PointCoord;"   // needs qualifier fixed later
 7020|      0|                );
 7021|      0|        }
 7022|    148|        if (version >= 300) {
  ------------------
  |  Branch (7022:13): [True: 148, False: 0]
  ------------------
 7023|    148|            stageBuiltins[EShLangFragment].append(
 7024|    148|                "highp   vec4  gl_FragCoord;"    // needs qualifier fixed later
 7025|    148|                "        bool  gl_FrontFacing;"  // needs qualifier fixed later
 7026|    148|                "mediump vec2  gl_PointCoord;"   // needs qualifier fixed later
 7027|    148|                "highp   float gl_FragDepth;"    // needs qualifier fixed later
 7028|    148|                "in highp float gl_ClipDistance[];"  // GL_EXT_clip_cull_distance
 7029|    148|                "in highp float gl_CullDistance[];"  // GL_EXT_clip_cull_distance
 7030|    148|                );
 7031|    148|        }
 7032|    148|        if (version >= 310) {
  ------------------
  |  Branch (7032:13): [True: 148, False: 0]
  ------------------
 7033|    148|            stageBuiltins[EShLangFragment].append(
 7034|    148|                "bool gl_HelperInvocation;"          // needs qualifier fixed later
 7035|    148|                "flat in highp int gl_PrimitiveID;"  // needs qualifier fixed later
 7036|    148|                "flat in highp int gl_Layer;"        // needs qualifier fixed later
 7037|    148|                );
 7038|       |
 7039|    148|            stageBuiltins[EShLangFragment].append(  // GL_OES_sample_variables
 7040|    148|                "flat  in lowp     int gl_SampleID;"
 7041|    148|                "      in mediump vec2 gl_SamplePosition;"
 7042|    148|                "flat  in highp    int gl_SampleMaskIn[];"
 7043|    148|                "     out highp    int gl_SampleMask[];"
 7044|    148|                );
 7045|    148|            if (spvVersion.spv == 0)
  ------------------
  |  Branch (7045:17): [True: 0, False: 148]
  ------------------
 7046|      0|                stageBuiltins[EShLangFragment].append(  // GL_OES_sample_variables
 7047|      0|                    "uniform lowp int gl_NumSamples;"
 7048|      0|                    );
 7049|    148|        }
 7050|    148|        stageBuiltins[EShLangFragment].append(
 7051|    148|            "highp float gl_FragDepthEXT;"       // GL_EXT_frag_depth
 7052|    148|            );
 7053|       |
 7054|    148|        if (version >= 310)
  ------------------
  |  Branch (7054:13): [True: 148, False: 0]
  ------------------
 7055|    148|            stageBuiltins[EShLangFragment].append( // GL_EXT_fragment_invocation_density
 7056|    148|                "flat in ivec2 gl_FragSizeEXT;"
 7057|    148|                "flat in int   gl_FragInvocationCountEXT;"
 7058|    148|            );
 7059|    148|        if (version >= 320)
  ------------------
  |  Branch (7059:13): [True: 7, False: 141]
  ------------------
 7060|      7|            stageBuiltins[EShLangFragment].append( // GL_NV_shading_rate_image
 7061|      7|                "flat in ivec2 gl_FragmentSizeNV;"
 7062|      7|                "flat in int   gl_InvocationsPerPixelNV;"
 7063|      7|            );
 7064|    148|        if (version >= 320)
  ------------------
  |  Branch (7064:13): [True: 7, False: 141]
  ------------------
 7065|      7|            stageBuiltins[EShLangFragment].append(
 7066|      7|                "in vec3 gl_BaryCoordNV;"
 7067|      7|                "in vec3 gl_BaryCoordNoPerspNV;"
 7068|      7|                "in vec3 gl_BaryCoordEXT;"
 7069|      7|                "in vec3 gl_BaryCoordNoPerspEXT;"
 7070|      7|            );
 7071|    148|        if (version >= 310)
  ------------------
  |  Branch (7071:13): [True: 148, False: 0]
  ------------------
 7072|    148|            stageBuiltins[EShLangFragment].append(
 7073|    148|                "flat in highp int gl_ShadingRateEXT;" // GL_EXT_fragment_shading_rate
 7074|    148|            );
 7075|    148|    }
 7076|       |
 7077|  1.42k|    stageBuiltins[EShLangFragment].append("\n");
 7078|       |
 7079|  1.42k|    if (version >= 130)
  ------------------
  |  Branch (7079:9): [True: 1.42k, False: 0]
  ------------------
 7080|  1.42k|        add2ndGenerationSamplingImaging(version, profile, spvVersion);
 7081|       |
 7082|  1.42k|    if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (7082:10): [True: 1.27k, False: 148]
  |  Branch (7082:35): [True: 1.27k, False: 0]
  ------------------
 7083|  1.42k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (7083:10): [True: 148, False: 0]
  |  Branch (7083:35): [True: 148, False: 0]
  ------------------
 7084|  1.42k|        stageBuiltins[EShLangFragment].append(
 7085|  1.42k|            "flat in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 7086|  1.42k|            "flat in highp int gl_ViewIndex;"       // GL_EXT_multiview
 7087|  1.42k|            "\n");
 7088|  1.42k|    }
 7089|       |
 7090|  1.42k|    if (version >= 300 /* both ES and non-ES */) {
  ------------------
  |  Branch (7090:9): [True: 748, False: 672]
  ------------------
 7091|    748|        stageBuiltins[EShLangFragment].append(
 7092|    748|            "flat in highp uint gl_ViewID_OVR;"     // GL_OVR_multiview, GL_OVR_multiview2
 7093|    748|            "\n");
 7094|    748|    }
 7095|       |
 7096|       |    // GL_QCOM_tile_shading
 7097|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (7097:10): [True: 148, False: 1.27k]
  |  Branch (7097:35): [True: 148, False: 0]
  ------------------
 7098|  1.27k|        (profile != EEsProfile && version >= 460)) {
  ------------------
  |  Branch (7098:10): [True: 1.27k, False: 0]
  |  Branch (7098:35): [True: 45, False: 1.22k]
  ------------------
 7099|    193|        stageBuiltins[EShLangFragment].append(
 7100|    193|            "flat in highp uvec2 gl_TileOffsetQCOM;"     // GL_QCOM_tile_shading
 7101|    193|            "flat in highp uvec3 gl_TileDimensionQCOM;"  // GL_QCOM_tile_shading
 7102|    193|            "flat in highp uvec2 gl_TileApronSizeQCOM;"  // GL_QCOM_tile_shading
 7103|    193|            "\n");
 7104|    193|    }
 7105|       |
 7106|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (7106:10): [True: 148, False: 1.27k]
  |  Branch (7106:35): [True: 148, False: 0]
  ------------------
 7107|  1.42k|        (profile != EEsProfile && version >= 130)) {
  ------------------
  |  Branch (7107:10): [True: 1.27k, False: 0]
  |  Branch (7107:35): [True: 1.27k, False: 0]
  ------------------
 7108|  1.42k|        addGatherFunctionsQCOM();
 7109|  1.42k|    }
 7110|       |
 7111|       |    // GL_ARB_shader_ballot
 7112|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (7112:9): [True: 1.27k, False: 148]
  |  Branch (7112:34): [True: 301, False: 971]
  ------------------
 7113|    301|        const char* ballotDecls =
 7114|    301|            "uniform uint gl_SubGroupSizeARB;"
 7115|    301|            "in uint     gl_SubGroupInvocationARB;"
 7116|    301|            "in uint64_t gl_SubGroupEqMaskARB;"
 7117|    301|            "in uint64_t gl_SubGroupGeMaskARB;"
 7118|    301|            "in uint64_t gl_SubGroupGtMaskARB;"
 7119|    301|            "in uint64_t gl_SubGroupLeMaskARB;"
 7120|    301|            "in uint64_t gl_SubGroupLtMaskARB;"
 7121|    301|            "\n";
 7122|    301|        const char* rtBallotDecls =
 7123|    301|            "uniform volatile uint gl_SubGroupSizeARB;"
 7124|    301|            "in volatile uint     gl_SubGroupInvocationARB;"
 7125|    301|            "in volatile uint64_t gl_SubGroupEqMaskARB;"
 7126|    301|            "in volatile uint64_t gl_SubGroupGeMaskARB;"
 7127|    301|            "in volatile uint64_t gl_SubGroupGtMaskARB;"
 7128|    301|            "in volatile uint64_t gl_SubGroupLeMaskARB;"
 7129|    301|            "in volatile uint64_t gl_SubGroupLtMaskARB;"
 7130|    301|            "\n";
 7131|    301|        const char* fragmentBallotDecls =
 7132|    301|            "uniform uint gl_SubGroupSizeARB;"
 7133|    301|            "flat in uint     gl_SubGroupInvocationARB;"
 7134|    301|            "flat in uint64_t gl_SubGroupEqMaskARB;"
 7135|    301|            "flat in uint64_t gl_SubGroupGeMaskARB;"
 7136|    301|            "flat in uint64_t gl_SubGroupGtMaskARB;"
 7137|    301|            "flat in uint64_t gl_SubGroupLeMaskARB;"
 7138|    301|            "flat in uint64_t gl_SubGroupLtMaskARB;"
 7139|    301|            "\n";
 7140|    301|        stageBuiltins[EShLangVertex]        .append(ballotDecls);
 7141|    301|        stageBuiltins[EShLangTessControl]   .append(ballotDecls);
 7142|    301|        stageBuiltins[EShLangTessEvaluation].append(ballotDecls);
 7143|    301|        stageBuiltins[EShLangGeometry]      .append(ballotDecls);
 7144|    301|        stageBuiltins[EShLangCompute]       .append(ballotDecls);
 7145|    301|        stageBuiltins[EShLangFragment]      .append(fragmentBallotDecls);
 7146|    301|        stageBuiltins[EShLangMesh]        .append(ballotDecls);
 7147|    301|        stageBuiltins[EShLangTask]        .append(ballotDecls);
 7148|    301|        stageBuiltins[EShLangRayGen]        .append(rtBallotDecls);
 7149|    301|        stageBuiltins[EShLangIntersect]     .append(rtBallotDecls);
 7150|       |        // No volatile qualifier on these builtins in any-hit
 7151|    301|        stageBuiltins[EShLangAnyHit]        .append(ballotDecls);
 7152|    301|        stageBuiltins[EShLangClosestHit]    .append(rtBallotDecls);
 7153|    301|        stageBuiltins[EShLangMiss]          .append(rtBallotDecls);
 7154|    301|        stageBuiltins[EShLangCallable]      .append(rtBallotDecls);
 7155|    301|    }
 7156|       |
 7157|       |    // GL_KHR_shader_subgroup
 7158|  1.42k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (7158:10): [True: 148, False: 1.27k]
  |  Branch (7158:35): [True: 148, False: 0]
  ------------------
 7159|  1.42k|        (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (7159:10): [True: 1.27k, False: 0]
  |  Branch (7159:35): [True: 1.27k, False: 0]
  ------------------
 7160|  1.42k|        const char* subgroupDecls =
 7161|  1.42k|            "in mediump uint  gl_SubgroupSize;"
 7162|  1.42k|            "in mediump uint  gl_SubgroupInvocationID;"
 7163|  1.42k|            "in highp   uvec4 gl_SubgroupEqMask;"
 7164|  1.42k|            "in highp   uvec4 gl_SubgroupGeMask;"
 7165|  1.42k|            "in highp   uvec4 gl_SubgroupGtMask;"
 7166|  1.42k|            "in highp   uvec4 gl_SubgroupLeMask;"
 7167|  1.42k|            "in highp   uvec4 gl_SubgroupLtMask;"
 7168|       |            // GL_NV_shader_sm_builtins
 7169|  1.42k|            "in highp   uint  gl_WarpsPerSMNV;"
 7170|  1.42k|            "in highp   uint  gl_SMCountNV;"
 7171|  1.42k|            "in highp   uint  gl_WarpIDNV;"
 7172|  1.42k|            "in highp   uint  gl_SMIDNV;"
 7173|       |            // GL_ARM_shader_core_builtins
 7174|  1.42k|            "in highp   uint  gl_CoreIDARM;"
 7175|  1.42k|            "in highp   uint  gl_CoreCountARM;"
 7176|  1.42k|            "in highp   uint  gl_CoreMaxIDARM;"
 7177|  1.42k|            "in highp   uint  gl_WarpIDARM;"
 7178|  1.42k|            "in highp   uint  gl_WarpMaxIDARM;"
 7179|  1.42k|            "\n";
 7180|  1.42k|        const char* fragmentSubgroupDecls =
 7181|  1.42k|            "flat in mediump uint  gl_SubgroupSize;"
 7182|  1.42k|            "flat in mediump uint  gl_SubgroupInvocationID;"
 7183|  1.42k|            "flat in highp   uvec4 gl_SubgroupEqMask;"
 7184|  1.42k|            "flat in highp   uvec4 gl_SubgroupGeMask;"
 7185|  1.42k|            "flat in highp   uvec4 gl_SubgroupGtMask;"
 7186|  1.42k|            "flat in highp   uvec4 gl_SubgroupLeMask;"
 7187|  1.42k|            "flat in highp   uvec4 gl_SubgroupLtMask;"
 7188|       |            // GL_NV_shader_sm_builtins
 7189|  1.42k|            "flat in highp   uint  gl_WarpsPerSMNV;"
 7190|  1.42k|            "flat in highp   uint  gl_SMCountNV;"
 7191|  1.42k|            "flat in highp   uint  gl_WarpIDNV;"
 7192|  1.42k|            "flat in highp   uint  gl_SMIDNV;"
 7193|       |            // GL_ARM_shader_core_builtins
 7194|  1.42k|            "flat in highp   uint  gl_CoreIDARM;"
 7195|  1.42k|            "flat in highp   uint  gl_CoreCountARM;"
 7196|  1.42k|            "flat in highp   uint  gl_CoreMaxIDARM;"
 7197|  1.42k|            "flat in highp   uint  gl_WarpIDARM;"
 7198|  1.42k|            "flat in highp   uint  gl_WarpMaxIDARM;"
 7199|  1.42k|            "\n";
 7200|  1.42k|        const char* computeSubgroupDecls =
 7201|  1.42k|            "in highp   uint  gl_NumSubgroups;"
 7202|  1.42k|            "in highp   uint  gl_SubgroupID;"
 7203|  1.42k|            "\n";
 7204|       |        // These builtins are volatile for RT stages
 7205|  1.42k|        const char* rtSubgroupDecls =
 7206|  1.42k|            "in mediump volatile uint  gl_SubgroupSize;"
 7207|  1.42k|            "in mediump volatile uint  gl_SubgroupInvocationID;"
 7208|  1.42k|            "in highp   volatile uvec4 gl_SubgroupEqMask;"
 7209|  1.42k|            "in highp   volatile uvec4 gl_SubgroupGeMask;"
 7210|  1.42k|            "in highp   volatile uvec4 gl_SubgroupGtMask;"
 7211|  1.42k|            "in highp   volatile uvec4 gl_SubgroupLeMask;"
 7212|  1.42k|            "in highp   volatile uvec4 gl_SubgroupLtMask;"
 7213|       |            // GL_NV_shader_sm_builtins
 7214|  1.42k|            "in highp    uint  gl_WarpsPerSMNV;"
 7215|  1.42k|            "in highp    uint  gl_SMCountNV;"
 7216|  1.42k|            "in highp volatile uint  gl_WarpIDNV;"
 7217|  1.42k|            "in highp volatile uint  gl_SMIDNV;"
 7218|       |            // GL_ARM_shader_core_builtins
 7219|  1.42k|            "in highp   uint  gl_CoreIDARM;"
 7220|  1.42k|            "in highp   uint  gl_CoreCountARM;"
 7221|  1.42k|            "in highp   uint  gl_CoreMaxIDARM;"
 7222|  1.42k|            "in highp   uint  gl_WarpIDARM;"
 7223|  1.42k|            "in highp   uint  gl_WarpMaxIDARM;"
 7224|  1.42k|            "\n";
 7225|       |
 7226|  1.42k|        stageBuiltins[EShLangVertex]        .append(subgroupDecls);
 7227|  1.42k|        stageBuiltins[EShLangTessControl]   .append(subgroupDecls);
 7228|  1.42k|        stageBuiltins[EShLangTessEvaluation].append(subgroupDecls);
 7229|  1.42k|        stageBuiltins[EShLangGeometry]      .append(subgroupDecls);
 7230|  1.42k|        stageBuiltins[EShLangCompute]       .append(subgroupDecls);
 7231|  1.42k|        stageBuiltins[EShLangCompute]       .append(computeSubgroupDecls);
 7232|  1.42k|        stageBuiltins[EShLangFragment]      .append(fragmentSubgroupDecls);
 7233|  1.42k|        stageBuiltins[EShLangMesh]        .append(subgroupDecls);
 7234|  1.42k|        stageBuiltins[EShLangMesh]        .append(computeSubgroupDecls);
 7235|  1.42k|        stageBuiltins[EShLangTask]        .append(subgroupDecls);
 7236|  1.42k|        stageBuiltins[EShLangTask]        .append(computeSubgroupDecls);
 7237|  1.42k|        stageBuiltins[EShLangRayGen]        .append(rtSubgroupDecls);
 7238|  1.42k|        stageBuiltins[EShLangIntersect]     .append(rtSubgroupDecls);
 7239|       |        // No volatile qualifier on these builtins in any-hit
 7240|  1.42k|        stageBuiltins[EShLangAnyHit]        .append(subgroupDecls);
 7241|  1.42k|        stageBuiltins[EShLangClosestHit]    .append(rtSubgroupDecls);
 7242|  1.42k|        stageBuiltins[EShLangMiss]          .append(rtSubgroupDecls);
 7243|  1.42k|        stageBuiltins[EShLangCallable]      .append(rtSubgroupDecls);
 7244|  1.42k|    }
 7245|       |
 7246|       |    // GL_NV_ray_tracing/GL_EXT_ray_tracing
 7247|  1.42k|    if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (7247:9): [True: 1.27k, False: 148]
  |  Branch (7247:34): [True: 45, False: 1.22k]
  ------------------
 7248|       |
 7249|     45|        const char *constRayFlags =
 7250|     45|            "const uint gl_RayFlagsNoneNV = 0U;"
 7251|     45|            "const uint gl_RayFlagsNoneEXT = 0U;"
 7252|     45|            "const uint gl_RayFlagsOpaqueNV = 1U;"
 7253|     45|            "const uint gl_RayFlagsOpaqueEXT = 1U;"
 7254|     45|            "const uint gl_RayFlagsNoOpaqueNV = 2U;"
 7255|     45|            "const uint gl_RayFlagsNoOpaqueEXT = 2U;"
 7256|     45|            "const uint gl_RayFlagsTerminateOnFirstHitNV = 4U;"
 7257|     45|            "const uint gl_RayFlagsTerminateOnFirstHitEXT = 4U;"
 7258|     45|            "const uint gl_RayFlagsSkipClosestHitShaderNV = 8U;"
 7259|     45|            "const uint gl_RayFlagsSkipClosestHitShaderEXT = 8U;"
 7260|     45|            "const uint gl_RayFlagsCullBackFacingTrianglesNV = 16U;"
 7261|     45|            "const uint gl_RayFlagsCullBackFacingTrianglesEXT = 16U;"
 7262|     45|            "const uint gl_RayFlagsCullFrontFacingTrianglesNV = 32U;"
 7263|     45|            "const uint gl_RayFlagsCullFrontFacingTrianglesEXT = 32U;"
 7264|     45|            "const uint gl_RayFlagsCullOpaqueNV = 64U;"
 7265|     45|            "const uint gl_RayFlagsCullOpaqueEXT = 64U;"
 7266|     45|            "const uint gl_RayFlagsCullNoOpaqueNV = 128U;"
 7267|     45|            "const uint gl_RayFlagsCullNoOpaqueEXT = 128U;"
 7268|     45|            "const uint gl_RayFlagsSkipTrianglesEXT = 256U;"
 7269|     45|            "const uint gl_RayFlagsSkipBuiltinPrimitivesNV = 256U;"
 7270|     45|            "const uint gl_RayFlagsSkipAABBEXT = 512U;"
 7271|     45|            "const uint gl_RayFlagsForceOpacityMicromap2StateEXT = 1024U;"
 7272|     45|            "const bool gl_EnableOpacityMicromapEXT = false;"
 7273|     45|            "const uint gl_HitKindFrontFacingTriangleEXT = 254U;"
 7274|     45|            "const uint gl_HitKindBackFacingTriangleEXT = 255U;"
 7275|     45|            "in    uint gl_HitKindFrontFacingMicroTriangleNV;"
 7276|     45|            "in    uint gl_HitKindBackFacingMicroTriangleNV;"
 7277|     45|            "const int  gl_ClusterIDNoneNV = -1;"
 7278|     45|            "\n";
 7279|       |
 7280|     45|        const char *constRayQueryIntersection =
 7281|     45|            "const uint gl_RayQueryCandidateIntersectionEXT = 0U;"
 7282|     45|            "const uint gl_RayQueryCommittedIntersectionEXT = 1U;"
 7283|     45|            "const uint gl_RayQueryCommittedIntersectionNoneEXT = 0U;"
 7284|     45|            "const uint gl_RayQueryCommittedIntersectionTriangleEXT = 1U;"
 7285|     45|            "const uint gl_RayQueryCommittedIntersectionGeneratedEXT = 2U;"
 7286|     45|            "const uint gl_RayQueryCandidateIntersectionTriangleEXT = 0U;"
 7287|     45|            "const uint gl_RayQueryCandidateIntersectionAABBEXT = 1U;"
 7288|     45|            "\n";
 7289|       |
 7290|     45|        const char *rayGenDecls =
 7291|     45|            "in    uvec3  gl_LaunchIDNV;"
 7292|     45|            "in    uvec3  gl_LaunchIDEXT;"
 7293|     45|            "in    uvec3  gl_LaunchSizeNV;"
 7294|     45|            "in    uvec3  gl_LaunchSizeEXT;"
 7295|     45|            "\n";
 7296|     45|        const char* intersectDecls = "in    uvec3  gl_LaunchIDNV;"
 7297|     45|                                     "in    uvec3  gl_LaunchIDEXT;"
 7298|     45|                                     "in    uvec3  gl_LaunchSizeNV;"
 7299|     45|                                     "in    uvec3  gl_LaunchSizeEXT;"
 7300|     45|                                     "in     int   gl_PrimitiveID;"
 7301|     45|                                     "in     int   gl_InstanceID;"
 7302|     45|                                     "in     int   gl_InstanceCustomIndexNV;"
 7303|     45|                                     "in     int   gl_InstanceCustomIndexEXT;"
 7304|     45|                                     "in     int   gl_GeometryIndexEXT;"
 7305|     45|                                     "in    vec3   gl_WorldRayOriginNV;"
 7306|     45|                                     "in    vec3   gl_WorldRayOriginEXT;"
 7307|     45|                                     "in    vec3   gl_WorldRayDirectionNV;"
 7308|     45|                                     "in    vec3   gl_WorldRayDirectionEXT;"
 7309|     45|                                     "in    vec3   gl_ObjectRayOriginNV;"
 7310|     45|                                     "in    vec3   gl_ObjectRayOriginEXT;"
 7311|     45|                                     "in    vec3   gl_ObjectRayDirectionNV;"
 7312|     45|                                     "in    vec3   gl_ObjectRayDirectionEXT;"
 7313|     45|                                     "in    float  gl_RayTminNV;"
 7314|     45|                                     "in    float  gl_RayTminEXT;"
 7315|     45|                                     "in volatile float gl_RayTmaxNV;"
 7316|     45|                                     "in volatile float gl_RayTmaxEXT;"
 7317|     45|                                     "in    mat4x3 gl_ObjectToWorldNV;"
 7318|     45|                                     "in    mat4x3 gl_ObjectToWorldEXT;"
 7319|     45|                                     "in    mat3x4 gl_ObjectToWorld3x4EXT;"
 7320|     45|                                     "in    mat4x3 gl_WorldToObjectNV;"
 7321|     45|                                     "in    mat4x3 gl_WorldToObjectEXT;"
 7322|     45|                                     "in    mat3x4 gl_WorldToObject3x4EXT;"
 7323|     45|                                     "in    uint   gl_IncomingRayFlagsNV;"
 7324|     45|                                     "in    uint   gl_IncomingRayFlagsEXT;"
 7325|     45|                                     "in    float  gl_CurrentRayTimeNV;"
 7326|     45|                                     "in    uint   gl_CullMaskEXT;"
 7327|     45|                                     "\n";
 7328|     45|        const char *hitDecls =
 7329|     45|            "in    uvec3  gl_LaunchIDNV;"
 7330|     45|            "in    uvec3  gl_LaunchIDEXT;"
 7331|     45|            "in    uvec3  gl_LaunchSizeNV;"
 7332|     45|            "in    uvec3  gl_LaunchSizeEXT;"
 7333|     45|            "in     int   gl_PrimitiveID;"
 7334|     45|            "in     int   gl_InstanceID;"
 7335|     45|            "in     int   gl_InstanceCustomIndexNV;"
 7336|     45|            "in     int   gl_InstanceCustomIndexEXT;"
 7337|     45|            "in     int   gl_GeometryIndexEXT;"
 7338|     45|            "in    vec3   gl_WorldRayOriginNV;"
 7339|     45|            "in    vec3   gl_WorldRayOriginEXT;"
 7340|     45|            "in    vec3   gl_WorldRayDirectionNV;"
 7341|     45|            "in    vec3   gl_WorldRayDirectionEXT;"
 7342|     45|            "in    vec3   gl_ObjectRayOriginNV;"
 7343|     45|            "in    vec3   gl_ObjectRayOriginEXT;"
 7344|     45|            "in    vec3   gl_ObjectRayDirectionNV;"
 7345|     45|            "in    vec3   gl_ObjectRayDirectionEXT;"
 7346|     45|            "in    float  gl_RayTminNV;"
 7347|     45|            "in    float  gl_RayTminEXT;"
 7348|     45|            "in    float  gl_RayTmaxNV;"
 7349|     45|            "in    float  gl_RayTmaxEXT;"
 7350|     45|            "in    float  gl_HitTNV;"
 7351|     45|            "in    float  gl_HitTEXT;"
 7352|     45|            "in    uint   gl_HitKindNV;"
 7353|     45|            "in    uint   gl_HitKindEXT;"
 7354|     45|            "in    mat4x3 gl_ObjectToWorldNV;"
 7355|     45|            "in    mat4x3 gl_ObjectToWorldEXT;"
 7356|     45|            "in    mat3x4 gl_ObjectToWorld3x4EXT;"
 7357|     45|            "in    mat4x3 gl_WorldToObjectNV;"
 7358|     45|            "in    mat4x3 gl_WorldToObjectEXT;"
 7359|     45|            "in    mat3x4 gl_WorldToObject3x4EXT;"
 7360|     45|            "in    uint   gl_IncomingRayFlagsNV;"
 7361|     45|            "in    uint   gl_IncomingRayFlagsEXT;"
 7362|     45|            "in    float  gl_CurrentRayTimeNV;"
 7363|     45|            "in    uint   gl_CullMaskEXT;"
 7364|     45|            "in    vec3   gl_HitTriangleVertexPositionsEXT[3];"
 7365|     45|            "in    vec3   gl_HitMicroTriangleVertexPositionsNV[3];"
 7366|     45|            "in    vec2   gl_HitMicroTriangleVertexBarycentricsNV[3];"
 7367|     45|            "in    int    gl_ClusterIDNV;"
 7368|     45|            "in    bool   gl_HitIsSphereNV;"
 7369|     45|            "in    bool   gl_HitIsLSSNV;"
 7370|     45|            "in    vec3   gl_HitSpherePositionNV;"
 7371|     45|            "in    float  gl_HitSphereRadiusNV;"
 7372|     45|            "in    vec3   gl_HitLSSPositionsNV[2];"
 7373|     45|            "in    float  gl_HitLSSRadiiNV[2];"
 7374|     45|            "\n";
 7375|       |
 7376|     45|        const char *missDecls =
 7377|     45|            "in    uvec3  gl_LaunchIDNV;"
 7378|     45|            "in    uvec3  gl_LaunchIDEXT;"
 7379|     45|            "in    uvec3  gl_LaunchSizeNV;"
 7380|     45|            "in    uvec3  gl_LaunchSizeEXT;"
 7381|     45|            "in    vec3   gl_WorldRayOriginNV;"
 7382|     45|            "in    vec3   gl_WorldRayOriginEXT;"
 7383|     45|            "in    vec3   gl_WorldRayDirectionNV;"
 7384|     45|            "in    vec3   gl_WorldRayDirectionEXT;"
 7385|     45|            "in    vec3   gl_ObjectRayOriginNV;"
 7386|     45|            "in    vec3   gl_ObjectRayDirectionNV;"
 7387|     45|            "in    float  gl_RayTminNV;"
 7388|     45|            "in    float  gl_RayTminEXT;"
 7389|     45|            "in    float  gl_RayTmaxNV;"
 7390|     45|            "in    float  gl_RayTmaxEXT;"
 7391|     45|            "in    uint   gl_IncomingRayFlagsNV;"
 7392|     45|            "in    uint   gl_IncomingRayFlagsEXT;"
 7393|     45|            "in    float  gl_CurrentRayTimeNV;"
 7394|     45|            "in    uint   gl_CullMaskEXT;"
 7395|     45|            "\n";
 7396|       |
 7397|     45|        const char *callableDecls =
 7398|     45|            "in    uvec3  gl_LaunchIDNV;"
 7399|     45|            "in    uvec3  gl_LaunchIDEXT;"
 7400|     45|            "in    uvec3  gl_LaunchSizeNV;"
 7401|     45|            "in    uvec3  gl_LaunchSizeEXT;"
 7402|     45|            "\n";
 7403|       |
 7404|       |
 7405|     45|        commonBuiltins.append(constRayQueryIntersection);
 7406|     45|        commonBuiltins.append(constRayFlags);
 7407|       |
 7408|     45|        stageBuiltins[EShLangRayGen].append(rayGenDecls);
 7409|     45|        stageBuiltins[EShLangIntersect].append(intersectDecls);
 7410|     45|        stageBuiltins[EShLangAnyHit].append(hitDecls);
 7411|     45|        stageBuiltins[EShLangClosestHit].append(hitDecls);
 7412|     45|        stageBuiltins[EShLangMiss].append(missDecls);
 7413|     45|        stageBuiltins[EShLangCallable].append(callableDecls);
 7414|       |
 7415|     45|    }
 7416|       |
 7417|  1.42k|    if ((profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (7417:10): [True: 1.27k, False: 148]
  |  Branch (7417:35): [True: 1.27k, False: 0]
  ------------------
 7418|  1.27k|        const char *deviceIndex =
 7419|  1.27k|            "in highp int gl_DeviceIndex;"     // GL_EXT_device_group
 7420|  1.27k|            "\n";
 7421|       |
 7422|  1.27k|        stageBuiltins[EShLangRayGen].append(deviceIndex);
 7423|  1.27k|        stageBuiltins[EShLangIntersect].append(deviceIndex);
 7424|  1.27k|        stageBuiltins[EShLangAnyHit].append(deviceIndex);
 7425|  1.27k|        stageBuiltins[EShLangClosestHit].append(deviceIndex);
 7426|  1.27k|        stageBuiltins[EShLangMiss].append(deviceIndex);
 7427|  1.27k|    }
 7428|       |
 7429|  1.42k|    if ((profile != EEsProfile && version >= 420) ||
  ------------------
  |  Branch (7429:10): [True: 1.27k, False: 148]
  |  Branch (7429:35): [True: 537, False: 735]
  ------------------
 7430|    883|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (7430:10): [True: 148, False: 735]
  |  Branch (7430:35): [True: 148, False: 0]
  ------------------
 7431|    685|        commonBuiltins.append("const int gl_ScopeDevice      = 1;\n");
 7432|    685|        commonBuiltins.append("const int gl_ScopeWorkgroup   = 2;\n");
 7433|    685|        commonBuiltins.append("const int gl_ScopeSubgroup    = 3;\n");
 7434|    685|        commonBuiltins.append("const int gl_ScopeInvocation  = 4;\n");
 7435|    685|        commonBuiltins.append("const int gl_ScopeQueueFamily = 5;\n");
 7436|    685|        commonBuiltins.append("const int gl_ScopeShaderCallEXT = 6;\n");
 7437|       |
 7438|    685|        commonBuiltins.append("const int gl_SemanticsRelaxed         = 0x0;\n");
 7439|    685|        commonBuiltins.append("const int gl_SemanticsAcquire         = 0x2;\n");
 7440|    685|        commonBuiltins.append("const int gl_SemanticsRelease         = 0x4;\n");
 7441|    685|        commonBuiltins.append("const int gl_SemanticsAcquireRelease  = 0x8;\n");
 7442|    685|        commonBuiltins.append("const int gl_SemanticsMakeAvailable   = 0x2000;\n");
 7443|    685|        commonBuiltins.append("const int gl_SemanticsMakeVisible     = 0x4000;\n");
 7444|    685|        commonBuiltins.append("const int gl_SemanticsVolatile        = 0x8000;\n");
 7445|       |
 7446|    685|        commonBuiltins.append("const int gl_StorageSemanticsNone     = 0x0;\n");
 7447|    685|        commonBuiltins.append("const int gl_StorageSemanticsBuffer   = 0x40;\n");
 7448|    685|        commonBuiltins.append("const int gl_StorageSemanticsShared   = 0x100;\n");
 7449|    685|        commonBuiltins.append("const int gl_StorageSemanticsImage    = 0x800;\n");
 7450|    685|        commonBuiltins.append("const int gl_StorageSemanticsOutput   = 0x1000;\n");
 7451|    685|    }
 7452|       |
 7453|       |    // Adding these to common built-ins triggers an assert due to a memory corruption in related code when testing
 7454|       |    // So instead add to each stage individually, avoiding the GLSLang bug
 7455|  1.42k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (7455:10): [True: 1.27k, False: 148]
  |  Branch (7455:35): [True: 301, False: 971]
  |  Branch (7455:55): [True: 148, False: 971]
  |  Branch (7455:80): [True: 148, False: 0]
  ------------------
 7456|  6.73k|        for (int stage=EShLangVertex; stage<EShLangCount; stage++)
  ------------------
  |  Branch (7456:39): [True: 6.28k, False: 449]
  ------------------
 7457|  6.28k|        {
 7458|  6.28k|            stageBuiltins[static_cast<EShLanguage>(stage)].append("const highp int gl_ShadingRateFlag2VerticalPixelsEXT       = 1;\n");
 7459|  6.28k|            stageBuiltins[static_cast<EShLanguage>(stage)].append("const highp int gl_ShadingRateFlag4VerticalPixelsEXT       = 2;\n");
 7460|  6.28k|            stageBuiltins[static_cast<EShLanguage>(stage)].append("const highp int gl_ShadingRateFlag2HorizontalPixelsEXT     = 4;\n");
 7461|  6.28k|            stageBuiltins[static_cast<EShLanguage>(stage)].append("const highp int gl_ShadingRateFlag4HorizontalPixelsEXT     = 8;\n");
 7462|  6.28k|        }
 7463|    449|    }
 7464|       |
 7465|       |    // GL_EXT_shader_image_int64
 7466|  1.42k|    if ((profile != EEsProfile && version >= 420) ||
  ------------------
  |  Branch (7466:10): [True: 1.27k, False: 148]
  |  Branch (7466:35): [True: 537, False: 735]
  ------------------
 7467|    883|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (7467:10): [True: 148, False: 735]
  |  Branch (7467:35): [True: 148, False: 0]
  ------------------
 7468|       |
 7469|    685|        const TBasicType bTypes[] = { EbtInt64, EbtUint64 };
 7470|  2.05k|        for (int ms = 0; ms <= 1; ++ms) { // loop over "bool" multisample or not
  ------------------
  |  Branch (7470:26): [True: 1.37k, False: 685]
  ------------------
 7471|  4.11k|            for (int arrayed = 0; arrayed <= 1; ++arrayed) { // loop over "bool" arrayed or not
  ------------------
  |  Branch (7471:35): [True: 2.74k, False: 1.37k]
  ------------------
 7472|  19.1k|                for (int dim = Esd1D; dim < EsdSubpass; ++dim) { // 1D, ..., buffer
  ------------------
  |  Branch (7472:39): [True: 16.4k, False: 2.74k]
  ------------------
 7473|  16.4k|                    if ((dim == Esd1D || dim == EsdRect) && profile == EEsProfile)
  ------------------
  |  Branch (7473:26): [True: 2.74k, False: 13.7k]
  |  Branch (7473:42): [True: 2.74k, False: 10.9k]
  |  Branch (7473:61): [True: 1.18k, False: 4.29k]
  ------------------
 7474|  1.18k|                        continue;
 7475|       |
 7476|  15.2k|                    if ((dim == Esd3D || dim == EsdRect || dim == EsdBuffer) && arrayed)
  ------------------
  |  Branch (7476:26): [True: 2.74k, False: 12.5k]
  |  Branch (7476:42): [True: 2.14k, False: 10.3k]
  |  Branch (7476:60): [True: 2.74k, False: 7.62k]
  |  Branch (7476:81): [True: 3.81k, False: 3.81k]
  ------------------
 7477|  3.81k|                        continue;
 7478|       |
 7479|  11.4k|                    if (dim != Esd2D && ms)
  ------------------
  |  Branch (7479:25): [True: 8.70k, False: 2.74k]
  |  Branch (7479:41): [True: 4.35k, False: 4.35k]
  ------------------
 7480|  4.35k|                        continue;
 7481|       |
 7482|  7.09k|                    if (dim == EsdRect && spvVersion.vulkan > 0)
  ------------------
  |  Branch (7482:25): [True: 537, False: 6.55k]
  |  Branch (7482:43): [True: 537, False: 0]
  ------------------
 7483|    537|                        continue;
 7484|       |
 7485|       |                    // Loop over the bTypes
 7486|  19.6k|                    for (size_t bType = 0; bType < sizeof(bTypes)/sizeof(TBasicType); ++bType) {
  ------------------
  |  Branch (7486:44): [True: 13.1k, False: 6.55k]
  ------------------
 7487|       |                        //
 7488|       |                        // Now, make all the function prototypes for the type we just built...
 7489|       |                        //
 7490|  13.1k|                        TSampler sampler;
 7491|       |
 7492|  13.1k|                        sampler.setImage(bTypes[bType], (TSamplerDim)dim, arrayed ? true : false,
  ------------------
  |  Branch (7492:75): [True: 5.18k, False: 7.92k]
  ------------------
 7493|  13.1k|                                                                          false,
 7494|  13.1k|                                                                          ms      ? true : false);
  ------------------
  |  Branch (7494:75): [True: 2.74k, False: 10.3k]
  ------------------
 7495|       |
 7496|  13.1k|                        TString typeName = TString{sampler.getString()};
 7497|       |
 7498|  13.1k|                        addQueryFunctions(sampler, typeName, version, profile);
 7499|  13.1k|                        addImageFunctions(sampler, typeName, version, profile);
 7500|  13.1k|                    }
 7501|  6.55k|                }
 7502|  2.74k|            }
 7503|  1.37k|        }
 7504|    685|    }
 7505|       |
 7506|       |    // printf("%s\n", commonBuiltins.c_str());
 7507|       |    // printf("%s\n", stageBuiltins[EShLangFragment].c_str());
 7508|  1.42k|}
_ZN7glslang9TBuiltIns31add2ndGenerationSamplingImagingEi8EProfileRKNS_10SpvVersionE:
 7515|  1.42k|{
 7516|       |    //
 7517|       |    // In this function proper, enumerate the types, then calls the next set of functions
 7518|       |    // to enumerate all the uses for that type.
 7519|       |    //
 7520|       |
 7521|       |    // enumerate all the types
 7522|  1.42k|    const TBasicType bTypes[] = { EbtFloat, EbtInt, EbtUint,
 7523|  1.42k|         EbtFloat16
 7524|  1.42k|    };
 7525|  1.42k|    bool skipBuffer = (profile == EEsProfile && version < 310) || (profile != EEsProfile && version < 140);
  ------------------
  |  Branch (7525:24): [True: 148, False: 1.27k]
  |  Branch (7525:49): [True: 0, False: 148]
  |  Branch (7525:68): [True: 1.27k, False: 148]
  |  Branch (7525:93): [True: 0, False: 1.27k]
  ------------------
 7526|  1.42k|    bool skipCubeArrayed = (profile == EEsProfile && version < 310) || (profile != EEsProfile && version < 130);
  ------------------
  |  Branch (7526:29): [True: 148, False: 1.27k]
  |  Branch (7526:54): [True: 0, False: 148]
  |  Branch (7526:73): [True: 1.27k, False: 148]
  |  Branch (7526:98): [True: 0, False: 1.27k]
  ------------------
 7527|  4.26k|    for (int image = 0; image <= 1; ++image) // loop over "bool" image vs sampler
  ------------------
  |  Branch (7527:25): [True: 2.84k, False: 1.42k]
  ------------------
 7528|  2.84k|    {
 7529|  8.52k|        for (int shadow = 0; shadow <= 1; ++shadow) { // loop over "bool" shadow or not
  ------------------
  |  Branch (7529:30): [True: 5.68k, False: 2.84k]
  ------------------
 7530|  17.0k|            for (int ms = 0; ms <= 1; ++ms) // loop over "bool" multisample or not
  ------------------
  |  Branch (7530:30): [True: 11.3k, False: 5.68k]
  ------------------
 7531|  11.3k|            {
 7532|  11.3k|                if ((ms || image) && shadow)
  ------------------
  |  Branch (7532:22): [True: 5.68k, False: 5.68k]
  |  Branch (7532:28): [True: 2.84k, False: 2.84k]
  |  Branch (7532:38): [True: 4.26k, False: 4.26k]
  ------------------
 7533|  4.26k|                    continue;
 7534|  7.10k|                if (ms && profile != EEsProfile && version < 140)
  ------------------
  |  Branch (7534:21): [True: 2.84k, False: 4.26k]
  |  Branch (7534:27): [True: 2.54k, False: 296]
  |  Branch (7534:52): [True: 0, False: 2.54k]
  ------------------
 7535|      0|                    continue;
 7536|  7.10k|                if (ms && image && profile == EEsProfile)
  ------------------
  |  Branch (7536:21): [True: 2.84k, False: 4.26k]
  |  Branch (7536:27): [True: 1.42k, False: 1.42k]
  |  Branch (7536:36): [True: 148, False: 1.27k]
  ------------------
 7537|    148|                    continue;
 7538|  6.95k|                if (ms && profile == EEsProfile && version < 310)
  ------------------
  |  Branch (7538:21): [True: 2.69k, False: 4.26k]
  |  Branch (7538:27): [True: 148, False: 2.54k]
  |  Branch (7538:52): [True: 0, False: 148]
  ------------------
 7539|      0|                    continue;
 7540|       |
 7541|  20.8k|                for (int arrayed = 0; arrayed <= 1; ++arrayed) { // loop over "bool" arrayed or not
  ------------------
  |  Branch (7541:39): [True: 13.9k, False: 6.95k]
  ------------------
 7542|   125k|                    for (int dim = Esd1D; dim < EsdNumDims; ++dim) { // 1D, ..., buffer, subpass
  ------------------
  |  Branch (7542:43): [True: 111k, False: 13.9k]
  ------------------
 7543|   111k|                        if (dim == EsdAttachmentEXT)
  ------------------
  |  Branch (7543:29): [True: 13.9k, False: 97.3k]
  ------------------
 7544|  13.9k|                            continue;
 7545|  97.3k|                        if (dim == EsdSubpass && spvVersion.vulkan == 0)
  ------------------
  |  Branch (7545:29): [True: 13.9k, False: 83.4k]
  |  Branch (7545:50): [True: 0, False: 13.9k]
  ------------------
 7546|      0|                            continue;
 7547|  97.3k|                        if (dim == EsdSubpass && (image || shadow || arrayed))
  ------------------
  |  Branch (7547:29): [True: 13.9k, False: 83.4k]
  |  Branch (7547:51): [True: 5.38k, False: 8.52k]
  |  Branch (7547:60): [True: 2.84k, False: 5.68k]
  |  Branch (7547:70): [True: 2.84k, False: 2.84k]
  ------------------
 7548|  11.0k|                            continue;
 7549|  86.2k|                        if ((dim == Esd1D || dim == EsdRect) && profile == EEsProfile)
  ------------------
  |  Branch (7549:30): [True: 13.9k, False: 72.3k]
  |  Branch (7549:46): [True: 13.9k, False: 58.4k]
  |  Branch (7549:65): [True: 2.36k, False: 25.4k]
  ------------------
 7550|  2.36k|                            continue;
 7551|  83.8k|                        if (dim == EsdSubpass && spvVersion.vulkan == 0)
  ------------------
  |  Branch (7551:29): [True: 2.84k, False: 81.0k]
  |  Branch (7551:50): [True: 0, False: 2.84k]
  ------------------
 7552|      0|                            continue;
 7553|  83.8k|                        if (dim == EsdSubpass && (image || shadow || arrayed))
  ------------------
  |  Branch (7553:29): [True: 2.84k, False: 81.0k]
  |  Branch (7553:51): [True: 0, False: 2.84k]
  |  Branch (7553:60): [True: 0, False: 2.84k]
  |  Branch (7553:70): [True: 0, False: 2.84k]
  ------------------
 7554|      0|                            continue;
 7555|  83.8k|                        if ((dim == Esd1D || dim == EsdRect) && profile == EEsProfile)
  ------------------
  |  Branch (7555:30): [True: 12.7k, False: 71.1k]
  |  Branch (7555:46): [True: 12.7k, False: 58.4k]
  |  Branch (7555:65): [True: 0, False: 25.4k]
  ------------------
 7556|      0|                            continue;
 7557|  83.8k|                        if (dim != Esd2D && dim != EsdSubpass && ms)
  ------------------
  |  Branch (7557:29): [True: 69.9k, False: 13.9k]
  |  Branch (7557:45): [True: 67.1k, False: 2.84k]
  |  Branch (7557:66): [True: 26.3k, False: 40.8k]
  ------------------
 7558|  26.3k|                            continue;
 7559|  57.5k|                        if (dim == EsdBuffer && skipBuffer)
  ------------------
  |  Branch (7559:29): [True: 8.52k, False: 49.0k]
  |  Branch (7559:49): [True: 0, False: 8.52k]
  ------------------
 7560|      0|                            continue;
 7561|  57.5k|                        if (dim == EsdBuffer && (shadow || arrayed || ms))
  ------------------
  |  Branch (7561:29): [True: 8.52k, False: 49.0k]
  |  Branch (7561:50): [True: 2.84k, False: 5.68k]
  |  Branch (7561:60): [True: 2.84k, False: 2.84k]
  |  Branch (7561:71): [True: 0, False: 2.84k]
  ------------------
 7562|  5.68k|                            continue;
 7563|  51.8k|                        if (ms && arrayed && profile == EEsProfile && version < 310)
  ------------------
  |  Branch (7563:29): [True: 6.80k, False: 45.0k]
  |  Branch (7563:35): [True: 2.69k, False: 4.11k]
  |  Branch (7563:46): [True: 148, False: 2.54k]
  |  Branch (7563:71): [True: 0, False: 148]
  ------------------
 7564|      0|                            continue;
 7565|  51.8k|                        if (dim == Esd3D && shadow)
  ------------------
  |  Branch (7565:29): [True: 8.52k, False: 43.3k]
  |  Branch (7565:45): [True: 2.84k, False: 5.68k]
  ------------------
 7566|  2.84k|                            continue;
 7567|  49.0k|                        if (dim == EsdCube && arrayed && skipCubeArrayed)
  ------------------
  |  Branch (7567:29): [True: 8.52k, False: 40.5k]
  |  Branch (7567:47): [True: 4.26k, False: 4.26k]
  |  Branch (7567:58): [True: 0, False: 4.26k]
  ------------------
 7568|      0|                            continue;
 7569|  49.0k|                        if ((dim == Esd3D || dim == EsdRect) && arrayed)
  ------------------
  |  Branch (7569:30): [True: 5.68k, False: 43.3k]
  |  Branch (7569:46): [True: 7.63k, False: 35.7k]
  |  Branch (7569:65): [True: 6.65k, False: 6.65k]
  ------------------
 7570|  6.65k|                            continue;
 7571|  42.3k|                        if (dim == EsdRect && spvVersion.vulkan > 0)
  ------------------
  |  Branch (7571:29): [True: 3.81k, False: 38.5k]
  |  Branch (7571:47): [True: 3.81k, False: 0]
  ------------------
 7572|  3.81k|                            continue;
 7573|       |
 7574|       |                        // Loop over the bTypes
 7575|   192k|                        for (size_t bType = 0; bType < sizeof(bTypes)/sizeof(TBasicType); ++bType) {
  ------------------
  |  Branch (7575:48): [True: 154k, False: 38.5k]
  ------------------
 7576|   154k|                            if (bTypes[bType] == EbtFloat16 && (profile == EEsProfile || version < 450))
  ------------------
  |  Branch (7576:33): [True: 38.5k, False: 115k]
  |  Branch (7576:65): [True: 2.96k, False: 35.6k]
  |  Branch (7576:90): [True: 27.1k, False: 8.42k]
  ------------------
 7577|  30.1k|                                continue;
 7578|   124k|                            if (dim == EsdRect && version < 140 && bType > 0)
  ------------------
  |  Branch (7578:33): [True: 0, False: 124k]
  |  Branch (7578:51): [True: 0, False: 0]
  |  Branch (7578:68): [True: 0, False: 0]
  ------------------
 7579|      0|                                continue;
 7580|   124k|                            if (shadow && (bTypes[bType] == EbtInt || bTypes[bType] == EbtUint))
  ------------------
  |  Branch (7580:33): [True: 26.4k, False: 97.6k]
  |  Branch (7580:44): [True: 8.22k, False: 18.2k]
  |  Branch (7580:71): [True: 8.22k, False: 10.0k]
  ------------------
 7581|  16.4k|                                continue;
 7582|       |                            //
 7583|       |                            // Now, make all the function prototypes for the type we just built...
 7584|       |                            //
 7585|   107k|                            TSampler sampler;
 7586|   107k|                            if (dim == EsdSubpass) {
  ------------------
  |  Branch (7586:33): [True: 9.12k, False: 98.5k]
  ------------------
 7587|  9.12k|                                sampler.setSubpass(bTypes[bType], ms ? true : false);
  ------------------
  |  Branch (7587:67): [True: 4.56k, False: 4.56k]
  ------------------
 7588|  98.5k|                            } else if (dim == EsdAttachmentEXT) {
  ------------------
  |  Branch (7588:40): [True: 0, False: 98.5k]
  ------------------
 7589|      0|                                sampler.setAttachmentEXT(bTypes[bType]);
 7590|      0|                            } else
 7591|  98.5k|                            if (image) {
  ------------------
  |  Branch (7591:33): [True: 43.8k, False: 54.7k]
  ------------------
 7592|  43.8k|                                sampler.setImage(bTypes[bType], (TSamplerDim)dim, arrayed ? true : false,
  ------------------
  |  Branch (7592:83): [True: 17.3k, False: 26.4k]
  ------------------
 7593|  43.8k|                                                                                  shadow  ? true : false,
  ------------------
  |  Branch (7593:83): [True: 0, False: 43.8k]
  ------------------
 7594|  43.8k|                                                                                  ms      ? true : false);
  ------------------
  |  Branch (7594:83): [True: 8.23k, False: 35.6k]
  ------------------
 7595|  54.7k|                            } else {
 7596|  54.7k|                                sampler.set(bTypes[bType], (TSamplerDim)dim, arrayed ? true : false,
  ------------------
  |  Branch (7596:78): [True: 22.8k, False: 31.9k]
  ------------------
 7597|  54.7k|                                                                             shadow  ? true : false,
  ------------------
  |  Branch (7597:78): [True: 10.0k, False: 44.7k]
  ------------------
 7598|  54.7k|                                                                             ms      ? true : false);
  ------------------
  |  Branch (7598:78): [True: 9.12k, False: 45.6k]
  ------------------
 7599|  54.7k|                            }
 7600|       |
 7601|   107k|                            TString typeName = TString{sampler.getString()};
 7602|       |
 7603|   107k|                            if (dim == EsdSubpass) {
  ------------------
  |  Branch (7603:33): [True: 9.12k, False: 98.5k]
  ------------------
 7604|  9.12k|                                addSubpassSampling(sampler, typeName, version, profile);
 7605|  9.12k|                                continue;
 7606|  9.12k|                            }
 7607|       |
 7608|  98.5k|                            addQueryFunctions(sampler, typeName, version, profile);
 7609|       |
 7610|  98.5k|                            if (image)
  ------------------
  |  Branch (7610:33): [True: 43.8k, False: 54.7k]
  ------------------
 7611|  43.8k|                                addImageFunctions(sampler, typeName, version, profile);
 7612|  54.7k|                            else {
 7613|  54.7k|                                addSamplingFunctions(sampler, typeName, version, profile);
 7614|  54.7k|                                addGatherFunctions(sampler, typeName, version, profile);
 7615|  54.7k|                                if (spvVersion.vulkan > 0 && sampler.isCombined() && !sampler.shadow) {
  ------------------
  |  Branch (7615:37): [True: 54.7k, False: 0]
  |  Branch (7615:62): [True: 54.7k, False: 0]
  |  Branch (7615:86): [True: 44.7k, False: 10.0k]
  ------------------
 7616|       |                                    // Base Vulkan allows texelFetch() for
 7617|       |                                    // textureBuffer (i.e. without sampler).
 7618|       |                                    //
 7619|       |                                    // GL_EXT_samplerless_texture_functions
 7620|       |                                    // allows texelFetch() and query functions
 7621|       |                                    // (other than textureQueryLod()) for all
 7622|       |                                    // texture types.
 7623|  44.7k|                                    sampler.setTexture(sampler.type, sampler.dim, sampler.arrayed, sampler.shadow,
 7624|  44.7k|                                                       sampler.ms);
 7625|  44.7k|                                    TString textureTypeName = TString{sampler.getString()};
 7626|  44.7k|                                    addSamplingFunctions(sampler, textureTypeName, version, profile);
 7627|  44.7k|                                    addQueryFunctions(sampler, textureTypeName, version, profile);
 7628|  44.7k|                                }
 7629|  54.7k|                            }
 7630|  98.5k|                        }
 7631|  38.5k|                    }
 7632|  13.9k|                }
 7633|  6.95k|            }
 7634|  5.68k|        }
 7635|  2.84k|    }
 7636|       |
 7637|       |    //
 7638|       |    // sparseTexelsResidentARB()
 7639|       |    //
 7640|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (7640:9): [True: 1.27k, False: 148]
  |  Branch (7640:34): [True: 301, False: 971]
  ------------------
 7641|    301|        commonBuiltins.append("bool sparseTexelsResidentARB(int code);\n");
 7642|    301|    }
 7643|  1.42k|}
_ZN7glslang9TBuiltIns17addQueryFunctionsENS_8TSamplerERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS_14pool_allocatorIcEEEEi8EProfile:
 7652|   156k|{
 7653|       |    //
 7654|       |    // textureSize() and imageSize()
 7655|       |    //
 7656|       |
 7657|   156k|    int sizeDims = dimMap[sampler.dim] + (sampler.arrayed ? 1 : 0) - (sampler.dim == EsdCube ? 1 : 0);
  ------------------
  |  Branch (7657:43): [True: 63.1k, False: 93.2k]
  |  Branch (7657:71): [True: 33.5k, False: 122k]
  ------------------
 7658|       |
 7659|   156k|    if (sampler.isImage() && ((profile == EEsProfile && version < 310) || (profile != EEsProfile && version < 420)))
  ------------------
  |  Branch (7659:9): [True: 56.9k, False: 99.4k]
  |  Branch (7659:32): [True: 5.03k, False: 51.9k]
  |  Branch (7659:57): [True: 0, False: 5.03k]
  |  Branch (7659:76): [True: 51.9k, False: 5.03k]
  |  Branch (7659:101): [True: 22.0k, False: 29.8k]
  ------------------
 7660|  22.0k|        return;
 7661|       |
 7662|   134k|    if (profile == EEsProfile)
  ------------------
  |  Branch (7662:9): [True: 12.7k, False: 121k]
  ------------------
 7663|  12.7k|        commonBuiltins.append("highp ");
 7664|   134k|    if (sizeDims == 1)
  ------------------
  |  Branch (7664:9): [True: 25.6k, False: 108k]
  ------------------
 7665|  25.6k|        commonBuiltins.append("int");
 7666|   108k|    else {
 7667|   108k|        commonBuiltins.append("ivec");
 7668|   108k|        commonBuiltins.append(postfixes[sizeDims]);
 7669|   108k|    }
 7670|   134k|    if (sampler.isImage())
  ------------------
  |  Branch (7670:9): [True: 34.8k, False: 99.4k]
  ------------------
 7671|  34.8k|        commonBuiltins.append(" imageSize(readonly writeonly volatile coherent nontemporal ");
 7672|  99.4k|    else
 7673|  99.4k|        commonBuiltins.append(" textureSize(");
 7674|   134k|    commonBuiltins.append(typeName);
 7675|   134k|    if (! sampler.isImage() && ! sampler.isRect() && ! sampler.isBuffer() && ! sampler.isMultiSample())
  ------------------
  |  Branch (7675:9): [True: 99.4k, False: 34.8k]
  |  Branch (7675:32): [True: 99.4k, False: 0]
  |  Branch (7675:54): [True: 90.3k, False: 9.12k]
  |  Branch (7675:78): [True: 72.1k, False: 18.2k]
  ------------------
 7676|  72.1k|        commonBuiltins.append(",int);\n");
 7677|  62.2k|    else
 7678|  62.2k|        commonBuiltins.append(");\n");
 7679|       |
 7680|       |    //
 7681|       |    // textureSamples() and imageSamples()
 7682|       |    //
 7683|       |
 7684|       |    // GL_ARB_shader_texture_image_samples
 7685|       |    // TODO: spec issue? there are no memory qualifiers; how to query a writeonly/readonly image, etc?
 7686|   134k|    if (profile != EEsProfile && version >= 430 && sampler.isMultiSample()) {
  ------------------
  |  Branch (7686:9): [True: 121k, False: 12.7k]
  |  Branch (7686:34): [True: 73.0k, False: 48.6k]
  |  Branch (7686:52): [True: 13.5k, False: 59.4k]
  ------------------
 7687|  13.5k|        commonBuiltins.append("int ");
 7688|  13.5k|        if (sampler.isImage())
  ------------------
  |  Branch (7688:13): [True: 5.96k, False: 7.63k]
  ------------------
 7689|  5.96k|            commonBuiltins.append("imageSamples(readonly writeonly volatile coherent nontemporal ");
 7690|  7.63k|        else
 7691|  7.63k|            commonBuiltins.append("textureSamples(");
 7692|  13.5k|        commonBuiltins.append(typeName);
 7693|  13.5k|        commonBuiltins.append(");\n");
 7694|  13.5k|    }
 7695|       |
 7696|       |    //
 7697|       |    // textureQueryLod()
 7698|       |    // Also enabled with extension GL_ARB_texture_query_lod
 7699|       |    // Extension GL_ARB_texture_query_lod says that textureQueryLOD() also exist at extension.
 7700|       |
 7701|   134k|    if (profile != EEsProfile && version >= 150 && sampler.isCombined() && sampler.dim != EsdRect &&
  ------------------
  |  Branch (7701:9): [True: 121k, False: 12.7k]
  |  Branch (7701:34): [True: 87.5k, False: 34.0k]
  |  Branch (7701:52): [True: 32.0k, False: 55.5k]
  |  Branch (7701:76): [True: 32.0k, False: 0]
  ------------------
 7702|  32.0k|        ! sampler.isMultiSample() && ! sampler.isBuffer()) {
  ------------------
  |  Branch (7702:9): [True: 26.8k, False: 5.13k]
  |  Branch (7702:38): [True: 24.3k, False: 2.56k]
  ------------------
 7703|       |
 7704|  24.3k|        const TString funcName[2] = {"vec2 textureQueryLod(", "vec2 textureQueryLOD("};
 7705|       |
 7706|  72.9k|        for (int i = 0; i < 2; ++i){
  ------------------
  |  Branch (7706:25): [True: 48.6k, False: 24.3k]
  ------------------
 7707|   145k|            for (int f16TexAddr = 0; f16TexAddr < 2; ++f16TexAddr) {
  ------------------
  |  Branch (7707:38): [True: 97.3k, False: 48.6k]
  ------------------
 7708|  97.3k|                if (f16TexAddr && sampler.type != EbtFloat16)
  ------------------
  |  Branch (7708:21): [True: 48.6k, False: 48.6k]
  |  Branch (7708:35): [True: 40.8k, False: 7.82k]
  ------------------
 7709|  40.8k|                    continue;
 7710|  56.4k|                stageBuiltins[EShLangFragment].append(funcName[i]);
 7711|  56.4k|                stageBuiltins[EShLangFragment].append(typeName);
 7712|  56.4k|                if (dimMap[sampler.dim] == 1)
  ------------------
  |  Branch (7712:21): [True: 16.9k, False: 39.5k]
  ------------------
 7713|  16.9k|                    if (f16TexAddr)
  ------------------
  |  Branch (7713:25): [True: 2.40k, False: 14.5k]
  ------------------
 7714|  2.40k|                        stageBuiltins[EShLangFragment].append(", float16_t");
 7715|  14.5k|                    else
 7716|  14.5k|                        stageBuiltins[EShLangFragment].append(", float");
 7717|  39.5k|                else {
 7718|  39.5k|                    if (f16TexAddr)
  ------------------
  |  Branch (7718:25): [True: 5.41k, False: 34.1k]
  ------------------
 7719|  5.41k|                        stageBuiltins[EShLangFragment].append(", f16vec");
 7720|  34.1k|                    else
 7721|  34.1k|                        stageBuiltins[EShLangFragment].append(", vec");
 7722|  39.5k|                    stageBuiltins[EShLangFragment].append(postfixes[dimMap[sampler.dim]]);
 7723|  39.5k|                }
 7724|  56.4k|                stageBuiltins[EShLangFragment].append(");\n");
 7725|  56.4k|            }
 7726|       |
 7727|  48.6k|            stageBuiltins[EShLangCompute].append(funcName[i]);
 7728|  48.6k|            stageBuiltins[EShLangCompute].append(typeName);
 7729|  48.6k|            if (dimMap[sampler.dim] == 1)
  ------------------
  |  Branch (7729:17): [True: 14.5k, False: 34.1k]
  ------------------
 7730|  14.5k|                stageBuiltins[EShLangCompute].append(", float");
 7731|  34.1k|            else {
 7732|  34.1k|                stageBuiltins[EShLangCompute].append(", vec");
 7733|  34.1k|                stageBuiltins[EShLangCompute].append(postfixes[dimMap[sampler.dim]]);
 7734|  34.1k|            }
 7735|  48.6k|            stageBuiltins[EShLangCompute].append(");\n");
 7736|       |
 7737|  48.6k|            stageBuiltins[EShLangTask].append(funcName[i]);
 7738|  48.6k|            stageBuiltins[EShLangTask].append(typeName);
 7739|  48.6k|            if (dimMap[sampler.dim] == 1)
  ------------------
  |  Branch (7739:17): [True: 14.5k, False: 34.1k]
  ------------------
 7740|  14.5k|                stageBuiltins[EShLangTask].append(", float");
 7741|  34.1k|            else {
 7742|  34.1k|                stageBuiltins[EShLangTask].append(", vec");
 7743|  34.1k|                stageBuiltins[EShLangTask].append(postfixes[dimMap[sampler.dim]]);
 7744|  34.1k|            }
 7745|  48.6k|            stageBuiltins[EShLangTask].append(");\n");
 7746|       |
 7747|  48.6k|            stageBuiltins[EShLangMesh].append(funcName[i]);
 7748|  48.6k|            stageBuiltins[EShLangMesh].append(typeName);
 7749|  48.6k|            if (dimMap[sampler.dim] == 1)
  ------------------
  |  Branch (7749:17): [True: 14.5k, False: 34.1k]
  ------------------
 7750|  14.5k|                stageBuiltins[EShLangMesh].append(", float");
 7751|  34.1k|            else {
 7752|  34.1k|                stageBuiltins[EShLangMesh].append(", vec");
 7753|  34.1k|                stageBuiltins[EShLangMesh].append(postfixes[dimMap[sampler.dim]]);
 7754|  34.1k|            }
 7755|  48.6k|            stageBuiltins[EShLangMesh].append(");\n");
 7756|  48.6k|        }
 7757|  24.3k|    }
 7758|       |
 7759|       |    //
 7760|       |    // textureQueryLevels()
 7761|       |    //
 7762|       |
 7763|   134k|    if (profile != EEsProfile && version >= 430 && ! sampler.isImage() && sampler.dim != EsdRect &&
  ------------------
  |  Branch (7763:9): [True: 121k, False: 12.7k]
  |  Branch (7763:34): [True: 73.0k, False: 48.6k]
  |  Branch (7763:52): [True: 43.2k, False: 29.8k]
  |  Branch (7763:75): [True: 43.2k, False: 0]
  ------------------
 7764|  43.2k|        ! sampler.isMultiSample() && ! sampler.isBuffer()) {
  ------------------
  |  Branch (7764:9): [True: 35.5k, False: 7.63k]
  |  Branch (7764:38): [True: 31.7k, False: 3.81k]
  ------------------
 7765|  31.7k|        commonBuiltins.append("int textureQueryLevels(");
 7766|  31.7k|        commonBuiltins.append(typeName);
 7767|  31.7k|        commonBuiltins.append(");\n");
 7768|  31.7k|    }
 7769|   134k|}
_ZN7glslang9TBuiltIns17addImageFunctionsENS_8TSamplerERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS_14pool_allocatorIcEEEEi8EProfile:
 7778|  56.9k|{
 7779|  56.9k|    int dims = dimMap[sampler.dim];
 7780|       |    // most things with an array add a dimension, except for cubemaps
 7781|  56.9k|    if (sampler.arrayed && sampler.dim != EsdCube)
  ------------------
  |  Branch (7781:9): [True: 22.5k, False: 34.4k]
  |  Branch (7781:28): [True: 16.6k, False: 5.93k]
  ------------------
 7782|  16.6k|        ++dims;
 7783|       |
 7784|  56.9k|    TString imageParams = typeName;
 7785|  56.9k|    if (dims == 1)
  ------------------
  |  Branch (7785:9): [True: 11.1k, False: 45.8k]
  ------------------
 7786|  11.1k|        imageParams.append(", int");
 7787|  45.8k|    else {
 7788|  45.8k|        imageParams.append(", ivec");
 7789|  45.8k|        imageParams.append(postfixes[dims]);
 7790|  45.8k|    }
 7791|  56.9k|    if (sampler.isMultiSample())
  ------------------
  |  Branch (7791:9): [True: 10.9k, False: 45.9k]
  ------------------
 7792|  10.9k|        imageParams.append(", int");
 7793|       |
 7794|  56.9k|    if (profile == EEsProfile)
  ------------------
  |  Branch (7794:9): [True: 5.03k, False: 51.9k]
  ------------------
 7795|  5.03k|        commonBuiltins.append("highp ");
 7796|  56.9k|    commonBuiltins.append(prefixes[sampler.type]);
 7797|  56.9k|    commonBuiltins.append("vec4 imageLoad(readonly volatile coherent nontemporal ");
 7798|  56.9k|    commonBuiltins.append(imageParams);
 7799|  56.9k|    commonBuiltins.append(");\n");
 7800|       |
 7801|  56.9k|    commonBuiltins.append("void imageStore(writeonly volatile coherent nontemporal ");
 7802|  56.9k|    commonBuiltins.append(imageParams);
 7803|  56.9k|    commonBuiltins.append(", ");
 7804|  56.9k|    commonBuiltins.append(prefixes[sampler.type]);
 7805|  56.9k|    commonBuiltins.append("vec4);\n");
 7806|       |
 7807|  56.9k|    if (! sampler.is1D() && ! sampler.isBuffer() && profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (7807:9): [True: 46.5k, False: 10.3k]
  |  Branch (7807:29): [True: 40.6k, False: 5.93k]
  |  Branch (7807:53): [True: 36.3k, False: 4.29k]
  |  Branch (7807:78): [True: 12.6k, False: 23.6k]
  ------------------
 7808|  12.6k|        commonBuiltins.append("int sparseImageLoadARB(readonly volatile coherent nontemporal ");
 7809|  12.6k|        commonBuiltins.append(imageParams);
 7810|  12.6k|        commonBuiltins.append(", out ");
 7811|  12.6k|        commonBuiltins.append(prefixes[sampler.type]);
 7812|  12.6k|        commonBuiltins.append("vec4");
 7813|  12.6k|        commonBuiltins.append(");\n");
 7814|  12.6k|    }
 7815|       |
 7816|  56.9k|    if ( profile != EEsProfile ||
  ------------------
  |  Branch (7816:10): [True: 51.9k, False: 5.03k]
  ------------------
 7817|  56.9k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (7817:10): [True: 5.03k, False: 0]
  |  Branch (7817:35): [True: 5.03k, False: 0]
  ------------------
 7818|  56.9k|        if (sampler.type == EbtInt || sampler.type == EbtUint || sampler.type == EbtInt64 || sampler.type == EbtUint64 ) {
  ------------------
  |  Branch (7818:13): [True: 13.6k, False: 43.3k]
  |  Branch (7818:39): [True: 13.6k, False: 29.7k]
  |  Branch (7818:66): [True: 6.55k, False: 23.1k]
  |  Branch (7818:94): [True: 6.55k, False: 16.6k]
  ------------------
 7819|       |
 7820|  40.3k|            const char* dataType;
 7821|  40.3k|            switch (sampler.type) {
 7822|  13.6k|                case(EbtInt): dataType = "highp int"; break;
  ------------------
  |  Branch (7822:17): [True: 13.6k, False: 26.7k]
  ------------------
 7823|  13.6k|                case(EbtUint): dataType = "highp uint"; break;
  ------------------
  |  Branch (7823:17): [True: 13.6k, False: 26.7k]
  ------------------
 7824|  6.55k|                case(EbtInt64): dataType = "highp int64_t"; break;
  ------------------
  |  Branch (7824:17): [True: 6.55k, False: 33.7k]
  ------------------
 7825|  6.55k|                case(EbtUint64): dataType = "highp uint64_t"; break;
  ------------------
  |  Branch (7825:17): [True: 6.55k, False: 33.7k]
  ------------------
 7826|      0|                default: dataType = "";
  ------------------
  |  Branch (7826:17): [True: 0, False: 40.3k]
  ------------------
 7827|  40.3k|            }
 7828|       |
 7829|  40.3k|            const int numBuiltins = 7;
 7830|       |
 7831|  40.3k|            static const char* atomicFunc[numBuiltins] = {
 7832|  40.3k|                " imageAtomicAdd(volatile coherent nontemporal ",
 7833|  40.3k|                " imageAtomicMin(volatile coherent nontemporal ",
 7834|  40.3k|                " imageAtomicMax(volatile coherent nontemporal ",
 7835|  40.3k|                " imageAtomicAnd(volatile coherent nontemporal ",
 7836|  40.3k|                " imageAtomicOr(volatile coherent nontemporal ",
 7837|  40.3k|                " imageAtomicXor(volatile coherent nontemporal ",
 7838|  40.3k|                " imageAtomicExchange(volatile coherent nontemporal "
 7839|  40.3k|            };
 7840|       |
 7841|       |            // Loop twice to add prototypes with/without scope/semantics
 7842|   120k|            for (int j = 0; j < 2; ++j) {
  ------------------
  |  Branch (7842:29): [True: 80.6k, False: 40.3k]
  ------------------
 7843|   645k|                for (size_t i = 0; i < numBuiltins; ++i) {
  ------------------
  |  Branch (7843:36): [True: 564k, False: 80.6k]
  ------------------
 7844|   564k|                    commonBuiltins.append(dataType);
 7845|   564k|                    commonBuiltins.append(atomicFunc[i]);
 7846|   564k|                    commonBuiltins.append(imageParams);
 7847|   564k|                    commonBuiltins.append(", ");
 7848|   564k|                    commonBuiltins.append(dataType);
 7849|   564k|                    if (j == 1) {
  ------------------
  |  Branch (7849:25): [True: 282k, False: 282k]
  ------------------
 7850|   282k|                        commonBuiltins.append(", int, int, int");
 7851|   282k|                    }
 7852|   564k|                    commonBuiltins.append(");\n");
 7853|   564k|                }
 7854|       |
 7855|  80.6k|                commonBuiltins.append(dataType);
 7856|  80.6k|                commonBuiltins.append(" imageAtomicCompSwap(volatile coherent nontemporal ");
 7857|  80.6k|                commonBuiltins.append(imageParams);
 7858|  80.6k|                commonBuiltins.append(", ");
 7859|  80.6k|                commonBuiltins.append(dataType);
 7860|  80.6k|                commonBuiltins.append(", ");
 7861|  80.6k|                commonBuiltins.append(dataType);
 7862|  80.6k|                if (j == 1) {
  ------------------
  |  Branch (7862:21): [True: 40.3k, False: 40.3k]
  ------------------
 7863|  40.3k|                    commonBuiltins.append(", int, int, int, int, int");
 7864|  40.3k|                }
 7865|  80.6k|                commonBuiltins.append(");\n");
 7866|  80.6k|            }
 7867|       |
 7868|  40.3k|            commonBuiltins.append(dataType);
 7869|  40.3k|            commonBuiltins.append(" imageAtomicLoad(volatile coherent nontemporal ");
 7870|  40.3k|            commonBuiltins.append(imageParams);
 7871|  40.3k|            commonBuiltins.append(", int, int, int);\n");
 7872|       |
 7873|  40.3k|            commonBuiltins.append("void imageAtomicStore(volatile coherent nontemporal ");
 7874|  40.3k|            commonBuiltins.append(imageParams);
 7875|  40.3k|            commonBuiltins.append(", ");
 7876|  40.3k|            commonBuiltins.append(dataType);
 7877|  40.3k|            commonBuiltins.append(", int, int, int);\n");
 7878|       |
 7879|  40.3k|        } else {
 7880|       |            // not int or uint
 7881|       |            // GL_ARB_ES3_1_compatibility
 7882|       |            // TODO: spec issue: are there restrictions on the kind of layout() that can be used?  what about dropping memory qualifiers?
 7883|  16.6k|            if (profile == EEsProfile && version >= 310) {
  ------------------
  |  Branch (7883:17): [True: 888, False: 15.7k]
  |  Branch (7883:42): [True: 888, False: 0]
  ------------------
 7884|    888|                commonBuiltins.append("float imageAtomicExchange(volatile coherent nontemporal ");
 7885|    888|                commonBuiltins.append(imageParams);
 7886|    888|                commonBuiltins.append(", float);\n");
 7887|    888|            }
 7888|       |
 7889|       |            // GL_NV_shader_atomic_fp16_vector
 7890|  16.6k|            if (profile != EEsProfile && version >= 430) {
  ------------------
  |  Branch (7890:17): [True: 15.7k, False: 888]
  |  Branch (7890:42): [True: 8.37k, False: 7.36k]
  ------------------
 7891|  8.37k|                const int numFp16Builtins = 4;
 7892|  8.37k|                const char* atomicFp16Func[numFp16Builtins] = {
 7893|  8.37k|                    " imageAtomicAdd(volatile coherent nontemporal ",
 7894|  8.37k|                    " imageAtomicMin(volatile coherent nontemporal ",
 7895|  8.37k|                    " imageAtomicMax(volatile coherent nontemporal ",
 7896|  8.37k|                    " imageAtomicExchange(volatile coherent nontemporal "
 7897|  8.37k|                };
 7898|  8.37k|                const int numFp16DataTypes = 2;
 7899|  8.37k|                const char* atomicFp16DataTypes[numFp16DataTypes] = {
 7900|  8.37k|                    "f16vec2",
 7901|  8.37k|                    "f16vec4"
 7902|  8.37k|                };
 7903|       |                // Loop twice to add prototypes with/without scope/semantics
 7904|  25.1k|                for (int j = 0; j < numFp16DataTypes; ++j) {
  ------------------
  |  Branch (7904:33): [True: 16.7k, False: 8.37k]
  ------------------
 7905|  83.7k|                    for (int i = 0; i < numFp16Builtins; ++i) {
  ------------------
  |  Branch (7905:37): [True: 66.9k, False: 16.7k]
  ------------------
 7906|  66.9k|                        commonBuiltins.append(atomicFp16DataTypes[j]);
 7907|  66.9k|                        commonBuiltins.append(atomicFp16Func[i]);
 7908|  66.9k|                        commonBuiltins.append(imageParams);
 7909|  66.9k|                        commonBuiltins.append(", ");
 7910|  66.9k|                        commonBuiltins.append(atomicFp16DataTypes[j]);
 7911|  66.9k|                        commonBuiltins.append(");\n");
 7912|  66.9k|                    }
 7913|  16.7k|                }
 7914|  8.37k|            }
 7915|       |
 7916|  16.6k|            if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (7916:17): [True: 15.7k, False: 888]
  |  Branch (7916:42): [True: 6.02k, False: 9.71k]
  ------------------
 7917|  6.02k|                commonBuiltins.append("float imageAtomicAdd(volatile coherent nontemporal ");
 7918|  6.02k|                commonBuiltins.append(imageParams);
 7919|  6.02k|                commonBuiltins.append(", float);\n");
 7920|       |
 7921|  6.02k|                commonBuiltins.append("float imageAtomicAdd(volatile coherent nontemporal ");
 7922|  6.02k|                commonBuiltins.append(imageParams);
 7923|  6.02k|                commonBuiltins.append(", float");
 7924|  6.02k|                commonBuiltins.append(", int, int, int);\n");
 7925|       |
 7926|  6.02k|                commonBuiltins.append("float imageAtomicExchange(volatile coherent nontemporal ");
 7927|  6.02k|                commonBuiltins.append(imageParams);
 7928|  6.02k|                commonBuiltins.append(", float);\n");
 7929|       |
 7930|  6.02k|                commonBuiltins.append("float imageAtomicExchange(volatile coherent nontemporal ");
 7931|  6.02k|                commonBuiltins.append(imageParams);
 7932|  6.02k|                commonBuiltins.append(", float");
 7933|  6.02k|                commonBuiltins.append(", int, int, int);\n");
 7934|       |
 7935|  6.02k|                commonBuiltins.append("float imageAtomicLoad(readonly volatile coherent nontemporal ");
 7936|  6.02k|                commonBuiltins.append(imageParams);
 7937|  6.02k|                commonBuiltins.append(", int, int, int);\n");
 7938|       |
 7939|  6.02k|                commonBuiltins.append("void imageAtomicStore(writeonly volatile coherent nontemporal ");
 7940|  6.02k|                commonBuiltins.append(imageParams);
 7941|  6.02k|                commonBuiltins.append(", float");
 7942|  6.02k|                commonBuiltins.append(", int, int, int);\n");
 7943|       |
 7944|  6.02k|                commonBuiltins.append("float imageAtomicMin(volatile coherent nontemporal ");
 7945|  6.02k|                commonBuiltins.append(imageParams);
 7946|  6.02k|                commonBuiltins.append(", float);\n");
 7947|       |
 7948|  6.02k|                commonBuiltins.append("float imageAtomicMin(volatile coherent nontemporal ");
 7949|  6.02k|                commonBuiltins.append(imageParams);
 7950|  6.02k|                commonBuiltins.append(", float");
 7951|  6.02k|                commonBuiltins.append(", int, int, int);\n");
 7952|       |
 7953|  6.02k|                commonBuiltins.append("float imageAtomicMax(volatile coherent nontemporal ");
 7954|  6.02k|                commonBuiltins.append(imageParams);
 7955|  6.02k|                commonBuiltins.append(", float);\n");
 7956|       |
 7957|  6.02k|                commonBuiltins.append("float imageAtomicMax(volatile coherent nontemporal ");
 7958|  6.02k|                commonBuiltins.append(imageParams);
 7959|  6.02k|                commonBuiltins.append(", float");
 7960|  6.02k|                commonBuiltins.append(", int, int, int);\n");
 7961|  6.02k|            }
 7962|  16.6k|        }
 7963|  56.9k|    }
 7964|       |
 7965|  56.9k|    if (sampler.dim == EsdRect || sampler.dim == EsdBuffer || sampler.shadow || sampler.isMultiSample())
  ------------------
  |  Branch (7965:9): [True: 0, False: 56.9k]
  |  Branch (7965:35): [True: 5.93k, False: 51.0k]
  |  Branch (7965:63): [True: 0, False: 51.0k]
  |  Branch (7965:81): [True: 10.9k, False: 40.0k]
  ------------------
 7966|  16.9k|        return;
 7967|       |
 7968|  40.0k|    if (profile == EEsProfile || version < 450)
  ------------------
  |  Branch (7968:9): [True: 3.70k, False: 36.3k]
  |  Branch (7968:34): [True: 23.6k, False: 12.6k]
  ------------------
 7969|  27.3k|        return;
 7970|       |
 7971|  12.6k|    TString imageLodParams = typeName;
 7972|  12.6k|    if (dims == 1)
  ------------------
  |  Branch (7972:9): [True: 1.80k, False: 10.8k]
  ------------------
 7973|  1.80k|        imageLodParams.append(", int");
 7974|  10.8k|    else {
 7975|  10.8k|        imageLodParams.append(", ivec");
 7976|  10.8k|        imageLodParams.append(postfixes[dims]);
 7977|  10.8k|    }
 7978|  12.6k|    imageLodParams.append(", int");
 7979|       |
 7980|  12.6k|    commonBuiltins.append(prefixes[sampler.type]);
 7981|  12.6k|    commonBuiltins.append("vec4 imageLoadLodAMD(readonly volatile coherent nontemporal ");
 7982|  12.6k|    commonBuiltins.append(imageLodParams);
 7983|  12.6k|    commonBuiltins.append(");\n");
 7984|       |
 7985|  12.6k|    commonBuiltins.append("void imageStoreLodAMD(writeonly volatile coherent nontemporal ");
 7986|  12.6k|    commonBuiltins.append(imageLodParams);
 7987|  12.6k|    commonBuiltins.append(", ");
 7988|  12.6k|    commonBuiltins.append(prefixes[sampler.type]);
 7989|  12.6k|    commonBuiltins.append("vec4);\n");
 7990|       |
 7991|  12.6k|    if (! sampler.is1D()) {
  ------------------
  |  Branch (7991:9): [True: 9.03k, False: 3.61k]
  ------------------
 7992|  9.03k|        commonBuiltins.append("int sparseImageLoadLodAMD(readonly volatile coherent nontemporal ");
 7993|  9.03k|        commonBuiltins.append(imageLodParams);
 7994|  9.03k|        commonBuiltins.append(", out ");
 7995|  9.03k|        commonBuiltins.append(prefixes[sampler.type]);
 7996|  9.03k|        commonBuiltins.append("vec4");
 7997|  9.03k|        commonBuiltins.append(");\n");
 7998|  9.03k|    }
 7999|  12.6k|}
_ZN7glslang9TBuiltIns18addSubpassSamplingENS_8TSamplerERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS_14pool_allocatorIcEEEEi8EProfile:
 8008|  9.12k|{
 8009|  9.12k|    stageBuiltins[EShLangFragment].append(prefixes[sampler.type]);
 8010|  9.12k|    stageBuiltins[EShLangFragment].append("vec4 subpassLoad");
 8011|  9.12k|    stageBuiltins[EShLangFragment].append("(");
 8012|  9.12k|    stageBuiltins[EShLangFragment].append(typeName.c_str());
 8013|  9.12k|    if (sampler.isMultiSample())
  ------------------
  |  Branch (8013:9): [True: 4.56k, False: 4.56k]
  ------------------
 8014|  4.56k|        stageBuiltins[EShLangFragment].append(", int");
 8015|  9.12k|    stageBuiltins[EShLangFragment].append(");\n");
 8016|  9.12k|}
_ZN7glslang9TBuiltIns20addSamplingFunctionsENS_8TSamplerERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS_14pool_allocatorIcEEEEi8EProfile:
 8025|  99.4k|{
 8026|       |    //
 8027|       |    // texturing
 8028|       |    //
 8029|   298k|    for (int proj = 0; proj <= 1; ++proj) { // loop over "bool" projective or not
  ------------------
  |  Branch (8029:24): [True: 198k, False: 99.4k]
  ------------------
 8030|       |
 8031|   198k|        if (proj && (sampler.dim == EsdCube || sampler.isBuffer() || sampler.arrayed || sampler.isMultiSample()
  ------------------
  |  Branch (8031:13): [True: 99.4k, False: 99.4k]
  |  Branch (8031:22): [True: 21.6k, False: 77.7k]
  |  Branch (8031:48): [True: 9.12k, False: 68.6k]
  |  Branch (8031:70): [True: 29.7k, False: 38.8k]
  |  Branch (8031:89): [True: 9.12k, False: 29.7k]
  ------------------
 8032|  29.7k|            || !sampler.isCombined()))
  ------------------
  |  Branch (8032:16): [True: 13.2k, False: 16.5k]
  ------------------
 8033|  82.9k|            continue;
 8034|       |
 8035|   348k|        for (int lod = 0; lod <= 1; ++lod) {
  ------------------
  |  Branch (8035:27): [True: 232k, False: 116k]
  ------------------
 8036|       |
 8037|   232k|            if (lod && (sampler.isBuffer() || sampler.isRect() || sampler.isMultiSample() || !sampler.isCombined()))
  ------------------
  |  Branch (8037:17): [True: 116k, False: 116k]
  |  Branch (8037:25): [True: 9.12k, False: 106k]
  |  Branch (8037:47): [True: 0, False: 106k]
  |  Branch (8037:67): [True: 18.2k, False: 88.6k]
  |  Branch (8037:94): [True: 31.0k, False: 57.6k]
  ------------------
 8038|  58.4k|                continue;
 8039|   173k|            if (lod && sampler.dim == Esd2D && sampler.arrayed && sampler.shadow)
  ------------------
  |  Branch (8039:17): [True: 57.6k, False: 116k]
  |  Branch (8039:24): [True: 18.8k, False: 38.7k]
  |  Branch (8039:48): [True: 6.28k, False: 12.5k]
  |  Branch (8039:67): [True: 1.72k, False: 4.56k]
  ------------------
 8040|  1.72k|                continue;
 8041|   171k|            if (lod && sampler.dim == EsdCube && sampler.shadow)
  ------------------
  |  Branch (8041:17): [True: 55.8k, False: 116k]
  |  Branch (8041:24): [True: 12.5k, False: 43.3k]
  |  Branch (8041:50): [True: 3.44k, False: 9.12k]
  ------------------
 8042|  3.44k|                continue;
 8043|       |
 8044|   505k|            for (int bias = 0; bias <= 1; ++bias) {
  ------------------
  |  Branch (8044:32): [True: 336k, False: 168k]
  ------------------
 8045|       |
 8046|   336k|                if (bias && (lod || sampler.isMultiSample() || !sampler.isCombined()))
  ------------------
  |  Branch (8046:21): [True: 168k, False: 168k]
  |  Branch (8046:30): [True: 52.4k, False: 116k]
  |  Branch (8046:37): [True: 18.2k, False: 97.7k]
  |  Branch (8046:64): [True: 35.6k, False: 62.1k]
  ------------------
 8047|   106k|                    continue;
 8048|   230k|                if (bias && (sampler.dim == Esd2D || sampler.dim == EsdCube) && sampler.shadow && sampler.arrayed)
  ------------------
  |  Branch (8048:21): [True: 62.1k, False: 168k]
  |  Branch (8048:30): [True: 18.8k, False: 43.3k]
  |  Branch (8048:54): [True: 12.5k, False: 30.7k]
  |  Branch (8048:81): [True: 8.60k, False: 22.8k]
  |  Branch (8048:99): [True: 3.44k, False: 5.16k]
  ------------------
 8049|  3.44k|                    continue;
 8050|   227k|                if (bias && (sampler.isRect() || sampler.isBuffer()))
  ------------------
  |  Branch (8050:21): [True: 58.7k, False: 168k]
  |  Branch (8050:30): [True: 0, False: 58.7k]
  |  Branch (8050:50): [True: 4.56k, False: 54.1k]
  ------------------
 8051|  4.56k|                    continue;
 8052|       |
 8053|   667k|                for (int offset = 0; offset <= 1; ++offset) { // loop over "bool" offset or not
  ------------------
  |  Branch (8053:38): [True: 445k, False: 222k]
  ------------------
 8054|       |
 8055|   445k|                    if (proj + offset + bias + lod > 3)
  ------------------
  |  Branch (8055:25): [True: 0, False: 445k]
  ------------------
 8056|      0|                        continue;
 8057|   445k|                    if (offset && (sampler.dim == EsdCube || sampler.isBuffer() || sampler.isMultiSample()))
  ------------------
  |  Branch (8057:25): [True: 222k, False: 222k]
  |  Branch (8057:36): [True: 41.6k, False: 180k]
  |  Branch (8057:62): [True: 9.12k, False: 171k]
  |  Branch (8057:84): [True: 18.2k, False: 153k]
  ------------------
 8058|  69.0k|                        continue;
 8059|       |
 8060|  1.12M|                    for (int fetch = 0; fetch <= 1; ++fetch) { // loop over "bool" fetch or not
  ------------------
  |  Branch (8060:41): [True: 752k, False: 376k]
  ------------------
 8061|       |
 8062|   752k|                        if (proj + offset + fetch + bias + lod > 3)
  ------------------
  |  Branch (8062:29): [True: 33.0k, False: 719k]
  ------------------
 8063|  33.0k|                            continue;
 8064|   719k|                        if (fetch && (lod || bias))
  ------------------
  |  Branch (8064:29): [True: 343k, False: 376k]
  |  Branch (8064:39): [True: 79.2k, False: 263k]
  |  Branch (8064:46): [True: 80.9k, False: 182k]
  ------------------
 8065|   160k|                            continue;
 8066|   559k|                        if (fetch && (sampler.shadow || sampler.dim == EsdCube))
  ------------------
  |  Branch (8066:29): [True: 182k, False: 376k]
  |  Branch (8066:39): [True: 23.2k, False: 159k]
  |  Branch (8066:57): [True: 18.2k, False: 141k]
  ------------------
 8067|  41.4k|                            continue;
 8068|   517k|                        if (fetch == 0 && (sampler.isMultiSample() || sampler.isBuffer()
  ------------------
  |  Branch (8068:29): [True: 376k, False: 141k]
  |  Branch (8068:44): [True: 18.2k, False: 357k]
  |  Branch (8068:71): [True: 9.12k, False: 348k]
  ------------------
 8069|   348k|                            || !sampler.isCombined()))
  ------------------
  |  Branch (8069:32): [True: 52.9k, False: 295k]
  ------------------
 8070|  80.3k|                            continue;
 8071|       |
 8072|  1.31M|                        for (int grad = 0; grad <= 1; ++grad) { // loop over "bool" grad or not
  ------------------
  |  Branch (8072:44): [True: 874k, False: 437k]
  ------------------
 8073|       |
 8074|   874k|                            if (grad && (lod || bias || sampler.isMultiSample() || !sampler.isCombined()))
  ------------------
  |  Branch (8074:33): [True: 437k, False: 437k]
  |  Branch (8074:42): [True: 95.7k, False: 341k]
  |  Branch (8074:49): [True: 97.4k, False: 244k]
  |  Branch (8074:57): [True: 18.2k, False: 225k]
  |  Branch (8074:84): [True: 48.3k, False: 177k]
  ------------------
 8075|   259k|                                continue;
 8076|   614k|                            if (grad && sampler.isBuffer())
  ------------------
  |  Branch (8076:33): [True: 177k, False: 437k]
  |  Branch (8076:41): [True: 4.56k, False: 172k]
  ------------------
 8077|  4.56k|                                continue;
 8078|   610k|                            if (proj + offset + fetch + grad + bias + lod > 3)
  ------------------
  |  Branch (8078:33): [True: 13.2k, False: 597k]
  ------------------
 8079|  13.2k|                                continue;
 8080|       |
 8081|  1.79M|                            for (int extraProj = 0; extraProj <= 1; ++extraProj) {
  ------------------
  |  Branch (8081:53): [True: 1.19M, False: 597k]
  ------------------
 8082|  1.19M|                                bool compare = false;
 8083|  1.19M|                                int totalDims = dimMap[sampler.dim] + (sampler.arrayed ? 1 : 0);
  ------------------
  |  Branch (8083:72): [True: 343k, False: 850k]
  ------------------
 8084|       |                                // skip dummy unused second component for 1D non-array shadows
 8085|  1.19M|                                if (sampler.shadow && totalDims < 2)
  ------------------
  |  Branch (8085:37): [True: 161k, False: 1.03M]
  |  Branch (8085:55): [True: 50.3k, False: 111k]
  ------------------
 8086|  50.3k|                                    totalDims = 2;
 8087|  1.19M|                                totalDims += (sampler.shadow ? 1 : 0) + proj;
  ------------------
  |  Branch (8087:47): [True: 161k, False: 1.03M]
  ------------------
 8088|  1.19M|                                if (totalDims > 4 && sampler.shadow) {
  ------------------
  |  Branch (8088:37): [True: 6.88k, False: 1.18M]
  |  Branch (8088:54): [True: 6.88k, False: 0]
  ------------------
 8089|  6.88k|                                    compare = true;
 8090|  6.88k|                                    totalDims = 4;
 8091|  6.88k|                                }
 8092|  1.19M|                                assert(totalDims <= 4);
 8093|       |
 8094|  1.19M|                                if (extraProj && ! proj)
  ------------------
  |  Branch (8094:37): [True: 597k, False: 597k]
  |  Branch (8094:50): [True: 425k, False: 171k]
  ------------------
 8095|   425k|                                    continue;
 8096|   769k|                                if (extraProj && (sampler.dim == Esd3D || sampler.shadow || !sampler.isCombined()))
  ------------------
  |  Branch (8096:37): [True: 171k, False: 597k]
  |  Branch (8096:51): [True: 50.1k, False: 121k]
  |  Branch (8096:75): [True: 26.3k, False: 95.4k]
  |  Branch (8096:93): [True: 0, False: 95.4k]
  ------------------
 8097|  76.5k|                                    continue;
 8098|       |
 8099|       |                                // loop over 16-bit floating-point texel addressing
 8100|  2.07M|                                for (int f16TexAddr = 0; f16TexAddr <= 1; ++f16TexAddr)
  ------------------
  |  Branch (8100:58): [True: 1.38M, False: 692k]
  ------------------
 8101|  1.38M|                                {
 8102|  1.38M|                                    if (f16TexAddr && sampler.type != EbtFloat16)
  ------------------
  |  Branch (8102:41): [True: 692k, False: 692k]
  |  Branch (8102:55): [True: 635k, False: 56.5k]
  ------------------
 8103|   635k|                                        continue;
 8104|   749k|                                    if (f16TexAddr && sampler.shadow && ! compare) {
  ------------------
  |  Branch (8104:41): [True: 56.5k, False: 692k]
  |  Branch (8104:55): [True: 14.7k, False: 41.8k]
  |  Branch (8104:73): [True: 14.1k, False: 602]
  ------------------
 8105|  14.1k|                                        compare = true; // compare argument is always present
 8106|  14.1k|                                        totalDims--;
 8107|  14.1k|                                    }
 8108|       |                                    // loop over "bool" lod clamp
 8109|  2.24M|                                    for (int lodClamp = 0; lodClamp <= 1 ;++lodClamp)
  ------------------
  |  Branch (8109:60): [True: 1.49M, False: 749k]
  ------------------
 8110|  1.49M|                                    {
 8111|  1.49M|                                        if (lodClamp && (profile == EEsProfile || version < 450))
  ------------------
  |  Branch (8111:45): [True: 749k, False: 749k]
  |  Branch (8111:58): [True: 43.2k, False: 705k]
  |  Branch (8111:83): [True: 452k, False: 253k]
  ------------------
 8112|   495k|                                            continue;
 8113|  1.00M|                                        if (lodClamp && (proj || lod || fetch))
  ------------------
  |  Branch (8113:45): [True: 253k, False: 749k]
  |  Branch (8113:58): [True: 97.2k, False: 156k]
  |  Branch (8113:66): [True: 23.4k, False: 132k]
  |  Branch (8113:73): [True: 54.1k, False: 78.5k]
  ------------------
 8114|   174k|                                            continue;
 8115|       |
 8116|       |                                        // loop over "bool" sparse or not
 8117|  2.48M|                                        for (int sparse = 0; sparse <= 1; ++sparse)
  ------------------
  |  Branch (8117:62): [True: 1.65M, False: 827k]
  ------------------
 8118|  1.65M|                                        {
 8119|  1.65M|                                            if (sparse && (profile == EEsProfile || version < 450))
  ------------------
  |  Branch (8119:49): [True: 827k, False: 827k]
  |  Branch (8119:60): [True: 43.2k, False: 784k]
  |  Branch (8119:85): [True: 452k, False: 332k]
  ------------------
 8120|   495k|                                                continue;
 8121|       |                                            // Sparse sampling is not for 1D/1D array texture, buffer texture, and
 8122|       |                                            // projective texture
 8123|  1.15M|                                            if (sparse && (sampler.is1D() || sampler.isBuffer() || proj))
  ------------------
  |  Branch (8123:49): [True: 332k, False: 827k]
  |  Branch (8123:60): [True: 125k, False: 206k]
  |  Branch (8123:78): [True: 3.01k, False: 203k]
  |  Branch (8123:100): [True: 56.8k, False: 146k]
  ------------------
 8124|   185k|                                                continue;
 8125|       |
 8126|   973k|                                            TString s;
 8127|       |
 8128|       |                                            // return type
 8129|   973k|                                            if (sparse)
  ------------------
  |  Branch (8129:49): [True: 146k, False: 827k]
  ------------------
 8130|   146k|                                                s.append("int ");
 8131|   827k|                                            else {
 8132|   827k|                                                if (sampler.shadow)
  ------------------
  |  Branch (8132:53): [True: 119k, False: 707k]
  ------------------
 8133|   119k|                                                    if (sampler.type == EbtFloat16)
  ------------------
  |  Branch (8133:57): [True: 45.7k, False: 74.1k]
  ------------------
 8134|  45.7k|                                                        s.append("float16_t ");
 8135|  74.1k|                                                    else
 8136|  74.1k|                                                        s.append("float ");
 8137|   707k|                                                else {
 8138|   707k|                                                    s.append(prefixes[sampler.type]);
 8139|   707k|                                                    s.append("vec4 ");
 8140|   707k|                                                }
 8141|   827k|                                            }
 8142|       |
 8143|       |                                            // name
 8144|   973k|                                            if (sparse) {
  ------------------
  |  Branch (8144:49): [True: 146k, False: 827k]
  ------------------
 8145|   146k|                                                if (fetch)
  ------------------
  |  Branch (8145:53): [True: 33.1k, False: 113k]
  ------------------
 8146|  33.1k|                                                    s.append("sparseTexel");
 8147|   113k|                                                else
 8148|   113k|                                                    s.append("sparseTexture");
 8149|   146k|                                            }
 8150|   827k|                                            else {
 8151|   827k|                                                if (fetch)
  ------------------
  |  Branch (8151:53): [True: 239k, False: 587k]
  ------------------
 8152|   239k|                                                    s.append("texel");
 8153|   587k|                                                else
 8154|   587k|                                                    s.append("texture");
 8155|   827k|                                            }
 8156|   973k|                                            if (proj)
  ------------------
  |  Branch (8156:49): [True: 288k, False: 685k]
  ------------------
 8157|   288k|                                                s.append("Proj");
 8158|   973k|                                            if (lod)
  ------------------
  |  Branch (8158:49): [True: 136k, False: 837k]
  ------------------
 8159|   136k|                                                s.append("Lod");
 8160|   973k|                                            if (grad)
  ------------------
  |  Branch (8160:49): [True: 272k, False: 701k]
  ------------------
 8161|   272k|                                                s.append("Grad");
 8162|   973k|                                            if (fetch)
  ------------------
  |  Branch (8162:49): [True: 273k, False: 700k]
  ------------------
 8163|   273k|                                                s.append("Fetch");
 8164|   973k|                                            if (offset)
  ------------------
  |  Branch (8164:49): [True: 411k, False: 562k]
  ------------------
 8165|   411k|                                                s.append("Offset");
 8166|   973k|                                            if (lodClamp)
  ------------------
  |  Branch (8166:49): [True: 128k, False: 845k]
  ------------------
 8167|   128k|                                                s.append("Clamp");
 8168|   973k|                                            if (lodClamp != 0 || sparse)
  ------------------
  |  Branch (8168:49): [True: 128k, False: 845k]
  |  Branch (8168:66): [True: 96.6k, False: 749k]
  ------------------
 8169|   224k|                                                s.append("ARB");
 8170|   973k|                                            s.append("(");
 8171|       |
 8172|       |                                            // sampler type
 8173|   973k|                                            s.append(typeName);
 8174|       |                                            // P coordinate
 8175|   973k|                                            if (extraProj) {
  ------------------
  |  Branch (8175:49): [True: 102k, False: 871k]
  ------------------
 8176|   102k|                                                if (f16TexAddr)
  ------------------
  |  Branch (8176:53): [True: 6.62k, False: 95.4k]
  ------------------
 8177|  6.62k|                                                    s.append(",f16vec4");
 8178|  95.4k|                                                else
 8179|  95.4k|                                                    s.append(",vec4");
 8180|   871k|                                            } else {
 8181|   871k|                                                s.append(",");
 8182|   871k|                                                TBasicType t = fetch ? EbtInt : (f16TexAddr ? EbtFloat16 : EbtFloat);
  ------------------
  |  Branch (8182:64): [True: 245k, False: 626k]
  |  Branch (8182:82): [True: 81.8k, False: 544k]
  ------------------
 8183|   871k|                                                if (totalDims == 1)
  ------------------
  |  Branch (8183:53): [True: 80.6k, False: 791k]
  ------------------
 8184|  80.6k|                                                    s.append(TType::getBasicString(t));
 8185|   791k|                                                else {
 8186|   791k|                                                    s.append(prefixes[t]);
 8187|   791k|                                                    s.append("vec");
 8188|   791k|                                                    s.append(postfixes[totalDims]);
 8189|   791k|                                                }
 8190|   871k|                                            }
 8191|       |                                            // non-optional compare
 8192|   973k|                                            if (compare)
  ------------------
  |  Branch (8192:49): [True: 39.5k, False: 934k]
  ------------------
 8193|  39.5k|                                                s.append(",float");
 8194|       |
 8195|       |                                            // non-optional lod argument (lod that's not driven by lod loop) or sample
 8196|   973k|                                            if ((fetch && !sampler.isBuffer() &&
  ------------------
  |  Branch (8196:50): [True: 273k, False: 700k]
  |  Branch (8196:59): [True: 263k, False: 9.72k]
  ------------------
 8197|   263k|                                                 !sampler.isRect() && !sampler.isMultiSample())
  ------------------
  |  Branch (8197:50): [True: 263k, False: 0]
  |  Branch (8197:71): [True: 237k, False: 25.4k]
  ------------------
 8198|   736k|                                                 || (sampler.isMultiSample() && fetch))
  ------------------
  |  Branch (8198:54): [True: 25.4k, False: 710k]
  |  Branch (8198:81): [True: 25.4k, False: 0]
  ------------------
 8199|   263k|                                                s.append(",int");
 8200|       |                                            // non-optional lod
 8201|   973k|                                            if (lod) {
  ------------------
  |  Branch (8201:49): [True: 136k, False: 837k]
  ------------------
 8202|   136k|                                                if (f16TexAddr)
  ------------------
  |  Branch (8202:53): [True: 12.6k, False: 123k]
  ------------------
 8203|  12.6k|                                                    s.append(",float16_t");
 8204|   123k|                                                else
 8205|   123k|                                                    s.append(",float");
 8206|   136k|                                            }
 8207|       |
 8208|       |                                            // gradient arguments
 8209|   973k|                                            if (grad) {
  ------------------
  |  Branch (8209:49): [True: 272k, False: 701k]
  ------------------
 8210|   272k|                                                if (dimMap[sampler.dim] == 1) {
  ------------------
  |  Branch (8210:53): [True: 82.7k, False: 189k]
  ------------------
 8211|  82.7k|                                                    if (f16TexAddr)
  ------------------
  |  Branch (8211:57): [True: 8.42k, False: 74.3k]
  ------------------
 8212|  8.42k|                                                        s.append(",float16_t,float16_t");
 8213|  74.3k|                                                    else
 8214|  74.3k|                                                        s.append(",float,float");
 8215|   189k|                                                } else {
 8216|   189k|                                                    if (f16TexAddr)
  ------------------
  |  Branch (8216:57): [True: 23.7k, False: 165k]
  ------------------
 8217|  23.7k|                                                        s.append(",f16vec");
 8218|   165k|                                                    else
 8219|   165k|                                                        s.append(",vec");
 8220|   189k|                                                    s.append(postfixes[dimMap[sampler.dim]]);
 8221|   189k|                                                    if (f16TexAddr)
  ------------------
  |  Branch (8221:57): [True: 23.7k, False: 165k]
  ------------------
 8222|  23.7k|                                                        s.append(",f16vec");
 8223|   165k|                                                    else
 8224|   165k|                                                        s.append(",vec");
 8225|   189k|                                                    s.append(postfixes[dimMap[sampler.dim]]);
 8226|   189k|                                                }
 8227|   272k|                                            }
 8228|       |                                            // offset
 8229|   973k|                                            if (offset) {
  ------------------
  |  Branch (8229:49): [True: 411k, False: 562k]
  ------------------
 8230|   411k|                                                if (dimMap[sampler.dim] == 1)
  ------------------
  |  Branch (8230:53): [True: 142k, False: 268k]
  ------------------
 8231|   142k|                                                    s.append(",int");
 8232|   268k|                                                else {
 8233|   268k|                                                    s.append(",ivec");
 8234|   268k|                                                    s.append(postfixes[dimMap[sampler.dim]]);
 8235|   268k|                                                }
 8236|   411k|                                            }
 8237|       |
 8238|       |                                            // lod clamp
 8239|   973k|                                            if (lodClamp) {
  ------------------
  |  Branch (8239:49): [True: 128k, False: 845k]
  ------------------
 8240|   128k|                                                if (f16TexAddr)
  ------------------
  |  Branch (8240:53): [True: 30.7k, False: 97.5k]
  ------------------
 8241|  30.7k|                                                    s.append(",float16_t");
 8242|  97.5k|                                                else
 8243|  97.5k|                                                    s.append(",float");
 8244|   128k|                                            }
 8245|       |                                            // texel out (for sparse texture)
 8246|   973k|                                            if (sparse) {
  ------------------
  |  Branch (8246:49): [True: 146k, False: 827k]
  ------------------
 8247|   146k|                                                s.append(",out ");
 8248|   146k|                                                if (sampler.shadow)
  ------------------
  |  Branch (8248:53): [True: 28.8k, False: 117k]
  ------------------
 8249|  28.8k|                                                    if (sampler.type == EbtFloat16)
  ------------------
  |  Branch (8249:57): [True: 19.2k, False: 9.63k]
  ------------------
 8250|  19.2k|                                                        s.append("float16_t");
 8251|  9.63k|                                                    else
 8252|  9.63k|                                                        s.append("float");
 8253|   117k|                                                else {
 8254|   117k|                                                    s.append(prefixes[sampler.type]);
 8255|   117k|                                                    s.append("vec4");
 8256|   117k|                                                }
 8257|   146k|                                            }
 8258|       |                                            // optional bias
 8259|   973k|                                            if (bias) {
  ------------------
  |  Branch (8259:49): [True: 178k, False: 795k]
  ------------------
 8260|   178k|                                                if (f16TexAddr)
  ------------------
  |  Branch (8260:53): [True: 22.2k, False: 156k]
  ------------------
 8261|  22.2k|                                                    s.append(",float16_t");
 8262|   156k|                                                else
 8263|   156k|                                                    s.append(",float");
 8264|   178k|                                            }
 8265|   973k|                                            s.append(");\n");
 8266|       |
 8267|       |                                            // Add to the per-language set of built-ins
 8268|   973k|                                            if (!grad && (bias || lodClamp != 0)) {
  ------------------
  |  Branch (8268:49): [True: 701k, False: 272k]
  |  Branch (8268:59): [True: 178k, False: 523k]
  |  Branch (8268:67): [True: 44.5k, False: 478k]
  ------------------
 8269|   223k|                                                stageBuiltins[EShLangFragment].append(s);
 8270|   223k|                                                stageBuiltins[EShLangCompute].append(s);
 8271|   223k|                                            } else
 8272|   750k|                                                commonBuiltins.append(s);
 8273|       |
 8274|   973k|                                        }
 8275|   827k|                                    }
 8276|   749k|                                }
 8277|   692k|                            }
 8278|   597k|                        }
 8279|   437k|                    }
 8280|   376k|                }
 8281|   222k|            }
 8282|   168k|        }
 8283|   116k|    }
 8284|  99.4k|}
_ZN7glslang9TBuiltIns18addGatherFunctionsENS_8TSamplerERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS_14pool_allocatorIcEEEEi8EProfile:
 8293|  54.7k|{
 8294|  54.7k|    switch (sampler.dim) {
 8295|  21.6k|    case Esd2D:
  ------------------
  |  Branch (8295:5): [True: 21.6k, False: 33.0k]
  ------------------
 8296|  21.6k|    case EsdRect:
  ------------------
  |  Branch (8296:5): [True: 0, False: 54.7k]
  ------------------
 8297|  34.2k|    case EsdCube:
  ------------------
  |  Branch (8297:5): [True: 12.5k, False: 42.1k]
  ------------------
 8298|  34.2k|        break;
 8299|  20.5k|    default:
  ------------------
  |  Branch (8299:5): [True: 20.5k, False: 34.2k]
  ------------------
 8300|  20.5k|        return;
 8301|  54.7k|    }
 8302|       |
 8303|  34.2k|    if (sampler.isMultiSample())
  ------------------
  |  Branch (8303:9): [True: 9.12k, False: 25.1k]
  ------------------
 8304|  9.12k|        return;
 8305|       |
 8306|  25.1k|    if (version < 140 && sampler.dim == EsdRect && sampler.type != EbtFloat)
  ------------------
  |  Branch (8306:9): [True: 0, False: 25.1k]
  |  Branch (8306:26): [True: 0, False: 0]
  |  Branch (8306:52): [True: 0, False: 0]
  ------------------
 8307|      0|        return;
 8308|       |
 8309|  75.3k|    for (int f16TexAddr = 0; f16TexAddr <= 1; ++f16TexAddr) { // loop over 16-bit floating-point texel addressing
  ------------------
  |  Branch (8309:30): [True: 50.2k, False: 25.1k]
  ------------------
 8310|       |
 8311|  50.2k|        if (f16TexAddr && sampler.type != EbtFloat16)
  ------------------
  |  Branch (8311:13): [True: 25.1k, False: 25.1k]
  |  Branch (8311:27): [True: 22.7k, False: 2.40k]
  ------------------
 8312|  22.7k|            continue;
 8313|   110k|        for (int offset = 0; offset < 3; ++offset) { // loop over three forms of offset in the call name:  none, Offset, and Offsets
  ------------------
  |  Branch (8313:30): [True: 82.6k, False: 27.5k]
  ------------------
 8314|       |
 8315|   247k|            for (int comp = 0; comp < 2; ++comp) { // loop over presence of comp argument
  ------------------
  |  Branch (8315:32): [True: 165k, False: 82.6k]
  ------------------
 8316|       |
 8317|   165k|                if (comp > 0 && sampler.shadow)
  ------------------
  |  Branch (8317:21): [True: 82.6k, False: 82.6k]
  |  Branch (8317:33): [True: 24.2k, False: 58.3k]
  ------------------
 8318|  24.2k|                    continue;
 8319|       |
 8320|   140k|                if (offset > 0 && sampler.dim == EsdCube)
  ------------------
  |  Branch (8320:21): [True: 93.9k, False: 46.9k]
  |  Branch (8320:35): [True: 46.9k, False: 46.9k]
  ------------------
 8321|  46.9k|                    continue;
 8322|       |
 8323|   281k|                for (int sparse = 0; sparse <= 1; ++sparse) { // loop over "bool" sparse or not
  ------------------
  |  Branch (8323:38): [True: 187k, False: 93.9k]
  ------------------
 8324|   187k|                    if (sparse && (profile == EEsProfile || version < 450))
  ------------------
  |  Branch (8324:25): [True: 93.9k, False: 93.9k]
  |  Branch (8324:36): [True: 8.28k, False: 85.6k]
  |  Branch (8324:61): [True: 54.3k, False: 31.3k]
  ------------------
 8325|  62.6k|                        continue;
 8326|       |
 8327|   125k|                    TString s;
 8328|       |
 8329|       |                    // return type
 8330|   125k|                    if (sparse)
  ------------------
  |  Branch (8330:25): [True: 31.3k, False: 93.9k]
  ------------------
 8331|  31.3k|                        s.append("int ");
 8332|  93.9k|                    else {
 8333|  93.9k|                        s.append(prefixes[sampler.type]);
 8334|  93.9k|                        s.append("vec4 ");
 8335|  93.9k|                    }
 8336|       |
 8337|       |                    // name
 8338|   125k|                    if (sparse)
  ------------------
  |  Branch (8338:25): [True: 31.3k, False: 93.9k]
  ------------------
 8339|  31.3k|                        s.append("sparseTextureGather");
 8340|  93.9k|                    else
 8341|  93.9k|                        s.append("textureGather");
 8342|   125k|                    switch (offset) {
 8343|  31.3k|                    case 1:
  ------------------
  |  Branch (8343:21): [True: 31.3k, False: 93.9k]
  ------------------
 8344|  31.3k|                        s.append("Offset");
 8345|  31.3k|                        break;
 8346|  31.3k|                    case 2:
  ------------------
  |  Branch (8346:21): [True: 31.3k, False: 93.9k]
  ------------------
 8347|  31.3k|                        s.append("Offsets");
 8348|  31.3k|                        break;
 8349|  62.6k|                    default:
  ------------------
  |  Branch (8349:21): [True: 62.6k, False: 62.6k]
  ------------------
 8350|  62.6k|                        break;
 8351|   125k|                    }
 8352|   125k|                    if (sparse)
  ------------------
  |  Branch (8352:25): [True: 31.3k, False: 93.9k]
  ------------------
 8353|  31.3k|                        s.append("ARB");
 8354|   125k|                    s.append("(");
 8355|       |
 8356|       |                    // sampler type argument
 8357|   125k|                    s.append(typeName);
 8358|       |
 8359|       |                    // P coordinate argument
 8360|   125k|                    if (f16TexAddr)
  ------------------
  |  Branch (8360:25): [True: 14.4k, False: 110k]
  ------------------
 8361|  14.4k|                        s.append(",f16vec");
 8362|   110k|                    else
 8363|   110k|                        s.append(",vec");
 8364|   125k|                    int totalDims = dimMap[sampler.dim] + (sampler.arrayed ? 1 : 0);
  ------------------
  |  Branch (8364:60): [True: 62.6k, False: 62.6k]
  ------------------
 8365|   125k|                    s.append(postfixes[totalDims]);
 8366|       |
 8367|       |                    // refZ argument
 8368|   125k|                    if (sampler.shadow)
  ------------------
  |  Branch (8368:25): [True: 23.4k, False: 101k]
  ------------------
 8369|  23.4k|                        s.append(",float");
 8370|       |
 8371|       |                    // offset argument
 8372|   125k|                    if (offset > 0) {
  ------------------
  |  Branch (8372:25): [True: 62.6k, False: 62.6k]
  ------------------
 8373|  62.6k|                        s.append(",ivec2");
 8374|  62.6k|                        if (offset == 2)
  ------------------
  |  Branch (8374:29): [True: 31.3k, False: 31.3k]
  ------------------
 8375|  31.3k|                            s.append("[4]");
 8376|  62.6k|                    }
 8377|       |
 8378|       |                    // texel out (for sparse texture)
 8379|   125k|                    if (sparse) {
  ------------------
  |  Branch (8379:25): [True: 31.3k, False: 93.9k]
  ------------------
 8380|  31.3k|                        s.append(",out ");
 8381|  31.3k|                        s.append(prefixes[sampler.type]);
 8382|  31.3k|                        s.append("vec4 ");
 8383|  31.3k|                    }
 8384|       |
 8385|       |                    // comp argument
 8386|   125k|                    if (comp)
  ------------------
  |  Branch (8386:25): [True: 50.9k, False: 74.3k]
  ------------------
 8387|  50.9k|                        s.append(",int");
 8388|       |
 8389|   125k|                    s.append(");\n");
 8390|   125k|                    commonBuiltins.append(s);
 8391|   125k|                }
 8392|  93.9k|            }
 8393|  82.6k|        }
 8394|  27.5k|    }
 8395|       |
 8396|  25.1k|    if (sampler.dim == EsdRect || sampler.shadow)
  ------------------
  |  Branch (8396:9): [True: 0, False: 25.1k]
  |  Branch (8396:35): [True: 6.88k, False: 18.2k]
  ------------------
 8397|  6.88k|        return;
 8398|       |
 8399|  18.2k|    if (profile == EEsProfile || version < 450)
  ------------------
  |  Branch (8399:9): [True: 1.77k, False: 16.4k]
  |  Branch (8399:34): [True: 11.6k, False: 4.81k]
  ------------------
 8400|  13.4k|        return;
 8401|       |
 8402|  14.4k|    for (int bias = 0; bias < 2; ++bias) { // loop over presence of bias argument
  ------------------
  |  Branch (8402:24): [True: 9.63k, False: 4.81k]
  ------------------
 8403|       |
 8404|  28.8k|        for (int lod = 0; lod < 2; ++lod) { // loop over presence of lod argument
  ------------------
  |  Branch (8404:27): [True: 19.2k, False: 9.63k]
  ------------------
 8405|       |
 8406|  19.2k|            if ((lod && bias) || (lod == 0 && bias == 0))
  ------------------
  |  Branch (8406:18): [True: 9.63k, False: 9.63k]
  |  Branch (8406:25): [True: 4.81k, False: 4.81k]
  |  Branch (8406:35): [True: 9.63k, False: 4.81k]
  |  Branch (8406:47): [True: 4.81k, False: 4.81k]
  ------------------
 8407|  9.63k|                continue;
 8408|       |
 8409|  28.8k|            for (int f16TexAddr = 0; f16TexAddr <= 1; ++f16TexAddr) { // loop over 16-bit floating-point texel addressing
  ------------------
  |  Branch (8409:38): [True: 19.2k, False: 9.63k]
  ------------------
 8410|       |
 8411|  19.2k|                if (f16TexAddr && sampler.type != EbtFloat16)
  ------------------
  |  Branch (8411:21): [True: 9.63k, False: 9.63k]
  |  Branch (8411:35): [True: 7.22k, False: 2.40k]
  ------------------
 8412|  7.22k|                    continue;
 8413|       |
 8414|  48.1k|                for (int offset = 0; offset < 3; ++offset) { // loop over three forms of offset in the call name:  none, Offset, and Offsets
  ------------------
  |  Branch (8414:38): [True: 36.1k, False: 12.0k]
  ------------------
 8415|       |
 8416|   108k|                    for (int comp = 0; comp < 2; ++comp) { // loop over presence of comp argument
  ------------------
  |  Branch (8416:40): [True: 72.2k, False: 36.1k]
  ------------------
 8417|       |
 8418|  72.2k|                        if (comp == 0 && bias)
  ------------------
  |  Branch (8418:29): [True: 36.1k, False: 36.1k]
  |  Branch (8418:42): [True: 18.0k, False: 18.0k]
  ------------------
 8419|  18.0k|                            continue;
 8420|       |
 8421|  54.1k|                        if (offset > 0 && sampler.dim == EsdCube)
  ------------------
  |  Branch (8421:29): [True: 36.1k, False: 18.0k]
  |  Branch (8421:43): [True: 18.0k, False: 18.0k]
  ------------------
 8422|  18.0k|                            continue;
 8423|       |
 8424|   108k|                        for (int sparse = 0; sparse <= 1; ++sparse) { // loop over "bool" sparse or not
  ------------------
  |  Branch (8424:46): [True: 72.2k, False: 36.1k]
  ------------------
 8425|  72.2k|                            if (sparse && (profile == EEsProfile || version < 450))
  ------------------
  |  Branch (8425:33): [True: 36.1k, False: 36.1k]
  |  Branch (8425:44): [True: 0, False: 36.1k]
  |  Branch (8425:69): [True: 0, False: 36.1k]
  ------------------
 8426|      0|                                continue;
 8427|       |
 8428|  72.2k|                            TString s;
 8429|       |
 8430|       |                            // return type
 8431|  72.2k|                            if (sparse)
  ------------------
  |  Branch (8431:33): [True: 36.1k, False: 36.1k]
  ------------------
 8432|  36.1k|                                s.append("int ");
 8433|  36.1k|                            else {
 8434|  36.1k|                                s.append(prefixes[sampler.type]);
 8435|  36.1k|                                s.append("vec4 ");
 8436|  36.1k|                            }
 8437|       |
 8438|       |                            // name
 8439|  72.2k|                            if (sparse)
  ------------------
  |  Branch (8439:33): [True: 36.1k, False: 36.1k]
  ------------------
 8440|  36.1k|                                s.append("sparseTextureGather");
 8441|  36.1k|                            else
 8442|  36.1k|                                s.append("textureGather");
 8443|       |
 8444|  72.2k|                            if (lod)
  ------------------
  |  Branch (8444:33): [True: 48.1k, False: 24.0k]
  ------------------
 8445|  48.1k|                                s.append("Lod");
 8446|       |
 8447|  72.2k|                            switch (offset) {
 8448|  18.0k|                            case 1:
  ------------------
  |  Branch (8448:29): [True: 18.0k, False: 54.1k]
  ------------------
 8449|  18.0k|                                s.append("Offset");
 8450|  18.0k|                                break;
 8451|  18.0k|                            case 2:
  ------------------
  |  Branch (8451:29): [True: 18.0k, False: 54.1k]
  ------------------
 8452|  18.0k|                                s.append("Offsets");
 8453|  18.0k|                                break;
 8454|  36.1k|                            default:
  ------------------
  |  Branch (8454:29): [True: 36.1k, False: 36.1k]
  ------------------
 8455|  36.1k|                                break;
 8456|  72.2k|                            }
 8457|       |
 8458|  72.2k|                            if (lod)
  ------------------
  |  Branch (8458:33): [True: 48.1k, False: 24.0k]
  ------------------
 8459|  48.1k|                                s.append("AMD");
 8460|  24.0k|                            else if (sparse)
  ------------------
  |  Branch (8460:38): [True: 12.0k, False: 12.0k]
  ------------------
 8461|  12.0k|                                s.append("ARB");
 8462|       |
 8463|  72.2k|                            s.append("(");
 8464|       |
 8465|       |                            // sampler type argument
 8466|  72.2k|                            s.append(typeName);
 8467|       |
 8468|       |                            // P coordinate argument
 8469|  72.2k|                            if (f16TexAddr)
  ------------------
  |  Branch (8469:33): [True: 14.4k, False: 57.7k]
  ------------------
 8470|  14.4k|                                s.append(",f16vec");
 8471|  57.7k|                            else
 8472|  57.7k|                                s.append(",vec");
 8473|  72.2k|                            int totalDims = dimMap[sampler.dim] + (sampler.arrayed ? 1 : 0);
  ------------------
  |  Branch (8473:68): [True: 36.1k, False: 36.1k]
  ------------------
 8474|  72.2k|                            s.append(postfixes[totalDims]);
 8475|       |
 8476|       |                            // lod argument
 8477|  72.2k|                            if (lod) {
  ------------------
  |  Branch (8477:33): [True: 48.1k, False: 24.0k]
  ------------------
 8478|  48.1k|                                if (f16TexAddr)
  ------------------
  |  Branch (8478:37): [True: 9.63k, False: 38.5k]
  ------------------
 8479|  9.63k|                                    s.append(",float16_t");
 8480|  38.5k|                                else
 8481|  38.5k|                                    s.append(",float");
 8482|  48.1k|                            }
 8483|       |
 8484|       |                            // offset argument
 8485|  72.2k|                            if (offset > 0) {
  ------------------
  |  Branch (8485:33): [True: 36.1k, False: 36.1k]
  ------------------
 8486|  36.1k|                                s.append(",ivec2");
 8487|  36.1k|                                if (offset == 2)
  ------------------
  |  Branch (8487:37): [True: 18.0k, False: 18.0k]
  ------------------
 8488|  18.0k|                                    s.append("[4]");
 8489|  36.1k|                            }
 8490|       |
 8491|       |                            // texel out (for sparse texture)
 8492|  72.2k|                            if (sparse) {
  ------------------
  |  Branch (8492:33): [True: 36.1k, False: 36.1k]
  ------------------
 8493|  36.1k|                                s.append(",out ");
 8494|  36.1k|                                s.append(prefixes[sampler.type]);
 8495|  36.1k|                                s.append("vec4 ");
 8496|  36.1k|                            }
 8497|       |
 8498|       |                            // comp argument
 8499|  72.2k|                            if (comp)
  ------------------
  |  Branch (8499:33): [True: 48.1k, False: 24.0k]
  ------------------
 8500|  48.1k|                                s.append(",int");
 8501|       |
 8502|       |                            // bias argument
 8503|  72.2k|                            if (bias) {
  ------------------
  |  Branch (8503:33): [True: 24.0k, False: 48.1k]
  ------------------
 8504|  24.0k|                                if (f16TexAddr)
  ------------------
  |  Branch (8504:37): [True: 4.81k, False: 19.2k]
  ------------------
 8505|  4.81k|                                    s.append(",float16_t");
 8506|  19.2k|                                else
 8507|  19.2k|                                    s.append(",float");
 8508|  24.0k|                            }
 8509|       |
 8510|  72.2k|                            s.append(");\n");
 8511|  72.2k|                            if (bias) {
  ------------------
  |  Branch (8511:33): [True: 24.0k, False: 48.1k]
  ------------------
 8512|  24.0k|                                stageBuiltins[EShLangFragment].append(s);
 8513|  24.0k|                                stageBuiltins[EShLangCompute].append(s);
 8514|  24.0k|                                stageBuiltins[EShLangTask].append(s);
 8515|  24.0k|                                stageBuiltins[EShLangMesh].append(s);
 8516|  24.0k|                            } else
 8517|  48.1k|                                commonBuiltins.append(s);
 8518|  72.2k|                        }
 8519|  36.1k|                    }
 8520|  36.1k|                }
 8521|  12.0k|            }
 8522|  9.63k|        }
 8523|  9.63k|    }
 8524|  4.81k|}
_ZN7glslang9TBuiltIns22addGatherFunctionsQCOMEv:
 8527|  1.42k|{
 8528|  1.42k|    const TBasicType bTypes[] = { EbtFloat, EbtInt, EbtUint };
 8529|  1.42k|    const TSamplerDim sDims[] = { Esd2D };
 8530|  1.42k|    const TString modes[] = { "4x1", "V2", "H2", "D" };
 8531|  4.26k|    for (size_t arrayed = 0; arrayed <= 1; ++arrayed) { // loop over "bool" arrayed or not
  ------------------
  |  Branch (8531:30): [True: 2.84k, False: 1.42k]
  ------------------
 8532|  5.68k|        for (size_t dimIdx = 0; dimIdx < std::size(sDims); ++dimIdx) {
  ------------------
  |  Branch (8532:33): [True: 2.84k, False: 2.84k]
  ------------------
 8533|  2.84k|            int dim = sDims[dimIdx];
 8534|       |            // Loop over the bTypes
 8535|  11.3k|            for (size_t bType = 0; bType < std::size(bTypes); ++bType) {
  ------------------
  |  Branch (8535:36): [True: 8.52k, False: 2.84k]
  ------------------
 8536|  42.6k|                for (size_t mode = 0; mode < std::size(modes); ++mode) {
  ------------------
  |  Branch (8536:39): [True: 34.0k, False: 8.52k]
  ------------------
 8537|       |                    // loop over two forms of offset in the call name:  none, and Offset
 8538|   102k|                    for (int offset = 0; offset < 2; ++offset) {
  ------------------
  |  Branch (8538:42): [True: 68.1k, False: 34.0k]
  ------------------
 8539|   204k|                        for (int comp = 0; comp < 2; ++comp) {
  ------------------
  |  Branch (8539:44): [True: 136k, False: 68.1k]
  ------------------
 8540|       |                            //
 8541|       |                            // Now, make all the function prototypes for the type we just built...
 8542|       |                            //
 8543|   136k|                            TSampler sampler;
 8544|   136k|                            sampler.set(bTypes[bType], (TSamplerDim)dim, arrayed ? true : false, false, false);
  ------------------
  |  Branch (8544:74): [True: 68.1k, False: 68.1k]
  ------------------
 8545|   136k|                            TString typeName = sampler.getString().c_str();
 8546|       |
 8547|   136k|                            TString s;
 8548|   136k|                            s.append(prefixes[sampler.type]);
 8549|   136k|                            s.append("vec4 textureGather");
 8550|   136k|                            s.append(modes[mode]);
 8551|       |
 8552|   136k|                            if (offset == 1)
  ------------------
  |  Branch (8552:33): [True: 68.1k, False: 68.1k]
  ------------------
 8553|  68.1k|                                s.append("Offset");
 8554|       |
 8555|   136k|                            s.append("QCOM(");
 8556|   136k|                            s.append(typeName);
 8557|   136k|                            s.append(", vec");
 8558|   136k|                            int totalDims = dimMap[sampler.dim] + (sampler.arrayed ? 1 : 0);
  ------------------
  |  Branch (8558:68): [True: 68.1k, False: 68.1k]
  ------------------
 8559|   136k|                            s.append(postfixes[totalDims]);
 8560|       |
 8561|       |                            // offset argument
 8562|   136k|                            if (offset == 1)
  ------------------
  |  Branch (8562:33): [True: 68.1k, False: 68.1k]
  ------------------
 8563|  68.1k|                                s.append(", ivec2");
 8564|       |
 8565|   136k|                            if (comp)
  ------------------
  |  Branch (8565:33): [True: 68.1k, False: 68.1k]
  ------------------
 8566|  68.1k|                                s.append(", int");
 8567|   136k|                            s.append(");\n");
 8568|   136k|                            commonBuiltins.append(s);
 8569|   136k|                        }
 8570|  68.1k|                    }
 8571|  34.0k|                }
 8572|  8.52k|            }
 8573|  2.84k|        }
 8574|  2.84k|    }
 8575|  1.42k|}
_ZN7glslang9TBuiltIns10initializeERK16TBuiltInResourcei8EProfileRKNS_10SpvVersionE11EShLanguage:
 8585|  4.26k|{
 8586|       |    //
 8587|       |    // Initialize the context-dependent (resource-dependent) built-in strings for parsing.
 8588|       |    //
 8589|       |
 8590|       |    //============================================================================
 8591|       |    //
 8592|       |    // Standard Uniforms
 8593|       |    //
 8594|       |    //============================================================================
 8595|       |
 8596|  4.26k|    TString& s = commonBuiltins;
 8597|  4.26k|    const int maxSize = 200;
 8598|  4.26k|    char builtInConstant[maxSize];
 8599|       |
 8600|       |    //
 8601|       |    // Build string of implementation dependent constants.
 8602|       |    //
 8603|       |
 8604|  4.26k|    if (profile == EEsProfile) {
  ------------------
  |  Branch (8604:9): [True: 444, False: 3.81k]
  ------------------
 8605|    444|        snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxVertexAttribs = %d;", resources.maxVertexAttribs);
 8606|    444|        s.append(builtInConstant);
 8607|       |
 8608|    444|        snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxVertexUniformVectors = %d;", resources.maxVertexUniformVectors);
 8609|    444|        s.append(builtInConstant);
 8610|       |
 8611|    444|        snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxVertexTextureImageUnits = %d;", resources.maxVertexTextureImageUnits);
 8612|    444|        s.append(builtInConstant);
 8613|       |
 8614|    444|        snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxCombinedTextureImageUnits = %d;", resources.maxCombinedTextureImageUnits);
 8615|    444|        s.append(builtInConstant);
 8616|       |
 8617|    444|        snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxTextureImageUnits = %d;", resources.maxTextureImageUnits);
 8618|    444|        s.append(builtInConstant);
 8619|       |
 8620|    444|        snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxFragmentUniformVectors = %d;", resources.maxFragmentUniformVectors);
 8621|    444|        s.append(builtInConstant);
 8622|       |
 8623|    444|        snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxDrawBuffers = %d;", resources.maxDrawBuffers);
 8624|    444|        s.append(builtInConstant);
 8625|       |
 8626|    444|        if (version == 100) {
  ------------------
  |  Branch (8626:13): [True: 0, False: 444]
  ------------------
 8627|      0|            snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxVaryingVectors = %d;", resources.maxVaryingVectors);
 8628|      0|            s.append(builtInConstant);
 8629|    444|        } else {
 8630|    444|            snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxVertexOutputVectors = %d;", resources.maxVertexOutputVectors);
 8631|    444|            s.append(builtInConstant);
 8632|       |
 8633|    444|            snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxFragmentInputVectors = %d;", resources.maxFragmentInputVectors);
 8634|    444|            s.append(builtInConstant);
 8635|       |
 8636|    444|            snprintf(builtInConstant, maxSize, "const mediump int  gl_MinProgramTexelOffset = %d;", resources.minProgramTexelOffset);
 8637|    444|            s.append(builtInConstant);
 8638|       |
 8639|    444|            snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxProgramTexelOffset = %d;", resources.maxProgramTexelOffset);
 8640|    444|            s.append(builtInConstant);
 8641|    444|        }
 8642|       |
 8643|    444|        if (version >= 310) {
  ------------------
  |  Branch (8643:13): [True: 444, False: 0]
  ------------------
 8644|       |            // geometry
 8645|       |
 8646|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryInputComponents = %d;", resources.maxGeometryInputComponents);
 8647|    444|            s.append(builtInConstant);
 8648|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryOutputComponents = %d;", resources.maxGeometryOutputComponents);
 8649|    444|            s.append(builtInConstant);
 8650|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryImageUniforms = %d;", resources.maxGeometryImageUniforms);
 8651|    444|            s.append(builtInConstant);
 8652|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryTextureImageUnits = %d;", resources.maxGeometryTextureImageUnits);
 8653|    444|            s.append(builtInConstant);
 8654|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryOutputVertices = %d;", resources.maxGeometryOutputVertices);
 8655|    444|            s.append(builtInConstant);
 8656|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryTotalOutputComponents = %d;", resources.maxGeometryTotalOutputComponents);
 8657|    444|            s.append(builtInConstant);
 8658|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryUniformComponents = %d;", resources.maxGeometryUniformComponents);
 8659|    444|            s.append(builtInConstant);
 8660|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryAtomicCounters = %d;", resources.maxGeometryAtomicCounters);
 8661|    444|            s.append(builtInConstant);
 8662|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryAtomicCounterBuffers = %d;", resources.maxGeometryAtomicCounterBuffers);
 8663|    444|            s.append(builtInConstant);
 8664|       |
 8665|       |            // tessellation
 8666|       |
 8667|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlInputComponents = %d;", resources.maxTessControlInputComponents);
 8668|    444|            s.append(builtInConstant);
 8669|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlOutputComponents = %d;", resources.maxTessControlOutputComponents);
 8670|    444|            s.append(builtInConstant);
 8671|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlTextureImageUnits = %d;", resources.maxTessControlTextureImageUnits);
 8672|    444|            s.append(builtInConstant);
 8673|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlUniformComponents = %d;", resources.maxTessControlUniformComponents);
 8674|    444|            s.append(builtInConstant);
 8675|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlTotalOutputComponents = %d;", resources.maxTessControlTotalOutputComponents);
 8676|    444|            s.append(builtInConstant);
 8677|       |
 8678|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationInputComponents = %d;", resources.maxTessEvaluationInputComponents);
 8679|    444|            s.append(builtInConstant);
 8680|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationOutputComponents = %d;", resources.maxTessEvaluationOutputComponents);
 8681|    444|            s.append(builtInConstant);
 8682|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationTextureImageUnits = %d;", resources.maxTessEvaluationTextureImageUnits);
 8683|    444|            s.append(builtInConstant);
 8684|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationUniformComponents = %d;", resources.maxTessEvaluationUniformComponents);
 8685|    444|            s.append(builtInConstant);
 8686|       |
 8687|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessPatchComponents = %d;", resources.maxTessPatchComponents);
 8688|    444|            s.append(builtInConstant);
 8689|       |
 8690|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxPatchVertices = %d;", resources.maxPatchVertices);
 8691|    444|            s.append(builtInConstant);
 8692|    444|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessGenLevel = %d;", resources.maxTessGenLevel);
 8693|    444|            s.append(builtInConstant);
 8694|       |
 8695|       |            // this is here instead of with the others in initialize(version, profile) due to the dependence on gl_MaxPatchVertices
 8696|    444|            if (language == EShLangTessControl || language == EShLangTessEvaluation) {
  ------------------
  |  Branch (8696:17): [True: 0, False: 444]
  |  Branch (8696:51): [True: 0, False: 444]
  ------------------
 8697|      0|                s.append(
 8698|      0|                    "in gl_PerVertex {"
 8699|      0|                        "highp vec4 gl_Position;"
 8700|      0|                        "highp float gl_PointSize;"
 8701|      0|                        "highp float gl_ClipDistance[];"      // GL_EXT_clip_cull_distance
 8702|      0|                        "highp float gl_CullDistance[];"      // GL_EXT_clip_cull_distance
 8703|      0|                        "highp vec4 gl_SecondaryPositionNV;"  // GL_NV_stereo_view_rendering
 8704|      0|                        "highp vec4 gl_PositionPerViewNV[];"  // GL_NVX_multiview_per_view_attributes
 8705|      0|                    "} gl_in[gl_MaxPatchVertices];"
 8706|      0|                    "\n");
 8707|      0|            }
 8708|    444|        }
 8709|       |
 8710|    444|        if (version >= 320) {
  ------------------
  |  Branch (8710:13): [True: 21, False: 423]
  ------------------
 8711|       |            // tessellation
 8712|       |
 8713|     21|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlImageUniforms = %d;", resources.maxTessControlImageUniforms);
 8714|     21|            s.append(builtInConstant);
 8715|     21|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationImageUniforms = %d;", resources.maxTessEvaluationImageUniforms);
 8716|     21|            s.append(builtInConstant);
 8717|     21|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlAtomicCounters = %d;", resources.maxTessControlAtomicCounters);
 8718|     21|            s.append(builtInConstant);
 8719|     21|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationAtomicCounters = %d;", resources.maxTessEvaluationAtomicCounters);
 8720|     21|            s.append(builtInConstant);
 8721|     21|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlAtomicCounterBuffers = %d;", resources.maxTessControlAtomicCounterBuffers);
 8722|     21|            s.append(builtInConstant);
 8723|     21|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationAtomicCounterBuffers = %d;", resources.maxTessEvaluationAtomicCounterBuffers);
 8724|     21|            s.append(builtInConstant);
 8725|     21|        }
 8726|       |
 8727|    444|        if (version >= 100) {
  ------------------
  |  Branch (8727:13): [True: 444, False: 0]
  ------------------
 8728|       |            // GL_EXT_blend_func_extended
 8729|    444|            snprintf(builtInConstant, maxSize, "const mediump int gl_MaxDualSourceDrawBuffersEXT = %d;", resources.maxDualSourceDrawBuffersEXT);
 8730|    444|            s.append(builtInConstant);
 8731|       |            // this is here instead of with the others in initialize(version, profile) due to the dependence on gl_MaxDualSourceDrawBuffersEXT
 8732|    444|            if (language == EShLangFragment) {
  ------------------
  |  Branch (8732:17): [True: 148, False: 296]
  ------------------
 8733|    148|                s.append(
 8734|    148|                    "mediump vec4 gl_SecondaryFragColorEXT;"
 8735|    148|                    "mediump vec4 gl_SecondaryFragDataEXT[gl_MaxDualSourceDrawBuffersEXT];"
 8736|    148|                    "\n");
 8737|    148|            }
 8738|    444|        }
 8739|       |
 8740|    444|        if (version >= 300) {
  ------------------
  |  Branch (8740:13): [True: 444, False: 0]
  ------------------
 8741|       |            // GL_EXT_clip_cull_distance
 8742|    444|            snprintf(builtInConstant, maxSize, "const mediump int gl_MaxClipDistances = %d;", resources.maxClipDistances);
 8743|    444|            s.append(builtInConstant);
 8744|    444|            snprintf(builtInConstant, maxSize, "const mediump int gl_MaxCullDistances = %d;", resources.maxCullDistances);
 8745|    444|            s.append(builtInConstant);
 8746|    444|            snprintf(builtInConstant, maxSize, "const mediump int gl_MaxCombinedClipAndCullDistances = %d;", resources.maxCombinedClipAndCullDistances);
 8747|    444|            s.append(builtInConstant);
 8748|    444|        }
 8749|  3.81k|    } else {
 8750|       |        // non-ES profile
 8751|       |
 8752|  3.81k|        if (version > 400) {
  ------------------
  |  Branch (8752:13): [True: 1.61k, False: 2.19k]
  ------------------
 8753|  1.61k|            snprintf(builtInConstant, maxSize, "const int  gl_MaxVertexUniformVectors = %d;", resources.maxVertexUniformVectors);
 8754|  1.61k|            s.append(builtInConstant);
 8755|       |
 8756|  1.61k|            snprintf(builtInConstant, maxSize, "const int  gl_MaxFragmentUniformVectors = %d;", resources.maxFragmentUniformVectors);
 8757|  1.61k|            s.append(builtInConstant);
 8758|       |
 8759|  1.61k|            snprintf(builtInConstant, maxSize, "const int  gl_MaxVaryingVectors = %d;", resources.maxVaryingVectors);
 8760|  1.61k|            s.append(builtInConstant);
 8761|  1.61k|        }
 8762|       |
 8763|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxVertexAttribs = %d;", resources.maxVertexAttribs);
 8764|  3.81k|        s.append(builtInConstant);
 8765|       |
 8766|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxVertexTextureImageUnits = %d;", resources.maxVertexTextureImageUnits);
 8767|  3.81k|        s.append(builtInConstant);
 8768|       |
 8769|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxCombinedTextureImageUnits = %d;", resources.maxCombinedTextureImageUnits);
 8770|  3.81k|        s.append(builtInConstant);
 8771|       |
 8772|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxTextureImageUnits = %d;", resources.maxTextureImageUnits);
 8773|  3.81k|        s.append(builtInConstant);
 8774|       |
 8775|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxDrawBuffers = %d;", resources.maxDrawBuffers);
 8776|  3.81k|        s.append(builtInConstant);
 8777|       |
 8778|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxLights = %d;", resources.maxLights);
 8779|  3.81k|        s.append(builtInConstant);
 8780|       |
 8781|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxClipPlanes = %d;", resources.maxClipPlanes);
 8782|  3.81k|        s.append(builtInConstant);
 8783|       |
 8784|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxTextureUnits = %d;", resources.maxTextureUnits);
 8785|  3.81k|        s.append(builtInConstant);
 8786|       |
 8787|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxTextureCoords = %d;", resources.maxTextureCoords);
 8788|  3.81k|        s.append(builtInConstant);
 8789|       |
 8790|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxVertexUniformComponents = %d;", resources.maxVertexUniformComponents);
 8791|  3.81k|        s.append(builtInConstant);
 8792|       |
 8793|       |        // Moved from just being deprecated into compatibility profile only as of 4.20
 8794|  3.81k|        if (version < 420 || profile == ECompatibilityProfile) {
  ------------------
  |  Branch (8794:13): [True: 2.20k, False: 1.61k]
  |  Branch (8794:30): [True: 78, False: 1.53k]
  ------------------
 8795|  2.28k|            snprintf(builtInConstant, maxSize, "const int  gl_MaxVaryingFloats = %d;", resources.maxVaryingFloats);
 8796|  2.28k|            s.append(builtInConstant);
 8797|  2.28k|        }
 8798|       |
 8799|  3.81k|        snprintf(builtInConstant, maxSize, "const int  gl_MaxFragmentUniformComponents = %d;", resources.maxFragmentUniformComponents);
 8800|  3.81k|        s.append(builtInConstant);
 8801|       |
 8802|  3.81k|        if (spvVersion.spv == 0 && IncludeLegacy(version, profile, spvVersion)) {
  ------------------
  |  Branch (8802:13): [True: 0, False: 3.81k]
  |  Branch (8802:36): [True: 0, False: 0]
  ------------------
 8803|       |            //
 8804|       |            // OpenGL'uniform' state.  Page numbers are in reference to version
 8805|       |            // 1.4 of the OpenGL specification.
 8806|       |            //
 8807|       |
 8808|       |            //
 8809|       |            // Matrix state. p. 31, 32, 37, 39, 40.
 8810|       |            //
 8811|      0|            s.append("uniform mat4  gl_TextureMatrix[gl_MaxTextureCoords];"
 8812|       |
 8813|       |            //
 8814|       |            // Derived matrix state that provides inverse and transposed versions
 8815|       |            // of the matrices above.
 8816|       |            //
 8817|      0|                        "uniform mat4  gl_TextureMatrixInverse[gl_MaxTextureCoords];"
 8818|       |
 8819|      0|                        "uniform mat4  gl_TextureMatrixTranspose[gl_MaxTextureCoords];"
 8820|       |
 8821|      0|                        "uniform mat4  gl_TextureMatrixInverseTranspose[gl_MaxTextureCoords];"
 8822|       |
 8823|       |            //
 8824|       |            // Clip planes p. 42.
 8825|       |            //
 8826|      0|                        "uniform vec4  gl_ClipPlane[gl_MaxClipPlanes];"
 8827|       |
 8828|       |            //
 8829|       |            // Light State p 50, 53, 55.
 8830|       |            //
 8831|      0|                        "uniform gl_LightSourceParameters  gl_LightSource[gl_MaxLights];"
 8832|       |
 8833|       |            //
 8834|       |            // Derived state from products of light.
 8835|       |            //
 8836|      0|                        "uniform gl_LightProducts gl_FrontLightProduct[gl_MaxLights];"
 8837|      0|                        "uniform gl_LightProducts gl_BackLightProduct[gl_MaxLights];"
 8838|       |
 8839|       |            //
 8840|       |            // Texture Environment and Generation, p. 152, p. 40-42.
 8841|       |            //
 8842|      0|                        "uniform vec4  gl_TextureEnvColor[gl_MaxTextureImageUnits];"
 8843|      0|                        "uniform vec4  gl_EyePlaneS[gl_MaxTextureCoords];"
 8844|      0|                        "uniform vec4  gl_EyePlaneT[gl_MaxTextureCoords];"
 8845|      0|                        "uniform vec4  gl_EyePlaneR[gl_MaxTextureCoords];"
 8846|      0|                        "uniform vec4  gl_EyePlaneQ[gl_MaxTextureCoords];"
 8847|      0|                        "uniform vec4  gl_ObjectPlaneS[gl_MaxTextureCoords];"
 8848|      0|                        "uniform vec4  gl_ObjectPlaneT[gl_MaxTextureCoords];"
 8849|      0|                        "uniform vec4  gl_ObjectPlaneR[gl_MaxTextureCoords];"
 8850|      0|                        "uniform vec4  gl_ObjectPlaneQ[gl_MaxTextureCoords];");
 8851|      0|        }
 8852|       |
 8853|  3.81k|        if (version >= 130) {
  ------------------
  |  Branch (8853:13): [True: 3.81k, False: 0]
  ------------------
 8854|  3.81k|            snprintf(builtInConstant, maxSize, "const int gl_MaxClipDistances = %d;", resources.maxClipDistances);
 8855|  3.81k|            s.append(builtInConstant);
 8856|  3.81k|            snprintf(builtInConstant, maxSize, "const int gl_MaxVaryingComponents = %d;", resources.maxVaryingComponents);
 8857|  3.81k|            s.append(builtInConstant);
 8858|       |
 8859|       |            // GL_ARB_shading_language_420pack
 8860|  3.81k|            snprintf(builtInConstant, maxSize, "const mediump int  gl_MinProgramTexelOffset = %d;", resources.minProgramTexelOffset);
 8861|  3.81k|            s.append(builtInConstant);
 8862|  3.81k|            snprintf(builtInConstant, maxSize, "const mediump int  gl_MaxProgramTexelOffset = %d;", resources.maxProgramTexelOffset);
 8863|  3.81k|            s.append(builtInConstant);
 8864|  3.81k|        }
 8865|       |
 8866|       |        // geometry
 8867|  3.81k|        if (version >= 150) {
  ------------------
  |  Branch (8867:13): [True: 2.26k, False: 1.54k]
  ------------------
 8868|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryInputComponents = %d;", resources.maxGeometryInputComponents);
 8869|  2.26k|            s.append(builtInConstant);
 8870|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryOutputComponents = %d;", resources.maxGeometryOutputComponents);
 8871|  2.26k|            s.append(builtInConstant);
 8872|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryTextureImageUnits = %d;", resources.maxGeometryTextureImageUnits);
 8873|  2.26k|            s.append(builtInConstant);
 8874|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryOutputVertices = %d;", resources.maxGeometryOutputVertices);
 8875|  2.26k|            s.append(builtInConstant);
 8876|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryTotalOutputComponents = %d;", resources.maxGeometryTotalOutputComponents);
 8877|  2.26k|            s.append(builtInConstant);
 8878|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryUniformComponents = %d;", resources.maxGeometryUniformComponents);
 8879|  2.26k|            s.append(builtInConstant);
 8880|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryVaryingComponents = %d;", resources.maxGeometryVaryingComponents);
 8881|  2.26k|            s.append(builtInConstant);
 8882|       |
 8883|  2.26k|        }
 8884|       |
 8885|  3.81k|        if (version >= 150) {
  ------------------
  |  Branch (8885:13): [True: 2.26k, False: 1.54k]
  ------------------
 8886|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxVertexOutputComponents = %d;", resources.maxVertexOutputComponents);
 8887|  2.26k|            s.append(builtInConstant);
 8888|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxFragmentInputComponents = %d;", resources.maxFragmentInputComponents);
 8889|  2.26k|            s.append(builtInConstant);
 8890|  2.26k|        }
 8891|       |
 8892|       |        // tessellation
 8893|  3.81k|        if (version >= 150) {
  ------------------
  |  Branch (8893:13): [True: 2.26k, False: 1.54k]
  ------------------
 8894|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlInputComponents = %d;", resources.maxTessControlInputComponents);
 8895|  2.26k|            s.append(builtInConstant);
 8896|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlOutputComponents = %d;", resources.maxTessControlOutputComponents);
 8897|  2.26k|            s.append(builtInConstant);
 8898|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlTextureImageUnits = %d;", resources.maxTessControlTextureImageUnits);
 8899|  2.26k|            s.append(builtInConstant);
 8900|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlUniformComponents = %d;", resources.maxTessControlUniformComponents);
 8901|  2.26k|            s.append(builtInConstant);
 8902|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlTotalOutputComponents = %d;", resources.maxTessControlTotalOutputComponents);
 8903|  2.26k|            s.append(builtInConstant);
 8904|       |
 8905|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationInputComponents = %d;", resources.maxTessEvaluationInputComponents);
 8906|  2.26k|            s.append(builtInConstant);
 8907|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationOutputComponents = %d;", resources.maxTessEvaluationOutputComponents);
 8908|  2.26k|            s.append(builtInConstant);
 8909|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationTextureImageUnits = %d;", resources.maxTessEvaluationTextureImageUnits);
 8910|  2.26k|            s.append(builtInConstant);
 8911|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationUniformComponents = %d;", resources.maxTessEvaluationUniformComponents);
 8912|  2.26k|            s.append(builtInConstant);
 8913|       |
 8914|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessPatchComponents = %d;", resources.maxTessPatchComponents);
 8915|  2.26k|            s.append(builtInConstant);
 8916|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessGenLevel = %d;", resources.maxTessGenLevel);
 8917|  2.26k|            s.append(builtInConstant);
 8918|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxPatchVertices = %d;", resources.maxPatchVertices);
 8919|  2.26k|            s.append(builtInConstant);
 8920|       |
 8921|       |            // this is here instead of with the others in initialize(version, profile) due to the dependence on gl_MaxPatchVertices
 8922|  2.26k|            if (language == EShLangTessControl || language == EShLangTessEvaluation) {
  ------------------
  |  Branch (8922:17): [True: 0, False: 2.26k]
  |  Branch (8922:51): [True: 0, False: 2.26k]
  ------------------
 8923|      0|                s.append(
 8924|      0|                    "in gl_PerVertex {"
 8925|      0|                        "vec4 gl_Position;"
 8926|      0|                        "float gl_PointSize;"
 8927|      0|                        "float gl_ClipDistance[];"
 8928|      0|                    );
 8929|      0|                if (profile == ECompatibilityProfile)
  ------------------
  |  Branch (8929:21): [True: 0, False: 0]
  ------------------
 8930|      0|                    s.append(
 8931|      0|                        "vec4 gl_ClipVertex;"
 8932|      0|                        "vec4 gl_FrontColor;"
 8933|      0|                        "vec4 gl_BackColor;"
 8934|      0|                        "vec4 gl_FrontSecondaryColor;"
 8935|      0|                        "vec4 gl_BackSecondaryColor;"
 8936|      0|                        "vec4 gl_TexCoord[];"
 8937|      0|                        "float gl_FogFragCoord;"
 8938|      0|                        );
 8939|      0|                s.append(
 8940|      0|                    "float gl_CullDistance[];"  // GL_ARB_cull_distance, core in 450
 8941|      0|                    );
 8942|      0|                if (profile != EEsProfile && version >= 450)
  ------------------
  |  Branch (8942:21): [True: 0, False: 0]
  |  Branch (8942:46): [True: 0, False: 0]
  ------------------
 8943|      0|                    s.append(
 8944|      0|                        "vec4 gl_SecondaryPositionNV;"  // GL_NV_stereo_view_rendering
 8945|      0|                        "vec4 gl_PositionPerViewNV[];"  // GL_NVX_multiview_per_view_attributes
 8946|      0|                       );
 8947|      0|                s.append(
 8948|      0|                    "} gl_in[gl_MaxPatchVertices];"
 8949|      0|                    "\n");
 8950|      0|            }
 8951|  2.26k|        }
 8952|       |
 8953|  3.81k|        if (version >= 150) {
  ------------------
  |  Branch (8953:13): [True: 2.26k, False: 1.54k]
  ------------------
 8954|  2.26k|            snprintf(builtInConstant, maxSize, "const int gl_MaxViewports = %d;", resources.maxViewports);
 8955|  2.26k|            s.append(builtInConstant);
 8956|  2.26k|        }
 8957|       |
 8958|       |        // images
 8959|  3.81k|        if (version >= 130) {
  ------------------
  |  Branch (8959:13): [True: 3.81k, False: 0]
  ------------------
 8960|  3.81k|            snprintf(builtInConstant, maxSize, "const int gl_MaxCombinedImageUnitsAndFragmentOutputs = %d;", resources.maxCombinedImageUnitsAndFragmentOutputs);
 8961|  3.81k|            s.append(builtInConstant);
 8962|  3.81k|            snprintf(builtInConstant, maxSize, "const int gl_MaxImageSamples = %d;", resources.maxImageSamples);
 8963|  3.81k|            s.append(builtInConstant);
 8964|  3.81k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlImageUniforms = %d;", resources.maxTessControlImageUniforms);
 8965|  3.81k|            s.append(builtInConstant);
 8966|  3.81k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationImageUniforms = %d;", resources.maxTessEvaluationImageUniforms);
 8967|  3.81k|            s.append(builtInConstant);
 8968|  3.81k|            snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryImageUniforms = %d;", resources.maxGeometryImageUniforms);
 8969|  3.81k|            s.append(builtInConstant);
 8970|  3.81k|        }
 8971|       |
 8972|       |        // enhanced layouts
 8973|  3.81k|        if (version >= 430) {
  ------------------
  |  Branch (8973:13): [True: 1.60k, False: 2.20k]
  ------------------
 8974|  1.60k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTransformFeedbackBuffers = %d;", resources.maxTransformFeedbackBuffers);
 8975|  1.60k|            s.append(builtInConstant);
 8976|  1.60k|            snprintf(builtInConstant, maxSize, "const int gl_MaxTransformFeedbackInterleavedComponents = %d;", resources.maxTransformFeedbackInterleavedComponents);
 8977|  1.60k|            s.append(builtInConstant);
 8978|  1.60k|        }
 8979|  3.81k|    }
 8980|       |
 8981|       |    // compute
 8982|  4.26k|    if ((profile == EEsProfile && version >= 310) || (profile != EEsProfile && version >= 420)) {
  ------------------
  |  Branch (8982:10): [True: 444, False: 3.81k]
  |  Branch (8982:35): [True: 444, False: 0]
  |  Branch (8982:55): [True: 3.81k, False: 0]
  |  Branch (8982:80): [True: 1.61k, False: 2.20k]
  ------------------
 8983|  2.05k|        snprintf(builtInConstant, maxSize, "const ivec3 gl_MaxComputeWorkGroupCount = ivec3(%d,%d,%d);", resources.maxComputeWorkGroupCountX,
 8984|  2.05k|                                                                                                         resources.maxComputeWorkGroupCountY,
 8985|  2.05k|                                                                                                         resources.maxComputeWorkGroupCountZ);
 8986|  2.05k|        s.append(builtInConstant);
 8987|  2.05k|        snprintf(builtInConstant, maxSize, "const ivec3 gl_MaxComputeWorkGroupSize = ivec3(%d,%d,%d);", resources.maxComputeWorkGroupSizeX,
 8988|  2.05k|                                                                                                        resources.maxComputeWorkGroupSizeY,
 8989|  2.05k|                                                                                                        resources.maxComputeWorkGroupSizeZ);
 8990|  2.05k|        s.append(builtInConstant);
 8991|       |
 8992|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxComputeUniformComponents = %d;", resources.maxComputeUniformComponents);
 8993|  2.05k|        s.append(builtInConstant);
 8994|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxComputeTextureImageUnits = %d;", resources.maxComputeTextureImageUnits);
 8995|  2.05k|        s.append(builtInConstant);
 8996|       |
 8997|       |        // GL_ARM_tensors operands.
 8998|  2.05k|        snprintf(builtInConstant, maxSize, "const uint gl_TensorOperandsNonTemporalARM = 0x1U;");
 8999|  2.05k|        s.append(builtInConstant);
 9000|  2.05k|        snprintf(builtInConstant, maxSize, "const uint gl_TensorOperandsOutOfBoundsValueARM = 0x2U;");
 9001|  2.05k|        s.append(builtInConstant);
 9002|       |
 9003|  2.05k|        s.append("\n");
 9004|  2.05k|    }
 9005|       |
 9006|       |    // images (some in compute below)
 9007|  4.26k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (9007:10): [True: 444, False: 3.81k]
  |  Branch (9007:35): [True: 444, False: 0]
  ------------------
 9008|  4.26k|        (profile != EEsProfile && version >= 130)) {
  ------------------
  |  Branch (9008:10): [True: 3.81k, False: 0]
  |  Branch (9008:35): [True: 3.81k, False: 0]
  ------------------
 9009|  4.26k|        snprintf(builtInConstant, maxSize, "const int gl_MaxImageUnits = %d;", resources.maxImageUnits);
 9010|  4.26k|        s.append(builtInConstant);
 9011|  4.26k|        snprintf(builtInConstant, maxSize, "const int gl_MaxCombinedShaderOutputResources = %d;", resources.maxCombinedShaderOutputResources);
 9012|  4.26k|        s.append(builtInConstant);
 9013|  4.26k|        snprintf(builtInConstant, maxSize, "const int gl_MaxVertexImageUniforms = %d;", resources.maxVertexImageUniforms);
 9014|  4.26k|        s.append(builtInConstant);
 9015|  4.26k|        snprintf(builtInConstant, maxSize, "const int gl_MaxFragmentImageUniforms = %d;", resources.maxFragmentImageUniforms);
 9016|  4.26k|        s.append(builtInConstant);
 9017|  4.26k|        snprintf(builtInConstant, maxSize, "const int gl_MaxCombinedImageUniforms = %d;", resources.maxCombinedImageUniforms);
 9018|  4.26k|        s.append(builtInConstant);
 9019|  4.26k|    }
 9020|       |
 9021|       |    // compute
 9022|  4.26k|    if ((profile == EEsProfile && version >= 310) || (profile != EEsProfile && version >= 420)) {
  ------------------
  |  Branch (9022:10): [True: 444, False: 3.81k]
  |  Branch (9022:35): [True: 444, False: 0]
  |  Branch (9022:55): [True: 3.81k, False: 0]
  |  Branch (9022:80): [True: 1.61k, False: 2.20k]
  ------------------
 9023|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxComputeImageUniforms = %d;", resources.maxComputeImageUniforms);
 9024|  2.05k|        s.append(builtInConstant);
 9025|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxComputeAtomicCounters = %d;", resources.maxComputeAtomicCounters);
 9026|  2.05k|        s.append(builtInConstant);
 9027|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxComputeAtomicCounterBuffers = %d;", resources.maxComputeAtomicCounterBuffers);
 9028|  2.05k|        s.append(builtInConstant);
 9029|       |
 9030|  2.05k|        s.append("\n");
 9031|  2.05k|    }
 9032|       |
 9033|       |    // atomic counters (some in compute below)
 9034|  4.26k|    if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (9034:10): [True: 444, False: 3.81k]
  |  Branch (9034:35): [True: 444, False: 0]
  ------------------
 9035|  3.81k|        (profile != EEsProfile && version >= 420)) {
  ------------------
  |  Branch (9035:10): [True: 3.81k, False: 0]
  |  Branch (9035:35): [True: 1.61k, False: 2.20k]
  ------------------
 9036|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxVertexAtomicCounters = %d;", resources.               maxVertexAtomicCounters);
 9037|  2.05k|        s.append(builtInConstant);
 9038|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxFragmentAtomicCounters = %d;", resources.             maxFragmentAtomicCounters);
 9039|  2.05k|        s.append(builtInConstant);
 9040|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxCombinedAtomicCounters = %d;", resources.             maxCombinedAtomicCounters);
 9041|  2.05k|        s.append(builtInConstant);
 9042|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxAtomicCounterBindings = %d;", resources.              maxAtomicCounterBindings);
 9043|  2.05k|        s.append(builtInConstant);
 9044|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxVertexAtomicCounterBuffers = %d;", resources.         maxVertexAtomicCounterBuffers);
 9045|  2.05k|        s.append(builtInConstant);
 9046|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxFragmentAtomicCounterBuffers = %d;", resources.       maxFragmentAtomicCounterBuffers);
 9047|  2.05k|        s.append(builtInConstant);
 9048|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxCombinedAtomicCounterBuffers = %d;", resources.       maxCombinedAtomicCounterBuffers);
 9049|  2.05k|        s.append(builtInConstant);
 9050|  2.05k|        snprintf(builtInConstant, maxSize, "const int gl_MaxAtomicCounterBufferSize = %d;", resources.            maxAtomicCounterBufferSize);
 9051|  2.05k|        s.append(builtInConstant);
 9052|  2.05k|    }
 9053|  4.26k|    if (profile != EEsProfile && version >= 420) {
  ------------------
  |  Branch (9053:9): [True: 3.81k, False: 444]
  |  Branch (9053:34): [True: 1.61k, False: 2.20k]
  ------------------
 9054|  1.61k|        snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlAtomicCounters = %d;", resources.          maxTessControlAtomicCounters);
 9055|  1.61k|        s.append(builtInConstant);
 9056|  1.61k|        snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationAtomicCounters = %d;", resources.       maxTessEvaluationAtomicCounters);
 9057|  1.61k|        s.append(builtInConstant);
 9058|  1.61k|        snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryAtomicCounters = %d;", resources.             maxGeometryAtomicCounters);
 9059|  1.61k|        s.append(builtInConstant);
 9060|  1.61k|        snprintf(builtInConstant, maxSize, "const int gl_MaxTessControlAtomicCounterBuffers = %d;", resources.    maxTessControlAtomicCounterBuffers);
 9061|  1.61k|        s.append(builtInConstant);
 9062|  1.61k|        snprintf(builtInConstant, maxSize, "const int gl_MaxTessEvaluationAtomicCounterBuffers = %d;", resources. maxTessEvaluationAtomicCounterBuffers);
 9063|  1.61k|        s.append(builtInConstant);
 9064|  1.61k|        snprintf(builtInConstant, maxSize, "const int gl_MaxGeometryAtomicCounterBuffers = %d;", resources.       maxGeometryAtomicCounterBuffers);
 9065|  1.61k|        s.append(builtInConstant);
 9066|       |
 9067|  1.61k|        s.append("\n");
 9068|  1.61k|    }
 9069|       |
 9070|       |    // GL_ARB_cull_distance, core in 450
 9071|  4.26k|    if (profile != EEsProfile && version >= 130) {
  ------------------
  |  Branch (9071:9): [True: 3.81k, False: 444]
  |  Branch (9071:34): [True: 3.81k, False: 0]
  ------------------
 9072|  3.81k|        snprintf(builtInConstant, maxSize, "const int gl_MaxCullDistances = %d;",                resources.maxCullDistances);
 9073|  3.81k|        s.append(builtInConstant);
 9074|  3.81k|        snprintf(builtInConstant, maxSize, "const int gl_MaxCombinedClipAndCullDistances = %d;", resources.maxCombinedClipAndCullDistances);
 9075|  3.81k|        s.append(builtInConstant);
 9076|  3.81k|    }
 9077|       |
 9078|       |    // GL_ARB_ES3_1_compatibility
 9079|  4.26k|    if ((profile != EEsProfile && version >= 450) ||
  ------------------
  |  Branch (9079:10): [True: 3.81k, False: 444]
  |  Branch (9079:35): [True: 903, False: 2.91k]
  ------------------
 9080|  3.35k|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (9080:10): [True: 444, False: 2.91k]
  |  Branch (9080:35): [True: 444, False: 0]
  ------------------
 9081|  1.34k|        snprintf(builtInConstant, maxSize, "const int gl_MaxSamples = %d;", resources.maxSamples);
 9082|  1.34k|        s.append(builtInConstant);
 9083|  1.34k|    }
 9084|       |
 9085|       |    // SPV_NV_mesh_shader
 9086|  4.26k|    if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (9086:10): [True: 3.81k, False: 444]
  |  Branch (9086:35): [True: 903, False: 2.91k]
  |  Branch (9086:55): [True: 444, False: 2.91k]
  |  Branch (9086:80): [True: 21, False: 423]
  ------------------
 9087|    924|        snprintf(builtInConstant, maxSize, "const int gl_MaxMeshOutputVerticesNV = %d;", resources.maxMeshOutputVerticesNV);
 9088|    924|        s.append(builtInConstant);
 9089|       |
 9090|    924|        snprintf(builtInConstant, maxSize, "const int gl_MaxMeshOutputPrimitivesNV = %d;", resources.maxMeshOutputPrimitivesNV);
 9091|    924|        s.append(builtInConstant);
 9092|       |
 9093|    924|        snprintf(builtInConstant, maxSize, "const ivec3 gl_MaxMeshWorkGroupSizeNV = ivec3(%d,%d,%d);", resources.maxMeshWorkGroupSizeX_NV,
 9094|    924|                                                                                                       resources.maxMeshWorkGroupSizeY_NV,
 9095|    924|                                                                                                       resources.maxMeshWorkGroupSizeZ_NV);
 9096|    924|        s.append(builtInConstant);
 9097|    924|        snprintf(builtInConstant, maxSize, "const ivec3 gl_MaxTaskWorkGroupSizeNV = ivec3(%d,%d,%d);", resources.maxTaskWorkGroupSizeX_NV,
 9098|    924|                                                                                                       resources.maxTaskWorkGroupSizeY_NV,
 9099|    924|                                                                                                       resources.maxTaskWorkGroupSizeZ_NV);
 9100|    924|        s.append(builtInConstant);
 9101|       |
 9102|    924|        snprintf(builtInConstant, maxSize, "const int gl_MaxMeshViewCountNV = %d;", resources.maxMeshViewCountNV);
 9103|    924|        s.append(builtInConstant);
 9104|       |
 9105|    924|        s.append("\n");
 9106|    924|    }
 9107|       |
 9108|  4.26k|    s.append("\n");
 9109|  4.26k|}
_ZN7glslang9TBuiltIns16identifyBuiltInsEi8EProfileRKNS_10SpvVersionE11EShLanguageRNS_12TSymbolTableE:
 9208|  8.65k|{
 9209|       |    //
 9210|       |    // Tag built-in variables and functions with additional qualifier and extension information
 9211|       |    // that cannot be declared with the text strings.
 9212|       |    //
 9213|       |
 9214|       |    // N.B.: a symbol should only be tagged once, and this function is called multiple times, once
 9215|       |    // per stage that's used for this profile.  So
 9216|       |    //  - generally, stick common ones in the fragment stage to ensure they are tagged exactly once
 9217|       |    //  - for ES, which has different precisions for different stages, the coarsest-grained tagging
 9218|       |    //    for a built-in used in many stages needs to be once for the fragment stage and once for
 9219|       |    //    the vertex stage
 9220|       |
 9221|  8.65k|    switch(language) {
 9222|  1.42k|    case EShLangVertex:
  ------------------
  |  Branch (9222:5): [True: 1.42k, False: 7.23k]
  ------------------
 9223|  1.42k|        if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (9223:13): [True: 1.42k, False: 0]
  ------------------
 9224|  1.42k|            BuiltInVariable("gl_VertexIndex",   EbvVertexIndex,   symbolTable);
 9225|  1.42k|            BuiltInVariable("gl_InstanceIndex", EbvInstanceIndex, symbolTable);
 9226|  1.42k|        }
 9227|       |
 9228|  1.42k|        if (spvVersion.vulkan == 0) {
  ------------------
  |  Branch (9228:13): [True: 0, False: 1.42k]
  ------------------
 9229|      0|            SpecialQualifier("gl_VertexID",   EvqVertexId,   EbvVertexId,   symbolTable);
 9230|      0|            SpecialQualifier("gl_InstanceID", EvqInstanceId, EbvInstanceId, symbolTable);
 9231|      0|            if (version < 140)
  ------------------
  |  Branch (9231:17): [True: 0, False: 0]
  ------------------
 9232|      0|                symbolTable.setVariableExtensions("gl_InstanceID", 1, &E_GL_EXT_draw_instanced);
 9233|      0|        }
 9234|       |
 9235|  1.42k|        if (spvVersion.vulkan > 0 && spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (9235:13): [True: 1.42k, False: 0]
  |  Branch (9235:38): [True: 0, False: 1.42k]
  ------------------
 9236|       |            // treat these built-ins as aliases of VertexIndex and InstanceIndex
 9237|      0|            RetargetVariable("gl_InstanceID", "gl_InstanceIndex", symbolTable);
 9238|      0|            RetargetVariable("gl_VertexID", "gl_VertexIndex", symbolTable);
 9239|      0|        }
 9240|       |
 9241|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9241:13): [True: 1.27k, False: 148]
  ------------------
 9242|  1.27k|            if (version >= 440) {
  ------------------
  |  Branch (9242:17): [True: 376, False: 896]
  ------------------
 9243|    376|                symbolTable.setVariableExtensions("gl_BaseVertexARB",   1, &E_GL_ARB_shader_draw_parameters);
 9244|    376|                symbolTable.setVariableExtensions("gl_BaseInstanceARB", 1, &E_GL_ARB_shader_draw_parameters);
 9245|    376|                symbolTable.setVariableExtensions("gl_DrawIDARB",       1, &E_GL_ARB_shader_draw_parameters);
 9246|    376|                BuiltInVariable("gl_BaseVertexARB",   EbvBaseVertex,   symbolTable);
 9247|    376|                BuiltInVariable("gl_BaseInstanceARB", EbvBaseInstance, symbolTable);
 9248|    376|                BuiltInVariable("gl_DrawIDARB",       EbvDrawId,       symbolTable);
 9249|    376|            }
 9250|  1.27k|            if (version >= 460) {
  ------------------
  |  Branch (9250:17): [True: 45, False: 1.22k]
  ------------------
 9251|     45|                BuiltInVariable("gl_BaseVertex",   EbvBaseVertex,   symbolTable);
 9252|     45|                BuiltInVariable("gl_BaseInstance", EbvBaseInstance, symbolTable);
 9253|     45|                BuiltInVariable("gl_DrawID",       EbvDrawId,       symbolTable);
 9254|     45|            }
 9255|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupSizeARB",       1, &E_GL_ARB_shader_ballot);
 9256|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupInvocationARB", 1, &E_GL_ARB_shader_ballot);
 9257|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupEqMaskARB",     1, &E_GL_ARB_shader_ballot);
 9258|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupGeMaskARB",     1, &E_GL_ARB_shader_ballot);
 9259|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupGtMaskARB",     1, &E_GL_ARB_shader_ballot);
 9260|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupLeMaskARB",     1, &E_GL_ARB_shader_ballot);
 9261|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupLtMaskARB",     1, &E_GL_ARB_shader_ballot);
 9262|       |
 9263|  1.27k|            symbolTable.setFunctionExtensions("ballotARB",              1, &E_GL_ARB_shader_ballot);
 9264|  1.27k|            symbolTable.setFunctionExtensions("readInvocationARB",      1, &E_GL_ARB_shader_ballot);
 9265|  1.27k|            symbolTable.setFunctionExtensions("readFirstInvocationARB", 1, &E_GL_ARB_shader_ballot);
 9266|       |
 9267|  1.27k|            if (version >= 430) {
  ------------------
  |  Branch (9267:17): [True: 536, False: 736]
  ------------------
 9268|    536|                symbolTable.setFunctionExtensions("anyInvocationARB",       1, &E_GL_ARB_shader_group_vote);
 9269|    536|                symbolTable.setFunctionExtensions("allInvocationsARB",      1, &E_GL_ARB_shader_group_vote);
 9270|    536|                symbolTable.setFunctionExtensions("allInvocationsEqualARB", 1, &E_GL_ARB_shader_group_vote);
 9271|    536|            }
 9272|  1.27k|            if (version >= 150) {
  ------------------
  |  Branch (9272:17): [True: 756, False: 516]
  ------------------
 9273|    756|                symbolTable.setFunctionExtensions("anyThreadNV",       1, &E_GL_NV_gpu_shader5);
 9274|    756|                symbolTable.setFunctionExtensions("allThreadsNV",      1, &E_GL_NV_gpu_shader5);
 9275|    756|                symbolTable.setFunctionExtensions("allThreadsEqualNV", 1, &E_GL_NV_gpu_shader5);
 9276|    756|            }
 9277|  1.27k|        }
 9278|       |
 9279|       |
 9280|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9280:13): [True: 1.27k, False: 148]
  ------------------
 9281|  1.27k|            symbolTable.setFunctionExtensions("minInvocationsAMD",                1, &E_GL_AMD_shader_ballot);
 9282|  1.27k|            symbolTable.setFunctionExtensions("maxInvocationsAMD",                1, &E_GL_AMD_shader_ballot);
 9283|  1.27k|            symbolTable.setFunctionExtensions("addInvocationsAMD",                1, &E_GL_AMD_shader_ballot);
 9284|  1.27k|            symbolTable.setFunctionExtensions("minInvocationsNonUniformAMD",      1, &E_GL_AMD_shader_ballot);
 9285|  1.27k|            symbolTable.setFunctionExtensions("maxInvocationsNonUniformAMD",      1, &E_GL_AMD_shader_ballot);
 9286|  1.27k|            symbolTable.setFunctionExtensions("addInvocationsNonUniformAMD",      1, &E_GL_AMD_shader_ballot);
 9287|  1.27k|            symbolTable.setFunctionExtensions("swizzleInvocationsAMD",            1, &E_GL_AMD_shader_ballot);
 9288|  1.27k|            symbolTable.setFunctionExtensions("swizzleInvocationsWithPatternAMD", 1, &E_GL_AMD_shader_ballot);
 9289|  1.27k|            symbolTable.setFunctionExtensions("writeInvocationAMD",               1, &E_GL_AMD_shader_ballot);
 9290|  1.27k|            symbolTable.setFunctionExtensions("mbcntAMD",                         1, &E_GL_AMD_shader_ballot);
 9291|       |
 9292|  1.27k|            symbolTable.setFunctionExtensions("minInvocationsInclusiveScanAMD",             1, &E_GL_AMD_shader_ballot);
 9293|  1.27k|            symbolTable.setFunctionExtensions("maxInvocationsInclusiveScanAMD",             1, &E_GL_AMD_shader_ballot);
 9294|  1.27k|            symbolTable.setFunctionExtensions("addInvocationsInclusiveScanAMD",             1, &E_GL_AMD_shader_ballot);
 9295|  1.27k|            symbolTable.setFunctionExtensions("minInvocationsInclusiveScanNonUniformAMD",   1, &E_GL_AMD_shader_ballot);
 9296|  1.27k|            symbolTable.setFunctionExtensions("maxInvocationsInclusiveScanNonUniformAMD",   1, &E_GL_AMD_shader_ballot);
 9297|  1.27k|            symbolTable.setFunctionExtensions("addInvocationsInclusiveScanNonUniformAMD",   1, &E_GL_AMD_shader_ballot);
 9298|  1.27k|            symbolTable.setFunctionExtensions("minInvocationsExclusiveScanAMD",             1, &E_GL_AMD_shader_ballot);
 9299|  1.27k|            symbolTable.setFunctionExtensions("maxInvocationsExclusiveScanAMD",             1, &E_GL_AMD_shader_ballot);
 9300|  1.27k|            symbolTable.setFunctionExtensions("addInvocationsExclusiveScanAMD",             1, &E_GL_AMD_shader_ballot);
 9301|  1.27k|            symbolTable.setFunctionExtensions("minInvocationsExclusiveScanNonUniformAMD",   1, &E_GL_AMD_shader_ballot);
 9302|  1.27k|            symbolTable.setFunctionExtensions("maxInvocationsExclusiveScanNonUniformAMD",   1, &E_GL_AMD_shader_ballot);
 9303|  1.27k|            symbolTable.setFunctionExtensions("addInvocationsExclusiveScanNonUniformAMD",   1, &E_GL_AMD_shader_ballot);
 9304|  1.27k|        }
 9305|       |
 9306|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9306:13): [True: 1.27k, False: 148]
  ------------------
 9307|  1.27k|            symbolTable.setFunctionExtensions("min3", 1, &E_GL_AMD_shader_trinary_minmax);
 9308|  1.27k|            symbolTable.setFunctionExtensions("max3", 1, &E_GL_AMD_shader_trinary_minmax);
 9309|  1.27k|            symbolTable.setFunctionExtensions("mid3", 1, &E_GL_AMD_shader_trinary_minmax);
 9310|  1.27k|        }
 9311|       |
 9312|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9312:13): [True: 1.27k, False: 148]
  ------------------
 9313|  1.27k|            symbolTable.setVariableExtensions("gl_SIMDGroupSizeAMD", 1, &E_GL_AMD_gcn_shader);
 9314|  1.27k|            SpecialQualifier("gl_SIMDGroupSizeAMD", EvqVaryingIn, EbvSubGroupSize, symbolTable);
 9315|       |
 9316|  1.27k|            symbolTable.setFunctionExtensions("cubeFaceIndexAMD", 1, &E_GL_AMD_gcn_shader);
 9317|  1.27k|            symbolTable.setFunctionExtensions("cubeFaceCoordAMD", 1, &E_GL_AMD_gcn_shader);
 9318|  1.27k|            symbolTable.setFunctionExtensions("timeAMD",          1, &E_GL_AMD_gcn_shader);
 9319|  1.27k|            symbolTable.setFunctionExtensions("ballotAMD",        1, &E_GL_AMD_gcn_shader);
 9320|  1.27k|        }
 9321|       |
 9322|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9322:13): [True: 1.27k, False: 148]
  ------------------
 9323|  1.27k|            symbolTable.setFunctionExtensions("fragmentMaskFetchAMD", 1, &E_GL_AMD_shader_fragment_mask);
 9324|  1.27k|            symbolTable.setFunctionExtensions("fragmentFetchAMD",     1, &E_GL_AMD_shader_fragment_mask);
 9325|  1.27k|        }
 9326|       |
 9327|  1.42k|        symbolTable.setFunctionExtensions("countLeadingZeros",  1, &E_GL_INTEL_shader_integer_functions2);
 9328|  1.42k|        symbolTable.setFunctionExtensions("countTrailingZeros", 1, &E_GL_INTEL_shader_integer_functions2);
 9329|  1.42k|        symbolTable.setFunctionExtensions("absoluteDifference", 1, &E_GL_INTEL_shader_integer_functions2);
 9330|  1.42k|        symbolTable.setFunctionExtensions("addSaturate",        1, &E_GL_INTEL_shader_integer_functions2);
 9331|  1.42k|        symbolTable.setFunctionExtensions("subtractSaturate",   1, &E_GL_INTEL_shader_integer_functions2);
 9332|  1.42k|        symbolTable.setFunctionExtensions("average",            1, &E_GL_INTEL_shader_integer_functions2);
 9333|  1.42k|        symbolTable.setFunctionExtensions("averageRounded",     1, &E_GL_INTEL_shader_integer_functions2);
 9334|  1.42k|        symbolTable.setFunctionExtensions("multiply32x16",      1, &E_GL_INTEL_shader_integer_functions2);
 9335|       |
 9336|  1.42k|        symbolTable.setFunctionExtensions("textureFootprintNV",          1, &E_GL_NV_shader_texture_footprint);
 9337|  1.42k|        symbolTable.setFunctionExtensions("textureFootprintClampNV",     1, &E_GL_NV_shader_texture_footprint);
 9338|  1.42k|        symbolTable.setFunctionExtensions("textureFootprintLodNV",       1, &E_GL_NV_shader_texture_footprint);
 9339|  1.42k|        symbolTable.setFunctionExtensions("textureFootprintGradNV",      1, &E_GL_NV_shader_texture_footprint);
 9340|  1.42k|        symbolTable.setFunctionExtensions("textureFootprintGradClampNV", 1, &E_GL_NV_shader_texture_footprint);
 9341|       |        // Compatibility variables, vertex only
 9342|  1.42k|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (9342:13): [True: 0, False: 1.42k]
  ------------------
 9343|      0|            BuiltInVariable("gl_Color",          EbvColor,          symbolTable);
 9344|      0|            BuiltInVariable("gl_SecondaryColor", EbvSecondaryColor, symbolTable);
 9345|      0|            BuiltInVariable("gl_Normal",         EbvNormal,         symbolTable);
 9346|      0|            BuiltInVariable("gl_Vertex",         EbvVertex,         symbolTable);
 9347|      0|            BuiltInVariable("gl_MultiTexCoord0", EbvMultiTexCoord0, symbolTable);
 9348|      0|            BuiltInVariable("gl_MultiTexCoord1", EbvMultiTexCoord1, symbolTable);
 9349|      0|            BuiltInVariable("gl_MultiTexCoord2", EbvMultiTexCoord2, symbolTable);
 9350|      0|            BuiltInVariable("gl_MultiTexCoord3", EbvMultiTexCoord3, symbolTable);
 9351|      0|            BuiltInVariable("gl_MultiTexCoord4", EbvMultiTexCoord4, symbolTable);
 9352|      0|            BuiltInVariable("gl_MultiTexCoord5", EbvMultiTexCoord5, symbolTable);
 9353|      0|            BuiltInVariable("gl_MultiTexCoord6", EbvMultiTexCoord6, symbolTable);
 9354|      0|            BuiltInVariable("gl_MultiTexCoord7", EbvMultiTexCoord7, symbolTable);
 9355|      0|            BuiltInVariable("gl_FogCoord",       EbvFogFragCoord,   symbolTable);
 9356|      0|        }
 9357|       |
 9358|  1.42k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (9358:13): [True: 148, False: 1.27k]
  ------------------
 9359|    148|            if (spvVersion.spv == 0) {
  ------------------
  |  Branch (9359:17): [True: 0, False: 148]
  ------------------
 9360|      0|                symbolTable.setFunctionExtensions("texture2DGradEXT",     1, &E_GL_EXT_shader_texture_lod);
 9361|      0|                symbolTable.setFunctionExtensions("texture2DProjGradEXT", 1, &E_GL_EXT_shader_texture_lod);
 9362|      0|                symbolTable.setFunctionExtensions("textureCubeGradEXT",   1, &E_GL_EXT_shader_texture_lod);
 9363|      0|                if (version == 310)
  ------------------
  |  Branch (9363:21): [True: 0, False: 0]
  ------------------
 9364|      0|                    symbolTable.setFunctionExtensions("textureGatherOffsets", Num_AEP_gpu_shader5, AEP_gpu_shader5);
 9365|      0|            }
 9366|    148|            if (version == 310) {
  ------------------
  |  Branch (9366:17): [True: 141, False: 7]
  ------------------
 9367|    141|                symbolTable.setFunctionExtensions("fma", Num_AEP_gpu_shader5, AEP_gpu_shader5);
 9368|    141|            } else if (profile != EEsProfile && version >= 150) {
  ------------------
  |  Branch (9368:24): [True: 0, False: 7]
  |  Branch (9368:49): [True: 0, False: 0]
  ------------------
 9369|      0|                symbolTable.setFunctionExtensions("fma", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9370|      0|            }
 9371|    148|        }
 9372|       |
 9373|  1.42k|        if (profile == EEsProfile && version < 320) {
  ------------------
  |  Branch (9373:13): [True: 148, False: 1.27k]
  |  Branch (9373:38): [True: 141, False: 7]
  ------------------
 9374|    141|            symbolTable.setFunctionExtensions("imageAtomicAdd",      1, &E_GL_OES_shader_image_atomic);
 9375|    141|            symbolTable.setFunctionExtensions("imageAtomicMin",      1, &E_GL_OES_shader_image_atomic);
 9376|    141|            symbolTable.setFunctionExtensions("imageAtomicMax",      1, &E_GL_OES_shader_image_atomic);
 9377|    141|            symbolTable.setFunctionExtensions("imageAtomicAnd",      1, &E_GL_OES_shader_image_atomic);
 9378|    141|            symbolTable.setFunctionExtensions("imageAtomicOr",       1, &E_GL_OES_shader_image_atomic);
 9379|    141|            symbolTable.setFunctionExtensions("imageAtomicXor",      1, &E_GL_OES_shader_image_atomic);
 9380|    141|            symbolTable.setFunctionExtensions("imageAtomicExchange", 1, &E_GL_OES_shader_image_atomic);
 9381|    141|            symbolTable.setFunctionExtensions("imageAtomicCompSwap", 1, &E_GL_OES_shader_image_atomic);
 9382|    141|        }
 9383|       |
 9384|  1.42k|        if (version >= 300 /* both ES and non-ES */) {
  ------------------
  |  Branch (9384:13): [True: 748, False: 672]
  ------------------
 9385|    748|            symbolTable.setVariableExtensions("gl_ViewID_OVR", Num_OVR_multiview_EXTs, OVR_multiview_EXTs);
 9386|    748|            BuiltInVariable("gl_ViewID_OVR", EbvViewIndex, symbolTable);
 9387|    748|        }
 9388|       |
 9389|  1.42k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (9389:13): [True: 148, False: 1.27k]
  ------------------
 9390|    148|            symbolTable.setFunctionExtensions("shadow2DEXT",        1, &E_GL_EXT_shadow_samplers);
 9391|    148|            symbolTable.setFunctionExtensions("shadow2DProjEXT",    1, &E_GL_EXT_shadow_samplers);
 9392|    148|        }
 9393|       |
 9394|       |        // E_GL_EXT_texture_array
 9395|  1.42k|        if (profile != EEsProfile && spvVersion.spv == 0) {
  ------------------
  |  Branch (9395:13): [True: 1.27k, False: 148]
  |  Branch (9395:38): [True: 0, False: 1.27k]
  ------------------
 9396|      0|            symbolTable.setFunctionExtensions("texture1DArray", 1, &E_GL_EXT_texture_array);
 9397|      0|            symbolTable.setFunctionExtensions("texture2DArray", 1, &E_GL_EXT_texture_array);
 9398|      0|            symbolTable.setFunctionExtensions("shadow1DArray", 1, &E_GL_EXT_texture_array);
 9399|      0|            symbolTable.setFunctionExtensions("shadow2DArray", 1, &E_GL_EXT_texture_array);
 9400|       |
 9401|      0|            symbolTable.setFunctionExtensions("texture1DArrayLod", 1, &E_GL_EXT_texture_array);
 9402|      0|            symbolTable.setFunctionExtensions("texture2DArrayLod", 1, &E_GL_EXT_texture_array);
 9403|      0|            symbolTable.setFunctionExtensions("shadow1DArrayLod", 1, &E_GL_EXT_texture_array);
 9404|      0|        }
 9405|  1.42k|        [[fallthrough]];
 9406|       |
 9407|  2.32k|    case EShLangTessControl:
  ------------------
  |  Branch (9407:5): [True: 904, False: 7.75k]
  ------------------
 9408|  2.32k|        if (profile == EEsProfile && version >= 310) {
  ------------------
  |  Branch (9408:13): [True: 296, False: 2.02k]
  |  Branch (9408:38): [True: 296, False: 0]
  ------------------
 9409|    296|            BuiltInVariable("gl_BoundingBoxEXT", EbvBoundingBox, symbolTable);
 9410|    296|            symbolTable.setVariableExtensions("gl_BoundingBoxEXT", 1,
 9411|    296|                                              &E_GL_EXT_primitive_bounding_box);
 9412|    296|            BuiltInVariable("gl_BoundingBoxOES", EbvBoundingBox, symbolTable);
 9413|    296|            symbolTable.setVariableExtensions("gl_BoundingBoxOES", 1,
 9414|    296|                                              &E_GL_OES_primitive_bounding_box);
 9415|       |
 9416|    296|            if (version >= 320) {
  ------------------
  |  Branch (9416:17): [True: 14, False: 282]
  ------------------
 9417|     14|                BuiltInVariable("gl_BoundingBox", EbvBoundingBox, symbolTable);
 9418|     14|            }
 9419|    296|        }
 9420|  2.32k|        [[fallthrough]];
 9421|       |
 9422|  3.22k|    case EShLangTessEvaluation:
  ------------------
  |  Branch (9422:5): [True: 904, False: 7.75k]
  ------------------
 9423|  4.13k|    case EShLangGeometry:
  ------------------
  |  Branch (9423:5): [True: 904, False: 7.75k]
  ------------------
 9424|  4.13k|        SpecialQualifier("gl_Position",   EvqPosition,   EbvPosition,   symbolTable);
 9425|  4.13k|        SpecialQualifier("gl_PointSize",  EvqPointSize,  EbvPointSize,  symbolTable);
 9426|       |
 9427|  4.13k|        BuiltInVariable("gl_in",  "gl_Position",     EbvPosition,     symbolTable);
 9428|  4.13k|        BuiltInVariable("gl_in",  "gl_PointSize",    EbvPointSize,    symbolTable);
 9429|       |
 9430|  4.13k|        BuiltInVariable("gl_out", "gl_Position",     EbvPosition,     symbolTable);
 9431|  4.13k|        BuiltInVariable("gl_out", "gl_PointSize",    EbvPointSize,    symbolTable);
 9432|       |
 9433|  4.13k|        SpecialQualifier("gl_ClipVertex", EvqClipVertex, EbvClipVertex, symbolTable);
 9434|       |
 9435|  4.13k|        BuiltInVariable("gl_in",  "gl_ClipDistance", EbvClipDistance, symbolTable);
 9436|  4.13k|        BuiltInVariable("gl_in",  "gl_CullDistance", EbvCullDistance, symbolTable);
 9437|       |
 9438|  4.13k|        BuiltInVariable("gl_out", "gl_ClipDistance", EbvClipDistance, symbolTable);
 9439|  4.13k|        BuiltInVariable("gl_out", "gl_CullDistance", EbvCullDistance, symbolTable);
 9440|       |
 9441|  4.13k|        BuiltInVariable("gl_ClipDistance",    EbvClipDistance,   symbolTable);
 9442|  4.13k|        BuiltInVariable("gl_CullDistance",    EbvCullDistance,   symbolTable);
 9443|       |
 9444|       |        // GL_EXT_clip_cull_distance (ES) and GL_ARB_cull_distance (before 450); the
 9445|       |        // tessellation gl_in members are tied in the resource-dependent path below.
 9446|  4.13k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (9446:13): [True: 592, False: 3.54k]
  ------------------
 9447|    592|            symbolTable.setVariableExtensions("gl_ClipDistance", 1, &E_GL_EXT_clip_cull_distance);
 9448|    592|            symbolTable.setVariableExtensions("gl_CullDistance", 1, &E_GL_EXT_clip_cull_distance);
 9449|    592|            symbolTable.setVariableExtensions("gl_in",  "gl_ClipDistance", 1, &E_GL_EXT_clip_cull_distance);
 9450|    592|            symbolTable.setVariableExtensions("gl_in",  "gl_CullDistance", 1, &E_GL_EXT_clip_cull_distance);
 9451|    592|            symbolTable.setVariableExtensions("gl_out", "gl_ClipDistance", 1, &E_GL_EXT_clip_cull_distance);
 9452|    592|            symbolTable.setVariableExtensions("gl_out", "gl_CullDistance", 1, &E_GL_EXT_clip_cull_distance);
 9453|  3.54k|        } else if (version < 450) {
  ------------------
  |  Branch (9453:20): [True: 2.33k, False: 1.20k]
  ------------------
 9454|  2.33k|            symbolTable.setVariableExtensions("gl_CullDistance", 1, &E_GL_ARB_cull_distance);
 9455|  2.33k|            symbolTable.setVariableExtensions("gl_in",  "gl_CullDistance", 1, &E_GL_ARB_cull_distance);
 9456|  2.33k|            symbolTable.setVariableExtensions("gl_out", "gl_CullDistance", 1, &E_GL_ARB_cull_distance);
 9457|  2.33k|        }
 9458|       |
 9459|  4.13k|        BuiltInVariable("gl_PrimitiveIDIn",   EbvPrimitiveId,    symbolTable);
 9460|  4.13k|        BuiltInVariable("gl_PrimitiveID",     EbvPrimitiveId,    symbolTable);
 9461|  4.13k|        BuiltInVariable("gl_InvocationID",    EbvInvocationId,   symbolTable);
 9462|  4.13k|        BuiltInVariable("gl_Layer",           EbvLayer,          symbolTable);
 9463|  4.13k|        BuiltInVariable("gl_ViewportIndex",   EbvViewportIndex,  symbolTable);
 9464|       |
 9465|  4.13k|        if (language != EShLangGeometry) {
  ------------------
  |  Branch (9465:13): [True: 3.22k, False: 904]
  ------------------
 9466|  3.22k|            symbolTable.setVariableExtensions("gl_Layer",         Num_viewportEXTs, viewportEXTs);
 9467|  3.22k|            symbolTable.setVariableExtensions("gl_ViewportIndex", Num_viewportEXTs, viewportEXTs);
 9468|  3.22k|        }
 9469|  4.13k|        symbolTable.setVariableExtensions("gl_ViewportMask",            1, &E_GL_NV_viewport_array2);
 9470|  4.13k|        symbolTable.setVariableExtensions("gl_SecondaryPositionNV",     1, &E_GL_NV_stereo_view_rendering);
 9471|  4.13k|        symbolTable.setVariableExtensions("gl_SecondaryViewportMaskNV", 1, &E_GL_NV_stereo_view_rendering);
 9472|  4.13k|        symbolTable.setVariableExtensions("gl_PositionPerViewNV",       1, &E_GL_NVX_multiview_per_view_attributes);
 9473|  4.13k|        symbolTable.setVariableExtensions("gl_ViewportMaskPerViewNV",   1, &E_GL_NVX_multiview_per_view_attributes);
 9474|       |
 9475|  4.13k|        if (profile != EEsProfile && language == EShLangGeometry && version < 400) {
  ------------------
  |  Branch (9475:13): [True: 3.54k, False: 592]
  |  Branch (9475:38): [True: 756, False: 2.78k]
  |  Branch (9475:69): [True: 187, False: 569]
  ------------------
 9476|    187|            symbolTable.setVariableExtensions("gl_InvocationID", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9477|    187|        }
 9478|  4.13k|        BuiltInVariable("gl_ViewportMask",              EbvViewportMaskNV,          symbolTable);
 9479|  4.13k|        BuiltInVariable("gl_SecondaryPositionNV",       EbvSecondaryPositionNV,     symbolTable);
 9480|  4.13k|        BuiltInVariable("gl_SecondaryViewportMaskNV",   EbvSecondaryViewportMaskNV, symbolTable);
 9481|  4.13k|        BuiltInVariable("gl_PositionPerViewNV",         EbvPositionPerViewNV,       symbolTable);
 9482|  4.13k|        BuiltInVariable("gl_ViewportMaskPerViewNV",     EbvViewportMaskPerViewNV,   symbolTable);
 9483|       |
 9484|  4.13k|        if (language == EShLangVertex || language == EShLangGeometry) {
  ------------------
  |  Branch (9484:13): [True: 1.42k, False: 2.71k]
  |  Branch (9484:42): [True: 904, False: 1.80k]
  ------------------
 9485|  2.32k|            symbolTable.setVariableExtensions("gl_in", "gl_SecondaryPositionNV", 1, &E_GL_NV_stereo_view_rendering);
 9486|  2.32k|            symbolTable.setVariableExtensions("gl_in", "gl_PositionPerViewNV",   1, &E_GL_NVX_multiview_per_view_attributes);
 9487|       |
 9488|  2.32k|            BuiltInVariable("gl_in", "gl_SecondaryPositionNV", EbvSecondaryPositionNV, symbolTable);
 9489|  2.32k|            BuiltInVariable("gl_in", "gl_PositionPerViewNV",   EbvPositionPerViewNV,   symbolTable);
 9490|  2.32k|        }
 9491|  4.13k|        symbolTable.setVariableExtensions("gl_out", "gl_ViewportMask",            1, &E_GL_NV_viewport_array2);
 9492|  4.13k|        symbolTable.setVariableExtensions("gl_out", "gl_ViewportIndex",           1, &E_GL_NV_viewport_array2);
 9493|  4.13k|        symbolTable.setVariableExtensions("gl_out", "gl_Layer",                   1, &E_GL_NV_viewport_array2);
 9494|  4.13k|        symbolTable.setVariableExtensions("gl_out", "gl_SecondaryPositionNV",     1, &E_GL_NV_stereo_view_rendering);
 9495|  4.13k|        symbolTable.setVariableExtensions("gl_out", "gl_SecondaryViewportMaskNV", 1, &E_GL_NV_stereo_view_rendering);
 9496|  4.13k|        symbolTable.setVariableExtensions("gl_out", "gl_PositionPerViewNV",       1, &E_GL_NVX_multiview_per_view_attributes);
 9497|  4.13k|        symbolTable.setVariableExtensions("gl_out", "gl_ViewportMaskPerViewNV",   1, &E_GL_NVX_multiview_per_view_attributes);
 9498|       |
 9499|  4.13k|        BuiltInVariable("gl_out", "gl_ViewportMask",            EbvViewportMaskNV,          symbolTable);
 9500|  4.13k|        BuiltInVariable("gl_out", "gl_ViewportIndex",           EbvViewportIndex,           symbolTable);
 9501|  4.13k|        BuiltInVariable("gl_out", "gl_Layer",                   EbvLayer,                   symbolTable);
 9502|  4.13k|        BuiltInVariable("gl_out", "gl_SecondaryPositionNV",     EbvSecondaryPositionNV,     symbolTable);
 9503|  4.13k|        BuiltInVariable("gl_out", "gl_SecondaryViewportMaskNV", EbvSecondaryViewportMaskNV, symbolTable);
 9504|  4.13k|        BuiltInVariable("gl_out", "gl_PositionPerViewNV",       EbvPositionPerViewNV,       symbolTable);
 9505|  4.13k|        BuiltInVariable("gl_out", "gl_ViewportMaskPerViewNV",   EbvViewportMaskPerViewNV,   symbolTable);
 9506|       |
 9507|  4.13k|        BuiltInVariable("gl_PatchVerticesIn", EbvPatchVertices,  symbolTable);
 9508|  4.13k|        BuiltInVariable("gl_TessLevelOuter",  EbvTessLevelOuter, symbolTable);
 9509|  4.13k|        BuiltInVariable("gl_TessLevelInner",  EbvTessLevelInner, symbolTable);
 9510|  4.13k|        BuiltInVariable("gl_TessCoord",       EbvTessCoord,      symbolTable);
 9511|       |
 9512|  4.13k|        if (version < 410)
  ------------------
  |  Branch (9512:13): [True: 1.97k, False: 2.15k]
  ------------------
 9513|  1.97k|            symbolTable.setVariableExtensions("gl_ViewportIndex", 1, &E_GL_ARB_viewport_array);
 9514|       |
 9515|       |        // Compatibility variables
 9516|       |
 9517|  4.13k|        BuiltInVariable("gl_in", "gl_ClipVertex",          EbvClipVertex,          symbolTable);
 9518|  4.13k|        BuiltInVariable("gl_in", "gl_FrontColor",          EbvFrontColor,          symbolTable);
 9519|  4.13k|        BuiltInVariable("gl_in", "gl_BackColor",           EbvBackColor,           symbolTable);
 9520|  4.13k|        BuiltInVariable("gl_in", "gl_FrontSecondaryColor", EbvFrontSecondaryColor, symbolTable);
 9521|  4.13k|        BuiltInVariable("gl_in", "gl_BackSecondaryColor",  EbvBackSecondaryColor,  symbolTable);
 9522|  4.13k|        BuiltInVariable("gl_in", "gl_TexCoord",            EbvTexCoord,            symbolTable);
 9523|  4.13k|        BuiltInVariable("gl_in", "gl_FogFragCoord",        EbvFogFragCoord,        symbolTable);
 9524|       |
 9525|  4.13k|        BuiltInVariable("gl_out", "gl_ClipVertex",          EbvClipVertex,          symbolTable);
 9526|  4.13k|        BuiltInVariable("gl_out", "gl_FrontColor",          EbvFrontColor,          symbolTable);
 9527|  4.13k|        BuiltInVariable("gl_out", "gl_BackColor",           EbvBackColor,           symbolTable);
 9528|  4.13k|        BuiltInVariable("gl_out", "gl_FrontSecondaryColor", EbvFrontSecondaryColor, symbolTable);
 9529|  4.13k|        BuiltInVariable("gl_out", "gl_BackSecondaryColor",  EbvBackSecondaryColor,  symbolTable);
 9530|  4.13k|        BuiltInVariable("gl_out", "gl_TexCoord",            EbvTexCoord,            symbolTable);
 9531|  4.13k|        BuiltInVariable("gl_out", "gl_FogFragCoord",        EbvFogFragCoord,        symbolTable);
 9532|       |
 9533|  4.13k|        BuiltInVariable("gl_ClipVertex",          EbvClipVertex,          symbolTable);
 9534|  4.13k|        BuiltInVariable("gl_FrontColor",          EbvFrontColor,          symbolTable);
 9535|  4.13k|        BuiltInVariable("gl_BackColor",           EbvBackColor,           symbolTable);
 9536|  4.13k|        BuiltInVariable("gl_FrontSecondaryColor", EbvFrontSecondaryColor, symbolTable);
 9537|  4.13k|        BuiltInVariable("gl_BackSecondaryColor",  EbvBackSecondaryColor,  symbolTable);
 9538|  4.13k|        BuiltInVariable("gl_TexCoord",            EbvTexCoord,            symbolTable);
 9539|  4.13k|        BuiltInVariable("gl_FogFragCoord",        EbvFogFragCoord,        symbolTable);
 9540|       |
 9541|       |        // gl_PointSize, when it needs to be tied to an extension, is always a member of a block.
 9542|       |        // (Sometimes with an instance name, sometimes anonymous).
 9543|  4.13k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (9543:13): [True: 592, False: 3.54k]
  ------------------
 9544|    592|            if (language == EShLangGeometry) {
  ------------------
  |  Branch (9544:17): [True: 148, False: 444]
  ------------------
 9545|    148|                symbolTable.setVariableExtensions("gl_PointSize", Num_AEP_geometry_point_size, AEP_geometry_point_size);
 9546|    148|                symbolTable.setVariableExtensions("gl_in", "gl_PointSize", Num_AEP_geometry_point_size, AEP_geometry_point_size);
 9547|    444|            } else if (language == EShLangTessEvaluation || language == EShLangTessControl) {
  ------------------
  |  Branch (9547:24): [True: 148, False: 296]
  |  Branch (9547:61): [True: 148, False: 148]
  ------------------
 9548|       |                // gl_in tessellation settings of gl_PointSize are in the context-dependent paths
 9549|    296|                symbolTable.setVariableExtensions("gl_PointSize", Num_AEP_tessellation_point_size, AEP_tessellation_point_size);
 9550|    296|                symbolTable.setVariableExtensions("gl_out", "gl_PointSize", Num_AEP_tessellation_point_size, AEP_tessellation_point_size);
 9551|    296|            }
 9552|    592|        }
 9553|       |
 9554|  4.13k|        if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (9554:14): [True: 3.54k, False: 592]
  |  Branch (9554:39): [True: 3.54k, False: 0]
  ------------------
 9555|  4.13k|            (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (9555:14): [True: 592, False: 0]
  |  Branch (9555:39): [True: 592, False: 0]
  ------------------
 9556|  4.13k|            symbolTable.setVariableExtensions("gl_DeviceIndex",  1, &E_GL_EXT_device_group);
 9557|  4.13k|            BuiltInVariable("gl_DeviceIndex", EbvDeviceIndex, symbolTable);
 9558|  4.13k|            symbolTable.setVariableExtensions("gl_ViewIndex", 1, &E_GL_EXT_multiview);
 9559|  4.13k|            BuiltInVariable("gl_ViewIndex", EbvViewIndex, symbolTable);
 9560|  4.13k|        }
 9561|       |
 9562|  4.13k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9562:13): [True: 3.54k, False: 592]
  ------------------
 9563|  3.54k|            BuiltInVariable("gl_SubGroupInvocationARB", EbvSubGroupInvocation, symbolTable);
 9564|  3.54k|            BuiltInVariable("gl_SubGroupEqMaskARB",     EbvSubGroupEqMask,     symbolTable);
 9565|  3.54k|            BuiltInVariable("gl_SubGroupGeMaskARB",     EbvSubGroupGeMask,     symbolTable);
 9566|  3.54k|            BuiltInVariable("gl_SubGroupGtMaskARB",     EbvSubGroupGtMask,     symbolTable);
 9567|  3.54k|            BuiltInVariable("gl_SubGroupLeMaskARB",     EbvSubGroupLeMask,     symbolTable);
 9568|  3.54k|            BuiltInVariable("gl_SubGroupLtMaskARB",     EbvSubGroupLtMask,     symbolTable);
 9569|       |
 9570|  3.54k|            if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (9570:17): [True: 3.54k, False: 0]
  ------------------
 9571|       |                // Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
 9572|  3.54k|                SpecialQualifier("gl_SubGroupSizeARB", EvqVaryingIn, EbvSubGroupSize, symbolTable);
 9573|  3.54k|                if (language == EShLangFragment)
  ------------------
  |  Branch (9573:21): [True: 0, False: 3.54k]
  ------------------
 9574|      0|                    ModifyFlatDecoration("gl_SubGroupSizeARB", true, symbolTable);
 9575|  3.54k|            }
 9576|      0|            else
 9577|      0|                BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
 9578|  3.54k|        }
 9579|       |
 9580|       |        // GL_ARB_gpu_shader5/GL_NV_gpu_shader5
 9581|  4.13k|        if (profile != EEsProfile && version < 400 && language == EShLangGeometry) {
  ------------------
  |  Branch (9581:13): [True: 3.54k, False: 592]
  |  Branch (9581:38): [True: 1.26k, False: 2.27k]
  |  Branch (9581:55): [True: 187, False: 1.07k]
  ------------------
 9582|    187|            symbolTable.setFunctionExtensions("EmitStreamVertex", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9583|    187|            symbolTable.setFunctionExtensions("EndStreamPrimitive", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9584|    187|        }
 9585|       |        // GL_KHR_shader_subgroup
 9586|  4.13k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (9586:14): [True: 592, False: 3.54k]
  |  Branch (9586:39): [True: 592, False: 0]
  ------------------
 9587|  4.13k|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (9587:14): [True: 3.54k, False: 0]
  |  Branch (9587:39): [True: 3.54k, False: 0]
  ------------------
 9588|  4.13k|            symbolTable.setVariableExtensions("gl_SubgroupSize",         1, &E_GL_KHR_shader_subgroup_basic);
 9589|  4.13k|            symbolTable.setVariableExtensions("gl_SubgroupInvocationID", 1, &E_GL_KHR_shader_subgroup_basic);
 9590|  4.13k|            symbolTable.setVariableExtensions("gl_SubgroupEqMask",       1, &E_GL_KHR_shader_subgroup_ballot);
 9591|  4.13k|            symbolTable.setVariableExtensions("gl_SubgroupGeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
 9592|  4.13k|            symbolTable.setVariableExtensions("gl_SubgroupGtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
 9593|  4.13k|            symbolTable.setVariableExtensions("gl_SubgroupLeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
 9594|  4.13k|            symbolTable.setVariableExtensions("gl_SubgroupLtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
 9595|       |
 9596|  4.13k|            BuiltInVariable("gl_SubgroupSize",         EbvSubgroupSize2,       symbolTable);
 9597|  4.13k|            BuiltInVariable("gl_SubgroupInvocationID", EbvSubgroupInvocation2, symbolTable);
 9598|  4.13k|            BuiltInVariable("gl_SubgroupEqMask",       EbvSubgroupEqMask2,     symbolTable);
 9599|  4.13k|            BuiltInVariable("gl_SubgroupGeMask",       EbvSubgroupGeMask2,     symbolTable);
 9600|  4.13k|            BuiltInVariable("gl_SubgroupGtMask",       EbvSubgroupGtMask2,     symbolTable);
 9601|  4.13k|            BuiltInVariable("gl_SubgroupLeMask",       EbvSubgroupLeMask2,     symbolTable);
 9602|  4.13k|            BuiltInVariable("gl_SubgroupLtMask",       EbvSubgroupLtMask2,     symbolTable);
 9603|       |
 9604|       |            // GL_NV_shader_sm_builtins
 9605|  4.13k|            symbolTable.setVariableExtensions("gl_WarpsPerSMNV",         1, &E_GL_NV_shader_sm_builtins);
 9606|  4.13k|            symbolTable.setVariableExtensions("gl_SMCountNV",            1, &E_GL_NV_shader_sm_builtins);
 9607|  4.13k|            symbolTable.setVariableExtensions("gl_WarpIDNV",             1, &E_GL_NV_shader_sm_builtins);
 9608|  4.13k|            symbolTable.setVariableExtensions("gl_SMIDNV",               1, &E_GL_NV_shader_sm_builtins);
 9609|  4.13k|            BuiltInVariable("gl_WarpsPerSMNV",          EbvWarpsPerSM,      symbolTable);
 9610|  4.13k|            BuiltInVariable("gl_SMCountNV",             EbvSMCount,         symbolTable);
 9611|  4.13k|            BuiltInVariable("gl_WarpIDNV",              EbvWarpID,          symbolTable);
 9612|  4.13k|            BuiltInVariable("gl_SMIDNV",                EbvSMID,            symbolTable);
 9613|       |
 9614|       |            // GL_ARM_shader_core_builtins
 9615|  4.13k|            symbolTable.setVariableExtensions("gl_CoreCountARM", 1, &E_GL_ARM_shader_core_builtins);
 9616|  4.13k|            symbolTable.setVariableExtensions("gl_CoreIDARM",    1, &E_GL_ARM_shader_core_builtins);
 9617|  4.13k|            symbolTable.setVariableExtensions("gl_CoreMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
 9618|  4.13k|            symbolTable.setVariableExtensions("gl_WarpIDARM",    1, &E_GL_ARM_shader_core_builtins);
 9619|  4.13k|            symbolTable.setVariableExtensions("gl_WarpMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
 9620|       |
 9621|  4.13k|            BuiltInVariable("gl_CoreCountARM", EbvCoreCountARM, symbolTable);
 9622|  4.13k|            BuiltInVariable("gl_CoreIDARM",    EbvCoreIDARM, symbolTable);
 9623|  4.13k|            BuiltInVariable("gl_CoreMaxIDARM", EbvCoreMaxIDARM, symbolTable);
 9624|  4.13k|            BuiltInVariable("gl_WarpIDARM",    EbvWarpIDARM, symbolTable);
 9625|  4.13k|            BuiltInVariable("gl_WarpMaxIDARM", EbvWarpMaxIDARM, symbolTable);
 9626|  4.13k|        }
 9627|       |
 9628|  4.13k|        if (language == EShLangGeometry || language == EShLangVertex) {
  ------------------
  |  Branch (9628:13): [True: 904, False: 3.22k]
  |  Branch (9628:44): [True: 1.42k, False: 1.80k]
  ------------------
 9629|  2.32k|            if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (9629:18): [True: 296, False: 2.02k]
  |  Branch (9629:43): [True: 296, False: 0]
  ------------------
 9630|  2.02k|                (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (9630:18): [True: 2.02k, False: 0]
  |  Branch (9630:43): [True: 602, False: 1.42k]
  ------------------
 9631|    898|                symbolTable.setVariableExtensions("gl_PrimitiveShadingRateEXT", 1, &E_GL_EXT_fragment_shading_rate);
 9632|    898|                BuiltInVariable("gl_PrimitiveShadingRateEXT", EbvPrimitiveShadingRateKHR, symbolTable);
 9633|       |
 9634|    898|                symbolTable.setVariableExtensions("gl_ShadingRateFlag2VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
 9635|    898|                symbolTable.setVariableExtensions("gl_ShadingRateFlag4VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
 9636|    898|                symbolTable.setVariableExtensions("gl_ShadingRateFlag2HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
 9637|    898|                symbolTable.setVariableExtensions("gl_ShadingRateFlag4HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
 9638|    898|            }
 9639|  2.32k|        }
 9640|  4.13k|        break;
 9641|       |
 9642|  1.42k|    case EShLangFragment:
  ------------------
  |  Branch (9642:5): [True: 1.42k, False: 7.23k]
  ------------------
 9643|  1.42k|        SpecialQualifier("gl_FrontFacing",      EvqFace,       EbvFace,             symbolTable);
 9644|  1.42k|        SpecialQualifier("gl_FragCoord",        EvqFragCoord,  EbvFragCoord,        symbolTable);
 9645|  1.42k|        SpecialQualifier("gl_PointCoord",       EvqPointCoord, EbvPointCoord,       symbolTable);
 9646|  1.42k|        if (spvVersion.spv == 0)
  ------------------
  |  Branch (9646:13): [True: 0, False: 1.42k]
  ------------------
 9647|      0|            SpecialQualifier("gl_FragColor",    EvqFragColor,  EbvFragColor,        symbolTable);
 9648|  1.42k|        else {
 9649|  1.42k|            TSymbol* symbol = symbolTable.find("gl_FragColor");
 9650|  1.42k|            if (symbol) {
  ------------------
  |  Branch (9650:17): [True: 761, False: 659]
  ------------------
 9651|    761|                symbol->getWritableType().getQualifier().storage = EvqVaryingOut;
 9652|    761|                symbol->getWritableType().getQualifier().layoutLocation = 0;
 9653|    761|            }
 9654|  1.42k|        }
 9655|  1.42k|        SpecialQualifier("gl_FragDepth",        EvqFragDepth,  EbvFragDepth,        symbolTable);
 9656|  1.42k|        SpecialQualifier("gl_FragDepthEXT",     EvqFragDepth,  EbvFragDepth,        symbolTable);
 9657|  1.42k|        SpecialQualifier("gl_FragStencilRefARB", EvqFragStencil, EbvFragStencilRef, symbolTable);
 9658|  1.42k|        SpecialQualifier("gl_HelperInvocation", EvqVaryingIn,  EbvHelperInvocation, symbolTable);
 9659|       |
 9660|  1.42k|        BuiltInVariable("gl_ClipDistance",    EbvClipDistance,   symbolTable);
 9661|  1.42k|        BuiltInVariable("gl_CullDistance",    EbvCullDistance,   symbolTable);
 9662|  1.42k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (9662:13): [True: 148, False: 1.27k]
  ------------------
 9663|    148|            symbolTable.setVariableExtensions("gl_ClipDistance", 1, &E_GL_EXT_clip_cull_distance);
 9664|    148|            symbolTable.setVariableExtensions("gl_CullDistance", 1, &E_GL_EXT_clip_cull_distance);
 9665|  1.27k|        } else if (version < 450)
  ------------------
  |  Branch (9665:20): [True: 971, False: 301]
  ------------------
 9666|    971|            symbolTable.setVariableExtensions("gl_CullDistance", 1, &E_GL_ARB_cull_distance);
 9667|  1.42k|        BuiltInVariable("gl_PrimitiveID",     EbvPrimitiveId,    symbolTable);
 9668|       |
 9669|  1.42k|        if (profile != EEsProfile && version >= 140) {
  ------------------
  |  Branch (9669:13): [True: 1.27k, False: 148]
  |  Branch (9669:38): [True: 1.27k, False: 0]
  ------------------
 9670|  1.27k|            symbolTable.setVariableExtensions("gl_FragStencilRefARB", 1, &E_GL_ARB_shader_stencil_export);
 9671|  1.27k|            BuiltInVariable("gl_FragStencilRefARB", EbvFragStencilRef, symbolTable);
 9672|  1.27k|        }
 9673|       |
 9674|  1.42k|        if (profile != EEsProfile && version < 400) {
  ------------------
  |  Branch (9674:13): [True: 1.27k, False: 148]
  |  Branch (9674:38): [True: 703, False: 569]
  ------------------
 9675|    703|            symbolTable.setFunctionExtensions("textureQueryLOD", 1, &E_GL_ARB_texture_query_lod);
 9676|    703|        }
 9677|       |
 9678|  1.42k|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (9678:13): [True: 1.27k, False: 148]
  |  Branch (9678:38): [True: 45, False: 1.22k]
  ------------------
 9679|     45|            symbolTable.setFunctionExtensions("rayQueryInitializeEXT",                                            1, &E_GL_EXT_ray_query);
 9680|     45|            symbolTable.setFunctionExtensions("rayQueryTerminateEXT",                                             1, &E_GL_EXT_ray_query);
 9681|     45|            symbolTable.setFunctionExtensions("rayQueryGenerateIntersectionEXT",                                  1, &E_GL_EXT_ray_query);
 9682|     45|            symbolTable.setFunctionExtensions("rayQueryConfirmIntersectionEXT",                                   1, &E_GL_EXT_ray_query);
 9683|     45|            symbolTable.setFunctionExtensions("rayQueryProceedEXT",                                               1, &E_GL_EXT_ray_query);
 9684|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionTypeEXT",                                   1, &E_GL_EXT_ray_query);
 9685|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionTEXT",                                      1, &E_GL_EXT_ray_query);
 9686|     45|            symbolTable.setFunctionExtensions("rayQueryGetRayFlagsEXT",                                           1, &E_GL_EXT_ray_query);
 9687|     45|            symbolTable.setFunctionExtensions("rayQueryGetRayTMinEXT",                                            1, &E_GL_EXT_ray_query);
 9688|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionInstanceCustomIndexEXT",                    1, &E_GL_EXT_ray_query);
 9689|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionInstanceIdEXT",                             1, &E_GL_EXT_ray_query);
 9690|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetEXT", 1, &E_GL_EXT_ray_query);
 9691|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionGeometryIndexEXT",                          1, &E_GL_EXT_ray_query);
 9692|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionPrimitiveIndexEXT",                         1, &E_GL_EXT_ray_query);
 9693|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionBarycentricsEXT",                           1, &E_GL_EXT_ray_query);
 9694|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionFrontFaceEXT",                              1, &E_GL_EXT_ray_query);
 9695|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionCandidateAABBOpaqueEXT",                    1, &E_GL_EXT_ray_query);
 9696|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionObjectRayDirectionEXT",                     1, &E_GL_EXT_ray_query);
 9697|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionObjectRayOriginEXT",                        1, &E_GL_EXT_ray_query);
 9698|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionObjectToWorldEXT",                          1, &E_GL_EXT_ray_query);
 9699|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionWorldToObjectEXT",                          1, &E_GL_EXT_ray_query);
 9700|     45|            symbolTable.setFunctionExtensions("rayQueryGetWorldRayOriginEXT",                                     1, &E_GL_EXT_ray_query);
 9701|     45|            symbolTable.setFunctionExtensions("rayQueryGetWorldRayDirectionEXT",                                  1, &E_GL_EXT_ray_query);
 9702|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionTriangleVertexPositionsEXT",                1, &E_GL_EXT_ray_tracing_position_fetch);
 9703|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionClusterIdNV",                               1, &E_GL_NV_cluster_acceleration_structure);
 9704|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionSpherePositionNV",                          1, &E_GL_NV_linear_swept_spheres);
 9705|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionSphereRadiusNV",                            1, &E_GL_NV_linear_swept_spheres);
 9706|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionLSSHitValueNV",                             1, &E_GL_NV_linear_swept_spheres);
 9707|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionLSSPositionsNV",                            1, &E_GL_NV_linear_swept_spheres);
 9708|     45|            symbolTable.setFunctionExtensions("rayQueryGetIntersectionLSSRadiiNV",                                1, &E_GL_NV_linear_swept_spheres);
 9709|     45|            symbolTable.setFunctionExtensions("rayQueryIsSphereHitNV",                                            1, &E_GL_NV_linear_swept_spheres);
 9710|     45|            symbolTable.setFunctionExtensions("rayQueryIsLSSHitNV",                                               1, &E_GL_NV_linear_swept_spheres);
 9711|     45|            symbolTable.setVariableExtensions("gl_RayFlagsSkipAABBEXT",                         1, &E_GL_EXT_ray_flags_primitive_culling);
 9712|     45|            symbolTable.setVariableExtensions("gl_RayFlagsSkipTrianglesEXT",                    1, &E_GL_EXT_ray_flags_primitive_culling);
 9713|     45|            symbolTable.setVariableExtensions("gl_RayFlagsForceOpacityMicromap2StateEXT",                  1, &E_GL_EXT_opacity_micromap);
 9714|     45|            symbolTable.setVariableExtensions("gl_EnableOpacityMicromapEXT",                    1, &E_GL_EXT_opacity_micromap_ray_query_mode);
 9715|     45|        }
 9716|       |
 9717|  1.42k|        if ((profile != EEsProfile && version >= 130) ||
  ------------------
  |  Branch (9717:14): [True: 1.27k, False: 148]
  |  Branch (9717:39): [True: 1.27k, False: 0]
  ------------------
 9718|  1.42k|            (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (9718:14): [True: 148, False: 0]
  |  Branch (9718:39): [True: 148, False: 0]
  ------------------
 9719|  1.42k|            BuiltInVariable("gl_SampleID",           EbvSampleId,       symbolTable);
 9720|  1.42k|            BuiltInVariable("gl_SamplePosition",     EbvSamplePosition, symbolTable);
 9721|  1.42k|            BuiltInVariable("gl_SampleMask",         EbvSampleMask,     symbolTable);
 9722|       |
 9723|  1.42k|            if (profile != EEsProfile && version < 400) {
  ------------------
  |  Branch (9723:17): [True: 1.27k, False: 148]
  |  Branch (9723:42): [True: 703, False: 569]
  ------------------
 9724|    703|                BuiltInVariable("gl_SampleMaskIn",    EbvSampleMask,     symbolTable);
 9725|    703|                symbolTable.setVariableExtensions("gl_SampleMaskIn", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9726|       |
 9727|    703|                BuiltInVariable("gl_NumSamples",     EbvSampleMask,     symbolTable);
 9728|       |
 9729|    703|                symbolTable.setVariableExtensions("gl_SampleMask",     1, &E_GL_ARB_sample_shading);
 9730|    703|                symbolTable.setVariableExtensions("gl_SampleID",       1, &E_GL_ARB_sample_shading);
 9731|    703|                symbolTable.setVariableExtensions("gl_SamplePosition", 1, &E_GL_ARB_sample_shading);
 9732|    703|                symbolTable.setVariableExtensions("gl_NumSamples",     1, &E_GL_ARB_sample_shading);
 9733|    717|            } else {
 9734|    717|                BuiltInVariable("gl_SampleMaskIn",    EbvSampleMask,     symbolTable);
 9735|       |
 9736|    717|                if (profile == EEsProfile && version < 320) {
  ------------------
  |  Branch (9736:21): [True: 148, False: 569]
  |  Branch (9736:46): [True: 141, False: 7]
  ------------------
 9737|    141|                    symbolTable.setVariableExtensions("gl_SampleID", 1, &E_GL_OES_sample_variables);
 9738|    141|                    symbolTable.setVariableExtensions("gl_SamplePosition", 1, &E_GL_OES_sample_variables);
 9739|    141|                    symbolTable.setVariableExtensions("gl_SampleMaskIn", 1, &E_GL_OES_sample_variables);
 9740|    141|                    symbolTable.setVariableExtensions("gl_SampleMask", 1, &E_GL_OES_sample_variables);
 9741|    141|                    symbolTable.setVariableExtensions("gl_NumSamples", 1, &E_GL_OES_sample_variables);
 9742|    141|                }
 9743|    717|            }
 9744|  1.42k|        }
 9745|       |
 9746|  1.42k|        BuiltInVariable("gl_Layer",           EbvLayer,          symbolTable);
 9747|  1.42k|        BuiltInVariable("gl_ViewportIndex",   EbvViewportIndex,  symbolTable);
 9748|       |
 9749|       |        // Compatibility variables
 9750|       |
 9751|  1.42k|        BuiltInVariable("gl_in", "gl_FogFragCoord",   EbvFogFragCoord,   symbolTable);
 9752|  1.42k|        BuiltInVariable("gl_in", "gl_TexCoord",       EbvTexCoord,       symbolTable);
 9753|  1.42k|        BuiltInVariable("gl_in", "gl_Color",          EbvColor,          symbolTable);
 9754|  1.42k|        BuiltInVariable("gl_in", "gl_SecondaryColor", EbvSecondaryColor, symbolTable);
 9755|       |
 9756|  1.42k|        BuiltInVariable("gl_FogFragCoord",   EbvFogFragCoord,   symbolTable);
 9757|  1.42k|        BuiltInVariable("gl_TexCoord",       EbvTexCoord,       symbolTable);
 9758|  1.42k|        BuiltInVariable("gl_Color",          EbvColor,          symbolTable);
 9759|  1.42k|        BuiltInVariable("gl_SecondaryColor", EbvSecondaryColor, symbolTable);
 9760|       |
 9761|       |        // built-in functions
 9762|       |
 9763|  1.42k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (9763:13): [True: 148, False: 1.27k]
  ------------------
 9764|    148|            if (spvVersion.spv == 0) {
  ------------------
  |  Branch (9764:17): [True: 0, False: 148]
  ------------------
 9765|      0|                symbolTable.setFunctionExtensions("texture2DLodEXT",      1, &E_GL_EXT_shader_texture_lod);
 9766|      0|                symbolTable.setFunctionExtensions("texture2DProjLodEXT",  1, &E_GL_EXT_shader_texture_lod);
 9767|      0|                symbolTable.setFunctionExtensions("textureCubeLodEXT",    1, &E_GL_EXT_shader_texture_lod);
 9768|      0|                symbolTable.setFunctionExtensions("texture2DGradEXT",     1, &E_GL_EXT_shader_texture_lod);
 9769|      0|                symbolTable.setFunctionExtensions("texture2DProjGradEXT", 1, &E_GL_EXT_shader_texture_lod);
 9770|      0|                symbolTable.setFunctionExtensions("textureCubeGradEXT",   1, &E_GL_EXT_shader_texture_lod);
 9771|      0|                if (version < 320)
  ------------------
  |  Branch (9771:21): [True: 0, False: 0]
  ------------------
 9772|      0|                    symbolTable.setFunctionExtensions("textureGatherOffsets", Num_AEP_gpu_shader5, AEP_gpu_shader5);
 9773|      0|            }
 9774|    148|            if (version == 100) {
  ------------------
  |  Branch (9774:17): [True: 0, False: 148]
  ------------------
 9775|      0|                symbolTable.setFunctionExtensions("dFdx",   1, &E_GL_OES_standard_derivatives);
 9776|      0|                symbolTable.setFunctionExtensions("dFdy",   1, &E_GL_OES_standard_derivatives);
 9777|      0|                symbolTable.setFunctionExtensions("fwidth", 1, &E_GL_OES_standard_derivatives);
 9778|      0|            }
 9779|    148|            if (version == 310) {
  ------------------
  |  Branch (9779:17): [True: 141, False: 7]
  ------------------
 9780|    141|                symbolTable.setFunctionExtensions("fma", Num_AEP_gpu_shader5, AEP_gpu_shader5);
 9781|    141|                symbolTable.setFunctionExtensions("interpolateAtCentroid", 1, &E_GL_OES_shader_multisample_interpolation);
 9782|    141|                symbolTable.setFunctionExtensions("interpolateAtSample",   1, &E_GL_OES_shader_multisample_interpolation);
 9783|    141|                symbolTable.setFunctionExtensions("interpolateAtOffset",   1, &E_GL_OES_shader_multisample_interpolation);
 9784|    141|            }
 9785|  1.27k|        } else if (version < 130) {
  ------------------
  |  Branch (9785:20): [True: 0, False: 1.27k]
  ------------------
 9786|      0|            if (spvVersion.spv == 0) {
  ------------------
  |  Branch (9786:17): [True: 0, False: 0]
  ------------------
 9787|      0|                symbolTable.setFunctionExtensions("texture1DLod",        1, &E_GL_ARB_shader_texture_lod);
 9788|      0|                symbolTable.setFunctionExtensions("texture2DLod",        1, &E_GL_ARB_shader_texture_lod);
 9789|      0|                symbolTable.setFunctionExtensions("texture3DLod",        1, &E_GL_ARB_shader_texture_lod);
 9790|      0|                symbolTable.setFunctionExtensions("textureCubeLod",      1, &E_GL_ARB_shader_texture_lod);
 9791|      0|                symbolTable.setFunctionExtensions("texture1DProjLod",    1, &E_GL_ARB_shader_texture_lod);
 9792|      0|                symbolTable.setFunctionExtensions("texture2DProjLod",    1, &E_GL_ARB_shader_texture_lod);
 9793|      0|                symbolTable.setFunctionExtensions("texture3DProjLod",    1, &E_GL_ARB_shader_texture_lod);
 9794|      0|                symbolTable.setFunctionExtensions("shadow1DLod",         1, &E_GL_ARB_shader_texture_lod);
 9795|      0|                symbolTable.setFunctionExtensions("shadow2DLod",         1, &E_GL_ARB_shader_texture_lod);
 9796|      0|                symbolTable.setFunctionExtensions("shadow1DProjLod",     1, &E_GL_ARB_shader_texture_lod);
 9797|      0|                symbolTable.setFunctionExtensions("shadow2DProjLod",     1, &E_GL_ARB_shader_texture_lod);
 9798|      0|            }
 9799|      0|        }
 9800|       |
 9801|       |        // E_GL_ARB_shader_texture_lod functions usable only with the extension enabled
 9802|  1.42k|        if (profile != EEsProfile && spvVersion.spv == 0) {
  ------------------
  |  Branch (9802:13): [True: 1.27k, False: 148]
  |  Branch (9802:38): [True: 0, False: 1.27k]
  ------------------
 9803|      0|            symbolTable.setFunctionExtensions("texture1DGradARB",         1, &E_GL_ARB_shader_texture_lod);
 9804|      0|            symbolTable.setFunctionExtensions("texture1DProjGradARB",     1, &E_GL_ARB_shader_texture_lod);
 9805|      0|            symbolTable.setFunctionExtensions("texture2DGradARB",         1, &E_GL_ARB_shader_texture_lod);
 9806|      0|            symbolTable.setFunctionExtensions("texture2DProjGradARB",     1, &E_GL_ARB_shader_texture_lod);
 9807|      0|            symbolTable.setFunctionExtensions("texture3DGradARB",         1, &E_GL_ARB_shader_texture_lod);
 9808|      0|            symbolTable.setFunctionExtensions("texture3DProjGradARB",     1, &E_GL_ARB_shader_texture_lod);
 9809|      0|            symbolTable.setFunctionExtensions("textureCubeGradARB",       1, &E_GL_ARB_shader_texture_lod);
 9810|      0|            symbolTable.setFunctionExtensions("shadow1DGradARB",          1, &E_GL_ARB_shader_texture_lod);
 9811|      0|            symbolTable.setFunctionExtensions("shadow1DProjGradARB",      1, &E_GL_ARB_shader_texture_lod);
 9812|      0|            symbolTable.setFunctionExtensions("shadow2DGradARB",          1, &E_GL_ARB_shader_texture_lod);
 9813|      0|            symbolTable.setFunctionExtensions("shadow2DProjGradARB",      1, &E_GL_ARB_shader_texture_lod);
 9814|      0|            symbolTable.setFunctionExtensions("texture2DRectGradARB",     1, &E_GL_ARB_shader_texture_lod);
 9815|      0|            symbolTable.setFunctionExtensions("texture2DRectProjGradARB", 1, &E_GL_ARB_shader_texture_lod);
 9816|      0|            symbolTable.setFunctionExtensions("shadow2DRectGradARB",      1, &E_GL_ARB_shader_texture_lod);
 9817|      0|            symbolTable.setFunctionExtensions("shadow2DRectProjGradARB",  1, &E_GL_ARB_shader_texture_lod);
 9818|      0|        }
 9819|       |
 9820|       |        // E_GL_ARB_shader_image_load_store
 9821|  1.42k|        if (profile != EEsProfile && version < 420)
  ------------------
  |  Branch (9821:13): [True: 1.27k, False: 148]
  |  Branch (9821:38): [True: 735, False: 537]
  ------------------
 9822|    735|            symbolTable.setFunctionExtensions("memoryBarrier", 1, &E_GL_ARB_shader_image_load_store);
 9823|       |        // All the image access functions are protected by checks on the type of the first argument.
 9824|       |
 9825|       |        // E_GL_ARB_shader_atomic_counters
 9826|  1.42k|        if (profile != EEsProfile && version < 420) {
  ------------------
  |  Branch (9826:13): [True: 1.27k, False: 148]
  |  Branch (9826:38): [True: 735, False: 537]
  ------------------
 9827|    735|            symbolTable.setFunctionExtensions("atomicCounterIncrement", 1, &E_GL_ARB_shader_atomic_counters);
 9828|    735|            symbolTable.setFunctionExtensions("atomicCounterDecrement", 1, &E_GL_ARB_shader_atomic_counters);
 9829|    735|            symbolTable.setFunctionExtensions("atomicCounter"         , 1, &E_GL_ARB_shader_atomic_counters);
 9830|    735|        }
 9831|       |
 9832|       |        // E_GL_ARB_gpu_shader5/E_GL_NV_gpu_shader5
 9833|  1.42k|        if (profile != EEsProfile && version < 400) {
  ------------------
  |  Branch (9833:13): [True: 1.27k, False: 148]
  |  Branch (9833:38): [True: 703, False: 569]
  ------------------
 9834|    703|            symbolTable.setFunctionExtensions("bitfieldExtract", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9835|    703|            symbolTable.setFunctionExtensions("bitfieldInsert", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9836|    703|            symbolTable.setFunctionExtensions("bitfieldReverse", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9837|    703|            symbolTable.setFunctionExtensions("bitCount", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9838|    703|            symbolTable.setFunctionExtensions("findLSB", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9839|    703|            symbolTable.setFunctionExtensions("findMSB", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9840|    703|            symbolTable.setFunctionExtensions("uaddCarry", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9841|    703|            symbolTable.setFunctionExtensions("usubBorrow", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9842|    703|            symbolTable.setFunctionExtensions("umulExtended", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9843|    703|            symbolTable.setFunctionExtensions("imulExtended", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9844|    703|            symbolTable.setFunctionExtensions("interpolateAtCentroid", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9845|    703|            symbolTable.setFunctionExtensions("interpolateAtSample", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9846|    703|            symbolTable.setFunctionExtensions("interpolateAtOffset", Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5);
 9847|    703|        }
 9848|       |
 9849|       |        // E_GL_NV_gpu_shader5
 9850|  1.42k|        if (profile != EEsProfile && version < 450) {
  ------------------
  |  Branch (9850:13): [True: 1.27k, False: 148]
  |  Branch (9850:38): [True: 971, False: 301]
  ------------------
 9851|    971|            symbolTable.setFunctionExtensions("packInt2x32",     1, &E_GL_NV_gpu_shader5);
 9852|    971|            symbolTable.setFunctionExtensions("packUint2x32",     1, &E_GL_NV_gpu_shader5);
 9853|    971|            symbolTable.setFunctionExtensions("unpackInt2x32",     1, &E_GL_NV_gpu_shader5);
 9854|    971|            symbolTable.setFunctionExtensions("unpackUint2x32",     1, &E_GL_NV_gpu_shader5);
 9855|    971|            symbolTable.setFunctionExtensions("packFloat2x16",     1, &E_GL_NV_gpu_shader5);
 9856|    971|            symbolTable.setFunctionExtensions("unpackFloat2x16",     1, &E_GL_NV_gpu_shader5);
 9857|    971|            symbolTable.setFunctionExtensions("doubleBitsToInt64",     1, &E_GL_NV_gpu_shader5);
 9858|    971|            symbolTable.setFunctionExtensions("doubleBitsToUint64",     1, &E_GL_NV_gpu_shader5);
 9859|    971|            symbolTable.setFunctionExtensions("int64BitsToDouble",     1, &E_GL_NV_gpu_shader5);
 9860|    971|            symbolTable.setFunctionExtensions("uint64BitsToDouble",     1, &E_GL_NV_gpu_shader5);
 9861|    971|        }
 9862|       |
 9863|       |        // E_GL_ARB_shader_atomic_counter_ops
 9864|  1.42k|        if (profile != EEsProfile && version == 450) {
  ------------------
  |  Branch (9864:13): [True: 1.27k, False: 148]
  |  Branch (9864:38): [True: 256, False: 1.01k]
  ------------------
 9865|    256|            symbolTable.setFunctionExtensions("atomicCounterAddARB"     , 1, &E_GL_ARB_shader_atomic_counter_ops);
 9866|    256|            symbolTable.setFunctionExtensions("atomicCounterSubtractARB", 1, &E_GL_ARB_shader_atomic_counter_ops);
 9867|    256|            symbolTable.setFunctionExtensions("atomicCounterMinARB"     , 1, &E_GL_ARB_shader_atomic_counter_ops);
 9868|    256|            symbolTable.setFunctionExtensions("atomicCounterMaxARB"     , 1, &E_GL_ARB_shader_atomic_counter_ops);
 9869|    256|            symbolTable.setFunctionExtensions("atomicCounterAndARB"     , 1, &E_GL_ARB_shader_atomic_counter_ops);
 9870|    256|            symbolTable.setFunctionExtensions("atomicCounterOrARB"      , 1, &E_GL_ARB_shader_atomic_counter_ops);
 9871|    256|            symbolTable.setFunctionExtensions("atomicCounterXorARB"     , 1, &E_GL_ARB_shader_atomic_counter_ops);
 9872|    256|            symbolTable.setFunctionExtensions("atomicCounterExchangeARB", 1, &E_GL_ARB_shader_atomic_counter_ops);
 9873|    256|            symbolTable.setFunctionExtensions("atomicCounterCompSwapARB", 1, &E_GL_ARB_shader_atomic_counter_ops);
 9874|    256|        }
 9875|       |
 9876|       |        // E_GL_ARB_derivative_control
 9877|  1.42k|        if (profile != EEsProfile && version < 450) {
  ------------------
  |  Branch (9877:13): [True: 1.27k, False: 148]
  |  Branch (9877:38): [True: 971, False: 301]
  ------------------
 9878|    971|            symbolTable.setFunctionExtensions("dFdxFine",     1, &E_GL_ARB_derivative_control);
 9879|    971|            symbolTable.setFunctionExtensions("dFdyFine",     1, &E_GL_ARB_derivative_control);
 9880|    971|            symbolTable.setFunctionExtensions("fwidthFine",   1, &E_GL_ARB_derivative_control);
 9881|    971|            symbolTable.setFunctionExtensions("dFdxCoarse",   1, &E_GL_ARB_derivative_control);
 9882|    971|            symbolTable.setFunctionExtensions("dFdyCoarse",   1, &E_GL_ARB_derivative_control);
 9883|    971|            symbolTable.setFunctionExtensions("fwidthCoarse", 1, &E_GL_ARB_derivative_control);
 9884|    971|        }
 9885|       |
 9886|       |        // E_GL_ARB_sparse_texture2
 9887|  1.42k|        if (profile != EEsProfile)
  ------------------
  |  Branch (9887:13): [True: 1.27k, False: 148]
  ------------------
 9888|  1.27k|        {
 9889|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureARB",              1, &E_GL_ARB_sparse_texture2);
 9890|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureLodARB",           1, &E_GL_ARB_sparse_texture2);
 9891|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureOffsetARB",        1, &E_GL_ARB_sparse_texture2);
 9892|  1.27k|            symbolTable.setFunctionExtensions("sparseTexelFetchARB",           1, &E_GL_ARB_sparse_texture2);
 9893|  1.27k|            symbolTable.setFunctionExtensions("sparseTexelFetchOffsetARB",     1, &E_GL_ARB_sparse_texture2);
 9894|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureLodOffsetARB",     1, &E_GL_ARB_sparse_texture2);
 9895|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGradARB",          1, &E_GL_ARB_sparse_texture2);
 9896|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGradOffsetARB",    1, &E_GL_ARB_sparse_texture2);
 9897|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGatherARB",        1, &E_GL_ARB_sparse_texture2);
 9898|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGatherOffsetARB",  1, &E_GL_ARB_sparse_texture2);
 9899|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGatherOffsetsARB", 1, &E_GL_ARB_sparse_texture2);
 9900|  1.27k|            symbolTable.setFunctionExtensions("sparseImageLoadARB",            1, &E_GL_ARB_sparse_texture2);
 9901|  1.27k|            symbolTable.setFunctionExtensions("sparseTexelsResident",          1, &E_GL_ARB_sparse_texture2);
 9902|  1.27k|        }
 9903|       |
 9904|       |        // E_GL_ARB_sparse_texture_clamp
 9905|  1.42k|        if (profile != EEsProfile)
  ------------------
  |  Branch (9905:13): [True: 1.27k, False: 148]
  ------------------
 9906|  1.27k|        {
 9907|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureClampARB",              1, &E_GL_ARB_sparse_texture_clamp);
 9908|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureOffsetClampARB",        1, &E_GL_ARB_sparse_texture_clamp);
 9909|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGradClampARB",          1, &E_GL_ARB_sparse_texture_clamp);
 9910|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGradOffsetClampARB",    1, &E_GL_ARB_sparse_texture_clamp);
 9911|  1.27k|            symbolTable.setFunctionExtensions("textureClampARB",                    1, &E_GL_ARB_sparse_texture_clamp);
 9912|  1.27k|            symbolTable.setFunctionExtensions("textureOffsetClampARB",              1, &E_GL_ARB_sparse_texture_clamp);
 9913|  1.27k|            symbolTable.setFunctionExtensions("textureGradClampARB",                1, &E_GL_ARB_sparse_texture_clamp);
 9914|  1.27k|            symbolTable.setFunctionExtensions("textureGradOffsetClampARB",          1, &E_GL_ARB_sparse_texture_clamp);
 9915|  1.27k|        }
 9916|       |
 9917|       |        // E_GL_AMD_shader_explicit_vertex_parameter
 9918|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9918:13): [True: 1.27k, False: 148]
  ------------------
 9919|  1.27k|            symbolTable.setVariableExtensions("gl_BaryCoordNoPerspAMD",         1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9920|  1.27k|            symbolTable.setVariableExtensions("gl_BaryCoordNoPerspCentroidAMD", 1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9921|  1.27k|            symbolTable.setVariableExtensions("gl_BaryCoordNoPerspSampleAMD",   1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9922|  1.27k|            symbolTable.setVariableExtensions("gl_BaryCoordSmoothAMD",          1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9923|  1.27k|            symbolTable.setVariableExtensions("gl_BaryCoordSmoothCentroidAMD",  1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9924|  1.27k|            symbolTable.setVariableExtensions("gl_BaryCoordSmoothSampleAMD",    1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9925|  1.27k|            symbolTable.setVariableExtensions("gl_BaryCoordPullModelAMD",       1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9926|       |
 9927|  1.27k|            symbolTable.setFunctionExtensions("interpolateAtVertexAMD",         1, &E_GL_AMD_shader_explicit_vertex_parameter);
 9928|       |
 9929|  1.27k|            BuiltInVariable("gl_BaryCoordNoPerspAMD",           EbvBaryCoordNoPersp,         symbolTable);
 9930|  1.27k|            BuiltInVariable("gl_BaryCoordNoPerspCentroidAMD",   EbvBaryCoordNoPerspCentroid, symbolTable);
 9931|  1.27k|            BuiltInVariable("gl_BaryCoordNoPerspSampleAMD",     EbvBaryCoordNoPerspSample,   symbolTable);
 9932|  1.27k|            BuiltInVariable("gl_BaryCoordSmoothAMD",            EbvBaryCoordSmooth,          symbolTable);
 9933|  1.27k|            BuiltInVariable("gl_BaryCoordSmoothCentroidAMD",    EbvBaryCoordSmoothCentroid,  symbolTable);
 9934|  1.27k|            BuiltInVariable("gl_BaryCoordSmoothSampleAMD",      EbvBaryCoordSmoothSample,    symbolTable);
 9935|  1.27k|            BuiltInVariable("gl_BaryCoordPullModelAMD",         EbvBaryCoordPullModel,       symbolTable);
 9936|  1.27k|        }
 9937|       |
 9938|       |        // E_GL_AMD_texture_gather_bias_lod
 9939|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9939:13): [True: 1.27k, False: 148]
  ------------------
 9940|  1.27k|            symbolTable.setFunctionExtensions("textureGatherLodAMD",                1, &E_GL_AMD_texture_gather_bias_lod);
 9941|  1.27k|            symbolTable.setFunctionExtensions("textureGatherLodOffsetAMD",          1, &E_GL_AMD_texture_gather_bias_lod);
 9942|  1.27k|            symbolTable.setFunctionExtensions("textureGatherLodOffsetsAMD",         1, &E_GL_AMD_texture_gather_bias_lod);
 9943|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGatherLodAMD",          1, &E_GL_AMD_texture_gather_bias_lod);
 9944|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGatherLodOffsetAMD",    1, &E_GL_AMD_texture_gather_bias_lod);
 9945|  1.27k|            symbolTable.setFunctionExtensions("sparseTextureGatherLodOffsetsAMD",   1, &E_GL_AMD_texture_gather_bias_lod);
 9946|  1.27k|        }
 9947|       |
 9948|       |        // E_GL_AMD_shader_image_load_store_lod
 9949|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (9949:13): [True: 1.27k, False: 148]
  ------------------
 9950|  1.27k|            symbolTable.setFunctionExtensions("imageLoadLodAMD",        1, &E_GL_AMD_shader_image_load_store_lod);
 9951|  1.27k|            symbolTable.setFunctionExtensions("imageStoreLodAMD",       1, &E_GL_AMD_shader_image_load_store_lod);
 9952|  1.27k|            symbolTable.setFunctionExtensions("sparseImageLoadLodAMD",  1, &E_GL_AMD_shader_image_load_store_lod);
 9953|  1.27k|        }
 9954|  1.42k|        if (profile != EEsProfile && version >= 430) {
  ------------------
  |  Branch (9954:13): [True: 1.27k, False: 148]
  |  Branch (9954:38): [True: 536, False: 736]
  ------------------
 9955|    536|            symbolTable.setVariableExtensions("gl_FragFullyCoveredNV", 1, &E_GL_NV_conservative_raster_underestimation);
 9956|    536|            BuiltInVariable("gl_FragFullyCoveredNV", EbvFragFullyCoveredNV, symbolTable);
 9957|    536|        }
 9958|  1.42k|        if ((profile != EEsProfile && version >= 450) ||
  ------------------
  |  Branch (9958:14): [True: 1.27k, False: 148]
  |  Branch (9958:39): [True: 301, False: 971]
  ------------------
 9959|  1.11k|            (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (9959:14): [True: 148, False: 971]
  |  Branch (9959:39): [True: 7, False: 141]
  ------------------
 9960|    308|            symbolTable.setVariableExtensions("gl_FragmentSizeNV",        1, &E_GL_NV_shading_rate_image);
 9961|    308|            symbolTable.setVariableExtensions("gl_InvocationsPerPixelNV", 1, &E_GL_NV_shading_rate_image);
 9962|    308|            BuiltInVariable("gl_FragmentSizeNV",        EbvFragmentSizeNV, symbolTable);
 9963|    308|            BuiltInVariable("gl_InvocationsPerPixelNV", EbvInvocationsPerPixelNV, symbolTable);
 9964|    308|            symbolTable.setVariableExtensions("gl_BaryCoordNV",        1, &E_GL_NV_fragment_shader_barycentric);
 9965|    308|            symbolTable.setVariableExtensions("gl_BaryCoordNoPerspNV", 1, &E_GL_NV_fragment_shader_barycentric);
 9966|    308|            BuiltInVariable("gl_BaryCoordNV",        EbvBaryCoordNV,        symbolTable);
 9967|    308|            BuiltInVariable("gl_BaryCoordNoPerspNV", EbvBaryCoordNoPerspNV, symbolTable);
 9968|    308|            symbolTable.setVariableExtensions("gl_BaryCoordEXT",        1, &E_GL_EXT_fragment_shader_barycentric);
 9969|    308|            symbolTable.setVariableExtensions("gl_BaryCoordNoPerspEXT", 1, &E_GL_EXT_fragment_shader_barycentric);
 9970|    308|            BuiltInVariable("gl_BaryCoordEXT",        EbvBaryCoordEXT,        symbolTable);
 9971|    308|            BuiltInVariable("gl_BaryCoordNoPerspEXT", EbvBaryCoordNoPerspEXT, symbolTable);
 9972|    308|        }
 9973|       |
 9974|  1.42k|        if ((profile != EEsProfile && version >= 450) ||
  ------------------
  |  Branch (9974:14): [True: 1.27k, False: 148]
  |  Branch (9974:39): [True: 301, False: 971]
  ------------------
 9975|  1.11k|            (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (9975:14): [True: 148, False: 971]
  |  Branch (9975:39): [True: 148, False: 0]
  ------------------
 9976|    449|            symbolTable.setVariableExtensions("gl_FragSizeEXT",            1, &E_GL_EXT_fragment_invocation_density);
 9977|    449|            symbolTable.setVariableExtensions("gl_FragInvocationCountEXT", 1, &E_GL_EXT_fragment_invocation_density);
 9978|    449|            BuiltInVariable("gl_FragSizeEXT",            EbvFragSizeEXT, symbolTable);
 9979|    449|            BuiltInVariable("gl_FragInvocationCountEXT", EbvFragInvocationCountEXT, symbolTable);
 9980|    449|        }
 9981|       |
 9982|  1.42k|        symbolTable.setVariableExtensions("gl_FragDepthEXT", 1, &E_GL_EXT_frag_depth);
 9983|       |
 9984|  1.42k|        symbolTable.setFunctionExtensions("clockARB",     1, &E_GL_ARB_shader_clock);
 9985|  1.42k|        symbolTable.setFunctionExtensions("clock2x32ARB", 1, &E_GL_ARB_shader_clock);
 9986|       |
 9987|  1.42k|        symbolTable.setFunctionExtensions("clockRealtimeEXT", 1, &E_GL_EXT_shader_realtime_clock);
 9988|  1.42k|        symbolTable.setFunctionExtensions("clockRealtime2x32EXT", 1, &E_GL_EXT_shader_realtime_clock);
 9989|       |
 9990|  1.42k|        if (profile == EEsProfile && version < 320) {
  ------------------
  |  Branch (9990:13): [True: 148, False: 1.27k]
  |  Branch (9990:38): [True: 141, False: 7]
  ------------------
 9991|    141|            symbolTable.setVariableExtensions("gl_PrimitiveID",  Num_AEP_geometry_shader, AEP_geometry_shader);
 9992|    141|            symbolTable.setVariableExtensions("gl_Layer",        Num_AEP_geometry_shader, AEP_geometry_shader);
 9993|    141|        }
 9994|       |
 9995|  1.42k|        if (profile == EEsProfile && version < 320) {
  ------------------
  |  Branch (9995:13): [True: 148, False: 1.27k]
  |  Branch (9995:38): [True: 141, False: 7]
  ------------------
 9996|    141|            symbolTable.setFunctionExtensions("imageAtomicAdd",      1, &E_GL_OES_shader_image_atomic);
 9997|    141|            symbolTable.setFunctionExtensions("imageAtomicMin",      1, &E_GL_OES_shader_image_atomic);
 9998|    141|            symbolTable.setFunctionExtensions("imageAtomicMax",      1, &E_GL_OES_shader_image_atomic);
 9999|    141|            symbolTable.setFunctionExtensions("imageAtomicAnd",      1, &E_GL_OES_shader_image_atomic);
10000|    141|            symbolTable.setFunctionExtensions("imageAtomicOr",       1, &E_GL_OES_shader_image_atomic);
10001|    141|            symbolTable.setFunctionExtensions("imageAtomicXor",      1, &E_GL_OES_shader_image_atomic);
10002|    141|            symbolTable.setFunctionExtensions("imageAtomicExchange", 1, &E_GL_OES_shader_image_atomic);
10003|    141|            symbolTable.setFunctionExtensions("imageAtomicCompSwap", 1, &E_GL_OES_shader_image_atomic);
10004|    141|        }
10005|       |
10006|  1.42k|        if (profile != EEsProfile && version < 330 ) {
  ------------------
  |  Branch (10006:13): [True: 1.27k, False: 148]
  |  Branch (10006:38): [True: 672, False: 600]
  ------------------
10007|    672|            const int numBitEncodingExts = 3;
10008|    672|            const char* bitEncodingExts[numBitEncodingExts] = { E_GL_ARB_shader_bit_encoding,
10009|    672|                                                                E_GL_ARB_gpu_shader5,
10010|    672|                                                                E_GL_NV_gpu_shader5};
10011|    672|            symbolTable.setFunctionExtensions("floatBitsToInt", numBitEncodingExts, bitEncodingExts);
10012|    672|            symbolTable.setFunctionExtensions("floatBitsToUint", numBitEncodingExts, bitEncodingExts);
10013|    672|            symbolTable.setFunctionExtensions("intBitsToFloat", numBitEncodingExts, bitEncodingExts);
10014|    672|            symbolTable.setFunctionExtensions("uintBitsToFloat", numBitEncodingExts, bitEncodingExts);
10015|       |
10016|    672|        }
10017|       |
10018|  1.42k|        if (profile != EEsProfile && version < 430 ) {
  ------------------
  |  Branch (10018:13): [True: 1.27k, False: 148]
  |  Branch (10018:38): [True: 736, False: 536]
  ------------------
10019|    736|            symbolTable.setFunctionExtensions("imageSize", 1, &E_GL_ARB_shader_image_size);
10020|    736|        }
10021|       |
10022|       |        // GL_ARB_shader_storage_buffer_object
10023|  1.42k|        if (profile != EEsProfile && version < 430 ) {
  ------------------
  |  Branch (10023:13): [True: 1.27k, False: 148]
  |  Branch (10023:38): [True: 736, False: 536]
  ------------------
10024|    736|            symbolTable.setFunctionExtensions("atomicAdd", 1, &E_GL_ARB_shader_storage_buffer_object);
10025|    736|            symbolTable.setFunctionExtensions("atomicMin", 1, &E_GL_ARB_shader_storage_buffer_object);
10026|    736|            symbolTable.setFunctionExtensions("atomicMax", 1, &E_GL_ARB_shader_storage_buffer_object);
10027|    736|            symbolTable.setFunctionExtensions("atomicAnd", 1, &E_GL_ARB_shader_storage_buffer_object);
10028|    736|            symbolTable.setFunctionExtensions("atomicOr", 1, &E_GL_ARB_shader_storage_buffer_object);
10029|    736|            symbolTable.setFunctionExtensions("atomicXor", 1, &E_GL_ARB_shader_storage_buffer_object);
10030|    736|            symbolTable.setFunctionExtensions("atomicExchange", 1, &E_GL_ARB_shader_storage_buffer_object);
10031|    736|            symbolTable.setFunctionExtensions("atomicCompSwap", 1, &E_GL_ARB_shader_storage_buffer_object);
10032|    736|        }
10033|       |
10034|       |        // GL_ARB_shading_language_packing
10035|  1.42k|        if (profile != EEsProfile && version < 400 ) {
  ------------------
  |  Branch (10035:13): [True: 1.27k, False: 148]
  |  Branch (10035:38): [True: 703, False: 569]
  ------------------
10036|    703|            const int numPackingExts = 3;
10037|    703|            const char* packingExts[numPackingExts] = { E_GL_ARB_shading_language_packing,
10038|    703|                                                                E_GL_ARB_gpu_shader5,
10039|    703|                                                                E_GL_NV_gpu_shader5};
10040|    703|            symbolTable.setFunctionExtensions("packUnorm2x16", numPackingExts, packingExts);
10041|    703|            symbolTable.setFunctionExtensions("unpackUnorm2x16", numPackingExts, packingExts);
10042|    703|            symbolTable.setFunctionExtensions("packSnorm4x8", numPackingExts, packingExts);
10043|    703|            symbolTable.setFunctionExtensions("packUnorm4x8", numPackingExts, packingExts);
10044|    703|            symbolTable.setFunctionExtensions("unpackSnorm4x8", numPackingExts, packingExts);
10045|    703|            symbolTable.setFunctionExtensions("unpackUnorm4x8", numPackingExts, packingExts);
10046|    703|        }
10047|  1.42k|        if (profile != EEsProfile && version < 420 ) {
  ------------------
  |  Branch (10047:13): [True: 1.27k, False: 148]
  |  Branch (10047:38): [True: 735, False: 537]
  ------------------
10048|    735|            symbolTable.setFunctionExtensions("packSnorm2x16", 1, &E_GL_ARB_shading_language_packing);
10049|    735|            symbolTable.setFunctionExtensions("unpackSnorm2x16", 1, &E_GL_ARB_shading_language_packing);
10050|    735|            symbolTable.setFunctionExtensions("unpackHalf2x16", 1, &E_GL_ARB_shading_language_packing);
10051|    735|            symbolTable.setFunctionExtensions("packHalf2x16", 1, &E_GL_ARB_shading_language_packing);
10052|    735|        }
10053|       |
10054|  1.42k|        symbolTable.setVariableExtensions("gl_DeviceIndex",  1, &E_GL_EXT_device_group);
10055|  1.42k|        BuiltInVariable("gl_DeviceIndex", EbvDeviceIndex, symbolTable);
10056|  1.42k|        symbolTable.setVariableExtensions("gl_ViewIndex", 1, &E_GL_EXT_multiview);
10057|  1.42k|        BuiltInVariable("gl_ViewIndex", EbvViewIndex, symbolTable);
10058|  1.42k|        if (version >= 300 /* both ES and non-ES */) {
  ------------------
  |  Branch (10058:13): [True: 748, False: 672]
  ------------------
10059|    748|            symbolTable.setVariableExtensions("gl_ViewID_OVR", Num_OVR_multiview_EXTs, OVR_multiview_EXTs);
10060|    748|            BuiltInVariable("gl_ViewID_OVR", EbvViewIndex, symbolTable);
10061|    748|        }
10062|       |
10063|       |        // GL_ARB_shader_ballot
10064|  1.42k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (10064:13): [True: 1.27k, False: 148]
  ------------------
10065|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupSizeARB",       1, &E_GL_ARB_shader_ballot);
10066|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupInvocationARB", 1, &E_GL_ARB_shader_ballot);
10067|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupEqMaskARB",     1, &E_GL_ARB_shader_ballot);
10068|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupGeMaskARB",     1, &E_GL_ARB_shader_ballot);
10069|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupGtMaskARB",     1, &E_GL_ARB_shader_ballot);
10070|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupLeMaskARB",     1, &E_GL_ARB_shader_ballot);
10071|  1.27k|            symbolTable.setVariableExtensions("gl_SubGroupLtMaskARB",     1, &E_GL_ARB_shader_ballot);
10072|       |
10073|  1.27k|            BuiltInVariable("gl_SubGroupInvocationARB", EbvSubGroupInvocation, symbolTable);
10074|  1.27k|            BuiltInVariable("gl_SubGroupEqMaskARB",     EbvSubGroupEqMask,     symbolTable);
10075|  1.27k|            BuiltInVariable("gl_SubGroupGeMaskARB",     EbvSubGroupGeMask,     symbolTable);
10076|  1.27k|            BuiltInVariable("gl_SubGroupGtMaskARB",     EbvSubGroupGtMask,     symbolTable);
10077|  1.27k|            BuiltInVariable("gl_SubGroupLeMaskARB",     EbvSubGroupLeMask,     symbolTable);
10078|  1.27k|            BuiltInVariable("gl_SubGroupLtMaskARB",     EbvSubGroupLtMask,     symbolTable);
10079|       |
10080|  1.27k|            if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (10080:17): [True: 1.27k, False: 0]
  ------------------
10081|       |                // Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
10082|  1.27k|                SpecialQualifier("gl_SubGroupSizeARB", EvqVaryingIn, EbvSubGroupSize, symbolTable);
10083|  1.27k|                if (language == EShLangFragment)
  ------------------
  |  Branch (10083:21): [True: 1.27k, False: 0]
  ------------------
10084|  1.27k|                    ModifyFlatDecoration("gl_SubGroupSizeARB", true, symbolTable);
10085|  1.27k|            }
10086|      0|            else
10087|      0|                BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
10088|  1.27k|        }
10089|       |
10090|       |        // GL_EXT_expect_assume
10091|  1.42k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10091:14): [True: 148, False: 1.27k]
  |  Branch (10091:39): [True: 148, False: 0]
  ------------------
10092|  1.42k|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (10092:14): [True: 1.27k, False: 0]
  |  Branch (10092:39): [True: 1.27k, False: 0]
  ------------------
10093|  1.42k|            symbolTable.setFunctionExtensions("assumeEXT", 1, &E_GL_EXT_expect_assume);
10094|  1.42k|            symbolTable.setFunctionExtensions("expectEXT", 1, &E_GL_EXT_expect_assume);
10095|  1.42k|        }
10096|       |
10097|       |        // GL_KHR_shader_subgroup
10098|  1.42k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10098:14): [True: 148, False: 1.27k]
  |  Branch (10098:39): [True: 148, False: 0]
  ------------------
10099|  1.42k|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (10099:14): [True: 1.27k, False: 0]
  |  Branch (10099:39): [True: 1.27k, False: 0]
  ------------------
10100|  1.42k|            symbolTable.setVariableExtensions("gl_SubgroupSize",         1, &E_GL_KHR_shader_subgroup_basic);
10101|  1.42k|            symbolTable.setVariableExtensions("gl_SubgroupInvocationID", 1, &E_GL_KHR_shader_subgroup_basic);
10102|  1.42k|            symbolTable.setVariableExtensions("gl_SubgroupEqMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10103|  1.42k|            symbolTable.setVariableExtensions("gl_SubgroupGeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10104|  1.42k|            symbolTable.setVariableExtensions("gl_SubgroupGtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10105|  1.42k|            symbolTable.setVariableExtensions("gl_SubgroupLeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10106|  1.42k|            symbolTable.setVariableExtensions("gl_SubgroupLtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10107|       |
10108|  1.42k|            BuiltInVariable("gl_SubgroupSize",         EbvSubgroupSize2,       symbolTable);
10109|  1.42k|            BuiltInVariable("gl_SubgroupInvocationID", EbvSubgroupInvocation2, symbolTable);
10110|  1.42k|            BuiltInVariable("gl_SubgroupEqMask",       EbvSubgroupEqMask2,     symbolTable);
10111|  1.42k|            BuiltInVariable("gl_SubgroupGeMask",       EbvSubgroupGeMask2,     symbolTable);
10112|  1.42k|            BuiltInVariable("gl_SubgroupGtMask",       EbvSubgroupGtMask2,     symbolTable);
10113|  1.42k|            BuiltInVariable("gl_SubgroupLeMask",       EbvSubgroupLeMask2,     symbolTable);
10114|  1.42k|            BuiltInVariable("gl_SubgroupLtMask",       EbvSubgroupLtMask2,     symbolTable);
10115|       |
10116|  1.42k|            symbolTable.setFunctionExtensions("subgroupBarrier",                 1, &E_GL_KHR_shader_subgroup_basic);
10117|  1.42k|            symbolTable.setFunctionExtensions("subgroupMemoryBarrier",           1, &E_GL_KHR_shader_subgroup_basic);
10118|  1.42k|            symbolTable.setFunctionExtensions("subgroupMemoryBarrierBuffer",     1, &E_GL_KHR_shader_subgroup_basic);
10119|  1.42k|            symbolTable.setFunctionExtensions("subgroupMemoryBarrierImage",      1, &E_GL_KHR_shader_subgroup_basic);
10120|  1.42k|            symbolTable.setFunctionExtensions("subgroupElect",                   1, &E_GL_KHR_shader_subgroup_basic);
10121|  1.42k|            symbolTable.setFunctionExtensions("subgroupAll",                     1, &E_GL_KHR_shader_subgroup_vote);
10122|  1.42k|            symbolTable.setFunctionExtensions("subgroupAny",                     1, &E_GL_KHR_shader_subgroup_vote);
10123|  1.42k|            symbolTable.setFunctionExtensions("subgroupAllEqual",                1, &E_GL_KHR_shader_subgroup_vote);
10124|  1.42k|            symbolTable.setFunctionExtensions("subgroupBroadcast",               1, &E_GL_KHR_shader_subgroup_ballot);
10125|  1.42k|            symbolTable.setFunctionExtensions("subgroupBroadcastFirst",          1, &E_GL_KHR_shader_subgroup_ballot);
10126|  1.42k|            symbolTable.setFunctionExtensions("subgroupBallot",                  1, &E_GL_KHR_shader_subgroup_ballot);
10127|  1.42k|            symbolTable.setFunctionExtensions("subgroupInverseBallot",           1, &E_GL_KHR_shader_subgroup_ballot);
10128|  1.42k|            symbolTable.setFunctionExtensions("subgroupBallotBitExtract",        1, &E_GL_KHR_shader_subgroup_ballot);
10129|  1.42k|            symbolTable.setFunctionExtensions("subgroupBallotBitCount",          1, &E_GL_KHR_shader_subgroup_ballot);
10130|  1.42k|            symbolTable.setFunctionExtensions("subgroupBallotInclusiveBitCount", 1, &E_GL_KHR_shader_subgroup_ballot);
10131|  1.42k|            symbolTable.setFunctionExtensions("subgroupBallotExclusiveBitCount", 1, &E_GL_KHR_shader_subgroup_ballot);
10132|  1.42k|            symbolTable.setFunctionExtensions("subgroupBallotFindLSB",           1, &E_GL_KHR_shader_subgroup_ballot);
10133|  1.42k|            symbolTable.setFunctionExtensions("subgroupBallotFindMSB",           1, &E_GL_KHR_shader_subgroup_ballot);
10134|  1.42k|            symbolTable.setFunctionExtensions("subgroupShuffle",                 1, &E_GL_KHR_shader_subgroup_shuffle);
10135|  1.42k|            symbolTable.setFunctionExtensions("subgroupShuffleXor",              1, &E_GL_KHR_shader_subgroup_shuffle);
10136|  1.42k|            symbolTable.setFunctionExtensions("subgroupShuffleUp",               1, &E_GL_KHR_shader_subgroup_shuffle_relative);
10137|  1.42k|            symbolTable.setFunctionExtensions("subgroupShuffleDown",             1, &E_GL_KHR_shader_subgroup_shuffle_relative);
10138|  1.42k|            symbolTable.setFunctionExtensions("subgroupRotate",                  1, &E_GL_KHR_shader_subgroup_rotate);
10139|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredRotate",         1, &E_GL_KHR_shader_subgroup_rotate);
10140|  1.42k|            symbolTable.setFunctionExtensions("subgroupAdd",                     1, &E_GL_KHR_shader_subgroup_arithmetic);
10141|  1.42k|            symbolTable.setFunctionExtensions("subgroupMul",                     1, &E_GL_KHR_shader_subgroup_arithmetic);
10142|  1.42k|            symbolTable.setFunctionExtensions("subgroupMin",                     1, &E_GL_KHR_shader_subgroup_arithmetic);
10143|  1.42k|            symbolTable.setFunctionExtensions("subgroupMax",                     1, &E_GL_KHR_shader_subgroup_arithmetic);
10144|  1.42k|            symbolTable.setFunctionExtensions("subgroupAnd",                     1, &E_GL_KHR_shader_subgroup_arithmetic);
10145|  1.42k|            symbolTable.setFunctionExtensions("subgroupOr",                      1, &E_GL_KHR_shader_subgroup_arithmetic);
10146|  1.42k|            symbolTable.setFunctionExtensions("subgroupXor",                     1, &E_GL_KHR_shader_subgroup_arithmetic);
10147|  1.42k|            symbolTable.setFunctionExtensions("subgroupInclusiveAdd",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10148|  1.42k|            symbolTable.setFunctionExtensions("subgroupInclusiveMul",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10149|  1.42k|            symbolTable.setFunctionExtensions("subgroupInclusiveMin",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10150|  1.42k|            symbolTable.setFunctionExtensions("subgroupInclusiveMax",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10151|  1.42k|            symbolTable.setFunctionExtensions("subgroupInclusiveAnd",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10152|  1.42k|            symbolTable.setFunctionExtensions("subgroupInclusiveOr",             1, &E_GL_KHR_shader_subgroup_arithmetic);
10153|  1.42k|            symbolTable.setFunctionExtensions("subgroupInclusiveXor",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10154|  1.42k|            symbolTable.setFunctionExtensions("subgroupExclusiveAdd",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10155|  1.42k|            symbolTable.setFunctionExtensions("subgroupExclusiveMul",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10156|  1.42k|            symbolTable.setFunctionExtensions("subgroupExclusiveMin",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10157|  1.42k|            symbolTable.setFunctionExtensions("subgroupExclusiveMax",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10158|  1.42k|            symbolTable.setFunctionExtensions("subgroupExclusiveAnd",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10159|  1.42k|            symbolTable.setFunctionExtensions("subgroupExclusiveOr",             1, &E_GL_KHR_shader_subgroup_arithmetic);
10160|  1.42k|            symbolTable.setFunctionExtensions("subgroupExclusiveXor",            1, &E_GL_KHR_shader_subgroup_arithmetic);
10161|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredAdd",            1, &E_GL_KHR_shader_subgroup_clustered);
10162|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredMul",            1, &E_GL_KHR_shader_subgroup_clustered);
10163|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredMin",            1, &E_GL_KHR_shader_subgroup_clustered);
10164|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredMax",            1, &E_GL_KHR_shader_subgroup_clustered);
10165|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredAnd",            1, &E_GL_KHR_shader_subgroup_clustered);
10166|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredOr",             1, &E_GL_KHR_shader_subgroup_clustered);
10167|  1.42k|            symbolTable.setFunctionExtensions("subgroupClusteredXor",            1, &E_GL_KHR_shader_subgroup_clustered);
10168|  1.42k|            symbolTable.setFunctionExtensions("subgroupQuadBroadcast",           1, &E_GL_KHR_shader_subgroup_quad);
10169|  1.42k|            symbolTable.setFunctionExtensions("subgroupQuadSwapHorizontal",      1, &E_GL_KHR_shader_subgroup_quad);
10170|  1.42k|            symbolTable.setFunctionExtensions("subgroupQuadSwapVertical",        1, &E_GL_KHR_shader_subgroup_quad);
10171|  1.42k|            symbolTable.setFunctionExtensions("subgroupQuadSwapDiagonal",        1, &E_GL_KHR_shader_subgroup_quad);
10172|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionNV",                          1, &E_GL_NV_shader_subgroup_partitioned);
10173|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedAddNV",                     1, &E_GL_NV_shader_subgroup_partitioned);
10174|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedMulNV",                     1, &E_GL_NV_shader_subgroup_partitioned);
10175|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedMinNV",                     1, &E_GL_NV_shader_subgroup_partitioned);
10176|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedMaxNV",                     1, &E_GL_NV_shader_subgroup_partitioned);
10177|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedAndNV",                     1, &E_GL_NV_shader_subgroup_partitioned);
10178|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedOrNV",                      1, &E_GL_NV_shader_subgroup_partitioned);
10179|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedXorNV",                     1, &E_GL_NV_shader_subgroup_partitioned);
10180|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedInclusiveAddNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10181|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedInclusiveMulNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10182|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedInclusiveMinNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10183|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedInclusiveMaxNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10184|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedInclusiveAndNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10185|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedInclusiveOrNV",             1, &E_GL_NV_shader_subgroup_partitioned);
10186|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedInclusiveXorNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10187|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedExclusiveAddNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10188|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedExclusiveMulNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10189|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedExclusiveMinNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10190|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedExclusiveMaxNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10191|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedExclusiveAndNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10192|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedExclusiveOrNV",             1, &E_GL_NV_shader_subgroup_partitioned);
10193|  1.42k|            symbolTable.setFunctionExtensions("subgroupPartitionedExclusiveXorNV",            1, &E_GL_NV_shader_subgroup_partitioned);
10194|       |
10195|       |            // GL_NV_shader_sm_builtins
10196|  1.42k|            symbolTable.setVariableExtensions("gl_WarpsPerSMNV",         1, &E_GL_NV_shader_sm_builtins);
10197|  1.42k|            symbolTable.setVariableExtensions("gl_SMCountNV",            1, &E_GL_NV_shader_sm_builtins);
10198|  1.42k|            symbolTable.setVariableExtensions("gl_WarpIDNV",             1, &E_GL_NV_shader_sm_builtins);
10199|  1.42k|            symbolTable.setVariableExtensions("gl_SMIDNV",               1, &E_GL_NV_shader_sm_builtins);
10200|  1.42k|            BuiltInVariable("gl_WarpsPerSMNV",          EbvWarpsPerSM,      symbolTable);
10201|  1.42k|            BuiltInVariable("gl_SMCountNV",             EbvSMCount,         symbolTable);
10202|  1.42k|            BuiltInVariable("gl_WarpIDNV",              EbvWarpID,          symbolTable);
10203|  1.42k|            BuiltInVariable("gl_SMIDNV",                EbvSMID,            symbolTable);
10204|       |
10205|       |            // GL_ARM_shader_core_builtins
10206|  1.42k|            symbolTable.setVariableExtensions("gl_CoreCountARM", 1, &E_GL_ARM_shader_core_builtins);
10207|  1.42k|            symbolTable.setVariableExtensions("gl_CoreIDARM",    1, &E_GL_ARM_shader_core_builtins);
10208|  1.42k|            symbolTable.setVariableExtensions("gl_CoreMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
10209|  1.42k|            symbolTable.setVariableExtensions("gl_WarpIDARM",    1, &E_GL_ARM_shader_core_builtins);
10210|  1.42k|            symbolTable.setVariableExtensions("gl_WarpMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
10211|       |
10212|  1.42k|            BuiltInVariable("gl_CoreCountARM", EbvCoreCountARM, symbolTable);
10213|  1.42k|            BuiltInVariable("gl_CoreIDARM",    EbvCoreIDARM, symbolTable);
10214|  1.42k|            BuiltInVariable("gl_CoreMaxIDARM", EbvCoreMaxIDARM, symbolTable);
10215|  1.42k|            BuiltInVariable("gl_WarpIDARM",    EbvWarpIDARM, symbolTable);
10216|  1.42k|            BuiltInVariable("gl_WarpMaxIDARM", EbvWarpMaxIDARM, symbolTable);
10217|  1.42k|        }
10218|       |
10219|  1.42k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (10219:13): [True: 148, False: 1.27k]
  ------------------
10220|    148|            symbolTable.setFunctionExtensions("shadow2DEXT",        1, &E_GL_EXT_shadow_samplers);
10221|    148|            symbolTable.setFunctionExtensions("shadow2DProjEXT",    1, &E_GL_EXT_shadow_samplers);
10222|    148|        }
10223|       |
10224|  1.42k|        if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (10224:13): [True: 1.42k, False: 0]
  ------------------
10225|  1.42k|            symbolTable.setVariableExtensions("gl_ScopeDevice",             1, &E_GL_KHR_memory_scope_semantics);
10226|  1.42k|            symbolTable.setVariableExtensions("gl_ScopeWorkgroup",          1, &E_GL_KHR_memory_scope_semantics);
10227|  1.42k|            symbolTable.setVariableExtensions("gl_ScopeSubgroup",           1, &E_GL_KHR_memory_scope_semantics);
10228|  1.42k|            symbolTable.setVariableExtensions("gl_ScopeInvocation",         1, &E_GL_KHR_memory_scope_semantics);
10229|       |
10230|  1.42k|            symbolTable.setVariableExtensions("gl_SemanticsRelaxed",        1, &E_GL_KHR_memory_scope_semantics);
10231|  1.42k|            symbolTable.setVariableExtensions("gl_SemanticsAcquire",        1, &E_GL_KHR_memory_scope_semantics);
10232|  1.42k|            symbolTable.setVariableExtensions("gl_SemanticsRelease",        1, &E_GL_KHR_memory_scope_semantics);
10233|  1.42k|            symbolTable.setVariableExtensions("gl_SemanticsAcquireRelease", 1, &E_GL_KHR_memory_scope_semantics);
10234|  1.42k|            symbolTable.setVariableExtensions("gl_SemanticsMakeAvailable",  1, &E_GL_KHR_memory_scope_semantics);
10235|  1.42k|            symbolTable.setVariableExtensions("gl_SemanticsMakeVisible",    1, &E_GL_KHR_memory_scope_semantics);
10236|  1.42k|            symbolTable.setVariableExtensions("gl_SemanticsVolatile",       1, &E_GL_KHR_memory_scope_semantics);
10237|       |
10238|  1.42k|            symbolTable.setVariableExtensions("gl_StorageSemanticsNone",    1, &E_GL_KHR_memory_scope_semantics);
10239|  1.42k|            symbolTable.setVariableExtensions("gl_StorageSemanticsBuffer",  1, &E_GL_KHR_memory_scope_semantics);
10240|  1.42k|            symbolTable.setVariableExtensions("gl_StorageSemanticsShared",  1, &E_GL_KHR_memory_scope_semantics);
10241|  1.42k|            symbolTable.setVariableExtensions("gl_StorageSemanticsImage",   1, &E_GL_KHR_memory_scope_semantics);
10242|  1.42k|            symbolTable.setVariableExtensions("gl_StorageSemanticsOutput",  1, &E_GL_KHR_memory_scope_semantics);
10243|  1.42k|        }
10244|       |
10245|  1.42k|        symbolTable.setFunctionExtensions("helperInvocationEXT",            1, &E_GL_EXT_demote_to_helper_invocation);
10246|       |
10247|  1.42k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10247:14): [True: 148, False: 1.27k]
  |  Branch (10247:39): [True: 148, False: 0]
  ------------------
10248|  1.27k|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (10248:14): [True: 1.27k, False: 0]
  |  Branch (10248:39): [True: 301, False: 971]
  ------------------
10249|    449|            symbolTable.setVariableExtensions("gl_ShadingRateEXT", 1, &E_GL_EXT_fragment_shading_rate);
10250|    449|            BuiltInVariable("gl_ShadingRateEXT", EbvShadingRateKHR, symbolTable);
10251|       |
10252|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10253|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10254|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10255|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10256|    449|        }
10257|       |
10258|       |        // GL_EXT_shader_quad_control
10259|  1.42k|        if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (10259:14): [True: 1.27k, False: 148]
  |  Branch (10259:39): [True: 1.27k, False: 0]
  ------------------
10260|  1.42k|            (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (10260:14): [True: 148, False: 0]
  |  Branch (10260:39): [True: 148, False: 0]
  ------------------
10261|  1.42k|            symbolTable.setFunctionExtensions("subgroupQuadAll",                     1,  &E_GL_KHR_shader_subgroup_vote);
10262|  1.42k|            symbolTable.setFunctionExtensions("subgroupQuadAny",                     1,  &E_GL_KHR_shader_subgroup_vote);
10263|  1.42k|        }
10264|       |
10265|       |        // GL_EXT_shader_tile_image
10266|  1.42k|        symbolTable.setFunctionExtensions("stencilAttachmentReadEXT", 1, &E_GL_EXT_shader_tile_image);
10267|  1.42k|        symbolTable.setFunctionExtensions("depthAttachmentReadEXT", 1, &E_GL_EXT_shader_tile_image);
10268|  1.42k|        symbolTable.setFunctionExtensions("colorAttachmentReadEXT", 1, &E_GL_EXT_shader_tile_image);
10269|       |
10270|  1.42k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10270:14): [True: 148, False: 1.27k]
  |  Branch (10270:39): [True: 148, False: 0]
  ------------------
10271|  1.42k|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (10271:14): [True: 1.27k, False: 0]
  |  Branch (10271:39): [True: 1.27k, False: 0]
  ------------------
10272|       |
10273|  1.42k|            symbolTable.setFunctionExtensions("textureWeightedQCOM",      1, &E_GL_QCOM_image_processing);
10274|  1.42k|            symbolTable.setFunctionExtensions("textureBoxFilterQCOM",     1, &E_GL_QCOM_image_processing);
10275|  1.42k|            symbolTable.setFunctionExtensions("textureBlockMatchSADQCOM", 1, &E_GL_QCOM_image_processing);
10276|  1.42k|            symbolTable.setFunctionExtensions("textureBlockMatchSSDQCOM", 1, &E_GL_QCOM_image_processing);
10277|       |
10278|  1.42k|            symbolTable.setFunctionExtensions("textureBlockMatchWindowSSDQCOM", 1, &E_GL_QCOM_image_processing2);
10279|  1.42k|            symbolTable.setFunctionExtensions("textureBlockMatchWindowSADQCOM", 1, &E_GL_QCOM_image_processing2);
10280|  1.42k|            symbolTable.setFunctionExtensions("textureBlockMatchGatherSSDQCOM", 1, &E_GL_QCOM_image_processing2);
10281|  1.42k|            symbolTable.setFunctionExtensions("textureBlockMatchGatherSADQCOM", 1, &E_GL_QCOM_image_processing2);
10282|  1.42k|        }
10283|       |
10284|  1.42k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10284:14): [True: 148, False: 1.27k]
  |  Branch (10284:39): [True: 148, False: 0]
  ------------------
10285|  1.27k|            (profile != EEsProfile && version >= 460)) {
  ------------------
  |  Branch (10285:14): [True: 1.27k, False: 0]
  |  Branch (10285:39): [True: 45, False: 1.22k]
  ------------------
10286|    193|            BuiltInVariable("gl_TileOffsetQCOM",    EbvTileOffsetQCOM,      symbolTable);
10287|    193|            BuiltInVariable("gl_TileDimensionQCOM", EbvTileDimensionQCOM,   symbolTable);
10288|    193|            BuiltInVariable("gl_TileApronSizeQCOM", EbvTileApronSizeQCOM,   symbolTable);
10289|       |
10290|    193|            symbolTable.setVariableExtensions("gl_TileOffsetQCOM",        1, &E_GL_QCOM_tile_shading);
10291|    193|            symbolTable.setVariableExtensions("gl_TileDimensionQCOM",     1, &E_GL_QCOM_tile_shading);
10292|    193|            symbolTable.setVariableExtensions("gl_TileApronSizeQCOM",     1, &E_GL_QCOM_tile_shading);
10293|    193|        }
10294|       |
10295|  1.42k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10295:14): [True: 148, False: 1.27k]
  |  Branch (10295:39): [True: 148, False: 0]
  ------------------
10296|  1.42k|            (profile != EEsProfile && version >= 130)) {
  ------------------
  |  Branch (10296:14): [True: 1.27k, False: 0]
  |  Branch (10296:39): [True: 1.27k, False: 0]
  ------------------
10297|  1.42k|            symbolTable.setFunctionExtensions("textureGather4x1QCOM", 1, &E_GL_QCOM_image_processing3);
10298|  1.42k|            symbolTable.setFunctionExtensions("textureGatherV2QCOM", 1, &E_GL_QCOM_image_processing3);
10299|  1.42k|            symbolTable.setFunctionExtensions("textureGatherH2QCOM", 1, &E_GL_QCOM_image_processing3);
10300|  1.42k|            symbolTable.setFunctionExtensions("textureGatherDQCOM", 1, &E_GL_QCOM_image_processing3);
10301|  1.42k|            symbolTable.setFunctionExtensions("textureGather4x1OffsetQCOM", 1, &E_GL_QCOM_image_processing3);
10302|  1.42k|            symbolTable.setFunctionExtensions("textureGatherV2OffsetQCOM", 1, &E_GL_QCOM_image_processing3);
10303|  1.42k|            symbolTable.setFunctionExtensions("textureGatherH2OffsetQCOM", 1, &E_GL_QCOM_image_processing3);
10304|  1.42k|            symbolTable.setFunctionExtensions("textureGatherDOffsetQCOM", 1, &E_GL_QCOM_image_processing3);
10305|  1.42k|        }
10306|       |
10307|  1.42k|        break;
10308|       |
10309|    685|    case EShLangCompute:
  ------------------
  |  Branch (10309:5): [True: 685, False: 7.97k]
  ------------------
10310|    685|        BuiltInVariable("gl_NumWorkGroups",         EbvNumWorkGroups,        symbolTable);
10311|    685|        BuiltInVariable("gl_WorkGroupSize",         EbvWorkGroupSize,        symbolTable);
10312|    685|        BuiltInVariable("gl_WorkGroupID",           EbvWorkGroupId,          symbolTable);
10313|    685|        BuiltInVariable("gl_LocalInvocationID",     EbvLocalInvocationId,    symbolTable);
10314|    685|        BuiltInVariable("gl_GlobalInvocationID",    EbvGlobalInvocationId,   symbolTable);
10315|    685|        BuiltInVariable("gl_LocalInvocationIndex",  EbvLocalInvocationIndex, symbolTable);
10316|    685|        BuiltInVariable("gl_DeviceIndex",           EbvDeviceIndex,          symbolTable);
10317|    685|        BuiltInVariable("gl_ViewIndex",             EbvViewIndex,            symbolTable);
10318|       |
10319|    685|        if ((profile != EEsProfile && version >= 140) ||
  ------------------
  |  Branch (10319:14): [True: 537, False: 148]
  |  Branch (10319:39): [True: 537, False: 0]
  ------------------
10320|    685|            (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (10320:14): [True: 148, False: 0]
  |  Branch (10320:39): [True: 148, False: 0]
  ------------------
10321|    685|            symbolTable.setVariableExtensions("gl_DeviceIndex",  1, &E_GL_EXT_device_group);
10322|    685|            symbolTable.setVariableExtensions("gl_ViewIndex",    1, &E_GL_EXT_multiview);
10323|    685|        }
10324|       |
10325|    685|        if (profile != EEsProfile && version < 430) {
  ------------------
  |  Branch (10325:13): [True: 537, False: 148]
  |  Branch (10325:38): [True: 1, False: 536]
  ------------------
10326|      1|            symbolTable.setVariableExtensions("gl_NumWorkGroups",        1, &E_GL_ARB_compute_shader);
10327|      1|            symbolTable.setVariableExtensions("gl_WorkGroupSize",        1, &E_GL_ARB_compute_shader);
10328|      1|            symbolTable.setVariableExtensions("gl_WorkGroupID",          1, &E_GL_ARB_compute_shader);
10329|      1|            symbolTable.setVariableExtensions("gl_LocalInvocationID",    1, &E_GL_ARB_compute_shader);
10330|      1|            symbolTable.setVariableExtensions("gl_GlobalInvocationID",   1, &E_GL_ARB_compute_shader);
10331|      1|            symbolTable.setVariableExtensions("gl_LocalInvocationIndex", 1, &E_GL_ARB_compute_shader);
10332|       |
10333|      1|            symbolTable.setVariableExtensions("gl_MaxComputeWorkGroupCount",       1, &E_GL_ARB_compute_shader);
10334|      1|            symbolTable.setVariableExtensions("gl_MaxComputeWorkGroupSize",        1, &E_GL_ARB_compute_shader);
10335|      1|            symbolTable.setVariableExtensions("gl_MaxComputeUniformComponents",    1, &E_GL_ARB_compute_shader);
10336|      1|            symbolTable.setVariableExtensions("gl_MaxComputeTextureImageUnits",    1, &E_GL_ARB_compute_shader);
10337|      1|            symbolTable.setVariableExtensions("gl_MaxComputeImageUniforms",        1, &E_GL_ARB_compute_shader);
10338|      1|            symbolTable.setVariableExtensions("gl_MaxComputeAtomicCounters",       1, &E_GL_ARB_compute_shader);
10339|      1|            symbolTable.setVariableExtensions("gl_MaxComputeAtomicCounterBuffers", 1, &E_GL_ARB_compute_shader);
10340|       |
10341|      1|            symbolTable.setFunctionExtensions("barrier",                    1, &E_GL_ARB_compute_shader);
10342|      1|            symbolTable.setFunctionExtensions("memoryBarrierAtomicCounter", 1, &E_GL_ARB_compute_shader);
10343|      1|            symbolTable.setFunctionExtensions("memoryBarrierBuffer",        1, &E_GL_ARB_compute_shader);
10344|      1|            symbolTable.setFunctionExtensions("memoryBarrierImage",         1, &E_GL_ARB_compute_shader);
10345|      1|            symbolTable.setFunctionExtensions("memoryBarrierShared",        1, &E_GL_ARB_compute_shader);
10346|      1|            symbolTable.setFunctionExtensions("groupMemoryBarrier",         1, &E_GL_ARB_compute_shader);
10347|      1|        }
10348|       |
10349|    685|        symbolTable.setFunctionExtensions("controlBarrier",                 1, &E_GL_KHR_memory_scope_semantics);
10350|    685|        symbolTable.setFunctionExtensions("debugPrintfEXT",                 1, &E_GL_EXT_debug_printf);
10351|    685|        symbolTable.setFunctionExtensions("abortEXT",                       1, &E_GL_EXT_abort);
10352|    685|        symbolTable.setFunctionExtensions("controlBarrierArrive",           1, &E_GL_EXT_split_barrier);
10353|    685|        symbolTable.setFunctionExtensions("controlBarrierWait",             1, &E_GL_EXT_split_barrier);
10354|       |
10355|       |        // GL_ARB_shader_ballot
10356|    685|        if (profile != EEsProfile) {
  ------------------
  |  Branch (10356:13): [True: 537, False: 148]
  ------------------
10357|    537|            symbolTable.setVariableExtensions("gl_SubGroupSizeARB",       1, &E_GL_ARB_shader_ballot);
10358|    537|            symbolTable.setVariableExtensions("gl_SubGroupInvocationARB", 1, &E_GL_ARB_shader_ballot);
10359|    537|            symbolTable.setVariableExtensions("gl_SubGroupEqMaskARB",     1, &E_GL_ARB_shader_ballot);
10360|    537|            symbolTable.setVariableExtensions("gl_SubGroupGeMaskARB",     1, &E_GL_ARB_shader_ballot);
10361|    537|            symbolTable.setVariableExtensions("gl_SubGroupGtMaskARB",     1, &E_GL_ARB_shader_ballot);
10362|    537|            symbolTable.setVariableExtensions("gl_SubGroupLeMaskARB",     1, &E_GL_ARB_shader_ballot);
10363|    537|            symbolTable.setVariableExtensions("gl_SubGroupLtMaskARB",     1, &E_GL_ARB_shader_ballot);
10364|       |
10365|    537|            BuiltInVariable("gl_SubGroupInvocationARB", EbvSubGroupInvocation, symbolTable);
10366|    537|            BuiltInVariable("gl_SubGroupEqMaskARB",     EbvSubGroupEqMask,     symbolTable);
10367|    537|            BuiltInVariable("gl_SubGroupGeMaskARB",     EbvSubGroupGeMask,     symbolTable);
10368|    537|            BuiltInVariable("gl_SubGroupGtMaskARB",     EbvSubGroupGtMask,     symbolTable);
10369|    537|            BuiltInVariable("gl_SubGroupLeMaskARB",     EbvSubGroupLeMask,     symbolTable);
10370|    537|            BuiltInVariable("gl_SubGroupLtMaskARB",     EbvSubGroupLtMask,     symbolTable);
10371|       |
10372|    537|            if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (10372:17): [True: 537, False: 0]
  ------------------
10373|       |                // Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
10374|    537|                SpecialQualifier("gl_SubGroupSizeARB", EvqVaryingIn, EbvSubGroupSize, symbolTable);
10375|    537|                if (language == EShLangFragment)
  ------------------
  |  Branch (10375:21): [True: 0, False: 537]
  ------------------
10376|      0|                    ModifyFlatDecoration("gl_SubGroupSizeARB", true, symbolTable);
10377|    537|            }
10378|      0|            else
10379|      0|                BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
10380|    537|        }
10381|       |
10382|       |        // GL_KHR_shader_subgroup
10383|    685|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10383:14): [True: 148, False: 537]
  |  Branch (10383:39): [True: 148, False: 0]
  ------------------
10384|    685|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (10384:14): [True: 537, False: 0]
  |  Branch (10384:39): [True: 537, False: 0]
  ------------------
10385|    685|            symbolTable.setVariableExtensions("gl_SubgroupSize",         1, &E_GL_KHR_shader_subgroup_basic);
10386|    685|            symbolTable.setVariableExtensions("gl_SubgroupInvocationID", 1, &E_GL_KHR_shader_subgroup_basic);
10387|    685|            symbolTable.setVariableExtensions("gl_SubgroupEqMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10388|    685|            symbolTable.setVariableExtensions("gl_SubgroupGeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10389|    685|            symbolTable.setVariableExtensions("gl_SubgroupGtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10390|    685|            symbolTable.setVariableExtensions("gl_SubgroupLeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10391|    685|            symbolTable.setVariableExtensions("gl_SubgroupLtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10392|       |
10393|    685|            BuiltInVariable("gl_SubgroupSize",         EbvSubgroupSize2,       symbolTable);
10394|    685|            BuiltInVariable("gl_SubgroupInvocationID", EbvSubgroupInvocation2, symbolTable);
10395|    685|            BuiltInVariable("gl_SubgroupEqMask",       EbvSubgroupEqMask2,     symbolTable);
10396|    685|            BuiltInVariable("gl_SubgroupGeMask",       EbvSubgroupGeMask2,     symbolTable);
10397|    685|            BuiltInVariable("gl_SubgroupGtMask",       EbvSubgroupGtMask2,     symbolTable);
10398|    685|            BuiltInVariable("gl_SubgroupLeMask",       EbvSubgroupLeMask2,     symbolTable);
10399|    685|            BuiltInVariable("gl_SubgroupLtMask",       EbvSubgroupLtMask2,     symbolTable);
10400|       |
10401|       |            // GL_NV_shader_sm_builtins
10402|    685|            symbolTable.setVariableExtensions("gl_WarpsPerSMNV",         1, &E_GL_NV_shader_sm_builtins);
10403|    685|            symbolTable.setVariableExtensions("gl_SMCountNV",            1, &E_GL_NV_shader_sm_builtins);
10404|    685|            symbolTable.setVariableExtensions("gl_WarpIDNV",             1, &E_GL_NV_shader_sm_builtins);
10405|    685|            symbolTable.setVariableExtensions("gl_SMIDNV",               1, &E_GL_NV_shader_sm_builtins);
10406|    685|            BuiltInVariable("gl_WarpsPerSMNV",          EbvWarpsPerSM,      symbolTable);
10407|    685|            BuiltInVariable("gl_SMCountNV",             EbvSMCount,         symbolTable);
10408|    685|            BuiltInVariable("gl_WarpIDNV",              EbvWarpID,          symbolTable);
10409|    685|            BuiltInVariable("gl_SMIDNV",                EbvSMID,            symbolTable);
10410|       |
10411|       |            // GL_ARM_shader_core_builtins
10412|    685|            symbolTable.setVariableExtensions("gl_CoreCountARM", 1, &E_GL_ARM_shader_core_builtins);
10413|    685|            symbolTable.setVariableExtensions("gl_CoreIDARM",    1, &E_GL_ARM_shader_core_builtins);
10414|    685|            symbolTable.setVariableExtensions("gl_CoreMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
10415|    685|            symbolTable.setVariableExtensions("gl_WarpIDARM",    1, &E_GL_ARM_shader_core_builtins);
10416|    685|            symbolTable.setVariableExtensions("gl_WarpMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
10417|       |
10418|    685|            BuiltInVariable("gl_CoreCountARM", EbvCoreCountARM, symbolTable);
10419|    685|            BuiltInVariable("gl_CoreIDARM",    EbvCoreIDARM, symbolTable);
10420|    685|            BuiltInVariable("gl_CoreMaxIDARM", EbvCoreMaxIDARM, symbolTable);
10421|    685|            BuiltInVariable("gl_WarpIDARM",    EbvWarpIDARM, symbolTable);
10422|    685|            BuiltInVariable("gl_WarpMaxIDARM", EbvWarpMaxIDARM, symbolTable);
10423|    685|        }
10424|       |
10425|       |        // GL_KHR_shader_subgroup
10426|    685|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10426:14): [True: 148, False: 537]
  |  Branch (10426:39): [True: 148, False: 0]
  ------------------
10427|    685|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (10427:14): [True: 537, False: 0]
  |  Branch (10427:39): [True: 537, False: 0]
  ------------------
10428|    685|            symbolTable.setVariableExtensions("gl_NumSubgroups", 1, &E_GL_KHR_shader_subgroup_basic);
10429|    685|            symbolTable.setVariableExtensions("gl_SubgroupID",   1, &E_GL_KHR_shader_subgroup_basic);
10430|       |
10431|    685|            BuiltInVariable("gl_NumSubgroups", EbvNumSubgroups, symbolTable);
10432|    685|            BuiltInVariable("gl_SubgroupID",   EbvSubgroupID,   symbolTable);
10433|       |
10434|    685|            symbolTable.setFunctionExtensions("subgroupMemoryBarrierShared", 1, &E_GL_KHR_shader_subgroup_basic);
10435|    685|        }
10436|       |
10437|    685|        {
10438|    685|            const char *coopExt[2] = { E_GL_NV_cooperative_matrix, E_GL_NV_integer_cooperative_matrix };
10439|    685|            symbolTable.setFunctionExtensions("coopMatLoadNV",   2, coopExt);
10440|    685|            symbolTable.setFunctionExtensions("coopMatStoreNV",  2, coopExt);
10441|    685|            symbolTable.setFunctionExtensions("coopMatMulAddNV", 2, coopExt);
10442|    685|        }
10443|       |
10444|    685|        {
10445|    685|            auto coopMatKHRCallback = [](const char *name) -> std::vector<const char *> {
10446|    685|                std::vector<const char *> ret;
10447|    685|                if (strstr(name, "u64") != nullptr) {
10448|    685|                    ret.push_back(E_GL_EXT_shader_64bit_indexing);
10449|    685|                } else {
10450|    685|                    ret.push_back(E_GL_KHR_cooperative_matrix);
10451|    685|                }
10452|    685|                return ret;
10453|    685|            };
10454|    685|            auto coopMat2NVCallback = [](const char *name) -> std::vector<const char *> {
10455|    685|                std::vector<const char *> ret;
10456|    685|                if (strstr(name, "u64") != nullptr) {
10457|    685|                    ret.push_back(E_GL_EXT_shader_64bit_indexing);
10458|    685|                } else {
10459|    685|                    ret.push_back(E_GL_NV_cooperative_matrix2);
10460|    685|                }
10461|    685|                return ret;
10462|    685|            };
10463|       |
10464|    685|            symbolTable.setFunctionExtensionsCallback("coopMatLoad",   coopMatKHRCallback);
10465|    685|            symbolTable.setFunctionExtensionsCallback("coopMatStore",  coopMatKHRCallback);
10466|    685|            symbolTable.setFunctionExtensions("coopMatMulAdd", 1, &E_GL_KHR_cooperative_matrix);
10467|       |
10468|    685|            symbolTable.setFunctionExtensionsCallback("coopMatLoadTensorNV",   coopMat2NVCallback);
10469|    685|            symbolTable.setFunctionExtensionsCallback("coopMatStoreTensorNV",   coopMat2NVCallback);
10470|       |
10471|    685|            symbolTable.setFunctionExtensions("coopMatReduceNV",   1, &E_GL_NV_cooperative_matrix2);
10472|    685|            symbolTable.setFunctionExtensions("coopMatPerElementNV",  1, &E_GL_NV_cooperative_matrix2);
10473|    685|            symbolTable.setFunctionExtensions("coopMatTransposeNV",   1, &E_GL_NV_cooperative_matrix2);
10474|       |
10475|    685|            symbolTable.setFunctionExtensions("createTensorLayoutNV",           1, &E_GL_NV_cooperative_matrix2);
10476|    685|            symbolTable.setFunctionExtensions("setTensorLayoutBlockSizeNV",     1, &E_GL_NV_cooperative_matrix2);
10477|    685|            symbolTable.setFunctionExtensions("setTensorLayoutDimensionNV",     1, &E_GL_NV_cooperative_matrix2);
10478|    685|            symbolTable.setFunctionExtensions("setTensorLayoutStrideNV",        1, &E_GL_NV_cooperative_matrix2);
10479|    685|            symbolTable.setFunctionExtensions("sliceTensorLayoutNV",            1, &E_GL_NV_cooperative_matrix2);
10480|    685|            symbolTable.setFunctionExtensions("setTensorLayoutClampValueNV",    1, &E_GL_NV_cooperative_matrix2);
10481|       |
10482|    685|            symbolTable.setFunctionExtensions("createTensorViewNV",             1, &E_GL_NV_cooperative_matrix2);
10483|    685|            symbolTable.setFunctionExtensions("setTensorViewDimensionsNV",      1, &E_GL_NV_cooperative_matrix2);
10484|    685|            symbolTable.setFunctionExtensions("setTensorViewStrideNV",          1, &E_GL_NV_cooperative_matrix2);
10485|    685|            symbolTable.setFunctionExtensions("setTensorViewClipNV",            1, &E_GL_NV_cooperative_matrix2);
10486|    685|        }
10487|       |
10488|    685|        {
10489|    685|            symbolTable.setFunctionExtensions("coopMatReduceEXT",           1, &E_GL_EXT_cooperative_matrix_maintenance1);
10490|    685|            symbolTable.setFunctionExtensions("coopMatPerElementEXT",       1, &E_GL_EXT_cooperative_matrix_maintenance1);
10491|    685|            symbolTable.setFunctionExtensions("coopMatTransposeEXT",        1, &E_GL_EXT_cooperative_matrix_maintenance1);
10492|    685|            symbolTable.setFunctionExtensions("coopMatGetCoordinateEXT",    1, &E_GL_EXT_cooperative_matrix_maintenance1);
10493|    685|        }
10494|       |
10495|    685|        {
10496|    685|            symbolTable.setFunctionExtensions("tensorReadARM",   1, &E_GL_ARM_tensors);
10497|    685|            symbolTable.setFunctionExtensions("tensorWriteARM",  1, &E_GL_ARM_tensors);
10498|    685|            symbolTable.setFunctionExtensions("tensorSizeARM",   1, &E_GL_ARM_tensors);
10499|    685|        }
10500|    685|        {
10501|    685|            auto coopVecCallback = [](const char *name) -> std::vector<const char *> {
10502|    685|                std::vector<const char *> ret;
10503|       |                // This looks for u64 as the last parameter (the offset)
10504|    685|                if (strstr(name, "u641;") != nullptr) {
10505|    685|                    ret.push_back(E_GL_EXT_shader_64bit_indexing);
10506|    685|                } else {
10507|    685|                    ret.push_back(E_GL_NV_cooperative_vector);
10508|    685|                }
10509|    685|                return ret;
10510|    685|            };
10511|    685|            symbolTable.setFunctionExtensionsCallback("coopVecMatMulNV", coopVecCallback);
10512|    685|            symbolTable.setFunctionExtensionsCallback("coopVecMatMulAddNV", coopVecCallback);
10513|    685|            symbolTable.setFunctionExtensionsCallback("coopVecLoadNV", coopVecCallback);
10514|    685|            symbolTable.setFunctionExtensionsCallback("coopVecStoreNV", coopVecCallback);
10515|    685|            symbolTable.setFunctionExtensionsCallback("coopVecOuterProductAccumulateNV", coopVecCallback);
10516|    685|            symbolTable.setFunctionExtensionsCallback("coopVecReduceSumAccumulateNV", coopVecCallback);
10517|    685|        }
10518|       |
10519|    685|        {
10520|    685|          symbolTable.setFunctionExtensions("bitcastQCOM", 1, &E_GL_QCOM_cooperative_matrix_conversion);
10521|    685|          symbolTable.setFunctionExtensions("extractSubArrayQCOM", 1, &E_GL_QCOM_cooperative_matrix_conversion);
10522|    685|          symbolTable.setFunctionExtensions("vectorToCoopmatQCOM", 1, &E_GL_QCOM_cooperative_matrix_conversion);
10523|    685|          symbolTable.setFunctionExtensions("coopmatToVectorQCOM", 1, &E_GL_QCOM_cooperative_matrix_conversion);
10524|    685|        }
10525|       |
10526|    685|        if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (10526:14): [True: 537, False: 148]
  |  Branch (10526:39): [True: 301, False: 236]
  |  Branch (10526:59): [True: 148, False: 236]
  |  Branch (10526:84): [True: 7, False: 141]
  ------------------
10527|    308|            const char* const derivativeExts[] = { E_GL_NV_compute_shader_derivatives, E_GL_KHR_compute_shader_derivatives };
10528|    308|            if (language == EShLangCompute) {
  ------------------
  |  Branch (10528:17): [True: 308, False: 0]
  ------------------
10529|    308|                symbolTable.setFunctionExtensions("dFdx",                   2, derivativeExts);
10530|    308|                symbolTable.setFunctionExtensions("dFdy",                   2, derivativeExts);
10531|    308|                symbolTable.setFunctionExtensions("fwidth",                 2, derivativeExts);
10532|    308|                symbolTable.setFunctionExtensions("dFdxFine",               2, derivativeExts);
10533|    308|                symbolTable.setFunctionExtensions("dFdyFine",               2, derivativeExts);
10534|    308|                symbolTable.setFunctionExtensions("fwidthFine",             2, derivativeExts);
10535|    308|                symbolTable.setFunctionExtensions("dFdxCoarse",             2, derivativeExts);
10536|    308|                symbolTable.setFunctionExtensions("dFdyCoarse",             2, derivativeExts);
10537|    308|                symbolTable.setFunctionExtensions("fwidthCoarse",           2, derivativeExts);
10538|    308|            } else if (language == EShLangTask || language == EShLangMesh) {
  ------------------
  |  Branch (10538:24): [True: 0, False: 0]
  |  Branch (10538:51): [True: 0, False: 0]
  ------------------
10539|      0|                symbolTable.setFunctionExtensions("dFdx",                   1, &E_GL_KHR_compute_shader_derivatives);
10540|      0|                symbolTable.setFunctionExtensions("dFdy",                   1, &E_GL_KHR_compute_shader_derivatives);
10541|      0|                symbolTable.setFunctionExtensions("fwidth",                 1, &E_GL_KHR_compute_shader_derivatives);
10542|      0|                symbolTable.setFunctionExtensions("dFdxFine",               1, &E_GL_KHR_compute_shader_derivatives);
10543|      0|                symbolTable.setFunctionExtensions("dFdyFine",               1, &E_GL_KHR_compute_shader_derivatives);
10544|      0|                symbolTable.setFunctionExtensions("fwidthFine",             1, &E_GL_KHR_compute_shader_derivatives);
10545|      0|                symbolTable.setFunctionExtensions("dFdxCoarse",             1, &E_GL_KHR_compute_shader_derivatives);
10546|      0|                symbolTable.setFunctionExtensions("dFdyCoarse",             1, &E_GL_KHR_compute_shader_derivatives);
10547|      0|                symbolTable.setFunctionExtensions("fwidthCoarse",           1, &E_GL_KHR_compute_shader_derivatives);
10548|      0|            }
10549|    308|        }
10550|       |
10551|    685|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10551:14): [True: 148, False: 537]
  |  Branch (10551:39): [True: 148, False: 0]
  ------------------
10552|    537|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (10552:14): [True: 537, False: 0]
  |  Branch (10552:39): [True: 301, False: 236]
  ------------------
10553|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10554|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10555|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10556|    449|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10557|    449|        }
10558|       |
10559|    685|        if ((profile != EEsProfile && version >= 460)) {
  ------------------
  |  Branch (10559:14): [True: 537, False: 148]
  |  Branch (10559:39): [True: 45, False: 492]
  ------------------
10560|     45|            symbolTable.setFunctionExtensions("fetchMicroTriangleVertexPositionNV", 1, &E_GL_NV_displacement_micromap);
10561|     45|            symbolTable.setFunctionExtensions("fetchMicroTriangleVertexBarycentricNV", 1, &E_GL_NV_displacement_micromap);
10562|     45|        }
10563|       |
10564|       |        // GL_EXT_integer_dot_product
10565|    685|        if ((profile == EEsProfile && version >= 300) ||
  ------------------
  |  Branch (10565:14): [True: 148, False: 537]
  |  Branch (10565:39): [True: 148, False: 0]
  ------------------
10566|    537|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (10566:14): [True: 537, False: 0]
  |  Branch (10566:39): [True: 301, False: 236]
  ------------------
10567|    449|            symbolTable.setFunctionExtensions("dotEXT", 1, &E_GL_EXT_integer_dot_product);
10568|    449|            symbolTable.setFunctionExtensions("dotPacked4x8EXT", 1, &E_GL_EXT_integer_dot_product);
10569|    449|            symbolTable.setFunctionExtensions("dotAccSatEXT", 1, &E_GL_EXT_integer_dot_product);
10570|    449|            symbolTable.setFunctionExtensions("dotPacked4x8AccSatEXT", 1, &E_GL_EXT_integer_dot_product);
10571|    449|        }
10572|       |
10573|    685|        {
10574|    685|            symbolTable.setFunctionExtensions("bfloat16BitsToIntEXT", 1, &E_GL_EXT_bfloat16);
10575|    685|            symbolTable.setFunctionExtensions("bfloat16BitsToUintEXT", 1, &E_GL_EXT_bfloat16);
10576|    685|            symbolTable.setFunctionExtensions("intBitsToBFloat16EXT", 1, &E_GL_EXT_bfloat16);
10577|    685|            symbolTable.setFunctionExtensions("uintBitsToBFloat16EXT", 1, &E_GL_EXT_bfloat16);
10578|       |
10579|    685|            symbolTable.setFunctionExtensions("floate5m2BitsToIntEXT", 1, &E_GL_EXT_float_e5m2);
10580|    685|            symbolTable.setFunctionExtensions("floate5m2BitsToUintEXT", 1, &E_GL_EXT_float_e5m2);
10581|    685|            symbolTable.setFunctionExtensions("intBitsToFloate5m2EXT", 1, &E_GL_EXT_float_e5m2);
10582|    685|            symbolTable.setFunctionExtensions("uintBitsToFloate5m2EXT", 1, &E_GL_EXT_float_e5m2);
10583|       |
10584|    685|            symbolTable.setFunctionExtensions("floate4m3BitsToIntEXT", 1, &E_GL_EXT_float_e4m3);
10585|    685|            symbolTable.setFunctionExtensions("floate4m3BitsToUintEXT", 1, &E_GL_EXT_float_e4m3);
10586|    685|            symbolTable.setFunctionExtensions("intBitsToFloate4m3EXT", 1, &E_GL_EXT_float_e4m3);
10587|    685|            symbolTable.setFunctionExtensions("uintBitsToFloate4m3EXT", 1, &E_GL_EXT_float_e4m3);
10588|       |
10589|    685|            const char *float8exts[] = {E_GL_EXT_float_e5m2, E_GL_EXT_float_e4m3};
10590|    685|            symbolTable.setFunctionExtensions("saturatedConvertEXT", 2, float8exts);
10591|       |
10592|    685|            symbolTable.setFunctionExtensions("floatue8m0BitsToIntEXT", 1, &E_GL_EXT_float_ue8m0);
10593|    685|            symbolTable.setFunctionExtensions("floatue8m0BitsToUintEXT", 1, &E_GL_EXT_float_ue8m0);
10594|    685|            symbolTable.setFunctionExtensions("intBitsToFloatue8m0EXT", 1, &E_GL_EXT_float_ue8m0);
10595|    685|            symbolTable.setFunctionExtensions("uintBitsToFloatue8m0EXT", 1, &E_GL_EXT_float_ue8m0);
10596|       |
10597|    685|            symbolTable.setFunctionExtensions("floatmxint8BitsToIntEXT", 1, &E_GL_EXT_float_mxint8);
10598|    685|            symbolTable.setFunctionExtensions("floatmxint8BitsToUintEXT", 1, &E_GL_EXT_float_mxint8);
10599|    685|            symbolTable.setFunctionExtensions("intBitsToFloatmxint8EXT", 1, &E_GL_EXT_float_mxint8);
10600|    685|            symbolTable.setFunctionExtensions("uintBitsToFloatmxint8EXT", 1, &E_GL_EXT_float_mxint8);
10601|       |
10602|    685|            symbolTable.setFunctionExtensions("unpackFloat2xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10603|    685|            symbolTable.setFunctionExtensions("unpackFloat4xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10604|    685|            symbolTable.setFunctionExtensions("unpackFloat8xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10605|    685|            symbolTable.setFunctionExtensions("unpackFloat16xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10606|    685|            symbolTable.setFunctionExtensions("packFloat2xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10607|    685|            symbolTable.setFunctionExtensions("packFloat4xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10608|    685|            symbolTable.setFunctionExtensions("packFloat8xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10609|    685|            symbolTable.setFunctionExtensions("packFloat16xfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10610|       |
10611|    685|            symbolTable.setFunctionExtensions("unpackFloat4xfe3m2EXT", 1, &E_GL_EXT_float_e3m2);
10612|    685|            symbolTable.setFunctionExtensions("unpackFloat8xfe3m2EXT", 1, &E_GL_EXT_float_e3m2);
10613|    685|            symbolTable.setFunctionExtensions("unpackFloat16xfe3m2EXT", 1, &E_GL_EXT_float_e3m2);
10614|    685|            symbolTable.setFunctionExtensions("packFloat4xfe3m2EXT", 1, &E_GL_EXT_float_e3m2);
10615|    685|            symbolTable.setFunctionExtensions("packFloat8xfe3m2EXT", 1, &E_GL_EXT_float_e3m2);
10616|    685|            symbolTable.setFunctionExtensions("packFloat16xfe3m2EXT", 1, &E_GL_EXT_float_e3m2);
10617|       |
10618|    685|            symbolTable.setFunctionExtensions("unpackFloat4xfe2m3EXT", 1, &E_GL_EXT_float_e2m3);
10619|    685|            symbolTable.setFunctionExtensions("unpackFloat8xfe2m3EXT", 1, &E_GL_EXT_float_e2m3);
10620|    685|            symbolTable.setFunctionExtensions("unpackFloat16xfe2m3EXT", 1, &E_GL_EXT_float_e2m3);
10621|    685|            symbolTable.setFunctionExtensions("packFloat4xfe2m3EXT", 1, &E_GL_EXT_float_e2m3);
10622|    685|            symbolTable.setFunctionExtensions("packFloat8xfe2m3EXT", 1, &E_GL_EXT_float_e2m3);
10623|    685|            symbolTable.setFunctionExtensions("packFloat16xfe2m3EXT", 1, &E_GL_EXT_float_e2m3);
10624|       |
10625|    685|            symbolTable.setFunctionExtensions("bitcastExtractfe2m1EXT", 1, &E_GL_EXT_float_e2m1);
10626|    685|            symbolTable.setFunctionExtensions("bitcastExtractfe3m2EXT", 1, &E_GL_EXT_float_e3m2);
10627|    685|            symbolTable.setFunctionExtensions("bitcastExtractfe2m3EXT", 1, &E_GL_EXT_float_e2m3);
10628|    685|        }
10629|       |
10630|       |        // E_SPV_QCOM_tile_shading
10631|    685|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10631:14): [True: 148, False: 537]
  |  Branch (10631:39): [True: 148, False: 0]
  ------------------
10632|    537|            (profile != EEsProfile && version >= 460)) {
  ------------------
  |  Branch (10632:14): [True: 537, False: 0]
  |  Branch (10632:39): [True: 45, False: 492]
  ------------------
10633|    193|            BuiltInVariable("gl_TileOffsetQCOM",        EbvTileOffsetQCOM,      symbolTable);
10634|    193|            BuiltInVariable("gl_TileDimensionQCOM",     EbvTileDimensionQCOM,   symbolTable);
10635|    193|            BuiltInVariable("gl_TileApronSizeQCOM",     EbvTileApronSizeQCOM,   symbolTable);
10636|       |
10637|    193|            symbolTable.setVariableExtensions("gl_TileOffsetQCOM",        1, &E_GL_QCOM_tile_shading);
10638|    193|            symbolTable.setVariableExtensions("gl_TileDimensionQCOM",     1, &E_GL_QCOM_tile_shading);
10639|    193|            symbolTable.setVariableExtensions("gl_TileApronSizeQCOM",     1, &E_GL_QCOM_tile_shading);
10640|    193|        }
10641|    685|        break;
10642|       |
10643|    301|    case EShLangRayGen:
  ------------------
  |  Branch (10643:5): [True: 301, False: 8.35k]
  ------------------
10644|    602|    case EShLangIntersect:
  ------------------
  |  Branch (10644:5): [True: 301, False: 8.35k]
  ------------------
10645|    903|    case EShLangAnyHit:
  ------------------
  |  Branch (10645:5): [True: 301, False: 8.35k]
  ------------------
10646|  1.20k|    case EShLangClosestHit:
  ------------------
  |  Branch (10646:5): [True: 301, False: 8.35k]
  ------------------
10647|  1.50k|    case EShLangMiss:
  ------------------
  |  Branch (10647:5): [True: 301, False: 8.35k]
  ------------------
10648|  1.80k|    case EShLangCallable:
  ------------------
  |  Branch (10648:5): [True: 301, False: 8.35k]
  ------------------
10649|  1.80k|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (10649:13): [True: 1.80k, False: 0]
  |  Branch (10649:38): [True: 270, False: 1.53k]
  ------------------
10650|    270|            const char *rtexts[] = { E_GL_NV_ray_tracing, E_GL_EXT_ray_tracing };
10651|    270|            symbolTable.setVariableExtensions("gl_LaunchIDNV", 1, &E_GL_NV_ray_tracing);
10652|    270|            symbolTable.setVariableExtensions("gl_LaunchIDEXT", 1, &E_GL_EXT_ray_tracing);
10653|    270|            symbolTable.setVariableExtensions("gl_LaunchSizeNV", 1, &E_GL_NV_ray_tracing);
10654|    270|            symbolTable.setVariableExtensions("gl_LaunchSizeEXT", 1, &E_GL_EXT_ray_tracing);
10655|    270|            symbolTable.setVariableExtensions("gl_PrimitiveID", 2, rtexts);
10656|    270|            symbolTable.setVariableExtensions("gl_InstanceID", 2, rtexts);
10657|    270|            symbolTable.setVariableExtensions("gl_InstanceCustomIndexNV", 1, &E_GL_NV_ray_tracing);
10658|    270|            symbolTable.setVariableExtensions("gl_InstanceCustomIndexEXT", 1, &E_GL_EXT_ray_tracing);
10659|    270|            symbolTable.setVariableExtensions("gl_GeometryIndexEXT", 1, &E_GL_EXT_ray_tracing);
10660|    270|            symbolTable.setVariableExtensions("gl_WorldRayOriginNV", 1, &E_GL_NV_ray_tracing);
10661|    270|            symbolTable.setVariableExtensions("gl_WorldRayOriginEXT", 1, &E_GL_EXT_ray_tracing);
10662|    270|            symbolTable.setVariableExtensions("gl_WorldRayDirectionNV", 1, &E_GL_NV_ray_tracing);
10663|    270|            symbolTable.setVariableExtensions("gl_WorldRayDirectionEXT", 1, &E_GL_EXT_ray_tracing);
10664|    270|            symbolTable.setVariableExtensions("gl_ObjectRayOriginNV", 1, &E_GL_NV_ray_tracing);
10665|    270|            symbolTable.setVariableExtensions("gl_ObjectRayOriginEXT", 1, &E_GL_EXT_ray_tracing);
10666|    270|            symbolTable.setVariableExtensions("gl_ObjectRayDirectionNV", 1, &E_GL_NV_ray_tracing);
10667|    270|            symbolTable.setVariableExtensions("gl_ObjectRayDirectionEXT", 1, &E_GL_EXT_ray_tracing);
10668|    270|            symbolTable.setVariableExtensions("gl_RayTminNV", 1, &E_GL_NV_ray_tracing);
10669|    270|            symbolTable.setVariableExtensions("gl_RayTminEXT", 1, &E_GL_EXT_ray_tracing);
10670|    270|            symbolTable.setVariableExtensions("gl_RayTmaxNV", 1, &E_GL_NV_ray_tracing);
10671|    270|            symbolTable.setVariableExtensions("gl_RayTmaxEXT", 1, &E_GL_EXT_ray_tracing);
10672|    270|            symbolTable.setVariableExtensions("gl_CullMaskEXT", 1, &E_GL_EXT_ray_cull_mask);
10673|    270|            symbolTable.setVariableExtensions("gl_HitTNV", 1, &E_GL_NV_ray_tracing);
10674|    270|            symbolTable.setVariableExtensions("gl_HitTEXT", 1, &E_GL_EXT_ray_tracing);
10675|    270|            symbolTable.setVariableExtensions("gl_HitKindNV", 1, &E_GL_NV_ray_tracing);
10676|    270|            symbolTable.setVariableExtensions("gl_HitKindEXT", 1, &E_GL_EXT_ray_tracing);
10677|    270|            symbolTable.setVariableExtensions("gl_ObjectToWorldNV", 1, &E_GL_NV_ray_tracing);
10678|    270|            symbolTable.setVariableExtensions("gl_ObjectToWorldEXT", 1, &E_GL_EXT_ray_tracing);
10679|    270|            symbolTable.setVariableExtensions("gl_ObjectToWorld3x4EXT", 1, &E_GL_EXT_ray_tracing);
10680|    270|            symbolTable.setVariableExtensions("gl_WorldToObjectNV", 1, &E_GL_NV_ray_tracing);
10681|    270|            symbolTable.setVariableExtensions("gl_WorldToObjectEXT", 1, &E_GL_EXT_ray_tracing);
10682|    270|            symbolTable.setVariableExtensions("gl_WorldToObject3x4EXT", 1, &E_GL_EXT_ray_tracing);
10683|    270|            symbolTable.setVariableExtensions("gl_IncomingRayFlagsNV", 1, &E_GL_NV_ray_tracing);
10684|    270|            symbolTable.setVariableExtensions("gl_IncomingRayFlagsEXT", 1, &E_GL_EXT_ray_tracing);
10685|    270|            symbolTable.setVariableExtensions("gl_CurrentRayTimeNV", 1, &E_GL_NV_ray_tracing_motion_blur);
10686|    270|            symbolTable.setVariableExtensions("gl_HitTriangleVertexPositionsEXT", 1, &E_GL_EXT_ray_tracing_position_fetch);
10687|    270|            symbolTable.setVariableExtensions("gl_HitMicroTriangleVertexPositionsNV", 1, &E_GL_NV_displacement_micromap);
10688|    270|            symbolTable.setVariableExtensions("gl_HitMicroTriangleVertexBarycentricsNV", 1, &E_GL_NV_displacement_micromap);
10689|    270|            symbolTable.setVariableExtensions("gl_ClusterIDNV", 1, &E_GL_NV_cluster_acceleration_structure);
10690|    270|            symbolTable.setVariableExtensions("gl_HitKindSphereNV", 1, &E_GL_NV_linear_swept_spheres);
10691|    270|            symbolTable.setVariableExtensions("gl_HitKindLSSNV", 1, &E_GL_NV_linear_swept_spheres);
10692|    270|            symbolTable.setVariableExtensions("gl_HitSpherePositionNV", 1, &E_GL_NV_linear_swept_spheres);
10693|    270|            symbolTable.setVariableExtensions("gl_HitSphereRadiusNV", 1, &E_GL_NV_linear_swept_spheres);
10694|    270|            symbolTable.setVariableExtensions("gl_HitLSSPositionNV", 1, &E_GL_NV_linear_swept_spheres);
10695|    270|            symbolTable.setVariableExtensions("gl_HitLSSRadiiNV", 1, &E_GL_NV_linear_swept_spheres);
10696|       |
10697|    270|            symbolTable.setVariableExtensions("gl_DeviceIndex", 1, &E_GL_EXT_device_group);
10698|       |
10699|       |
10700|    270|            symbolTable.setFunctionExtensions("traceNV", 1, &E_GL_NV_ray_tracing);
10701|    270|            symbolTable.setFunctionExtensions("traceRayMotionNV", 1, &E_GL_NV_ray_tracing_motion_blur);
10702|    270|            symbolTable.setFunctionExtensions("traceRayEXT", 1, &E_GL_EXT_ray_tracing);
10703|    270|            symbolTable.setFunctionExtensions("reportIntersectionNV", 1, &E_GL_NV_ray_tracing);
10704|    270|            symbolTable.setFunctionExtensions("reportIntersectionEXT", 1, &E_GL_EXT_ray_tracing);
10705|    270|            symbolTable.setFunctionExtensions("ignoreIntersectionNV", 1, &E_GL_NV_ray_tracing);
10706|    270|            symbolTable.setFunctionExtensions("terminateRayNV", 1, &E_GL_NV_ray_tracing);
10707|    270|            symbolTable.setFunctionExtensions("executeCallableNV", 1, &E_GL_NV_ray_tracing);
10708|    270|            symbolTable.setFunctionExtensions("executeCallableEXT", 1, &E_GL_EXT_ray_tracing);
10709|       |
10710|    270|            symbolTable.setFunctionExtensions("hitObjectTraceRayNV", 1, &E_GL_NV_shader_invocation_reorder);
10711|    270|            symbolTable.setFunctionExtensions("hitObjectTraceRayMotionNV", 1, &E_GL_NV_shader_invocation_reorder);
10712|    270|            symbolTable.setFunctionExtensions("hitObjectRecordHitNV", 1, &E_GL_NV_shader_invocation_reorder);
10713|    270|            symbolTable.setFunctionExtensions("hitObjectRecordHitMotionNV", 1, &E_GL_NV_shader_invocation_reorder);
10714|    270|            symbolTable.setFunctionExtensions("hitObjectRecordHitWithIndexNV", 1, &E_GL_NV_shader_invocation_reorder);
10715|    270|            symbolTable.setFunctionExtensions("hitObjectRecordHitWithIndexMotionNV", 1, &E_GL_NV_shader_invocation_reorder);
10716|    270|            symbolTable.setFunctionExtensions("hitObjectRecordMissNV", 1, &E_GL_NV_shader_invocation_reorder);
10717|    270|            symbolTable.setFunctionExtensions("hitObjectRecordMissMotionNV", 1, &E_GL_NV_shader_invocation_reorder);
10718|    270|            symbolTable.setFunctionExtensions("hitObjectRecordEmptyNV", 1, &E_GL_NV_shader_invocation_reorder);
10719|    270|            symbolTable.setFunctionExtensions("hitObjectExecuteShaderNV", 1, &E_GL_NV_shader_invocation_reorder);
10720|    270|            symbolTable.setFunctionExtensions("hitObjectIsEmptyNV", 1, &E_GL_NV_shader_invocation_reorder);
10721|    270|            symbolTable.setFunctionExtensions("hitObjectIsMissNV", 1, &E_GL_NV_shader_invocation_reorder);
10722|    270|            symbolTable.setFunctionExtensions("hitObjectIsHitNV", 1, &E_GL_NV_shader_invocation_reorder);
10723|    270|            symbolTable.setFunctionExtensions("hitObjectGetRayTMinNV", 1, &E_GL_NV_shader_invocation_reorder);
10724|    270|            symbolTable.setFunctionExtensions("hitObjectGetRayTMaxNV", 1, &E_GL_NV_shader_invocation_reorder);
10725|    270|            symbolTable.setFunctionExtensions("hitObjectGetObjectRayOriginNV", 1, &E_GL_NV_shader_invocation_reorder);
10726|    270|            symbolTable.setFunctionExtensions("hitObjectGetObjectRayDirectionNV", 1, &E_GL_NV_shader_invocation_reorder);
10727|    270|            symbolTable.setFunctionExtensions("hitObjectGetWorldRayOriginNV", 1, &E_GL_NV_shader_invocation_reorder);
10728|    270|            symbolTable.setFunctionExtensions("hitObjectGetWorldRayDirectionNV", 1, &E_GL_NV_shader_invocation_reorder);
10729|    270|            symbolTable.setFunctionExtensions("hitObjectGetWorldToObjectNV", 1, &E_GL_NV_shader_invocation_reorder);
10730|    270|            symbolTable.setFunctionExtensions("hitObjectGetbjectToWorldNV", 1, &E_GL_NV_shader_invocation_reorder);
10731|    270|            symbolTable.setFunctionExtensions("hitObjectGetInstanceCustomIndexNV", 1, &E_GL_NV_shader_invocation_reorder);
10732|    270|            symbolTable.setFunctionExtensions("hitObjectGetInstanceIdNV", 1, &E_GL_NV_shader_invocation_reorder);
10733|    270|            symbolTable.setFunctionExtensions("hitObjectGetGeometryIndexNV", 1, &E_GL_NV_shader_invocation_reorder);
10734|    270|            symbolTable.setFunctionExtensions("hitObjectGetPrimitiveIndexNV", 1, &E_GL_NV_shader_invocation_reorder);
10735|    270|            symbolTable.setFunctionExtensions("hitObjectGetHitKindNV", 1, &E_GL_NV_shader_invocation_reorder);
10736|    270|            symbolTable.setFunctionExtensions("hitObjectGetAttributesNV", 1, &E_GL_NV_shader_invocation_reorder);
10737|    270|            symbolTable.setFunctionExtensions("hitObjectGetCurrentTimeNV", 1, &E_GL_NV_shader_invocation_reorder);
10738|    270|            symbolTable.setFunctionExtensions("hitObjectGetShaderBindingTableRecordIndexNV", 1, &E_GL_NV_shader_invocation_reorder);
10739|    270|            symbolTable.setFunctionExtensions("hitObjectGetShaderRecordBufferHandleNV", 1, &E_GL_NV_shader_invocation_reorder);
10740|    270|            symbolTable.setFunctionExtensions("hitObjectGetClusterIdNV", 1, &E_GL_NV_cluster_acceleration_structure);
10741|    270|            symbolTable.setFunctionExtensions("reorderThreadNV", 1, &E_GL_NV_shader_invocation_reorder);
10742|    270|            symbolTable.setFunctionExtensions("fetchMicroTriangleVertexPositionNV", 1, &E_GL_NV_displacement_micromap);
10743|    270|            symbolTable.setFunctionExtensions("fetchMicroTriangleVertexBarycentricNV", 1, &E_GL_NV_displacement_micromap);
10744|    270|            symbolTable.setFunctionExtensions("hitObjectGetSpherePositionNV", 1, &E_GL_NV_linear_swept_spheres);
10745|    270|            symbolTable.setFunctionExtensions("hitObjectGetSphereRadiusNV", 1, &E_GL_NV_linear_swept_spheres);
10746|    270|            symbolTable.setFunctionExtensions("hitObjectGetLSSPositionsNV", 1, &E_GL_NV_linear_swept_spheres);
10747|    270|            symbolTable.setFunctionExtensions("hitObjectGetLSSRadiiNV", 1, &E_GL_NV_linear_swept_spheres);
10748|    270|            symbolTable.setFunctionExtensions("hitObjectIsSphereHitNV", 1, &E_GL_NV_linear_swept_spheres);
10749|    270|            symbolTable.setFunctionExtensions("hitObjectIsLSSHitNV", 1, &E_GL_NV_linear_swept_spheres);
10750|    270|            symbolTable.setFunctionExtensions("hitObjectTraceRayEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10751|    270|            symbolTable.setFunctionExtensions("hitObjectTraceRayMotionEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10752|    270|            symbolTable.setFunctionExtensions("hitObjectRecordMissEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10753|    270|            symbolTable.setFunctionExtensions("hitObjectRecordMissMotionEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10754|    270|            symbolTable.setFunctionExtensions("hitObjectRecordEmptyEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10755|    270|            symbolTable.setFunctionExtensions("hitObjectExecuteShaderEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10756|    270|            symbolTable.setFunctionExtensions("hitObjectIsEmptyEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10757|    270|            symbolTable.setFunctionExtensions("hitObjectIsMissEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10758|    270|            symbolTable.setFunctionExtensions("hitObjectIsHitEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10759|    270|            symbolTable.setFunctionExtensions("hitObjectGetRayTMinEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10760|    270|            symbolTable.setFunctionExtensions("hitObjectGetRayTMaxEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10761|    270|            symbolTable.setFunctionExtensions("hitObjectGetRayFlagsEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10762|    270|            symbolTable.setFunctionExtensions("hitObjectGetObjectRayOriginEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10763|    270|            symbolTable.setFunctionExtensions("hitObjectGetObjectRayDirectionEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10764|    270|            symbolTable.setFunctionExtensions("hitObjectGetWorldRayOriginEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10765|    270|            symbolTable.setFunctionExtensions("hitObjectGetWorldRayDirectionEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10766|    270|            symbolTable.setFunctionExtensions("hitObjectGetWorldToObjectEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10767|    270|            symbolTable.setFunctionExtensions("hitObjectGetObjectToWorldEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10768|    270|            symbolTable.setFunctionExtensions("hitObjectGetInstanceCustomIndexEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10769|    270|            symbolTable.setFunctionExtensions("hitObjectGetInstanceIdEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10770|    270|            symbolTable.setFunctionExtensions("hitObjectGetGeometryIndexEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10771|    270|            symbolTable.setFunctionExtensions("hitObjectGetPrimitiveIndexEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10772|    270|            symbolTable.setFunctionExtensions("hitObjectGetHitKindEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10773|    270|            symbolTable.setFunctionExtensions("hitObjectGetAttributesEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10774|    270|            symbolTable.setFunctionExtensions("hitObjectGetCurrentTimeEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10775|    270|            symbolTable.setFunctionExtensions("hitObjectGetShaderBindingTableRecordIndexEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10776|    270|            symbolTable.setFunctionExtensions("hitObjectGetShaderRecordBufferHandleEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10777|    270|            symbolTable.setFunctionExtensions("hitObjectSetShaderBindingTableRecordIndexEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10778|    270|            symbolTable.setFunctionExtensions("reorderThreadEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10779|    270|            symbolTable.setFunctionExtensions("hitObjectReorderExecuteEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10780|    270|            symbolTable.setFunctionExtensions("hitObjectTraceReorderExecuteEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10781|    270|            symbolTable.setFunctionExtensions("hitObjectTraceMotionReorderExecuteEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10782|    270|            symbolTable.setFunctionExtensions("hitObjectRecordFromQueryEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10783|    270|            symbolTable.setFunctionExtensions("hitObjectGetIntersectionTriangleVertexPositionsEXT", 1, &E_GL_EXT_shader_invocation_reorder);
10784|       |
10785|       |
10786|    270|            BuiltInVariable("gl_LaunchIDNV",             EbvLaunchId,           symbolTable);
10787|    270|            BuiltInVariable("gl_LaunchIDEXT",            EbvLaunchId,           symbolTable);
10788|    270|            BuiltInVariable("gl_LaunchSizeNV",           EbvLaunchSize,         symbolTable);
10789|    270|            BuiltInVariable("gl_LaunchSizeEXT",          EbvLaunchSize,         symbolTable);
10790|    270|            BuiltInVariable("gl_PrimitiveID",            EbvPrimitiveId,        symbolTable);
10791|    270|            BuiltInVariable("gl_InstanceID",             EbvInstanceId,         symbolTable);
10792|    270|            BuiltInVariable("gl_InstanceCustomIndexNV",  EbvInstanceCustomIndex,symbolTable);
10793|    270|            BuiltInVariable("gl_InstanceCustomIndexEXT", EbvInstanceCustomIndex,symbolTable);
10794|    270|            BuiltInVariable("gl_GeometryIndexEXT",       EbvGeometryIndex,      symbolTable);
10795|    270|            BuiltInVariable("gl_WorldRayOriginNV",       EbvWorldRayOrigin,     symbolTable);
10796|    270|            BuiltInVariable("gl_WorldRayOriginEXT",      EbvWorldRayOrigin,     symbolTable);
10797|    270|            BuiltInVariable("gl_WorldRayDirectionNV",    EbvWorldRayDirection,  symbolTable);
10798|    270|            BuiltInVariable("gl_WorldRayDirectionEXT",   EbvWorldRayDirection,  symbolTable);
10799|    270|            BuiltInVariable("gl_ObjectRayOriginNV",      EbvObjectRayOrigin,    symbolTable);
10800|    270|            BuiltInVariable("gl_ObjectRayOriginEXT",     EbvObjectRayOrigin,    symbolTable);
10801|    270|            BuiltInVariable("gl_ObjectRayDirectionNV",   EbvObjectRayDirection, symbolTable);
10802|    270|            BuiltInVariable("gl_ObjectRayDirectionEXT",  EbvObjectRayDirection, symbolTable);
10803|    270|            BuiltInVariable("gl_RayTminNV",              EbvRayTmin,            symbolTable);
10804|    270|            BuiltInVariable("gl_RayTminEXT",             EbvRayTmin,            symbolTable);
10805|    270|            BuiltInVariable("gl_RayTmaxNV",              EbvRayTmax,            symbolTable);
10806|    270|            BuiltInVariable("gl_RayTmaxEXT",             EbvRayTmax,            symbolTable);
10807|    270|            BuiltInVariable("gl_CullMaskEXT",            EbvCullMask,           symbolTable);
10808|    270|            BuiltInVariable("gl_HitKindNV",              EbvHitKind,            symbolTable);
10809|    270|            BuiltInVariable("gl_HitKindEXT",             EbvHitKind,            symbolTable);
10810|    270|            BuiltInVariable("gl_ObjectToWorldNV",        EbvObjectToWorld,      symbolTable);
10811|    270|            BuiltInVariable("gl_ObjectToWorldEXT",       EbvObjectToWorld,      symbolTable);
10812|    270|            BuiltInVariable("gl_ObjectToWorld3x4EXT",    EbvObjectToWorld3x4,   symbolTable);
10813|    270|            BuiltInVariable("gl_WorldToObjectNV",        EbvWorldToObject,      symbolTable);
10814|    270|            BuiltInVariable("gl_WorldToObjectEXT",       EbvWorldToObject,      symbolTable);
10815|    270|            BuiltInVariable("gl_WorldToObject3x4EXT",    EbvWorldToObject3x4,   symbolTable);
10816|    270|            BuiltInVariable("gl_IncomingRayFlagsNV",     EbvIncomingRayFlags,   symbolTable);
10817|    270|            BuiltInVariable("gl_IncomingRayFlagsEXT",    EbvIncomingRayFlags,   symbolTable);
10818|    270|            BuiltInVariable("gl_DeviceIndex",            EbvDeviceIndex,        symbolTable);
10819|    270|            BuiltInVariable("gl_CurrentRayTimeNV",       EbvCurrentRayTimeNV,   symbolTable);
10820|    270|            BuiltInVariable("gl_HitTriangleVertexPositionsEXT", EbvPositionFetch, symbolTable);
10821|    270|            BuiltInVariable("gl_HitMicroTriangleVertexPositionsNV", EbvMicroTrianglePositionNV, symbolTable);
10822|    270|            BuiltInVariable("gl_HitMicroTriangleVertexBarycentricsNV", EbvMicroTriangleBaryNV, symbolTable);
10823|    270|            BuiltInVariable("gl_HitKindFrontFacingMicroTriangleNV", EbvHitKindFrontFacingMicroTriangleNV, symbolTable);
10824|    270|            BuiltInVariable("gl_HitKindBackFacingMicroTriangleNV", EbvHitKindBackFacingMicroTriangleNV, symbolTable);
10825|    270|            BuiltInVariable("gl_ClusterIDNV",            EbvClusterIDNV,         symbolTable);
10826|    270|            BuiltInVariable("gl_HitIsSphereNV", EbvHitIsSphereNV, symbolTable);
10827|    270|            BuiltInVariable("gl_HitIsLSSNV", EbvHitIsLSSNV, symbolTable);
10828|    270|            BuiltInVariable("gl_HitSpherePositionNV", EbvHitSpherePositionNV, symbolTable);
10829|    270|            BuiltInVariable("gl_HitSphereRadiusNV", EbvHitSphereRadiusNV, symbolTable);
10830|    270|            BuiltInVariable("gl_HitLSSPositionsNV", EbvHitLSSPositionsNV, symbolTable);
10831|    270|            BuiltInVariable("gl_HitLSSRadiiNV", EbvHitLSSRadiiNV, symbolTable);
10832|       |
10833|       |            // gl_HitT variables are aliases of their gl_RayTmax counterparts.
10834|    270|            RetargetVariable("gl_HitTNV",                "gl_RayTmaxNV",        symbolTable);
10835|    270|            RetargetVariable("gl_HitTEXT",               "gl_RayTmaxEXT",       symbolTable);
10836|       |
10837|       |            // GL_ARB_shader_ballot
10838|    270|            symbolTable.setVariableExtensions("gl_SubGroupSizeARB",       1, &E_GL_ARB_shader_ballot);
10839|    270|            symbolTable.setVariableExtensions("gl_SubGroupInvocationARB", 1, &E_GL_ARB_shader_ballot);
10840|    270|            symbolTable.setVariableExtensions("gl_SubGroupEqMaskARB",     1, &E_GL_ARB_shader_ballot);
10841|    270|            symbolTable.setVariableExtensions("gl_SubGroupGeMaskARB",     1, &E_GL_ARB_shader_ballot);
10842|    270|            symbolTable.setVariableExtensions("gl_SubGroupGtMaskARB",     1, &E_GL_ARB_shader_ballot);
10843|    270|            symbolTable.setVariableExtensions("gl_SubGroupLeMaskARB",     1, &E_GL_ARB_shader_ballot);
10844|    270|            symbolTable.setVariableExtensions("gl_SubGroupLtMaskARB",     1, &E_GL_ARB_shader_ballot);
10845|       |
10846|    270|            BuiltInVariable("gl_SubGroupInvocationARB", EbvSubGroupInvocation, symbolTable);
10847|    270|            BuiltInVariable("gl_SubGroupEqMaskARB",     EbvSubGroupEqMask,     symbolTable);
10848|    270|            BuiltInVariable("gl_SubGroupGeMaskARB",     EbvSubGroupGeMask,     symbolTable);
10849|    270|            BuiltInVariable("gl_SubGroupGtMaskARB",     EbvSubGroupGtMask,     symbolTable);
10850|    270|            BuiltInVariable("gl_SubGroupLeMaskARB",     EbvSubGroupLeMask,     symbolTable);
10851|    270|            BuiltInVariable("gl_SubGroupLtMaskARB",     EbvSubGroupLtMask,     symbolTable);
10852|       |
10853|    270|            if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (10853:17): [True: 270, False: 0]
  ------------------
10854|       |                // Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
10855|    270|                SpecialQualifier("gl_SubGroupSizeARB", EvqVaryingIn, EbvSubGroupSize, symbolTable);
10856|    270|                if (language == EShLangFragment)
  ------------------
  |  Branch (10856:21): [True: 0, False: 270]
  ------------------
10857|      0|                    ModifyFlatDecoration("gl_SubGroupSizeARB", true, symbolTable);
10858|    270|            }
10859|      0|            else
10860|      0|                BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
10861|       |
10862|       |            // GL_KHR_shader_subgroup
10863|    270|            symbolTable.setVariableExtensions("gl_NumSubgroups",         1, &E_GL_KHR_shader_subgroup_basic);
10864|    270|            symbolTable.setVariableExtensions("gl_SubgroupID",           1, &E_GL_KHR_shader_subgroup_basic);
10865|    270|            symbolTable.setVariableExtensions("gl_SubgroupSize",         1, &E_GL_KHR_shader_subgroup_basic);
10866|    270|            symbolTable.setVariableExtensions("gl_SubgroupInvocationID", 1, &E_GL_KHR_shader_subgroup_basic);
10867|    270|            symbolTable.setVariableExtensions("gl_SubgroupEqMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10868|    270|            symbolTable.setVariableExtensions("gl_SubgroupGeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10869|    270|            symbolTable.setVariableExtensions("gl_SubgroupGtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10870|    270|            symbolTable.setVariableExtensions("gl_SubgroupLeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10871|    270|            symbolTable.setVariableExtensions("gl_SubgroupLtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
10872|       |
10873|    270|            BuiltInVariable("gl_NumSubgroups",         EbvNumSubgroups,        symbolTable);
10874|    270|            BuiltInVariable("gl_SubgroupID",           EbvSubgroupID,          symbolTable);
10875|    270|            BuiltInVariable("gl_SubgroupSize",         EbvSubgroupSize2,       symbolTable);
10876|    270|            BuiltInVariable("gl_SubgroupInvocationID", EbvSubgroupInvocation2, symbolTable);
10877|    270|            BuiltInVariable("gl_SubgroupEqMask",       EbvSubgroupEqMask2,     symbolTable);
10878|    270|            BuiltInVariable("gl_SubgroupGeMask",       EbvSubgroupGeMask2,     symbolTable);
10879|    270|            BuiltInVariable("gl_SubgroupGtMask",       EbvSubgroupGtMask2,     symbolTable);
10880|    270|            BuiltInVariable("gl_SubgroupLeMask",       EbvSubgroupLeMask2,     symbolTable);
10881|    270|            BuiltInVariable("gl_SubgroupLtMask",       EbvSubgroupLtMask2,     symbolTable);
10882|       |
10883|       |            // GL_NV_shader_sm_builtins
10884|    270|            symbolTable.setVariableExtensions("gl_WarpsPerSMNV",         1, &E_GL_NV_shader_sm_builtins);
10885|    270|            symbolTable.setVariableExtensions("gl_SMCountNV",            1, &E_GL_NV_shader_sm_builtins);
10886|    270|            symbolTable.setVariableExtensions("gl_WarpIDNV",             1, &E_GL_NV_shader_sm_builtins);
10887|    270|            symbolTable.setVariableExtensions("gl_SMIDNV",               1, &E_GL_NV_shader_sm_builtins);
10888|    270|            BuiltInVariable("gl_WarpsPerSMNV",          EbvWarpsPerSM,      symbolTable);
10889|    270|            BuiltInVariable("gl_SMCountNV",             EbvSMCount,         symbolTable);
10890|    270|            BuiltInVariable("gl_WarpIDNV",              EbvWarpID,          symbolTable);
10891|    270|            BuiltInVariable("gl_SMIDNV",                EbvSMID,            symbolTable);
10892|       |
10893|       |            // GL_ARM_shader_core_builtins
10894|    270|            symbolTable.setVariableExtensions("gl_CoreCountARM", 1, &E_GL_ARM_shader_core_builtins);
10895|    270|            symbolTable.setVariableExtensions("gl_CoreIDARM",    1, &E_GL_ARM_shader_core_builtins);
10896|    270|            symbolTable.setVariableExtensions("gl_CoreMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
10897|    270|            symbolTable.setVariableExtensions("gl_WarpIDARM",    1, &E_GL_ARM_shader_core_builtins);
10898|    270|            symbolTable.setVariableExtensions("gl_WarpMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
10899|       |
10900|    270|            BuiltInVariable("gl_CoreCountARM", EbvCoreCountARM, symbolTable);
10901|    270|            BuiltInVariable("gl_CoreIDARM",    EbvCoreIDARM, symbolTable);
10902|    270|            BuiltInVariable("gl_CoreMaxIDARM", EbvCoreMaxIDARM, symbolTable);
10903|    270|            BuiltInVariable("gl_WarpIDARM",    EbvWarpIDARM, symbolTable);
10904|    270|            BuiltInVariable("gl_WarpMaxIDARM", EbvWarpMaxIDARM, symbolTable);
10905|    270|        }
10906|  1.80k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (10906:14): [True: 0, False: 1.80k]
  |  Branch (10906:39): [True: 0, False: 0]
  ------------------
10907|  1.80k|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (10907:14): [True: 1.80k, False: 0]
  |  Branch (10907:39): [True: 1.80k, False: 0]
  ------------------
10908|  1.80k|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10909|  1.80k|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10910|  1.80k|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10911|  1.80k|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
10912|  1.80k|        }
10913|  1.80k|        break;
10914|       |
10915|    308|    case EShLangMesh:
  ------------------
  |  Branch (10915:5): [True: 308, False: 8.35k]
  ------------------
10916|    308|        if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (10916:14): [True: 301, False: 7]
  |  Branch (10916:39): [True: 301, False: 0]
  |  Branch (10916:59): [True: 7, False: 0]
  |  Branch (10916:84): [True: 7, False: 0]
  ------------------
10917|       |            // per-vertex builtins
10918|    308|            symbolTable.setVariableExtensions("gl_MeshVerticesNV", "gl_Position",     1, &E_GL_NV_mesh_shader);
10919|    308|            symbolTable.setVariableExtensions("gl_MeshVerticesNV", "gl_PointSize",    1, &E_GL_NV_mesh_shader);
10920|    308|            symbolTable.setVariableExtensions("gl_MeshVerticesNV", "gl_ClipDistance", 1, &E_GL_NV_mesh_shader);
10921|    308|            symbolTable.setVariableExtensions("gl_MeshVerticesNV", "gl_CullDistance", 1, &E_GL_NV_mesh_shader);
10922|       |
10923|    308|            BuiltInVariable("gl_MeshVerticesNV", "gl_Position",     EbvPosition,     symbolTable);
10924|    308|            BuiltInVariable("gl_MeshVerticesNV", "gl_PointSize",    EbvPointSize,    symbolTable);
10925|    308|            BuiltInVariable("gl_MeshVerticesNV", "gl_ClipDistance", EbvClipDistance, symbolTable);
10926|    308|            BuiltInVariable("gl_MeshVerticesNV", "gl_CullDistance", EbvCullDistance, symbolTable);
10927|       |
10928|    308|            symbolTable.setVariableExtensions("gl_MeshVerticesNV", "gl_PositionPerViewNV",     1, &E_GL_NV_mesh_shader);
10929|    308|            symbolTable.setVariableExtensions("gl_MeshVerticesNV", "gl_ClipDistancePerViewNV", 1, &E_GL_NV_mesh_shader);
10930|    308|            symbolTable.setVariableExtensions("gl_MeshVerticesNV", "gl_CullDistancePerViewNV", 1, &E_GL_NV_mesh_shader);
10931|       |
10932|    308|            BuiltInVariable("gl_MeshVerticesNV", "gl_PositionPerViewNV",     EbvPositionPerViewNV,     symbolTable);
10933|    308|            BuiltInVariable("gl_MeshVerticesNV", "gl_ClipDistancePerViewNV", EbvClipDistancePerViewNV, symbolTable);
10934|    308|            BuiltInVariable("gl_MeshVerticesNV", "gl_CullDistancePerViewNV", EbvCullDistancePerViewNV, symbolTable);
10935|       |
10936|       |            // per-primitive builtins
10937|    308|            symbolTable.setVariableExtensions("gl_MeshPrimitivesNV", "gl_PrimitiveID",   1, &E_GL_NV_mesh_shader);
10938|    308|            symbolTable.setVariableExtensions("gl_MeshPrimitivesNV", "gl_Layer",         1, &E_GL_NV_mesh_shader);
10939|    308|            symbolTable.setVariableExtensions("gl_MeshPrimitivesNV", "gl_ViewportIndex", 1, &E_GL_NV_mesh_shader);
10940|    308|            symbolTable.setVariableExtensions("gl_MeshPrimitivesNV", "gl_ViewportMask",  1, &E_GL_NV_mesh_shader);
10941|       |
10942|    308|            BuiltInVariable("gl_MeshPrimitivesNV", "gl_PrimitiveID",   EbvPrimitiveId,    symbolTable);
10943|    308|            BuiltInVariable("gl_MeshPrimitivesNV", "gl_Layer",         EbvLayer,          symbolTable);
10944|    308|            BuiltInVariable("gl_MeshPrimitivesNV", "gl_ViewportIndex", EbvViewportIndex,  symbolTable);
10945|    308|            BuiltInVariable("gl_MeshPrimitivesNV", "gl_ViewportMask",  EbvViewportMaskNV, symbolTable);
10946|       |
10947|       |            // per-view per-primitive builtins
10948|    308|            symbolTable.setVariableExtensions("gl_MeshPrimitivesNV", "gl_LayerPerViewNV",        1, &E_GL_NV_mesh_shader);
10949|    308|            symbolTable.setVariableExtensions("gl_MeshPrimitivesNV", "gl_ViewportMaskPerViewNV", 1, &E_GL_NV_mesh_shader);
10950|       |
10951|    308|            BuiltInVariable("gl_MeshPrimitivesNV", "gl_LayerPerViewNV",        EbvLayerPerViewNV,        symbolTable);
10952|    308|            BuiltInVariable("gl_MeshPrimitivesNV", "gl_ViewportMaskPerViewNV", EbvViewportMaskPerViewNV, symbolTable);
10953|       |
10954|       |            // other builtins
10955|    308|            symbolTable.setVariableExtensions("gl_PrimitiveCountNV",     1, &E_GL_NV_mesh_shader);
10956|    308|            symbolTable.setVariableExtensions("gl_PrimitiveIndicesNV",   1, &E_GL_NV_mesh_shader);
10957|    308|            symbolTable.setVariableExtensions("gl_MeshViewCountNV",      1, &E_GL_NV_mesh_shader);
10958|    308|            symbolTable.setVariableExtensions("gl_MeshViewIndicesNV",    1, &E_GL_NV_mesh_shader);
10959|    308|            if (profile != EEsProfile) {
  ------------------
  |  Branch (10959:17): [True: 301, False: 7]
  ------------------
10960|    301|                symbolTable.setVariableExtensions("gl_WorkGroupSize",        Num_AEP_mesh_shader, AEP_mesh_shader);
10961|    301|                symbolTable.setVariableExtensions("gl_WorkGroupID",          Num_AEP_mesh_shader, AEP_mesh_shader);
10962|    301|                symbolTable.setVariableExtensions("gl_LocalInvocationID",    Num_AEP_mesh_shader, AEP_mesh_shader);
10963|    301|                symbolTable.setVariableExtensions("gl_GlobalInvocationID",   Num_AEP_mesh_shader, AEP_mesh_shader);
10964|    301|                symbolTable.setVariableExtensions("gl_LocalInvocationIndex", Num_AEP_mesh_shader, AEP_mesh_shader);
10965|    301|            } else {
10966|      7|                symbolTable.setVariableExtensions("gl_WorkGroupSize",        1, &E_GL_NV_mesh_shader);
10967|      7|                symbolTable.setVariableExtensions("gl_WorkGroupID",          1, &E_GL_NV_mesh_shader);
10968|      7|                symbolTable.setVariableExtensions("gl_LocalInvocationID",    1, &E_GL_NV_mesh_shader);
10969|      7|                symbolTable.setVariableExtensions("gl_GlobalInvocationID",   1, &E_GL_NV_mesh_shader);
10970|      7|                symbolTable.setVariableExtensions("gl_LocalInvocationIndex", 1, &E_GL_NV_mesh_shader);
10971|      7|            }
10972|    308|            BuiltInVariable("gl_PrimitiveCountNV",     EbvPrimitiveCountNV,     symbolTable);
10973|    308|            BuiltInVariable("gl_PrimitiveIndicesNV",   EbvPrimitiveIndicesNV,   symbolTable);
10974|    308|            BuiltInVariable("gl_MeshViewCountNV",      EbvMeshViewCountNV,      symbolTable);
10975|    308|            BuiltInVariable("gl_MeshViewIndicesNV",    EbvMeshViewIndicesNV,    symbolTable);
10976|    308|            BuiltInVariable("gl_WorkGroupSize",        EbvWorkGroupSize,        symbolTable);
10977|    308|            BuiltInVariable("gl_WorkGroupID",          EbvWorkGroupId,          symbolTable);
10978|    308|            BuiltInVariable("gl_LocalInvocationID",    EbvLocalInvocationId,    symbolTable);
10979|    308|            BuiltInVariable("gl_GlobalInvocationID",   EbvGlobalInvocationId,   symbolTable);
10980|    308|            BuiltInVariable("gl_LocalInvocationIndex", EbvLocalInvocationIndex, symbolTable);
10981|       |
10982|       |            // builtin constants
10983|    308|            symbolTable.setVariableExtensions("gl_MaxMeshOutputVerticesNV",   1, &E_GL_NV_mesh_shader);
10984|    308|            symbolTable.setVariableExtensions("gl_MaxMeshOutputPrimitivesNV", 1, &E_GL_NV_mesh_shader);
10985|    308|            symbolTable.setVariableExtensions("gl_MaxMeshWorkGroupSizeNV",    1, &E_GL_NV_mesh_shader);
10986|    308|            symbolTable.setVariableExtensions("gl_MaxMeshViewCountNV",        1, &E_GL_NV_mesh_shader);
10987|       |
10988|       |            // builtin functions
10989|    308|            if (profile != EEsProfile) {
  ------------------
  |  Branch (10989:17): [True: 301, False: 7]
  ------------------
10990|    301|                symbolTable.setFunctionExtensions("barrier",                      Num_AEP_mesh_shader, AEP_mesh_shader);
10991|    301|                symbolTable.setFunctionExtensions("memoryBarrierShared",          Num_AEP_mesh_shader, AEP_mesh_shader);
10992|    301|                symbolTable.setFunctionExtensions("groupMemoryBarrier",           Num_AEP_mesh_shader, AEP_mesh_shader);
10993|    301|            } else {
10994|      7|                symbolTable.setFunctionExtensions("barrier",                      1, &E_GL_NV_mesh_shader);
10995|      7|                symbolTable.setFunctionExtensions("memoryBarrierShared",          1, &E_GL_NV_mesh_shader);
10996|      7|                symbolTable.setFunctionExtensions("groupMemoryBarrier",           1, &E_GL_NV_mesh_shader);
10997|      7|            }
10998|    308|            symbolTable.setFunctionExtensions("writePackedPrimitiveIndices4x8NV",  1, &E_GL_NV_mesh_shader);
10999|    308|        }
11000|       |
11001|    308|        if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (11001:13): [True: 301, False: 7]
  |  Branch (11001:38): [True: 301, False: 0]
  ------------------
11002|       |            // GL_EXT_Mesh_shader
11003|    301|            symbolTable.setVariableExtensions("gl_PrimitivePointIndicesEXT",    1, &E_GL_EXT_mesh_shader);
11004|    301|            symbolTable.setVariableExtensions("gl_PrimitiveLineIndicesEXT",     1, &E_GL_EXT_mesh_shader);
11005|    301|            symbolTable.setVariableExtensions("gl_PrimitiveTriangleIndicesEXT", 1, &E_GL_EXT_mesh_shader);
11006|    301|            symbolTable.setVariableExtensions("gl_NumWorkGroups",               1, &E_GL_EXT_mesh_shader);
11007|       |
11008|    301|            BuiltInVariable("gl_PrimitivePointIndicesEXT",    EbvPrimitivePointIndicesEXT,    symbolTable);
11009|    301|            BuiltInVariable("gl_PrimitiveLineIndicesEXT",     EbvPrimitiveLineIndicesEXT,     symbolTable);
11010|    301|            BuiltInVariable("gl_PrimitiveTriangleIndicesEXT", EbvPrimitiveTriangleIndicesEXT, symbolTable);
11011|    301|            BuiltInVariable("gl_NumWorkGroups",        EbvNumWorkGroups,        symbolTable);
11012|       |
11013|    301|            symbolTable.setVariableExtensions("gl_MeshVerticesEXT", "gl_Position",     1, &E_GL_EXT_mesh_shader);
11014|    301|            symbolTable.setVariableExtensions("gl_MeshVerticesEXT", "gl_PointSize",    1, &E_GL_EXT_mesh_shader);
11015|    301|            symbolTable.setVariableExtensions("gl_MeshVerticesEXT", "gl_ClipDistance", 1, &E_GL_EXT_mesh_shader);
11016|    301|            symbolTable.setVariableExtensions("gl_MeshVerticesEXT", "gl_CullDistance", 1, &E_GL_EXT_mesh_shader);
11017|       |
11018|    301|            BuiltInVariable("gl_MeshVerticesEXT", "gl_Position",     EbvPosition,     symbolTable);
11019|    301|            BuiltInVariable("gl_MeshVerticesEXT", "gl_PointSize",    EbvPointSize,    symbolTable);
11020|    301|            BuiltInVariable("gl_MeshVerticesEXT", "gl_ClipDistance", EbvClipDistance, symbolTable);
11021|    301|            BuiltInVariable("gl_MeshVerticesEXT", "gl_CullDistance", EbvCullDistance, symbolTable);
11022|       |
11023|    301|            symbolTable.setVariableExtensions("gl_MeshPrimitivesEXT", "gl_PrimitiveID",             1, &E_GL_EXT_mesh_shader);
11024|    301|            symbolTable.setVariableExtensions("gl_MeshPrimitivesEXT", "gl_Layer",                   1, &E_GL_EXT_mesh_shader);
11025|    301|            symbolTable.setVariableExtensions("gl_MeshPrimitivesEXT", "gl_ViewportIndex",           1, &E_GL_EXT_mesh_shader);
11026|    301|            symbolTable.setVariableExtensions("gl_MeshPrimitivesEXT", "gl_CullPrimitiveEXT",        1, &E_GL_EXT_mesh_shader);
11027|       |
11028|       |            // note: technically this member requires both GL_EXT_mesh_shader and GL_EXT_fragment_shading_rate
11029|       |            // since setVariableExtensions only needs *one of* the extensions to validate, it's more useful to specify EXT_fragment_shading_rate
11030|       |            // GL_EXT_mesh_shader will be required in practice by use of other fields of gl_MeshPrimitivesEXT
11031|    301|            symbolTable.setVariableExtensions("gl_MeshPrimitivesEXT", "gl_PrimitiveShadingRateEXT", 1, &E_GL_EXT_fragment_shading_rate);
11032|       |
11033|    301|            BuiltInVariable("gl_MeshPrimitivesEXT", "gl_PrimitiveID",              EbvPrimitiveId,    symbolTable);
11034|    301|            BuiltInVariable("gl_MeshPrimitivesEXT", "gl_Layer",                    EbvLayer,          symbolTable);
11035|    301|            BuiltInVariable("gl_MeshPrimitivesEXT", "gl_ViewportIndex",            EbvViewportIndex,  symbolTable);
11036|    301|            BuiltInVariable("gl_MeshPrimitivesEXT", "gl_CullPrimitiveEXT",         EbvCullPrimitiveEXT, symbolTable);
11037|    301|            BuiltInVariable("gl_MeshPrimitivesEXT", "gl_PrimitiveShadingRateEXT",  EbvPrimitiveShadingRateKHR, symbolTable);
11038|       |
11039|    301|            symbolTable.setFunctionExtensions("SetMeshOutputsEXT",  1, &E_GL_EXT_mesh_shader);
11040|       |
11041|       |            // GL_EXT_device_group
11042|    301|            symbolTable.setVariableExtensions("gl_DeviceIndex", 1, &E_GL_EXT_device_group);
11043|    301|            BuiltInVariable("gl_DeviceIndex", EbvDeviceIndex, symbolTable);
11044|       |
11045|       |            // GL_ARB_shader_draw_parameters
11046|    301|            symbolTable.setVariableExtensions("gl_DrawIDARB", 1, &E_GL_ARB_shader_draw_parameters);
11047|    301|            BuiltInVariable("gl_DrawIDARB", EbvDrawId, symbolTable);
11048|    301|            if (version >= 460) {
  ------------------
  |  Branch (11048:17): [True: 45, False: 256]
  ------------------
11049|     45|                BuiltInVariable("gl_DrawID", EbvDrawId, symbolTable);
11050|     45|            }
11051|       |            // GL_EXT_multiview
11052|    301|            BuiltInVariable("gl_ViewIndex", EbvViewIndex, symbolTable);
11053|    301|            symbolTable.setVariableExtensions("gl_ViewIndex", 1, &E_GL_EXT_multiview);
11054|       |
11055|       |            // GL_ARB_shader_ballot
11056|    301|            symbolTable.setVariableExtensions("gl_SubGroupSizeARB",       1, &E_GL_ARB_shader_ballot);
11057|    301|            symbolTable.setVariableExtensions("gl_SubGroupInvocationARB", 1, &E_GL_ARB_shader_ballot);
11058|    301|            symbolTable.setVariableExtensions("gl_SubGroupEqMaskARB",     1, &E_GL_ARB_shader_ballot);
11059|    301|            symbolTable.setVariableExtensions("gl_SubGroupGeMaskARB",     1, &E_GL_ARB_shader_ballot);
11060|    301|            symbolTable.setVariableExtensions("gl_SubGroupGtMaskARB",     1, &E_GL_ARB_shader_ballot);
11061|    301|            symbolTable.setVariableExtensions("gl_SubGroupLeMaskARB",     1, &E_GL_ARB_shader_ballot);
11062|    301|            symbolTable.setVariableExtensions("gl_SubGroupLtMaskARB",     1, &E_GL_ARB_shader_ballot);
11063|       |
11064|    301|            BuiltInVariable("gl_SubGroupInvocationARB", EbvSubGroupInvocation, symbolTable);
11065|    301|            BuiltInVariable("gl_SubGroupEqMaskARB",     EbvSubGroupEqMask,     symbolTable);
11066|    301|            BuiltInVariable("gl_SubGroupGeMaskARB",     EbvSubGroupGeMask,     symbolTable);
11067|    301|            BuiltInVariable("gl_SubGroupGtMaskARB",     EbvSubGroupGtMask,     symbolTable);
11068|    301|            BuiltInVariable("gl_SubGroupLeMaskARB",     EbvSubGroupLeMask,     symbolTable);
11069|    301|            BuiltInVariable("gl_SubGroupLtMaskARB",     EbvSubGroupLtMask,     symbolTable);
11070|       |
11071|    301|            if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (11071:17): [True: 301, False: 0]
  ------------------
11072|       |                // Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
11073|    301|                SpecialQualifier("gl_SubGroupSizeARB", EvqVaryingIn, EbvSubGroupSize, symbolTable);
11074|    301|                if (language == EShLangFragment)
  ------------------
  |  Branch (11074:21): [True: 0, False: 301]
  ------------------
11075|      0|                    ModifyFlatDecoration("gl_SubGroupSizeARB", true, symbolTable);
11076|    301|            }
11077|      0|            else
11078|      0|                BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
11079|    301|        }
11080|       |
11081|       |        // GL_KHR_shader_subgroup
11082|    308|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11082:14): [True: 7, False: 301]
  |  Branch (11082:39): [True: 7, False: 0]
  ------------------
11083|    308|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (11083:14): [True: 301, False: 0]
  |  Branch (11083:39): [True: 301, False: 0]
  ------------------
11084|    308|            symbolTable.setVariableExtensions("gl_NumSubgroups",         1, &E_GL_KHR_shader_subgroup_basic);
11085|    308|            symbolTable.setVariableExtensions("gl_SubgroupID",           1, &E_GL_KHR_shader_subgroup_basic);
11086|    308|            symbolTable.setVariableExtensions("gl_SubgroupSize",         1, &E_GL_KHR_shader_subgroup_basic);
11087|    308|            symbolTable.setVariableExtensions("gl_SubgroupInvocationID", 1, &E_GL_KHR_shader_subgroup_basic);
11088|    308|            symbolTable.setVariableExtensions("gl_SubgroupEqMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11089|    308|            symbolTable.setVariableExtensions("gl_SubgroupGeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11090|    308|            symbolTable.setVariableExtensions("gl_SubgroupGtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11091|    308|            symbolTable.setVariableExtensions("gl_SubgroupLeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11092|    308|            symbolTable.setVariableExtensions("gl_SubgroupLtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11093|       |
11094|    308|            BuiltInVariable("gl_NumSubgroups",         EbvNumSubgroups,        symbolTable);
11095|    308|            BuiltInVariable("gl_SubgroupID",           EbvSubgroupID,          symbolTable);
11096|    308|            BuiltInVariable("gl_SubgroupSize",         EbvSubgroupSize2,       symbolTable);
11097|    308|            BuiltInVariable("gl_SubgroupInvocationID", EbvSubgroupInvocation2, symbolTable);
11098|    308|            BuiltInVariable("gl_SubgroupEqMask",       EbvSubgroupEqMask2,     symbolTable);
11099|    308|            BuiltInVariable("gl_SubgroupGeMask",       EbvSubgroupGeMask2,     symbolTable);
11100|    308|            BuiltInVariable("gl_SubgroupGtMask",       EbvSubgroupGtMask2,     symbolTable);
11101|    308|            BuiltInVariable("gl_SubgroupLeMask",       EbvSubgroupLeMask2,     symbolTable);
11102|    308|            BuiltInVariable("gl_SubgroupLtMask",       EbvSubgroupLtMask2,     symbolTable);
11103|       |
11104|    308|            symbolTable.setFunctionExtensions("subgroupMemoryBarrierShared", 1, &E_GL_KHR_shader_subgroup_basic);
11105|       |
11106|       |            // GL_NV_shader_sm_builtins
11107|    308|            symbolTable.setVariableExtensions("gl_WarpsPerSMNV",         1, &E_GL_NV_shader_sm_builtins);
11108|    308|            symbolTable.setVariableExtensions("gl_SMCountNV",            1, &E_GL_NV_shader_sm_builtins);
11109|    308|            symbolTable.setVariableExtensions("gl_WarpIDNV",             1, &E_GL_NV_shader_sm_builtins);
11110|    308|            symbolTable.setVariableExtensions("gl_SMIDNV",               1, &E_GL_NV_shader_sm_builtins);
11111|    308|            BuiltInVariable("gl_WarpsPerSMNV",          EbvWarpsPerSM,      symbolTable);
11112|    308|            BuiltInVariable("gl_SMCountNV",             EbvSMCount,         symbolTable);
11113|    308|            BuiltInVariable("gl_WarpIDNV",              EbvWarpID,          symbolTable);
11114|    308|            BuiltInVariable("gl_SMIDNV",                EbvSMID,            symbolTable);
11115|       |
11116|       |            // GL_ARM_shader_core_builtins
11117|    308|            symbolTable.setVariableExtensions("gl_CoreCountARM", 1, &E_GL_ARM_shader_core_builtins);
11118|    308|            symbolTable.setVariableExtensions("gl_CoreIDARM",    1, &E_GL_ARM_shader_core_builtins);
11119|    308|            symbolTable.setVariableExtensions("gl_CoreMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
11120|    308|            symbolTable.setVariableExtensions("gl_WarpIDARM",    1, &E_GL_ARM_shader_core_builtins);
11121|    308|            symbolTable.setVariableExtensions("gl_WarpMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
11122|       |
11123|    308|            BuiltInVariable("gl_CoreCountARM", EbvCoreCountARM, symbolTable);
11124|    308|            BuiltInVariable("gl_CoreIDARM",    EbvCoreIDARM, symbolTable);
11125|    308|            BuiltInVariable("gl_CoreMaxIDARM", EbvCoreMaxIDARM, symbolTable);
11126|    308|            BuiltInVariable("gl_WarpIDARM",    EbvWarpIDARM, symbolTable);
11127|    308|            BuiltInVariable("gl_WarpMaxIDARM", EbvWarpMaxIDARM, symbolTable);
11128|    308|        }
11129|       |
11130|    308|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11130:14): [True: 7, False: 301]
  |  Branch (11130:39): [True: 7, False: 0]
  ------------------
11131|    308|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (11131:14): [True: 301, False: 0]
  |  Branch (11131:39): [True: 301, False: 0]
  ------------------
11132|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11133|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11134|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11135|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11136|    308|        }
11137|       |
11138|       |        // Builtins for GL_NV_displacment_micromap
11139|    308|        if ((profile != EEsProfile && version >= 460)) {
  ------------------
  |  Branch (11139:14): [True: 301, False: 7]
  |  Branch (11139:39): [True: 45, False: 256]
  ------------------
11140|     45|            symbolTable.setFunctionExtensions("fetchMicroTriangleVertexPositionNV", 1, &E_GL_NV_displacement_micromap);
11141|     45|            symbolTable.setFunctionExtensions("fetchMicroTriangleVertexBarycentricNV", 1, &E_GL_NV_displacement_micromap);
11142|     45|        }
11143|       |
11144|    308|        break;
11145|       |
11146|    308|    case EShLangTask:
  ------------------
  |  Branch (11146:5): [True: 308, False: 8.35k]
  ------------------
11147|    308|        if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (11147:14): [True: 301, False: 7]
  |  Branch (11147:39): [True: 301, False: 0]
  |  Branch (11147:59): [True: 7, False: 0]
  |  Branch (11147:84): [True: 7, False: 0]
  ------------------
11148|    308|            symbolTable.setVariableExtensions("gl_TaskCountNV",          1, &E_GL_NV_mesh_shader);
11149|    308|            symbolTable.setVariableExtensions("gl_MeshViewCountNV",      1, &E_GL_NV_mesh_shader);
11150|    308|            symbolTable.setVariableExtensions("gl_MeshViewIndicesNV",    1, &E_GL_NV_mesh_shader);
11151|    308|            if (profile != EEsProfile) {
  ------------------
  |  Branch (11151:17): [True: 301, False: 7]
  ------------------
11152|    301|                symbolTable.setVariableExtensions("gl_WorkGroupSize",        Num_AEP_mesh_shader, AEP_mesh_shader);
11153|    301|                symbolTable.setVariableExtensions("gl_WorkGroupID",          Num_AEP_mesh_shader, AEP_mesh_shader);
11154|    301|                symbolTable.setVariableExtensions("gl_LocalInvocationID",    Num_AEP_mesh_shader, AEP_mesh_shader);
11155|    301|                symbolTable.setVariableExtensions("gl_GlobalInvocationID",   Num_AEP_mesh_shader, AEP_mesh_shader);
11156|    301|                symbolTable.setVariableExtensions("gl_LocalInvocationIndex", Num_AEP_mesh_shader, AEP_mesh_shader);
11157|    301|            } else {
11158|      7|                symbolTable.setVariableExtensions("gl_WorkGroupSize",        1, &E_GL_NV_mesh_shader);
11159|      7|                symbolTable.setVariableExtensions("gl_WorkGroupID",          1, &E_GL_NV_mesh_shader);
11160|      7|                symbolTable.setVariableExtensions("gl_LocalInvocationID",    1, &E_GL_NV_mesh_shader);
11161|      7|                symbolTable.setVariableExtensions("gl_GlobalInvocationID",   1, &E_GL_NV_mesh_shader);
11162|      7|                symbolTable.setVariableExtensions("gl_LocalInvocationIndex", 1, &E_GL_NV_mesh_shader);
11163|      7|            }
11164|       |
11165|    308|            BuiltInVariable("gl_TaskCountNV",          EbvTaskCountNV,          symbolTable);
11166|    308|            BuiltInVariable("gl_WorkGroupSize",        EbvWorkGroupSize,        symbolTable);
11167|    308|            BuiltInVariable("gl_WorkGroupID",          EbvWorkGroupId,          symbolTable);
11168|    308|            BuiltInVariable("gl_LocalInvocationID",    EbvLocalInvocationId,    symbolTable);
11169|    308|            BuiltInVariable("gl_GlobalInvocationID",   EbvGlobalInvocationId,   symbolTable);
11170|    308|            BuiltInVariable("gl_LocalInvocationIndex", EbvLocalInvocationIndex, symbolTable);
11171|    308|            BuiltInVariable("gl_MeshViewCountNV",      EbvMeshViewCountNV,      symbolTable);
11172|    308|            BuiltInVariable("gl_MeshViewIndicesNV",    EbvMeshViewIndicesNV,    symbolTable);
11173|       |
11174|    308|            symbolTable.setVariableExtensions("gl_MaxTaskWorkGroupSizeNV", 1, &E_GL_NV_mesh_shader);
11175|    308|            symbolTable.setVariableExtensions("gl_MaxMeshViewCountNV",     1, &E_GL_NV_mesh_shader);
11176|       |
11177|    308|            if (profile != EEsProfile) {
  ------------------
  |  Branch (11177:17): [True: 301, False: 7]
  ------------------
11178|    301|                symbolTable.setFunctionExtensions("barrier",                   Num_AEP_mesh_shader, AEP_mesh_shader);
11179|    301|                symbolTable.setFunctionExtensions("memoryBarrierShared",       Num_AEP_mesh_shader, AEP_mesh_shader);
11180|    301|                symbolTable.setFunctionExtensions("groupMemoryBarrier",        Num_AEP_mesh_shader, AEP_mesh_shader);
11181|    301|            } else {
11182|      7|                symbolTable.setFunctionExtensions("barrier",                   1, &E_GL_NV_mesh_shader);
11183|      7|                symbolTable.setFunctionExtensions("memoryBarrierShared",       1, &E_GL_NV_mesh_shader);
11184|      7|                symbolTable.setFunctionExtensions("groupMemoryBarrier",        1, &E_GL_NV_mesh_shader);
11185|      7|            }
11186|    308|        }
11187|       |
11188|    308|        if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (11188:13): [True: 301, False: 7]
  |  Branch (11188:38): [True: 301, False: 0]
  ------------------
11189|       |            // GL_EXT_mesh_shader
11190|    301|            symbolTable.setFunctionExtensions("EmitMeshTasksEXT",          1, &E_GL_EXT_mesh_shader);
11191|    301|            symbolTable.setVariableExtensions("gl_NumWorkGroups",        1, &E_GL_EXT_mesh_shader);
11192|    301|            BuiltInVariable("gl_NumWorkGroups",        EbvNumWorkGroups,        symbolTable);
11193|       |
11194|       |            // GL_EXT_device_group
11195|    301|            symbolTable.setVariableExtensions("gl_DeviceIndex", 1, &E_GL_EXT_device_group);
11196|    301|            BuiltInVariable("gl_DeviceIndex", EbvDeviceIndex, symbolTable);
11197|       |
11198|       |            // GL_ARB_shader_draw_parameters
11199|    301|            symbolTable.setVariableExtensions("gl_DrawIDARB", 1, &E_GL_ARB_shader_draw_parameters);
11200|    301|            BuiltInVariable("gl_DrawIDARB", EbvDrawId, symbolTable);
11201|    301|            if (version >= 460) {
  ------------------
  |  Branch (11201:17): [True: 45, False: 256]
  ------------------
11202|     45|                BuiltInVariable("gl_DrawID", EbvDrawId, symbolTable);
11203|     45|            }
11204|       |
11205|       |            // GL_ARB_shader_ballot
11206|    301|            symbolTable.setVariableExtensions("gl_SubGroupSizeARB",       1, &E_GL_ARB_shader_ballot);
11207|    301|            symbolTable.setVariableExtensions("gl_SubGroupInvocationARB", 1, &E_GL_ARB_shader_ballot);
11208|    301|            symbolTable.setVariableExtensions("gl_SubGroupEqMaskARB",     1, &E_GL_ARB_shader_ballot);
11209|    301|            symbolTable.setVariableExtensions("gl_SubGroupGeMaskARB",     1, &E_GL_ARB_shader_ballot);
11210|    301|            symbolTable.setVariableExtensions("gl_SubGroupGtMaskARB",     1, &E_GL_ARB_shader_ballot);
11211|    301|            symbolTable.setVariableExtensions("gl_SubGroupLeMaskARB",     1, &E_GL_ARB_shader_ballot);
11212|    301|            symbolTable.setVariableExtensions("gl_SubGroupLtMaskARB",     1, &E_GL_ARB_shader_ballot);
11213|       |
11214|    301|            BuiltInVariable("gl_SubGroupInvocationARB", EbvSubGroupInvocation, symbolTable);
11215|    301|            BuiltInVariable("gl_SubGroupEqMaskARB",     EbvSubGroupEqMask,     symbolTable);
11216|    301|            BuiltInVariable("gl_SubGroupGeMaskARB",     EbvSubGroupGeMask,     symbolTable);
11217|    301|            BuiltInVariable("gl_SubGroupGtMaskARB",     EbvSubGroupGtMask,     symbolTable);
11218|    301|            BuiltInVariable("gl_SubGroupLeMaskARB",     EbvSubGroupLeMask,     symbolTable);
11219|    301|            BuiltInVariable("gl_SubGroupLtMaskARB",     EbvSubGroupLtMask,     symbolTable);
11220|       |
11221|    301|            if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (11221:17): [True: 301, False: 0]
  ------------------
11222|       |                // Treat "gl_SubGroupSizeARB" as shader input instead of uniform for Vulkan
11223|    301|                SpecialQualifier("gl_SubGroupSizeARB", EvqVaryingIn, EbvSubGroupSize, symbolTable);
11224|    301|                if (language == EShLangFragment)
  ------------------
  |  Branch (11224:21): [True: 0, False: 301]
  ------------------
11225|      0|                    ModifyFlatDecoration("gl_SubGroupSizeARB", true, symbolTable);
11226|    301|            }
11227|      0|            else
11228|      0|                BuiltInVariable("gl_SubGroupSizeARB", EbvSubGroupSize, symbolTable);
11229|    301|        }
11230|       |
11231|       |        // GL_KHR_shader_subgroup
11232|    308|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11232:14): [True: 7, False: 301]
  |  Branch (11232:39): [True: 7, False: 0]
  ------------------
11233|    308|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (11233:14): [True: 301, False: 0]
  |  Branch (11233:39): [True: 301, False: 0]
  ------------------
11234|    308|            symbolTable.setVariableExtensions("gl_NumSubgroups",         1, &E_GL_KHR_shader_subgroup_basic);
11235|    308|            symbolTable.setVariableExtensions("gl_SubgroupID",           1, &E_GL_KHR_shader_subgroup_basic);
11236|    308|            symbolTable.setVariableExtensions("gl_SubgroupSize",         1, &E_GL_KHR_shader_subgroup_basic);
11237|    308|            symbolTable.setVariableExtensions("gl_SubgroupInvocationID", 1, &E_GL_KHR_shader_subgroup_basic);
11238|    308|            symbolTable.setVariableExtensions("gl_SubgroupEqMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11239|    308|            symbolTable.setVariableExtensions("gl_SubgroupGeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11240|    308|            symbolTable.setVariableExtensions("gl_SubgroupGtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11241|    308|            symbolTable.setVariableExtensions("gl_SubgroupLeMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11242|    308|            symbolTable.setVariableExtensions("gl_SubgroupLtMask",       1, &E_GL_KHR_shader_subgroup_ballot);
11243|       |
11244|    308|            BuiltInVariable("gl_NumSubgroups",         EbvNumSubgroups,        symbolTable);
11245|    308|            BuiltInVariable("gl_SubgroupID",           EbvSubgroupID,          symbolTable);
11246|    308|            BuiltInVariable("gl_SubgroupSize",         EbvSubgroupSize2,       symbolTable);
11247|    308|            BuiltInVariable("gl_SubgroupInvocationID", EbvSubgroupInvocation2, symbolTable);
11248|    308|            BuiltInVariable("gl_SubgroupEqMask",       EbvSubgroupEqMask2,     symbolTable);
11249|    308|            BuiltInVariable("gl_SubgroupGeMask",       EbvSubgroupGeMask2,     symbolTable);
11250|    308|            BuiltInVariable("gl_SubgroupGtMask",       EbvSubgroupGtMask2,     symbolTable);
11251|    308|            BuiltInVariable("gl_SubgroupLeMask",       EbvSubgroupLeMask2,     symbolTable);
11252|    308|            BuiltInVariable("gl_SubgroupLtMask",       EbvSubgroupLtMask2,     symbolTable);
11253|       |
11254|    308|            symbolTable.setFunctionExtensions("subgroupMemoryBarrierShared", 1, &E_GL_KHR_shader_subgroup_basic);
11255|       |
11256|       |            // GL_NV_shader_sm_builtins
11257|    308|            symbolTable.setVariableExtensions("gl_WarpsPerSMNV",         1, &E_GL_NV_shader_sm_builtins);
11258|    308|            symbolTable.setVariableExtensions("gl_SMCountNV",            1, &E_GL_NV_shader_sm_builtins);
11259|    308|            symbolTable.setVariableExtensions("gl_WarpIDNV",             1, &E_GL_NV_shader_sm_builtins);
11260|    308|            symbolTable.setVariableExtensions("gl_SMIDNV",               1, &E_GL_NV_shader_sm_builtins);
11261|    308|            BuiltInVariable("gl_WarpsPerSMNV",          EbvWarpsPerSM,      symbolTable);
11262|    308|            BuiltInVariable("gl_SMCountNV",             EbvSMCount,         symbolTable);
11263|    308|            BuiltInVariable("gl_WarpIDNV",              EbvWarpID,          symbolTable);
11264|    308|            BuiltInVariable("gl_SMIDNV",                EbvSMID,            symbolTable);
11265|       |
11266|       |            // GL_ARM_shader_core_builtins
11267|    308|            symbolTable.setVariableExtensions("gl_CoreCountARM", 1, &E_GL_ARM_shader_core_builtins);
11268|    308|            symbolTable.setVariableExtensions("gl_CoreIDARM",    1, &E_GL_ARM_shader_core_builtins);
11269|    308|            symbolTable.setVariableExtensions("gl_CoreMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
11270|    308|            symbolTable.setVariableExtensions("gl_WarpIDARM",    1, &E_GL_ARM_shader_core_builtins);
11271|    308|            symbolTable.setVariableExtensions("gl_WarpMaxIDARM", 1, &E_GL_ARM_shader_core_builtins);
11272|       |
11273|    308|            BuiltInVariable("gl_CoreCountARM", EbvCoreCountARM, symbolTable);
11274|    308|            BuiltInVariable("gl_CoreIDARM",    EbvCoreIDARM, symbolTable);
11275|    308|            BuiltInVariable("gl_CoreMaxIDARM", EbvCoreMaxIDARM, symbolTable);
11276|    308|            BuiltInVariable("gl_WarpIDARM",    EbvWarpIDARM, symbolTable);
11277|    308|            BuiltInVariable("gl_WarpMaxIDARM", EbvWarpMaxIDARM, symbolTable);
11278|    308|        }
11279|    308|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11279:14): [True: 7, False: 301]
  |  Branch (11279:39): [True: 7, False: 0]
  ------------------
11280|    308|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (11280:14): [True: 301, False: 0]
  |  Branch (11280:39): [True: 301, False: 0]
  ------------------
11281|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11282|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4VerticalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11283|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag2HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11284|    308|            symbolTable.setVariableExtensions("gl_ShadingRateFlag4HorizontalPixelsEXT", 1, &E_GL_EXT_fragment_shading_rate);
11285|    308|        }
11286|    308|        break;
11287|       |
11288|      0|    default:
  ------------------
  |  Branch (11288:5): [True: 0, False: 8.65k]
  ------------------
11289|      0|        assert(false && "Language not supported");
11290|      0|        break;
11291|  8.65k|    }
11292|       |
11293|       |    //
11294|       |    // Next, identify which built-ins have a mapping to an operator.
11295|       |    // If PureOperatorBuiltins is false, those that are not identified as such are
11296|       |    // expected to be resolved through a library of functions, versus as
11297|       |    // operations.
11298|       |    //
11299|       |
11300|  8.65k|    relateTabledBuiltins(version, profile, spvVersion, language, symbolTable);
11301|       |
11302|  8.65k|    symbolTable.relateToOperator("doubleBitsToInt64",  EOpDoubleBitsToInt64);
11303|  8.65k|    symbolTable.relateToOperator("doubleBitsToUint64", EOpDoubleBitsToUint64);
11304|  8.65k|    symbolTable.relateToOperator("int64BitsToDouble",  EOpInt64BitsToDouble);
11305|  8.65k|    symbolTable.relateToOperator("uint64BitsToDouble", EOpUint64BitsToDouble);
11306|  8.65k|    symbolTable.relateToOperator("halfBitsToInt16",  EOpFloat16BitsToInt16);
11307|  8.65k|    symbolTable.relateToOperator("halfBitsToUint16", EOpFloat16BitsToUint16);
11308|  8.65k|    symbolTable.relateToOperator("float16BitsToInt16",  EOpFloat16BitsToInt16);
11309|  8.65k|    symbolTable.relateToOperator("float16BitsToUint16", EOpFloat16BitsToUint16);
11310|  8.65k|    symbolTable.relateToOperator("int16BitsToFloat16",  EOpInt16BitsToFloat16);
11311|  8.65k|    symbolTable.relateToOperator("uint16BitsToFloat16", EOpUint16BitsToFloat16);
11312|       |
11313|  8.65k|    symbolTable.relateToOperator("int16BitsToHalf",  EOpInt16BitsToFloat16);
11314|  8.65k|    symbolTable.relateToOperator("uint16BitsToHalf", EOpUint16BitsToFloat16);
11315|       |
11316|  8.65k|    symbolTable.relateToOperator("packSnorm4x8",    EOpPackSnorm4x8);
11317|  8.65k|    symbolTable.relateToOperator("unpackSnorm4x8",  EOpUnpackSnorm4x8);
11318|  8.65k|    symbolTable.relateToOperator("packUnorm4x8",    EOpPackUnorm4x8);
11319|  8.65k|    symbolTable.relateToOperator("unpackUnorm4x8",  EOpUnpackUnorm4x8);
11320|       |
11321|  8.65k|    symbolTable.relateToOperator("packDouble2x32",    EOpPackDouble2x32);
11322|  8.65k|    symbolTable.relateToOperator("unpackDouble2x32",  EOpUnpackDouble2x32);
11323|       |
11324|  8.65k|    symbolTable.relateToOperator("packInt2x32",     EOpPackInt2x32);
11325|  8.65k|    symbolTable.relateToOperator("unpackInt2x32",   EOpUnpackInt2x32);
11326|  8.65k|    symbolTable.relateToOperator("packUint2x32",    EOpPackUint2x32);
11327|  8.65k|    symbolTable.relateToOperator("unpackUint2x32",  EOpUnpackUint2x32);
11328|       |
11329|  8.65k|    symbolTable.relateToOperator("packInt2x16",     EOpPackInt2x16);
11330|  8.65k|    symbolTable.relateToOperator("unpackInt2x16",   EOpUnpackInt2x16);
11331|  8.65k|    symbolTable.relateToOperator("packUint2x16",    EOpPackUint2x16);
11332|  8.65k|    symbolTable.relateToOperator("unpackUint2x16",  EOpUnpackUint2x16);
11333|       |
11334|  8.65k|    symbolTable.relateToOperator("packInt4x16",     EOpPackInt4x16);
11335|  8.65k|    symbolTable.relateToOperator("unpackInt4x16",   EOpUnpackInt4x16);
11336|  8.65k|    symbolTable.relateToOperator("packUint4x16",    EOpPackUint4x16);
11337|  8.65k|    symbolTable.relateToOperator("unpackUint4x16",  EOpUnpackUint4x16);
11338|  8.65k|    symbolTable.relateToOperator("packFloat2x16",   EOpPackFloat2x16);
11339|  8.65k|    symbolTable.relateToOperator("unpackFloat2x16", EOpUnpackFloat2x16);
11340|       |
11341|  8.65k|    symbolTable.relateToOperator("pack16",          EOpPack16);
11342|  8.65k|    symbolTable.relateToOperator("pack32",          EOpPack32);
11343|  8.65k|    symbolTable.relateToOperator("pack64",          EOpPack64);
11344|       |
11345|  8.65k|    symbolTable.relateToOperator("unpack32",        EOpUnpack32);
11346|  8.65k|    symbolTable.relateToOperator("unpack16",        EOpUnpack16);
11347|  8.65k|    symbolTable.relateToOperator("unpack8",         EOpUnpack8);
11348|       |
11349|  8.65k|    symbolTable.relateToOperator("controlBarrier",             EOpBarrier);
11350|  8.65k|    symbolTable.relateToOperator("memoryBarrierAtomicCounter", EOpMemoryBarrierAtomicCounter);
11351|  8.65k|    symbolTable.relateToOperator("memoryBarrierImage",         EOpMemoryBarrierImage);
11352|       |
11353|  8.65k|    symbolTable.relateToOperator("controlBarrierArrive",  EOpControlBarrierArriveEXT);
11354|  8.65k|    symbolTable.relateToOperator("controlBarrierWait",    EOpControlBarrierWaitEXT);
11355|       |
11356|  8.65k|    if (spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (11356:9): [True: 0, False: 8.65k]
  ------------------
11357|       |        //
11358|       |        // functions signature have been replaced to take uint operations on buffer variables
11359|       |        // remap atomic counter functions to atomic operations
11360|       |        //
11361|      0|        symbolTable.relateToOperator("memoryBarrierAtomicCounter", EOpMemoryBarrierBuffer);
11362|      0|    }
11363|       |
11364|  8.65k|    symbolTable.relateToOperator("atomicLoad",     EOpAtomicLoad);
11365|  8.65k|    symbolTable.relateToOperator("atomicStore",    EOpAtomicStore);
11366|       |
11367|  8.65k|    symbolTable.relateToOperator("atomicCounterIncrement", EOpAtomicCounterIncrement);
11368|  8.65k|    symbolTable.relateToOperator("atomicCounterDecrement", EOpAtomicCounterDecrement);
11369|  8.65k|    symbolTable.relateToOperator("atomicCounter",          EOpAtomicCounter);
11370|       |
11371|  8.65k|    if (spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (11371:9): [True: 0, False: 8.65k]
  ------------------
11372|       |        //
11373|       |        // functions signature have been replaced to take uint operations
11374|       |        // remap atomic counter functions to atomic operations
11375|       |        //
11376|       |        // these atomic counter functions do not match signatures of glsl
11377|       |        // atomic functions, so they will be remapped to semantically
11378|       |        // equivalent functions in the parser
11379|       |        //
11380|      0|        symbolTable.relateToOperator("atomicCounterIncrement", EOpNull);
11381|      0|        symbolTable.relateToOperator("atomicCounterDecrement", EOpNull);
11382|      0|        symbolTable.relateToOperator("atomicCounter", EOpNull);
11383|      0|    }
11384|       |
11385|  8.65k|    symbolTable.relateToOperator("clockARB",     EOpReadClockSubgroupKHR);
11386|  8.65k|    symbolTable.relateToOperator("clock2x32ARB", EOpReadClockSubgroupKHR);
11387|       |
11388|  8.65k|    symbolTable.relateToOperator("clockRealtimeEXT",     EOpReadClockDeviceKHR);
11389|  8.65k|    symbolTable.relateToOperator("clockRealtime2x32EXT", EOpReadClockDeviceKHR);
11390|       |
11391|  8.65k|    if (profile != EEsProfile && version == 450) {
  ------------------
  |  Branch (11391:9): [True: 7.75k, False: 902]
  |  Branch (11391:34): [True: 3.58k, False: 4.17k]
  ------------------
11392|  3.58k|        symbolTable.relateToOperator("atomicCounterAddARB",      EOpAtomicCounterAdd);
11393|  3.58k|        symbolTable.relateToOperator("atomicCounterSubtractARB", EOpAtomicCounterSubtract);
11394|  3.58k|        symbolTable.relateToOperator("atomicCounterMinARB",      EOpAtomicCounterMin);
11395|  3.58k|        symbolTable.relateToOperator("atomicCounterMaxARB",      EOpAtomicCounterMax);
11396|  3.58k|        symbolTable.relateToOperator("atomicCounterAndARB",      EOpAtomicCounterAnd);
11397|  3.58k|        symbolTable.relateToOperator("atomicCounterOrARB",       EOpAtomicCounterOr);
11398|  3.58k|        symbolTable.relateToOperator("atomicCounterXorARB",      EOpAtomicCounterXor);
11399|  3.58k|        symbolTable.relateToOperator("atomicCounterExchangeARB", EOpAtomicCounterExchange);
11400|  3.58k|        symbolTable.relateToOperator("atomicCounterCompSwapARB", EOpAtomicCounterCompSwap);
11401|  3.58k|    }
11402|       |
11403|  8.65k|    if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (11403:9): [True: 7.75k, False: 902]
  |  Branch (11403:34): [True: 630, False: 7.12k]
  ------------------
11404|    630|        symbolTable.relateToOperator("atomicCounterAdd",      EOpAtomicCounterAdd);
11405|    630|        symbolTable.relateToOperator("atomicCounterSubtract", EOpAtomicCounterSubtract);
11406|    630|        symbolTable.relateToOperator("atomicCounterMin",      EOpAtomicCounterMin);
11407|    630|        symbolTable.relateToOperator("atomicCounterMax",      EOpAtomicCounterMax);
11408|    630|        symbolTable.relateToOperator("atomicCounterAnd",      EOpAtomicCounterAnd);
11409|    630|        symbolTable.relateToOperator("atomicCounterOr",       EOpAtomicCounterOr);
11410|    630|        symbolTable.relateToOperator("atomicCounterXor",      EOpAtomicCounterXor);
11411|    630|        symbolTable.relateToOperator("atomicCounterExchange", EOpAtomicCounterExchange);
11412|    630|        symbolTable.relateToOperator("atomicCounterCompSwap", EOpAtomicCounterCompSwap);
11413|    630|    }
11414|       |
11415|  8.65k|    if (spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (11415:9): [True: 0, False: 8.65k]
  ------------------
11416|       |        //
11417|       |        // functions signature have been replaced to take 'uint' instead of 'atomic_uint'
11418|       |        // remap atomic counter functions to non-counter atomic ops so
11419|       |        // functions act as aliases to non-counter atomic ops
11420|       |        //
11421|      0|        symbolTable.relateToOperator("atomicCounterAdd", EOpAtomicAdd);
11422|      0|        symbolTable.relateToOperator("atomicCounterSubtract", EOpAtomicSubtract);
11423|      0|        symbolTable.relateToOperator("atomicCounterMin", EOpAtomicMin);
11424|      0|        symbolTable.relateToOperator("atomicCounterMax", EOpAtomicMax);
11425|      0|        symbolTable.relateToOperator("atomicCounterAnd", EOpAtomicAnd);
11426|      0|        symbolTable.relateToOperator("atomicCounterOr", EOpAtomicOr);
11427|      0|        symbolTable.relateToOperator("atomicCounterXor", EOpAtomicXor);
11428|      0|        symbolTable.relateToOperator("atomicCounterExchange", EOpAtomicExchange);
11429|      0|        symbolTable.relateToOperator("atomicCounterCompSwap", EOpAtomicCompSwap);
11430|      0|    }
11431|       |
11432|  8.65k|    symbolTable.relateToOperator("fma",               EOpFma);
11433|  8.65k|    symbolTable.relateToOperator("frexp",             EOpFrexp);
11434|  8.65k|    symbolTable.relateToOperator("ldexp",             EOpLdexp);
11435|  8.65k|    symbolTable.relateToOperator("uaddCarry",         EOpAddCarry);
11436|  8.65k|    symbolTable.relateToOperator("usubBorrow",        EOpSubBorrow);
11437|  8.65k|    symbolTable.relateToOperator("umulExtended",      EOpUMulExtended);
11438|  8.65k|    symbolTable.relateToOperator("imulExtended",      EOpIMulExtended);
11439|  8.65k|    symbolTable.relateToOperator("bitfieldExtract",   EOpBitfieldExtract);
11440|  8.65k|    symbolTable.relateToOperator("bitfieldInsert",    EOpBitfieldInsert);
11441|  8.65k|    symbolTable.relateToOperator("bitfieldReverse",   EOpBitFieldReverse);
11442|  8.65k|    symbolTable.relateToOperator("bitCount",          EOpBitCount);
11443|  8.65k|    symbolTable.relateToOperator("findLSB",           EOpFindLSB);
11444|  8.65k|    symbolTable.relateToOperator("findMSB",           EOpFindMSB);
11445|       |
11446|  8.65k|    symbolTable.relateToOperator("helperInvocationEXT",  EOpIsHelperInvocation);
11447|       |
11448|  8.65k|    symbolTable.relateToOperator("countLeadingZeros",  EOpCountLeadingZeros);
11449|  8.65k|    symbolTable.relateToOperator("countTrailingZeros", EOpCountTrailingZeros);
11450|  8.65k|    symbolTable.relateToOperator("absoluteDifference", EOpAbsDifference);
11451|  8.65k|    symbolTable.relateToOperator("addSaturate",        EOpAddSaturate);
11452|  8.65k|    symbolTable.relateToOperator("subtractSaturate",   EOpSubSaturate);
11453|  8.65k|    symbolTable.relateToOperator("average",            EOpAverage);
11454|  8.65k|    symbolTable.relateToOperator("averageRounded",     EOpAverageRounded);
11455|  8.65k|    symbolTable.relateToOperator("multiply32x16",      EOpMul32x16);
11456|  8.65k|    symbolTable.relateToOperator("debugPrintfEXT",     EOpDebugPrintf);
11457|  8.65k|    symbolTable.relateToOperator("assumeEXT",          EOpAssumeEXT);
11458|  8.65k|    symbolTable.relateToOperator("expectEXT",          EOpExpectEXT);
11459|  8.65k|    symbolTable.relateToOperator("abortEXT",           EOpAbortEXT);
11460|       |
11461|       |
11462|  8.65k|    if (PureOperatorBuiltins) {
  ------------------
  |  Branch (11462:9): [True: 8.65k, Folded]
  ------------------
11463|  8.65k|        symbolTable.relateToOperator("imageSize",               EOpImageQuerySize);
11464|  8.65k|        symbolTable.relateToOperator("imageSamples",            EOpImageQuerySamples);
11465|  8.65k|        symbolTable.relateToOperator("imageLoad",               EOpImageLoad);
11466|  8.65k|        symbolTable.relateToOperator("imageStore",              EOpImageStore);
11467|  8.65k|        symbolTable.relateToOperator("imageAtomicAdd",          EOpImageAtomicAdd);
11468|  8.65k|        symbolTable.relateToOperator("imageAtomicMin",          EOpImageAtomicMin);
11469|  8.65k|        symbolTable.relateToOperator("imageAtomicMax",          EOpImageAtomicMax);
11470|  8.65k|        symbolTable.relateToOperator("imageAtomicAnd",          EOpImageAtomicAnd);
11471|  8.65k|        symbolTable.relateToOperator("imageAtomicOr",           EOpImageAtomicOr);
11472|  8.65k|        symbolTable.relateToOperator("imageAtomicXor",          EOpImageAtomicXor);
11473|  8.65k|        symbolTable.relateToOperator("imageAtomicExchange",     EOpImageAtomicExchange);
11474|  8.65k|        symbolTable.relateToOperator("imageAtomicCompSwap",     EOpImageAtomicCompSwap);
11475|  8.65k|        symbolTable.relateToOperator("imageAtomicLoad",         EOpImageAtomicLoad);
11476|  8.65k|        symbolTable.relateToOperator("imageAtomicStore",        EOpImageAtomicStore);
11477|       |
11478|  8.65k|        symbolTable.relateToOperator("subpassLoad",             EOpSubpassLoad);
11479|  8.65k|        symbolTable.relateToOperator("subpassLoadMS",           EOpSubpassLoadMS);
11480|       |
11481|  8.65k|        symbolTable.relateToOperator("textureGather",           EOpTextureGather);
11482|  8.65k|        symbolTable.relateToOperator("textureGatherOffset",     EOpTextureGatherOffset);
11483|  8.65k|        symbolTable.relateToOperator("textureGatherOffsets",    EOpTextureGatherOffsets);
11484|       |
11485|  8.65k|        symbolTable.relateToOperator("noise1", EOpNoise);
11486|  8.65k|        symbolTable.relateToOperator("noise2", EOpNoise);
11487|  8.65k|        symbolTable.relateToOperator("noise3", EOpNoise);
11488|  8.65k|        symbolTable.relateToOperator("noise4", EOpNoise);
11489|       |
11490|  8.65k|        symbolTable.relateToOperator("textureFootprintNV",          EOpImageSampleFootprintNV);
11491|  8.65k|        symbolTable.relateToOperator("textureFootprintClampNV",     EOpImageSampleFootprintClampNV);
11492|  8.65k|        symbolTable.relateToOperator("textureFootprintLodNV",       EOpImageSampleFootprintLodNV);
11493|  8.65k|        symbolTable.relateToOperator("textureFootprintGradNV",      EOpImageSampleFootprintGradNV);
11494|  8.65k|        symbolTable.relateToOperator("textureFootprintGradClampNV", EOpImageSampleFootprintGradClampNV);
11495|       |
11496|  8.65k|        if (spvVersion.spv == 0 && IncludeLegacy(version, profile, spvVersion))
  ------------------
  |  Branch (11496:13): [True: 0, False: 8.65k]
  |  Branch (11496:36): [True: 0, False: 0]
  ------------------
11497|      0|            symbolTable.relateToOperator("ftransform", EOpFtransform);
11498|       |
11499|  8.65k|        if (spvVersion.spv == 0 && (IncludeLegacy(version, profile, spvVersion) ||
  ------------------
  |  Branch (11499:13): [True: 0, False: 8.65k]
  |  Branch (11499:37): [True: 0, False: 0]
  ------------------
11500|      0|            (profile == EEsProfile && version == 100))) {
  ------------------
  |  Branch (11500:14): [True: 0, False: 0]
  |  Branch (11500:39): [True: 0, False: 0]
  ------------------
11501|       |
11502|      0|            symbolTable.relateToOperator("texture1D",                EOpTexture);
11503|      0|            symbolTable.relateToOperator("texture1DGradARB",         EOpTextureGrad);
11504|      0|            symbolTable.relateToOperator("texture1DProj",            EOpTextureProj);
11505|      0|            symbolTable.relateToOperator("texture1DProjGradARB",     EOpTextureProjGrad);
11506|      0|            symbolTable.relateToOperator("texture1DLod",             EOpTextureLod);
11507|      0|            symbolTable.relateToOperator("texture1DProjLod",         EOpTextureProjLod);
11508|       |
11509|      0|            symbolTable.relateToOperator("texture2DRect",            EOpTexture);
11510|      0|            symbolTable.relateToOperator("texture2DRectProj",        EOpTextureProj);
11511|      0|            symbolTable.relateToOperator("texture2DRectGradARB",     EOpTextureGrad);
11512|      0|            symbolTable.relateToOperator("texture2DRectProjGradARB", EOpTextureProjGrad);
11513|      0|            symbolTable.relateToOperator("shadow2DRect",             EOpTexture);
11514|      0|            symbolTable.relateToOperator("shadow2DRectProj",         EOpTextureProj);
11515|      0|            symbolTable.relateToOperator("shadow2DRectGradARB",      EOpTextureGrad);
11516|      0|            symbolTable.relateToOperator("shadow2DRectProjGradARB",  EOpTextureProjGrad);
11517|       |
11518|      0|            symbolTable.relateToOperator("texture2D",                EOpTexture);
11519|      0|            symbolTable.relateToOperator("texture2DProj",            EOpTextureProj);
11520|      0|            symbolTable.relateToOperator("texture2DGradEXT",         EOpTextureGrad);
11521|      0|            symbolTable.relateToOperator("texture2DGradARB",         EOpTextureGrad);
11522|      0|            symbolTable.relateToOperator("texture2DProjGradEXT",     EOpTextureProjGrad);
11523|      0|            symbolTable.relateToOperator("texture2DProjGradARB",     EOpTextureProjGrad);
11524|      0|            symbolTable.relateToOperator("texture2DLod",             EOpTextureLod);
11525|      0|            symbolTable.relateToOperator("texture2DLodEXT",          EOpTextureLod);
11526|      0|            symbolTable.relateToOperator("texture2DProjLod",         EOpTextureProjLod);
11527|      0|            symbolTable.relateToOperator("texture2DProjLodEXT",      EOpTextureProjLod);
11528|       |
11529|      0|            symbolTable.relateToOperator("texture3D",                EOpTexture);
11530|      0|            symbolTable.relateToOperator("texture3DGradARB",         EOpTextureGrad);
11531|      0|            symbolTable.relateToOperator("texture3DProj",            EOpTextureProj);
11532|      0|            symbolTable.relateToOperator("texture3DProjGradARB",     EOpTextureProjGrad);
11533|      0|            symbolTable.relateToOperator("texture3DLod",             EOpTextureLod);
11534|      0|            symbolTable.relateToOperator("texture3DProjLod",         EOpTextureProjLod);
11535|      0|            symbolTable.relateToOperator("textureCube",              EOpTexture);
11536|      0|            symbolTable.relateToOperator("textureCubeGradEXT",       EOpTextureGrad);
11537|      0|            symbolTable.relateToOperator("textureCubeGradARB",       EOpTextureGrad);
11538|      0|            symbolTable.relateToOperator("textureCubeLod",           EOpTextureLod);
11539|      0|            symbolTable.relateToOperator("textureCubeLodEXT",        EOpTextureLod);
11540|      0|            symbolTable.relateToOperator("shadow1D",                 EOpTexture);
11541|      0|            symbolTable.relateToOperator("shadow1DGradARB",          EOpTextureGrad);
11542|      0|            symbolTable.relateToOperator("shadow2D",                 EOpTexture);
11543|      0|            symbolTable.relateToOperator("shadow2DGradARB",          EOpTextureGrad);
11544|      0|            symbolTable.relateToOperator("shadow1DProj",             EOpTextureProj);
11545|      0|            symbolTable.relateToOperator("shadow2DProj",             EOpTextureProj);
11546|      0|            symbolTable.relateToOperator("shadow1DProjGradARB",      EOpTextureProjGrad);
11547|      0|            symbolTable.relateToOperator("shadow2DProjGradARB",      EOpTextureProjGrad);
11548|      0|            symbolTable.relateToOperator("shadow1DLod",              EOpTextureLod);
11549|      0|            symbolTable.relateToOperator("shadow2DLod",              EOpTextureLod);
11550|      0|            symbolTable.relateToOperator("shadow1DProjLod",          EOpTextureProjLod);
11551|      0|            symbolTable.relateToOperator("shadow2DProjLod",          EOpTextureProjLod);
11552|      0|        }
11553|       |
11554|  8.65k|        if (profile != EEsProfile) {
  ------------------
  |  Branch (11554:13): [True: 7.75k, False: 902]
  ------------------
11555|  7.75k|            symbolTable.relateToOperator("sparseTextureARB",                EOpSparseTexture);
11556|  7.75k|            symbolTable.relateToOperator("sparseTextureLodARB",             EOpSparseTextureLod);
11557|  7.75k|            symbolTable.relateToOperator("sparseTextureOffsetARB",          EOpSparseTextureOffset);
11558|  7.75k|            symbolTable.relateToOperator("sparseTexelFetchARB",             EOpSparseTextureFetch);
11559|  7.75k|            symbolTable.relateToOperator("sparseTexelFetchOffsetARB",       EOpSparseTextureFetchOffset);
11560|  7.75k|            symbolTable.relateToOperator("sparseTextureLodOffsetARB",       EOpSparseTextureLodOffset);
11561|  7.75k|            symbolTable.relateToOperator("sparseTextureGradARB",            EOpSparseTextureGrad);
11562|  7.75k|            symbolTable.relateToOperator("sparseTextureGradOffsetARB",      EOpSparseTextureGradOffset);
11563|  7.75k|            symbolTable.relateToOperator("sparseTextureGatherARB",          EOpSparseTextureGather);
11564|  7.75k|            symbolTable.relateToOperator("sparseTextureGatherOffsetARB",    EOpSparseTextureGatherOffset);
11565|  7.75k|            symbolTable.relateToOperator("sparseTextureGatherOffsetsARB",   EOpSparseTextureGatherOffsets);
11566|  7.75k|            symbolTable.relateToOperator("sparseImageLoadARB",              EOpSparseImageLoad);
11567|  7.75k|            symbolTable.relateToOperator("sparseTexelsResidentARB",         EOpSparseTexelsResident);
11568|       |
11569|  7.75k|            symbolTable.relateToOperator("sparseTextureClampARB",           EOpSparseTextureClamp);
11570|  7.75k|            symbolTable.relateToOperator("sparseTextureOffsetClampARB",     EOpSparseTextureOffsetClamp);
11571|  7.75k|            symbolTable.relateToOperator("sparseTextureGradClampARB",       EOpSparseTextureGradClamp);
11572|  7.75k|            symbolTable.relateToOperator("sparseTextureGradOffsetClampARB", EOpSparseTextureGradOffsetClamp);
11573|  7.75k|            symbolTable.relateToOperator("textureClampARB",                 EOpTextureClamp);
11574|  7.75k|            symbolTable.relateToOperator("textureOffsetClampARB",           EOpTextureOffsetClamp);
11575|  7.75k|            symbolTable.relateToOperator("textureGradClampARB",             EOpTextureGradClamp);
11576|  7.75k|            symbolTable.relateToOperator("textureGradOffsetClampARB",       EOpTextureGradOffsetClamp);
11577|       |
11578|  7.75k|            symbolTable.relateToOperator("ballotARB",                       EOpBallot);
11579|  7.75k|            symbolTable.relateToOperator("readInvocationARB",               EOpReadInvocation);
11580|  7.75k|            symbolTable.relateToOperator("readFirstInvocationARB",          EOpReadFirstInvocation);
11581|       |
11582|  7.75k|            if (version >= 430) {
  ------------------
  |  Branch (11582:17): [True: 5.62k, False: 2.13k]
  ------------------
11583|  5.62k|                symbolTable.relateToOperator("anyInvocationARB",            EOpAnyInvocation);
11584|  5.62k|                symbolTable.relateToOperator("allInvocationsARB",           EOpAllInvocations);
11585|  5.62k|                symbolTable.relateToOperator("allInvocationsEqualARB",      EOpAllInvocationsEqual);
11586|  5.62k|            }
11587|  7.75k|            if (version >= 460) {
  ------------------
  |  Branch (11587:17): [True: 630, False: 7.12k]
  ------------------
11588|    630|                symbolTable.relateToOperator("anyInvocation",               EOpAnyInvocation);
11589|    630|                symbolTable.relateToOperator("allInvocations",              EOpAllInvocations);
11590|    630|                symbolTable.relateToOperator("allInvocationsEqual",         EOpAllInvocationsEqual);
11591|    630|            }
11592|       |            // As per dependency between NV_gpu_shader5 and ARB_shader_group_vote
11593|       |            // anyInvocationARB = anyThreadNV
11594|       |            // allInvocationsARB = allThreadsNV
11595|       |            // allInvocationsEqualARB = allThreadsEqualNV
11596|       |            // Thus we reuse the Op's
11597|  7.75k|            if (version >= 150) {
  ------------------
  |  Branch (11597:17): [True: 6.72k, False: 1.03k]
  ------------------
11598|  6.72k|                symbolTable.relateToOperator("anyThreadNV",            EOpAnyInvocation);
11599|  6.72k|                symbolTable.relateToOperator("allThreadsNV",           EOpAllInvocations);
11600|  6.72k|                symbolTable.relateToOperator("allThreadsEqualNV",      EOpAllInvocationsEqual);
11601|  6.72k|            }
11602|  7.75k|            symbolTable.relateToOperator("minInvocationsAMD",                           EOpMinInvocations);
11603|  7.75k|            symbolTable.relateToOperator("maxInvocationsAMD",                           EOpMaxInvocations);
11604|  7.75k|            symbolTable.relateToOperator("addInvocationsAMD",                           EOpAddInvocations);
11605|  7.75k|            symbolTable.relateToOperator("minInvocationsNonUniformAMD",                 EOpMinInvocationsNonUniform);
11606|  7.75k|            symbolTable.relateToOperator("maxInvocationsNonUniformAMD",                 EOpMaxInvocationsNonUniform);
11607|  7.75k|            symbolTable.relateToOperator("addInvocationsNonUniformAMD",                 EOpAddInvocationsNonUniform);
11608|  7.75k|            symbolTable.relateToOperator("minInvocationsInclusiveScanAMD",              EOpMinInvocationsInclusiveScan);
11609|  7.75k|            symbolTable.relateToOperator("maxInvocationsInclusiveScanAMD",              EOpMaxInvocationsInclusiveScan);
11610|  7.75k|            symbolTable.relateToOperator("addInvocationsInclusiveScanAMD",              EOpAddInvocationsInclusiveScan);
11611|  7.75k|            symbolTable.relateToOperator("minInvocationsInclusiveScanNonUniformAMD",    EOpMinInvocationsInclusiveScanNonUniform);
11612|  7.75k|            symbolTable.relateToOperator("maxInvocationsInclusiveScanNonUniformAMD",    EOpMaxInvocationsInclusiveScanNonUniform);
11613|  7.75k|            symbolTable.relateToOperator("addInvocationsInclusiveScanNonUniformAMD",    EOpAddInvocationsInclusiveScanNonUniform);
11614|  7.75k|            symbolTable.relateToOperator("minInvocationsExclusiveScanAMD",              EOpMinInvocationsExclusiveScan);
11615|  7.75k|            symbolTable.relateToOperator("maxInvocationsExclusiveScanAMD",              EOpMaxInvocationsExclusiveScan);
11616|  7.75k|            symbolTable.relateToOperator("addInvocationsExclusiveScanAMD",              EOpAddInvocationsExclusiveScan);
11617|  7.75k|            symbolTable.relateToOperator("minInvocationsExclusiveScanNonUniformAMD",    EOpMinInvocationsExclusiveScanNonUniform);
11618|  7.75k|            symbolTable.relateToOperator("maxInvocationsExclusiveScanNonUniformAMD",    EOpMaxInvocationsExclusiveScanNonUniform);
11619|  7.75k|            symbolTable.relateToOperator("addInvocationsExclusiveScanNonUniformAMD",    EOpAddInvocationsExclusiveScanNonUniform);
11620|  7.75k|            symbolTable.relateToOperator("swizzleInvocationsAMD",                       EOpSwizzleInvocations);
11621|  7.75k|            symbolTable.relateToOperator("swizzleInvocationsMaskedAMD",                 EOpSwizzleInvocationsMasked);
11622|  7.75k|            symbolTable.relateToOperator("writeInvocationAMD",                          EOpWriteInvocation);
11623|  7.75k|            symbolTable.relateToOperator("mbcntAMD",                                    EOpMbcnt);
11624|       |
11625|  7.75k|            symbolTable.relateToOperator("min3",    EOpMin3);
11626|  7.75k|            symbolTable.relateToOperator("max3",    EOpMax3);
11627|  7.75k|            symbolTable.relateToOperator("mid3",    EOpMid3);
11628|       |
11629|  7.75k|            symbolTable.relateToOperator("cubeFaceIndexAMD",    EOpCubeFaceIndex);
11630|  7.75k|            symbolTable.relateToOperator("cubeFaceCoordAMD",    EOpCubeFaceCoord);
11631|  7.75k|            symbolTable.relateToOperator("timeAMD",             EOpTime);
11632|  7.75k|            symbolTable.relateToOperator("ballotAMD",           EOpBallot);
11633|       |
11634|  7.75k|            symbolTable.relateToOperator("textureGatherLodAMD",                 EOpTextureGatherLod);
11635|  7.75k|            symbolTable.relateToOperator("textureGatherLodOffsetAMD",           EOpTextureGatherLodOffset);
11636|  7.75k|            symbolTable.relateToOperator("textureGatherLodOffsetsAMD",          EOpTextureGatherLodOffsets);
11637|  7.75k|            symbolTable.relateToOperator("sparseTextureGatherLodAMD",           EOpSparseTextureGatherLod);
11638|  7.75k|            symbolTable.relateToOperator("sparseTextureGatherLodOffsetAMD",     EOpSparseTextureGatherLodOffset);
11639|  7.75k|            symbolTable.relateToOperator("sparseTextureGatherLodOffsetsAMD",    EOpSparseTextureGatherLodOffsets);
11640|       |
11641|  7.75k|            symbolTable.relateToOperator("imageLoadLodAMD",                     EOpImageLoadLod);
11642|  7.75k|            symbolTable.relateToOperator("imageStoreLodAMD",                    EOpImageStoreLod);
11643|  7.75k|            symbolTable.relateToOperator("sparseImageLoadLodAMD",               EOpSparseImageLoadLod);
11644|       |
11645|  7.75k|            symbolTable.relateToOperator("fragmentMaskFetchAMD",                EOpFragmentMaskFetch);
11646|  7.75k|            symbolTable.relateToOperator("fragmentFetchAMD",                    EOpFragmentFetch);
11647|  7.75k|        }
11648|       |
11649|       |        // GL_EXT_integer_dot_product
11650|  8.65k|        if ((profile == EEsProfile && version >= 300) ||
  ------------------
  |  Branch (11650:14): [True: 902, False: 7.75k]
  |  Branch (11650:39): [True: 902, False: 0]
  ------------------
11651|  7.75k|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (11651:14): [True: 7.75k, False: 0]
  |  Branch (11651:39): [True: 4.21k, False: 3.54k]
  ------------------
11652|  5.11k|            symbolTable.relateToOperator("dotEXT", EOpDot);
11653|  5.11k|            symbolTable.relateToOperator("dotPacked4x8EXT", EOpDotPackedEXT);
11654|  5.11k|            symbolTable.relateToOperator("dotAccSatEXT", EOpDotAccSatEXT);
11655|  5.11k|            symbolTable.relateToOperator("dotPacked4x8AccSatEXT", EOpDotPackedAccSatEXT);
11656|  5.11k|        }
11657|       |
11658|       |        // GL_EXT_bfloat16
11659|  8.65k|        if ((profile == EEsProfile && version >= 320) ||
  ------------------
  |  Branch (11659:14): [True: 902, False: 7.75k]
  |  Branch (11659:39): [True: 56, False: 846]
  ------------------
11660|  8.60k|            (profile != EEsProfile && version >= 450)) {
  ------------------
  |  Branch (11660:14): [True: 7.75k, False: 846]
  |  Branch (11660:39): [True: 4.21k, False: 3.54k]
  ------------------
11661|  4.27k|            symbolTable.relateToOperator("bfloat16BitsToIntEXT",  EOpFloatBitsToInt);
11662|  4.27k|            symbolTable.relateToOperator("bfloat16BitsToUintEXT", EOpFloatBitsToUint);
11663|  4.27k|            symbolTable.relateToOperator("intBitsToBFloat16EXT",  EOpIntBitsToFloat);
11664|  4.27k|            symbolTable.relateToOperator("uintBitsToBFloat16EXT", EOpUintBitsToFloat);
11665|       |
11666|  4.27k|            symbolTable.relateToOperator("floate5m2BitsToIntEXT",  EOpFloatBitsToInt);
11667|  4.27k|            symbolTable.relateToOperator("floate5m2BitsToUintEXT", EOpFloatBitsToUint);
11668|  4.27k|            symbolTable.relateToOperator("intBitsToFloate5m2EXT",  EOpIntBitsToFloat);
11669|  4.27k|            symbolTable.relateToOperator("uintBitsToFloate5m2EXT", EOpUintBitsToFloat);
11670|       |
11671|  4.27k|            symbolTable.relateToOperator("floate4m3BitsToIntEXT",  EOpFloatBitsToInt);
11672|  4.27k|            symbolTable.relateToOperator("floate4m3BitsToUintEXT", EOpFloatBitsToUint);
11673|  4.27k|            symbolTable.relateToOperator("intBitsToFloate4m3EXT",  EOpIntBitsToFloat);
11674|  4.27k|            symbolTable.relateToOperator("uintBitsToFloate4m3EXT", EOpUintBitsToFloat);
11675|       |
11676|  4.27k|            symbolTable.relateToOperator("saturatedConvertEXT", EOpConstructSaturated);
11677|       |
11678|  4.27k|            symbolTable.relateToOperator("floatue8m0BitsToIntEXT",  EOpFloatBitsToInt);
11679|  4.27k|            symbolTable.relateToOperator("floatue8m0BitsToUintEXT", EOpFloatBitsToUint);
11680|  4.27k|            symbolTable.relateToOperator("intBitsToFloatue8m0EXT",  EOpIntBitsToFloat);
11681|  4.27k|            symbolTable.relateToOperator("uintBitsToFloatue8m0EXT", EOpUintBitsToFloat);
11682|       |
11683|  4.27k|            symbolTable.relateToOperator("floatmxint8BitsToIntEXT",  EOpFloatBitsToInt);
11684|  4.27k|            symbolTable.relateToOperator("floatmxint8BitsToUintEXT", EOpFloatBitsToUint);
11685|  4.27k|            symbolTable.relateToOperator("intBitsToFloatmxint8EXT",  EOpIntBitsToFloat);
11686|  4.27k|            symbolTable.relateToOperator("uintBitsToFloatmxint8EXT", EOpUintBitsToFloat);
11687|       |
11688|  4.27k|            symbolTable.relateToOperator("unpackFloat2xfe2m1EXT", EOpUnpackFloat2xE2M1);
11689|  4.27k|            symbolTable.relateToOperator("unpackFloat4xfe2m1EXT", EOpUnpackFloat4xE2M1);
11690|  4.27k|            symbolTable.relateToOperator("unpackFloat8xfe2m1EXT", EOpUnpackFloat8xE2M1);
11691|  4.27k|            symbolTable.relateToOperator("unpackFloat16xfe2m1EXT", EOpUnpackFloat16xE2M1);
11692|  4.27k|            symbolTable.relateToOperator("packFloat2xfe2m1EXT", EOpPackFloat2xE2M1);
11693|  4.27k|            symbolTable.relateToOperator("packFloat4xfe2m1EXT", EOpPackFloat4xE2M1);
11694|  4.27k|            symbolTable.relateToOperator("packFloat8xfe2m1EXT", EOpPackFloat8xE2M1);
11695|  4.27k|            symbolTable.relateToOperator("packFloat16xfe2m1EXT", EOpPackFloat16xE2M1);
11696|       |
11697|  4.27k|            symbolTable.relateToOperator("unpackFloat4xfe3m2EXT", EOpUnpackFloat4xE3M2);
11698|  4.27k|            symbolTable.relateToOperator("unpackFloat8xfe3m2EXT", EOpUnpackFloat8xE3M2);
11699|  4.27k|            symbolTable.relateToOperator("unpackFloat16xfe3m2EXT", EOpUnpackFloat16xE3M2);
11700|  4.27k|            symbolTable.relateToOperator("packFloat4xfe3m2EXT", EOpPackFloat4xE3M2);
11701|  4.27k|            symbolTable.relateToOperator("packFloat8xfe3m2EXT", EOpPackFloat8xE3M2);
11702|  4.27k|            symbolTable.relateToOperator("packFloat16xfe3m2EXT", EOpPackFloat16xE3M2);
11703|       |
11704|  4.27k|            symbolTable.relateToOperator("unpackFloat4xfe2m3EXT", EOpUnpackFloat4xE2M3);
11705|  4.27k|            symbolTable.relateToOperator("unpackFloat8xfe2m3EXT", EOpUnpackFloat8xE2M3);
11706|  4.27k|            symbolTable.relateToOperator("unpackFloat16xfe2m3EXT", EOpUnpackFloat16xE2M3);
11707|  4.27k|            symbolTable.relateToOperator("packFloat4xfe2m3EXT", EOpPackFloat4xE2M3);
11708|  4.27k|            symbolTable.relateToOperator("packFloat8xfe2m3EXT", EOpPackFloat8xE2M3);
11709|  4.27k|            symbolTable.relateToOperator("packFloat16xfe2m3EXT", EOpPackFloat16xE2M3);
11710|       |
11711|  4.27k|            symbolTable.relateToOperator("bitcastExtractfe2m1EXT", EOpBitcastExtractE2M1);
11712|  4.27k|            symbolTable.relateToOperator("bitcastExtractfe3m2EXT", EOpBitcastExtractE3M2);
11713|  4.27k|            symbolTable.relateToOperator("bitcastExtractfe2m3EXT", EOpBitcastExtractE2M3);
11714|  4.27k|        }
11715|       |
11716|       |        // GL_KHR_shader_subgroup
11717|  8.65k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11717:14): [True: 902, False: 7.75k]
  |  Branch (11717:39): [True: 902, False: 0]
  ------------------
11718|  8.65k|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (11718:14): [True: 7.75k, False: 0]
  |  Branch (11718:39): [True: 7.75k, False: 0]
  ------------------
11719|  8.65k|            symbolTable.relateToOperator("subgroupBarrier",                 EOpSubgroupBarrier);
11720|  8.65k|            symbolTable.relateToOperator("subgroupMemoryBarrier",           EOpSubgroupMemoryBarrier);
11721|  8.65k|            symbolTable.relateToOperator("subgroupMemoryBarrierBuffer",     EOpSubgroupMemoryBarrierBuffer);
11722|  8.65k|            symbolTable.relateToOperator("subgroupMemoryBarrierImage",      EOpSubgroupMemoryBarrierImage);
11723|  8.65k|            symbolTable.relateToOperator("subgroupElect",                   EOpSubgroupElect);
11724|  8.65k|            symbolTable.relateToOperator("subgroupAll",                     EOpSubgroupAll);
11725|  8.65k|            symbolTable.relateToOperator("subgroupAny",                     EOpSubgroupAny);
11726|  8.65k|            symbolTable.relateToOperator("subgroupAllEqual",                EOpSubgroupAllEqual);
11727|  8.65k|            symbolTable.relateToOperator("subgroupBroadcast",               EOpSubgroupBroadcast);
11728|  8.65k|            symbolTable.relateToOperator("subgroupBroadcastFirst",          EOpSubgroupBroadcastFirst);
11729|  8.65k|            symbolTable.relateToOperator("subgroupBallot",                  EOpSubgroupBallot);
11730|  8.65k|            symbolTable.relateToOperator("subgroupInverseBallot",           EOpSubgroupInverseBallot);
11731|  8.65k|            symbolTable.relateToOperator("subgroupBallotBitExtract",        EOpSubgroupBallotBitExtract);
11732|  8.65k|            symbolTable.relateToOperator("subgroupBallotBitCount",          EOpSubgroupBallotBitCount);
11733|  8.65k|            symbolTable.relateToOperator("subgroupBallotInclusiveBitCount", EOpSubgroupBallotInclusiveBitCount);
11734|  8.65k|            symbolTable.relateToOperator("subgroupBallotExclusiveBitCount", EOpSubgroupBallotExclusiveBitCount);
11735|  8.65k|            symbolTable.relateToOperator("subgroupBallotFindLSB",           EOpSubgroupBallotFindLSB);
11736|  8.65k|            symbolTable.relateToOperator("subgroupBallotFindMSB",           EOpSubgroupBallotFindMSB);
11737|  8.65k|            symbolTable.relateToOperator("subgroupShuffle",                 EOpSubgroupShuffle);
11738|  8.65k|            symbolTable.relateToOperator("subgroupShuffleXor",              EOpSubgroupShuffleXor);
11739|  8.65k|            symbolTable.relateToOperator("subgroupShuffleUp",               EOpSubgroupShuffleUp);
11740|  8.65k|            symbolTable.relateToOperator("subgroupShuffleDown",             EOpSubgroupShuffleDown);
11741|  8.65k|            symbolTable.relateToOperator("subgroupRotate",                  EOpSubgroupRotate);
11742|  8.65k|            symbolTable.relateToOperator("subgroupClusteredRotate",         EOpSubgroupClusteredRotate);
11743|  8.65k|            symbolTable.relateToOperator("subgroupAdd",                     EOpSubgroupAdd);
11744|  8.65k|            symbolTable.relateToOperator("subgroupMul",                     EOpSubgroupMul);
11745|  8.65k|            symbolTable.relateToOperator("subgroupMin",                     EOpSubgroupMin);
11746|  8.65k|            symbolTable.relateToOperator("subgroupMax",                     EOpSubgroupMax);
11747|  8.65k|            symbolTable.relateToOperator("subgroupAnd",                     EOpSubgroupAnd);
11748|  8.65k|            symbolTable.relateToOperator("subgroupOr",                      EOpSubgroupOr);
11749|  8.65k|            symbolTable.relateToOperator("subgroupXor",                     EOpSubgroupXor);
11750|  8.65k|            symbolTable.relateToOperator("subgroupInclusiveAdd",            EOpSubgroupInclusiveAdd);
11751|  8.65k|            symbolTable.relateToOperator("subgroupInclusiveMul",            EOpSubgroupInclusiveMul);
11752|  8.65k|            symbolTable.relateToOperator("subgroupInclusiveMin",            EOpSubgroupInclusiveMin);
11753|  8.65k|            symbolTable.relateToOperator("subgroupInclusiveMax",            EOpSubgroupInclusiveMax);
11754|  8.65k|            symbolTable.relateToOperator("subgroupInclusiveAnd",            EOpSubgroupInclusiveAnd);
11755|  8.65k|            symbolTable.relateToOperator("subgroupInclusiveOr",             EOpSubgroupInclusiveOr);
11756|  8.65k|            symbolTable.relateToOperator("subgroupInclusiveXor",            EOpSubgroupInclusiveXor);
11757|  8.65k|            symbolTable.relateToOperator("subgroupExclusiveAdd",            EOpSubgroupExclusiveAdd);
11758|  8.65k|            symbolTable.relateToOperator("subgroupExclusiveMul",            EOpSubgroupExclusiveMul);
11759|  8.65k|            symbolTable.relateToOperator("subgroupExclusiveMin",            EOpSubgroupExclusiveMin);
11760|  8.65k|            symbolTable.relateToOperator("subgroupExclusiveMax",            EOpSubgroupExclusiveMax);
11761|  8.65k|            symbolTable.relateToOperator("subgroupExclusiveAnd",            EOpSubgroupExclusiveAnd);
11762|  8.65k|            symbolTable.relateToOperator("subgroupExclusiveOr",             EOpSubgroupExclusiveOr);
11763|  8.65k|            symbolTable.relateToOperator("subgroupExclusiveXor",            EOpSubgroupExclusiveXor);
11764|  8.65k|            symbolTable.relateToOperator("subgroupClusteredAdd",            EOpSubgroupClusteredAdd);
11765|  8.65k|            symbolTable.relateToOperator("subgroupClusteredMul",            EOpSubgroupClusteredMul);
11766|  8.65k|            symbolTable.relateToOperator("subgroupClusteredMin",            EOpSubgroupClusteredMin);
11767|  8.65k|            symbolTable.relateToOperator("subgroupClusteredMax",            EOpSubgroupClusteredMax);
11768|  8.65k|            symbolTable.relateToOperator("subgroupClusteredAnd",            EOpSubgroupClusteredAnd);
11769|  8.65k|            symbolTable.relateToOperator("subgroupClusteredOr",             EOpSubgroupClusteredOr);
11770|  8.65k|            symbolTable.relateToOperator("subgroupClusteredXor",            EOpSubgroupClusteredXor);
11771|  8.65k|            symbolTable.relateToOperator("subgroupQuadBroadcast",           EOpSubgroupQuadBroadcast);
11772|  8.65k|            symbolTable.relateToOperator("subgroupQuadSwapHorizontal",      EOpSubgroupQuadSwapHorizontal);
11773|  8.65k|            symbolTable.relateToOperator("subgroupQuadSwapVertical",        EOpSubgroupQuadSwapVertical);
11774|  8.65k|            symbolTable.relateToOperator("subgroupQuadSwapDiagonal",        EOpSubgroupQuadSwapDiagonal);
11775|       |
11776|  8.65k|            symbolTable.relateToOperator("subgroupPartitionNV",                          EOpSubgroupPartition);
11777|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedAddNV",                     EOpSubgroupPartitionedAdd);
11778|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedMulNV",                     EOpSubgroupPartitionedMul);
11779|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedMinNV",                     EOpSubgroupPartitionedMin);
11780|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedMaxNV",                     EOpSubgroupPartitionedMax);
11781|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedAndNV",                     EOpSubgroupPartitionedAnd);
11782|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedOrNV",                      EOpSubgroupPartitionedOr);
11783|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedXorNV",                     EOpSubgroupPartitionedXor);
11784|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedInclusiveAddNV",            EOpSubgroupPartitionedInclusiveAdd);
11785|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedInclusiveMulNV",            EOpSubgroupPartitionedInclusiveMul);
11786|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedInclusiveMinNV",            EOpSubgroupPartitionedInclusiveMin);
11787|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedInclusiveMaxNV",            EOpSubgroupPartitionedInclusiveMax);
11788|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedInclusiveAndNV",            EOpSubgroupPartitionedInclusiveAnd);
11789|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedInclusiveOrNV",             EOpSubgroupPartitionedInclusiveOr);
11790|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedInclusiveXorNV",            EOpSubgroupPartitionedInclusiveXor);
11791|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedExclusiveAddNV",            EOpSubgroupPartitionedExclusiveAdd);
11792|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedExclusiveMulNV",            EOpSubgroupPartitionedExclusiveMul);
11793|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedExclusiveMinNV",            EOpSubgroupPartitionedExclusiveMin);
11794|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedExclusiveMaxNV",            EOpSubgroupPartitionedExclusiveMax);
11795|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedExclusiveAndNV",            EOpSubgroupPartitionedExclusiveAnd);
11796|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedExclusiveOrNV",             EOpSubgroupPartitionedExclusiveOr);
11797|  8.65k|            symbolTable.relateToOperator("subgroupPartitionedExclusiveXorNV",            EOpSubgroupPartitionedExclusiveXor);
11798|  8.65k|        }
11799|       |
11800|  8.65k|        if (profile == EEsProfile) {
  ------------------
  |  Branch (11800:13): [True: 902, False: 7.75k]
  ------------------
11801|    902|            symbolTable.relateToOperator("shadow2DEXT",              EOpTexture);
11802|    902|            symbolTable.relateToOperator("shadow2DProjEXT",          EOpTextureProj);
11803|    902|        }
11804|       |
11805|       |        // GL_EXT_shader_quad_control
11806|  8.65k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11806:14): [True: 902, False: 7.75k]
  |  Branch (11806:39): [True: 902, False: 0]
  ------------------
11807|  8.65k|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (11807:14): [True: 7.75k, False: 0]
  |  Branch (11807:39): [True: 7.75k, False: 0]
  ------------------
11808|  8.65k|            symbolTable.relateToOperator("subgroupQuadAll",                     EOpSubgroupQuadAll);
11809|  8.65k|            symbolTable.relateToOperator("subgroupQuadAny",                     EOpSubgroupQuadAny);
11810|  8.65k|        }
11811|       |
11812|  8.65k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11812:14): [True: 902, False: 7.75k]
  |  Branch (11812:39): [True: 902, False: 0]
  ------------------
11813|  8.65k|            (profile != EEsProfile && version >= 140)) {
  ------------------
  |  Branch (11813:14): [True: 7.75k, False: 0]
  |  Branch (11813:39): [True: 7.75k, False: 0]
  ------------------
11814|  8.65k|            symbolTable.relateToOperator("textureWeightedQCOM",      EOpImageSampleWeightedQCOM);
11815|  8.65k|            symbolTable.relateToOperator("textureBoxFilterQCOM",     EOpImageBoxFilterQCOM);
11816|  8.65k|            symbolTable.relateToOperator("textureBlockMatchSADQCOM", EOpImageBlockMatchSADQCOM);
11817|  8.65k|            symbolTable.relateToOperator("textureBlockMatchSSDQCOM", EOpImageBlockMatchSSDQCOM);
11818|       |
11819|  8.65k|            symbolTable.relateToOperator("textureBlockMatchWindowSSDQCOM", EOpImageBlockMatchWindowSSDQCOM);
11820|  8.65k|            symbolTable.relateToOperator("textureBlockMatchWindowSADQCOM", EOpImageBlockMatchWindowSADQCOM);
11821|  8.65k|            symbolTable.relateToOperator("textureBlockMatchGatherSSDQCOM", EOpImageBlockMatchGatherSSDQCOM);
11822|  8.65k|            symbolTable.relateToOperator("textureBlockMatchGatherSADQCOM", EOpImageBlockMatchGatherSADQCOM);
11823|  8.65k|        }
11824|       |
11825|  8.65k|        if ((profile == EEsProfile && version >= 310) ||
  ------------------
  |  Branch (11825:14): [True: 902, False: 7.75k]
  |  Branch (11825:39): [True: 902, False: 0]
  ------------------
11826|  8.65k|            (profile != EEsProfile && version >= 130)) {
  ------------------
  |  Branch (11826:14): [True: 7.75k, False: 0]
  |  Branch (11826:39): [True: 7.75k, False: 0]
  ------------------
11827|  8.65k|            symbolTable.relateToOperator("textureGather4x1QCOM", EOpTextureGather4x1QCOM);
11828|  8.65k|            symbolTable.relateToOperator("textureGatherV2QCOM",  EOpTextureGatherV2QCOM);
11829|  8.65k|            symbolTable.relateToOperator("textureGatherH2QCOM",  EOpTextureGatherH2QCOM);
11830|  8.65k|            symbolTable.relateToOperator("textureGatherDQCOM",   EOpTextureGatherDQCOM);
11831|  8.65k|            symbolTable.relateToOperator("textureGather4x1OffsetQCOM", EOpTextureGather4x1OffsetQCOM);
11832|  8.65k|            symbolTable.relateToOperator("textureGatherV2OffsetQCOM",  EOpTextureGatherV2OffsetQCOM);
11833|  8.65k|            symbolTable.relateToOperator("textureGatherH2OffsetQCOM",  EOpTextureGatherH2OffsetQCOM);
11834|  8.65k|            symbolTable.relateToOperator("textureGatherDOffsetQCOM",   EOpTextureGatherDOffsetQCOM);
11835|  8.65k|        }
11836|       |
11837|  8.65k|        if (profile != EEsProfile && spvVersion.spv == 0) {
  ------------------
  |  Branch (11837:13): [True: 7.75k, False: 902]
  |  Branch (11837:38): [True: 0, False: 7.75k]
  ------------------
11838|      0|            symbolTable.relateToOperator("texture1DArray", EOpTexture);
11839|      0|            symbolTable.relateToOperator("texture2DArray", EOpTexture);
11840|      0|            symbolTable.relateToOperator("shadow1DArray", EOpTexture);
11841|      0|            symbolTable.relateToOperator("shadow2DArray", EOpTexture);
11842|       |
11843|      0|            symbolTable.relateToOperator("texture1DArrayLod", EOpTextureLod);
11844|      0|            symbolTable.relateToOperator("texture2DArrayLod", EOpTextureLod);
11845|      0|            symbolTable.relateToOperator("shadow1DArrayLod", EOpTextureLod);
11846|      0|        }
11847|       |
11848|  8.65k|        symbolTable.relateToOperator("coopVecMatMulNV",              EOpCooperativeVectorMatMulNV);
11849|  8.65k|        symbolTable.relateToOperator("coopVecMatMulAddNV",           EOpCooperativeVectorMatMulAddNV);
11850|  8.65k|        symbolTable.relateToOperator("coopVecLoadNV",                EOpCooperativeVectorLoadNV);
11851|  8.65k|        symbolTable.relateToOperator("coopVecStoreNV",               EOpCooperativeVectorStoreNV);
11852|  8.65k|        symbolTable.relateToOperator("coopVecOuterProductAccumulateNV", EOpCooperativeVectorOuterProductAccumulateNV);
11853|  8.65k|        symbolTable.relateToOperator("coopVecReduceSumAccumulateNV",    EOpCooperativeVectorReduceSumAccumulateNV);
11854|  8.65k|    }
11855|       |
11856|  8.65k|    switch(language) {
11857|  1.42k|    case EShLangVertex:
  ------------------
  |  Branch (11857:5): [True: 1.42k, False: 7.23k]
  ------------------
11858|  1.42k|        break;
11859|       |
11860|    904|    case EShLangTessControl:
  ------------------
  |  Branch (11860:5): [True: 904, False: 7.75k]
  ------------------
11861|  1.80k|    case EShLangTessEvaluation:
  ------------------
  |  Branch (11861:5): [True: 904, False: 7.75k]
  ------------------
11862|  1.80k|        break;
11863|       |
11864|    904|    case EShLangGeometry:
  ------------------
  |  Branch (11864:5): [True: 904, False: 7.75k]
  ------------------
11865|    904|        symbolTable.relateToOperator("EmitStreamVertex",   EOpEmitStreamVertex);
11866|    904|        symbolTable.relateToOperator("EndStreamPrimitive", EOpEndStreamPrimitive);
11867|    904|        symbolTable.relateToOperator("EmitVertex",         EOpEmitVertex);
11868|    904|        symbolTable.relateToOperator("EndPrimitive",       EOpEndPrimitive);
11869|    904|        break;
11870|       |
11871|  1.42k|    case EShLangFragment:
  ------------------
  |  Branch (11871:5): [True: 1.42k, False: 7.23k]
  ------------------
11872|  1.42k|        if (profile != EEsProfile && version >= 400) {
  ------------------
  |  Branch (11872:13): [True: 1.27k, False: 148]
  |  Branch (11872:38): [True: 569, False: 703]
  ------------------
11873|    569|            symbolTable.relateToOperator("dFdxFine",     EOpDPdxFine);
11874|    569|            symbolTable.relateToOperator("dFdyFine",     EOpDPdyFine);
11875|    569|            symbolTable.relateToOperator("fwidthFine",   EOpFwidthFine);
11876|    569|            symbolTable.relateToOperator("dFdxCoarse",   EOpDPdxCoarse);
11877|    569|            symbolTable.relateToOperator("dFdyCoarse",   EOpDPdyCoarse);
11878|    569|            symbolTable.relateToOperator("fwidthCoarse", EOpFwidthCoarse);
11879|    569|        }
11880|       |
11881|  1.42k|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (11881:13): [True: 1.27k, False: 148]
  |  Branch (11881:38): [True: 45, False: 1.22k]
  ------------------
11882|     45|            symbolTable.relateToOperator("rayQueryInitializeEXT",                                             EOpRayQueryInitialize);
11883|     45|            symbolTable.relateToOperator("rayQueryTerminateEXT",                                              EOpRayQueryTerminate);
11884|     45|            symbolTable.relateToOperator("rayQueryGenerateIntersectionEXT",                                   EOpRayQueryGenerateIntersection);
11885|     45|            symbolTable.relateToOperator("rayQueryConfirmIntersectionEXT",                                    EOpRayQueryConfirmIntersection);
11886|     45|            symbolTable.relateToOperator("rayQueryProceedEXT",                                                EOpRayQueryProceed);
11887|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionTypeEXT",                                    EOpRayQueryGetIntersectionType);
11888|     45|            symbolTable.relateToOperator("rayQueryGetRayTMinEXT",                                             EOpRayQueryGetRayTMin);
11889|     45|            symbolTable.relateToOperator("rayQueryGetRayFlagsEXT",                                            EOpRayQueryGetRayFlags);
11890|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionTEXT",                                       EOpRayQueryGetIntersectionT);
11891|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionInstanceCustomIndexEXT",                     EOpRayQueryGetIntersectionInstanceCustomIndex);
11892|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionInstanceIdEXT",                              EOpRayQueryGetIntersectionInstanceId);
11893|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetEXT",  EOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffset);
11894|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionGeometryIndexEXT",                           EOpRayQueryGetIntersectionGeometryIndex);
11895|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionPrimitiveIndexEXT",                          EOpRayQueryGetIntersectionPrimitiveIndex);
11896|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionBarycentricsEXT",                            EOpRayQueryGetIntersectionBarycentrics);
11897|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionFrontFaceEXT",                               EOpRayQueryGetIntersectionFrontFace);
11898|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionCandidateAABBOpaqueEXT",                     EOpRayQueryGetIntersectionCandidateAABBOpaque);
11899|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionObjectRayDirectionEXT",                      EOpRayQueryGetIntersectionObjectRayDirection);
11900|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionObjectRayOriginEXT",                         EOpRayQueryGetIntersectionObjectRayOrigin);
11901|     45|            symbolTable.relateToOperator("rayQueryGetWorldRayDirectionEXT",                                   EOpRayQueryGetWorldRayDirection);
11902|     45|            symbolTable.relateToOperator("rayQueryGetWorldRayOriginEXT",                                      EOpRayQueryGetWorldRayOrigin);
11903|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionObjectToWorldEXT",                           EOpRayQueryGetIntersectionObjectToWorld);
11904|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionWorldToObjectEXT",                           EOpRayQueryGetIntersectionWorldToObject);
11905|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionTriangleVertexPositionsEXT",                 EOpRayQueryGetIntersectionTriangleVertexPositionsEXT);
11906|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionClusterIdNV",                                EOpRayQueryGetIntersectionClusterIdNV);
11907|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionSpherePositionNV",                           EOpRayQueryGetIntersectionSpherePositionNV);
11908|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionSphereRadiusNV",                             EOpRayQueryGetIntersectionSphereRadiusNV);
11909|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionLSSHitValueNV",                              EOpRayQueryGetIntersectionLSSHitValueNV);
11910|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionLSSPositionsNV",                             EOpRayQueryGetIntersectionLSSPositionsNV);
11911|     45|            symbolTable.relateToOperator("rayQueryGetIntersectionLSSRadiiNV",                                 EOpRayQueryGetIntersectionLSSRadiiNV);
11912|     45|            symbolTable.relateToOperator("rayQueryIsSphereHitNV",                                             EOpRayQueryIsSphereHitNV);
11913|     45|            symbolTable.relateToOperator("rayQueryIsLSSHitNV",                                                EOpRayQueryIsLSSHitNV);
11914|     45|        }
11915|       |
11916|  1.42k|        symbolTable.relateToOperator("interpolateAtCentroid", EOpInterpolateAtCentroid);
11917|  1.42k|        symbolTable.relateToOperator("interpolateAtSample",   EOpInterpolateAtSample);
11918|  1.42k|        symbolTable.relateToOperator("interpolateAtOffset",   EOpInterpolateAtOffset);
11919|       |
11920|  1.42k|        if (profile != EEsProfile)
  ------------------
  |  Branch (11920:13): [True: 1.27k, False: 148]
  ------------------
11921|  1.27k|            symbolTable.relateToOperator("interpolateAtVertexAMD", EOpInterpolateAtVertex);
11922|       |
11923|  1.42k|        symbolTable.relateToOperator("beginInvocationInterlockARB", EOpBeginInvocationInterlock);
11924|  1.42k|        symbolTable.relateToOperator("endInvocationInterlockARB",   EOpEndInvocationInterlock);
11925|       |
11926|  1.42k|        symbolTable.relateToOperator("stencilAttachmentReadEXT", EOpStencilAttachmentReadEXT);
11927|  1.42k|        symbolTable.relateToOperator("depthAttachmentReadEXT",   EOpDepthAttachmentReadEXT);
11928|  1.42k|        symbolTable.relateToOperator("colorAttachmentReadEXT",   EOpColorAttachmentReadEXT);
11929|       |
11930|  1.42k|        break;
11931|       |
11932|    685|    case EShLangCompute:
  ------------------
  |  Branch (11932:5): [True: 685, False: 7.97k]
  ------------------
11933|    685|        symbolTable.relateToOperator("subgroupMemoryBarrierShared", EOpSubgroupMemoryBarrierShared);
11934|    685|        if ((profile != EEsProfile && version >= 450) ||
  ------------------
  |  Branch (11934:14): [True: 537, False: 148]
  |  Branch (11934:39): [True: 301, False: 236]
  ------------------
11935|    384|            (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (11935:14): [True: 148, False: 236]
  |  Branch (11935:39): [True: 7, False: 141]
  ------------------
11936|    308|            symbolTable.relateToOperator("dFdx",        EOpDPdx);
11937|    308|            symbolTable.relateToOperator("dFdy",        EOpDPdy);
11938|    308|            symbolTable.relateToOperator("fwidth",      EOpFwidth);
11939|    308|            symbolTable.relateToOperator("dFdxFine",    EOpDPdxFine);
11940|    308|            symbolTable.relateToOperator("dFdyFine",    EOpDPdyFine);
11941|    308|            symbolTable.relateToOperator("fwidthFine",  EOpFwidthFine);
11942|    308|            symbolTable.relateToOperator("dFdxCoarse",  EOpDPdxCoarse);
11943|    308|            symbolTable.relateToOperator("dFdyCoarse",  EOpDPdyCoarse);
11944|    308|            symbolTable.relateToOperator("fwidthCoarse",EOpFwidthCoarse);
11945|    308|        }
11946|    685|        symbolTable.relateToOperator("coopMatLoadNV",              EOpCooperativeMatrixLoadNV);
11947|    685|        symbolTable.relateToOperator("coopMatStoreNV",             EOpCooperativeMatrixStoreNV);
11948|    685|        symbolTable.relateToOperator("coopMatMulAddNV",            EOpCooperativeMatrixMulAddNV);
11949|       |
11950|    685|        symbolTable.relateToOperator("coopMatLoad",                EOpCooperativeMatrixLoad);
11951|    685|        symbolTable.relateToOperator("coopMatStore",               EOpCooperativeMatrixStore);
11952|    685|        symbolTable.relateToOperator("coopMatMulAdd",              EOpCooperativeMatrixMulAdd);
11953|       |
11954|    685|        symbolTable.relateToOperator("coopMatLoadTensorNV",        EOpCooperativeMatrixLoadTensorNV);
11955|    685|        symbolTable.relateToOperator("coopMatStoreTensorNV",       EOpCooperativeMatrixStoreTensorNV);
11956|       |
11957|    685|        symbolTable.relateToOperator("coopMatReduceNV",            EOpCooperativeMatrixReduceNV);
11958|    685|        symbolTable.relateToOperator("coopMatPerElementNV",        EOpCooperativeMatrixPerElementOpNV);
11959|    685|        symbolTable.relateToOperator("coopMatTransposeNV",         EOpCooperativeMatrixTransposeNV);
11960|       |
11961|    685|        symbolTable.relateToOperator("coopMatReduceEXT",           EOpCooperativeMatrixReduceNV);
11962|    685|        symbolTable.relateToOperator("coopMatPerElementEXT",       EOpCooperativeMatrixPerElementOpNV);
11963|    685|        symbolTable.relateToOperator("coopMatTransposeEXT",        EOpCooperativeMatrixTransposeNV);
11964|    685|        symbolTable.relateToOperator("coopMatGetCoordinateEXT",    EOpCooperativeMatrixGetCoordinateEXT);
11965|       |
11966|    685|        symbolTable.relateToOperator("createTensorLayoutNV",         EOpCreateTensorLayoutNV);
11967|    685|        symbolTable.relateToOperator("setTensorLayoutBlockSizeNV",   EOpTensorLayoutSetBlockSizeNV);
11968|    685|        symbolTable.relateToOperator("setTensorLayoutDimensionNV",   EOpTensorLayoutSetDimensionNV);
11969|    685|        symbolTable.relateToOperator("setTensorLayoutStrideNV",      EOpTensorLayoutSetStrideNV);
11970|    685|        symbolTable.relateToOperator("sliceTensorLayoutNV",          EOpTensorLayoutSliceNV);
11971|    685|        symbolTable.relateToOperator("setTensorLayoutClampValueNV",  EOpTensorLayoutSetClampValueNV);
11972|       |
11973|    685|        symbolTable.relateToOperator("createTensorViewNV",           EOpCreateTensorViewNV);
11974|    685|        symbolTable.relateToOperator("setTensorViewDimensionsNV",    EOpTensorViewSetDimensionNV);
11975|    685|        symbolTable.relateToOperator("setTensorViewStrideNV",        EOpTensorViewSetStrideNV);
11976|    685|        symbolTable.relateToOperator("setTensorViewClipNV",          EOpTensorViewSetClipNV);
11977|       |
11978|    685|        symbolTable.relateToOperator("tensorReadARM",                EOpTensorReadARM);
11979|    685|        symbolTable.relateToOperator("tensorWriteARM",               EOpTensorWriteARM);
11980|    685|        symbolTable.relateToOperator("tensorSizeARM",                EOpTensorSizeARM);
11981|       |
11982|    685|        symbolTable.relateToOperator("bitcastQCOM", EOpBitCastArrayQCOM);
11983|    685|        symbolTable.relateToOperator("extractSubArrayQCOM", EOpExtractSubArrayQCOM);
11984|    685|        symbolTable.relateToOperator("vectorToCoopmatQCOM", EOpCompositeConstructCoopMatQCOM);
11985|    685|        symbolTable.relateToOperator("coopmatToVectorQCOM", EOpCompositeExtractCoopMatQCOM);
11986|       |
11987|    685|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (11987:13): [True: 537, False: 148]
  |  Branch (11987:38): [True: 45, False: 492]
  ------------------
11988|     45|            symbolTable.relateToOperator("fetchMicroTriangleVertexPositionNV", EOpFetchMicroTriangleVertexPositionNV);
11989|     45|            symbolTable.relateToOperator("fetchMicroTriangleVertexBarycentricNV", EOpFetchMicroTriangleVertexBarycentricNV);
11990|     45|        }
11991|    685|        break;
11992|       |
11993|    301|    case EShLangRayGen:
  ------------------
  |  Branch (11993:5): [True: 301, False: 8.35k]
  ------------------
11994|    301|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (11994:13): [True: 301, False: 0]
  |  Branch (11994:38): [True: 45, False: 256]
  ------------------
11995|     45|            symbolTable.relateToOperator("fetchMicroTriangleVertexPositionNV", EOpFetchMicroTriangleVertexPositionNV);
11996|     45|            symbolTable.relateToOperator("fetchMicroTriangleVertexBarycentricNV", EOpFetchMicroTriangleVertexBarycentricNV);
11997|     45|        }
11998|    301|        [[fallthrough]];
11999|    602|    case EShLangClosestHit:
  ------------------
  |  Branch (11999:5): [True: 301, False: 8.35k]
  ------------------
12000|    903|    case EShLangMiss:
  ------------------
  |  Branch (12000:5): [True: 301, False: 8.35k]
  ------------------
12001|    903|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (12001:13): [True: 903, False: 0]
  |  Branch (12001:38): [True: 135, False: 768]
  ------------------
12002|    135|            symbolTable.relateToOperator("traceNV", EOpTraceNV);
12003|    135|            symbolTable.relateToOperator("traceRayMotionNV", EOpTraceRayMotionNV);
12004|    135|            symbolTable.relateToOperator("traceRayEXT", EOpTraceKHR);
12005|    135|            symbolTable.relateToOperator("executeCallableNV", EOpExecuteCallableNV);
12006|    135|            symbolTable.relateToOperator("executeCallableEXT", EOpExecuteCallableKHR);
12007|       |
12008|    135|            symbolTable.relateToOperator("hitObjectTraceRayNV", EOpHitObjectTraceRayNV);
12009|    135|            symbolTable.relateToOperator("hitObjectTraceRayMotionNV", EOpHitObjectTraceRayMotionNV);
12010|    135|            symbolTable.relateToOperator("hitObjectRecordHitNV", EOpHitObjectRecordHitNV);
12011|    135|            symbolTable.relateToOperator("hitObjectRecordHitMotionNV", EOpHitObjectRecordHitMotionNV);
12012|    135|            symbolTable.relateToOperator("hitObjectRecordHitWithIndexNV", EOpHitObjectRecordHitWithIndexNV);
12013|    135|            symbolTable.relateToOperator("hitObjectRecordHitWithIndexMotionNV", EOpHitObjectRecordHitWithIndexMotionNV);
12014|    135|            symbolTable.relateToOperator("hitObjectRecordMissNV", EOpHitObjectRecordMissNV);
12015|    135|            symbolTable.relateToOperator("hitObjectRecordMissMotionNV", EOpHitObjectRecordMissMotionNV);
12016|    135|            symbolTable.relateToOperator("hitObjectRecordEmptyNV", EOpHitObjectRecordEmptyNV);
12017|    135|            symbolTable.relateToOperator("hitObjectExecuteShaderNV", EOpHitObjectExecuteShaderNV);
12018|    135|            symbolTable.relateToOperator("hitObjectIsEmptyNV", EOpHitObjectIsEmptyNV);
12019|    135|            symbolTable.relateToOperator("hitObjectIsMissNV", EOpHitObjectIsMissNV);
12020|    135|            symbolTable.relateToOperator("hitObjectIsHitNV", EOpHitObjectIsHitNV);
12021|    135|            symbolTable.relateToOperator("hitObjectGetRayTMinNV", EOpHitObjectGetRayTMinNV);
12022|    135|            symbolTable.relateToOperator("hitObjectGetRayTMaxNV", EOpHitObjectGetRayTMaxNV);
12023|    135|            symbolTable.relateToOperator("hitObjectGetObjectRayOriginNV", EOpHitObjectGetObjectRayOriginNV);
12024|    135|            symbolTable.relateToOperator("hitObjectGetObjectRayDirectionNV", EOpHitObjectGetObjectRayDirectionNV);
12025|    135|            symbolTable.relateToOperator("hitObjectGetWorldRayOriginNV", EOpHitObjectGetWorldRayOriginNV);
12026|    135|            symbolTable.relateToOperator("hitObjectGetWorldRayDirectionNV", EOpHitObjectGetWorldRayDirectionNV);
12027|    135|            symbolTable.relateToOperator("hitObjectGetWorldToObjectNV", EOpHitObjectGetWorldToObjectNV);
12028|    135|            symbolTable.relateToOperator("hitObjectGetObjectToWorldNV", EOpHitObjectGetObjectToWorldNV);
12029|    135|            symbolTable.relateToOperator("hitObjectGetInstanceCustomIndexNV", EOpHitObjectGetInstanceCustomIndexNV);
12030|    135|            symbolTable.relateToOperator("hitObjectGetInstanceIdNV", EOpHitObjectGetInstanceIdNV);
12031|    135|            symbolTable.relateToOperator("hitObjectGetGeometryIndexNV", EOpHitObjectGetGeometryIndexNV);
12032|    135|            symbolTable.relateToOperator("hitObjectGetPrimitiveIndexNV", EOpHitObjectGetPrimitiveIndexNV);
12033|    135|            symbolTable.relateToOperator("hitObjectGetHitKindNV", EOpHitObjectGetHitKindNV);
12034|    135|            symbolTable.relateToOperator("hitObjectGetAttributesNV", EOpHitObjectGetAttributesNV);
12035|    135|            symbolTable.relateToOperator("hitObjectGetCurrentTimeNV", EOpHitObjectGetCurrentTimeNV);
12036|    135|            symbolTable.relateToOperator("hitObjectGetShaderBindingTableRecordIndexNV", EOpHitObjectGetShaderBindingTableRecordIndexNV);
12037|    135|            symbolTable.relateToOperator("hitObjectGetShaderRecordBufferHandleNV", EOpHitObjectGetShaderRecordBufferHandleNV);
12038|    135|            symbolTable.relateToOperator("hitObjectGetClusterIdNV", EOpHitObjectGetClusterIdNV);
12039|    135|            symbolTable.relateToOperator("reorderThreadNV", EOpReorderThreadNV);
12040|    135|            symbolTable.relateToOperator("hitObjectGetSpherePositionNV", EOpHitObjectGetSpherePositionNV);
12041|    135|            symbolTable.relateToOperator("hitObjectGetSphereRadiusNV", EOpHitObjectGetSphereRadiusNV);
12042|    135|            symbolTable.relateToOperator("hitObjectGetLSSPositionsNV", EOpHitObjectGetLSSPositionsNV);
12043|    135|            symbolTable.relateToOperator("hitObjectGetLSSRadiiNV", EOpHitObjectGetLSSRadiiNV);
12044|    135|            symbolTable.relateToOperator("hitObjectIsSphereHitNV", EOpHitObjectIsSphereHitNV);
12045|    135|            symbolTable.relateToOperator("hitObjectIsLSSHitNV", EOpHitObjectIsLSSHitNV);
12046|    135|            symbolTable.relateToOperator("hitObjectTraceRayEXT", EOpHitObjectTraceRayEXT);
12047|    135|            symbolTable.relateToOperator("hitObjectTraceRayMotionEXT", EOpHitObjectTraceRayMotionEXT);
12048|    135|            symbolTable.relateToOperator("hitObjectRecordMissEXT", EOpHitObjectRecordMissEXT);
12049|    135|            symbolTable.relateToOperator("hitObjectRecordMissMotionEXT", EOpHitObjectRecordMissMotionEXT);
12050|    135|            symbolTable.relateToOperator("hitObjectRecordEmptyEXT", EOpHitObjectRecordEmptyEXT);
12051|    135|            symbolTable.relateToOperator("hitObjectExecuteShaderEXT", EOpHitObjectExecuteShaderEXT);
12052|    135|            symbolTable.relateToOperator("hitObjectIsEmptyEXT", EOpHitObjectIsEmptyEXT);
12053|    135|            symbolTable.relateToOperator("hitObjectIsMissEXT", EOpHitObjectIsMissEXT);
12054|    135|            symbolTable.relateToOperator("hitObjectIsHitEXT", EOpHitObjectIsHitEXT);
12055|    135|            symbolTable.relateToOperator("hitObjectGetRayTMinEXT", EOpHitObjectGetRayTMinEXT);
12056|    135|            symbolTable.relateToOperator("hitObjectGetRayTMaxEXT", EOpHitObjectGetRayTMaxEXT);
12057|    135|            symbolTable.relateToOperator("hitObjectGetRayFlagsEXT", EOpHitObjectGetRayFlagsEXT);
12058|    135|            symbolTable.relateToOperator("hitObjectGetObjectRayOriginEXT", EOpHitObjectGetObjectRayOriginEXT);
12059|    135|            symbolTable.relateToOperator("hitObjectGetObjectRayDirectionEXT", EOpHitObjectGetObjectRayDirectionEXT);
12060|    135|            symbolTable.relateToOperator("hitObjectGetWorldRayOriginEXT", EOpHitObjectGetWorldRayOriginEXT);
12061|    135|            symbolTable.relateToOperator("hitObjectGetWorldRayDirectionEXT", EOpHitObjectGetWorldRayDirectionEXT);
12062|    135|            symbolTable.relateToOperator("hitObjectGetWorldToObjectEXT", EOpHitObjectGetWorldToObjectEXT);
12063|    135|            symbolTable.relateToOperator("hitObjectGetObjectToWorldEXT", EOpHitObjectGetObjectToWorldEXT);
12064|    135|            symbolTable.relateToOperator("hitObjectGetInstanceCustomIndexEXT", EOpHitObjectGetInstanceCustomIndexEXT);
12065|    135|            symbolTable.relateToOperator("hitObjectGetInstanceIdEXT", EOpHitObjectGetInstanceIdEXT);
12066|    135|            symbolTable.relateToOperator("hitObjectGetGeometryIndexEXT", EOpHitObjectGetGeometryIndexEXT);
12067|    135|            symbolTable.relateToOperator("hitObjectGetPrimitiveIndexEXT", EOpHitObjectGetPrimitiveIndexEXT);
12068|    135|            symbolTable.relateToOperator("hitObjectGetHitKindEXT", EOpHitObjectGetHitKindEXT);
12069|    135|            symbolTable.relateToOperator("hitObjectGetAttributesEXT", EOpHitObjectGetAttributesEXT);
12070|    135|            symbolTable.relateToOperator("hitObjectGetCurrentTimeEXT", EOpHitObjectGetCurrentTimeEXT);
12071|    135|            symbolTable.relateToOperator("hitObjectGetShaderBindingTableRecordIndexEXT", EOpHitObjectGetShaderBindingTableRecordIndexEXT);
12072|    135|            symbolTable.relateToOperator("hitObjectGetShaderRecordBufferHandleEXT", EOpHitObjectGetShaderRecordBufferHandleEXT);
12073|    135|            symbolTable.relateToOperator("hitObjectSetShaderBindingTableRecordIndexEXT", EOpHitObjectSetShaderBindingTableRecordIndexEXT);
12074|    135|            symbolTable.relateToOperator("reorderThreadEXT", EOpReorderThreadEXT);
12075|    135|            symbolTable.relateToOperator("hitObjectReorderExecuteEXT", EOpHitObjectReorderExecuteEXT);
12076|    135|            symbolTable.relateToOperator("hitObjectTraceReorderExecuteEXT", EOpHitObjectTraceReorderExecuteEXT);
12077|    135|            symbolTable.relateToOperator("hitObjectTraceMotionReorderExecuteEXT", EOpHitObjectTraceMotionReorderExecuteEXT);
12078|    135|            symbolTable.relateToOperator("hitObjectRecordFromQueryEXT", EOpHitObjectRecordFromQueryEXT);
12079|    135|            symbolTable.relateToOperator("hitObjectGetIntersectionTriangleVertexPositionsEXT", EOpHitObjectGetIntersectionTriangleVertexPositionsEXT);
12080|    135|        }
12081|    903|        break;
12082|    301|    case EShLangIntersect:
  ------------------
  |  Branch (12082:5): [True: 301, False: 8.35k]
  ------------------
12083|    301|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (12083:13): [True: 301, False: 0]
  |  Branch (12083:38): [True: 45, False: 256]
  ------------------
12084|     45|            symbolTable.relateToOperator("reportIntersectionNV", EOpReportIntersection);
12085|     45|            symbolTable.relateToOperator("reportIntersectionEXT", EOpReportIntersection);
12086|     45|        }
12087|    301|        break;
12088|    301|    case EShLangAnyHit:
  ------------------
  |  Branch (12088:5): [True: 301, False: 8.35k]
  ------------------
12089|    301|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (12089:13): [True: 301, False: 0]
  |  Branch (12089:38): [True: 45, False: 256]
  ------------------
12090|     45|            symbolTable.relateToOperator("ignoreIntersectionNV", EOpIgnoreIntersectionNV);
12091|     45|            symbolTable.relateToOperator("terminateRayNV", EOpTerminateRayNV);
12092|     45|        }
12093|    301|        break;
12094|    301|    case EShLangCallable:
  ------------------
  |  Branch (12094:5): [True: 301, False: 8.35k]
  ------------------
12095|    301|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (12095:13): [True: 301, False: 0]
  |  Branch (12095:38): [True: 45, False: 256]
  ------------------
12096|     45|            symbolTable.relateToOperator("executeCallableNV", EOpExecuteCallableNV);
12097|     45|            symbolTable.relateToOperator("executeCallableEXT", EOpExecuteCallableKHR);
12098|     45|        }
12099|    301|        break;
12100|    308|    case EShLangMesh:
  ------------------
  |  Branch (12100:5): [True: 308, False: 8.35k]
  ------------------
12101|    308|        if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (12101:14): [True: 301, False: 7]
  |  Branch (12101:39): [True: 301, False: 0]
  |  Branch (12101:59): [True: 7, False: 0]
  |  Branch (12101:84): [True: 7, False: 0]
  ------------------
12102|    308|            symbolTable.relateToOperator("writePackedPrimitiveIndices4x8NV", EOpWritePackedPrimitiveIndices4x8NV);
12103|    308|            symbolTable.relateToOperator("memoryBarrierShared", EOpMemoryBarrierShared);
12104|    308|            symbolTable.relateToOperator("groupMemoryBarrier", EOpGroupMemoryBarrier);
12105|    308|            symbolTable.relateToOperator("subgroupMemoryBarrierShared", EOpSubgroupMemoryBarrierShared);
12106|    308|        }
12107|       |
12108|    308|        if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (12108:13): [True: 301, False: 7]
  |  Branch (12108:38): [True: 301, False: 0]
  ------------------
12109|    301|            symbolTable.relateToOperator("SetMeshOutputsEXT", EOpSetMeshOutputsEXT);
12110|    301|        }
12111|       |
12112|    308|        if (profile != EEsProfile && version >= 460) {
  ------------------
  |  Branch (12112:13): [True: 301, False: 7]
  |  Branch (12112:38): [True: 45, False: 256]
  ------------------
12113|       |            // Builtins for GL_NV_displacement_micromap.
12114|     45|            symbolTable.relateToOperator("fetchMicroTriangleVertexPositionNV", EOpFetchMicroTriangleVertexPositionNV);
12115|     45|            symbolTable.relateToOperator("fetchMicroTriangleVertexBarycentricNV", EOpFetchMicroTriangleVertexBarycentricNV);
12116|     45|        }
12117|    308|        break;
12118|    308|    case EShLangTask:
  ------------------
  |  Branch (12118:5): [True: 308, False: 8.35k]
  ------------------
12119|    308|        if ((profile != EEsProfile && version >= 450) || (profile == EEsProfile && version >= 320)) {
  ------------------
  |  Branch (12119:14): [True: 301, False: 7]
  |  Branch (12119:39): [True: 301, False: 0]
  |  Branch (12119:59): [True: 7, False: 0]
  |  Branch (12119:84): [True: 7, False: 0]
  ------------------
12120|    308|            symbolTable.relateToOperator("memoryBarrierShared", EOpMemoryBarrierShared);
12121|    308|            symbolTable.relateToOperator("groupMemoryBarrier", EOpGroupMemoryBarrier);
12122|    308|            symbolTable.relateToOperator("subgroupMemoryBarrierShared", EOpSubgroupMemoryBarrierShared);
12123|    308|        }
12124|    308|        if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (12124:13): [True: 301, False: 7]
  |  Branch (12124:38): [True: 301, False: 0]
  ------------------
12125|    301|            symbolTable.relateToOperator("EmitMeshTasksEXT", EOpEmitMeshTasksEXT);
12126|    301|        }
12127|    308|        break;
12128|       |
12129|      0|    default:
  ------------------
  |  Branch (12129:5): [True: 0, False: 8.65k]
  ------------------
12130|       |        assert(false && "Language not supported");
12131|  8.65k|    }
12132|  8.65k|}
_ZN7glslang9TBuiltIns16identifyBuiltInsEi8EProfileRKNS_10SpvVersionE11EShLanguageRNS_12TSymbolTableERK16TBuiltInResource:
12144|  4.26k|{
12145|  4.26k|    if (profile != EEsProfile && version >= 430 && version < 440) {
  ------------------
  |  Branch (12145:9): [True: 3.81k, False: 444]
  |  Branch (12145:34): [True: 1.60k, False: 2.20k]
  |  Branch (12145:52): [True: 480, False: 1.12k]
  ------------------
12146|    480|        symbolTable.setVariableExtensions("gl_MaxTransformFeedbackBuffers", 1, &E_GL_ARB_enhanced_layouts);
12147|    480|        symbolTable.setVariableExtensions("gl_MaxTransformFeedbackInterleavedComponents", 1, &E_GL_ARB_enhanced_layouts);
12148|    480|    }
12149|  4.26k|    if (profile != EEsProfile && version >= 130 && version < 420) {
  ------------------
  |  Branch (12149:9): [True: 3.81k, False: 444]
  |  Branch (12149:34): [True: 3.81k, False: 0]
  |  Branch (12149:52): [True: 2.20k, False: 1.61k]
  ------------------
12150|  2.20k|        symbolTable.setVariableExtensions("gl_MinProgramTexelOffset", 1, &E_GL_ARB_shading_language_420pack);
12151|  2.20k|        symbolTable.setVariableExtensions("gl_MaxProgramTexelOffset", 1, &E_GL_ARB_shading_language_420pack);
12152|  2.20k|    }
12153|  4.26k|    if (profile != EEsProfile && version >= 150 && version < 410)
  ------------------
  |  Branch (12153:9): [True: 3.81k, False: 444]
  |  Branch (12153:34): [True: 2.26k, False: 1.54k]
  |  Branch (12153:52): [True: 651, False: 1.61k]
  ------------------
12154|    651|        symbolTable.setVariableExtensions("gl_MaxViewports", 1, &E_GL_ARB_viewport_array);
12155|  4.26k|    if (profile == EEsProfile && version >= 300) {
  ------------------
  |  Branch (12155:9): [True: 444, False: 3.81k]
  |  Branch (12155:34): [True: 444, False: 0]
  ------------------
12156|    444|        symbolTable.setVariableExtensions("gl_MaxClipDistances", 1, &E_GL_EXT_clip_cull_distance);
12157|    444|        symbolTable.setVariableExtensions("gl_MaxCullDistances", 1, &E_GL_EXT_clip_cull_distance);
12158|    444|        symbolTable.setVariableExtensions("gl_MaxCombinedClipAndCullDistances", 1, &E_GL_EXT_clip_cull_distance);
12159|    444|    }
12160|  4.26k|    if (profile != EEsProfile && version >= 130 && version < 450) {
  ------------------
  |  Branch (12160:9): [True: 3.81k, False: 444]
  |  Branch (12160:34): [True: 3.81k, False: 0]
  |  Branch (12160:52): [True: 2.91k, False: 903]
  ------------------
12161|  2.91k|        symbolTable.setVariableExtensions("gl_MaxCullDistances", 1, &E_GL_ARB_cull_distance);
12162|  2.91k|        symbolTable.setVariableExtensions("gl_MaxCombinedClipAndCullDistances", 1, &E_GL_ARB_cull_distance);
12163|  2.91k|    }
12164|       |
12165|  4.26k|    switch(language) {
12166|  1.42k|    case EShLangFragment:
  ------------------
  |  Branch (12166:5): [True: 1.42k, False: 2.84k]
  ------------------
12167|       |        // Set up gl_FragData based on current array size.
12168|  1.42k|        if (version == 100 || IncludeLegacy(version, profile, spvVersion) || (! ForwardCompatibility && profile != EEsProfile && version < 420)) {
  ------------------
  |  Branch (12168:13): [True: 0, False: 1.42k]
  |  Branch (12168:31): [True: 55, False: 1.36k]
  |  Branch (12168:79): [True: 1.36k, Folded]
  |  Branch (12168:105): [True: 1.21k, False: 148]
  |  Branch (12168:130): [True: 706, False: 511]
  ------------------
12169|    761|            TPrecisionQualifier pq = profile == EEsProfile ? EpqMedium : EpqNone;
  ------------------
  |  Branch (12169:38): [True: 0, False: 761]
  ------------------
12170|    761|            TType fragData(EbtFloat, EvqFragColor, pq, 4);
12171|    761|            TArraySizes* arraySizes = new TArraySizes;
12172|    761|            arraySizes->addInnerSize(resources.maxDrawBuffers);
12173|    761|            fragData.transferArraySizes(arraySizes);
12174|    761|            symbolTable.insert(*new TVariable(NewPoolTString("gl_FragData"), fragData));
12175|    761|            SpecialQualifier("gl_FragData", EvqFragColor, EbvFragData, symbolTable);
12176|    761|        }
12177|       |
12178|       |        // GL_EXT_blend_func_extended
12179|  1.42k|        if (profile == EEsProfile && version >= 100) {
  ------------------
  |  Branch (12179:13): [True: 148, False: 1.27k]
  |  Branch (12179:38): [True: 148, False: 0]
  ------------------
12180|    148|           symbolTable.setVariableExtensions("gl_MaxDualSourceDrawBuffersEXT",    1, &E_GL_EXT_blend_func_extended);
12181|    148|           symbolTable.setVariableExtensions("gl_SecondaryFragColorEXT",    1, &E_GL_EXT_blend_func_extended);
12182|    148|           symbolTable.setVariableExtensions("gl_SecondaryFragDataEXT",    1, &E_GL_EXT_blend_func_extended);
12183|    148|           SpecialQualifier("gl_SecondaryFragColorEXT", EvqVaryingOut, EbvSecondaryFragColorEXT, symbolTable);
12184|    148|           SpecialQualifier("gl_SecondaryFragDataEXT", EvqVaryingOut, EbvSecondaryFragDataEXT, symbolTable);
12185|    148|        }
12186|       |
12187|  1.42k|        break;
12188|       |
12189|      0|    case EShLangTessControl:
  ------------------
  |  Branch (12189:5): [True: 0, False: 4.26k]
  ------------------
12190|      0|    case EShLangTessEvaluation:
  ------------------
  |  Branch (12190:5): [True: 0, False: 4.26k]
  ------------------
12191|       |        // Because of the context-dependent array size (gl_MaxPatchVertices),
12192|       |        // these variables were added later than the others and need to be mapped now.
12193|       |
12194|       |        // standard members
12195|      0|        BuiltInVariable("gl_in", "gl_Position",     EbvPosition,     symbolTable);
12196|      0|        BuiltInVariable("gl_in", "gl_PointSize",    EbvPointSize,    symbolTable);
12197|      0|        BuiltInVariable("gl_in", "gl_ClipDistance", EbvClipDistance, symbolTable);
12198|      0|        BuiltInVariable("gl_in", "gl_CullDistance", EbvCullDistance, symbolTable);
12199|       |
12200|       |        // compatibility members
12201|      0|        BuiltInVariable("gl_in", "gl_ClipVertex",          EbvClipVertex,          symbolTable);
12202|      0|        BuiltInVariable("gl_in", "gl_FrontColor",          EbvFrontColor,          symbolTable);
12203|      0|        BuiltInVariable("gl_in", "gl_BackColor",           EbvBackColor,           symbolTable);
12204|      0|        BuiltInVariable("gl_in", "gl_FrontSecondaryColor", EbvFrontSecondaryColor, symbolTable);
12205|      0|        BuiltInVariable("gl_in", "gl_BackSecondaryColor",  EbvBackSecondaryColor,  symbolTable);
12206|      0|        BuiltInVariable("gl_in", "gl_TexCoord",            EbvTexCoord,            symbolTable);
12207|      0|        BuiltInVariable("gl_in", "gl_FogFragCoord",        EbvFogFragCoord,        symbolTable);
12208|       |
12209|      0|        symbolTable.setVariableExtensions("gl_in", "gl_SecondaryPositionNV", 1, &E_GL_NV_stereo_view_rendering);
12210|      0|        symbolTable.setVariableExtensions("gl_in", "gl_PositionPerViewNV",   1, &E_GL_NVX_multiview_per_view_attributes);
12211|       |
12212|      0|        BuiltInVariable("gl_in", "gl_SecondaryPositionNV", EbvSecondaryPositionNV, symbolTable);
12213|      0|        BuiltInVariable("gl_in", "gl_PositionPerViewNV",   EbvPositionPerViewNV,   symbolTable);
12214|       |
12215|       |        // extension requirements
12216|      0|        if (profile == EEsProfile) {
  ------------------
  |  Branch (12216:13): [True: 0, False: 0]
  ------------------
12217|      0|            symbolTable.setVariableExtensions("gl_in", "gl_PointSize", Num_AEP_tessellation_point_size, AEP_tessellation_point_size);
12218|      0|            symbolTable.setVariableExtensions("gl_in", "gl_ClipDistance", 1, &E_GL_EXT_clip_cull_distance);
12219|      0|            symbolTable.setVariableExtensions("gl_in", "gl_CullDistance", 1, &E_GL_EXT_clip_cull_distance);
12220|      0|        } else if (version < 450)
  ------------------
  |  Branch (12220:20): [True: 0, False: 0]
  ------------------
12221|      0|            symbolTable.setVariableExtensions("gl_in", "gl_CullDistance", 1, &E_GL_ARB_cull_distance);
12222|       |
12223|      0|        break;
12224|       |
12225|  2.84k|    default:
  ------------------
  |  Branch (12225:5): [True: 2.84k, False: 1.42k]
  ------------------
12226|  2.84k|        break;
12227|  4.26k|    }
12228|  4.26k|}
Initialize.cpp:_ZZN7glslang9TBuiltIns17addTabledBuiltinsEi8EProfileRKNS_10SpvVersionEENK3$_0clERNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEERK4spanIKNS_12_GLOBAL__N_115BuiltInFunctionEE:
  510|  3.14k|    const auto forEachFunction = [&](TString& decls, const span<const BuiltInFunction>& functions) {
  511|   117k|        for (const auto& fn : functions) {
  ------------------
  |  Branch (511:29): [True: 117k, False: 3.14k]
  ------------------
  512|   117k|            if (ValidVersion(fn, version, profile, spvVersion)) {
  ------------------
  |  Branch (512:17): [True: 109k, False: 7.56k]
  ------------------
  513|   109k|                AddTabledBuiltin(decls, fn);
  514|   109k|                if (profile != EEsProfile) {
  ------------------
  |  Branch (514:21): [True: 97.6k, False: 12.1k]
  ------------------
  515|  97.6k|                    AddLongVectorBuiltin(decls, fn);
  516|  97.6k|                }
  517|   109k|            }
  518|   117k|        }
  519|  3.14k|    };
Initialize.cpp:_ZN7glslang12_GLOBAL__N_112ValidVersionERKNS0_15BuiltInFunctionEi8EProfileRKNS_10SpvVersionE:
  476|   117k|{
  477|       |    // nullptr means always valid
  478|   117k|    if (function.versioning.empty())
  ------------------
  |  Branch (478:9): [True: 69.0k, False: 48.2k]
  ------------------
  479|  69.0k|        return true;
  480|       |
  481|       |    // check for what is said about our current profile
  482|  91.5k|    for (const auto& v : function.versioning) {
  ------------------
  |  Branch (482:24): [True: 91.5k, False: 7.56k]
  ------------------
  483|  91.5k|        if ((v.profiles & profile) != 0) {
  ------------------
  |  Branch (483:13): [True: 48.2k, False: 43.2k]
  ------------------
  484|  48.2k|            if (v.minCoreVersion <= version || (v.numExtensions > 0 && v.minExtendedVersion <= version))
  ------------------
  |  Branch (484:17): [True: 40.7k, False: 7.56k]
  |  Branch (484:49): [True: 0, False: 7.56k]
  |  Branch (484:72): [True: 0, False: 0]
  ------------------
  485|  40.7k|                return true;
  486|  48.2k|        }
  487|  91.5k|    }
  488|       |
  489|  7.56k|    return false;
  490|  48.2k|}
Initialize.cpp:_ZN7glslang12_GLOBAL__N_116AddTabledBuiltinERNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS0_15BuiltInFunctionE:
  322|   109k|{
  323|   109k|    const auto isScalarType = [](int type) { return (type & TypeStringColumnMask) == 0; };
  324|       |
  325|       |    // loop across these two:
  326|       |    //  0: the varying arg set, and
  327|       |    //  1: the fixed scalar args
  328|   109k|    const ArgClass ClassFixed = (ArgClass)(ClassLS | ClassXLS | ClassLS2 | ClassFS | ClassFS2);
  329|   235k|    for (int fixed = 0; fixed < ((function.classes & ClassFixed) > 0 ? 2 : 1); ++fixed) {
  ------------------
  |  Branch (329:25): [True: 125k, False: 109k]
  |  Branch (329:34): [True: 46.8k, False: 188k]
  ------------------
  330|       |
  331|   125k|        if (fixed == 0 && (function.classes & ClassXLS))
  ------------------
  |  Branch (331:13): [True: 109k, False: 15.6k]
  |  Branch (331:27): [True: 1.42k, False: 108k]
  ------------------
  332|  1.42k|            continue;
  333|       |
  334|       |        // walk the type strings in TypeString[]
  335|  2.10M|        for (int type = 0; type < TypeStringCount; ++type) {
  ------------------
  |  Branch (335:28): [True: 1.98M, False: 123k]
  ------------------
  336|       |            // skip types not selected: go from type to row number to type bit
  337|  1.98M|            if ((function.types & (1 << (type >> TypeStringRowShift))) == 0)
  ------------------
  |  Branch (337:17): [True: 1.38M, False: 600k]
  ------------------
  338|  1.38M|                continue;
  339|       |
  340|       |            // if we aren't on a scalar, and should be, skip
  341|   600k|            if ((function.classes & ClassV1) && !isScalarType(type))
  ------------------
  |  Branch (341:17): [True: 45.8k, False: 554k]
  |  Branch (341:49): [True: 34.4k, False: 11.4k]
  ------------------
  342|  34.4k|                continue;
  343|       |
  344|       |            // if we aren't on a 3-vector, and should be, skip
  345|   565k|            if ((function.classes & ClassV3) && (type & TypeStringColumnMask) != 2)
  ------------------
  |  Branch (345:17): [True: 5.68k, False: 560k]
  |  Branch (345:49): [True: 4.26k, False: 1.42k]
  ------------------
  346|  4.26k|                continue;
  347|       |
  348|       |            // skip replication of all arg scalars between the varying arg set and the fixed args
  349|   561k|            if (fixed == 1 && type == (type & TypeStringScalarMask) && (function.classes & ClassXLS) == 0)
  ------------------
  |  Branch (349:17): [True: 79.5k, False: 482k]
  |  Branch (349:31): [True: 19.8k, False: 59.6k]
  |  Branch (349:72): [True: 18.4k, False: 1.42k]
  ------------------
  350|  18.4k|                continue;
  351|       |
  352|       |            // skip scalars when we are told to
  353|   543k|            if ((function.classes & ClassNS) && isScalarType(type))
  ------------------
  |  Branch (353:17): [True: 130k, False: 412k]
  |  Branch (353:49): [True: 32.6k, False: 97.9k]
  ------------------
  354|  32.6k|                continue;
  355|       |
  356|       |            // return type
  357|   510k|            if (function.classes & ClassB)
  ------------------
  |  Branch (357:17): [True: 96.5k, False: 413k]
  ------------------
  358|  96.5k|                decls.append(TypeString[type & TypeStringColumnMask]);
  359|   413k|            else if (function.classes & ClassRS)
  ------------------
  |  Branch (359:22): [True: 25.5k, False: 388k]
  ------------------
  360|  25.5k|                decls.append(TypeString[type & TypeStringScalarMask]);
  361|   388k|            else
  362|   388k|                decls.append(TypeString[type]);
  363|   510k|            decls.append(" ");
  364|   510k|            decls.append(function.name);
  365|   510k|            decls.append("(");
  366|       |
  367|       |            // arguments
  368|  1.37M|            for (int arg = 0; arg < function.numArguments; ++arg) {
  ------------------
  |  Branch (368:31): [True: 867k, False: 510k]
  ------------------
  369|   867k|                if (arg == function.numArguments - 1 && (function.classes & ClassLO))
  ------------------
  |  Branch (369:21): [True: 510k, False: 357k]
  |  Branch (369:57): [True: 5.68k, False: 504k]
  ------------------
  370|  5.68k|                    decls.append("out ");
  371|   867k|                if (arg == 0) {
  ------------------
  |  Branch (371:21): [True: 510k, False: 357k]
  ------------------
  372|   510k|                    if (function.classes & ClassCVN)
  ------------------
  |  Branch (372:25): [True: 11.4k, False: 498k]
  ------------------
  373|  11.4k|                        decls.append("coherent volatile nontemporal ");
  374|   510k|                    if (function.classes & ClassFIO)
  ------------------
  |  Branch (374:25): [True: 11.4k, False: 498k]
  ------------------
  375|  11.4k|                        decls.append("inout ");
  376|   510k|                    if (function.classes & ClassFO)
  ------------------
  |  Branch (376:25): [True: 0, False: 510k]
  ------------------
  377|      0|                        decls.append("out ");
  378|   510k|                }
  379|   867k|                if ((function.classes & ClassLB) && arg == function.numArguments - 1)
  ------------------
  |  Branch (379:21): [True: 27.8k, False: 840k]
  |  Branch (379:53): [True: 9.27k, False: 18.5k]
  ------------------
  380|  9.27k|                    decls.append(TypeString[type & TypeStringColumnMask]);
  381|   858k|                else if (fixed && ((arg == function.numArguments - 1 && (function.classes & (ClassLS | ClassXLS |
  ------------------
  |  Branch (381:26): [True: 149k, False: 709k]
  |  Branch (381:37): [True: 61.0k, False: 88.0k]
  |  Branch (381:73): [True: 52.5k, False: 8.52k]
  ------------------
  382|  61.0k|                                                                                                       ClassLS2))) ||
  383|  96.5k|                                   (arg == function.numArguments - 2 && (function.classes & ClassLS2))             ||
  ------------------
  |  Branch (383:37): [True: 61.0k, False: 35.5k]
  |  Branch (383:73): [True: 12.7k, False: 48.2k]
  ------------------
  384|  83.7k|                                   (arg == 0                         && (function.classes & (ClassFS | ClassFS2))) ||
  ------------------
  |  Branch (384:37): [True: 61.0k, False: 22.7k]
  |  Branch (384:73): [True: 8.52k, False: 52.5k]
  ------------------
  385|  75.2k|                                   (arg == 1                         && (function.classes & ClassFS2))))
  ------------------
  |  Branch (385:37): [True: 18.4k, False: 56.8k]
  |  Branch (385:73): [True: 4.26k, False: 14.2k]
  ------------------
  386|  78.1k|                    decls.append(TypeString[type & TypeStringScalarMask]);
  387|   780k|                else
  388|   780k|                    decls.append(TypeString[type]);
  389|   867k|                if (arg < function.numArguments - 1)
  ------------------
  |  Branch (389:21): [True: 357k, False: 510k]
  ------------------
  390|   357k|                    decls.append(",");
  391|   867k|            }
  392|   510k|            decls.append(");\n");
  393|   510k|        }
  394|   123k|    }
  395|   109k|}
Initialize.cpp:_ZZN7glslang12_GLOBAL__N_116AddTabledBuiltinERNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS0_15BuiltInFunctionEENK3$_0clEi:
  323|   176k|    const auto isScalarType = [](int type) { return (type & TypeStringColumnMask) == 0; };
Initialize.cpp:_ZN7glslang12_GLOBAL__N_120AddLongVectorBuiltinERNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS0_15BuiltInFunctionE:
  401|  97.6k|{
  402|  97.6k|    const auto isScalarType = [](int type) { return (type & TypeStringColumnMask) == 0; };
  403|       |
  404|       |    // loop across these two:
  405|       |    //  0: the varying arg set, and
  406|       |    //  1: the fixed scalar args
  407|  97.6k|    const ArgClass ClassFixed = (ArgClass)(ClassLS | ClassXLS | ClassLS2 | ClassFS | ClassFS2);
  408|   209k|    for (int fixed = 0; fixed < ((function.classes & ClassFixed) > 0 ? 2 : 1); ++fixed) {
  ------------------
  |  Branch (408:25): [True: 111k, False: 97.6k]
  |  Branch (408:34): [True: 41.9k, False: 167k]
  ------------------
  409|       |
  410|   111k|        if (fixed == 0 && (function.classes & ClassXLS))
  ------------------
  |  Branch (410:13): [True: 97.6k, False: 13.9k]
  |  Branch (410:27): [True: 1.27k, False: 96.3k]
  ------------------
  411|  1.27k|            continue;
  412|       |
  413|       |        // Iterate over the different scalar types (needed for ClassRS)
  414|  1.87M|        for (int type = 0; type < TypeStringCount; ++type) {
  ------------------
  |  Branch (414:28): [True: 1.76M, False: 110k]
  ------------------
  415|  1.76M|            if (!isScalarType(type))
  ------------------
  |  Branch (415:17): [True: 1.32M, False: 441k]
  ------------------
  416|  1.32M|                continue;
  417|       |
  418|       |            // skip types not selected: go from type to row number to type bit
  419|   441k|            if ((function.types & (1 << (type >> TypeStringRowShift))) == 0)
  ------------------
  |  Branch (419:17): [True: 308k, False: 133k]
  ------------------
  420|   308k|                continue;
  421|       |
  422|       |            // skip scalar-only
  423|   133k|            if (function.classes & ClassV1)
  ------------------
  |  Branch (423:17): [True: 9.10k, False: 123k]
  ------------------
  424|  9.10k|                continue;
  425|       |
  426|       |            // skip 3-vector
  427|   123k|            if (function.classes & ClassV3)
  ------------------
  |  Branch (427:17): [True: 1.27k, False: 122k]
  ------------------
  428|  1.27k|                continue;
  429|       |
  430|   122k|            TString decl;
  431|       |            // return type
  432|   122k|            if (function.classes & ClassB)
  ------------------
  |  Branch (432:17): [True: 27.9k, False: 94.6k]
  ------------------
  433|  27.9k|                decl.append("vector");
  434|  94.6k|            else if (function.classes & ClassRS)
  ------------------
  |  Branch (434:22): [True: 6.36k, False: 88.3k]
  ------------------
  435|  6.36k|                decl.append(TypeString[type & TypeStringScalarMask]);
  436|  88.3k|            else
  437|  88.3k|                decl.append("vector");
  438|   122k|            decl.append(" ");
  439|   122k|            decl.append(function.name);
  440|   122k|            decl.append("(");
  441|       |
  442|       |            // arguments
  443|   333k|            for (int arg = 0; arg < function.numArguments; ++arg) {
  ------------------
  |  Branch (443:31): [True: 210k, False: 122k]
  ------------------
  444|   210k|                if (arg == function.numArguments - 1 && (function.classes & ClassLO))
  ------------------
  |  Branch (444:21): [True: 122k, False: 88.3k]
  |  Branch (444:57): [True: 1.27k, False: 121k]
  ------------------
  445|  1.27k|                    decl.append("out ");
  446|   210k|                if (arg == 0) {
  ------------------
  |  Branch (446:21): [True: 122k, False: 88.3k]
  ------------------
  447|   122k|                    if (function.classes & ClassCVN)
  ------------------
  |  Branch (447:25): [True: 0, False: 122k]
  ------------------
  448|      0|                        decl.append("coherent volatile nontemporal ");
  449|   122k|                    if (function.classes & ClassFIO)
  ------------------
  |  Branch (449:25): [True: 0, False: 122k]
  ------------------
  450|      0|                        decl.append("inout ");
  451|   122k|                    if (function.classes & ClassFO)
  ------------------
  |  Branch (451:25): [True: 0, False: 122k]
  ------------------
  452|      0|                        decl.append("out ");
  453|   122k|                }
  454|   210k|                if ((function.classes & ClassLB) && arg == function.numArguments - 1)
  ------------------
  |  Branch (454:21): [True: 5.62k, False: 205k]
  |  Branch (454:53): [True: 1.87k, False: 3.74k]
  ------------------
  455|  1.87k|                    decl.append("vector");
  456|   209k|                else if (fixed && ((arg == function.numArguments - 1 && (function.classes & (ClassLS | ClassXLS |
  ------------------
  |  Branch (456:26): [True: 43.2k, False: 165k]
  |  Branch (456:37): [True: 17.8k, False: 25.4k]
  |  Branch (456:73): [True: 15.2k, False: 2.54k]
  ------------------
  457|  17.8k|                                                                                                       ClassLS2))) ||
  458|  27.9k|                                   (arg == function.numArguments - 2 && (function.classes & ClassLS2))             ||
  ------------------
  |  Branch (458:37): [True: 17.8k, False: 10.1k]
  |  Branch (458:73): [True: 3.81k, False: 13.9k]
  ------------------
  459|  24.1k|                                   (arg == 0                         && (function.classes & (ClassFS | ClassFS2))) ||
  ------------------
  |  Branch (459:37): [True: 17.8k, False: 6.36k]
  |  Branch (459:73): [True: 2.54k, False: 15.2k]
  ------------------
  460|  21.6k|                                   (arg == 1                         && (function.classes & ClassFS2))))
  ------------------
  |  Branch (460:37): [True: 5.08k, False: 16.5k]
  |  Branch (460:73): [True: 1.27k, False: 3.81k]
  ------------------
  461|  22.8k|                    decl.append(TypeString[type & TypeStringScalarMask]);
  462|   186k|                else
  463|   186k|                    decl.append("vector");
  464|   210k|                if (arg < function.numArguments - 1)
  ------------------
  |  Branch (464:21): [True: 88.3k, False: 122k]
  ------------------
  465|  88.3k|                    decl.append(",");
  466|   210k|            }
  467|   122k|            decl.append(");\n");
  468|       |
  469|   122k|            decls.append(decl);
  470|   122k|        }
  471|   110k|    }
  472|  97.6k|}
Initialize.cpp:_ZZN7glslang12_GLOBAL__N_120AddLongVectorBuiltinERNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS0_15BuiltInFunctionEENK3$_0clEi:
  402|  1.76M|    const auto isScalarType = [](int type) { return (type & TypeStringColumnMask) == 0; };
_ZN7glslang13IncludeLegacyEi8EProfileRKNS_10SpvVersionE:
  537|  6.50k|{
  538|  6.50k|    return profile != EEsProfile && (version <= 130 || (spvVersion.spv == 0 && version == 140 && ARBCompatibility) ||
  ------------------
  |  Branch (538:12): [True: 6.36k, False: 148]
  |  Branch (538:38): [True: 0, False: 6.36k]
  |  Branch (538:57): [True: 0, False: 6.36k]
  |  Branch (538:80): [True: 0, False: 0]
  |  Branch (538:98): [True: 0, Folded]
  ------------------
  539|  6.36k|           profile == ECompatibilityProfile);
  ------------------
  |  Branch (539:12): [True: 275, False: 6.08k]
  ------------------
  540|  6.50k|}
Initialize.cpp:_ZN7glslangL15BuiltInVariableEPKcNS_16TBuiltInVariableERNS_12TSymbolTableE:
 9163|   328k|{
 9164|   328k|    TSymbol* symbol = symbolTable.find(name);
 9165|   328k|    if (symbol == nullptr)
  ------------------
  |  Branch (9165:9): [True: 109k, False: 218k]
  ------------------
 9166|   109k|        return;
 9167|       |
 9168|   218k|    TQualifier& symQualifier = symbol->getWritableType().getQualifier();
 9169|   218k|    symQualifier.builtIn = builtIn;
 9170|   218k|}
Initialize.cpp:_ZN7glslangL16SpecialQualifierEPKcNS_17TStorageQualifierENS_16TBuiltInVariableERNS_12TSymbolTableE:
 9125|  30.8k|{
 9126|  30.8k|    TSymbol* symbol = symbolTable.find(name);
 9127|  30.8k|    if (symbol == nullptr)
  ------------------
  |  Branch (9127:9): [True: 12.6k, False: 18.2k]
  ------------------
 9128|  12.6k|        return;
 9129|       |
 9130|  18.2k|    TQualifier& symQualifier = symbol->getWritableType().getQualifier();
 9131|  18.2k|    symQualifier.storage = qualifier;
 9132|  18.2k|    symQualifier.builtIn = builtIn;
 9133|  18.2k|}
Initialize.cpp:_ZN7glslangL16RetargetVariableEPKcS1_RNS_12TSymbolTableE:
 9173|    540|{
 9174|    540|    symbolTable.retargetSymbol(from, to);
 9175|    540|}
Initialize.cpp:_ZN7glslangL15BuiltInVariableEPKcS1_NS_16TBuiltInVariableERNS_12TSymbolTableE:
 9185|   136k|{
 9186|   136k|    TSymbol* symbol = symbolTable.find(blockName);
 9187|   136k|    if (symbol == nullptr)
  ------------------
  |  Branch (9187:9): [True: 102k, False: 34.7k]
  ------------------
 9188|   102k|        return;
 9189|       |
 9190|  34.7k|    TTypeList& structure = *symbol->getWritableType().getWritableStruct();
 9191|   174k|    for (int i = 0; i < (int)structure.size(); ++i) {
  ------------------
  |  Branch (9191:21): [True: 156k, False: 17.6k]
  ------------------
 9192|   156k|        if (structure[i].type->getFieldName().compare(name) == 0) {
  ------------------
  |  Branch (9192:13): [True: 17.0k, False: 139k]
  ------------------
 9193|  17.0k|            structure[i].type->getQualifier().builtIn = builtIn;
 9194|  17.0k|            return;
 9195|  17.0k|        }
 9196|   156k|    }
 9197|  34.7k|}
Initialize.cpp:_ZN7glslangL20ModifyFlatDecorationEPKcbRNS_12TSymbolTableE:
 9143|  1.27k|{
 9144|  1.27k|    TSymbol* symbol = symbolTable.find(name);
 9145|  1.27k|    if (symbol == nullptr)
  ------------------
  |  Branch (9145:9): [True: 971, False: 301]
  ------------------
 9146|    971|        return;
 9147|       |
 9148|    301|    TQualifier& symQualifier = symbol->getWritableType().getQualifier();
 9149|    301|    symQualifier.flat = flat;
 9150|    301|}
Initialize.cpp:_ZN7glslang12_GLOBAL__N_120RelateTabledBuiltinsINSt3__15arrayINS0_15BuiltInFunctionELm79EEEEEvRKT_RNS_12TSymbolTableE:
  499|  8.65k|{
  500|   684k|    for (const auto& fn : functions) {
  ------------------
  |  Branch (500:25): [True: 684k, False: 8.65k]
  ------------------
  501|   684k|        symbolTable.relateToOperator(fn.name, fn.op);
  502|   684k|    }
  503|  8.65k|}
Initialize.cpp:_ZN7glslang12_GLOBAL__N_120RelateTabledBuiltinsINSt3__15arrayINS0_15BuiltInFunctionELm3EEEEEvRKT_RNS_12TSymbolTableE:
  499|  8.65k|{
  500|  25.9k|    for (const auto& fn : functions) {
  ------------------
  |  Branch (500:25): [True: 25.9k, False: 8.65k]
  ------------------
  501|  25.9k|        symbolTable.relateToOperator(fn.name, fn.op);
  502|  25.9k|    }
  503|  8.65k|}
Initialize.cpp:_ZN7glslang12_GLOBAL__N_120RelateTabledBuiltinsIA39_NS0_14CustomFunctionEEEvRKT_RNS_12TSymbolTableE:
  499|  8.65k|{
  500|   337k|    for (const auto& fn : functions) {
  ------------------
  |  Branch (500:25): [True: 337k, False: 8.65k]
  ------------------
  501|   337k|        symbolTable.relateToOperator(fn.name, fn.op);
  502|   337k|    }
  503|  8.65k|}
Initialize.cpp:_ZZN7glslang9TBuiltIns16identifyBuiltInsEi8EProfileRKNS_10SpvVersionE11EShLanguageRNS_12TSymbolTableEENK3$_0clEPKc:
10445|  50.5k|            auto coopMatKHRCallback = [](const char *name) -> std::vector<const char *> {
10446|  50.5k|                std::vector<const char *> ret;
10447|  50.5k|                if (strstr(name, "u64") != nullptr) {
  ------------------
  |  Branch (10447:21): [True: 27.0k, False: 23.4k]
  ------------------
10448|  27.0k|                    ret.push_back(E_GL_EXT_shader_64bit_indexing);
10449|  27.0k|                } else {
10450|  23.4k|                    ret.push_back(E_GL_KHR_cooperative_matrix);
10451|  23.4k|                }
10452|  50.5k|                return ret;
10453|  50.5k|            };
Initialize.cpp:_ZZN7glslang9TBuiltIns16identifyBuiltInsEi8EProfileRKNS_10SpvVersionE11EShLanguageRNS_12TSymbolTableEENK3$_1clEPKc:
10454|  4.81k|            auto coopMat2NVCallback = [](const char *name) -> std::vector<const char *> {
10455|  4.81k|                std::vector<const char *> ret;
10456|  4.81k|                if (strstr(name, "u64") != nullptr) {
  ------------------
  |  Branch (10456:21): [True: 2.40k, False: 2.40k]
  ------------------
10457|  2.40k|                    ret.push_back(E_GL_EXT_shader_64bit_indexing);
10458|  2.40k|                } else {
10459|  2.40k|                    ret.push_back(E_GL_NV_cooperative_matrix2);
10460|  2.40k|                }
10461|  4.81k|                return ret;
10462|  4.81k|            };
Initialize.cpp:_ZZN7glslang9TBuiltIns16identifyBuiltInsEi8EProfileRKNS_10SpvVersionE11EShLanguageRNS_12TSymbolTableEENK3$_2clEPKc:
10501|   145k|            auto coopVecCallback = [](const char *name) -> std::vector<const char *> {
10502|   145k|                std::vector<const char *> ret;
10503|       |                // This looks for u64 as the last parameter (the offset)
10504|   145k|                if (strstr(name, "u641;") != nullptr) {
  ------------------
  |  Branch (10504:21): [True: 72.8k, False: 72.8k]
  ------------------
10505|  72.8k|                    ret.push_back(E_GL_EXT_shader_64bit_indexing);
10506|  72.8k|                } else {
10507|  72.8k|                    ret.push_back(E_GL_NV_cooperative_vector);
10508|  72.8k|                }
10509|   145k|                return ret;
10510|   145k|            };

_ZNK7glslang18TBuiltInParseables15getCommonStringEv:
   66|  5.82k|    virtual const TString& getCommonString() const { return commonBuiltins; }
_ZNK7glslang18TBuiltInParseables14getStageStringE11EShLanguage:
   67|  8.65k|    virtual const TString& getStageString(EShLanguage language) const { return stageBuiltins[language]; }

_ZN7glslang13TIntermSymbol8traverseEPNS_16TIntermTraverserE:
   65|  34.8k|{
   66|  34.8k|    it->visitSymbol(this);
   67|  34.8k|}
_ZN7glslang20TIntermConstantUnion8traverseEPNS_16TIntermTraverserE:
   70|  89.0k|{
   71|  89.0k|    it->visitConstantUnion(this);
   72|  89.0k|}
_ZNK7glslang13TIntermSymbol13getAccessNameEv:
   74|    388|const TString& TIntermSymbol::getAccessName() const {
   75|    388|    if (getBasicType() == EbtBlock)
  ------------------
  |  Branch (75:9): [True: 3, False: 385]
  ------------------
   76|      3|        return getType().getTypeName();
   77|    385|    else
   78|    385|        return getName();
   79|    388|}
_ZN7glslang13TIntermBinary8traverseEPNS_16TIntermTraverserE:
   85|  16.8k|{
   86|  16.8k|    bool visit = true;
   87|       |
   88|       |    //
   89|       |    // visit the node before children if pre-visiting.
   90|       |    //
   91|  16.8k|    if (it->preVisit)
  ------------------
  |  Branch (91:9): [True: 16.8k, False: 0]
  ------------------
   92|  16.8k|        visit = it->visitBinary(EvPreVisit, this);
   93|       |
   94|       |    //
   95|       |    // Visit the children, in the right order.
   96|       |    //
   97|  16.8k|    if (visit) {
  ------------------
  |  Branch (97:9): [True: 5.04k, False: 11.7k]
  ------------------
   98|  5.04k|        it->incrementDepth(this);
   99|       |
  100|  5.04k|        if (it->rightToLeft) {
  ------------------
  |  Branch (100:13): [True: 0, False: 5.04k]
  ------------------
  101|      0|            if (right)
  ------------------
  |  Branch (101:17): [True: 0, False: 0]
  ------------------
  102|      0|                right->traverse(it);
  103|       |
  104|      0|            if (it->inVisit)
  ------------------
  |  Branch (104:17): [True: 0, False: 0]
  ------------------
  105|      0|                visit = it->visitBinary(EvInVisit, this);
  106|       |
  107|      0|            if (visit && left)
  ------------------
  |  Branch (107:17): [True: 0, False: 0]
  |  Branch (107:26): [True: 0, False: 0]
  ------------------
  108|      0|                left->traverse(it);
  109|  5.04k|        } else {
  110|  5.04k|            if (left)
  ------------------
  |  Branch (110:17): [True: 5.04k, False: 0]
  ------------------
  111|  5.04k|                left->traverse(it);
  112|       |
  113|  5.04k|            if (it->inVisit)
  ------------------
  |  Branch (113:17): [True: 0, False: 5.04k]
  ------------------
  114|      0|                visit = it->visitBinary(EvInVisit, this);
  115|       |
  116|  5.04k|            if (visit && right)
  ------------------
  |  Branch (116:17): [True: 5.04k, False: 0]
  |  Branch (116:26): [True: 5.04k, False: 0]
  ------------------
  117|  5.04k|                right->traverse(it);
  118|  5.04k|        }
  119|       |
  120|  5.04k|        it->decrementDepth();
  121|  5.04k|    }
  122|       |
  123|       |    //
  124|       |    // Visit the node after the children, if requested and the traversal
  125|       |    // hasn't been canceled yet.
  126|       |    //
  127|  16.8k|    if (visit && it->postVisit)
  ------------------
  |  Branch (127:9): [True: 5.04k, False: 11.7k]
  |  Branch (127:18): [True: 0, False: 5.04k]
  ------------------
  128|      0|        it->visitBinary(EvPostVisit, this);
  129|  16.8k|}
_ZN7glslang12TIntermUnary8traverseEPNS_16TIntermTraverserE:
  135|  5.21k|{
  136|  5.21k|    bool visit = true;
  137|       |
  138|  5.21k|    if (it->preVisit)
  ------------------
  |  Branch (138:9): [True: 5.21k, False: 0]
  ------------------
  139|  5.21k|        visit = it->visitUnary(EvPreVisit, this);
  140|       |
  141|  5.21k|    if (visit) {
  ------------------
  |  Branch (141:9): [True: 1.30k, False: 3.90k]
  ------------------
  142|  1.30k|        it->incrementDepth(this);
  143|  1.30k|        operand->traverse(it);
  144|  1.30k|        it->decrementDepth();
  145|  1.30k|    }
  146|       |
  147|  5.21k|    if (visit && it->postVisit)
  ------------------
  |  Branch (147:9): [True: 1.30k, False: 3.90k]
  |  Branch (147:18): [True: 0, False: 1.30k]
  ------------------
  148|      0|        it->visitUnary(EvPostVisit, this);
  149|  5.21k|}
_ZN7glslang16TIntermAggregate8traverseEPNS_16TIntermTraverserE:
  155|  69.5k|{
  156|  69.5k|    bool visit = true;
  157|       |
  158|  69.5k|    if (it->preVisit)
  ------------------
  |  Branch (158:9): [True: 69.5k, False: 0]
  ------------------
  159|  69.5k|        visit = it->visitAggregate(EvPreVisit, this);
  160|       |
  161|  69.5k|    if (visit) {
  ------------------
  |  Branch (161:9): [True: 4.99k, False: 64.5k]
  ------------------
  162|  4.99k|        it->incrementDepth(this);
  163|       |
  164|  4.99k|        if (it->rightToLeft) {
  ------------------
  |  Branch (164:13): [True: 0, False: 4.99k]
  ------------------
  165|      0|            for (TIntermSequence::reverse_iterator sit = sequence.rbegin(); sit != sequence.rend(); sit++) {
  ------------------
  |  Branch (165:77): [True: 0, False: 0]
  ------------------
  166|      0|                (*sit)->traverse(it);
  167|       |
  168|      0|                if (visit && it->inVisit) {
  ------------------
  |  Branch (168:21): [True: 0, False: 0]
  |  Branch (168:30): [True: 0, False: 0]
  ------------------
  169|      0|                    if (*sit != sequence.front())
  ------------------
  |  Branch (169:25): [True: 0, False: 0]
  ------------------
  170|      0|                        visit = it->visitAggregate(EvInVisit, this);
  171|      0|                }
  172|      0|            }
  173|  4.99k|        } else {
  174|  23.5k|            for (TIntermSequence::iterator sit = sequence.begin(); sit != sequence.end(); sit++) {
  ------------------
  |  Branch (174:68): [True: 18.5k, False: 4.99k]
  ------------------
  175|  18.5k|                (*sit)->traverse(it);
  176|       |
  177|  18.5k|                if (visit && it->inVisit) {
  ------------------
  |  Branch (177:21): [True: 18.5k, False: 0]
  |  Branch (177:30): [True: 0, False: 18.5k]
  ------------------
  178|      0|                    if (*sit != sequence.back())
  ------------------
  |  Branch (178:25): [True: 0, False: 0]
  ------------------
  179|      0|                        visit = it->visitAggregate(EvInVisit, this);
  180|      0|                }
  181|  18.5k|            }
  182|  4.99k|        }
  183|       |
  184|  4.99k|        it->decrementDepth();
  185|  4.99k|    }
  186|       |
  187|  69.5k|    if (visit && it->postVisit)
  ------------------
  |  Branch (187:9): [True: 4.99k, False: 64.5k]
  |  Branch (187:18): [True: 870, False: 4.12k]
  ------------------
  188|    870|        it->visitAggregate(EvPostVisit, this);
  189|  69.5k|}
_ZN7glslang16TIntermSelection8traverseEPNS_16TIntermTraverserE:
  195|    408|{
  196|    408|    bool visit = true;
  197|       |
  198|    408|    if (it->preVisit)
  ------------------
  |  Branch (198:9): [True: 408, False: 0]
  ------------------
  199|    408|        visit = it->visitSelection(EvPreVisit, this);
  200|       |
  201|    408|    if (visit) {
  ------------------
  |  Branch (201:9): [True: 280, False: 128]
  ------------------
  202|    280|        it->incrementDepth(this);
  203|    280|        if (it->rightToLeft) {
  ------------------
  |  Branch (203:13): [True: 0, False: 280]
  ------------------
  204|      0|            if (falseBlock)
  ------------------
  |  Branch (204:17): [True: 0, False: 0]
  ------------------
  205|      0|                falseBlock->traverse(it);
  206|      0|            if (trueBlock)
  ------------------
  |  Branch (206:17): [True: 0, False: 0]
  ------------------
  207|      0|                trueBlock->traverse(it);
  208|      0|            condition->traverse(it);
  209|    280|        } else {
  210|    280|            condition->traverse(it);
  211|    280|            if (trueBlock)
  ------------------
  |  Branch (211:17): [True: 278, False: 2]
  ------------------
  212|    278|                trueBlock->traverse(it);
  213|    280|            if (falseBlock)
  ------------------
  |  Branch (213:17): [True: 0, False: 280]
  ------------------
  214|      0|                falseBlock->traverse(it);
  215|    280|        }
  216|    280|        it->decrementDepth();
  217|    280|    }
  218|       |
  219|    408|    if (visit && it->postVisit)
  ------------------
  |  Branch (219:9): [True: 280, False: 128]
  |  Branch (219:18): [True: 0, False: 280]
  ------------------
  220|      0|        it->visitSelection(EvPostVisit, this);
  221|    408|}
_ZN7glslang11TIntermLoop8traverseEPNS_16TIntermTraverserE:
  227|     36|{
  228|     36|    bool visit = true;
  229|       |
  230|     36|    if (it->preVisit)
  ------------------
  |  Branch (230:9): [True: 36, False: 0]
  ------------------
  231|     36|        visit = it->visitLoop(EvPreVisit, this);
  232|       |
  233|     36|    if (visit) {
  ------------------
  |  Branch (233:9): [True: 25, False: 11]
  ------------------
  234|     25|        it->incrementDepth(this);
  235|       |
  236|     25|        if (it->rightToLeft) {
  ------------------
  |  Branch (236:13): [True: 0, False: 25]
  ------------------
  237|      0|            if (terminal)
  ------------------
  |  Branch (237:17): [True: 0, False: 0]
  ------------------
  238|      0|                terminal->traverse(it);
  239|       |
  240|      0|            if (body)
  ------------------
  |  Branch (240:17): [True: 0, False: 0]
  ------------------
  241|      0|                body->traverse(it);
  242|       |
  243|      0|            if (test)
  ------------------
  |  Branch (243:17): [True: 0, False: 0]
  ------------------
  244|      0|                test->traverse(it);
  245|     25|        } else {
  246|     25|            if (test)
  ------------------
  |  Branch (246:17): [True: 25, False: 0]
  ------------------
  247|     25|                test->traverse(it);
  248|       |
  249|     25|            if (body)
  ------------------
  |  Branch (249:17): [True: 25, False: 0]
  ------------------
  250|     25|                body->traverse(it);
  251|       |
  252|     25|            if (terminal)
  ------------------
  |  Branch (252:17): [True: 14, False: 11]
  ------------------
  253|     14|                terminal->traverse(it);
  254|     25|        }
  255|       |
  256|     25|        it->decrementDepth();
  257|     25|    }
  258|       |
  259|     36|    if (visit && it->postVisit)
  ------------------
  |  Branch (259:9): [True: 25, False: 11]
  |  Branch (259:18): [True: 0, False: 25]
  ------------------
  260|      0|        it->visitLoop(EvPostVisit, this);
  261|     36|}
_ZN7glslang13TIntermBranch8traverseEPNS_16TIntermTraverserE:
  267|    500|{
  268|    500|    bool visit = true;
  269|       |
  270|    500|    if (it->preVisit)
  ------------------
  |  Branch (270:9): [True: 500, False: 0]
  ------------------
  271|    500|        visit = it->visitBranch(EvPreVisit, this);
  272|       |
  273|    500|    if (visit && expression) {
  ------------------
  |  Branch (273:9): [True: 172, False: 328]
  |  Branch (273:18): [True: 136, False: 36]
  ------------------
  274|    136|        it->incrementDepth(this);
  275|    136|        expression->traverse(it);
  276|    136|        it->decrementDepth();
  277|    136|    }
  278|       |
  279|    500|    if (visit && it->postVisit)
  ------------------
  |  Branch (279:9): [True: 172, False: 328]
  |  Branch (279:18): [True: 0, False: 172]
  ------------------
  280|      0|        it->visitBranch(EvPostVisit, this);
  281|    500|}
_ZN7glslang13TIntermSwitch8traverseEPNS_16TIntermTraverserE:
  287|     38|{
  288|     38|    bool visit = true;
  289|       |
  290|     38|    if (it->preVisit)
  ------------------
  |  Branch (290:9): [True: 38, False: 0]
  ------------------
  291|     38|        visit = it->visitSwitch(EvPreVisit, this);
  292|       |
  293|     38|    if (visit) {
  ------------------
  |  Branch (293:9): [True: 26, False: 12]
  ------------------
  294|     26|        it->incrementDepth(this);
  295|     26|        if (it->rightToLeft) {
  ------------------
  |  Branch (295:13): [True: 0, False: 26]
  ------------------
  296|      0|            body->traverse(it);
  297|      0|            condition->traverse(it);
  298|     26|        } else {
  299|     26|            condition->traverse(it);
  300|     26|            body->traverse(it);
  301|     26|        }
  302|     26|        it->decrementDepth();
  303|     26|    }
  304|       |
  305|     38|    if (visit && it->postVisit)
  ------------------
  |  Branch (305:9): [True: 26, False: 12]
  |  Branch (305:18): [True: 0, False: 26]
  ------------------
  306|      0|        it->visitSwitch(EvPostVisit, this);
  307|     38|}

_ZN7glslang13TIntermediate9addSymbolExRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEES9_RKNS_5TTypeERKNS_16TConstUnionArrayEPNS_12TIntermTypedERKNS_10TSourceLocE:
   73|   371k|{
   74|   371k|    TIntermSymbol* node = new TIntermSymbol(id, name, getStage(), type, &mangledName);
   75|   371k|    node->setLoc(loc);
   76|   371k|    node->setConstArray(constArray);
   77|   371k|    node->setConstSubtree(constSubtree);
   78|       |
   79|   371k|    return node;
   80|   371k|}
_ZN7glslang13TIntermediate9addSymbolERKNS_9TVariableE:
   94|  20.1k|{
   95|  20.1k|    glslang::TSourceLoc loc; // just a null location
   96|  20.1k|    loc.init();
   97|       |
   98|  20.1k|    return addSymbol(variable, loc);
   99|  20.1k|}
_ZN7glslang13TIntermediate9addSymbolERKNS_9TVariableERKNS_10TSourceLocE:
  102|   371k|{
  103|   371k|    return addSymbol(variable.getUniqueId(), variable.getName(), variable.getMangledName(), variable.getType(), variable.getConstArray(), variable.getConstSubtree(), loc);
  104|   371k|}
_ZN7glslang13TIntermediate9addSymbolERKNS_5TTypeERKNS_10TSourceLocE:
  107|     40|{
  108|     40|    TConstUnionArray unionArray;  // just a null constant
  109|       |
  110|     40|    return addSymbol(0, "", "", type, unionArray, nullptr, loc);
  111|     40|}
_ZN7glslang13TIntermediate13addBinaryMathENS_9TOperatorEPNS_12TIntermTypedES3_RKNS_10TSourceLocE:
  121|  15.7k|{
  122|       |    // No operations work on blocks
  123|  15.7k|    if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock ||
  ------------------
  |  Branch (123:9): [True: 8, False: 15.7k]
  |  Branch (123:55): [True: 0, False: 15.7k]
  ------------------
  124|  15.7k|        left->getType().getBasicType() == EbtString || right->getType().getBasicType() == EbtString)
  ------------------
  |  Branch (124:9): [True: 0, False: 15.7k]
  |  Branch (124:56): [True: 0, False: 15.7k]
  ------------------
  125|      8|        return nullptr;
  126|       |
  127|       |    // Convert "reference +/- int" and "reference - reference" to integer math
  128|  15.7k|    if (op == EOpAdd || op == EOpSub) {
  ------------------
  |  Branch (128:9): [True: 3.47k, False: 12.2k]
  |  Branch (128:25): [True: 2.84k, False: 9.39k]
  ------------------
  129|       |
  130|       |        // No addressing math on struct with unsized array.
  131|  6.32k|        if ((left->isReference() && left->getType().getReferentType()->containsUnsizedArray()) ||
  ------------------
  |  Branch (131:14): [True: 0, False: 6.32k]
  |  Branch (131:37): [True: 0, False: 0]
  ------------------
  132|  6.32k|            (right->isReference() && right->getType().getReferentType()->containsUnsizedArray())) {
  ------------------
  |  Branch (132:14): [True: 0, False: 6.32k]
  |  Branch (132:38): [True: 0, False: 0]
  ------------------
  133|      0|            return nullptr;
  134|      0|        }
  135|       |
  136|  6.32k|        if (left->isReference() && isTypeInt(right->getBasicType())) {
  ------------------
  |  Branch (136:13): [True: 0, False: 6.32k]
  |  Branch (136:36): [True: 0, False: 0]
  ------------------
  137|      0|            const TType& referenceType = left->getType();
  138|      0|            TIntermConstantUnion* size = addConstantUnion((unsigned long long)computeBufferReferenceTypeSize(left->getType()), loc, true);
  139|      0|            left  = addBuiltInFunctionCall(loc, EOpConvPtrToUint64, true, left, TType(EbtUint64));
  140|       |
  141|      0|            right = createConversion(EbtInt64, right);
  142|      0|            right = addBinaryMath(EOpMul, right, size, loc);
  143|       |
  144|      0|            TIntermTyped *node = addBinaryMath(op, left, right, loc);
  145|      0|            node = addBuiltInFunctionCall(loc, EOpConvUint64ToPtr, true, node, referenceType);
  146|      0|            return node;
  147|      0|        }
  148|  6.32k|    }
  149|       |
  150|  15.7k|    if (op == EOpAdd && right->isReference() && isTypeInt(left->getBasicType())) {
  ------------------
  |  Branch (150:9): [True: 3.47k, False: 12.2k]
  |  Branch (150:25): [True: 0, False: 3.47k]
  |  Branch (150:49): [True: 0, False: 0]
  ------------------
  151|      0|        const TType& referenceType = right->getType();
  152|      0|        TIntermConstantUnion* size =
  153|      0|            addConstantUnion((unsigned long long)computeBufferReferenceTypeSize(right->getType()), loc, true);
  154|      0|        right = addBuiltInFunctionCall(loc, EOpConvPtrToUint64, true, right, TType(EbtUint64));
  155|       |
  156|      0|        left  = createConversion(EbtInt64, left);
  157|      0|        left  = addBinaryMath(EOpMul, left, size, loc);
  158|       |
  159|      0|        TIntermTyped *node = addBinaryMath(op, left, right, loc);
  160|      0|        node = addBuiltInFunctionCall(loc, EOpConvUint64ToPtr, true, node, referenceType);
  161|      0|        return node;
  162|      0|    }
  163|       |
  164|  15.7k|    if (op == EOpSub && left->isReference() && right->isReference()) {
  ------------------
  |  Branch (164:9): [True: 2.84k, False: 12.8k]
  |  Branch (164:25): [True: 0, False: 2.84k]
  |  Branch (164:48): [True: 0, False: 0]
  ------------------
  165|      0|        TIntermConstantUnion* size =
  166|      0|            addConstantUnion((long long)computeBufferReferenceTypeSize(left->getType()), loc, true);
  167|       |
  168|      0|        left = addBuiltInFunctionCall(loc, EOpConvPtrToUint64, true, left, TType(EbtUint64));
  169|      0|        right = addBuiltInFunctionCall(loc, EOpConvPtrToUint64, true, right, TType(EbtUint64));
  170|       |
  171|      0|        left = addBuiltInFunctionCall(loc, EOpConvNumeric, true, left, TType(EbtInt64));
  172|      0|        right = addBuiltInFunctionCall(loc, EOpConvNumeric, true, right, TType(EbtInt64));
  173|       |
  174|      0|        left = addBinaryMath(EOpSub, left, right, loc);
  175|       |
  176|      0|        TIntermTyped *node = addBinaryMath(EOpDiv, left, size, loc);
  177|      0|        return node;
  178|      0|    }
  179|       |
  180|       |    // No other math operators supported on references
  181|  15.7k|    if (left->isReference() || right->isReference())
  ------------------
  |  Branch (181:9): [True: 0, False: 15.7k]
  |  Branch (181:32): [True: 0, False: 15.7k]
  ------------------
  182|      0|        return nullptr;
  183|       |
  184|       |    // Try converting the children's base types to compatible types.
  185|  15.7k|    auto children = addPairConversion(op, left, right);
  186|  15.7k|    left = std::get<0>(children);
  187|  15.7k|    right = std::get<1>(children);
  188|       |
  189|  15.7k|    if (left == nullptr || right == nullptr)
  ------------------
  |  Branch (189:9): [True: 966, False: 14.7k]
  |  Branch (189:28): [True: 0, False: 14.7k]
  ------------------
  190|    966|        return nullptr;
  191|       |
  192|       |    // Convert the children's type shape to be compatible.
  193|  14.7k|    addBiShapeConversion(op, left, right);
  194|  14.7k|    if (left == nullptr || right == nullptr)
  ------------------
  |  Branch (194:9): [True: 0, False: 14.7k]
  |  Branch (194:28): [True: 0, False: 14.7k]
  ------------------
  195|      0|        return nullptr;
  196|       |
  197|       |    //
  198|       |    // Need a new node holding things together.  Make
  199|       |    // one and promote it to the right type.
  200|       |    //
  201|  14.7k|    TIntermBinary* node = addBinaryNode(op, left, right, loc);
  202|  14.7k|    if (! promote(node))
  ------------------
  |  Branch (202:9): [True: 436, False: 14.3k]
  ------------------
  203|    436|        return nullptr;
  204|       |
  205|  14.3k|    node->updatePrecision();
  206|       |
  207|       |    //
  208|       |    // If they are both (non-specialization) constants, they must be folded.
  209|       |    // (Unless it's the sequence (comma) operator, but that's handled in addComma().)
  210|       |    //
  211|  14.3k|    TIntermConstantUnion *leftTempConstant = node->getLeft()->getAsConstantUnion();
  212|  14.3k|    TIntermConstantUnion *rightTempConstant = node->getRight()->getAsConstantUnion();
  213|  14.3k|    if (leftTempConstant && rightTempConstant) {
  ------------------
  |  Branch (213:9): [True: 1.87k, False: 12.4k]
  |  Branch (213:29): [True: 1.67k, False: 201]
  ------------------
  214|  1.67k|        TIntermTyped* folded = leftTempConstant->fold(node->getOp(), rightTempConstant);
  215|  1.67k|        if (folded)
  ------------------
  |  Branch (215:13): [True: 1.67k, False: 0]
  ------------------
  216|  1.67k|            return folded;
  217|  1.67k|    }
  218|       |
  219|       |    // If can propagate spec-constantness and if the operation is an allowed
  220|       |    // specialization-constant operation, make a spec-constant.
  221|  12.6k|    if (specConstantPropagates(*node->getLeft(), *node->getRight()) && isSpecializationOperation(*node))
  ------------------
  |  Branch (221:9): [True: 4, False: 12.6k]
  |  Branch (221:72): [True: 4, False: 0]
  ------------------
  222|      4|        node->getWritableType().getQualifier().makeSpecConstant();
  223|       |
  224|       |    // If must propagate nonuniform, make a nonuniform.
  225|  12.6k|    if ((node->getLeft()->getQualifier().isNonUniform() || node->getRight()->getQualifier().isNonUniform()) &&
  ------------------
  |  Branch (225:10): [True: 0, False: 12.6k]
  |  Branch (225:60): [True: 0, False: 12.6k]
  ------------------
  226|      0|            isNonuniformPropagating(node->getOp()))
  ------------------
  |  Branch (226:13): [True: 0, False: 0]
  ------------------
  227|      0|        node->getWritableType().getQualifier().nonUniform = true;
  228|       |
  229|  12.6k|    return node;
  230|  14.3k|}
_ZNK7glslang13TIntermediate13addBinaryNodeENS_9TOperatorEPNS_12TIntermTypedES3_RKNS_10TSourceLocE:
  237|   133k|{
  238|       |    // build the node
  239|   133k|    TIntermBinary* node = new TIntermBinary(op);
  240|   133k|    node->setLoc(loc.line != 0 ? loc : left->getLoc());
  ------------------
  |  Branch (240:18): [True: 133k, False: 0]
  ------------------
  241|   133k|    node->setLeft(left);
  242|   133k|    node->setRight(right);
  243|       |
  244|   133k|    return node;
  245|   133k|}
_ZNK7glslang13TIntermediate12addUnaryNodeENS_9TOperatorEPNS_12TIntermTypedERKNS_10TSourceLocE:
  262|   132k|{
  263|   132k|    TIntermUnary* node = new TIntermUnary(op);
  264|   132k|    node->setLoc(loc.line != 0 ? loc : child->getLoc());
  ------------------
  |  Branch (264:18): [True: 132k, False: 0]
  ------------------
  265|   132k|    node->setOperand(child);
  266|       |
  267|   132k|    return node;
  268|   132k|}
_ZNK7glslang13TIntermediate12addUnaryNodeENS_9TOperatorEPNS_12TIntermTypedERKNS_10TSourceLocERKNS_5TTypeE:
  275|  70.9k|{
  276|  70.9k|    TIntermUnary* node = addUnaryNode(op, child, loc);
  277|  70.9k|    node->setType(type);
  278|  70.9k|    return node;
  279|  70.9k|}
_ZN7glslang13TIntermediate9addAssignENS_9TOperatorEPNS_12TIntermTypedES3_RKNS_10TSourceLocE:
  291|   130k|{
  292|       |    // No block assignment
  293|   130k|    if (left->getType().getBasicType() == EbtBlock || right->getType().getBasicType() == EbtBlock)
  ------------------
  |  Branch (293:9): [True: 86, False: 130k]
  |  Branch (293:55): [True: 6, False: 130k]
  ------------------
  294|     92|        return nullptr;
  295|       |
  296|       |    // Convert "reference += int" to "reference = reference + int". We need this because the
  297|       |    // "reference + int" calculation involves a cast back to the original type, which makes it
  298|       |    // not an lvalue.
  299|   130k|    if ((op == EOpAddAssign || op == EOpSubAssign) && left->isReference()) {
  ------------------
  |  Branch (299:10): [True: 6.93k, False: 123k]
  |  Branch (299:32): [True: 162, False: 123k]
  |  Branch (299:55): [True: 0, False: 7.10k]
  ------------------
  300|      0|        if (!(right->getType().isScalar() && right->getType().isIntegerDomain()))
  ------------------
  |  Branch (300:15): [True: 0, False: 0]
  |  Branch (300:46): [True: 0, False: 0]
  ------------------
  301|      0|            return nullptr;
  302|       |
  303|      0|        TIntermTyped* node = addBinaryMath(op == EOpAddAssign ? EOpAdd : EOpSub, left, right, loc);
  ------------------
  |  Branch (303:44): [True: 0, False: 0]
  ------------------
  304|      0|        if (!node)
  ------------------
  |  Branch (304:13): [True: 0, False: 0]
  ------------------
  305|      0|            return nullptr;
  306|       |
  307|      0|        TIntermSymbol* symbol = left->getAsSymbolNode();
  308|      0|        left = addSymbol(*symbol);
  309|       |
  310|      0|        node = addAssign(EOpAssign, left, node, loc);
  311|      0|        return node;
  312|      0|    }
  313|       |
  314|       |    //
  315|       |    // Like adding binary math, except the conversion can only go
  316|       |    // from right to left.
  317|       |    //
  318|       |
  319|       |    // convert base types, nullptr return means not possible
  320|   130k|    right = addConversion(op, left->getType(), right);
  321|   130k|    if (right == nullptr)
  ------------------
  |  Branch (321:9): [True: 28.3k, False: 102k]
  ------------------
  322|  28.3k|        return nullptr;
  323|       |
  324|       |    // convert shape
  325|   102k|    right = addUniShapeConversion(op, left->getType(), right);
  326|       |
  327|       |    // build the node
  328|   102k|    TIntermBinary* node = addBinaryNode(op, left, right, loc);
  329|       |
  330|   102k|    if (! promote(node))
  ------------------
  |  Branch (330:9): [True: 25.7k, False: 76.6k]
  ------------------
  331|  25.7k|        return nullptr;
  332|       |
  333|  76.6k|    node->updatePrecision();
  334|       |
  335|  76.6k|    return node;
  336|   102k|}
_ZN7glslang13TIntermediate8addIndexENS_9TOperatorEPNS_12TIntermTypedES3_RKNS_10TSourceLocE:
  347|  16.6k|{
  348|       |    // caller should set the type
  349|  16.6k|    return addBinaryNode(op, base, index, loc);
  350|  16.6k|}
_ZN7glslang13TIntermediate12addUnaryMathENS_9TOperatorEPNS_12TIntermTypedERKNS_10TSourceLocE:
  359|   156k|{
  360|   156k|    if (child == nullptr)
  ------------------
  |  Branch (360:9): [True: 0, False: 156k]
  ------------------
  361|      0|        return nullptr;
  362|       |
  363|   156k|    if (child->getType().getBasicType() == EbtBlock)
  ------------------
  |  Branch (363:9): [True: 0, False: 156k]
  ------------------
  364|      0|        return nullptr;
  365|       |
  366|   156k|    switch (op) {
  367|      9|    case EOpLogicalNot:
  ------------------
  |  Branch (367:5): [True: 9, False: 156k]
  ------------------
  368|      9|        if (getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (368:13): [True: 0, False: 9]
  ------------------
  369|      0|            break; // HLSL can promote logical not
  370|      0|        }
  371|       |
  372|      9|        if (child->getType().getBasicType() != EbtBool || child->getType().isMatrix() || child->getType().isArray() || child->getType().isVector()) {
  ------------------
  |  Branch (372:13): [True: 7, False: 2]
  |  Branch (372:59): [True: 0, False: 2]
  |  Branch (372:90): [True: 0, False: 2]
  |  Branch (372:120): [True: 0, False: 2]
  ------------------
  373|      7|            return nullptr;
  374|      7|        }
  375|      2|        break;
  376|       |
  377|    184|    case EOpPostIncrement:
  ------------------
  |  Branch (377:5): [True: 184, False: 156k]
  ------------------
  378|  19.7k|    case EOpPreIncrement:
  ------------------
  |  Branch (378:5): [True: 19.5k, False: 137k]
  ------------------
  379|  19.8k|    case EOpPostDecrement:
  ------------------
  |  Branch (379:5): [True: 140, False: 156k]
  ------------------
  380|  37.5k|    case EOpPreDecrement:
  ------------------
  |  Branch (380:5): [True: 17.6k, False: 139k]
  ------------------
  381|  61.2k|    case EOpNegative:
  ------------------
  |  Branch (381:5): [True: 23.6k, False: 133k]
  ------------------
  382|  61.2k|        if (child->getType().getBasicType() == EbtStruct || child->getType().isArray())
  ------------------
  |  Branch (382:13): [True: 0, False: 61.2k]
  |  Branch (382:61): [True: 0, False: 61.2k]
  ------------------
  383|      0|            return nullptr;
  384|  61.2k|        break;
  385|  95.6k|    default: break; // some compilers want this
  ------------------
  |  Branch (385:5): [True: 95.6k, False: 61.2k]
  ------------------
  386|   156k|    }
  387|       |
  388|       |    //
  389|       |    // Do we need to promote the operand?
  390|       |    //
  391|   156k|    TBasicType newType = EbtVoid;
  392|   156k|    switch (op) {
  393|  1.23k|    case EOpConstructBool:   newType = EbtBool;   break;
  ------------------
  |  Branch (393:5): [True: 1.23k, False: 155k]
  ------------------
  394|  10.1k|    case EOpConstructFloat:  newType = EbtFloat;  break;
  ------------------
  |  Branch (394:5): [True: 10.1k, False: 146k]
  ------------------
  395|  32.2k|    case EOpConstructInt:    newType = EbtInt;    break;
  ------------------
  |  Branch (395:5): [True: 32.2k, False: 124k]
  ------------------
  396|  9.33k|    case EOpConstructUint:   newType = EbtUint;   break;
  ------------------
  |  Branch (396:5): [True: 9.33k, False: 147k]
  ------------------
  397|  7.13k|    case EOpConstructInt8:   newType = EbtInt8;   break;
  ------------------
  |  Branch (397:5): [True: 7.13k, False: 149k]
  ------------------
  398|  4.45k|    case EOpConstructUint8:  newType = EbtUint8;  break;
  ------------------
  |  Branch (398:5): [True: 4.45k, False: 152k]
  ------------------
  399|  7.37k|    case EOpConstructInt16:  newType = EbtInt16;  break;
  ------------------
  |  Branch (399:5): [True: 7.37k, False: 149k]
  ------------------
  400|  3.66k|    case EOpConstructUint16: newType = EbtUint16; break;
  ------------------
  |  Branch (400:5): [True: 3.66k, False: 153k]
  ------------------
  401|  6.69k|    case EOpConstructInt64:  newType = EbtInt64;  break;
  ------------------
  |  Branch (401:5): [True: 6.69k, False: 150k]
  ------------------
  402|  4.67k|    case EOpConstructUint64: newType = EbtUint64; break;
  ------------------
  |  Branch (402:5): [True: 4.67k, False: 152k]
  ------------------
  403|  4.23k|    case EOpConstructDouble: newType = EbtDouble; break;
  ------------------
  |  Branch (403:5): [True: 4.23k, False: 152k]
  ------------------
  404|  4.30k|    case EOpConstructFloat16: newType = EbtFloat16; break;
  ------------------
  |  Branch (404:5): [True: 4.30k, False: 152k]
  ------------------
  405|      0|    case EOpConstructBFloat16: newType = EbtBFloat16; break;
  ------------------
  |  Branch (405:5): [True: 0, False: 156k]
  ------------------
  406|      0|    case EOpConstructFloatE4M3: newType = EbtFloatE4M3; break;
  ------------------
  |  Branch (406:5): [True: 0, False: 156k]
  ------------------
  407|      0|    case EOpConstructFloatE5M2: newType = EbtFloatE5M2; break;
  ------------------
  |  Branch (407:5): [True: 0, False: 156k]
  ------------------
  408|      0|    case EOpConstructFloatE2M1: newType = EbtFloatE2M1; break;
  ------------------
  |  Branch (408:5): [True: 0, False: 156k]
  ------------------
  409|      0|    case EOpConstructFloatE3M2: newType = EbtFloatE3M2; break;
  ------------------
  |  Branch (409:5): [True: 0, False: 156k]
  ------------------
  410|      0|    case EOpConstructFloatE2M3: newType = EbtFloatE2M3; break;
  ------------------
  |  Branch (410:5): [True: 0, False: 156k]
  ------------------
  411|      0|    case EOpConstructFloatUE8M0: newType = EbtFloatUE8M0; break;
  ------------------
  |  Branch (411:5): [True: 0, False: 156k]
  ------------------
  412|      0|    case EOpConstructFloatMXINT8: newType = EbtFloatMXINT8; break;
  ------------------
  |  Branch (412:5): [True: 0, False: 156k]
  ------------------
  413|  61.3k|    default: break; // some compilers want this
  ------------------
  |  Branch (413:5): [True: 61.3k, False: 95.4k]
  ------------------
  414|   156k|    }
  415|       |
  416|   156k|    if (newType != EbtVoid) {
  ------------------
  |  Branch (416:9): [True: 95.4k, False: 61.3k]
  ------------------
  417|  95.4k|        TType newTType(newType, EvqTemporary, child->getVectorSize(), child->getMatrixCols(), child->getMatrixRows(), child->isVector());
  418|  95.4k|        if (child->getType().isLongVector()) {
  ------------------
  |  Branch (418:13): [True: 0, False: 95.4k]
  ------------------
  419|      0|            newTType.shallowCopy(child->getType());
  420|      0|            newTType.setBasicType(newType);
  421|      0|            newTType.makeTemporary();
  422|      0|            newTType.getQualifier().clear();
  423|      0|        }
  424|       |
  425|  95.4k|        child = addConversion(op, newTType, child);
  426|  95.4k|        if (child == nullptr)
  ------------------
  |  Branch (426:13): [True: 0, False: 95.4k]
  ------------------
  427|      0|            return nullptr;
  428|  95.4k|    }
  429|       |
  430|       |    //
  431|       |    // For constructors, we are now done, it was all in the conversion.
  432|       |    // TODO: but, did this bypass constant folding?
  433|       |    //
  434|   156k|    switch (op) {
  435|  7.13k|        case EOpConstructInt8:
  ------------------
  |  Branch (435:9): [True: 7.13k, False: 149k]
  ------------------
  436|  11.5k|        case EOpConstructUint8:
  ------------------
  |  Branch (436:9): [True: 4.45k, False: 152k]
  ------------------
  437|  18.9k|        case EOpConstructInt16:
  ------------------
  |  Branch (437:9): [True: 7.37k, False: 149k]
  ------------------
  438|  22.6k|        case EOpConstructUint16:
  ------------------
  |  Branch (438:9): [True: 3.66k, False: 153k]
  ------------------
  439|  54.8k|        case EOpConstructInt:
  ------------------
  |  Branch (439:9): [True: 32.2k, False: 124k]
  ------------------
  440|  64.1k|        case EOpConstructUint:
  ------------------
  |  Branch (440:9): [True: 9.33k, False: 147k]
  ------------------
  441|  70.8k|        case EOpConstructInt64:
  ------------------
  |  Branch (441:9): [True: 6.69k, False: 150k]
  ------------------
  442|  75.5k|        case EOpConstructUint64:
  ------------------
  |  Branch (442:9): [True: 4.67k, False: 152k]
  ------------------
  443|  76.7k|        case EOpConstructBool:
  ------------------
  |  Branch (443:9): [True: 1.23k, False: 155k]
  ------------------
  444|  86.9k|        case EOpConstructFloat:
  ------------------
  |  Branch (444:9): [True: 10.1k, False: 146k]
  ------------------
  445|  91.1k|        case EOpConstructDouble:
  ------------------
  |  Branch (445:9): [True: 4.23k, False: 152k]
  ------------------
  446|  95.4k|        case EOpConstructFloat16:
  ------------------
  |  Branch (446:9): [True: 4.30k, False: 152k]
  ------------------
  447|  95.4k|        case EOpConstructBFloat16:
  ------------------
  |  Branch (447:9): [True: 0, False: 156k]
  ------------------
  448|  95.4k|        case EOpConstructFloatE5M2:
  ------------------
  |  Branch (448:9): [True: 0, False: 156k]
  ------------------
  449|  95.4k|        case EOpConstructFloatE4M3:
  ------------------
  |  Branch (449:9): [True: 0, False: 156k]
  ------------------
  450|  95.4k|        case EOpConstructFloatE2M1:
  ------------------
  |  Branch (450:9): [True: 0, False: 156k]
  ------------------
  451|  95.4k|        case EOpConstructFloatE3M2:
  ------------------
  |  Branch (451:9): [True: 0, False: 156k]
  ------------------
  452|  95.4k|        case EOpConstructFloatE2M3:
  ------------------
  |  Branch (452:9): [True: 0, False: 156k]
  ------------------
  453|  95.4k|        case EOpConstructFloatUE8M0:
  ------------------
  |  Branch (453:9): [True: 0, False: 156k]
  ------------------
  454|  95.4k|        case EOpConstructFloatMXINT8: {
  ------------------
  |  Branch (454:9): [True: 0, False: 156k]
  ------------------
  455|  95.4k|            TIntermUnary* unary_node = child->getAsUnaryNode();
  456|  95.4k|            if (unary_node != nullptr)
  ------------------
  |  Branch (456:17): [True: 5.23k, False: 90.2k]
  ------------------
  457|  5.23k|                unary_node->updatePrecision();
  458|  95.4k|            return child;
  459|  95.4k|        }
  460|  61.3k|        default: break; // some compilers want this
  ------------------
  |  Branch (460:9): [True: 61.3k, False: 95.4k]
  ------------------
  461|   156k|    }
  462|       |
  463|       |    //
  464|       |    // Make a new node for the operator.
  465|       |    //
  466|  61.3k|    TIntermUnary* node = addUnaryNode(op, child, loc);
  467|       |
  468|  61.3k|    if (! promote(node))
  ------------------
  |  Branch (468:9): [True: 109, False: 61.2k]
  ------------------
  469|    109|        return nullptr;
  470|       |
  471|  61.2k|    node->updatePrecision();
  472|       |
  473|       |    // If it's a (non-specialization) constant, it must be folded.
  474|  61.2k|    if (node->getOperand()->getAsConstantUnion())
  ------------------
  |  Branch (474:9): [True: 6.04k, False: 55.2k]
  ------------------
  475|  6.04k|        return node->getOperand()->getAsConstantUnion()->fold(op, node->getType());
  476|       |
  477|       |    // If it's a specialization constant, the result is too,
  478|       |    // if the operation is allowed for specialization constants.
  479|  55.2k|    if (node->getOperand()->getType().getQualifier().isSpecConstant() && isSpecializationOperation(*node))
  ------------------
  |  Branch (479:9): [True: 0, False: 55.2k]
  |  Branch (479:74): [True: 0, False: 0]
  ------------------
  480|      0|        node->getWritableType().getQualifier().makeSpecConstant();
  481|       |
  482|       |    // If must propagate nonuniform, make a nonuniform.
  483|  55.2k|    if (node->getOperand()->getQualifier().isNonUniform() && isNonuniformPropagating(node->getOp()))
  ------------------
  |  Branch (483:9): [True: 0, False: 55.2k]
  |  Branch (483:62): [True: 0, False: 0]
  ------------------
  484|      0|        node->getWritableType().getQualifier().nonUniform = true;
  485|       |
  486|  55.2k|    return node;
  487|  61.2k|}
_ZN7glslang13TIntermediate22addBuiltInFunctionCallERKNS_10TSourceLocENS_9TOperatorEbP11TIntermNodeRKNS_5TTypeE:
  491|  36.0k|{
  492|  36.0k|    if (unary) {
  ------------------
  |  Branch (492:9): [True: 10.7k, False: 25.3k]
  ------------------
  493|       |        //
  494|       |        // Treat it like a unary operator.
  495|       |        // addUnaryMath() should get the type correct on its own;
  496|       |        // including constness (which would differ from the prototype).
  497|       |        //
  498|  10.7k|        TIntermTyped* child = childNode->getAsTyped();
  499|  10.7k|        if (child == nullptr)
  ------------------
  |  Branch (499:13): [True: 0, False: 10.7k]
  ------------------
  500|      0|            return nullptr;
  501|       |
  502|  10.7k|        if (child->getAsConstantUnion()) {
  ------------------
  |  Branch (502:13): [True: 3.59k, False: 7.11k]
  ------------------
  503|  3.59k|            TIntermTyped* folded = child->getAsConstantUnion()->fold(op, returnType);
  504|  3.59k|            if (folded)
  ------------------
  |  Branch (504:17): [True: 2.70k, False: 884]
  ------------------
  505|  2.70k|                return folded;
  506|  3.59k|        }
  507|       |
  508|  7.99k|        return addUnaryNode(op, child, child->getLoc(), returnType);
  509|  25.3k|    } else {
  510|       |        // setAggregateOperater() calls fold() for constant folding
  511|  25.3k|        TIntermTyped* node = setAggregateOperator(childNode, op, returnType, loc);
  512|       |
  513|  25.3k|        return node;
  514|  25.3k|    }
  515|  36.0k|}
_ZN7glslang13TIntermediate20setAggregateOperatorEP11TIntermNodeNS_9TOperatorERKNS_5TTypeERKNS_10TSourceLocE:
  529|  98.7k|{
  530|  98.7k|    TIntermAggregate* aggNode;
  531|       |
  532|       |    //
  533|       |    // Make sure we have an aggregate.  If not turn it into one.
  534|       |    //
  535|  98.7k|    if (node != nullptr) {
  ------------------
  |  Branch (535:9): [True: 97.6k, False: 1.05k]
  ------------------
  536|  97.6k|        aggNode = node->getAsAggregate();
  537|  97.6k|        if (aggNode == nullptr || aggNode->getOp() != EOpNull) {
  ------------------
  |  Branch (537:13): [True: 48.1k, False: 49.4k]
  |  Branch (537:35): [True: 68, False: 49.4k]
  ------------------
  538|       |            //
  539|       |            // Make an aggregate containing this node.
  540|       |            //
  541|  48.2k|            aggNode = new TIntermAggregate();
  542|  48.2k|            aggNode->getSequence().push_back(node);
  543|  48.2k|        }
  544|  97.6k|    } else
  545|  1.05k|        aggNode = new TIntermAggregate();
  546|       |
  547|       |    //
  548|       |    // Set the operator.
  549|       |    //
  550|  98.7k|    aggNode->setOperator(op);
  551|  98.7k|    if (loc.line != 0 || node != nullptr)
  ------------------
  |  Branch (551:9): [True: 98.7k, False: 0]
  |  Branch (551:26): [True: 0, False: 0]
  ------------------
  552|  98.7k|        aggNode->setLoc(loc.line != 0 ? loc : node->getLoc());
  ------------------
  |  Branch (552:25): [True: 98.7k, False: 0]
  ------------------
  553|       |
  554|  98.7k|    aggNode->setType(type);
  555|       |
  556|  98.7k|    return fold(aggNode);
  557|  98.7k|}
_ZNK7glslang13TIntermediate19isConversionAllowedENS_9TOperatorEPNS_12TIntermTypedE:
  560|   553k|{
  561|       |    //
  562|       |    // Does the base type even allow the operation?
  563|       |    //
  564|   553k|    switch (node->getBasicType()) {
  565|     14|    case EbtVoid:
  ------------------
  |  Branch (565:5): [True: 14, False: 553k]
  ------------------
  566|     14|        return false;
  567|      0|    case EbtAtomicUint:
  ------------------
  |  Branch (567:5): [True: 0, False: 553k]
  ------------------
  568|    108|    case EbtSampler:
  ------------------
  |  Branch (568:5): [True: 108, False: 553k]
  ------------------
  569|    108|    case EbtAccStruct:
  ------------------
  |  Branch (569:5): [True: 0, False: 553k]
  ------------------
  570|       |        // opaque types can be passed to functions
  571|    108|        if (op == EOpFunction)
  ------------------
  |  Branch (571:13): [True: 0, False: 108]
  ------------------
  572|      0|            break;
  573|       |
  574|       |        // HLSL can assign samplers directly (no constructor)
  575|    108|        if (getSource() == EShSourceHlsl && node->getBasicType() == EbtSampler)
  ------------------
  |  Branch (575:13): [True: 0, False: 108]
  |  Branch (575:45): [True: 0, False: 0]
  ------------------
  576|      0|            break;
  577|       |
  578|       |        // samplers can get assigned via a sampler constructor
  579|       |        // (well, not yet, but code in the rest of this function is ready for it)
  580|    108|        if (node->getBasicType() == EbtSampler && op == EOpAssign &&
  ------------------
  |  Branch (580:13): [True: 108, False: 0]
  |  Branch (580:51): [True: 79, False: 29]
  ------------------
  581|     79|            node->getAsOperator() != nullptr && node->getAsOperator()->getOp() == EOpConstructTextureSampler)
  ------------------
  |  Branch (581:13): [True: 13, False: 66]
  |  Branch (581:49): [True: 13, False: 0]
  ------------------
  582|     13|            break;
  583|       |
  584|       |        // ARB_bindless_texture makes samplers and images l-values, so they can be
  585|       |        // initialized and assigned, which is what carries them in and out of functions.
  586|     95|        if (op == EOpAssign && node->getBasicType() == EbtSampler &&
  ------------------
  |  Branch (586:13): [True: 66, False: 29]
  |  Branch (586:32): [True: 66, False: 0]
  ------------------
  587|     66|            IsRequestedExtension(E_GL_ARB_bindless_texture))
  ------------------
  |  Branch (587:13): [True: 0, False: 66]
  ------------------
  588|      0|            break;
  589|       |
  590|       |        // otherwise, opaque types can't even be operated on, let alone converted
  591|     95|        return false;
  592|   553k|    default:
  ------------------
  |  Branch (592:5): [True: 553k, False: 122]
  ------------------
  593|   553k|        break;
  594|   553k|    }
  595|       |
  596|   553k|    return true;
  597|   553k|}
_ZNK7glslang13TIntermediate14buildConvertOpENS_10TBasicTypeES1_RNS_9TOperatorE:
  600|  62.9k|{
  601|       |    // (bfloat16_t,fp8) <-> bool not supported
  602|  62.9k|    if (((src == EbtBFloat16 || src == EbtFloatE5M2 || src == EbtFloatE4M3 || isTypeOcpMicroscalingFloat(src)) && dst == EbtBool) ||
  ------------------
  |  Branch (602:11): [True: 0, False: 62.9k]
  |  Branch (602:33): [True: 0, False: 62.9k]
  |  Branch (602:56): [True: 0, False: 62.9k]
  |  Branch (602:79): [True: 0, False: 62.9k]
  |  Branch (602:115): [True: 0, False: 0]
  ------------------
  603|  62.9k|        ((dst == EbtBFloat16 || dst == EbtFloatE5M2 || dst == EbtFloatE4M3 || isTypeOcpMicroscalingFloat(dst)) && src == EbtBool)) {
  ------------------
  |  Branch (603:11): [True: 0, False: 62.9k]
  |  Branch (603:33): [True: 0, False: 62.9k]
  |  Branch (603:56): [True: 0, False: 62.9k]
  |  Branch (603:79): [True: 0, False: 62.9k]
  |  Branch (603:115): [True: 0, False: 0]
  ------------------
  604|      0|        return false;
  605|      0|    }
  606|       |
  607|       |    // no type conversions to microscaling types
  608|  62.9k|    if (isTypeOcpMicroscalingFloat(dst) && src != dst) {
  ------------------
  |  Branch (608:9): [True: 0, False: 62.9k]
  |  Branch (608:44): [True: 0, False: 0]
  ------------------
  609|      0|        return false;
  610|      0|    }
  611|       |
  612|  62.9k|    if ((isTypeInt(dst) || isTypeFloat(dst) || dst == EbtBool) &&
  ------------------
  |  Branch (612:10): [True: 33.0k, False: 29.9k]
  |  Branch (612:28): [True: 29.5k, False: 340]
  |  Branch (612:48): [True: 340, False: 0]
  ------------------
  613|  62.9k|        (isTypeInt(src) || isTypeFloat(src) || src == EbtBool)) {
  ------------------
  |  Branch (613:10): [True: 59.3k, False: 3.59k]
  |  Branch (613:28): [True: 3.20k, False: 391]
  |  Branch (613:48): [True: 391, False: 0]
  ------------------
  614|  62.9k|        newOp = EOpConvNumeric;
  615|  62.9k|        return true;
  616|  62.9k|    }
  617|      0|    return false;
  618|  62.9k|}
_ZNK7glslang13TIntermediate16createConversionENS_10TBasicTypeEPNS_12TIntermTypedE:
  624|  62.9k|{
  625|       |    //
  626|       |    // Add a new newNode for the conversion.
  627|       |    //
  628|       |
  629|  62.9k|    bool convertToIntTypes = (convertTo == EbtInt8  || convertTo == EbtUint8  ||
  ------------------
  |  Branch (629:31): [True: 6.44k, False: 56.5k]
  |  Branch (629:56): [True: 3.83k, False: 52.7k]
  ------------------
  630|  52.7k|                              convertTo == EbtInt16 || convertTo == EbtUint16 ||
  ------------------
  |  Branch (630:31): [True: 6.46k, False: 46.2k]
  |  Branch (630:56): [True: 3.55k, False: 42.6k]
  ------------------
  631|  42.6k|                              convertTo == EbtInt   || convertTo == EbtUint   ||
  ------------------
  |  Branch (631:31): [True: 2.06k, False: 40.6k]
  |  Branch (631:56): [True: 2.15k, False: 38.4k]
  ------------------
  632|  38.4k|                              convertTo == EbtInt64 || convertTo == EbtUint64);
  ------------------
  |  Branch (632:31): [True: 2.02k, False: 36.4k]
  |  Branch (632:56): [True: 6.52k, False: 29.9k]
  ------------------
  633|       |
  634|  62.9k|    bool convertFromIntTypes = (node->getBasicType() == EbtInt8  || node->getBasicType() == EbtUint8  ||
  ------------------
  |  Branch (634:33): [True: 1.66k, False: 61.3k]
  |  Branch (634:69): [True: 1.35k, False: 59.9k]
  ------------------
  635|  59.9k|                                node->getBasicType() == EbtInt16 || node->getBasicType() == EbtUint16 ||
  ------------------
  |  Branch (635:33): [True: 3.68k, False: 56.2k]
  |  Branch (635:69): [True: 2.21k, False: 54.0k]
  ------------------
  636|  54.0k|                                node->getBasicType() == EbtInt   || node->getBasicType() == EbtUint   ||
  ------------------
  |  Branch (636:33): [True: 23.8k, False: 30.2k]
  |  Branch (636:69): [True: 12.1k, False: 18.0k]
  ------------------
  637|  18.0k|                                node->getBasicType() == EbtInt64 || node->getBasicType() == EbtUint64);
  ------------------
  |  Branch (637:33): [True: 6.99k, False: 11.0k]
  |  Branch (637:69): [True: 7.46k, False: 3.59k]
  ------------------
  638|       |
  639|  62.9k|    bool convertToFloatTypes = (convertTo == EbtFloat16 || convertTo == EbtBFloat16 || convertTo == EbtFloat || convertTo == EbtDouble ||
  ------------------
  |  Branch (639:33): [True: 3.94k, False: 59.0k]
  |  Branch (639:60): [True: 0, False: 59.0k]
  |  Branch (639:88): [True: 8.38k, False: 50.6k]
  |  Branch (639:113): [True: 17.2k, False: 33.4k]
  ------------------
  640|  33.4k|                                convertTo == EbtFloatE5M2 || convertTo == EbtFloatE4M3);
  ------------------
  |  Branch (640:33): [True: 0, False: 33.4k]
  |  Branch (640:62): [True: 0, False: 33.4k]
  ------------------
  641|       |
  642|  62.9k|    bool convertFromFloatTypes = (node->getBasicType() == EbtFloat16 ||
  ------------------
  |  Branch (642:35): [True: 711, False: 62.2k]
  ------------------
  643|  62.2k|                                  node->getBasicType() == EbtBFloat16 ||
  ------------------
  |  Branch (643:35): [True: 0, False: 62.2k]
  ------------------
  644|  62.2k|                                  node->getBasicType() == EbtFloat ||
  ------------------
  |  Branch (644:35): [True: 2.26k, False: 60.0k]
  ------------------
  645|  60.0k|                                  node->getBasicType() == EbtDouble ||
  ------------------
  |  Branch (645:35): [True: 230, False: 59.7k]
  ------------------
  646|  59.7k|                                  node->getBasicType() == EbtFloatE5M2 ||
  ------------------
  |  Branch (646:35): [True: 0, False: 59.7k]
  ------------------
  647|  59.7k|                                  node->getBasicType() == EbtFloatE4M3 ||
  ------------------
  |  Branch (647:35): [True: 0, False: 59.7k]
  ------------------
  648|  59.7k|                                  isTypeOcpMicroscalingFloat(node->getBasicType()));
  ------------------
  |  Branch (648:35): [True: 0, False: 59.7k]
  ------------------
  649|       |
  650|  62.9k|    if (((convertTo == EbtInt8 || convertTo == EbtUint8) && ! convertFromIntTypes) ||
  ------------------
  |  Branch (650:11): [True: 6.44k, False: 56.5k]
  |  Branch (650:35): [True: 3.83k, False: 52.7k]
  |  Branch (650:61): [True: 59, False: 10.2k]
  ------------------
  651|  62.9k|        ((node->getBasicType() == EbtInt8 || node->getBasicType() == EbtUint8) && ! convertToIntTypes)) {
  ------------------
  |  Branch (651:11): [True: 1.66k, False: 61.2k]
  |  Branch (651:46): [True: 1.35k, False: 59.9k]
  |  Branch (651:83): [True: 888, False: 2.13k]
  ------------------
  652|    947|        if (! getArithemeticInt8Enabled()) {
  ------------------
  |  Branch (652:13): [True: 0, False: 947]
  ------------------
  653|      0|            return nullptr;
  654|      0|        }
  655|    947|    }
  656|       |
  657|  62.9k|    if (((convertTo == EbtInt16 || convertTo == EbtUint16) && ! convertFromIntTypes) ||
  ------------------
  |  Branch (657:11): [True: 6.46k, False: 56.5k]
  |  Branch (657:36): [True: 3.55k, False: 52.9k]
  |  Branch (657:63): [True: 756, False: 9.26k]
  ------------------
  658|  62.2k|        ((node->getBasicType() == EbtInt16 || node->getBasicType() == EbtUint16) && ! convertToIntTypes)) {
  ------------------
  |  Branch (658:11): [True: 3.68k, False: 58.5k]
  |  Branch (658:47): [True: 2.21k, False: 56.3k]
  |  Branch (658:85): [True: 2.42k, False: 3.47k]
  ------------------
  659|  3.17k|        if (! getArithemeticInt16Enabled()) {
  ------------------
  |  Branch (659:13): [True: 0, False: 3.17k]
  ------------------
  660|      0|            return nullptr;
  661|      0|        }
  662|  3.17k|    }
  663|       |
  664|  62.9k|    if ((convertTo == EbtFloat16 && ! convertFromFloatTypes) ||
  ------------------
  |  Branch (664:10): [True: 3.94k, False: 59.0k]
  |  Branch (664:37): [True: 3.88k, False: 61]
  ------------------
  665|  59.1k|        (node->getBasicType() == EbtFloat16 && ! convertToFloatTypes)) {
  ------------------
  |  Branch (665:10): [True: 711, False: 58.3k]
  |  Branch (665:48): [True: 142, False: 569]
  ------------------
  666|  4.02k|        if (! getArithemeticFloat16Enabled()) {
  ------------------
  |  Branch (666:13): [True: 0, False: 4.02k]
  ------------------
  667|      0|            return nullptr;
  668|      0|        }
  669|  4.02k|    }
  670|       |
  671|  62.9k|    TIntermUnary* newNode = nullptr;
  672|  62.9k|    TOperator newOp = EOpNull;
  673|  62.9k|    if (!buildConvertOp(convertTo, node->getBasicType(), newOp)) {
  ------------------
  |  Branch (673:9): [True: 0, False: 62.9k]
  ------------------
  674|      0|        return nullptr;
  675|      0|    }
  676|       |
  677|  62.9k|    TType newType(convertTo, EvqTemporary, node->getVectorSize(), node->getMatrixCols(), node->getMatrixRows());
  678|  62.9k|    if (node->getType().isLongVector()) {
  ------------------
  |  Branch (678:9): [True: 0, False: 62.9k]
  ------------------
  679|      0|        newType.shallowCopy(node->getType());
  680|      0|        newType.setBasicType(convertTo);
  681|      0|        newType.makeTemporary();
  682|      0|        newType.getQualifier().clear();
  683|      0|    }
  684|  62.9k|    newNode = addUnaryNode(newOp, node, node->getLoc(), newType);
  685|       |
  686|  62.9k|    if (node->getAsConstantUnion()) {
  ------------------
  |  Branch (686:9): [True: 20.9k, False: 42.0k]
  ------------------
  687|       |        // 8/16-bit storage extensions don't support 8/16-bit constants, so don't fold conversions
  688|       |        // to those types
  689|  20.9k|        if ((getArithemeticInt8Enabled() || !(convertTo == EbtInt8 || convertTo == EbtUint8)) &&
  ------------------
  |  Branch (689:14): [True: 20.9k, False: 7]
  |  Branch (689:47): [True: 0, False: 7]
  |  Branch (689:71): [True: 0, False: 7]
  ------------------
  690|  20.9k|            (getArithemeticInt16Enabled() || !(convertTo == EbtInt16 || convertTo == EbtUint16)) &&
  ------------------
  |  Branch (690:14): [True: 20.9k, False: 0]
  |  Branch (690:48): [True: 0, False: 0]
  |  Branch (690:73): [True: 0, False: 0]
  ------------------
  691|  20.9k|            (getArithemeticFloat16Enabled() || !(convertTo == EbtFloat16)))
  ------------------
  |  Branch (691:14): [True: 20.9k, False: 0]
  |  Branch (691:48): [True: 0, False: 0]
  ------------------
  692|  20.9k|        {
  693|  20.9k|            TIntermTyped* folded = node->getAsConstantUnion()->fold(newOp, newType);
  694|  20.9k|            if (folded)
  ------------------
  |  Branch (694:17): [True: 20.9k, False: 0]
  ------------------
  695|  20.9k|                return folded;
  696|  20.9k|        }
  697|  20.9k|    }
  698|       |
  699|       |    // Propagate specialization-constant-ness, if allowed
  700|  42.0k|    if (node->getType().getQualifier().isSpecConstant() && isSpecializationOperation(*newNode))
  ------------------
  |  Branch (700:9): [True: 603, False: 41.4k]
  |  Branch (700:60): [True: 602, False: 1]
  ------------------
  701|    602|        newNode->getWritableType().getQualifier().makeSpecConstant();
  702|       |
  703|  42.0k|    return newNode;
  704|  62.9k|}
_ZN7glslang13TIntermediate17addPairConversionENS_9TOperatorEPNS_12TIntermTypedES3_:
  725|  15.8k|{
  726|  15.8k|    if (!isConversionAllowed(op, node0) || !isConversionAllowed(op, node1))
  ------------------
  |  Branch (726:9): [True: 18, False: 15.7k]
  |  Branch (726:44): [True: 11, False: 15.7k]
  ------------------
  727|     29|        return std::make_tuple(nullptr, nullptr);
  728|       |
  729|  15.7k|    if (node0->getType() != node1->getType()) {
  ------------------
  |  Branch (729:9): [True: 9.12k, False: 6.64k]
  ------------------
  730|       |        // If differing structure, then no conversions.
  731|  9.12k|        if (node0->isStruct() || node1->isStruct())
  ------------------
  |  Branch (731:13): [True: 0, False: 9.12k]
  |  Branch (731:34): [True: 3, False: 9.12k]
  ------------------
  732|      3|            return std::make_tuple(nullptr, nullptr);
  733|       |
  734|       |        // If differing arrays, then no conversions.
  735|  9.12k|        if (node0->getType().isArray() || node1->getType().isArray())
  ------------------
  |  Branch (735:13): [True: 30, False: 9.09k]
  |  Branch (735:43): [True: 5, False: 9.09k]
  ------------------
  736|     35|            return std::make_tuple(nullptr, nullptr);
  737|       |
  738|       |        // No implicit conversions for operations involving cooperative matrices
  739|  9.09k|        if (node0->getType().isCoopMat() || node1->getType().isCoopMat())
  ------------------
  |  Branch (739:13): [True: 0, False: 9.09k]
  |  Branch (739:45): [True: 0, False: 9.09k]
  ------------------
  740|      0|            return std::make_tuple(node0, node1);
  741|  9.09k|    }
  742|       |
  743|  15.7k|    auto promoteTo = std::make_tuple(EbtNumTypes, EbtNumTypes);
  744|       |
  745|  15.7k|    switch (op) {
  746|       |    //
  747|       |    // List all the binary ops that can implicitly convert one operand to the other's type;
  748|       |    // This implements the 'policy' for implicit type conversion.
  749|       |    //
  750|    303|    case EOpLessThan:
  ------------------
  |  Branch (750:5): [True: 303, False: 15.4k]
  ------------------
  751|  1.44k|    case EOpGreaterThan:
  ------------------
  |  Branch (751:5): [True: 1.14k, False: 14.5k]
  ------------------
  752|  1.60k|    case EOpLessThanEqual:
  ------------------
  |  Branch (752:5): [True: 161, False: 15.5k]
  ------------------
  753|  1.73k|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (753:5): [True: 123, False: 15.6k]
  ------------------
  754|  3.13k|    case EOpEqual:
  ------------------
  |  Branch (754:5): [True: 1.40k, False: 14.3k]
  ------------------
  755|  4.05k|    case EOpNotEqual:
  ------------------
  |  Branch (755:5): [True: 919, False: 14.8k]
  ------------------
  756|       |
  757|  7.52k|    case EOpAdd:
  ------------------
  |  Branch (757:5): [True: 3.47k, False: 12.2k]
  ------------------
  758|  10.3k|    case EOpSub:
  ------------------
  |  Branch (758:5): [True: 2.84k, False: 12.8k]
  ------------------
  759|  13.1k|    case EOpMul:
  ------------------
  |  Branch (759:5): [True: 2.74k, False: 12.9k]
  ------------------
  760|  13.5k|    case EOpDiv:
  ------------------
  |  Branch (760:5): [True: 450, False: 15.2k]
  ------------------
  761|  14.5k|    case EOpMod:
  ------------------
  |  Branch (761:5): [True: 966, False: 14.7k]
  ------------------
  762|       |
  763|  14.5k|    case EOpVectorTimesScalar:
  ------------------
  |  Branch (763:5): [True: 0, False: 15.7k]
  ------------------
  764|  14.5k|    case EOpVectorTimesMatrix:
  ------------------
  |  Branch (764:5): [True: 0, False: 15.7k]
  ------------------
  765|  14.5k|    case EOpMatrixTimesVector:
  ------------------
  |  Branch (765:5): [True: 0, False: 15.7k]
  ------------------
  766|  14.5k|    case EOpMatrixTimesScalar:
  ------------------
  |  Branch (766:5): [True: 0, False: 15.7k]
  ------------------
  767|       |
  768|  14.7k|    case EOpAnd:
  ------------------
  |  Branch (768:5): [True: 213, False: 15.5k]
  ------------------
  769|  14.9k|    case EOpInclusiveOr:
  ------------------
  |  Branch (769:5): [True: 188, False: 15.5k]
  ------------------
  770|  15.0k|    case EOpExclusiveOr:
  ------------------
  |  Branch (770:5): [True: 141, False: 15.5k]
  ------------------
  771|       |
  772|  15.1k|    case EOpSequence:          // used by ?:
  ------------------
  |  Branch (772:5): [True: 87, False: 15.6k]
  ------------------
  773|       |
  774|  15.1k|        if (node0->getBasicType() == node1->getBasicType())
  ------------------
  |  Branch (774:13): [True: 7.05k, False: 8.09k]
  ------------------
  775|  7.05k|            return std::make_tuple(node0, node1);
  776|       |
  777|  8.09k|        promoteTo = getConversionDestinationType(node0->getBasicType(), node1->getBasicType(), op);
  778|  8.09k|        if (std::get<0>(promoteTo) == EbtNumTypes || std::get<1>(promoteTo) == EbtNumTypes)
  ------------------
  |  Branch (778:13): [True: 889, False: 7.21k]
  |  Branch (778:54): [True: 0, False: 7.21k]
  ------------------
  779|    889|            return std::make_tuple(nullptr, nullptr);
  780|       |
  781|  7.21k|        break;
  782|       |
  783|  7.21k|    case EOpLogicalAnd:
  ------------------
  |  Branch (783:5): [True: 82, False: 15.6k]
  ------------------
  784|    113|    case EOpLogicalOr:
  ------------------
  |  Branch (784:5): [True: 31, False: 15.7k]
  ------------------
  785|    120|    case EOpLogicalXor:
  ------------------
  |  Branch (785:5): [True: 7, False: 15.7k]
  ------------------
  786|    120|        if (getSource() == EShSourceHlsl)
  ------------------
  |  Branch (786:13): [True: 0, False: 120]
  ------------------
  787|      0|            promoteTo = std::make_tuple(EbtBool, EbtBool);
  788|    120|        else
  789|    120|            return std::make_tuple(node0, node1);
  790|      0|        break;
  791|       |
  792|       |    // There are no conversions needed for GLSL; the shift amount just needs to be an
  793|       |    // integer type, as does the base.
  794|       |    // HLSL can promote bools to ints to make this work.
  795|    374|    case EOpLeftShift:
  ------------------
  |  Branch (795:5): [True: 374, False: 15.3k]
  ------------------
  796|    457|    case EOpRightShift:
  ------------------
  |  Branch (796:5): [True: 83, False: 15.6k]
  ------------------
  797|    457|        if (getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (797:13): [True: 0, False: 457]
  ------------------
  798|      0|            TBasicType node0BasicType = node0->getBasicType();
  799|      0|            if (node0BasicType == EbtBool)
  ------------------
  |  Branch (799:17): [True: 0, False: 0]
  ------------------
  800|      0|                node0BasicType = EbtInt;
  801|      0|            if (node1->getBasicType() == EbtBool)
  ------------------
  |  Branch (801:17): [True: 0, False: 0]
  ------------------
  802|      0|                promoteTo = std::make_tuple(node0BasicType, EbtInt);
  803|      0|            else
  804|      0|                promoteTo = std::make_tuple(node0BasicType, node1->getBasicType());
  805|    457|        } else {
  806|    457|            if (isTypeInt(node0->getBasicType()) && isTypeInt(node1->getBasicType()))
  ------------------
  |  Branch (806:17): [True: 448, False: 9]
  |  Branch (806:53): [True: 438, False: 10]
  ------------------
  807|    438|                return std::make_tuple(node0, node1);
  808|     19|            else
  809|     19|                return std::make_tuple(nullptr, nullptr);
  810|    457|        }
  811|      0|        break;
  812|       |
  813|      0|    default:
  ------------------
  |  Branch (813:5): [True: 0, False: 15.7k]
  ------------------
  814|      0|        if (node0->getType() == node1->getType())
  ------------------
  |  Branch (814:13): [True: 0, False: 0]
  ------------------
  815|      0|            return std::make_tuple(node0, node1);
  816|       |
  817|      0|        return std::make_tuple(nullptr, nullptr);
  818|  15.7k|    }
  819|       |
  820|  7.21k|    TIntermTyped* newNode0;
  821|  7.21k|    TIntermTyped* newNode1;
  822|       |
  823|  7.21k|    if (std::get<0>(promoteTo) != node0->getType().getBasicType()) {
  ------------------
  |  Branch (823:9): [True: 1.61k, False: 5.59k]
  ------------------
  824|  1.61k|        if (node0->getAsConstantUnion())
  ------------------
  |  Branch (824:13): [True: 65, False: 1.55k]
  ------------------
  825|     65|            newNode0 = promoteConstantUnion(std::get<0>(promoteTo), node0->getAsConstantUnion());
  826|  1.55k|        else
  827|  1.55k|            newNode0 = createConversion(std::get<0>(promoteTo), node0);
  828|  1.61k|    } else
  829|  5.59k|        newNode0 = node0;
  830|       |
  831|  7.21k|    if (std::get<1>(promoteTo) != node1->getType().getBasicType()) {
  ------------------
  |  Branch (831:9): [True: 5.59k, False: 1.61k]
  ------------------
  832|  5.59k|        if (node1->getAsConstantUnion())
  ------------------
  |  Branch (832:13): [True: 385, False: 5.20k]
  ------------------
  833|    385|            newNode1 = promoteConstantUnion(std::get<1>(promoteTo), node1->getAsConstantUnion());
  834|  5.20k|        else
  835|  5.20k|            newNode1 = createConversion(std::get<1>(promoteTo), node1);
  836|  5.59k|    } else
  837|  1.61k|        newNode1 = node1;
  838|       |
  839|  7.21k|    return std::make_tuple(newNode0, newNode1);
  840|  15.7k|}
_ZN7glslang13TIntermediate13addConversionENS_9TOperatorERKNS_5TTypeEPNS_12TIntermTypedE:
  858|   522k|{
  859|   522k|    if (!isConversionAllowed(op, node))
  ------------------
  |  Branch (859:9): [True: 80, False: 522k]
  ------------------
  860|     80|        return nullptr;
  861|       |
  862|       |    // Otherwise, if types are identical, no problem
  863|   522k|    if (type == node->getType())
  ------------------
  |  Branch (863:9): [True: 378k, False: 143k]
  ------------------
  864|   378k|        return node;
  865|       |
  866|       |    // If one's a structure, then no conversions.
  867|   143k|    if (type.isStruct() || node->isStruct())
  ------------------
  |  Branch (867:9): [True: 4, False: 143k]
  |  Branch (867:28): [True: 1, False: 143k]
  ------------------
  868|      5|        return nullptr;
  869|       |
  870|       |    // If one's an array, then no conversions.
  871|   143k|    if (type.isArray() || node->getType().isArray())
  ------------------
  |  Branch (871:9): [True: 270, False: 143k]
  |  Branch (871:27): [True: 3, False: 143k]
  ------------------
  872|    273|        return nullptr;
  873|       |
  874|       |    // A sampler or image converts to nothing but its own type, and identical types have
  875|       |    // already returned above. Only in bindless mode, so HLSL keeps its own rules.
  876|   143k|    if ((type.getBasicType() == EbtSampler || node->getBasicType() == EbtSampler) &&
  ------------------
  |  Branch (876:10): [True: 6, False: 143k]
  |  Branch (876:47): [True: 0, False: 143k]
  ------------------
  877|      6|        IsRequestedExtension(E_GL_ARB_bindless_texture))
  ------------------
  |  Branch (877:9): [True: 0, False: 6]
  ------------------
  878|      0|        return nullptr;
  879|       |
  880|       |    // Reject implicit conversions to cooperative matrix types
  881|   143k|    if (node->getType().isCoopMat() &&
  ------------------
  |  Branch (881:9): [True: 0, False: 143k]
  ------------------
  882|      0|        op != EOpConstructCooperativeMatrixNV &&
  ------------------
  |  Branch (882:9): [True: 0, False: 0]
  ------------------
  883|      0|        op != EOpConstructCooperativeMatrixKHR &&
  ------------------
  |  Branch (883:9): [True: 0, False: 0]
  ------------------
  884|      0|        op != glslang::EOpCompositeConstructCoopMatQCOM)
  ------------------
  |  Branch (884:9): [True: 0, False: 0]
  ------------------
  885|      0|        return nullptr;
  886|       |
  887|   143k|    if (node->getType().isTensorLayoutNV() ||
  ------------------
  |  Branch (887:9): [True: 0, False: 143k]
  ------------------
  888|   143k|        node->getType().isTensorViewNV())
  ------------------
  |  Branch (888:9): [True: 0, False: 143k]
  ------------------
  889|      0|        return nullptr;
  890|       |
  891|       |    // Reject implicit conversions to cooperative vector types
  892|   143k|    if (node->getType().isCoopVecNV() &&
  ------------------
  |  Branch (892:9): [True: 0, False: 143k]
  ------------------
  893|      0|        op != EOpConstructCooperativeVectorNV)
  ------------------
  |  Branch (893:9): [True: 0, False: 0]
  ------------------
  894|      0|        return nullptr;
  895|       |
  896|       |    // Note: callers are responsible for other aspects of shape,
  897|       |    // like vector and matrix sizes.
  898|       |
  899|   143k|    switch (op) {
  900|       |    //
  901|       |    // Explicit conversions (unary operations)
  902|       |    //
  903|    359|    case EOpConstructBool:
  ------------------
  |  Branch (903:5): [True: 359, False: 143k]
  ------------------
  904|  2.66k|    case EOpConstructFloat:
  ------------------
  |  Branch (904:5): [True: 2.30k, False: 141k]
  ------------------
  905|  4.78k|    case EOpConstructInt:
  ------------------
  |  Branch (905:5): [True: 2.11k, False: 141k]
  ------------------
  906|  13.9k|    case EOpConstructUint:
  ------------------
  |  Branch (906:5): [True: 9.18k, False: 134k]
  ------------------
  907|  18.1k|    case EOpConstructDouble:
  ------------------
  |  Branch (907:5): [True: 4.20k, False: 139k]
  ------------------
  908|  22.3k|    case EOpConstructFloat16:
  ------------------
  |  Branch (908:5): [True: 4.13k, False: 139k]
  ------------------
  909|  22.3k|    case EOpConstructBFloat16:
  ------------------
  |  Branch (909:5): [True: 0, False: 143k]
  ------------------
  910|  22.3k|    case EOpConstructFloatE5M2:
  ------------------
  |  Branch (910:5): [True: 0, False: 143k]
  ------------------
  911|  22.3k|    case EOpConstructFloatE4M3:
  ------------------
  |  Branch (911:5): [True: 0, False: 143k]
  ------------------
  912|  22.3k|    case EOpConstructFloatE2M1:
  ------------------
  |  Branch (912:5): [True: 0, False: 143k]
  ------------------
  913|  22.3k|    case EOpConstructFloatE3M2:
  ------------------
  |  Branch (913:5): [True: 0, False: 143k]
  ------------------
  914|  22.3k|    case EOpConstructFloatE2M3:
  ------------------
  |  Branch (914:5): [True: 0, False: 143k]
  ------------------
  915|  22.3k|    case EOpConstructFloatUE8M0:
  ------------------
  |  Branch (915:5): [True: 0, False: 143k]
  ------------------
  916|  22.3k|    case EOpConstructFloatMXINT8:
  ------------------
  |  Branch (916:5): [True: 0, False: 143k]
  ------------------
  917|  29.3k|    case EOpConstructInt8:
  ------------------
  |  Branch (917:5): [True: 7.08k, False: 136k]
  ------------------
  918|  33.8k|    case EOpConstructUint8:
  ------------------
  |  Branch (918:5): [True: 4.41k, False: 139k]
  ------------------
  919|  40.6k|    case EOpConstructInt16:
  ------------------
  |  Branch (919:5): [True: 6.88k, False: 136k]
  ------------------
  920|  43.9k|    case EOpConstructUint16:
  ------------------
  |  Branch (920:5): [True: 3.21k, False: 140k]
  ------------------
  921|  50.5k|    case EOpConstructInt64:
  ------------------
  |  Branch (921:5): [True: 6.62k, False: 136k]
  ------------------
  922|  55.1k|    case EOpConstructUint64:
  ------------------
  |  Branch (922:5): [True: 4.58k, False: 138k]
  ------------------
  923|  55.1k|    case EOpConstructSaturated:
  ------------------
  |  Branch (923:5): [True: 0, False: 143k]
  ------------------
  924|  55.1k|        break;
  925|       |
  926|       |    //
  927|       |    // Implicit conversions
  928|       |    //
  929|      0|    case EOpLogicalNot:
  ------------------
  |  Branch (929:5): [True: 0, False: 143k]
  ------------------
  930|       |
  931|  4.81k|    case EOpFunctionCall:
  ------------------
  |  Branch (931:5): [True: 4.81k, False: 138k]
  ------------------
  932|       |
  933|  4.81k|    case EOpReturn:
  ------------------
  |  Branch (933:5): [True: 0, False: 143k]
  ------------------
  934|  84.9k|    case EOpAssign:
  ------------------
  |  Branch (934:5): [True: 80.1k, False: 63.2k]
  ------------------
  935|  87.5k|    case EOpAddAssign:
  ------------------
  |  Branch (935:5): [True: 2.52k, False: 140k]
  ------------------
  936|  87.5k|    case EOpSubAssign:
  ------------------
  |  Branch (936:5): [True: 3, False: 143k]
  ------------------
  937|  87.7k|    case EOpMulAssign:
  ------------------
  |  Branch (937:5): [True: 198, False: 143k]
  ------------------
  938|  87.7k|    case EOpVectorTimesScalarAssign:
  ------------------
  |  Branch (938:5): [True: 0, False: 143k]
  ------------------
  939|  87.7k|    case EOpMatrixTimesScalarAssign:
  ------------------
  |  Branch (939:5): [True: 0, False: 143k]
  ------------------
  940|  87.7k|    case EOpDivAssign:
  ------------------
  |  Branch (940:5): [True: 32, False: 143k]
  ------------------
  941|  87.8k|    case EOpModAssign:
  ------------------
  |  Branch (941:5): [True: 108, False: 143k]
  ------------------
  942|  87.8k|    case EOpAndAssign:
  ------------------
  |  Branch (942:5): [True: 29, False: 143k]
  ------------------
  943|  87.9k|    case EOpInclusiveOrAssign:
  ------------------
  |  Branch (943:5): [True: 113, False: 143k]
  ------------------
  944|  88.0k|    case EOpExclusiveOrAssign:
  ------------------
  |  Branch (944:5): [True: 98, False: 143k]
  ------------------
  945|       |
  946|  88.0k|    case EOpAtan:
  ------------------
  |  Branch (946:5): [True: 0, False: 143k]
  ------------------
  947|  88.0k|    case EOpClamp:
  ------------------
  |  Branch (947:5): [True: 0, False: 143k]
  ------------------
  948|  88.0k|    case EOpCross:
  ------------------
  |  Branch (948:5): [True: 0, False: 143k]
  ------------------
  949|  88.0k|    case EOpDistance:
  ------------------
  |  Branch (949:5): [True: 0, False: 143k]
  ------------------
  950|  88.0k|    case EOpDot:
  ------------------
  |  Branch (950:5): [True: 0, False: 143k]
  ------------------
  951|  88.0k|    case EOpDst:
  ------------------
  |  Branch (951:5): [True: 0, False: 143k]
  ------------------
  952|  88.0k|    case EOpFaceForward:
  ------------------
  |  Branch (952:5): [True: 0, False: 143k]
  ------------------
  953|  88.0k|    case EOpFma:
  ------------------
  |  Branch (953:5): [True: 0, False: 143k]
  ------------------
  954|  88.0k|    case EOpFrexp:
  ------------------
  |  Branch (954:5): [True: 0, False: 143k]
  ------------------
  955|  88.0k|    case EOpLdexp:
  ------------------
  |  Branch (955:5): [True: 0, False: 143k]
  ------------------
  956|  88.0k|    case EOpMix:
  ------------------
  |  Branch (956:5): [True: 0, False: 143k]
  ------------------
  957|  88.0k|    case EOpLit:
  ------------------
  |  Branch (957:5): [True: 0, False: 143k]
  ------------------
  958|  88.0k|    case EOpMax:
  ------------------
  |  Branch (958:5): [True: 0, False: 143k]
  ------------------
  959|  88.0k|    case EOpMin:
  ------------------
  |  Branch (959:5): [True: 0, False: 143k]
  ------------------
  960|  88.0k|    case EOpMod:
  ------------------
  |  Branch (960:5): [True: 0, False: 143k]
  ------------------
  961|  88.0k|    case EOpModf:
  ------------------
  |  Branch (961:5): [True: 0, False: 143k]
  ------------------
  962|  88.0k|    case EOpPow:
  ------------------
  |  Branch (962:5): [True: 0, False: 143k]
  ------------------
  963|  88.0k|    case EOpReflect:
  ------------------
  |  Branch (963:5): [True: 0, False: 143k]
  ------------------
  964|  88.0k|    case EOpRefract:
  ------------------
  |  Branch (964:5): [True: 0, False: 143k]
  ------------------
  965|  88.0k|    case EOpSmoothStep:
  ------------------
  |  Branch (965:5): [True: 0, False: 143k]
  ------------------
  966|  88.0k|    case EOpStep:
  ------------------
  |  Branch (966:5): [True: 0, False: 143k]
  ------------------
  967|       |
  968|  88.0k|    case EOpSequence:
  ------------------
  |  Branch (968:5): [True: 0, False: 143k]
  ------------------
  969|  88.1k|    case EOpConstructStruct:
  ------------------
  |  Branch (969:5): [True: 58, False: 143k]
  ------------------
  970|  88.1k|    case EOpConstructCooperativeMatrixNV:
  ------------------
  |  Branch (970:5): [True: 0, False: 143k]
  ------------------
  971|  88.1k|    case EOpConstructCooperativeMatrixKHR:
  ------------------
  |  Branch (971:5): [True: 0, False: 143k]
  ------------------
  972|  88.1k|    case EOpConstructCooperativeVectorNV:
  ------------------
  |  Branch (972:5): [True: 0, False: 143k]
  ------------------
  973|       |
  974|  88.1k|        if (type.isReference() || node->getType().isReference()) {
  ------------------
  |  Branch (974:13): [True: 0, False: 88.1k]
  |  Branch (974:35): [True: 0, False: 88.1k]
  ------------------
  975|       |            // types must match to assign a reference
  976|      0|            if (type == node->getType())
  ------------------
  |  Branch (976:17): [True: 0, False: 0]
  ------------------
  977|      0|                return node;
  978|      0|            else
  979|      0|                return nullptr;
  980|      0|        }
  981|       |
  982|  88.1k|        if (type.getBasicType() == node->getType().getBasicType())
  ------------------
  |  Branch (982:13): [True: 1.67k, False: 86.4k]
  ------------------
  983|  1.67k|            return node;
  984|       |
  985|  86.4k|        if (! canImplicitlyPromote(node->getBasicType(), type.getBasicType(), op))
  ------------------
  |  Branch (985:13): [True: 28.1k, False: 58.2k]
  ------------------
  986|  28.1k|            return nullptr;
  987|  58.2k|        break;
  988|       |
  989|       |    // For GLSL, there are no conversions needed; the shift amount just needs to be an
  990|       |    // integer type, as do the base/result.
  991|       |    // HLSL can convert the shift from a bool to an int.
  992|  58.2k|    case EOpLeftShiftAssign:
  ------------------
  |  Branch (992:5): [True: 108, False: 143k]
  ------------------
  993|    215|    case EOpRightShiftAssign:
  ------------------
  |  Branch (993:5): [True: 107, False: 143k]
  ------------------
  994|    215|    {
  995|    215|        if (!(getSource() == EShSourceHlsl && node->getType().getBasicType() == EbtBool)) {
  ------------------
  |  Branch (995:15): [True: 0, False: 215]
  |  Branch (995:47): [True: 0, False: 0]
  ------------------
  996|    215|            if (isTypeInt(type.getBasicType()) && isTypeInt(node->getBasicType()))
  ------------------
  |  Branch (996:17): [True: 206, False: 9]
  |  Branch (996:51): [True: 197, False: 9]
  ------------------
  997|    197|                return node;
  998|     18|            else
  999|     18|                return nullptr;
 1000|    215|        }
 1001|      0|        break;
 1002|    215|    }
 1003|       |
 1004|      0|    default:
  ------------------
  |  Branch (1004:5): [True: 0, False: 143k]
  ------------------
 1005|       |        // default is to require a match; all exceptions should have case statements above
 1006|       |
 1007|      0|        if (type.getBasicType() == node->getType().getBasicType())
  ------------------
  |  Branch (1007:13): [True: 0, False: 0]
  ------------------
 1008|      0|            return node;
 1009|      0|        else
 1010|      0|            return nullptr;
 1011|   143k|    }
 1012|       |
 1013|   113k|    bool canPromoteConstant = true;
 1014|       |    // GL_EXT_shader_16bit_storage can't do OpConstantComposite with
 1015|       |    // 16-bit types, so disable promotion for those types.
 1016|       |    // Many issues with this, from JohnK:
 1017|       |    //  - this isn't really right to discuss SPIR-V here
 1018|       |    //  - this could easily be entirely about scalars, so is overstepping
 1019|       |    //  - we should be looking at what the shader asked for, and saying whether or
 1020|       |    //    not it can be done, in the parser, by calling requireExtensions(), not
 1021|       |    //    changing language sementics on the fly by asking what extensions are in use
 1022|       |    //  - at the time of this writing (14-Aug-2020), no test results are changed by this.
 1023|   113k|    switch (op) {
 1024|      0|    case EOpConstructBFloat16:
  ------------------
  |  Branch (1024:5): [True: 0, False: 113k]
  ------------------
 1025|      0|    case EOpConstructFloatE5M2:
  ------------------
  |  Branch (1025:5): [True: 0, False: 113k]
  ------------------
 1026|      0|    case EOpConstructFloatE4M3:
  ------------------
  |  Branch (1026:5): [True: 0, False: 113k]
  ------------------
 1027|      0|    case EOpConstructFloatE2M1:
  ------------------
  |  Branch (1027:5): [True: 0, False: 113k]
  ------------------
 1028|      0|    case EOpConstructFloatE3M2:
  ------------------
  |  Branch (1028:5): [True: 0, False: 113k]
  ------------------
 1029|      0|    case EOpConstructFloatE2M3:
  ------------------
  |  Branch (1029:5): [True: 0, False: 113k]
  ------------------
 1030|      0|    case EOpConstructFloatUE8M0:
  ------------------
  |  Branch (1030:5): [True: 0, False: 113k]
  ------------------
 1031|      0|    case EOpConstructFloatMXINT8:
  ------------------
  |  Branch (1031:5): [True: 0, False: 113k]
  ------------------
 1032|      0|        canPromoteConstant = true;
 1033|      0|        break;
 1034|  4.13k|    case EOpConstructFloat16:
  ------------------
  |  Branch (1034:5): [True: 4.13k, False: 109k]
  ------------------
 1035|  4.13k|        canPromoteConstant = numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1035:30): [True: 118, False: 4.01k]
  ------------------
 1036|  4.01k|                             numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_float16);
  ------------------
  |  Branch (1036:30): [True: 437, False: 3.58k]
  ------------------
 1037|  4.13k|        break;
 1038|  7.08k|    case EOpConstructInt8:
  ------------------
  |  Branch (1038:5): [True: 7.08k, False: 106k]
  ------------------
 1039|  11.4k|    case EOpConstructUint8:
  ------------------
  |  Branch (1039:5): [True: 4.41k, False: 108k]
  ------------------
 1040|  11.4k|        canPromoteConstant = numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1040:30): [True: 1.40k, False: 10.0k]
  ------------------
 1041|  10.0k|                             numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_int8);
  ------------------
  |  Branch (1041:30): [True: 101, False: 9.98k]
  ------------------
 1042|  11.4k|        break;
 1043|  6.88k|    case EOpConstructInt16:
  ------------------
  |  Branch (1043:5): [True: 6.88k, False: 106k]
  ------------------
 1044|  10.0k|    case EOpConstructUint16:
  ------------------
  |  Branch (1044:5): [True: 3.21k, False: 110k]
  ------------------
 1045|  10.0k|        canPromoteConstant = numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1045:30): [True: 1.14k, False: 8.95k]
  ------------------
 1046|  8.95k|                             numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_int16);
  ------------------
  |  Branch (1046:30): [True: 108, False: 8.85k]
  ------------------
 1047|  10.0k|        break;
 1048|  87.6k|    default:
  ------------------
  |  Branch (1048:5): [True: 87.6k, False: 25.7k]
  ------------------
 1049|  87.6k|        break;
 1050|   113k|    }
 1051|       |
 1052|   113k|    if (canPromoteConstant && node->getAsConstantUnion())
  ------------------
  |  Branch (1052:9): [True: 90.9k, False: 22.4k]
  |  Branch (1052:31): [True: 57.1k, False: 33.8k]
  ------------------
 1053|  57.1k|        return promoteConstantUnion(type.getBasicType(), node->getAsConstantUnion());
 1054|       |
 1055|       |    //
 1056|       |    // Add a new newNode for the conversion.
 1057|       |    //
 1058|  56.2k|    TIntermTyped* newNode = createConversion(type.getBasicType(), node);
 1059|       |
 1060|  56.2k|    return newNode;
 1061|   113k|}
_ZN7glslang13TIntermediate21addUniShapeConversionENS_9TOperatorERKNS_5TTypeEPNS_12TIntermTypedE:
 1076|   102k|{
 1077|       |    // some source languages don't do this
 1078|   102k|    switch (getSource()) {
 1079|      0|    case EShSourceHlsl:
  ------------------
  |  Branch (1079:5): [True: 0, False: 102k]
  ------------------
 1080|      0|        break;
 1081|   102k|    case EShSourceGlsl:
  ------------------
  |  Branch (1081:5): [True: 102k, False: 0]
  ------------------
 1082|   102k|    default:
  ------------------
  |  Branch (1082:5): [True: 0, False: 102k]
  ------------------
 1083|   102k|        return node;
 1084|   102k|    }
 1085|       |
 1086|       |    // some operations don't do this
 1087|      0|    switch (op) {
 1088|      0|    case EOpFunctionCall:
  ------------------
  |  Branch (1088:5): [True: 0, False: 0]
  ------------------
 1089|      0|    case EOpReturn:
  ------------------
  |  Branch (1089:5): [True: 0, False: 0]
  ------------------
 1090|      0|        break;
 1091|       |
 1092|      0|    case EOpMulAssign:
  ------------------
  |  Branch (1092:5): [True: 0, False: 0]
  ------------------
 1093|       |        // want to support vector *= scalar native ops in AST and lower, not smear, similarly for
 1094|       |        // matrix *= scalar, etc.
 1095|       |
 1096|      0|    case EOpAddAssign:
  ------------------
  |  Branch (1096:5): [True: 0, False: 0]
  ------------------
 1097|      0|    case EOpSubAssign:
  ------------------
  |  Branch (1097:5): [True: 0, False: 0]
  ------------------
 1098|      0|    case EOpDivAssign:
  ------------------
  |  Branch (1098:5): [True: 0, False: 0]
  ------------------
 1099|      0|    case EOpAndAssign:
  ------------------
  |  Branch (1099:5): [True: 0, False: 0]
  ------------------
 1100|      0|    case EOpInclusiveOrAssign:
  ------------------
  |  Branch (1100:5): [True: 0, False: 0]
  ------------------
 1101|      0|    case EOpExclusiveOrAssign:
  ------------------
  |  Branch (1101:5): [True: 0, False: 0]
  ------------------
 1102|      0|    case EOpRightShiftAssign:
  ------------------
  |  Branch (1102:5): [True: 0, False: 0]
  ------------------
 1103|      0|    case EOpLeftShiftAssign:
  ------------------
  |  Branch (1103:5): [True: 0, False: 0]
  ------------------
 1104|      0|        if (node->getVectorSize() == 1)
  ------------------
  |  Branch (1104:13): [True: 0, False: 0]
  ------------------
 1105|      0|            return node;
 1106|      0|        break;
 1107|       |
 1108|      0|    case EOpAssign:
  ------------------
  |  Branch (1108:5): [True: 0, False: 0]
  ------------------
 1109|      0|        break;
 1110|       |
 1111|      0|    case EOpMix:
  ------------------
  |  Branch (1111:5): [True: 0, False: 0]
  ------------------
 1112|      0|        break;
 1113|       |
 1114|      0|    default:
  ------------------
  |  Branch (1114:5): [True: 0, False: 0]
  ------------------
 1115|      0|        return node;
 1116|      0|    }
 1117|       |
 1118|      0|    return addShapeConversion(type, node);
 1119|      0|}
_ZN7glslang13TIntermediate20addBiShapeConversionENS_9TOperatorERPNS_12TIntermTypedES4_:
 1129|  14.8k|{
 1130|       |    // some source languages don't do this
 1131|  14.8k|    switch (getSource()) {
 1132|      0|    case EShSourceHlsl:
  ------------------
  |  Branch (1132:5): [True: 0, False: 14.8k]
  ------------------
 1133|      0|        break;
 1134|  14.8k|    case EShSourceGlsl:
  ------------------
  |  Branch (1134:5): [True: 14.8k, False: 0]
  ------------------
 1135|  14.8k|    default:
  ------------------
  |  Branch (1135:5): [True: 0, False: 14.8k]
  ------------------
 1136|  14.8k|        return;
 1137|  14.8k|    }
 1138|       |
 1139|       |    // some operations don't do this
 1140|       |    // 'break' will mean attempt bidirectional conversion
 1141|      0|    switch (op) {
 1142|      0|    case EOpMulAssign:
  ------------------
  |  Branch (1142:5): [True: 0, False: 0]
  ------------------
 1143|      0|    case EOpAssign:
  ------------------
  |  Branch (1143:5): [True: 0, False: 0]
  ------------------
 1144|      0|    case EOpAddAssign:
  ------------------
  |  Branch (1144:5): [True: 0, False: 0]
  ------------------
 1145|      0|    case EOpSubAssign:
  ------------------
  |  Branch (1145:5): [True: 0, False: 0]
  ------------------
 1146|      0|    case EOpDivAssign:
  ------------------
  |  Branch (1146:5): [True: 0, False: 0]
  ------------------
 1147|      0|    case EOpAndAssign:
  ------------------
  |  Branch (1147:5): [True: 0, False: 0]
  ------------------
 1148|      0|    case EOpInclusiveOrAssign:
  ------------------
  |  Branch (1148:5): [True: 0, False: 0]
  ------------------
 1149|      0|    case EOpExclusiveOrAssign:
  ------------------
  |  Branch (1149:5): [True: 0, False: 0]
  ------------------
 1150|      0|    case EOpRightShiftAssign:
  ------------------
  |  Branch (1150:5): [True: 0, False: 0]
  ------------------
 1151|      0|    case EOpLeftShiftAssign:
  ------------------
  |  Branch (1151:5): [True: 0, False: 0]
  ------------------
 1152|       |        // switch to unidirectional conversion (the lhs can't change)
 1153|      0|        rhsNode = addUniShapeConversion(op, lhsNode->getType(), rhsNode);
 1154|      0|        return;
 1155|       |
 1156|      0|    case EOpMul:
  ------------------
  |  Branch (1156:5): [True: 0, False: 0]
  ------------------
 1157|       |        // matrix multiply does not change shapes
 1158|      0|        if (lhsNode->isMatrix() && rhsNode->isMatrix())
  ------------------
  |  Branch (1158:13): [True: 0, False: 0]
  |  Branch (1158:36): [True: 0, False: 0]
  ------------------
 1159|      0|            return;
 1160|      0|        [[fallthrough]];
 1161|      0|    case EOpAdd:
  ------------------
  |  Branch (1161:5): [True: 0, False: 0]
  ------------------
 1162|      0|    case EOpSub:
  ------------------
  |  Branch (1162:5): [True: 0, False: 0]
  ------------------
 1163|      0|    case EOpDiv:
  ------------------
  |  Branch (1163:5): [True: 0, False: 0]
  ------------------
 1164|       |        // want to support vector * scalar native ops in AST and lower, not smear, similarly for
 1165|       |        // matrix * vector, etc.
 1166|      0|        if (lhsNode->getVectorSize() == 1 || rhsNode->getVectorSize() == 1)
  ------------------
  |  Branch (1166:13): [True: 0, False: 0]
  |  Branch (1166:46): [True: 0, False: 0]
  ------------------
 1167|      0|            return;
 1168|      0|        break;
 1169|       |
 1170|      0|    case EOpRightShift:
  ------------------
  |  Branch (1170:5): [True: 0, False: 0]
  ------------------
 1171|      0|    case EOpLeftShift:
  ------------------
  |  Branch (1171:5): [True: 0, False: 0]
  ------------------
 1172|       |        // can natively support the right operand being a scalar and the left a vector,
 1173|       |        // but not the reverse
 1174|      0|        if (rhsNode->getVectorSize() == 1)
  ------------------
  |  Branch (1174:13): [True: 0, False: 0]
  ------------------
 1175|      0|            return;
 1176|      0|        break;
 1177|       |
 1178|      0|    case EOpLessThan:
  ------------------
  |  Branch (1178:5): [True: 0, False: 0]
  ------------------
 1179|      0|    case EOpGreaterThan:
  ------------------
  |  Branch (1179:5): [True: 0, False: 0]
  ------------------
 1180|      0|    case EOpLessThanEqual:
  ------------------
  |  Branch (1180:5): [True: 0, False: 0]
  ------------------
 1181|      0|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (1181:5): [True: 0, False: 0]
  ------------------
 1182|       |
 1183|      0|    case EOpEqual:
  ------------------
  |  Branch (1183:5): [True: 0, False: 0]
  ------------------
 1184|      0|    case EOpNotEqual:
  ------------------
  |  Branch (1184:5): [True: 0, False: 0]
  ------------------
 1185|       |
 1186|      0|    case EOpLogicalAnd:
  ------------------
  |  Branch (1186:5): [True: 0, False: 0]
  ------------------
 1187|      0|    case EOpLogicalOr:
  ------------------
  |  Branch (1187:5): [True: 0, False: 0]
  ------------------
 1188|      0|    case EOpLogicalXor:
  ------------------
  |  Branch (1188:5): [True: 0, False: 0]
  ------------------
 1189|       |
 1190|      0|    case EOpAnd:
  ------------------
  |  Branch (1190:5): [True: 0, False: 0]
  ------------------
 1191|      0|    case EOpInclusiveOr:
  ------------------
  |  Branch (1191:5): [True: 0, False: 0]
  ------------------
 1192|      0|    case EOpExclusiveOr:
  ------------------
  |  Branch (1192:5): [True: 0, False: 0]
  ------------------
 1193|       |
 1194|      0|    case EOpMix:
  ------------------
  |  Branch (1194:5): [True: 0, False: 0]
  ------------------
 1195|      0|        break;
 1196|       |
 1197|      0|    default:
  ------------------
  |  Branch (1197:5): [True: 0, False: 0]
  ------------------
 1198|      0|        return;
 1199|      0|    }
 1200|       |
 1201|       |    // Do bidirectional conversions
 1202|      0|    if (lhsNode->getType().isScalarOrVec1() || rhsNode->getType().isScalarOrVec1()) {
  ------------------
  |  Branch (1202:9): [True: 0, False: 0]
  |  Branch (1202:48): [True: 0, False: 0]
  ------------------
 1203|      0|        if (lhsNode->getType().isScalarOrVec1())
  ------------------
  |  Branch (1203:13): [True: 0, False: 0]
  ------------------
 1204|      0|            lhsNode = addShapeConversion(rhsNode->getType(), lhsNode);
 1205|      0|        else
 1206|      0|            rhsNode = addShapeConversion(lhsNode->getType(), rhsNode);
 1207|      0|    }
 1208|      0|    lhsNode = addShapeConversion(rhsNode->getType(), lhsNode);
 1209|      0|    rhsNode = addShapeConversion(lhsNode->getType(), rhsNode);
 1210|      0|}
_ZNK7glslang13TIntermediate19isIntegralPromotionENS_10TBasicTypeES1_:
 1315|   145k|{
 1316|       |    // integral promotions
 1317|   145k|    if (to == EbtInt) {
  ------------------
  |  Branch (1317:9): [True: 13.0k, False: 132k]
  ------------------
 1318|  13.0k|        switch(from) {
 1319|  2.04k|        case EbtInt8:
  ------------------
  |  Branch (1319:9): [True: 2.04k, False: 11.0k]
  ------------------
 1320|  3.89k|        case EbtInt16:
  ------------------
  |  Branch (1320:9): [True: 1.85k, False: 11.2k]
  ------------------
 1321|  4.66k|        case EbtUint8:
  ------------------
  |  Branch (1321:9): [True: 770, False: 12.2k]
  ------------------
 1322|  5.25k|        case EbtUint16:
  ------------------
  |  Branch (1322:9): [True: 593, False: 12.4k]
  ------------------
 1323|  5.25k|            return true;
 1324|  7.80k|        default:
  ------------------
  |  Branch (1324:9): [True: 7.80k, False: 5.25k]
  ------------------
 1325|  7.80k|            break;
 1326|  13.0k|        }
 1327|  13.0k|    }
 1328|   140k|    return false;
 1329|   145k|}
_ZNK7glslang13TIntermediate13isFPPromotionENS_10TBasicTypeES1_:
 1332|   140k|{
 1333|       |    // floating-point promotions
 1334|   140k|    if (to == EbtDouble) {
  ------------------
  |  Branch (1334:9): [True: 28.8k, False: 111k]
  ------------------
 1335|  28.8k|        switch(from) {
 1336|      0|        case EbtBFloat16:
  ------------------
  |  Branch (1336:9): [True: 0, False: 28.8k]
  ------------------
 1337|      0|        case EbtFloatE5M2:
  ------------------
  |  Branch (1337:9): [True: 0, False: 28.8k]
  ------------------
 1338|      0|        case EbtFloatE4M3:
  ------------------
  |  Branch (1338:9): [True: 0, False: 28.8k]
  ------------------
 1339|      0|        case EbtFloatE2M1:
  ------------------
  |  Branch (1339:9): [True: 0, False: 28.8k]
  ------------------
 1340|      0|        case EbtFloatE3M2:
  ------------------
  |  Branch (1340:9): [True: 0, False: 28.8k]
  ------------------
 1341|      0|        case EbtFloatE2M3:
  ------------------
  |  Branch (1341:9): [True: 0, False: 28.8k]
  ------------------
 1342|      0|        case EbtFloatMXINT8:
  ------------------
  |  Branch (1342:9): [True: 0, False: 28.8k]
  ------------------
 1343|    369|        case EbtFloat16:
  ------------------
  |  Branch (1343:9): [True: 369, False: 28.4k]
  ------------------
 1344|  3.18k|        case EbtFloat:
  ------------------
  |  Branch (1344:9): [True: 2.81k, False: 26.0k]
  ------------------
 1345|  3.18k|            return true;
 1346|  25.6k|        default:
  ------------------
  |  Branch (1346:9): [True: 25.6k, False: 3.18k]
  ------------------
 1347|  25.6k|            break;
 1348|  28.8k|        }
 1349|  28.8k|    }
 1350|   137k|    return false;
 1351|   140k|}
_ZNK7glslang13TIntermediate20isIntegralConversionENS_10TBasicTypeES1_:
 1354|   136k|{
 1355|   136k|    switch (from) {
 1356|  13.3k|    case EbtInt:
  ------------------
  |  Branch (1356:5): [True: 13.3k, False: 122k]
  ------------------
 1357|  13.3k|        switch(to) {
 1358|  5.85k|        case EbtUint:
  ------------------
  |  Branch (1358:9): [True: 5.85k, False: 7.52k]
  ------------------
 1359|  5.85k|            return version >= 400 || getSource() == EShSourceHlsl;
  ------------------
  |  Branch (1359:20): [True: 4.22k, False: 1.62k]
  |  Branch (1359:38): [True: 0, False: 1.62k]
  ------------------
 1360|  2.25k|        case EbtInt64:
  ------------------
  |  Branch (1360:9): [True: 2.25k, False: 11.1k]
  ------------------
 1361|  3.72k|        case EbtUint64:
  ------------------
  |  Branch (1361:9): [True: 1.46k, False: 11.9k]
  ------------------
 1362|  3.72k|            return true;
 1363|  3.79k|        default:
  ------------------
  |  Branch (1363:9): [True: 3.79k, False: 9.58k]
  ------------------
 1364|  3.79k|            break;
 1365|  13.3k|        }
 1366|  3.79k|        break;
 1367|  18.0k|    case EbtUint:
  ------------------
  |  Branch (1367:5): [True: 18.0k, False: 118k]
  ------------------
 1368|  18.0k|        switch(to) {
 1369|    477|        case EbtInt64:
  ------------------
  |  Branch (1369:9): [True: 477, False: 17.5k]
  ------------------
 1370|  4.25k|        case EbtUint64:
  ------------------
  |  Branch (1370:9): [True: 3.77k, False: 14.2k]
  ------------------
 1371|  4.25k|            return true;
 1372|  13.7k|        default:
  ------------------
  |  Branch (1372:9): [True: 13.7k, False: 4.25k]
  ------------------
 1373|  13.7k|            break;
 1374|  18.0k|        }
 1375|  13.7k|        break;
 1376|  13.7k|    case EbtInt8:
  ------------------
  |  Branch (1376:5): [True: 7.27k, False: 129k]
  ------------------
 1377|  7.27k|        switch (to) {
 1378|     48|        case EbtUint8:
  ------------------
  |  Branch (1378:9): [True: 48, False: 7.22k]
  ------------------
 1379|     98|        case EbtInt16:
  ------------------
  |  Branch (1379:9): [True: 50, False: 7.22k]
  ------------------
 1380|     99|        case EbtUint16:
  ------------------
  |  Branch (1380:9): [True: 1, False: 7.26k]
  ------------------
 1381|  1.46k|        case EbtUint:
  ------------------
  |  Branch (1381:9): [True: 1.36k, False: 5.90k]
  ------------------
 1382|  2.95k|        case EbtInt64:
  ------------------
  |  Branch (1382:9): [True: 1.48k, False: 5.78k]
  ------------------
 1383|  4.32k|        case EbtUint64:
  ------------------
  |  Branch (1383:9): [True: 1.37k, False: 5.89k]
  ------------------
 1384|  4.32k|            return true;
 1385|  2.94k|        default:
  ------------------
  |  Branch (1385:9): [True: 2.94k, False: 4.32k]
  ------------------
 1386|  2.94k|            break;
 1387|  7.27k|        }
 1388|  2.94k|        break;
 1389|  5.75k|    case EbtUint8:
  ------------------
  |  Branch (1389:5): [True: 5.75k, False: 130k]
  ------------------
 1390|  5.75k|        switch (to) {
 1391|     44|        case EbtInt16:
  ------------------
  |  Branch (1391:9): [True: 44, False: 5.70k]
  ------------------
 1392|     46|        case EbtUint16:
  ------------------
  |  Branch (1392:9): [True: 2, False: 5.75k]
  ------------------
 1393|  1.47k|        case EbtUint:
  ------------------
  |  Branch (1393:9): [True: 1.43k, False: 4.32k]
  ------------------
 1394|  1.72k|        case EbtInt64:
  ------------------
  |  Branch (1394:9): [True: 250, False: 5.50k]
  ------------------
 1395|  3.09k|        case EbtUint64:
  ------------------
  |  Branch (1395:9): [True: 1.36k, False: 4.38k]
  ------------------
 1396|  3.09k|            return true;
 1397|  2.66k|        default:
  ------------------
  |  Branch (1397:9): [True: 2.66k, False: 3.09k]
  ------------------
 1398|  2.66k|            break;
 1399|  5.75k|        }
 1400|  2.66k|        break;
 1401|  10.4k|    case EbtInt16:
  ------------------
  |  Branch (1401:5): [True: 10.4k, False: 125k]
  ------------------
 1402|  10.4k|        switch(to) {
 1403|    850|        case EbtUint16:
  ------------------
  |  Branch (1403:9): [True: 850, False: 9.57k]
  ------------------
 1404|  2.99k|        case EbtUint:
  ------------------
  |  Branch (1404:9): [True: 2.14k, False: 8.28k]
  ------------------
 1405|  4.04k|        case EbtInt64:
  ------------------
  |  Branch (1405:9): [True: 1.05k, False: 9.37k]
  ------------------
 1406|  5.49k|        case EbtUint64:
  ------------------
  |  Branch (1406:9): [True: 1.44k, False: 8.98k]
  ------------------
 1407|  5.49k|            return true;
 1408|  4.93k|        default:
  ------------------
  |  Branch (1408:9): [True: 4.93k, False: 5.49k]
  ------------------
 1409|  4.93k|            break;
 1410|  10.4k|        }
 1411|  4.93k|        break;
 1412|  6.85k|    case EbtUint16:
  ------------------
  |  Branch (1412:5): [True: 6.85k, False: 129k]
  ------------------
 1413|  6.85k|        switch(to) {
 1414|  1.63k|        case EbtUint:
  ------------------
  |  Branch (1414:9): [True: 1.63k, False: 5.21k]
  ------------------
 1415|  1.93k|        case EbtInt64:
  ------------------
  |  Branch (1415:9): [True: 300, False: 6.55k]
  ------------------
 1416|  2.93k|        case EbtUint64:
  ------------------
  |  Branch (1416:9): [True: 994, False: 5.85k]
  ------------------
 1417|  2.93k|            return true;
 1418|  3.92k|        default:
  ------------------
  |  Branch (1418:9): [True: 3.92k, False: 2.93k]
  ------------------
 1419|  3.92k|            break;
 1420|  6.85k|        }
 1421|  3.92k|        break;
 1422|  16.1k|    case EbtInt64:
  ------------------
  |  Branch (1422:5): [True: 16.1k, False: 120k]
  ------------------
 1423|  16.1k|        if (to == EbtUint64) {
  ------------------
  |  Branch (1423:13): [True: 3.50k, False: 12.5k]
  ------------------
 1424|  3.50k|            return true;
 1425|  3.50k|        }
 1426|  12.5k|        break;
 1427|  58.5k|    default:
  ------------------
  |  Branch (1427:5): [True: 58.5k, False: 77.8k]
  ------------------
 1428|  58.5k|        break;
 1429|   136k|    }
 1430|   103k|    return false;
 1431|   136k|}
_ZNK7glslang13TIntermediate14isFPConversionENS_10TBasicTypeES1_:
 1434|   104k|{
 1435|   104k|    if (to == EbtFloat && (from == EbtFloat16 || from == EbtBFloat16 || from == EbtFloatE5M2 || from == EbtFloatE4M3 ||
  ------------------
  |  Branch (1435:9): [True: 26.0k, False: 78.6k]
  |  Branch (1435:28): [True: 2.18k, False: 23.8k]
  |  Branch (1435:50): [True: 0, False: 23.8k]
  |  Branch (1435:73): [True: 0, False: 23.8k]
  |  Branch (1435:97): [True: 0, False: 23.8k]
  ------------------
 1436|  23.8k|                           from == EbtFloatE2M1 || from == EbtFloatE3M2 || from == EbtFloatE2M3 || from == EbtFloatMXINT8)) {
  ------------------
  |  Branch (1436:28): [True: 0, False: 23.8k]
  |  Branch (1436:52): [True: 0, False: 23.8k]
  |  Branch (1436:76): [True: 0, False: 23.8k]
  |  Branch (1436:100): [True: 0, False: 23.8k]
  ------------------
 1437|  2.18k|        return true;
 1438|   102k|    } else {
 1439|   102k|        return false;
 1440|   102k|    }
 1441|   104k|}
_ZNK7glslang13TIntermediate22isFPIntegralConversionENS_10TBasicTypeES1_:
 1444|   102k|{
 1445|   102k|    switch (from) {
 1446|  5.42k|    case EbtInt:
  ------------------
  |  Branch (1446:5): [True: 5.42k, False: 97.1k]
  ------------------
 1447|  19.2k|    case EbtUint:
  ------------------
  |  Branch (1447:5): [True: 13.7k, False: 88.8k]
  ------------------
 1448|  19.2k|        switch(to) {
 1449|  8.19k|        case EbtFloat:
  ------------------
  |  Branch (1449:9): [True: 8.19k, False: 11.0k]
  ------------------
 1450|  14.7k|        case EbtDouble:
  ------------------
  |  Branch (1450:9): [True: 6.57k, False: 12.6k]
  ------------------
 1451|  14.7k|            return true;
 1452|  4.44k|        default:
  ------------------
  |  Branch (1452:9): [True: 4.44k, False: 14.7k]
  ------------------
 1453|  4.44k|            break;
 1454|  19.2k|        }
 1455|  4.44k|        break;
 1456|  4.44k|    case EbtInt8:
  ------------------
  |  Branch (1456:5): [True: 2.94k, False: 99.6k]
  ------------------
 1457|  5.60k|    case EbtUint8:
  ------------------
  |  Branch (1457:5): [True: 2.66k, False: 99.9k]
  ------------------
 1458|  10.5k|    case EbtInt16:
  ------------------
  |  Branch (1458:5): [True: 4.93k, False: 97.6k]
  ------------------
 1459|  14.4k|    case EbtUint16:
  ------------------
  |  Branch (1459:5): [True: 3.92k, False: 98.6k]
  ------------------
 1460|  14.4k|        switch (to) {
 1461|    396|        case EbtFloat16:
  ------------------
  |  Branch (1461:9): [True: 396, False: 14.0k]
  ------------------
 1462|  8.54k|        case EbtFloat:
  ------------------
  |  Branch (1462:9): [True: 8.14k, False: 6.30k]
  ------------------
 1463|  14.0k|        case EbtDouble:
  ------------------
  |  Branch (1463:9): [True: 5.46k, False: 8.99k]
  ------------------
 1464|  14.0k|            return true;
 1465|    451|        default:
  ------------------
  |  Branch (1465:9): [True: 451, False: 14.0k]
  ------------------
 1466|    451|            break;
 1467|  14.4k|        }
 1468|    451|        break;
 1469|  12.5k|    case EbtInt64:
  ------------------
  |  Branch (1469:5): [True: 12.5k, False: 89.9k]
  ------------------
 1470|  26.8k|    case EbtUint64:
  ------------------
  |  Branch (1470:5): [True: 14.3k, False: 88.2k]
  ------------------
 1471|  26.8k|        if (to == EbtDouble) {
  ------------------
  |  Branch (1471:13): [True: 13.2k, False: 13.6k]
  ------------------
 1472|  13.2k|            return true;
 1473|  13.2k|        }
 1474|  13.6k|        break;
 1475|  42.0k|    default:
  ------------------
  |  Branch (1475:5): [True: 42.0k, False: 60.5k]
  ------------------
 1476|  42.0k|        break;
 1477|   102k|    }
 1478|  60.6k|    return false;
 1479|   102k|}
_ZNK7glslang13TIntermediate20canImplicitlyPromoteENS_10TBasicTypeES1_NS_9TOperatorE:
 1486|   142k|{
 1487|   142k|    if ((isEsProfile() && version < 310 ) || version == 110)
  ------------------
  |  Branch (1487:10): [True: 2.63k, False: 139k]
  |  Branch (1487:27): [True: 0, False: 2.63k]
  |  Branch (1487:46): [True: 0, False: 142k]
  ------------------
 1488|      0|        return false;
 1489|       |
 1490|   142k|    if (from == to)
  ------------------
  |  Branch (1490:9): [True: 0, False: 142k]
  ------------------
 1491|      0|        return true;
 1492|       |
 1493|       |    // TODO: Move more policies into language-specific handlers.
 1494|       |    // Some languages allow more general (or potentially, more specific) conversions under some conditions.
 1495|   142k|    if (getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (1495:9): [True: 0, False: 142k]
  ------------------
 1496|      0|        const bool fromConvertable = (from == EbtFloat || from == EbtDouble || from == EbtInt || from == EbtUint || from == EbtBool);
  ------------------
  |  Branch (1496:39): [True: 0, False: 0]
  |  Branch (1496:59): [True: 0, False: 0]
  |  Branch (1496:80): [True: 0, False: 0]
  |  Branch (1496:98): [True: 0, False: 0]
  |  Branch (1496:117): [True: 0, False: 0]
  ------------------
 1497|      0|        const bool toConvertable = (to == EbtFloat || to == EbtDouble || to == EbtInt || to == EbtUint || to == EbtBool);
  ------------------
  |  Branch (1497:37): [True: 0, False: 0]
  |  Branch (1497:55): [True: 0, False: 0]
  |  Branch (1497:74): [True: 0, False: 0]
  |  Branch (1497:90): [True: 0, False: 0]
  |  Branch (1497:107): [True: 0, False: 0]
  ------------------
 1498|       |
 1499|      0|        if (fromConvertable && toConvertable) {
  ------------------
  |  Branch (1499:13): [True: 0, False: 0]
  |  Branch (1499:32): [True: 0, False: 0]
  ------------------
 1500|      0|            switch (op) {
 1501|      0|            case EOpAndAssign:               // assignments can perform arbitrary conversions
  ------------------
  |  Branch (1501:13): [True: 0, False: 0]
  ------------------
 1502|      0|            case EOpInclusiveOrAssign:       // ...
  ------------------
  |  Branch (1502:13): [True: 0, False: 0]
  ------------------
 1503|      0|            case EOpExclusiveOrAssign:       // ...
  ------------------
  |  Branch (1503:13): [True: 0, False: 0]
  ------------------
 1504|      0|            case EOpAssign:                  // ...
  ------------------
  |  Branch (1504:13): [True: 0, False: 0]
  ------------------
 1505|      0|            case EOpAddAssign:               // ...
  ------------------
  |  Branch (1505:13): [True: 0, False: 0]
  ------------------
 1506|      0|            case EOpSubAssign:               // ...
  ------------------
  |  Branch (1506:13): [True: 0, False: 0]
  ------------------
 1507|      0|            case EOpMulAssign:               // ...
  ------------------
  |  Branch (1507:13): [True: 0, False: 0]
  ------------------
 1508|      0|            case EOpVectorTimesScalarAssign: // ...
  ------------------
  |  Branch (1508:13): [True: 0, False: 0]
  ------------------
 1509|      0|            case EOpMatrixTimesScalarAssign: // ...
  ------------------
  |  Branch (1509:13): [True: 0, False: 0]
  ------------------
 1510|      0|            case EOpDivAssign:               // ...
  ------------------
  |  Branch (1510:13): [True: 0, False: 0]
  ------------------
 1511|      0|            case EOpModAssign:               // ...
  ------------------
  |  Branch (1511:13): [True: 0, False: 0]
  ------------------
 1512|      0|            case EOpReturn:                  // function returns can also perform arbitrary conversions
  ------------------
  |  Branch (1512:13): [True: 0, False: 0]
  ------------------
 1513|      0|            case EOpFunctionCall:            // conversion of a calling parameter
  ------------------
  |  Branch (1513:13): [True: 0, False: 0]
  ------------------
 1514|      0|            case EOpLogicalNot:
  ------------------
  |  Branch (1514:13): [True: 0, False: 0]
  ------------------
 1515|      0|            case EOpLogicalAnd:
  ------------------
  |  Branch (1515:13): [True: 0, False: 0]
  ------------------
 1516|      0|            case EOpLogicalOr:
  ------------------
  |  Branch (1516:13): [True: 0, False: 0]
  ------------------
 1517|      0|            case EOpLogicalXor:
  ------------------
  |  Branch (1517:13): [True: 0, False: 0]
  ------------------
 1518|      0|            case EOpConstructStruct:
  ------------------
  |  Branch (1518:13): [True: 0, False: 0]
  ------------------
 1519|      0|                return true;
 1520|      0|            default:
  ------------------
  |  Branch (1520:13): [True: 0, False: 0]
  ------------------
 1521|      0|                break;
 1522|      0|            }
 1523|      0|        }
 1524|      0|    }
 1525|       |
 1526|   142k|    if (getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (1526:9): [True: 0, False: 142k]
  ------------------
 1527|       |        // HLSL
 1528|      0|        if (from == EbtBool && (to == EbtInt || to == EbtUint || to == EbtFloat))
  ------------------
  |  Branch (1528:13): [True: 0, False: 0]
  |  Branch (1528:33): [True: 0, False: 0]
  |  Branch (1528:49): [True: 0, False: 0]
  |  Branch (1528:66): [True: 0, False: 0]
  ------------------
 1529|      0|            return true;
 1530|   142k|    } else {
 1531|       |        // GLSL
 1532|   142k|        if (isIntegralPromotion(from, to) ||
  ------------------
  |  Branch (1532:13): [True: 4.33k, False: 138k]
  ------------------
 1533|   138k|            isFPPromotion(from, to) ||
  ------------------
  |  Branch (1533:13): [True: 3.18k, False: 134k]
  ------------------
 1534|   134k|            isIntegralConversion(from, to) ||
  ------------------
  |  Branch (1534:13): [True: 30.6k, False: 104k]
  ------------------
 1535|   104k|            isFPConversion(from, to) ||
  ------------------
  |  Branch (1535:13): [True: 2.18k, False: 102k]
  ------------------
 1536|   102k|            isFPIntegralConversion(from, to)) {
  ------------------
  |  Branch (1536:13): [True: 41.4k, False: 60.6k]
  ------------------
 1537|       |
 1538|  81.8k|            if (numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1538:17): [True: 2.62k, False: 79.1k]
  ------------------
 1539|  79.1k|                numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_int8) ||
  ------------------
  |  Branch (1539:17): [True: 640, False: 78.5k]
  ------------------
 1540|  78.5k|                numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_int16) ||
  ------------------
  |  Branch (1540:17): [True: 0, False: 78.5k]
  ------------------
 1541|  78.5k|                numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_int32) ||
  ------------------
  |  Branch (1541:17): [True: 0, False: 78.5k]
  ------------------
 1542|  78.5k|                numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_int64) ||
  ------------------
  |  Branch (1542:17): [True: 1.32k, False: 77.2k]
  ------------------
 1543|  77.2k|                numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_float16) ||
  ------------------
  |  Branch (1543:17): [True: 57, False: 77.1k]
  ------------------
 1544|  77.1k|                numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_float32) ||
  ------------------
  |  Branch (1544:17): [True: 0, False: 77.1k]
  ------------------
 1545|  77.1k|                numericFeatures.contains(TNumericFeatures::shader_explicit_arithmetic_types_float64)) {
  ------------------
  |  Branch (1545:17): [True: 1, False: 77.1k]
  ------------------
 1546|  4.65k|                return true;
 1547|  4.65k|            }
 1548|  81.8k|        }
 1549|   142k|    }
 1550|       |
 1551|   137k|    if (isEsProfile()) {
  ------------------
  |  Branch (1551:9): [True: 2.54k, False: 135k]
  ------------------
 1552|  2.54k|        switch (to) {
 1553|    161|            case EbtFloat:
  ------------------
  |  Branch (1553:13): [True: 161, False: 2.38k]
  ------------------
 1554|    161|                switch (from) {
 1555|     28|                case EbtInt:
  ------------------
  |  Branch (1555:17): [True: 28, False: 133]
  ------------------
 1556|     73|                case EbtUint:
  ------------------
  |  Branch (1556:17): [True: 45, False: 116]
  ------------------
 1557|     73|                    return numericFeatures.contains(TNumericFeatures::shader_implicit_conversions);
 1558|     88|                default:
  ------------------
  |  Branch (1558:17): [True: 88, False: 73]
  ------------------
 1559|     88|                    return false;
 1560|    161|                }
 1561|    474|            case EbtUint:
  ------------------
  |  Branch (1561:13): [True: 474, False: 2.07k]
  ------------------
 1562|    474|                switch (from) {
 1563|    114|                case EbtInt:
  ------------------
  |  Branch (1563:17): [True: 114, False: 360]
  ------------------
 1564|    114|                    return numericFeatures.contains(TNumericFeatures::shader_implicit_conversions);
 1565|    360|                default:
  ------------------
  |  Branch (1565:17): [True: 360, False: 114]
  ------------------
 1566|    360|                    return false;
 1567|    474|                }
 1568|  1.91k|            default:
  ------------------
  |  Branch (1568:13): [True: 1.91k, False: 635]
  ------------------
 1569|  1.91k|                return false;
 1570|  2.54k|        }
 1571|   135k|    } else {
 1572|   135k|        switch (to) {
 1573|  27.2k|        case EbtDouble:
  ------------------
  |  Branch (1573:9): [True: 27.2k, False: 107k]
  ------------------
 1574|  27.2k|            switch (from) {
 1575|  1.41k|            case EbtInt:
  ------------------
  |  Branch (1575:13): [True: 1.41k, False: 25.8k]
  ------------------
 1576|  6.38k|            case EbtUint:
  ------------------
  |  Branch (1576:13): [True: 4.97k, False: 22.2k]
  ------------------
 1577|  11.4k|            case EbtInt64:
  ------------------
  |  Branch (1577:13): [True: 5.05k, False: 22.1k]
  ------------------
 1578|  19.3k|            case EbtUint64:
  ------------------
  |  Branch (1578:13): [True: 7.95k, False: 19.2k]
  ------------------
 1579|  21.8k|            case EbtFloat:
  ------------------
  |  Branch (1579:13): [True: 2.44k, False: 24.8k]
  ------------------
 1580|  21.8k|                return version >= 400 || numericFeatures.contains(TNumericFeatures::gpu_shader_fp64);
  ------------------
  |  Branch (1580:24): [True: 2.00k, False: 19.8k]
  |  Branch (1580:42): [True: 19.2k, False: 575]
  ------------------
 1581|  1.68k|            case EbtInt16:
  ------------------
  |  Branch (1581:13): [True: 1.68k, False: 25.5k]
  ------------------
 1582|  2.77k|            case EbtUint16:
  ------------------
  |  Branch (1582:13): [True: 1.08k, False: 26.1k]
  ------------------
 1583|  2.77k|                return (version >= 400 || numericFeatures.contains(TNumericFeatures::gpu_shader_fp64)) &&
  ------------------
  |  Branch (1583:25): [True: 1.19k, False: 1.57k]
  |  Branch (1583:43): [True: 1.49k, False: 84]
  ------------------
 1584|  2.68k|                                         (numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types) ||
  ------------------
  |  Branch (1584:43): [True: 1.68k, False: 1.00k]
  ------------------
 1585|  1.00k|                                          numericFeatures.contains(TNumericFeatures::gpu_shader_int16));
  ------------------
  |  Branch (1585:43): [True: 1.00k, False: 0]
  ------------------
 1586|    366|            case EbtFloat16:
  ------------------
  |  Branch (1586:13): [True: 366, False: 26.8k]
  ------------------
 1587|    366|                return (version >= 400 || numericFeatures.contains(TNumericFeatures::gpu_shader_fp64)) &&
  ------------------
  |  Branch (1587:25): [True: 208, False: 158]
  |  Branch (1587:43): [True: 154, False: 4]
  ------------------
 1588|    362|                                        (numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types) ||
  ------------------
  |  Branch (1588:42): [True: 228, False: 134]
  ------------------
 1589|    134|                                        numericFeatures.contains(TNumericFeatures::gpu_shader_half_float));
  ------------------
  |  Branch (1589:41): [True: 134, False: 0]
  ------------------
 1590|      0|            case EbtBFloat16:
  ------------------
  |  Branch (1590:13): [True: 0, False: 27.2k]
  ------------------
 1591|      0|            case EbtFloatE5M2:
  ------------------
  |  Branch (1591:13): [True: 0, False: 27.2k]
  ------------------
 1592|      0|            case EbtFloatE4M3:
  ------------------
  |  Branch (1592:13): [True: 0, False: 27.2k]
  ------------------
 1593|      0|            case EbtFloatE2M1:
  ------------------
  |  Branch (1593:13): [True: 0, False: 27.2k]
  ------------------
 1594|      0|            case EbtFloatE3M2:
  ------------------
  |  Branch (1594:13): [True: 0, False: 27.2k]
  ------------------
 1595|      0|            case EbtFloatE2M3:
  ------------------
  |  Branch (1595:13): [True: 0, False: 27.2k]
  ------------------
 1596|      0|            case EbtFloatMXINT8:
  ------------------
  |  Branch (1596:13): [True: 0, False: 27.2k]
  ------------------
 1597|      0|                return true;
 1598|  1.16k|            case EbtInt8:
  ------------------
  |  Branch (1598:13): [True: 1.16k, False: 26.0k]
  ------------------
 1599|  2.20k|            case EbtUint8:
  ------------------
  |  Branch (1599:13): [True: 1.04k, False: 26.2k]
  ------------------
 1600|  2.20k|                return numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
 1601|     68|            default:
  ------------------
  |  Branch (1601:13): [True: 68, False: 27.1k]
  ------------------
 1602|     68|                return false;
 1603|  27.2k|           }
 1604|  24.8k|        case EbtFloat:
  ------------------
  |  Branch (1604:9): [True: 24.8k, False: 110k]
  ------------------
 1605|  24.8k|            switch (from) {
 1606|  1.81k|            case EbtInt:
  ------------------
  |  Branch (1606:13): [True: 1.81k, False: 23.0k]
  ------------------
 1607|  7.90k|            case EbtUint:
  ------------------
  |  Branch (1607:13): [True: 6.09k, False: 18.7k]
  ------------------
 1608|  7.90k|                 return true;
 1609|    172|            case EbtBool:
  ------------------
  |  Branch (1609:13): [True: 172, False: 24.6k]
  ------------------
 1610|    172|                 return getSource() == EShSourceHlsl;
 1611|  2.91k|            case EbtInt16:
  ------------------
  |  Branch (1611:13): [True: 2.91k, False: 21.9k]
  ------------------
 1612|  5.08k|            case EbtUint16:
  ------------------
  |  Branch (1612:13): [True: 2.17k, False: 22.6k]
  ------------------
 1613|  5.08k|                return numericFeatures.contains(TNumericFeatures::gpu_shader_int16) ||
  ------------------
  |  Branch (1613:24): [True: 3.35k, False: 1.73k]
  ------------------
 1614|  1.73k|                       numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
  ------------------
  |  Branch (1614:24): [True: 1.73k, False: 0]
  ------------------
 1615|  2.11k|            case EbtFloat16:
  ------------------
  |  Branch (1615:13): [True: 2.11k, False: 22.7k]
  ------------------
 1616|  2.11k|                return numericFeatures.contains(TNumericFeatures::gpu_shader_half_float) ||
  ------------------
  |  Branch (1616:24): [True: 292, False: 1.82k]
  ------------------
 1617|  1.82k|                    numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types) ||
  ------------------
  |  Branch (1617:21): [True: 1.82k, False: 0]
  ------------------
 1618|      0|                    getSource() == EShSourceHlsl;
  ------------------
  |  Branch (1618:21): [True: 0, False: 0]
  ------------------
 1619|      0|            case EbtBFloat16:
  ------------------
  |  Branch (1619:13): [True: 0, False: 24.8k]
  ------------------
 1620|      0|            case EbtFloatE5M2:
  ------------------
  |  Branch (1620:13): [True: 0, False: 24.8k]
  ------------------
 1621|      0|            case EbtFloatE4M3:
  ------------------
  |  Branch (1621:13): [True: 0, False: 24.8k]
  ------------------
 1622|      0|            case EbtFloatE2M1:
  ------------------
  |  Branch (1622:13): [True: 0, False: 24.8k]
  ------------------
 1623|      0|            case EbtFloatE3M2:
  ------------------
  |  Branch (1623:13): [True: 0, False: 24.8k]
  ------------------
 1624|      0|            case EbtFloatE2M3:
  ------------------
  |  Branch (1624:13): [True: 0, False: 24.8k]
  ------------------
 1625|      0|            case EbtFloatMXINT8:
  ------------------
  |  Branch (1625:13): [True: 0, False: 24.8k]
  ------------------
 1626|      0|                return true;
 1627|  1.16k|            case EbtInt8:
  ------------------
  |  Branch (1627:13): [True: 1.16k, False: 23.6k]
  ------------------
 1628|  2.22k|            case EbtUint8:
  ------------------
  |  Branch (1628:13): [True: 1.05k, False: 23.7k]
  ------------------
 1629|  2.22k|                return numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
 1630|  7.35k|            default:
  ------------------
  |  Branch (1630:13): [True: 7.35k, False: 17.4k]
  ------------------
 1631|  7.35k|                 return false;
 1632|  24.8k|            }
 1633|  21.3k|        case EbtUint:
  ------------------
  |  Branch (1633:9): [True: 21.3k, False: 113k]
  ------------------
 1634|  21.3k|            switch (from) {
 1635|  4.04k|            case EbtInt:
  ------------------
  |  Branch (1635:13): [True: 4.04k, False: 17.2k]
  ------------------
 1636|  4.04k|                return version >= 400 || getSource() == EShSourceHlsl ||
  ------------------
  |  Branch (1636:24): [True: 2.52k, False: 1.51k]
  |  Branch (1636:42): [True: 0, False: 1.51k]
  ------------------
 1637|  1.51k|						IsRequestedExtension(E_GL_ARB_gpu_shader5) ||
  ------------------
  |  Branch (1637:7): [True: 76, False: 1.43k]
  ------------------
 1638|  1.43k|						numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
  ------------------
  |  Branch (1638:7): [True: 1.25k, False: 186]
  ------------------
 1639|     16|            case EbtBool:
  ------------------
  |  Branch (1639:13): [True: 16, False: 21.2k]
  ------------------
 1640|     16|                return getSource() == EShSourceHlsl;
 1641|  2.05k|            case EbtInt16:
  ------------------
  |  Branch (1641:13): [True: 2.05k, False: 19.2k]
  ------------------
 1642|  3.55k|            case EbtUint16:
  ------------------
  |  Branch (1642:13): [True: 1.50k, False: 19.8k]
  ------------------
 1643|  3.55k|                return numericFeatures.contains(TNumericFeatures::gpu_shader_int16) ||
  ------------------
  |  Branch (1643:24): [True: 1.63k, False: 1.92k]
  ------------------
 1644|  1.92k|                       numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
  ------------------
  |  Branch (1644:24): [True: 1.92k, False: 0]
  ------------------
 1645|  1.21k|            case EbtInt8:
  ------------------
  |  Branch (1645:13): [True: 1.21k, False: 20.0k]
  ------------------
 1646|  2.42k|            case EbtUint8:
  ------------------
  |  Branch (1646:13): [True: 1.21k, False: 20.1k]
  ------------------
 1647|  2.42k|                return numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
 1648|  11.2k|            default:
  ------------------
  |  Branch (1648:13): [True: 11.2k, False: 10.0k]
  ------------------
 1649|  11.2k|                return false;
 1650|  21.3k|            }
 1651|  11.2k|        case EbtInt:
  ------------------
  |  Branch (1651:9): [True: 11.2k, False: 124k]
  ------------------
 1652|  11.2k|            switch (from) {
 1653|      9|            case EbtBool:
  ------------------
  |  Branch (1653:13): [True: 9, False: 11.2k]
  ------------------
 1654|      9|                return getSource() == EShSourceHlsl;
 1655|  1.73k|            case EbtInt16:
  ------------------
  |  Branch (1655:13): [True: 1.73k, False: 9.48k]
  ------------------
 1656|  1.73k|                return numericFeatures.contains(TNumericFeatures::gpu_shader_int16) ||
  ------------------
  |  Branch (1656:24): [True: 943, False: 793]
  ------------------
 1657|    793|                       numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
  ------------------
  |  Branch (1657:24): [True: 793, False: 0]
  ------------------
 1658|  1.34k|            case EbtInt8:
  ------------------
  |  Branch (1658:13): [True: 1.34k, False: 9.87k]
  ------------------
 1659|  1.34k|                return numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
 1660|  8.13k|            default:
  ------------------
  |  Branch (1660:13): [True: 8.13k, False: 3.08k]
  ------------------
 1661|  8.13k|                return false;
 1662|  11.2k|            }
 1663|  21.2k|        case EbtUint64:
  ------------------
  |  Branch (1663:9): [True: 21.2k, False: 113k]
  ------------------
 1664|  21.2k|            switch (from) {
 1665|  1.40k|            case EbtInt:
  ------------------
  |  Branch (1665:13): [True: 1.40k, False: 19.8k]
  ------------------
 1666|  5.01k|            case EbtUint:
  ------------------
  |  Branch (1666:13): [True: 3.60k, False: 17.6k]
  ------------------
 1667|  8.36k|            case EbtInt64:
  ------------------
  |  Branch (1667:13): [True: 3.34k, False: 17.9k]
  ------------------
 1668|  8.36k|                return true;
 1669|  1.40k|            case EbtInt16:
  ------------------
  |  Branch (1669:13): [True: 1.40k, False: 19.8k]
  ------------------
 1670|  2.35k|            case EbtUint16:
  ------------------
  |  Branch (1670:13): [True: 952, False: 20.3k]
  ------------------
 1671|  2.35k|                return numericFeatures.contains(TNumericFeatures::gpu_shader_int16) ||
  ------------------
  |  Branch (1671:24): [True: 227, False: 2.12k]
  ------------------
 1672|  2.12k|                	numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
  ------------------
  |  Branch (1672:18): [True: 2.12k, False: 0]
  ------------------
 1673|  1.32k|            case EbtInt8:
  ------------------
  |  Branch (1673:13): [True: 1.32k, False: 19.9k]
  ------------------
 1674|  2.64k|            case EbtUint8:
  ------------------
  |  Branch (1674:13): [True: 1.31k, False: 19.9k]
  ------------------
 1675|  2.64k|                return numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
 1676|  7.90k|            default:
  ------------------
  |  Branch (1676:13): [True: 7.90k, False: 13.3k]
  ------------------
 1677|  7.90k|                return false;
 1678|  21.2k|            }
 1679|  10.6k|        case EbtInt64:
  ------------------
  |  Branch (1679:9): [True: 10.6k, False: 124k]
  ------------------
 1680|  10.6k|            switch (from) {
 1681|  2.13k|            case EbtInt:
  ------------------
  |  Branch (1681:13): [True: 2.13k, False: 8.55k]
  ------------------
 1682|  2.13k|                return true;
 1683|  1.43k|            case EbtInt8:
  ------------------
  |  Branch (1683:13): [True: 1.43k, False: 9.25k]
  ------------------
 1684|  1.43k|                return numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
 1685|    985|            case EbtInt16:
  ------------------
  |  Branch (1685:13): [True: 985, False: 9.70k]
  ------------------
 1686|    985|                return numericFeatures.contains(TNumericFeatures::gpu_shader_int16) ||
  ------------------
  |  Branch (1686:24): [True: 103, False: 882]
  ------------------
 1687|    882|				       numericFeatures.contains(TNumericFeatures::nv_gpu_shader5_types);
  ------------------
  |  Branch (1687:12): [True: 882, False: 0]
  ------------------
 1688|  6.13k|            default:
  ------------------
  |  Branch (1688:13): [True: 6.13k, False: 4.55k]
  ------------------
 1689|  6.13k|                return false;
 1690|  10.6k|            }
 1691|  3.17k|        case EbtFloat16:
  ------------------
  |  Branch (1691:9): [True: 3.17k, False: 132k]
  ------------------
 1692|  3.17k|            switch (from) {
 1693|    117|            case EbtInt16:
  ------------------
  |  Branch (1693:13): [True: 117, False: 3.06k]
  ------------------
 1694|    246|            case EbtUint16:
  ------------------
  |  Branch (1694:13): [True: 129, False: 3.04k]
  ------------------
 1695|    246|                return numericFeatures.contains(TNumericFeatures::gpu_shader_int16);
 1696|      0|            case EbtFloatE5M2:
  ------------------
  |  Branch (1696:13): [True: 0, False: 3.17k]
  ------------------
 1697|      0|            case EbtFloatE4M3:
  ------------------
  |  Branch (1697:13): [True: 0, False: 3.17k]
  ------------------
 1698|      0|            case EbtFloatE2M1:
  ------------------
  |  Branch (1698:13): [True: 0, False: 3.17k]
  ------------------
 1699|      0|            case EbtFloatE3M2:
  ------------------
  |  Branch (1699:13): [True: 0, False: 3.17k]
  ------------------
 1700|      0|            case EbtFloatE2M3:
  ------------------
  |  Branch (1700:13): [True: 0, False: 3.17k]
  ------------------
 1701|      0|            case EbtFloatMXINT8:
  ------------------
  |  Branch (1701:13): [True: 0, False: 3.17k]
  ------------------
 1702|      0|                return true;
 1703|  2.93k|            default:
  ------------------
  |  Branch (1703:13): [True: 2.93k, False: 246]
  ------------------
 1704|  2.93k|                break;
 1705|  3.17k|            }
 1706|  2.93k|            return false;
 1707|      1|        case EbtBFloat16:
  ------------------
  |  Branch (1707:9): [True: 1, False: 135k]
  ------------------
 1708|      1|            switch (from) {
 1709|      0|            case EbtFloatE5M2:
  ------------------
  |  Branch (1709:13): [True: 0, False: 1]
  ------------------
 1710|      0|            case EbtFloatE4M3:
  ------------------
  |  Branch (1710:13): [True: 0, False: 1]
  ------------------
 1711|      0|            case EbtFloatE2M1:
  ------------------
  |  Branch (1711:13): [True: 0, False: 1]
  ------------------
 1712|      0|            case EbtFloatE3M2:
  ------------------
  |  Branch (1712:13): [True: 0, False: 1]
  ------------------
 1713|      0|            case EbtFloatE2M3:
  ------------------
  |  Branch (1713:13): [True: 0, False: 1]
  ------------------
 1714|      0|            case EbtFloatMXINT8:
  ------------------
  |  Branch (1714:13): [True: 0, False: 1]
  ------------------
 1715|      0|                return true;
 1716|      1|            default:
  ------------------
  |  Branch (1716:13): [True: 1, False: 0]
  ------------------
 1717|      1|                break;
 1718|      1|            }
 1719|      1|            return false;
 1720|      0|        case EbtFloatE4M3:
  ------------------
  |  Branch (1720:9): [True: 0, False: 135k]
  ------------------
 1721|      0|        case EbtFloatE5M2:
  ------------------
  |  Branch (1721:9): [True: 0, False: 135k]
  ------------------
 1722|      0|            switch (from) {
 1723|      0|            case EbtFloatE2M1:
  ------------------
  |  Branch (1723:13): [True: 0, False: 0]
  ------------------
 1724|      0|                return true;
 1725|      0|            default:
  ------------------
  |  Branch (1725:13): [True: 0, False: 0]
  ------------------
 1726|      0|                break;
 1727|      0|            }
 1728|      0|            return false;
 1729|  3.40k|        case EbtUint16:
  ------------------
  |  Branch (1729:9): [True: 3.40k, False: 131k]
  ------------------
 1730|  3.40k|            switch (from) {
 1731|    779|            case EbtInt16:
  ------------------
  |  Branch (1731:13): [True: 779, False: 2.63k]
  ------------------
 1732|    779|                return numericFeatures.contains(TNumericFeatures::gpu_shader_int16);
 1733|  2.63k|            default:
  ------------------
  |  Branch (1733:13): [True: 2.63k, False: 779]
  ------------------
 1734|  2.63k|                break;
 1735|  3.40k|            }
 1736|  2.63k|            return false;
 1737|  12.0k|        default:
  ------------------
  |  Branch (1737:9): [True: 12.0k, False: 123k]
  ------------------
 1738|  12.0k|            return false;
 1739|   135k|        }
 1740|   135k|    }
 1741|       |
 1742|      0|    return false;
 1743|   137k|}
_ZNK7glslang13TIntermediate28getConversionDestinationTypeENS_10TBasicTypeES1_NS_9TOperatorE:
 1851|  8.09k|{
 1852|  8.09k|    TBasicType res0 = EbtNumTypes;
 1853|  8.09k|    TBasicType res1 = EbtNumTypes;
 1854|       |
 1855|  8.09k|    if ((isEsProfile() &&
  ------------------
  |  Branch (1855:10): [True: 31, False: 8.06k]
  ------------------
 1856|     31|        (version < 310 || !numericFeatures.contains(TNumericFeatures::shader_implicit_conversions))) ||
  ------------------
  |  Branch (1856:10): [True: 0, False: 31]
  |  Branch (1856:27): [True: 19, False: 12]
  ------------------
 1857|  8.08k|        version == 110)
  ------------------
  |  Branch (1857:9): [True: 0, False: 8.08k]
  ------------------
 1858|     19|        return std::make_tuple(res0, res1);
 1859|       |
 1860|  8.08k|    if (getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (1860:9): [True: 0, False: 8.08k]
  ------------------
 1861|      0|        if (canImplicitlyPromote(type1, type0, op)) {
  ------------------
  |  Branch (1861:13): [True: 0, False: 0]
  ------------------
 1862|      0|            res0 = type0;
 1863|      0|            res1 = type0;
 1864|      0|        } else if (canImplicitlyPromote(type0, type1, op)) {
  ------------------
  |  Branch (1864:20): [True: 0, False: 0]
  ------------------
 1865|      0|            res0 = type1;
 1866|      0|            res1 = type1;
 1867|      0|        }
 1868|      0|        return std::make_tuple(res0, res1);
 1869|      0|    }
 1870|       |
 1871|  8.08k|    if ((type0 == EbtDouble && canImplicitlyPromote(type1, EbtDouble, op)) ||
  ------------------
  |  Branch (1871:10): [True: 1.44k, False: 6.63k]
  |  Branch (1871:32): [True: 1.44k, False: 1]
  ------------------
 1872|  6.63k|        (type1 == EbtDouble && canImplicitlyPromote(type0, EbtDouble, op)) ) {
  ------------------
  |  Branch (1872:10): [True: 335, False: 6.30k]
  |  Branch (1872:32): [True: 331, False: 4]
  ------------------
 1873|  1.77k|        res0 = EbtDouble;
 1874|  1.77k|        res1 = EbtDouble;
 1875|  6.30k|    } else if ((type0 == EbtFloat && canImplicitlyPromote(type1, EbtFloat, op)) ||
  ------------------
  |  Branch (1875:17): [True: 1.18k, False: 5.12k]
  |  Branch (1875:38): [True: 1.02k, False: 165]
  ------------------
 1876|  5.28k|               (type1 == EbtFloat && canImplicitlyPromote(type0, EbtFloat, op)) ) {
  ------------------
  |  Branch (1876:17): [True: 889, False: 4.39k]
  |  Branch (1876:38): [True: 403, False: 486]
  ------------------
 1877|  1.42k|        res0 = EbtFloat;
 1878|  1.42k|        res1 = EbtFloat;
 1879|  4.88k|    } else if ((type0 == EbtFloat16 && canImplicitlyPromote(type1, EbtFloat16, op)) ||
  ------------------
  |  Branch (1879:17): [True: 4, False: 4.87k]
  |  Branch (1879:40): [True: 0, False: 4]
  ------------------
 1880|  4.88k|               (type1 == EbtFloat16 && canImplicitlyPromote(type0, EbtFloat16, op)) ) {
  ------------------
  |  Branch (1880:17): [True: 5, False: 4.87k]
  |  Branch (1880:40): [True: 1, False: 4]
  ------------------
 1881|      1|        res0 = EbtFloat16;
 1882|      1|        res1 = EbtFloat16;
 1883|  4.88k|    } else if ((type0 == EbtBFloat16 && canImplicitlyPromote(type1, EbtBFloat16, op)) ||
  ------------------
  |  Branch (1883:17): [True: 0, False: 4.88k]
  |  Branch (1883:41): [True: 0, False: 0]
  ------------------
 1884|  4.88k|               (type1 == EbtBFloat16 && canImplicitlyPromote(type0, EbtBFloat16, op)) ) {
  ------------------
  |  Branch (1884:17): [True: 0, False: 4.88k]
  |  Branch (1884:41): [True: 0, False: 0]
  ------------------
 1885|      0|        res0 = EbtBFloat16;
 1886|      0|        res1 = EbtBFloat16;
 1887|  4.88k|    } else if (isTypeInt(type0) && isTypeInt(type1) &&
  ------------------
  |  Branch (1887:16): [True: 4.70k, False: 175]
  |  Branch (1887:36): [True: 4.21k, False: 489]
  ------------------
 1888|  4.21k|               (canImplicitlyPromote(type0, type1, op) || canImplicitlyPromote(type1, type0, op))) {
  ------------------
  |  Branch (1888:17): [True: 882, False: 3.33k]
  |  Branch (1888:59): [True: 3.13k, False: 206]
  ------------------
 1889|  4.01k|        if ((isTypeSignedInt(type0) && isTypeSignedInt(type1)) ||
  ------------------
  |  Branch (1889:14): [True: 1.46k, False: 2.54k]
  |  Branch (1889:40): [True: 1.01k, False: 457]
  ------------------
 1890|  3.00k|            (isTypeUnsignedInt(type0) && isTypeUnsignedInt(type1))) {
  ------------------
  |  Branch (1890:14): [True: 2.54k, False: 457]
  |  Branch (1890:42): [True: 971, False: 1.57k]
  ------------------
 1891|  1.98k|            if (getTypeRank(type0) < getTypeRank(type1)) {
  ------------------
  |  Branch (1891:17): [True: 420, False: 1.56k]
  ------------------
 1892|    420|                res0 = type1;
 1893|    420|                res1 = type1;
 1894|  1.56k|            } else {
 1895|  1.56k|                res0 = type0;
 1896|  1.56k|                res1 = type0;
 1897|  1.56k|            }
 1898|  2.02k|        } else if (isTypeUnsignedInt(type0) && (getTypeRank(type0) > getTypeRank(type1))) {
  ------------------
  |  Branch (1898:20): [True: 1.57k, False: 457]
  |  Branch (1898:48): [True: 852, False: 720]
  ------------------
 1899|    852|            res0 = type0;
 1900|    852|            res1 = type0;
 1901|  1.17k|        } else if (isTypeUnsignedInt(type1) && (getTypeRank(type1) > getTypeRank(type0))) {
  ------------------
  |  Branch (1901:20): [True: 457, False: 720]
  |  Branch (1901:48): [True: 66, False: 391]
  ------------------
 1902|     66|            res0 = type1;
 1903|     66|            res1 = type1;
 1904|  1.11k|        } else if (isTypeSignedInt(type0)) {
  ------------------
  |  Branch (1904:20): [True: 391, False: 720]
  ------------------
 1905|    391|            if (canSignedIntTypeRepresentAllUnsignedValues(type0, type1)) {
  ------------------
  |  Branch (1905:17): [True: 1, False: 390]
  ------------------
 1906|      1|                res0 = type0;
 1907|      1|                res1 = type0;
 1908|    390|            } else {
 1909|    390|                res0 = getCorrespondingUnsignedType(type0);
 1910|    390|                res1 = getCorrespondingUnsignedType(type0);
 1911|    390|            }
 1912|    720|        } else if (isTypeSignedInt(type1)) {
  ------------------
  |  Branch (1912:20): [True: 720, False: 0]
  ------------------
 1913|    720|            if (canSignedIntTypeRepresentAllUnsignedValues(type1, type0)) {
  ------------------
  |  Branch (1913:17): [True: 6, False: 714]
  ------------------
 1914|      6|                res0 = type1;
 1915|      6|                res1 = type1;
 1916|    714|            } else {
 1917|    714|                res0 = getCorrespondingUnsignedType(type1);
 1918|    714|                res1 = getCorrespondingUnsignedType(type1);
 1919|    714|            }
 1920|    720|        }
 1921|  4.01k|    }
 1922|       |
 1923|  8.08k|    return std::make_tuple(res0, res1);
 1924|  8.08k|}
_ZNK7glslang13TIntermediate22mapTypeToConstructorOpERKNS_5TTypeE:
 1930|   153k|{
 1931|   153k|    TOperator op = EOpNull;
 1932|       |
 1933|   153k|    if (type.getQualifier().isNonUniform())
  ------------------
  |  Branch (1933:9): [True: 0, False: 153k]
  ------------------
 1934|      0|        return EOpConstructNonuniform;
 1935|       |
 1936|   153k|    if (type.isCoopMatNV())
  ------------------
  |  Branch (1936:9): [True: 0, False: 153k]
  ------------------
 1937|      0|        return EOpConstructCooperativeMatrixNV;
 1938|       |
 1939|   153k|    if (type.isCoopMatKHR())
  ------------------
  |  Branch (1939:9): [True: 0, False: 153k]
  ------------------
 1940|      0|        return EOpConstructCooperativeMatrixKHR;
 1941|       |
 1942|   153k|    if (type.isCoopVecOrLongVector())
  ------------------
  |  Branch (1942:9): [True: 0, False: 153k]
  ------------------
 1943|      0|        return EOpConstructCooperativeVectorNV;
 1944|       |
 1945|   153k|    switch (type.getBasicType()) {
 1946|    235|    case EbtStruct:
  ------------------
  |  Branch (1946:5): [True: 235, False: 152k]
  ------------------
 1947|    235|        op = EOpConstructStruct;
 1948|    235|        break;
 1949|    361|    case EbtSampler:
  ------------------
  |  Branch (1949:5): [True: 361, False: 152k]
  ------------------
 1950|    361|        if (type.getSampler().isCombined())
  ------------------
  |  Branch (1950:13): [True: 325, False: 36]
  ------------------
 1951|    325|            op = EOpConstructTextureSampler;
 1952|    361|        break;
 1953|  17.6k|    case EbtFloat:
  ------------------
  |  Branch (1953:5): [True: 17.6k, False: 135k]
  ------------------
 1954|  17.6k|        if (type.isMatrix()) {
  ------------------
  |  Branch (1954:13): [True: 436, False: 17.2k]
  ------------------
 1955|    436|            switch (type.getMatrixCols()) {
 1956|    214|            case 2:
  ------------------
  |  Branch (1956:13): [True: 214, False: 222]
  ------------------
 1957|    214|                switch (type.getMatrixRows()) {
 1958|    150|                case 2: op = EOpConstructMat2x2; break;
  ------------------
  |  Branch (1958:17): [True: 150, False: 64]
  ------------------
 1959|      0|                case 3: op = EOpConstructMat2x3; break;
  ------------------
  |  Branch (1959:17): [True: 0, False: 214]
  ------------------
 1960|     64|                case 4: op = EOpConstructMat2x4; break;
  ------------------
  |  Branch (1960:17): [True: 64, False: 150]
  ------------------
 1961|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (1961:17): [True: 0, False: 214]
  ------------------
 1962|    214|                }
 1963|    214|                break;
 1964|    214|            case 3:
  ------------------
  |  Branch (1964:13): [True: 214, False: 222]
  ------------------
 1965|    214|                switch (type.getMatrixRows()) {
 1966|     45|                case 2: op = EOpConstructMat3x2; break;
  ------------------
  |  Branch (1966:17): [True: 45, False: 169]
  ------------------
 1967|    126|                case 3: op = EOpConstructMat3x3; break;
  ------------------
  |  Branch (1967:17): [True: 126, False: 88]
  ------------------
 1968|     43|                case 4: op = EOpConstructMat3x4; break;
  ------------------
  |  Branch (1968:17): [True: 43, False: 171]
  ------------------
 1969|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (1969:17): [True: 0, False: 214]
  ------------------
 1970|    214|                }
 1971|    214|                break;
 1972|    214|            case 4:
  ------------------
  |  Branch (1972:13): [True: 8, False: 428]
  ------------------
 1973|      8|                switch (type.getMatrixRows()) {
 1974|      0|                case 2: op = EOpConstructMat4x2; break;
  ------------------
  |  Branch (1974:17): [True: 0, False: 8]
  ------------------
 1975|      0|                case 3: op = EOpConstructMat4x3; break;
  ------------------
  |  Branch (1975:17): [True: 0, False: 8]
  ------------------
 1976|      8|                case 4: op = EOpConstructMat4x4; break;
  ------------------
  |  Branch (1976:17): [True: 8, False: 0]
  ------------------
 1977|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (1977:17): [True: 0, False: 8]
  ------------------
 1978|      8|                }
 1979|      8|                break;
 1980|      8|            default: break; // some compilers want this
  ------------------
  |  Branch (1980:13): [True: 0, False: 436]
  ------------------
 1981|    436|            }
 1982|  17.2k|        } else {
 1983|  17.2k|            switch(type.getVectorSize()) {
 1984|  1.49k|            case 1: op = EOpConstructFloat; break;
  ------------------
  |  Branch (1984:13): [True: 1.49k, False: 15.7k]
  ------------------
 1985|  4.75k|            case 2: op = EOpConstructVec2;  break;
  ------------------
  |  Branch (1985:13): [True: 4.75k, False: 12.4k]
  ------------------
 1986|  2.86k|            case 3: op = EOpConstructVec3;  break;
  ------------------
  |  Branch (1986:13): [True: 2.86k, False: 14.3k]
  ------------------
 1987|  8.12k|            case 4: op = EOpConstructVec4;  break;
  ------------------
  |  Branch (1987:13): [True: 8.12k, False: 9.12k]
  ------------------
 1988|      0|            default: break; // some compilers want this
  ------------------
  |  Branch (1988:13): [True: 0, False: 17.2k]
  ------------------
 1989|  17.2k|            }
 1990|  17.2k|        }
 1991|  17.6k|        break;
 1992|  36.2k|    case EbtInt:
  ------------------
  |  Branch (1992:5): [True: 36.2k, False: 116k]
  ------------------
 1993|  36.2k|        if (type.getMatrixCols()) {
  ------------------
  |  Branch (1993:13): [True: 0, False: 36.2k]
  ------------------
 1994|      0|            switch (type.getMatrixCols()) {
  ------------------
  |  Branch (1994:21): [True: 0, False: 0]
  ------------------
 1995|      0|            case 2:
  ------------------
  |  Branch (1995:13): [True: 0, False: 0]
  ------------------
 1996|      0|                switch (type.getMatrixRows()) {
 1997|      0|                case 2: op = EOpConstructIMat2x2; break;
  ------------------
  |  Branch (1997:17): [True: 0, False: 0]
  ------------------
 1998|      0|                case 3: op = EOpConstructIMat2x3; break;
  ------------------
  |  Branch (1998:17): [True: 0, False: 0]
  ------------------
 1999|      0|                case 4: op = EOpConstructIMat2x4; break;
  ------------------
  |  Branch (1999:17): [True: 0, False: 0]
  ------------------
 2000|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2000:17): [True: 0, False: 0]
  ------------------
 2001|      0|                }
 2002|      0|                break;
 2003|      0|            case 3:
  ------------------
  |  Branch (2003:13): [True: 0, False: 0]
  ------------------
 2004|      0|                switch (type.getMatrixRows()) {
 2005|      0|                case 2: op = EOpConstructIMat3x2; break;
  ------------------
  |  Branch (2005:17): [True: 0, False: 0]
  ------------------
 2006|      0|                case 3: op = EOpConstructIMat3x3; break;
  ------------------
  |  Branch (2006:17): [True: 0, False: 0]
  ------------------
 2007|      0|                case 4: op = EOpConstructIMat3x4; break;
  ------------------
  |  Branch (2007:17): [True: 0, False: 0]
  ------------------
 2008|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2008:17): [True: 0, False: 0]
  ------------------
 2009|      0|                }
 2010|      0|                break;
 2011|      0|            case 4:
  ------------------
  |  Branch (2011:13): [True: 0, False: 0]
  ------------------
 2012|      0|                switch (type.getMatrixRows()) {
 2013|      0|                case 2: op = EOpConstructIMat4x2; break;
  ------------------
  |  Branch (2013:17): [True: 0, False: 0]
  ------------------
 2014|      0|                case 3: op = EOpConstructIMat4x3; break;
  ------------------
  |  Branch (2014:17): [True: 0, False: 0]
  ------------------
 2015|      0|                case 4: op = EOpConstructIMat4x4; break;
  ------------------
  |  Branch (2015:17): [True: 0, False: 0]
  ------------------
 2016|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2016:17): [True: 0, False: 0]
  ------------------
 2017|      0|                }
 2018|      0|                break;
 2019|      0|            }
 2020|  36.2k|        } else {
 2021|  36.2k|            switch(type.getVectorSize()) {
 2022|  6.30k|            case 1: op = EOpConstructInt;   break;
  ------------------
  |  Branch (2022:13): [True: 6.30k, False: 29.9k]
  ------------------
 2023|  10.2k|            case 2: op = EOpConstructIVec2; break;
  ------------------
  |  Branch (2023:13): [True: 10.2k, False: 26.0k]
  ------------------
 2024|  16.2k|            case 3: op = EOpConstructIVec3; break;
  ------------------
  |  Branch (2024:13): [True: 16.2k, False: 20.0k]
  ------------------
 2025|  3.46k|            case 4: op = EOpConstructIVec4; break;
  ------------------
  |  Branch (2025:13): [True: 3.46k, False: 32.8k]
  ------------------
 2026|      0|            default: break; // some compilers want this
  ------------------
  |  Branch (2026:13): [True: 0, False: 36.2k]
  ------------------
 2027|  36.2k|            }
 2028|  36.2k|        }
 2029|  36.2k|        break;
 2030|  36.2k|    case EbtUint:
  ------------------
  |  Branch (2030:5): [True: 11.4k, False: 141k]
  ------------------
 2031|  11.4k|        if (type.getMatrixCols()) {
  ------------------
  |  Branch (2031:13): [True: 0, False: 11.4k]
  ------------------
 2032|      0|            switch (type.getMatrixCols()) {
  ------------------
  |  Branch (2032:21): [True: 0, False: 0]
  ------------------
 2033|      0|            case 2:
  ------------------
  |  Branch (2033:13): [True: 0, False: 0]
  ------------------
 2034|      0|                switch (type.getMatrixRows()) {
 2035|      0|                case 2: op = EOpConstructUMat2x2; break;
  ------------------
  |  Branch (2035:17): [True: 0, False: 0]
  ------------------
 2036|      0|                case 3: op = EOpConstructUMat2x3; break;
  ------------------
  |  Branch (2036:17): [True: 0, False: 0]
  ------------------
 2037|      0|                case 4: op = EOpConstructUMat2x4; break;
  ------------------
  |  Branch (2037:17): [True: 0, False: 0]
  ------------------
 2038|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2038:17): [True: 0, False: 0]
  ------------------
 2039|      0|                }
 2040|      0|                break;
 2041|      0|            case 3:
  ------------------
  |  Branch (2041:13): [True: 0, False: 0]
  ------------------
 2042|      0|                switch (type.getMatrixRows()) {
 2043|      0|                case 2: op = EOpConstructUMat3x2; break;
  ------------------
  |  Branch (2043:17): [True: 0, False: 0]
  ------------------
 2044|      0|                case 3: op = EOpConstructUMat3x3; break;
  ------------------
  |  Branch (2044:17): [True: 0, False: 0]
  ------------------
 2045|      0|                case 4: op = EOpConstructUMat3x4; break;
  ------------------
  |  Branch (2045:17): [True: 0, False: 0]
  ------------------
 2046|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2046:17): [True: 0, False: 0]
  ------------------
 2047|      0|                }
 2048|      0|                break;
 2049|      0|            case 4:
  ------------------
  |  Branch (2049:13): [True: 0, False: 0]
  ------------------
 2050|      0|                switch (type.getMatrixRows()) {
 2051|      0|                case 2: op = EOpConstructUMat4x2; break;
  ------------------
  |  Branch (2051:17): [True: 0, False: 0]
  ------------------
 2052|      0|                case 3: op = EOpConstructUMat4x3; break;
  ------------------
  |  Branch (2052:17): [True: 0, False: 0]
  ------------------
 2053|      0|                case 4: op = EOpConstructUMat4x4; break;
  ------------------
  |  Branch (2053:17): [True: 0, False: 0]
  ------------------
 2054|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2054:17): [True: 0, False: 0]
  ------------------
 2055|      0|                }
 2056|      0|                break;
 2057|      0|            }
 2058|  11.4k|        } else {
 2059|  11.4k|            switch(type.getVectorSize()) {
 2060|  2.02k|            case 1: op = EOpConstructUint;  break;
  ------------------
  |  Branch (2060:13): [True: 2.02k, False: 9.41k]
  ------------------
 2061|  2.55k|            case 2: op = EOpConstructUVec2; break;
  ------------------
  |  Branch (2061:13): [True: 2.55k, False: 8.88k]
  ------------------
 2062|  4.62k|            case 3: op = EOpConstructUVec3; break;
  ------------------
  |  Branch (2062:13): [True: 4.62k, False: 6.81k]
  ------------------
 2063|  2.23k|            case 4: op = EOpConstructUVec4; break;
  ------------------
  |  Branch (2063:13): [True: 2.23k, False: 9.20k]
  ------------------
 2064|      0|            default: break; // some compilers want this
  ------------------
  |  Branch (2064:13): [True: 0, False: 11.4k]
  ------------------
 2065|  11.4k|            }
 2066|  11.4k|        }
 2067|  11.4k|        break;
 2068|  11.4k|    case EbtBool:
  ------------------
  |  Branch (2068:5): [True: 1.71k, False: 151k]
  ------------------
 2069|  1.71k|        if (type.getMatrixCols()) {
  ------------------
  |  Branch (2069:13): [True: 0, False: 1.71k]
  ------------------
 2070|      0|            switch (type.getMatrixCols()) {
  ------------------
  |  Branch (2070:21): [True: 0, False: 0]
  ------------------
 2071|      0|            case 2:
  ------------------
  |  Branch (2071:13): [True: 0, False: 0]
  ------------------
 2072|      0|                switch (type.getMatrixRows()) {
 2073|      0|                case 2: op = EOpConstructBMat2x2; break;
  ------------------
  |  Branch (2073:17): [True: 0, False: 0]
  ------------------
 2074|      0|                case 3: op = EOpConstructBMat2x3; break;
  ------------------
  |  Branch (2074:17): [True: 0, False: 0]
  ------------------
 2075|      0|                case 4: op = EOpConstructBMat2x4; break;
  ------------------
  |  Branch (2075:17): [True: 0, False: 0]
  ------------------
 2076|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2076:17): [True: 0, False: 0]
  ------------------
 2077|      0|                }
 2078|      0|                break;
 2079|      0|            case 3:
  ------------------
  |  Branch (2079:13): [True: 0, False: 0]
  ------------------
 2080|      0|                switch (type.getMatrixRows()) {
 2081|      0|                case 2: op = EOpConstructBMat3x2; break;
  ------------------
  |  Branch (2081:17): [True: 0, False: 0]
  ------------------
 2082|      0|                case 3: op = EOpConstructBMat3x3; break;
  ------------------
  |  Branch (2082:17): [True: 0, False: 0]
  ------------------
 2083|      0|                case 4: op = EOpConstructBMat3x4; break;
  ------------------
  |  Branch (2083:17): [True: 0, False: 0]
  ------------------
 2084|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2084:17): [True: 0, False: 0]
  ------------------
 2085|      0|                }
 2086|      0|                break;
 2087|      0|            case 4:
  ------------------
  |  Branch (2087:13): [True: 0, False: 0]
  ------------------
 2088|      0|                switch (type.getMatrixRows()) {
 2089|      0|                case 2: op = EOpConstructBMat4x2; break;
  ------------------
  |  Branch (2089:17): [True: 0, False: 0]
  ------------------
 2090|      0|                case 3: op = EOpConstructBMat4x3; break;
  ------------------
  |  Branch (2090:17): [True: 0, False: 0]
  ------------------
 2091|      0|                case 4: op = EOpConstructBMat4x4; break;
  ------------------
  |  Branch (2091:17): [True: 0, False: 0]
  ------------------
 2092|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2092:17): [True: 0, False: 0]
  ------------------
 2093|      0|                }
 2094|      0|                break;
 2095|      0|            }
 2096|  1.71k|        } else {
 2097|  1.71k|            switch(type.getVectorSize()) {
 2098|    137|            case 1:  op = EOpConstructBool;  break;
  ------------------
  |  Branch (2098:13): [True: 137, False: 1.57k]
  ------------------
 2099|    756|            case 2:  op = EOpConstructBVec2; break;
  ------------------
  |  Branch (2099:13): [True: 756, False: 957]
  ------------------
 2100|    384|            case 3:  op = EOpConstructBVec3; break;
  ------------------
  |  Branch (2100:13): [True: 384, False: 1.32k]
  ------------------
 2101|    436|            case 4:  op = EOpConstructBVec4; break;
  ------------------
  |  Branch (2101:13): [True: 436, False: 1.27k]
  ------------------
 2102|      0|            default: break; // some compilers want this
  ------------------
  |  Branch (2102:13): [True: 0, False: 1.71k]
  ------------------
 2103|  1.71k|            }
 2104|  1.71k|        }
 2105|  1.71k|        break;
 2106|  8.45k|    case EbtDouble:
  ------------------
  |  Branch (2106:5): [True: 8.45k, False: 144k]
  ------------------
 2107|  8.45k|        if (type.getMatrixCols()) {
  ------------------
  |  Branch (2107:13): [True: 3, False: 8.45k]
  ------------------
 2108|      3|            switch (type.getMatrixCols()) {
  ------------------
  |  Branch (2108:21): [True: 3, False: 0]
  ------------------
 2109|      2|            case 2:
  ------------------
  |  Branch (2109:13): [True: 2, False: 1]
  ------------------
 2110|      2|                switch (type.getMatrixRows()) {
 2111|      2|                case 2: op = EOpConstructDMat2x2; break;
  ------------------
  |  Branch (2111:17): [True: 2, False: 0]
  ------------------
 2112|      0|                case 3: op = EOpConstructDMat2x3; break;
  ------------------
  |  Branch (2112:17): [True: 0, False: 2]
  ------------------
 2113|      0|                case 4: op = EOpConstructDMat2x4; break;
  ------------------
  |  Branch (2113:17): [True: 0, False: 2]
  ------------------
 2114|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2114:17): [True: 0, False: 2]
  ------------------
 2115|      2|                }
 2116|      2|                break;
 2117|      2|            case 3:
  ------------------
  |  Branch (2117:13): [True: 0, False: 3]
  ------------------
 2118|      0|                switch (type.getMatrixRows()) {
 2119|      0|                case 2: op = EOpConstructDMat3x2; break;
  ------------------
  |  Branch (2119:17): [True: 0, False: 0]
  ------------------
 2120|      0|                case 3: op = EOpConstructDMat3x3; break;
  ------------------
  |  Branch (2120:17): [True: 0, False: 0]
  ------------------
 2121|      0|                case 4: op = EOpConstructDMat3x4; break;
  ------------------
  |  Branch (2121:17): [True: 0, False: 0]
  ------------------
 2122|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2122:17): [True: 0, False: 0]
  ------------------
 2123|      0|                }
 2124|      0|                break;
 2125|      1|            case 4:
  ------------------
  |  Branch (2125:13): [True: 1, False: 2]
  ------------------
 2126|      1|                switch (type.getMatrixRows()) {
 2127|      0|                case 2: op = EOpConstructDMat4x2; break;
  ------------------
  |  Branch (2127:17): [True: 0, False: 1]
  ------------------
 2128|      1|                case 3: op = EOpConstructDMat4x3; break;
  ------------------
  |  Branch (2128:17): [True: 1, False: 0]
  ------------------
 2129|      0|                case 4: op = EOpConstructDMat4x4; break;
  ------------------
  |  Branch (2129:17): [True: 0, False: 1]
  ------------------
 2130|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2130:17): [True: 0, False: 1]
  ------------------
 2131|      1|                }
 2132|      1|                break;
 2133|      3|            }
 2134|  8.45k|        } else {
 2135|  8.45k|            switch(type.getVectorSize()) {
 2136|  2.48k|            case 1: op = EOpConstructDouble; break;
  ------------------
  |  Branch (2136:13): [True: 2.48k, False: 5.97k]
  ------------------
 2137|  2.14k|            case 2: op = EOpConstructDVec2;  break;
  ------------------
  |  Branch (2137:13): [True: 2.14k, False: 6.30k]
  ------------------
 2138|  1.93k|            case 3: op = EOpConstructDVec3;  break;
  ------------------
  |  Branch (2138:13): [True: 1.93k, False: 6.51k]
  ------------------
 2139|  1.88k|            case 4: op = EOpConstructDVec4;  break;
  ------------------
  |  Branch (2139:13): [True: 1.88k, False: 6.57k]
  ------------------
 2140|      0|            default: break; // some compilers want this
  ------------------
  |  Branch (2140:13): [True: 0, False: 8.45k]
  ------------------
 2141|  8.45k|            }
 2142|  8.45k|        }
 2143|  8.45k|        break;
 2144|  8.58k|    case EbtFloat16:
  ------------------
  |  Branch (2144:5): [True: 8.58k, False: 144k]
  ------------------
 2145|  8.58k|        if (type.getMatrixCols()) {
  ------------------
  |  Branch (2145:13): [True: 0, False: 8.58k]
  ------------------
 2146|      0|            switch (type.getMatrixCols()) {
  ------------------
  |  Branch (2146:21): [True: 0, False: 0]
  ------------------
 2147|      0|            case 2:
  ------------------
  |  Branch (2147:13): [True: 0, False: 0]
  ------------------
 2148|      0|                switch (type.getMatrixRows()) {
 2149|      0|                case 2: op = EOpConstructF16Mat2x2; break;
  ------------------
  |  Branch (2149:17): [True: 0, False: 0]
  ------------------
 2150|      0|                case 3: op = EOpConstructF16Mat2x3; break;
  ------------------
  |  Branch (2150:17): [True: 0, False: 0]
  ------------------
 2151|      0|                case 4: op = EOpConstructF16Mat2x4; break;
  ------------------
  |  Branch (2151:17): [True: 0, False: 0]
  ------------------
 2152|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2152:17): [True: 0, False: 0]
  ------------------
 2153|      0|                }
 2154|      0|                break;
 2155|      0|            case 3:
  ------------------
  |  Branch (2155:13): [True: 0, False: 0]
  ------------------
 2156|      0|                switch (type.getMatrixRows()) {
 2157|      0|                case 2: op = EOpConstructF16Mat3x2; break;
  ------------------
  |  Branch (2157:17): [True: 0, False: 0]
  ------------------
 2158|      0|                case 3: op = EOpConstructF16Mat3x3; break;
  ------------------
  |  Branch (2158:17): [True: 0, False: 0]
  ------------------
 2159|      0|                case 4: op = EOpConstructF16Mat3x4; break;
  ------------------
  |  Branch (2159:17): [True: 0, False: 0]
  ------------------
 2160|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2160:17): [True: 0, False: 0]
  ------------------
 2161|      0|                }
 2162|      0|                break;
 2163|      0|            case 4:
  ------------------
  |  Branch (2163:13): [True: 0, False: 0]
  ------------------
 2164|      0|                switch (type.getMatrixRows()) {
 2165|      0|                case 2: op = EOpConstructF16Mat4x2; break;
  ------------------
  |  Branch (2165:17): [True: 0, False: 0]
  ------------------
 2166|      0|                case 3: op = EOpConstructF16Mat4x3; break;
  ------------------
  |  Branch (2166:17): [True: 0, False: 0]
  ------------------
 2167|      0|                case 4: op = EOpConstructF16Mat4x4; break;
  ------------------
  |  Branch (2167:17): [True: 0, False: 0]
  ------------------
 2168|      0|                default: break; // some compilers want this
  ------------------
  |  Branch (2168:17): [True: 0, False: 0]
  ------------------
 2169|      0|                }
 2170|      0|                break;
 2171|      0|            }
 2172|      0|        }
 2173|  8.58k|        else {
 2174|  8.58k|            switch (type.getVectorSize()) {
 2175|  1.52k|            case 1: op = EOpConstructFloat16;  break;
  ------------------
  |  Branch (2175:13): [True: 1.52k, False: 7.06k]
  ------------------
 2176|  2.74k|            case 2: op = EOpConstructF16Vec2;  break;
  ------------------
  |  Branch (2176:13): [True: 2.74k, False: 5.84k]
  ------------------
 2177|  1.87k|            case 3: op = EOpConstructF16Vec3;  break;
  ------------------
  |  Branch (2177:13): [True: 1.87k, False: 6.70k]
  ------------------
 2178|  2.44k|            case 4: op = EOpConstructF16Vec4;  break;
  ------------------
  |  Branch (2178:13): [True: 2.44k, False: 6.14k]
  ------------------
 2179|      0|            default: break; // some compilers want this
  ------------------
  |  Branch (2179:13): [True: 0, False: 8.58k]
  ------------------
 2180|  8.58k|            }
 2181|  8.58k|        }
 2182|  8.58k|        break;
 2183|  8.58k|    case EbtBFloat16:
  ------------------
  |  Branch (2183:5): [True: 0, False: 153k]
  ------------------
 2184|      0|        switch (type.getVectorSize()) {
 2185|      0|        case 1: op = EOpConstructBFloat16;  break;
  ------------------
  |  Branch (2185:9): [True: 0, False: 0]
  ------------------
 2186|      0|        case 2: op = EOpConstructBF16Vec2;  break;
  ------------------
  |  Branch (2186:9): [True: 0, False: 0]
  ------------------
 2187|      0|        case 3: op = EOpConstructBF16Vec3;  break;
  ------------------
  |  Branch (2187:9): [True: 0, False: 0]
  ------------------
 2188|      0|        case 4: op = EOpConstructBF16Vec4;  break;
  ------------------
  |  Branch (2188:9): [True: 0, False: 0]
  ------------------
 2189|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2189:9): [True: 0, False: 0]
  ------------------
 2190|      0|        }
 2191|      0|        break;
 2192|      0|    case EbtFloatE5M2:
  ------------------
  |  Branch (2192:5): [True: 0, False: 153k]
  ------------------
 2193|      0|        switch (type.getVectorSize()) {
 2194|      0|        case 1: op = EOpConstructFloatE5M2;  break;
  ------------------
  |  Branch (2194:9): [True: 0, False: 0]
  ------------------
 2195|      0|        case 2: op = EOpConstructFloatE5M2Vec2;  break;
  ------------------
  |  Branch (2195:9): [True: 0, False: 0]
  ------------------
 2196|      0|        case 3: op = EOpConstructFloatE5M2Vec3;  break;
  ------------------
  |  Branch (2196:9): [True: 0, False: 0]
  ------------------
 2197|      0|        case 4: op = EOpConstructFloatE5M2Vec4;  break;
  ------------------
  |  Branch (2197:9): [True: 0, False: 0]
  ------------------
 2198|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2198:9): [True: 0, False: 0]
  ------------------
 2199|      0|        }
 2200|      0|        break;
 2201|      0|    case EbtFloatE4M3:
  ------------------
  |  Branch (2201:5): [True: 0, False: 153k]
  ------------------
 2202|      0|        switch (type.getVectorSize()) {
 2203|      0|        case 1: op = EOpConstructFloatE4M3;  break;
  ------------------
  |  Branch (2203:9): [True: 0, False: 0]
  ------------------
 2204|      0|        case 2: op = EOpConstructFloatE4M3Vec2;  break;
  ------------------
  |  Branch (2204:9): [True: 0, False: 0]
  ------------------
 2205|      0|        case 3: op = EOpConstructFloatE4M3Vec3;  break;
  ------------------
  |  Branch (2205:9): [True: 0, False: 0]
  ------------------
 2206|      0|        case 4: op = EOpConstructFloatE4M3Vec4;  break;
  ------------------
  |  Branch (2206:9): [True: 0, False: 0]
  ------------------
 2207|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2207:9): [True: 0, False: 0]
  ------------------
 2208|      0|        }
 2209|      0|        break;
 2210|      0|    case EbtFloatE2M1:
  ------------------
  |  Branch (2210:5): [True: 0, False: 153k]
  ------------------
 2211|      0|        switch (type.getVectorSize()) {
 2212|      0|        case 1: op = EOpConstructFloatE2M1;  break;
  ------------------
  |  Branch (2212:9): [True: 0, False: 0]
  ------------------
 2213|      0|        case 2: op = EOpConstructFloatE2M1Vec2;  break;
  ------------------
  |  Branch (2213:9): [True: 0, False: 0]
  ------------------
 2214|      0|        case 3: op = EOpConstructFloatE2M1Vec3;  break;
  ------------------
  |  Branch (2214:9): [True: 0, False: 0]
  ------------------
 2215|      0|        case 4: op = EOpConstructFloatE2M1Vec4;  break;
  ------------------
  |  Branch (2215:9): [True: 0, False: 0]
  ------------------
 2216|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2216:9): [True: 0, False: 0]
  ------------------
 2217|      0|        }
 2218|      0|        break;
 2219|      0|    case EbtFloatE3M2:
  ------------------
  |  Branch (2219:5): [True: 0, False: 153k]
  ------------------
 2220|      0|        switch (type.getVectorSize()) {
 2221|      0|        case 1: op = EOpConstructFloatE3M2;  break;
  ------------------
  |  Branch (2221:9): [True: 0, False: 0]
  ------------------
 2222|      0|        case 2: op = EOpConstructFloatE3M2Vec2;  break;
  ------------------
  |  Branch (2222:9): [True: 0, False: 0]
  ------------------
 2223|      0|        case 3: op = EOpConstructFloatE3M2Vec3;  break;
  ------------------
  |  Branch (2223:9): [True: 0, False: 0]
  ------------------
 2224|      0|        case 4: op = EOpConstructFloatE3M2Vec4;  break;
  ------------------
  |  Branch (2224:9): [True: 0, False: 0]
  ------------------
 2225|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2225:9): [True: 0, False: 0]
  ------------------
 2226|      0|        }
 2227|      0|        break;
 2228|      0|    case EbtFloatE2M3:
  ------------------
  |  Branch (2228:5): [True: 0, False: 153k]
  ------------------
 2229|      0|        switch (type.getVectorSize()) {
 2230|      0|        case 1: op = EOpConstructFloatE2M3;  break;
  ------------------
  |  Branch (2230:9): [True: 0, False: 0]
  ------------------
 2231|      0|        case 2: op = EOpConstructFloatE2M3Vec2;  break;
  ------------------
  |  Branch (2231:9): [True: 0, False: 0]
  ------------------
 2232|      0|        case 3: op = EOpConstructFloatE2M3Vec3;  break;
  ------------------
  |  Branch (2232:9): [True: 0, False: 0]
  ------------------
 2233|      0|        case 4: op = EOpConstructFloatE2M3Vec4;  break;
  ------------------
  |  Branch (2233:9): [True: 0, False: 0]
  ------------------
 2234|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2234:9): [True: 0, False: 0]
  ------------------
 2235|      0|        }
 2236|      0|        break;
 2237|      0|    case EbtFloatUE8M0:
  ------------------
  |  Branch (2237:5): [True: 0, False: 153k]
  ------------------
 2238|      0|        switch (type.getVectorSize()) {
 2239|      0|        case 1: op = EOpConstructFloatUE8M0;  break;
  ------------------
  |  Branch (2239:9): [True: 0, False: 0]
  ------------------
 2240|      0|        case 2: op = EOpConstructFloatUE8M0Vec2;  break;
  ------------------
  |  Branch (2240:9): [True: 0, False: 0]
  ------------------
 2241|      0|        case 3: op = EOpConstructFloatUE8M0Vec3;  break;
  ------------------
  |  Branch (2241:9): [True: 0, False: 0]
  ------------------
 2242|      0|        case 4: op = EOpConstructFloatUE8M0Vec4;  break;
  ------------------
  |  Branch (2242:9): [True: 0, False: 0]
  ------------------
 2243|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2243:9): [True: 0, False: 0]
  ------------------
 2244|      0|        }
 2245|      0|        break;
 2246|      0|    case EbtFloatMXINT8:
  ------------------
  |  Branch (2246:5): [True: 0, False: 153k]
  ------------------
 2247|      0|        switch (type.getVectorSize()) {
 2248|      0|        case 1: op = EOpConstructFloatMXINT8;  break;
  ------------------
  |  Branch (2248:9): [True: 0, False: 0]
  ------------------
 2249|      0|        case 2: op = EOpConstructFloatMXINT8Vec2;  break;
  ------------------
  |  Branch (2249:9): [True: 0, False: 0]
  ------------------
 2250|      0|        case 3: op = EOpConstructFloatMXINT8Vec3;  break;
  ------------------
  |  Branch (2250:9): [True: 0, False: 0]
  ------------------
 2251|      0|        case 4: op = EOpConstructFloatMXINT8Vec4;  break;
  ------------------
  |  Branch (2251:9): [True: 0, False: 0]
  ------------------
 2252|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2252:9): [True: 0, False: 0]
  ------------------
 2253|      0|        }
 2254|      0|        break;
 2255|  14.2k|    case EbtInt8:
  ------------------
  |  Branch (2255:5): [True: 14.2k, False: 138k]
  ------------------
 2256|  14.2k|        switch(type.getVectorSize()) {
 2257|  4.05k|        case 1: op = EOpConstructInt8;   break;
  ------------------
  |  Branch (2257:9): [True: 4.05k, False: 10.2k]
  ------------------
 2258|  3.69k|        case 2: op = EOpConstructI8Vec2; break;
  ------------------
  |  Branch (2258:9): [True: 3.69k, False: 10.5k]
  ------------------
 2259|  3.29k|        case 3: op = EOpConstructI8Vec3; break;
  ------------------
  |  Branch (2259:9): [True: 3.29k, False: 10.9k]
  ------------------
 2260|  3.24k|        case 4: op = EOpConstructI8Vec4; break;
  ------------------
  |  Branch (2260:9): [True: 3.24k, False: 11.0k]
  ------------------
 2261|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2261:9): [True: 0, False: 14.2k]
  ------------------
 2262|  14.2k|        }
 2263|  14.2k|        break;
 2264|  14.2k|    case EbtUint8:
  ------------------
  |  Branch (2264:5): [True: 8.94k, False: 144k]
  ------------------
 2265|  8.94k|        switch(type.getVectorSize()) {
 2266|  2.23k|        case 1: op = EOpConstructUint8;  break;
  ------------------
  |  Branch (2266:9): [True: 2.23k, False: 6.70k]
  ------------------
 2267|  2.34k|        case 2: op = EOpConstructU8Vec2; break;
  ------------------
  |  Branch (2267:9): [True: 2.34k, False: 6.59k]
  ------------------
 2268|  2.23k|        case 3: op = EOpConstructU8Vec3; break;
  ------------------
  |  Branch (2268:9): [True: 2.23k, False: 6.71k]
  ------------------
 2269|  2.13k|        case 4: op = EOpConstructU8Vec4; break;
  ------------------
  |  Branch (2269:9): [True: 2.13k, False: 6.80k]
  ------------------
 2270|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2270:9): [True: 0, False: 8.94k]
  ------------------
 2271|  8.94k|        }
 2272|  8.94k|        break;
 2273|  14.8k|    case EbtInt16:
  ------------------
  |  Branch (2273:5): [True: 14.8k, False: 138k]
  ------------------
 2274|  14.8k|        switch(type.getVectorSize()) {
 2275|  4.92k|        case 1: op = EOpConstructInt16;   break;
  ------------------
  |  Branch (2275:9): [True: 4.92k, False: 9.94k]
  ------------------
 2276|  5.53k|        case 2: op = EOpConstructI16Vec2; break;
  ------------------
  |  Branch (2276:9): [True: 5.53k, False: 9.33k]
  ------------------
 2277|  2.21k|        case 3: op = EOpConstructI16Vec3; break;
  ------------------
  |  Branch (2277:9): [True: 2.21k, False: 12.6k]
  ------------------
 2278|  2.20k|        case 4: op = EOpConstructI16Vec4; break;
  ------------------
  |  Branch (2278:9): [True: 2.20k, False: 12.6k]
  ------------------
 2279|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2279:9): [True: 0, False: 14.8k]
  ------------------
 2280|  14.8k|        }
 2281|  14.8k|        break;
 2282|  14.8k|    case EbtUint16:
  ------------------
  |  Branch (2282:5): [True: 7.44k, False: 145k]
  ------------------
 2283|  7.44k|        switch(type.getVectorSize()) {
 2284|  2.66k|        case 1: op = EOpConstructUint16;  break;
  ------------------
  |  Branch (2284:9): [True: 2.66k, False: 4.78k]
  ------------------
 2285|  3.24k|        case 2: op = EOpConstructU16Vec2; break;
  ------------------
  |  Branch (2285:9): [True: 3.24k, False: 4.20k]
  ------------------
 2286|  1.18k|        case 3: op = EOpConstructU16Vec3; break;
  ------------------
  |  Branch (2286:9): [True: 1.18k, False: 6.26k]
  ------------------
 2287|    357|        case 4: op = EOpConstructU16Vec4; break;
  ------------------
  |  Branch (2287:9): [True: 357, False: 7.09k]
  ------------------
 2288|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2288:9): [True: 0, False: 7.44k]
  ------------------
 2289|  7.44k|        }
 2290|  7.44k|        break;
 2291|  13.4k|    case EbtInt64:
  ------------------
  |  Branch (2291:5): [True: 13.4k, False: 139k]
  ------------------
 2292|  13.4k|        switch(type.getVectorSize()) {
 2293|  2.79k|        case 1: op = EOpConstructInt64;   break;
  ------------------
  |  Branch (2293:9): [True: 2.79k, False: 10.6k]
  ------------------
 2294|  4.13k|        case 2: op = EOpConstructI64Vec2; break;
  ------------------
  |  Branch (2294:9): [True: 4.13k, False: 9.28k]
  ------------------
 2295|  3.22k|        case 3: op = EOpConstructI64Vec3; break;
  ------------------
  |  Branch (2295:9): [True: 3.22k, False: 10.2k]
  ------------------
 2296|  3.26k|        case 4: op = EOpConstructI64Vec4; break;
  ------------------
  |  Branch (2296:9): [True: 3.26k, False: 10.1k]
  ------------------
 2297|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2297:9): [True: 0, False: 13.4k]
  ------------------
 2298|  13.4k|        }
 2299|  13.4k|        break;
 2300|  13.4k|    case EbtUint64:
  ------------------
  |  Branch (2300:5): [True: 9.39k, False: 143k]
  ------------------
 2301|  9.39k|        switch(type.getVectorSize()) {
 2302|  1.14k|        case 1: op = EOpConstructUint64;  break;
  ------------------
  |  Branch (2302:9): [True: 1.14k, False: 8.24k]
  ------------------
 2303|  2.89k|        case 2: op = EOpConstructU64Vec2; break;
  ------------------
  |  Branch (2303:9): [True: 2.89k, False: 6.50k]
  ------------------
 2304|  2.93k|        case 3: op = EOpConstructU64Vec3; break;
  ------------------
  |  Branch (2304:9): [True: 2.93k, False: 6.45k]
  ------------------
 2305|  2.42k|        case 4: op = EOpConstructU64Vec4; break;
  ------------------
  |  Branch (2305:9): [True: 2.42k, False: 6.97k]
  ------------------
 2306|      0|        default: break; // some compilers want this
  ------------------
  |  Branch (2306:9): [True: 0, False: 9.39k]
  ------------------
 2307|  9.39k|        }
 2308|  9.39k|        break;
 2309|  9.39k|    case EbtReference:
  ------------------
  |  Branch (2309:5): [True: 32, False: 153k]
  ------------------
 2310|     32|        op = EOpConstructReference;
 2311|     32|        break;
 2312|       |
 2313|      0|    case EbtAccStruct:
  ------------------
  |  Branch (2313:5): [True: 0, False: 153k]
  ------------------
 2314|      0|        op = EOpConstructAccStruct;
 2315|      0|        break;
 2316|      0|    default:
  ------------------
  |  Branch (2316:5): [True: 0, False: 153k]
  ------------------
 2317|      0|        break;
 2318|   153k|    }
 2319|       |
 2320|   153k|    return op;
 2321|   153k|}
_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_:
 2331|   955k|{
 2332|   955k|    if (left == nullptr && right == nullptr)
  ------------------
  |  Branch (2332:9): [True: 685k, False: 269k]
  |  Branch (2332:28): [True: 631k, False: 53.8k]
  ------------------
 2333|   631k|        return nullptr;
 2334|       |
 2335|   323k|    TIntermAggregate* aggNode = nullptr;
 2336|   323k|    if (left != nullptr)
  ------------------
  |  Branch (2336:9): [True: 269k, False: 53.8k]
  ------------------
 2337|   269k|        aggNode = left->getAsAggregate();
 2338|   323k|    if (aggNode == nullptr || aggNode->getOp() != EOpNull) {
  ------------------
  |  Branch (2338:9): [True: 99.0k, False: 224k]
  |  Branch (2338:31): [True: 5.80k, False: 218k]
  ------------------
 2339|   104k|        aggNode = new TIntermAggregate;
 2340|   104k|        if (left != nullptr)
  ------------------
  |  Branch (2340:13): [True: 51.0k, False: 53.8k]
  ------------------
 2341|  51.0k|            aggNode->getSequence().push_back(left);
 2342|   104k|    }
 2343|       |
 2344|   323k|    if (right != nullptr)
  ------------------
  |  Branch (2344:9): [True: 266k, False: 57.6k]
  ------------------
 2345|   266k|        aggNode->getSequence().push_back(right);
 2346|       |
 2347|   323k|    return aggNode;
 2348|   955k|}
_ZN7glslang13TIntermediate13growAggregateEP11TIntermNodeS2_RKNS_10TSourceLocE:
 2351|   762k|{
 2352|   762k|    TIntermAggregate* aggNode = growAggregate(left, right);
 2353|   762k|    if (aggNode)
  ------------------
  |  Branch (2353:9): [True: 137k, False: 625k]
  ------------------
 2354|   137k|        aggNode->setLoc(loc);
 2355|       |
 2356|   762k|    return aggNode;
 2357|   762k|}
_ZN7glslang13TIntermediate13makeAggregateEP11TIntermNode:
 2399|  5.47k|{
 2400|  5.47k|    if (node == nullptr)
  ------------------
  |  Branch (2400:9): [True: 1.64k, False: 3.83k]
  ------------------
 2401|  1.64k|        return nullptr;
 2402|       |
 2403|  3.83k|    TIntermAggregate* aggNode = new TIntermAggregate;
 2404|  3.83k|    aggNode->getSequence().push_back(node);
 2405|  3.83k|    aggNode->setLoc(node->getLoc());
 2406|       |
 2407|  3.83k|    return aggNode;
 2408|  5.47k|}
_ZN7glslang13TIntermediate13makeAggregateEP11TIntermNodeRKNS_10TSourceLocE:
 2411|     25|{
 2412|     25|    if (node == nullptr)
  ------------------
  |  Branch (2412:9): [True: 0, False: 25]
  ------------------
 2413|      0|        return nullptr;
 2414|       |
 2415|     25|    TIntermAggregate* aggNode = new TIntermAggregate;
 2416|     25|    aggNode->getSequence().push_back(node);
 2417|     25|    aggNode->setLoc(loc);
 2418|       |
 2419|     25|    return aggNode;
 2420|     25|}
_ZN7glslang13TIntermediate12addSelectionEPNS_12TIntermTypedENS_15TIntermNodePairERKNS_10TSourceLocE:
 2441|    617|{
 2442|       |    //
 2443|       |    // Don't prune the false path for compile-time constants; it's needed
 2444|       |    // for static access analysis.
 2445|       |    //
 2446|       |
 2447|    617|    TIntermSelection* node = new TIntermSelection(cond, nodePair.node1, nodePair.node2);
 2448|    617|    node->setLoc(loc);
 2449|       |
 2450|    617|    return node;
 2451|    617|}
_ZN7glslang13TIntermediate8addCommaEPNS_12TIntermTypedES2_RKNS_10TSourceLocE:
 2454|     28|{
 2455|       |    // However, the lowest precedence operators of the sequence operator ( , ) and the assignment operators
 2456|       |    // ... are not included in the operators that can create a constant expression.
 2457|       |    //
 2458|       |    // if (left->getType().getQualifier().storage == EvqConst &&
 2459|       |    //    right->getType().getQualifier().storage == EvqConst) {
 2460|       |
 2461|       |    //    return right;
 2462|       |    //}
 2463|       |
 2464|     28|    TIntermTyped *commaAggregate = growAggregate(left, right, loc);
 2465|     28|    commaAggregate->getAsAggregate()->setOperator(EOpComma);
 2466|     28|    commaAggregate->setType(right->getType());
 2467|     28|    commaAggregate->getWritableType().getQualifier().makeTemporary();
 2468|       |
 2469|     28|    return commaAggregate;
 2470|     28|}
_ZN7glslang13TIntermediate9addMethodEPNS_12TIntermTypedERKNS_5TTypeEPKNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS_10TSourceLocE:
 2473|    348|{
 2474|    348|    TIntermMethod* method = new TIntermMethod(object, type, *name);
 2475|    348|    method->setLoc(loc);
 2476|       |
 2477|    348|    return method;
 2478|    348|}
_ZN7glslang13TIntermediate12addSelectionEPNS_12TIntermTypedES2_S2_RKNS_10TSourceLocE:
 2493|     88|{
 2494|       |    // If it's void, go to the if-then-else selection()
 2495|     88|    if (trueBlock->getBasicType() == EbtVoid && falseBlock->getBasicType() == EbtVoid) {
  ------------------
  |  Branch (2495:9): [True: 0, False: 88]
  |  Branch (2495:49): [True: 0, False: 0]
  ------------------
 2496|      0|        TIntermNodePair pair = { trueBlock, falseBlock };
 2497|      0|        TIntermSelection* selection = addSelection(cond, pair, loc);
 2498|      0|        if (getSource() == EShSourceHlsl)
  ------------------
  |  Branch (2498:13): [True: 0, False: 0]
  ------------------
 2499|      0|            selection->setNoShortCircuit();
 2500|       |
 2501|      0|        return selection;
 2502|      0|    }
 2503|       |
 2504|       |    //
 2505|       |    // Get compatible types.
 2506|       |    //
 2507|     88|    auto children = addPairConversion(EOpSequence, trueBlock, falseBlock);
 2508|     88|    trueBlock = std::get<0>(children);
 2509|     88|    falseBlock = std::get<1>(children);
 2510|       |
 2511|     88|    if (trueBlock == nullptr || falseBlock == nullptr ||
  ------------------
  |  Branch (2511:9): [True: 9, False: 79]
  |  Branch (2511:33): [True: 0, False: 79]
  ------------------
 2512|     79|        trueBlock->getBasicType() == EbtString || falseBlock->getBasicType() == EbtString)
  ------------------
  |  Branch (2512:9): [True: 0, False: 79]
  |  Branch (2512:51): [True: 0, False: 79]
  ------------------
 2513|      9|        return nullptr;
 2514|       |
 2515|       |    // Handle a vector condition as a mix
 2516|     79|    if (!cond->getType().isScalarOrVec1()) {
  ------------------
  |  Branch (2516:9): [True: 0, False: 79]
  ------------------
 2517|      0|        TType targetVectorType(trueBlock->getType().getBasicType(), EvqTemporary,
 2518|      0|                               cond->getType().getVectorSize());
 2519|       |        // smear true/false operands as needed
 2520|      0|        trueBlock = addUniShapeConversion(EOpMix, targetVectorType, trueBlock);
 2521|      0|        falseBlock = addUniShapeConversion(EOpMix, targetVectorType, falseBlock);
 2522|       |
 2523|       |        // After conversion, types have to match.
 2524|      0|        if (falseBlock->getType() != trueBlock->getType())
  ------------------
  |  Branch (2524:13): [True: 0, False: 0]
  ------------------
 2525|      0|            return nullptr;
 2526|       |
 2527|       |        // make the mix operation
 2528|      0|        TIntermAggregate* mix = makeAggregate(loc);
 2529|      0|        mix = growAggregate(mix, falseBlock);
 2530|      0|        mix = growAggregate(mix, trueBlock);
 2531|      0|        mix = growAggregate(mix, cond);
 2532|      0|        mix->setType(targetVectorType);
 2533|      0|        mix->setOp(EOpMix);
 2534|       |
 2535|      0|        return mix;
 2536|      0|    }
 2537|       |
 2538|       |    // Now have a scalar condition...
 2539|       |
 2540|       |    // Convert true and false expressions to matching types
 2541|     79|    addBiShapeConversion(EOpMix, trueBlock, falseBlock);
 2542|       |
 2543|       |    // After conversion, types have to match.
 2544|     79|    if (falseBlock->getType() != trueBlock->getType())
  ------------------
  |  Branch (2544:9): [True: 0, False: 79]
  ------------------
 2545|      0|        return nullptr;
 2546|       |
 2547|       |    // Eliminate the selection when the condition is a scalar and all operands are constant.
 2548|     79|    if (cond->getAsConstantUnion() && trueBlock->getAsConstantUnion() && falseBlock->getAsConstantUnion()) {
  ------------------
  |  Branch (2548:9): [True: 27, False: 52]
  |  Branch (2548:39): [True: 26, False: 1]
  |  Branch (2548:74): [True: 26, False: 0]
  ------------------
 2549|     26|        if (cond->getAsConstantUnion()->getConstArray()[0].getBConst())
  ------------------
  |  Branch (2549:13): [True: 0, False: 26]
  ------------------
 2550|      0|            return trueBlock;
 2551|     26|        else
 2552|     26|            return falseBlock;
 2553|     26|    }
 2554|       |
 2555|       |    //
 2556|       |    // Make a selection node.
 2557|       |    //
 2558|     53|    TIntermSelection* node = new TIntermSelection(cond, trueBlock, falseBlock, trueBlock->getType());
 2559|     53|    node->setLoc(loc);
 2560|     53|    node->getQualifier().precision = std::max(trueBlock->getQualifier().precision, falseBlock->getQualifier().precision);
 2561|       |
 2562|     53|    if ((cond->getQualifier().isConstant() && specConstantPropagates(*trueBlock, *falseBlock)) ||
  ------------------
  |  Branch (2562:10): [True: 1, False: 52]
  |  Branch (2562:47): [True: 0, False: 1]
  ------------------
 2563|     53|        (cond->getQualifier().isSpecConstant() && trueBlock->getQualifier().isConstant() &&
  ------------------
  |  Branch (2563:10): [True: 0, False: 53]
  |  Branch (2563:51): [True: 0, False: 0]
  ------------------
 2564|      0|                                                 falseBlock->getQualifier().isConstant()))
  ------------------
  |  Branch (2564:50): [True: 0, False: 0]
  ------------------
 2565|      0|        node->getQualifier().makeSpecConstant();
 2566|     53|    else
 2567|     53|        node->getQualifier().makeTemporary();
 2568|       |
 2569|     53|    if (getSource() == EShSourceHlsl)
  ------------------
  |  Branch (2569:9): [True: 0, False: 53]
  ------------------
 2570|      0|        node->setNoShortCircuit();
 2571|       |
 2572|     53|    return node;
 2573|     79|}
_ZNK7glslang13TIntermediate16addConstantUnionERKNS_16TConstUnionArrayERKNS_5TTypeERKNS_10TSourceLocEb:
 2582|   638k|{
 2583|   638k|    TIntermConstantUnion* node = new TIntermConstantUnion(unionArray, t);
 2584|   638k|    node->getQualifier().storage = EvqConst;
 2585|   638k|    node->setLoc(loc);
 2586|   638k|    if (literal)
  ------------------
  |  Branch (2586:9): [True: 489k, False: 149k]
  ------------------
 2587|   489k|        node->setLiteral();
 2588|       |
 2589|   638k|    return node;
 2590|   638k|}
_ZNK7glslang13TIntermediate16addConstantUnionEsRKNS_10TSourceLocEb:
 2608|    369|{
 2609|    369|    TConstUnionArray unionArray(1);
 2610|    369|    unionArray[0].setI16Const(i16);
 2611|       |
 2612|    369|    return addConstantUnion(unionArray, TType(EbtInt16, EvqConst), loc, literal);
 2613|    369|}
_ZNK7glslang13TIntermediate16addConstantUnionEtRKNS_10TSourceLocEb:
 2616|    368|{
 2617|    368|    TConstUnionArray unionArray(1);
 2618|    368|    unionArray[0].setU16Const(u16);
 2619|       |
 2620|    368|    return addConstantUnion(unionArray, TType(EbtUint16, EvqConst), loc, literal);
 2621|    368|}
_ZNK7glslang13TIntermediate16addConstantUnionEiRKNS_10TSourceLocEb:
 2624|   463k|{
 2625|   463k|    TConstUnionArray unionArray(1);
 2626|   463k|    unionArray[0].setIConst(i);
 2627|       |
 2628|   463k|    return addConstantUnion(unionArray, TType(EbtInt, EvqConst), loc, literal);
 2629|   463k|}
_ZNK7glslang13TIntermediate16addConstantUnionEjRKNS_10TSourceLocEb:
 2632|  29.0k|{
 2633|  29.0k|    TConstUnionArray unionArray(1);
 2634|  29.0k|    unionArray[0].setUConst(u);
 2635|       |
 2636|  29.0k|    return addConstantUnion(unionArray, TType(EbtUint, EvqConst), loc, literal);
 2637|  29.0k|}
_ZNK7glslang13TIntermediate16addConstantUnionExRKNS_10TSourceLocEb:
 2640|    120|{
 2641|    120|    TConstUnionArray unionArray(1);
 2642|    120|    unionArray[0].setI64Const(i64);
 2643|       |
 2644|    120|    return addConstantUnion(unionArray, TType(EbtInt64, EvqConst), loc, literal);
 2645|    120|}
_ZNK7glslang13TIntermediate16addConstantUnionEyRKNS_10TSourceLocEb:
 2648|    121|{
 2649|    121|    TConstUnionArray unionArray(1);
 2650|    121|    unionArray[0].setU64Const(u64);
 2651|       |
 2652|    121|    return addConstantUnion(unionArray, TType(EbtUint64, EvqConst), loc, literal);
 2653|    121|}
_ZNK7glslang13TIntermediate16addConstantUnionEbRKNS_10TSourceLocEb:
 2656|  1.99k|{
 2657|  1.99k|    TConstUnionArray unionArray(1);
 2658|  1.99k|    unionArray[0].setBConst(b);
 2659|       |
 2660|  1.99k|    return addConstantUnion(unionArray, TType(EbtBool, EvqConst), loc, literal);
 2661|  1.99k|}
_ZNK7glslang13TIntermediate16addConstantUnionEdNS_10TBasicTypeERKNS_10TSourceLocEb:
 2664|  20.2k|{
 2665|  20.2k|    assert(isTypeFloat(baseType));
 2666|       |
 2667|  20.2k|    if (isEsProfile() && (baseType == EbtFloat || baseType == EbtFloat16)) {
  ------------------
  |  Branch (2667:9): [True: 3.80k, False: 16.4k]
  |  Branch (2667:27): [True: 3.78k, False: 20]
  |  Branch (2667:51): [True: 12, False: 8]
  ------------------
 2668|  3.79k|        int exponent = 0;
 2669|  3.79k|        frexp(d, &exponent);
 2670|  3.79k|        int minExp = baseType == EbtFloat ? -126 : -14;
  ------------------
  |  Branch (2670:22): [True: 3.78k, False: 12]
  ------------------
 2671|  3.79k|        int maxExp = baseType == EbtFloat ? 127 : 15;
  ------------------
  |  Branch (2671:22): [True: 3.78k, False: 12]
  ------------------
 2672|  3.79k|        if (exponent > maxExp) { //overflow, d = inf
  ------------------
  |  Branch (2672:13): [True: 0, False: 3.79k]
  ------------------
 2673|      0|            d = std::numeric_limits<double>::infinity();
 2674|  3.79k|        } else if (exponent < minExp) { //underflow, d = 0.0;
  ------------------
  |  Branch (2674:20): [True: 3, False: 3.79k]
  ------------------
 2675|      3|            d = 0.0;
 2676|      3|        }
 2677|  3.79k|    }
 2678|       |
 2679|  20.2k|    TConstUnionArray unionArray(1);
 2680|  20.2k|    unionArray[0].setDConst(d);
 2681|       |
 2682|  20.2k|    return addConstantUnion(unionArray, TType(baseType, EvqConst), loc, literal);
 2683|  20.2k|}
_ZNK7glslang13TIntermediate16addConstantUnionEPKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS_10TSourceLocEb:
 2686|      1|{
 2687|      1|    TConstUnionArray unionArray(1);
 2688|      1|    unionArray[0].setSConst(s);
 2689|       |
 2690|      1|    return addConstantUnion(unionArray, TType(EbtString, EvqConst), loc, literal);
 2691|      1|}
_ZN7glslang13TIntermediate12pushSelectorERNS_7TVectorIP11TIntermNodeEERKiRKNS_10TSourceLocE:
 2695|  5.00k|{
 2696|  5.00k|    TIntermConstantUnion* constIntNode = addConstantUnion(selector, loc);
 2697|  5.00k|    sequence.push_back(constIntNode);
 2698|  5.00k|}
_ZN7glslang13TIntermediate18traverseLValueBaseEPKNS_12TIntermTypedEbbNSt3__18functionIFbRK11TIntermNodeEEE:
 2745|    813|{
 2746|  1.33k|    do {
 2747|  1.33k|        const TIntermBinary* binary = node->getAsBinaryNode();
 2748|  1.33k|        if (binary == nullptr) {
  ------------------
  |  Branch (2748:13): [True: 668, False: 670]
  ------------------
 2749|    668|            if (proc) {
  ------------------
  |  Branch (2749:17): [True: 229, False: 439]
  ------------------
 2750|    229|                proc(*node);
 2751|    229|            }
 2752|    668|            return node;
 2753|    668|        }
 2754|    670|        TOperator op = binary->getOp();
 2755|    670|        if (op != EOpIndexDirect && op != EOpIndexIndirect && op != EOpIndexDirectStruct && op != EOpVectorSwizzle &&
  ------------------
  |  Branch (2755:13): [True: 576, False: 94]
  |  Branch (2755:37): [True: 537, False: 39]
  |  Branch (2755:63): [True: 157, False: 380]
  |  Branch (2755:93): [True: 37, False: 120]
  ------------------
 2756|     37|            op != EOpMatrixSwizzle)
  ------------------
  |  Branch (2756:13): [True: 37, False: 0]
  ------------------
 2757|     37|            return nullptr;
 2758|    633|        if (!swizzleOkay) {
  ------------------
  |  Branch (2758:13): [True: 225, False: 408]
  ------------------
 2759|    225|            if (op == EOpVectorSwizzle || op == EOpMatrixSwizzle)
  ------------------
  |  Branch (2759:17): [True: 108, False: 117]
  |  Branch (2759:43): [True: 0, False: 117]
  ------------------
 2760|    108|                return nullptr;
 2761|    117|            if ((op == EOpIndexDirect || op == EOpIndexIndirect) &&
  ------------------
  |  Branch (2761:18): [True: 74, False: 43]
  |  Branch (2761:42): [True: 38, False: 5]
  ------------------
 2762|    112|                (binary->getLeft()->getType().isVector() || binary->getLeft()->getType().isScalar()) &&
  ------------------
  |  Branch (2762:18): [True: 112, False: 0]
  |  Branch (2762:61): [True: 0, False: 0]
  ------------------
 2763|    112|                !binary->getLeft()->getType().isArray())
  ------------------
  |  Branch (2763:17): [True: 0, False: 112]
  ------------------
 2764|      0|                return nullptr;
 2765|    117|        }
 2766|    525|        if (proc) {
  ------------------
  |  Branch (2766:13): [True: 150, False: 375]
  ------------------
 2767|    150|            if (!proc(*node)) {
  ------------------
  |  Branch (2767:17): [True: 0, False: 150]
  ------------------
 2768|      0|                return node;
 2769|      0|            }
 2770|    150|        }
 2771|    525|        node = binary->getLeft();
 2772|    525|        if (bufferReferenceOk && node->isReference())
  ------------------
  |  Branch (2772:13): [True: 370, False: 155]
  |  Branch (2772:34): [True: 0, False: 370]
  ------------------
 2773|      0|            return node;
 2774|    525|    } while (true);
  ------------------
  |  Branch (2774:14): [True: 525, Folded]
  ------------------
 2775|    813|}
_ZN7glslang13TIntermediate7addLoopEP11TIntermNodeS2_PNS_12TIntermTypedEbRKNS_10TSourceLocE:
 2782|     80|{
 2783|     80|    TIntermLoop* node = new TIntermLoop(body, test, terminal, testFirst);
 2784|     80|    node->setLoc(loc);
 2785|       |
 2786|     80|    return node;
 2787|     80|}
_ZN7glslang13TIntermediate9addBranchENS_9TOperatorERKNS_10TSourceLocE:
 2815|    327|{
 2816|    327|    return addBranch(branchOp, nullptr, loc);
 2817|    327|}
_ZN7glslang13TIntermediate9addBranchENS_9TOperatorEPNS_12TIntermTypedERKNS_10TSourceLocE:
 2820|  1.13k|{
 2821|  1.13k|    TIntermBranch* node = new TIntermBranch(branchOp, expression);
 2822|  1.13k|    node->setLoc(loc);
 2823|       |
 2824|  1.13k|    return node;
 2825|  1.13k|}
_ZN7glslang13TIntermBranch15updatePrecisionENS_19TPrecisionQualifierE:
 2830|    743|{
 2831|    743|    TIntermTyped* exp = getExpression();
 2832|    743|    if (exp == nullptr)
  ------------------
  |  Branch (2832:9): [True: 69, False: 674]
  ------------------
 2833|     69|        return;
 2834|       |
 2835|    674|    if (exp->getBasicType() == EbtInt || exp->getBasicType() == EbtUint ||
  ------------------
  |  Branch (2835:9): [True: 33, False: 641]
  |  Branch (2835:42): [True: 0, False: 641]
  ------------------
 2836|    641|        exp->getBasicType() == EbtFloat) {
  ------------------
  |  Branch (2836:9): [True: 476, False: 165]
  ------------------
 2837|    509|        if (parentPrecision != EpqNone && exp->getQualifier().precision == EpqNone) {
  ------------------
  |  Branch (2837:13): [True: 509, False: 0]
  |  Branch (2837:43): [True: 86, False: 423]
  ------------------
 2838|     86|            exp->propagatePrecision(parentPrecision);
 2839|     86|        }
 2840|    509|    }
 2841|    674|}
_ZN7glslang13TIntermediate11postProcessEP11TIntermNode11EShLanguage:
 2929|     43|{
 2930|     43|    if (root == nullptr)
  ------------------
  |  Branch (2930:9): [True: 0, False: 43]
  ------------------
 2931|      0|        return true;
 2932|       |
 2933|       |    // Finish off the top-level sequence
 2934|     43|    TIntermAggregate* aggRoot = root->getAsAggregate();
 2935|     43|    if (aggRoot && aggRoot->getOp() == EOpNull)
  ------------------
  |  Branch (2935:9): [True: 43, False: 0]
  |  Branch (2935:20): [True: 43, False: 0]
  ------------------
 2936|     43|        aggRoot->setOperator(EOpSequence);
 2937|       |
 2938|       |    // Propagate 'noContraction' label in backward from 'precise' variables.
 2939|     43|    glslang::PropagateNoContraction(*this);
 2940|       |
 2941|     43|    if (invertY && getSource() == EShSourceGlsl &&
  ------------------
  |  Branch (2941:9): [True: 0, False: 43]
  |  Branch (2941:20): [True: 0, False: 0]
  ------------------
 2942|      0|        (language == EShLangVertex ||
  ------------------
  |  Branch (2942:10): [True: 0, False: 0]
  ------------------
 2943|      0|         language == EShLangGeometry ||
  ------------------
  |  Branch (2943:10): [True: 0, False: 0]
  ------------------
 2944|      0|         language == EShLangTessEvaluation)) {
  ------------------
  |  Branch (2944:10): [True: 0, False: 0]
  ------------------
 2945|      0|        invertPositions(root);
 2946|      0|    }
 2947|       |
 2948|     43|    switch (textureSamplerTransformMode) {
  ------------------
  |  Branch (2948:13): [True: 43, False: 0]
  ------------------
 2949|     43|    case EShTexSampTransKeep:
  ------------------
  |  Branch (2949:5): [True: 43, False: 0]
  ------------------
 2950|     43|        break;
 2951|      0|    case EShTexSampTransUpgradeTextureRemoveSampler:
  ------------------
  |  Branch (2951:5): [True: 0, False: 43]
  ------------------
 2952|      0|        performTextureUpgradeAndSamplerRemovalTransformation(root);
 2953|      0|        break;
 2954|      0|    case EShTexSampTransCount:
  ------------------
  |  Branch (2954:5): [True: 0, False: 43]
  ------------------
 2955|      0|        assert(0);
 2956|      0|        break;
 2957|     43|    }
 2958|       |
 2959|     43|    return true;
 2960|     43|}
_ZN7glslang13TIntermediate21addSymbolLinkageNodesERPNS_16TIntermAggregateE11EShLanguageRNS_12TSymbolTableE:
 2963|  1.42k|{
 2964|       |    // Add top-level nodes for declarations that must be checked cross
 2965|       |    // compilation unit by a linker, yet might not have been referenced
 2966|       |    // by the AST.
 2967|       |    //
 2968|       |    // Almost entirely, translation of symbols is driven by what's present
 2969|       |    // in the AST traversal, not by translating the symbol table.
 2970|       |    //
 2971|       |    // However, there are some special cases:
 2972|       |    //  - From the specification: "Special built-in inputs gl_VertexID and
 2973|       |    //    gl_InstanceID are also considered active vertex attributes."
 2974|       |    //  - Linker-based type mismatch error reporting needs to see all
 2975|       |    //    uniforms/ins/outs variables and blocks.
 2976|       |    //  - ftransform() can make gl_Vertex and gl_ModelViewProjectionMatrix active.
 2977|       |    //
 2978|       |
 2979|       |    // if (ftransformUsed) {
 2980|       |        // TODO: 1.1 lowering functionality: track ftransform() usage
 2981|       |    //    addSymbolLinkageNode(root, symbolTable, "gl_Vertex");
 2982|       |    //    addSymbolLinkageNode(root, symbolTable, "gl_ModelViewProjectionMatrix");
 2983|       |    //}
 2984|       |
 2985|  1.42k|    if (language == EShLangVertex) {
  ------------------
  |  Branch (2985:9): [True: 0, False: 1.42k]
  ------------------
 2986|      0|        addSymbolLinkageNode(linkage, symbolTable, "gl_VertexID");
 2987|      0|        if ((version < 140 && requestedExtensions.find(E_GL_EXT_draw_instanced) != requestedExtensions.end()) || version >= 140)
  ------------------
  |  Branch (2987:13): [True: 0, False: 0]
  |  Branch (2987:14): [True: 0, False: 0]
  |  Branch (2987:31): [True: 0, False: 0]
  |  Branch (2987:114): [True: 0, False: 0]
  ------------------
 2988|      0|            addSymbolLinkageNode(linkage, symbolTable, "gl_InstanceID");
 2989|      0|    }
 2990|       |
 2991|       |    // Add a child to the root node for the linker objects
 2992|  1.42k|    linkage->setOperator(EOpLinkerObjects);
 2993|  1.42k|    treeRoot = growAggregate(treeRoot, linkage);
 2994|  1.42k|}
_ZN7glslang13TIntermediate20addSymbolLinkageNodeERPNS_16TIntermAggregateERKNS_7TSymbolE:
 3009|  20.1k|{
 3010|  20.1k|    const TVariable* variable = symbol.getAsVariable();
 3011|  20.1k|    if (! variable) {
  ------------------
  |  Branch (3011:9): [True: 2, False: 20.1k]
  ------------------
 3012|       |        // This must be a member of an anonymous block, and we need to add the whole block
 3013|      2|        const TAnonMember* anon = symbol.getAsAnonMember();
 3014|      2|        variable = &anon->getAnonContainer();
 3015|      2|    }
 3016|  20.1k|    TIntermSymbol* node = addSymbol(*variable);
 3017|  20.1k|    linkage = growAggregate(linkage, node);
 3018|  20.1k|}
_ZN7glslang13TIntermediate14addToCallGraphER9TInfoSinkRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS_14pool_allocatorIcEEEESB_:
 3025|  2.24k|{
 3026|       |    // Duplicates are okay, but faster to not keep them, and they come grouped by caller,
 3027|       |    // as long as new ones are push on the same end we check on for duplicates
 3028|  7.36k|    for (TGraph::const_iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
  ------------------
  |  Branch (3028:59): [True: 6.37k, False: 991]
  ------------------
 3029|  6.37k|        if (call->caller != caller)
  ------------------
  |  Branch (3029:13): [True: 39, False: 6.33k]
  ------------------
 3030|     39|            break;
 3031|  6.33k|        if (call->callee == callee)
  ------------------
  |  Branch (3031:13): [True: 1.21k, False: 5.12k]
  ------------------
 3032|  1.21k|            return;
 3033|  6.33k|    }
 3034|       |
 3035|  1.03k|    callGraph.emplace_front(caller, callee);
 3036|  1.03k|}
_ZNK7glslang13TIntermediate25isSpecializationOperationERKNS_15TIntermOperatorE:
 3086|    607|{
 3087|       |    // The operations resulting in floating point are quite limited
 3088|       |    // (However, some floating-point operations result in bool, like ">",
 3089|       |    // so are handled later.)
 3090|    607|    if (node.getType().isFloatingDomain()) {
  ------------------
  |  Branch (3090:9): [True: 109, False: 498]
  ------------------
 3091|    109|        if (IsOpNumericConv(node.getOp()) &&
  ------------------
  |  Branch (3091:13): [True: 109, False: 0]
  ------------------
 3092|    109|            isTypeFloat(node.getType().getBasicType()) &&
  ------------------
  |  Branch (3092:13): [True: 109, False: 0]
  ------------------
 3093|    109|            isTypeFloat(node.getAsUnaryNode()->getOperand()->getAsTyped()->getType().getBasicType())) {
  ------------------
  |  Branch (3093:13): [True: 108, False: 1]
  ------------------
 3094|    108|            return true;
 3095|    108|        }
 3096|      1|        switch (node.getOp()) {
 3097|      0|        case EOpIndexDirect:
  ------------------
  |  Branch (3097:9): [True: 0, False: 1]
  ------------------
 3098|      0|        case EOpIndexIndirect:
  ------------------
  |  Branch (3098:9): [True: 0, False: 1]
  ------------------
 3099|      0|        case EOpIndexDirectStruct:
  ------------------
  |  Branch (3099:9): [True: 0, False: 1]
  ------------------
 3100|      0|        case EOpVectorSwizzle:
  ------------------
  |  Branch (3100:9): [True: 0, False: 1]
  ------------------
 3101|      0|            return true;
 3102|      1|        default:
  ------------------
  |  Branch (3102:9): [True: 1, False: 0]
  ------------------
 3103|      1|            return false;
 3104|      1|        }
 3105|      1|    }
 3106|       |
 3107|       |    // Check for floating-point arguments
 3108|    498|    if (const TIntermBinary* bin = node.getAsBinaryNode())
  ------------------
  |  Branch (3108:30): [True: 4, False: 494]
  ------------------
 3109|      4|        if (bin->getLeft() ->getType().isFloatingDomain() ||
  ------------------
  |  Branch (3109:13): [True: 0, False: 4]
  ------------------
 3110|      4|            bin->getRight()->getType().isFloatingDomain())
  ------------------
  |  Branch (3110:13): [True: 0, False: 4]
  ------------------
 3111|      0|            return false;
 3112|       |
 3113|       |    // So, for now, we can assume everything left is non-floating-point...
 3114|       |
 3115|    498|    if (IsOpNumericConv(node.getOp())) {
  ------------------
  |  Branch (3115:9): [True: 494, False: 4]
  ------------------
 3116|    494|        TBasicType srcType = node.getAsUnaryNode()->getOperand()->getAsTyped()->getType().getBasicType();
 3117|    494|        TBasicType dstType = node.getType().getBasicType();
 3118|    494|        if ((isTypeInt(srcType) || srcType == EbtBool) &&
  ------------------
  |  Branch (3118:14): [True: 439, False: 55]
  |  Branch (3118:36): [True: 55, False: 0]
  ------------------
 3119|    494|            (isTypeInt(dstType) || dstType == EbtBool)) {
  ------------------
  |  Branch (3119:14): [True: 437, False: 57]
  |  Branch (3119:36): [True: 57, False: 0]
  ------------------
 3120|    494|            return true;
 3121|    494|        }
 3122|    494|    }
 3123|       |
 3124|       |    // Now check for integer/bool-based operations
 3125|      4|    switch (node.getOp()) {
 3126|       |
 3127|       |    // dereference/swizzle
 3128|      0|    case EOpIndexDirect:
  ------------------
  |  Branch (3128:5): [True: 0, False: 4]
  ------------------
 3129|      0|    case EOpIndexIndirect:
  ------------------
  |  Branch (3129:5): [True: 0, False: 4]
  ------------------
 3130|      0|    case EOpIndexDirectStruct:
  ------------------
  |  Branch (3130:5): [True: 0, False: 4]
  ------------------
 3131|      0|    case EOpVectorSwizzle:
  ------------------
  |  Branch (3131:5): [True: 0, False: 4]
  ------------------
 3132|       |
 3133|       |    // unary operations
 3134|      0|    case EOpNegative:
  ------------------
  |  Branch (3134:5): [True: 0, False: 4]
  ------------------
 3135|      0|    case EOpLogicalNot:
  ------------------
  |  Branch (3135:5): [True: 0, False: 4]
  ------------------
 3136|      0|    case EOpBitwiseNot:
  ------------------
  |  Branch (3136:5): [True: 0, False: 4]
  ------------------
 3137|       |
 3138|       |    // binary operations
 3139|      4|    case EOpAdd:
  ------------------
  |  Branch (3139:5): [True: 4, False: 0]
  ------------------
 3140|      4|    case EOpSub:
  ------------------
  |  Branch (3140:5): [True: 0, False: 4]
  ------------------
 3141|      4|    case EOpMul:
  ------------------
  |  Branch (3141:5): [True: 0, False: 4]
  ------------------
 3142|      4|    case EOpVectorTimesScalar:
  ------------------
  |  Branch (3142:5): [True: 0, False: 4]
  ------------------
 3143|      4|    case EOpDiv:
  ------------------
  |  Branch (3143:5): [True: 0, False: 4]
  ------------------
 3144|      4|    case EOpMod:
  ------------------
  |  Branch (3144:5): [True: 0, False: 4]
  ------------------
 3145|      4|    case EOpRightShift:
  ------------------
  |  Branch (3145:5): [True: 0, False: 4]
  ------------------
 3146|      4|    case EOpLeftShift:
  ------------------
  |  Branch (3146:5): [True: 0, False: 4]
  ------------------
 3147|      4|    case EOpAnd:
  ------------------
  |  Branch (3147:5): [True: 0, False: 4]
  ------------------
 3148|      4|    case EOpInclusiveOr:
  ------------------
  |  Branch (3148:5): [True: 0, False: 4]
  ------------------
 3149|      4|    case EOpExclusiveOr:
  ------------------
  |  Branch (3149:5): [True: 0, False: 4]
  ------------------
 3150|      4|    case EOpLogicalOr:
  ------------------
  |  Branch (3150:5): [True: 0, False: 4]
  ------------------
 3151|      4|    case EOpLogicalXor:
  ------------------
  |  Branch (3151:5): [True: 0, False: 4]
  ------------------
 3152|      4|    case EOpLogicalAnd:
  ------------------
  |  Branch (3152:5): [True: 0, False: 4]
  ------------------
 3153|      4|    case EOpEqual:
  ------------------
  |  Branch (3153:5): [True: 0, False: 4]
  ------------------
 3154|      4|    case EOpNotEqual:
  ------------------
  |  Branch (3154:5): [True: 0, False: 4]
  ------------------
 3155|      4|    case EOpLessThan:
  ------------------
  |  Branch (3155:5): [True: 0, False: 4]
  ------------------
 3156|      4|    case EOpGreaterThan:
  ------------------
  |  Branch (3156:5): [True: 0, False: 4]
  ------------------
 3157|      4|    case EOpLessThanEqual:
  ------------------
  |  Branch (3157:5): [True: 0, False: 4]
  ------------------
 3158|      4|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (3158:5): [True: 0, False: 4]
  ------------------
 3159|      4|        return true;
 3160|      0|    default:
  ------------------
  |  Branch (3160:5): [True: 0, False: 4]
  ------------------
 3161|      0|        return false;
 3162|      4|    }
 3163|      4|}
_ZNK7glslang15TIntermOperator13isConstructorEv:
 3266|   124k|{
 3267|   124k|    return op > EOpConstructGuardStart && op < EOpConstructGuardEnd;
  ------------------
  |  Branch (3267:12): [True: 114k, False: 10.3k]
  |  Branch (3267:43): [True: 114k, False: 0]
  ------------------
 3268|   124k|}
_ZN7glslang13TIntermediate7promoteEPNS_15TIntermOperatorE:
 3278|   178k|{
 3279|   178k|    if (node == nullptr)
  ------------------
  |  Branch (3279:9): [True: 0, False: 178k]
  ------------------
 3280|      0|        return false;
 3281|       |
 3282|   178k|    if (node->getAsUnaryNode())
  ------------------
  |  Branch (3282:9): [True: 61.3k, False: 117k]
  ------------------
 3283|  61.3k|        return promoteUnary(*node->getAsUnaryNode());
 3284|       |
 3285|   117k|    if (node->getAsBinaryNode())
  ------------------
  |  Branch (3285:9): [True: 117k, False: 0]
  ------------------
 3286|   117k|        return promoteBinary(*node->getAsBinaryNode());
 3287|       |
 3288|      0|    if (node->getAsAggregate())
  ------------------
  |  Branch (3288:9): [True: 0, False: 0]
  ------------------
 3289|      0|        return promoteAggregate(*node->getAsAggregate());
 3290|       |
 3291|      0|    return false;
 3292|      0|}
_ZN7glslang13TIntermediate12promoteUnaryERNS_12TIntermUnaryE:
 3298|  61.3k|{
 3299|  61.3k|    const TOperator op    = node.getOp();
 3300|  61.3k|    TIntermTyped* operand = node.getOperand();
 3301|       |
 3302|  61.3k|    switch (op) {
 3303|      2|    case EOpLogicalNot:
  ------------------
  |  Branch (3303:5): [True: 2, False: 61.3k]
  ------------------
 3304|       |        // Convert operand to a boolean type
 3305|      2|        if (operand->getBasicType() != EbtBool) {
  ------------------
  |  Branch (3305:13): [True: 0, False: 2]
  ------------------
 3306|       |            // Add constructor to boolean type. If that fails, we can't do it, so return false.
 3307|      0|            TIntermTyped* converted = addConversion(op, TType(EbtBool), operand);
 3308|      0|            if (converted == nullptr)
  ------------------
  |  Branch (3308:17): [True: 0, False: 0]
  ------------------
 3309|      0|                return false;
 3310|       |
 3311|       |            // Use the result of converting the node to a bool.
 3312|      0|            node.setOperand(operand = converted); // also updates stack variable
 3313|      0|        }
 3314|      2|        break;
 3315|    149|    case EOpBitwiseNot:
  ------------------
  |  Branch (3315:5): [True: 149, False: 61.2k]
  ------------------
 3316|    149|        if (!isTypeInt(operand->getBasicType()))
  ------------------
  |  Branch (3316:13): [True: 2, False: 147]
  ------------------
 3317|      2|            return false;
 3318|    147|        break;
 3319|  23.6k|    case EOpNegative:
  ------------------
  |  Branch (3319:5): [True: 23.6k, False: 37.6k]
  ------------------
 3320|  23.8k|    case EOpPostIncrement:
  ------------------
  |  Branch (3320:5): [True: 184, False: 61.1k]
  ------------------
 3321|  24.0k|    case EOpPostDecrement:
  ------------------
  |  Branch (3321:5): [True: 140, False: 61.2k]
  ------------------
 3322|  43.5k|    case EOpPreIncrement:
  ------------------
  |  Branch (3322:5): [True: 19.5k, False: 41.7k]
  ------------------
 3323|  61.2k|    case EOpPreDecrement:
  ------------------
  |  Branch (3323:5): [True: 17.6k, False: 43.7k]
  ------------------
 3324|  61.2k|        if (!isTypeInt(operand->getBasicType()) &&
  ------------------
  |  Branch (3324:13): [True: 17.1k, False: 44.0k]
  ------------------
 3325|  17.1k|            operand->getBasicType() != EbtFloat &&
  ------------------
  |  Branch (3325:13): [True: 9.09k, False: 8.04k]
  ------------------
 3326|  9.09k|            operand->getBasicType() != EbtFloat16 &&
  ------------------
  |  Branch (3326:13): [True: 9.04k, False: 51]
  ------------------
 3327|  9.04k|            operand->getBasicType() != EbtDouble)
  ------------------
  |  Branch (3327:13): [True: 107, False: 8.93k]
  ------------------
 3328|       |
 3329|    107|            return false;
 3330|  61.0k|        break;
 3331|  61.0k|    default:
  ------------------
  |  Branch (3331:5): [True: 0, False: 61.3k]
  ------------------
 3332|       |        // HLSL uses this path for initial function signature finding for built-ins
 3333|       |        // taking a single argument, which generally don't participate in
 3334|       |        // operator-based type promotion (type conversion will occur later).
 3335|       |        // For now, scalar argument cases are relying on the setType() call below.
 3336|      0|        if (getSource() == EShSourceHlsl)
  ------------------
  |  Branch (3336:13): [True: 0, False: 0]
  ------------------
 3337|      0|            break;
 3338|       |
 3339|       |        // GLSL only allows integer arguments for the cases identified above in the
 3340|       |        // case statements.
 3341|      0|        if (operand->getBasicType() != EbtFloat)
  ------------------
  |  Branch (3341:13): [True: 0, False: 0]
  ------------------
 3342|      0|            return false;
 3343|  61.3k|    }
 3344|       |
 3345|  61.2k|    node.setType(operand->getType());
 3346|  61.2k|    node.getWritableType().getQualifier().makeTemporary();
 3347|       |
 3348|  61.2k|    return true;
 3349|  61.3k|}
_ZN7glslang12TIntermUnary15updatePrecisionEv:
 3353|  66.4k|{
 3354|  66.4k|    if (getBasicType() == EbtInt || getBasicType() == EbtUint ||
  ------------------
  |  Branch (3354:9): [True: 7.58k, False: 58.8k]
  |  Branch (3354:37): [True: 13.2k, False: 45.6k]
  ------------------
 3355|  45.6k|        getBasicType() == EbtFloat) {
  ------------------
  |  Branch (3355:9): [True: 8.46k, False: 37.1k]
  ------------------
 3356|  29.3k|        if (operand->getQualifier().precision > getQualifier().precision)
  ------------------
  |  Branch (3356:13): [True: 1.02k, False: 28.3k]
  ------------------
 3357|  1.02k|            getQualifier().precision = operand->getQualifier().precision;
 3358|  29.3k|    }
 3359|  66.4k|}
_ZN7glslang13TIntermediate13promoteBinaryERNS_13TIntermBinaryE:
 3365|   117k|{
 3366|   117k|    TOperator     op    = node.getOp();
 3367|   117k|    TIntermTyped* left  = node.getLeft();
 3368|   117k|    TIntermTyped* right = node.getRight();
 3369|       |
 3370|       |    // Arrays and structures have to be exact matches.
 3371|   117k|    if ((left->isArray() || right->isArray() || left->getBasicType() == EbtStruct || right->getBasicType() == EbtStruct)
  ------------------
  |  Branch (3371:10): [True: 330, False: 116k]
  |  Branch (3371:29): [True: 0, False: 116k]
  |  Branch (3371:49): [True: 75, False: 116k]
  |  Branch (3371:86): [True: 0, False: 116k]
  ------------------
 3372|    405|        && left->getType() != right->getType())
  ------------------
  |  Branch (3372:12): [True: 0, False: 405]
  ------------------
 3373|      0|        return false;
 3374|       |
 3375|       |    // Base assumption:  just make the type the same as the left
 3376|       |    // operand.  Only deviations from this will be coded.
 3377|   117k|    node.setType(left->getType());
 3378|   117k|    node.getWritableType().getQualifier().clear();
 3379|       |
 3380|       |    // Composite and opaque types don't having pending operator changes, e.g.,
 3381|       |    // array, structure, and samplers.  Just establish final type and correctness.
 3382|   117k|    if (left->isArray() || left->getBasicType() == EbtStruct || left->getBasicType() == EbtSampler) {
  ------------------
  |  Branch (3382:9): [True: 330, False: 116k]
  |  Branch (3382:28): [True: 75, False: 116k]
  |  Branch (3382:65): [True: 13, False: 116k]
  ------------------
 3383|    418|        switch (op) {
 3384|     23|        case EOpEqual:
  ------------------
  |  Branch (3384:9): [True: 23, False: 395]
  ------------------
 3385|     34|        case EOpNotEqual:
  ------------------
  |  Branch (3385:9): [True: 11, False: 407]
  ------------------
 3386|     34|            if (left->getBasicType() == EbtSampler) {
  ------------------
  |  Branch (3386:17): [True: 0, False: 34]
  ------------------
 3387|       |                // can't compare samplers
 3388|      0|                return false;
 3389|     34|            } else {
 3390|       |                // Promote to conditional
 3391|     34|                node.setType(TType(EbtBool));
 3392|     34|            }
 3393|       |
 3394|     34|            return true;
 3395|       |
 3396|    382|        case EOpAssign:
  ------------------
  |  Branch (3396:9): [True: 382, False: 36]
  ------------------
 3397|       |            // Keep type from above
 3398|       |
 3399|    382|            return true;
 3400|       |
 3401|      2|        default:
  ------------------
  |  Branch (3401:9): [True: 2, False: 416]
  ------------------
 3402|      2|            return false;
 3403|    418|        }
 3404|    418|    }
 3405|       |
 3406|       |    //
 3407|       |    // We now have only scalars, vectors, and matrices to worry about.
 3408|       |    //
 3409|       |
 3410|       |    // HLSL implicitly promotes bool -> int for numeric operations.
 3411|       |    // (Implicit conversions to make the operands match each other's types were already done.)
 3412|   116k|    if (getSource() == EShSourceHlsl &&
  ------------------
  |  Branch (3412:9): [True: 0, False: 116k]
  ------------------
 3413|      0|        (left->getBasicType() == EbtBool || right->getBasicType() == EbtBool)) {
  ------------------
  |  Branch (3413:10): [True: 0, False: 0]
  |  Branch (3413:45): [True: 0, False: 0]
  ------------------
 3414|      0|        switch (op) {
 3415|      0|        case EOpLessThan:
  ------------------
  |  Branch (3415:9): [True: 0, False: 0]
  ------------------
 3416|      0|        case EOpGreaterThan:
  ------------------
  |  Branch (3416:9): [True: 0, False: 0]
  ------------------
 3417|      0|        case EOpLessThanEqual:
  ------------------
  |  Branch (3417:9): [True: 0, False: 0]
  ------------------
 3418|      0|        case EOpGreaterThanEqual:
  ------------------
  |  Branch (3418:9): [True: 0, False: 0]
  ------------------
 3419|       |
 3420|      0|        case EOpRightShift:
  ------------------
  |  Branch (3420:9): [True: 0, False: 0]
  ------------------
 3421|      0|        case EOpLeftShift:
  ------------------
  |  Branch (3421:9): [True: 0, False: 0]
  ------------------
 3422|       |
 3423|      0|        case EOpMod:
  ------------------
  |  Branch (3423:9): [True: 0, False: 0]
  ------------------
 3424|       |
 3425|      0|        case EOpAnd:
  ------------------
  |  Branch (3425:9): [True: 0, False: 0]
  ------------------
 3426|      0|        case EOpInclusiveOr:
  ------------------
  |  Branch (3426:9): [True: 0, False: 0]
  ------------------
 3427|      0|        case EOpExclusiveOr:
  ------------------
  |  Branch (3427:9): [True: 0, False: 0]
  ------------------
 3428|       |
 3429|      0|        case EOpAdd:
  ------------------
  |  Branch (3429:9): [True: 0, False: 0]
  ------------------
 3430|      0|        case EOpSub:
  ------------------
  |  Branch (3430:9): [True: 0, False: 0]
  ------------------
 3431|      0|        case EOpDiv:
  ------------------
  |  Branch (3431:9): [True: 0, False: 0]
  ------------------
 3432|      0|        case EOpMul:
  ------------------
  |  Branch (3432:9): [True: 0, False: 0]
  ------------------
 3433|      0|            if (left->getBasicType() == EbtBool)
  ------------------
  |  Branch (3433:17): [True: 0, False: 0]
  ------------------
 3434|      0|                left  = createConversion(EbtInt, left);
 3435|      0|            if (right->getBasicType() == EbtBool)
  ------------------
  |  Branch (3435:17): [True: 0, False: 0]
  ------------------
 3436|      0|                right = createConversion(EbtInt, right);
 3437|      0|            if (left == nullptr || right == nullptr)
  ------------------
  |  Branch (3437:17): [True: 0, False: 0]
  |  Branch (3437:36): [True: 0, False: 0]
  ------------------
 3438|      0|                return false;
 3439|      0|            node.setLeft(left);
 3440|      0|            node.setRight(right);
 3441|       |
 3442|       |            // Update the original base assumption on result type..
 3443|      0|            node.setType(left->getType());
 3444|      0|            node.getWritableType().getQualifier().clear();
 3445|       |
 3446|      0|            break;
 3447|       |
 3448|      0|        default:
  ------------------
  |  Branch (3448:9): [True: 0, False: 0]
  ------------------
 3449|      0|            break;
 3450|      0|        }
 3451|      0|    }
 3452|       |
 3453|   116k|    const bool hasCoopMat = left->getType().isCoopMat() || right->getType().isCoopMat();
  ------------------
  |  Branch (3453:29): [True: 0, False: 116k]
  |  Branch (3453:60): [True: 0, False: 116k]
  ------------------
 3454|   116k|    const bool hasLimitedFloatCoopMat =
 3455|   116k|        (left->getType().isCoopMat() &&
  ------------------
  |  Branch (3455:10): [True: 0, False: 116k]
  ------------------
 3456|      0|         (left->getType().containsBFloat16() || left->getType().contains8BitFloat())) ||
  ------------------
  |  Branch (3456:11): [True: 0, False: 0]
  |  Branch (3456:49): [True: 0, False: 0]
  ------------------
 3457|   116k|        (right->getType().isCoopMat() &&
  ------------------
  |  Branch (3457:10): [True: 0, False: 116k]
  ------------------
 3458|      0|         (right->getType().containsBFloat16() || right->getType().contains8BitFloat()));
  ------------------
  |  Branch (3458:11): [True: 0, False: 0]
  |  Branch (3458:50): [True: 0, False: 0]
  ------------------
 3459|       |
 3460|   116k|    if (hasLimitedFloatCoopMat && op != EOpAssign)
  ------------------
  |  Branch (3460:9): [True: 0, False: 116k]
  |  Branch (3460:35): [True: 0, False: 0]
  ------------------
 3461|      0|        return false;
 3462|       |
 3463|       |    // Do general type checks against individual operands (comparing left and right is coming up, checking mixed shapes after that)
 3464|   116k|    switch (op) {
 3465|    301|    case EOpLessThan:
  ------------------
  |  Branch (3465:5): [True: 301, False: 116k]
  ------------------
 3466|  1.44k|    case EOpGreaterThan:
  ------------------
  |  Branch (3466:5): [True: 1.14k, False: 115k]
  ------------------
 3467|  1.60k|    case EOpLessThanEqual:
  ------------------
  |  Branch (3467:5): [True: 159, False: 116k]
  ------------------
 3468|  1.72k|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (3468:5): [True: 123, False: 116k]
  ------------------
 3469|       |        // Relational comparisons need numeric types and will promote to scalar Boolean.
 3470|  1.72k|        if (left->getBasicType() == EbtBool)
  ------------------
  |  Branch (3470:13): [True: 0, False: 1.72k]
  ------------------
 3471|      0|            return false;
 3472|       |
 3473|  1.72k|        node.setType(TType(EbtBool, EvqTemporary, left->getVectorSize()));
 3474|  1.72k|        break;
 3475|       |
 3476|  1.36k|    case EOpEqual:
  ------------------
  |  Branch (3476:5): [True: 1.36k, False: 115k]
  ------------------
 3477|  2.27k|    case EOpNotEqual:
  ------------------
  |  Branch (3477:5): [True: 903, False: 115k]
  ------------------
 3478|  2.27k|        if (getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (3478:13): [True: 0, False: 2.27k]
  ------------------
 3479|      0|            const int resultWidth = std::max(left->getVectorSize(), right->getVectorSize());
 3480|       |
 3481|       |            // In HLSL, == or != on vectors means component-wise comparison.
 3482|      0|            if (resultWidth > 1) {
  ------------------
  |  Branch (3482:17): [True: 0, False: 0]
  ------------------
 3483|      0|                op = (op == EOpEqual) ? EOpVectorEqual : EOpVectorNotEqual;
  ------------------
  |  Branch (3483:22): [True: 0, False: 0]
  ------------------
 3484|      0|                node.setOp(op);
 3485|      0|            }
 3486|       |
 3487|      0|            node.setType(TType(EbtBool, EvqTemporary, resultWidth));
 3488|  2.27k|        } else {
 3489|       |            // All the above comparisons result in a bool (but not the vector compares)
 3490|  2.27k|            node.setType(TType(EbtBool));
 3491|  2.27k|        }
 3492|  2.27k|        break;
 3493|       |
 3494|     82|    case EOpLogicalAnd:
  ------------------
  |  Branch (3494:5): [True: 82, False: 116k]
  ------------------
 3495|    113|    case EOpLogicalOr:
  ------------------
  |  Branch (3495:5): [True: 31, False: 116k]
  ------------------
 3496|    120|    case EOpLogicalXor:
  ------------------
  |  Branch (3496:5): [True: 7, False: 116k]
  ------------------
 3497|       |        // logical ops operate only on Booleans or vectors of Booleans.
 3498|    120|        if (left->getBasicType() != EbtBool || left->isMatrix())
  ------------------
  |  Branch (3498:13): [True: 2, False: 118]
  |  Branch (3498:48): [True: 0, False: 118]
  ------------------
 3499|      2|                return false;
 3500|       |
 3501|    118|        if (getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (3501:13): [True: 118, False: 0]
  ------------------
 3502|       |            // logical ops operate only on scalar Booleans and will promote to scalar Boolean.
 3503|    118|            if (left->isVector())
  ------------------
  |  Branch (3503:17): [True: 0, False: 118]
  ------------------
 3504|      0|                return false;
 3505|    118|        }
 3506|       |
 3507|    118|        node.setType(TType(EbtBool, EvqTemporary, left->getVectorSize()));
 3508|    118|        break;
 3509|       |
 3510|     83|    case EOpRightShift:
  ------------------
  |  Branch (3510:5): [True: 83, False: 116k]
  ------------------
 3511|    438|    case EOpLeftShift:
  ------------------
  |  Branch (3511:5): [True: 355, False: 116k]
  ------------------
 3512|    539|    case EOpRightShiftAssign:
  ------------------
  |  Branch (3512:5): [True: 101, False: 116k]
  ------------------
 3513|    640|    case EOpLeftShiftAssign:
  ------------------
  |  Branch (3513:5): [True: 101, False: 116k]
  ------------------
 3514|       |
 3515|  1.60k|    case EOpMod:
  ------------------
  |  Branch (3515:5): [True: 966, False: 115k]
  ------------------
 3516|  1.71k|    case EOpModAssign:
  ------------------
  |  Branch (3516:5): [True: 105, False: 116k]
  ------------------
 3517|       |
 3518|  1.91k|    case EOpAnd:
  ------------------
  |  Branch (3518:5): [True: 202, False: 116k]
  ------------------
 3519|  2.09k|    case EOpInclusiveOr:
  ------------------
  |  Branch (3519:5): [True: 179, False: 116k]
  ------------------
 3520|  2.21k|    case EOpExclusiveOr:
  ------------------
  |  Branch (3520:5): [True: 122, False: 116k]
  ------------------
 3521|  2.31k|    case EOpAndAssign:
  ------------------
  |  Branch (3521:5): [True: 102, False: 116k]
  ------------------
 3522|  2.46k|    case EOpInclusiveOrAssign:
  ------------------
  |  Branch (3522:5): [True: 152, False: 116k]
  ------------------
 3523|  2.56k|    case EOpExclusiveOrAssign:
  ------------------
  |  Branch (3523:5): [True: 96, False: 116k]
  ------------------
 3524|  2.56k|        if (getSource() == EShSourceHlsl)
  ------------------
  |  Branch (3524:13): [True: 0, False: 2.56k]
  ------------------
 3525|      0|            break;
 3526|       |
 3527|       |        // Check for integer-only operands.
 3528|  2.56k|        if (!isTypeInt(left->getBasicType()) && !isTypeInt(right->getBasicType()))
  ------------------
  |  Branch (3528:13): [True: 78, False: 2.48k]
  |  Branch (3528:49): [True: 78, False: 0]
  ------------------
 3529|     78|            return false;
 3530|  2.48k|        if (left->isMatrix() || right->isMatrix())
  ------------------
  |  Branch (3530:13): [True: 0, False: 2.48k]
  |  Branch (3530:33): [True: 0, False: 2.48k]
  ------------------
 3531|      0|            return false;
 3532|       |
 3533|  2.48k|        break;
 3534|       |
 3535|  3.32k|    case EOpAdd:
  ------------------
  |  Branch (3535:5): [True: 3.32k, False: 113k]
  ------------------
 3536|  5.81k|    case EOpSub:
  ------------------
  |  Branch (3536:5): [True: 2.49k, False: 114k]
  ------------------
 3537|  6.26k|    case EOpDiv:
  ------------------
  |  Branch (3537:5): [True: 450, False: 116k]
  ------------------
 3538|  8.68k|    case EOpMul:
  ------------------
  |  Branch (3538:5): [True: 2.42k, False: 114k]
  ------------------
 3539|  13.7k|    case EOpAddAssign:
  ------------------
  |  Branch (3539:5): [True: 5.01k, False: 111k]
  ------------------
 3540|  13.8k|    case EOpSubAssign:
  ------------------
  |  Branch (3540:5): [True: 161, False: 116k]
  ------------------
 3541|  14.1k|    case EOpMulAssign:
  ------------------
  |  Branch (3541:5): [True: 305, False: 116k]
  ------------------
 3542|  14.3k|    case EOpDivAssign:
  ------------------
  |  Branch (3542:5): [True: 147, False: 116k]
  ------------------
 3543|       |        // check for non-Boolean operands
 3544|  14.3k|        if (left->getBasicType() == EbtBool || right->getBasicType() == EbtBool)
  ------------------
  |  Branch (3544:13): [True: 0, False: 14.3k]
  |  Branch (3544:48): [True: 0, False: 14.3k]
  ------------------
 3545|      0|            return false;
 3546|  14.3k|        break;
 3547|       |
 3548|  95.7k|    default:
  ------------------
  |  Branch (3548:5): [True: 95.7k, False: 21.0k]
  ------------------
 3549|  95.7k|        break;
 3550|   116k|    }
 3551|       |
 3552|       |    // Compare left and right, and finish with the cases where the operand types must match
 3553|   116k|    switch (op) {
 3554|    301|    case EOpLessThan:
  ------------------
  |  Branch (3554:5): [True: 301, False: 116k]
  ------------------
 3555|  1.44k|    case EOpGreaterThan:
  ------------------
  |  Branch (3555:5): [True: 1.14k, False: 115k]
  ------------------
 3556|  1.60k|    case EOpLessThanEqual:
  ------------------
  |  Branch (3556:5): [True: 159, False: 116k]
  ------------------
 3557|  1.72k|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (3557:5): [True: 123, False: 116k]
  ------------------
 3558|       |
 3559|  3.09k|    case EOpEqual:
  ------------------
  |  Branch (3559:5): [True: 1.36k, False: 115k]
  ------------------
 3560|  3.99k|    case EOpNotEqual:
  ------------------
  |  Branch (3560:5): [True: 903, False: 115k]
  ------------------
 3561|  3.99k|    case EOpVectorEqual:
  ------------------
  |  Branch (3561:5): [True: 0, False: 116k]
  ------------------
 3562|  3.99k|    case EOpVectorNotEqual:
  ------------------
  |  Branch (3562:5): [True: 0, False: 116k]
  ------------------
 3563|       |
 3564|  4.07k|    case EOpLogicalAnd:
  ------------------
  |  Branch (3564:5): [True: 82, False: 116k]
  ------------------
 3565|  4.10k|    case EOpLogicalOr:
  ------------------
  |  Branch (3565:5): [True: 29, False: 116k]
  ------------------
 3566|  4.11k|    case EOpLogicalXor:
  ------------------
  |  Branch (3566:5): [True: 7, False: 116k]
  ------------------
 3567|  4.11k|        return left->getType() == right->getType();
 3568|       |
 3569|    955|    case EOpMod:
  ------------------
  |  Branch (3569:5): [True: 955, False: 115k]
  ------------------
 3570|  1.05k|    case EOpModAssign:
  ------------------
  |  Branch (3570:5): [True: 103, False: 116k]
  ------------------
 3571|       |
 3572|  1.25k|    case EOpAnd:
  ------------------
  |  Branch (3572:5): [True: 196, False: 116k]
  ------------------
 3573|  1.41k|    case EOpInclusiveOr:
  ------------------
  |  Branch (3573:5): [True: 161, False: 116k]
  ------------------
 3574|  1.51k|    case EOpExclusiveOr:
  ------------------
  |  Branch (3574:5): [True: 99, False: 116k]
  ------------------
 3575|  1.61k|    case EOpAndAssign:
  ------------------
  |  Branch (3575:5): [True: 96, False: 116k]
  ------------------
 3576|  1.75k|    case EOpInclusiveOrAssign:
  ------------------
  |  Branch (3576:5): [True: 145, False: 116k]
  ------------------
 3577|  1.84k|    case EOpExclusiveOrAssign:
  ------------------
  |  Branch (3577:5): [True: 91, False: 116k]
  ------------------
 3578|       |
 3579|  5.16k|    case EOpAdd:
  ------------------
  |  Branch (3579:5): [True: 3.32k, False: 113k]
  ------------------
 3580|  7.65k|    case EOpSub:
  ------------------
  |  Branch (3580:5): [True: 2.49k, False: 114k]
  ------------------
 3581|  8.10k|    case EOpDiv:
  ------------------
  |  Branch (3581:5): [True: 450, False: 116k]
  ------------------
 3582|       |
 3583|  13.1k|    case EOpAddAssign:
  ------------------
  |  Branch (3583:5): [True: 5.01k, False: 111k]
  ------------------
 3584|  13.2k|    case EOpSubAssign:
  ------------------
  |  Branch (3584:5): [True: 161, False: 116k]
  ------------------
 3585|  13.4k|    case EOpDivAssign:
  ------------------
  |  Branch (3585:5): [True: 147, False: 116k]
  ------------------
 3586|       |        // Quick out in case the types do match
 3587|  13.4k|        if (left->getType() == right->getType())
  ------------------
  |  Branch (3587:13): [True: 11.4k, False: 1.96k]
  ------------------
 3588|  11.4k|            return true;
 3589|       |
 3590|  1.96k|        [[fallthrough]];
 3591|       |
 3592|  4.38k|    case EOpMul:
  ------------------
  |  Branch (3592:5): [True: 2.42k, False: 114k]
  ------------------
 3593|  4.69k|    case EOpMulAssign:
  ------------------
  |  Branch (3593:5): [True: 305, False: 116k]
  ------------------
 3594|       |        // At least the basic type has to match
 3595|  4.69k|        if (left->getBasicType() != right->getBasicType())
  ------------------
  |  Branch (3595:13): [True: 0, False: 4.69k]
  ------------------
 3596|      0|            return false;
 3597|  4.69k|        break;
 3598|       |
 3599|  96.3k|    default:
  ------------------
  |  Branch (3599:5): [True: 96.3k, False: 20.2k]
  ------------------
 3600|  96.3k|        break;
 3601|   116k|    }
 3602|       |
 3603|   101k|    if (hasCoopMat) {
  ------------------
  |  Branch (3603:9): [True: 0, False: 101k]
  ------------------
 3604|       |        // Operations on two cooperative matrices must have identical types
 3605|      0|        if (left->getType().isCoopMat() && right->getType().isCoopMat() &&
  ------------------
  |  Branch (3605:13): [True: 0, False: 0]
  |  Branch (3605:44): [True: 0, False: 0]
  ------------------
 3606|      0|            left->getType() != right->getType()) {
  ------------------
  |  Branch (3606:13): [True: 0, False: 0]
  ------------------
 3607|      0|            return false;
 3608|      0|        }
 3609|      0|        switch (op) {
 3610|      0|        case EOpMul:
  ------------------
  |  Branch (3610:9): [True: 0, False: 0]
  ------------------
 3611|      0|        case EOpMulAssign:
  ------------------
  |  Branch (3611:9): [True: 0, False: 0]
  ------------------
 3612|       |            // Mul not supported in NV_cooperative_matrix
 3613|      0|            if (left->getType().isCoopMatNV() && right->getType().isCoopMatNV()) {
  ------------------
  |  Branch (3613:17): [True: 0, False: 0]
  |  Branch (3613:50): [True: 0, False: 0]
  ------------------
 3614|      0|                return false;
 3615|      0|            }
 3616|       |            // NV_cooperative_matrix supports MulAssign is for mat*=scalar only.
 3617|       |            // KHR_cooperative_matrix supports it for mat*=mat as well.
 3618|      0|            if (op == EOpMulAssign && right->getType().isCoopMatNV()) {
  ------------------
  |  Branch (3618:17): [True: 0, False: 0]
  |  Branch (3618:39): [True: 0, False: 0]
  ------------------
 3619|      0|                return false;
 3620|      0|            }
 3621|       |            // Use MatrixTimesScalar if either operand is not a matrix. Otherwise use Mul.
 3622|      0|            if (!left->getType().isCoopMat() || !right->getType().isCoopMat()) {
  ------------------
  |  Branch (3622:17): [True: 0, False: 0]
  |  Branch (3622:49): [True: 0, False: 0]
  ------------------
 3623|      0|                node.setOp(op == EOpMulAssign ? EOpMatrixTimesScalarAssign : EOpMatrixTimesScalar);
  ------------------
  |  Branch (3623:28): [True: 0, False: 0]
  ------------------
 3624|      0|            }
 3625|       |            // In case of scalar*matrix, take the result type from the matrix.
 3626|      0|            if (right->getType().isCoopMat()) {
  ------------------
  |  Branch (3626:17): [True: 0, False: 0]
  ------------------
 3627|      0|                node.setType(right->getType());
 3628|      0|            }
 3629|      0|            return true;
 3630|      0|        case EOpAdd:
  ------------------
  |  Branch (3630:9): [True: 0, False: 0]
  ------------------
 3631|      0|        case EOpSub:
  ------------------
  |  Branch (3631:9): [True: 0, False: 0]
  ------------------
 3632|      0|        case EOpDiv:
  ------------------
  |  Branch (3632:9): [True: 0, False: 0]
  ------------------
 3633|      0|        case EOpAssign:
  ------------------
  |  Branch (3633:9): [True: 0, False: 0]
  ------------------
 3634|       |            // These require both to be cooperative matrices
 3635|      0|            if (!left->getType().isCoopMat() || !right->getType().isCoopMat()) {
  ------------------
  |  Branch (3635:17): [True: 0, False: 0]
  |  Branch (3635:49): [True: 0, False: 0]
  ------------------
 3636|      0|                return false;
 3637|      0|            }
 3638|      0|            return true;
 3639|      0|        default:
  ------------------
  |  Branch (3639:9): [True: 0, False: 0]
  ------------------
 3640|      0|            break;
 3641|      0|        }
 3642|      0|        return false;
 3643|      0|    }
 3644|       |
 3645|   101k|    if (left->getType().isCoopVecNV() || right->getType().isCoopVecNV()) {
  ------------------
  |  Branch (3645:9): [True: 0, False: 101k]
  |  Branch (3645:42): [True: 0, False: 101k]
  ------------------
 3646|       |        // Operations on two cooperative vectors must have identical types
 3647|      0|        if (left->getType().isCoopVecNV() && right->getType().isCoopVecNV() &&
  ------------------
  |  Branch (3647:13): [True: 0, False: 0]
  |  Branch (3647:46): [True: 0, False: 0]
  ------------------
 3648|      0|            left->getType() != right->getType()) {
  ------------------
  |  Branch (3648:13): [True: 0, False: 0]
  ------------------
 3649|      0|            return false;
 3650|      0|        }
 3651|      0|        switch (op) {
 3652|      0|        case EOpMul:
  ------------------
  |  Branch (3652:9): [True: 0, False: 0]
  ------------------
 3653|      0|        case EOpMulAssign:
  ------------------
  |  Branch (3653:9): [True: 0, False: 0]
  ------------------
 3654|       |            // Use VectorTimesScalar if either operand is not a vector. Otherwise use Mul.
 3655|      0|            if (!left->getType().isCoopVecNV() || !right->getType().isCoopVecNV()) {
  ------------------
  |  Branch (3655:17): [True: 0, False: 0]
  |  Branch (3655:51): [True: 0, False: 0]
  ------------------
 3656|      0|                node.setOp(op == EOpMulAssign ? EOpVectorTimesScalarAssign : EOpVectorTimesScalar);
  ------------------
  |  Branch (3656:28): [True: 0, False: 0]
  ------------------
 3657|      0|            }
 3658|       |            // In case of scalar*vector, take the result type from the vector.
 3659|      0|            if (right->getType().isCoopVecNV()) {
  ------------------
  |  Branch (3659:17): [True: 0, False: 0]
  ------------------
 3660|      0|                node.setType(right->getType());
 3661|      0|            }
 3662|      0|            return true;
 3663|      0|        case EOpLeftShift:
  ------------------
  |  Branch (3663:9): [True: 0, False: 0]
  ------------------
 3664|      0|        case EOpLeftShiftAssign:
  ------------------
  |  Branch (3664:9): [True: 0, False: 0]
  ------------------
 3665|      0|        case EOpRightShift:
  ------------------
  |  Branch (3665:9): [True: 0, False: 0]
  ------------------
 3666|      0|        case EOpRightShiftAssign:
  ------------------
  |  Branch (3666:9): [True: 0, False: 0]
  ------------------
 3667|      0|        case EOpAdd:
  ------------------
  |  Branch (3667:9): [True: 0, False: 0]
  ------------------
 3668|      0|        case EOpSub:
  ------------------
  |  Branch (3668:9): [True: 0, False: 0]
  ------------------
 3669|      0|        case EOpDiv:
  ------------------
  |  Branch (3669:9): [True: 0, False: 0]
  ------------------
 3670|      0|        case EOpAssign:
  ------------------
  |  Branch (3670:9): [True: 0, False: 0]
  ------------------
 3671|       |            // These require both to be cooperative vectors
 3672|      0|            if (!left->getType().isCoopVecNV() || !right->getType().isCoopVecNV()) {
  ------------------
  |  Branch (3672:17): [True: 0, False: 0]
  |  Branch (3672:51): [True: 0, False: 0]
  ------------------
 3673|      0|                return false;
 3674|      0|            }
 3675|      0|            return true;
 3676|      0|        default:
  ------------------
  |  Branch (3676:9): [True: 0, False: 0]
  ------------------
 3677|      0|            break;
 3678|      0|        }
 3679|      0|        return false;
 3680|      0|    }
 3681|       |
 3682|   101k|    bool vectorAndLongVectorMatch = TType::vectorAndLongVectorMatch(left->getType(), right->getType());
 3683|       |
 3684|       |    // Finish handling the case, for all ops, where both operands are scalars.
 3685|   101k|    if (left->isScalar() && right->isScalar())
  ------------------
  |  Branch (3685:9): [True: 28.3k, False: 72.6k]
  |  Branch (3685:29): [True: 23.9k, False: 4.47k]
  ------------------
 3686|  23.9k|        return true;
 3687|       |
 3688|       |    // Finish handling the case, for all ops, where there are two vectors of different sizes
 3689|  77.1k|    if (left->isVector() && right->isVector() && left->getVectorSize() != right->getVectorSize() && right->getVectorSize() > 1)
  ------------------
  |  Branch (3689:9): [True: 72.3k, False: 4.84k]
  |  Branch (3689:29): [True: 60.6k, False: 11.7k]
  |  Branch (3689:50): [True: 12.4k, False: 48.1k]
  |  Branch (3689:101): [True: 12.4k, False: 0]
  ------------------
 3690|  12.4k|        return false;
 3691|       |
 3692|       |    // Finish handling the case, for all ops, where there are two vectors of different sizes
 3693|  64.7k|    if (left->getType().isLongVector() && right->getType().isLongVector() && !left->getType().sameLongVectorShape(right->getType()))
  ------------------
  |  Branch (3693:9): [True: 0, False: 64.7k]
  |  Branch (3693:43): [True: 0, False: 0]
  |  Branch (3693:78): [True: 0, False: 0]
  ------------------
 3694|      0|        return false;
 3695|       |
 3696|       |    // Finish handling the case, for all ops, where a long vector is mixed with a vector or matrix of a
 3697|       |    // different shape. A long vector is not isVector(), so it would otherwise be treated as a scalar below.
 3698|  64.7k|    if (((left->getType().isLongVector() && (right->isVector() || right->isMatrix())) ||
  ------------------
  |  Branch (3698:11): [True: 0, False: 64.7k]
  |  Branch (3698:46): [True: 0, False: 0]
  |  Branch (3698:67): [True: 0, False: 0]
  ------------------
 3699|  64.7k|         (right->getType().isLongVector() && (left->isVector() || left->isMatrix()))) &&
  ------------------
  |  Branch (3699:11): [True: 0, False: 64.7k]
  |  Branch (3699:47): [True: 0, False: 0]
  |  Branch (3699:67): [True: 0, False: 0]
  ------------------
 3700|      0|        !vectorAndLongVectorMatch)
  ------------------
  |  Branch (3700:9): [True: 0, False: 0]
  ------------------
 3701|      0|        return false;
 3702|       |
 3703|       |    //
 3704|       |    // We now have a mix of scalars, vectors, or matrices, for non-relational operations.
 3705|       |    //
 3706|       |
 3707|       |    // Can these two operands be combined, what is the resulting type?
 3708|  64.7k|    TBasicType basicType = left->getBasicType();
 3709|  64.7k|    switch (op) {
 3710|  1.34k|    case EOpMul:
  ------------------
  |  Branch (3710:5): [True: 1.34k, False: 63.3k]
  ------------------
 3711|  1.34k|        if (!left->isMatrix() && right->isMatrix()) {
  ------------------
  |  Branch (3711:13): [True: 1.26k, False: 79]
  |  Branch (3711:34): [True: 18, False: 1.24k]
  ------------------
 3712|     18|            if (left->isVector()) {
  ------------------
  |  Branch (3712:17): [True: 18, False: 0]
  ------------------
 3713|     18|                if (left->getVectorSize() != right->getMatrixRows())
  ------------------
  |  Branch (3713:21): [True: 0, False: 18]
  ------------------
 3714|      0|                    return false;
 3715|     18|                node.setOp(op = EOpVectorTimesMatrix);
 3716|     18|                node.setType(TType(basicType, EvqTemporary, right->getMatrixCols()));
 3717|     18|            } else {
 3718|      0|                node.setOp(op = EOpMatrixTimesScalar);
 3719|      0|                node.setType(TType(basicType, EvqTemporary, 0, right->getMatrixCols(), right->getMatrixRows()));
 3720|      0|            }
 3721|  1.32k|        } else if (left->isMatrix() && !right->isMatrix()) {
  ------------------
  |  Branch (3721:20): [True: 79, False: 1.24k]
  |  Branch (3721:40): [True: 40, False: 39]
  ------------------
 3722|     40|            if (right->isVector()) {
  ------------------
  |  Branch (3722:17): [True: 22, False: 18]
  ------------------
 3723|     22|                if (left->getMatrixCols() != right->getVectorSize())
  ------------------
  |  Branch (3723:21): [True: 0, False: 22]
  ------------------
 3724|      0|                    return false;
 3725|     22|                node.setOp(op = EOpMatrixTimesVector);
 3726|     22|                node.setType(TType(basicType, EvqTemporary, left->getMatrixRows()));
 3727|     22|            } else {
 3728|     18|                node.setOp(op = EOpMatrixTimesScalar);
 3729|     18|            }
 3730|  1.28k|        } else if (left->isMatrix() && right->isMatrix()) {
  ------------------
  |  Branch (3730:20): [True: 39, False: 1.24k]
  |  Branch (3730:40): [True: 39, False: 0]
  ------------------
 3731|     39|            if (left->getMatrixCols() != right->getMatrixRows())
  ------------------
  |  Branch (3731:17): [True: 0, False: 39]
  ------------------
 3732|      0|                return false;
 3733|     39|            node.setOp(op = EOpMatrixTimesMatrix);
 3734|     39|            node.setType(TType(basicType, EvqTemporary, 0, right->getMatrixCols(), left->getMatrixRows()));
 3735|  1.24k|        } else if (! left->isMatrix() && ! right->isMatrix()) {
  ------------------
  |  Branch (3735:20): [True: 1.24k, False: 0]
  |  Branch (3735:42): [True: 1.24k, False: 0]
  ------------------
 3736|  1.24k|            if ((left->isVector() && right->isVector()) || vectorAndLongVectorMatch) {
  ------------------
  |  Branch (3736:18): [True: 1.14k, False: 105]
  |  Branch (3736:38): [True: 745, False: 395]
  |  Branch (3736:60): [True: 0, False: 500]
  ------------------
 3737|    745|                ; // leave as component product
 3738|    745|            } else if (left->isVector() || right->isVector()) {
  ------------------
  |  Branch (3738:24): [True: 395, False: 105]
  |  Branch (3738:44): [True: 105, False: 0]
  ------------------
 3739|    500|                node.setOp(op = EOpVectorTimesScalar);
 3740|    500|                if (right->isVector())
  ------------------
  |  Branch (3740:21): [True: 105, False: 395]
  ------------------
 3741|    105|                    node.setType(TType(basicType, EvqTemporary, right->getVectorSize()));
 3742|    500|            }
 3743|  1.24k|        } else {
 3744|      0|            return false;
 3745|      0|        }
 3746|  1.34k|        break;
 3747|  1.34k|    case EOpMulAssign:
  ------------------
  |  Branch (3747:5): [True: 196, False: 64.5k]
  ------------------
 3748|    196|        if (! left->isMatrix() && right->isMatrix()) {
  ------------------
  |  Branch (3748:13): [True: 187, False: 9]
  |  Branch (3748:35): [True: 0, False: 187]
  ------------------
 3749|      0|            if (left->isVector()) {
  ------------------
  |  Branch (3749:17): [True: 0, False: 0]
  ------------------
 3750|      0|                if (left->getVectorSize() != right->getMatrixRows() || left->getVectorSize() != right->getMatrixCols())
  ------------------
  |  Branch (3750:21): [True: 0, False: 0]
  |  Branch (3750:72): [True: 0, False: 0]
  ------------------
 3751|      0|                    return false;
 3752|      0|                node.setOp(op = EOpVectorTimesMatrixAssign);
 3753|      0|            } else {
 3754|      0|                return false;
 3755|      0|            }
 3756|    196|        } else if (left->isMatrix() && !right->isMatrix()) {
  ------------------
  |  Branch (3756:20): [True: 9, False: 187]
  |  Branch (3756:40): [True: 0, False: 9]
  ------------------
 3757|      0|            if (right->isVector()) {
  ------------------
  |  Branch (3757:17): [True: 0, False: 0]
  ------------------
 3758|      0|                return false;
 3759|      0|            } else {
 3760|      0|                node.setOp(op = EOpMatrixTimesScalarAssign);
 3761|      0|            }
 3762|    196|        } else if (left->isMatrix() && right->isMatrix()) {
  ------------------
  |  Branch (3762:20): [True: 9, False: 187]
  |  Branch (3762:40): [True: 9, False: 0]
  ------------------
 3763|      9|            if (left->getMatrixCols() != right->getMatrixCols() || left->getMatrixCols() != right->getMatrixRows())
  ------------------
  |  Branch (3763:17): [True: 0, False: 9]
  |  Branch (3763:68): [True: 0, False: 9]
  ------------------
 3764|      0|                return false;
 3765|      9|            node.setOp(op = EOpMatrixTimesMatrixAssign);
 3766|    187|        } else if (!left->isMatrix() && !right->isMatrix()) {
  ------------------
  |  Branch (3766:20): [True: 187, False: 0]
  |  Branch (3766:41): [True: 187, False: 0]
  ------------------
 3767|    187|            if ((left->isVector() && right->isVector()) || vectorAndLongVectorMatch) {
  ------------------
  |  Branch (3767:18): [True: 187, False: 0]
  |  Branch (3767:38): [True: 21, False: 166]
  |  Branch (3767:60): [True: 0, False: 166]
  ------------------
 3768|       |                // leave as component product
 3769|    166|            } else if (left->isVector() || right->isVector()) {
  ------------------
  |  Branch (3769:24): [True: 166, False: 0]
  |  Branch (3769:44): [True: 0, False: 0]
  ------------------
 3770|    166|                if (! left->isVector())
  ------------------
  |  Branch (3770:21): [True: 0, False: 166]
  ------------------
 3771|      0|                    return false;
 3772|    166|                node.setOp(op = EOpVectorTimesScalarAssign);
 3773|    166|            }
 3774|    187|        } else {
 3775|      0|            return false;
 3776|      0|        }
 3777|    196|        break;
 3778|       |
 3779|    196|    case EOpRightShift:
  ------------------
  |  Branch (3779:5): [True: 13, False: 64.7k]
  ------------------
 3780|    120|    case EOpLeftShift:
  ------------------
  |  Branch (3780:5): [True: 107, False: 64.6k]
  ------------------
 3781|    120|    case EOpRightShiftAssign:
  ------------------
  |  Branch (3781:5): [True: 0, False: 64.7k]
  ------------------
 3782|    219|    case EOpLeftShiftAssign:
  ------------------
  |  Branch (3782:5): [True: 99, False: 64.6k]
  ------------------
 3783|    219|        if (right->isVector() && (! left->isVector() || right->getVectorSize() != left->getVectorSize()))
  ------------------
  |  Branch (3783:13): [True: 13, False: 206]
  |  Branch (3783:35): [True: 0, False: 13]
  |  Branch (3783:57): [True: 0, False: 13]
  ------------------
 3784|      0|            return false;
 3785|    219|        break;
 3786|       |
 3787|  61.2k|    case EOpAssign:
  ------------------
  |  Branch (3787:5): [True: 61.2k, False: 3.48k]
  ------------------
 3788|  61.2k|        if ((left->getVectorSize() != right->getVectorSize() || left->getMatrixCols() != right->getMatrixCols() || left->getMatrixRows() != right->getMatrixRows()) &&
  ------------------
  |  Branch (3788:14): [True: 13.5k, False: 47.6k]
  |  Branch (3788:65): [True: 9, False: 47.6k]
  |  Branch (3788:116): [True: 8, False: 47.6k]
  ------------------
 3789|  13.5k|            !vectorAndLongVectorMatch)
  ------------------
  |  Branch (3789:13): [True: 13.5k, False: 0]
  ------------------
 3790|  13.5k|            return false;
 3791|  47.6k|        [[fallthrough]];
 3792|       |
 3793|  47.9k|    case EOpAdd:
  ------------------
  |  Branch (3793:5): [True: 308, False: 64.4k]
  ------------------
 3794|  48.4k|    case EOpSub:
  ------------------
  |  Branch (3794:5): [True: 452, False: 64.2k]
  ------------------
 3795|  48.4k|    case EOpDiv:
  ------------------
  |  Branch (3795:5): [True: 18, False: 64.7k]
  ------------------
 3796|  48.4k|    case EOpMod:
  ------------------
  |  Branch (3796:5): [True: 64, False: 64.6k]
  ------------------
 3797|  48.4k|    case EOpAnd:
  ------------------
  |  Branch (3797:5): [True: 0, False: 64.7k]
  ------------------
 3798|  48.4k|    case EOpInclusiveOr:
  ------------------
  |  Branch (3798:5): [True: 1, False: 64.7k]
  ------------------
 3799|  48.5k|    case EOpExclusiveOr:
  ------------------
  |  Branch (3799:5): [True: 98, False: 64.6k]
  ------------------
 3800|  49.0k|    case EOpAddAssign:
  ------------------
  |  Branch (3800:5): [True: 504, False: 64.2k]
  ------------------
 3801|  49.0k|    case EOpSubAssign:
  ------------------
  |  Branch (3801:5): [True: 2, False: 64.7k]
  ------------------
 3802|  49.0k|    case EOpDivAssign:
  ------------------
  |  Branch (3802:5): [True: 0, False: 64.7k]
  ------------------
 3803|  49.1k|    case EOpModAssign:
  ------------------
  |  Branch (3803:5): [True: 100, False: 64.6k]
  ------------------
 3804|  49.1k|    case EOpAndAssign:
  ------------------
  |  Branch (3804:5): [True: 0, False: 64.7k]
  ------------------
 3805|  49.2k|    case EOpInclusiveOrAssign:
  ------------------
  |  Branch (3805:5): [True: 93, False: 64.6k]
  ------------------
 3806|  49.3k|    case EOpExclusiveOrAssign:
  ------------------
  |  Branch (3806:5): [True: 91, False: 64.6k]
  ------------------
 3807|       |
 3808|  49.3k|        if ((left->isMatrix() && right->isVector()) ||
  ------------------
  |  Branch (3808:14): [True: 251, False: 49.1k]
  |  Branch (3808:34): [True: 0, False: 251]
  ------------------
 3809|  49.3k|            (left->isVector() && right->isMatrix()) ||
  ------------------
  |  Branch (3809:14): [True: 48.8k, False: 570]
  |  Branch (3809:34): [True: 0, False: 48.8k]
  ------------------
 3810|  49.3k|            left->getBasicType() != right->getBasicType())
  ------------------
  |  Branch (3810:13): [True: 0, False: 49.3k]
  ------------------
 3811|      0|            return false;
 3812|  49.3k|        if (left->isMatrix() && right->isMatrix() && (left->getMatrixCols() != right->getMatrixCols() || left->getMatrixRows() != right->getMatrixRows()))
  ------------------
  |  Branch (3812:13): [True: 251, False: 49.1k]
  |  Branch (3812:33): [True: 251, False: 0]
  |  Branch (3812:55): [True: 0, False: 251]
  |  Branch (3812:106): [True: 0, False: 251]
  ------------------
 3813|      0|            return false;
 3814|  49.3k|        if (left->isVector() && right->isVector() && left->getVectorSize() != right->getVectorSize())
  ------------------
  |  Branch (3814:13): [True: 48.8k, False: 570]
  |  Branch (3814:33): [True: 47.3k, False: 1.41k]
  |  Branch (3814:54): [True: 0, False: 47.3k]
  ------------------
 3815|      0|            return false;
 3816|  49.3k|        if ((right->isVector() || right->isMatrix()) && !vectorAndLongVectorMatch) {
  ------------------
  |  Branch (3816:14): [True: 47.7k, False: 1.66k]
  |  Branch (3816:35): [True: 251, False: 1.41k]
  |  Branch (3816:57): [True: 47.9k, False: 0]
  ------------------
 3817|  47.9k|            node.getWritableType().shallowCopy(right->getType());
 3818|  47.9k|            node.getWritableType().getQualifier().makeTemporary();
 3819|  47.9k|        }
 3820|  49.3k|        break;
 3821|       |
 3822|      0|    default:
  ------------------
  |  Branch (3822:5): [True: 0, False: 64.7k]
  ------------------
 3823|      0|        return false;
 3824|  64.7k|    }
 3825|       |
 3826|       |    //
 3827|       |    // One more check for assignment.
 3828|       |    //
 3829|  51.1k|    switch (op) {
 3830|       |    // The resulting type has to match the left operand.
 3831|  47.6k|    case EOpAssign:
  ------------------
  |  Branch (3831:5): [True: 47.6k, False: 3.48k]
  ------------------
 3832|  48.1k|    case EOpAddAssign:
  ------------------
  |  Branch (3832:5): [True: 504, False: 50.6k]
  ------------------
 3833|  48.1k|    case EOpSubAssign:
  ------------------
  |  Branch (3833:5): [True: 2, False: 51.1k]
  ------------------
 3834|  48.1k|    case EOpMulAssign:
  ------------------
  |  Branch (3834:5): [True: 21, False: 51.1k]
  ------------------
 3835|  48.1k|    case EOpDivAssign:
  ------------------
  |  Branch (3835:5): [True: 0, False: 51.1k]
  ------------------
 3836|  48.2k|    case EOpModAssign:
  ------------------
  |  Branch (3836:5): [True: 100, False: 51.0k]
  ------------------
 3837|  48.2k|    case EOpAndAssign:
  ------------------
  |  Branch (3837:5): [True: 0, False: 51.1k]
  ------------------
 3838|  48.3k|    case EOpInclusiveOrAssign:
  ------------------
  |  Branch (3838:5): [True: 93, False: 51.0k]
  ------------------
 3839|  48.4k|    case EOpExclusiveOrAssign:
  ------------------
  |  Branch (3839:5): [True: 91, False: 51.0k]
  ------------------
 3840|  48.5k|    case EOpLeftShiftAssign:
  ------------------
  |  Branch (3840:5): [True: 99, False: 51.0k]
  ------------------
 3841|  48.5k|    case EOpRightShiftAssign:
  ------------------
  |  Branch (3841:5): [True: 0, False: 51.1k]
  ------------------
 3842|  48.5k|        if (node.getType() != left->getType())
  ------------------
  |  Branch (3842:13): [True: 70, False: 48.4k]
  ------------------
 3843|     70|            return false;
 3844|  48.4k|        break;
 3845|  48.4k|    default:
  ------------------
  |  Branch (3845:5): [True: 2.57k, False: 48.5k]
  ------------------
 3846|  2.57k|        break;
 3847|  51.1k|    }
 3848|       |
 3849|  51.0k|    return true;
 3850|  51.1k|}
_ZN7glslang16TIntermAggregate15updatePrecisionEv:
 3925|    231|{
 3926|    231|    if (getBasicType() == EbtInt || getBasicType() == EbtUint ||
  ------------------
  |  Branch (3926:9): [True: 9, False: 222]
  |  Branch (3926:37): [True: 56, False: 166]
  ------------------
 3927|    228|        getBasicType() == EbtFloat) {
  ------------------
  |  Branch (3927:9): [True: 163, False: 3]
  ------------------
 3928|    228|        TPrecisionQualifier maxPrecision = EpqNone;
 3929|    228|        TIntermSequence operands = getSequence();
 3930|  1.01k|        for (unsigned int i = 0; i < operands.size(); ++i) {
  ------------------
  |  Branch (3930:34): [True: 790, False: 228]
  ------------------
 3931|    790|            TIntermTyped* typedNode = operands[i]->getAsTyped();
 3932|    790|            assert(typedNode);
 3933|    790|            maxPrecision = std::max(maxPrecision, typedNode->getQualifier().precision);
 3934|    790|        }
 3935|    228|        getQualifier().precision = maxPrecision;
 3936|  1.01k|        for (unsigned int i = 0; i < operands.size(); ++i) {
  ------------------
  |  Branch (3936:34): [True: 790, False: 228]
  ------------------
 3937|    790|          TIntermTyped* typedNode = operands[i]->getAsTyped();
 3938|       |          assert(typedNode);
 3939|    790|          typedNode->propagatePrecision(maxPrecision);
 3940|    790|        }
 3941|    228|    }
 3942|    231|}
_ZN7glslang13TIntermBinary15updatePrecisionEv:
 3947|  90.9k|{
 3948|  90.9k|     if (getBasicType() == EbtInt || getBasicType() == EbtUint ||
  ------------------
  |  Branch (3948:10): [True: 9.10k, False: 81.8k]
  |  Branch (3948:38): [True: 10.2k, False: 71.6k]
  ------------------
 3949|  71.6k|         getBasicType() == EbtFloat) {
  ------------------
  |  Branch (3949:10): [True: 19.5k, False: 52.1k]
  ------------------
 3950|  38.8k|       if (op == EOpRightShift || op == EOpLeftShift) {
  ------------------
  |  Branch (3950:12): [True: 75, False: 38.7k]
  |  Branch (3950:35): [True: 152, False: 38.5k]
  ------------------
 3951|       |         // For shifts get precision from left side only and thus no need to propagate
 3952|    227|         getQualifier().precision = left->getQualifier().precision;
 3953|  38.5k|       } else {
 3954|  38.5k|         getQualifier().precision = std::max(right->getQualifier().precision, left->getQualifier().precision);
 3955|  38.5k|         if (getQualifier().precision != EpqNone) {
  ------------------
  |  Branch (3955:14): [True: 36.6k, False: 1.89k]
  ------------------
 3956|  36.6k|           left->propagatePrecision(getQualifier().precision);
 3957|  36.6k|           right->propagatePrecision(getQualifier().precision);
 3958|  36.6k|         }
 3959|  38.5k|       }
 3960|  38.8k|    }
 3961|  90.9k|}
_ZN7glslang12TIntermTyped18propagatePrecisionENS_19TPrecisionQualifierE:
 3967|   152k|{
 3968|   152k|    if (getQualifier().precision != EpqNone ||
  ------------------
  |  Branch (3968:9): [True: 96.2k, False: 56.1k]
  ------------------
 3969|  56.1k|        (getBasicType() != EbtInt && getBasicType() != EbtUint &&
  ------------------
  |  Branch (3969:10): [True: 43.6k, False: 12.4k]
  |  Branch (3969:38): [True: 31.1k, False: 12.4k]
  ------------------
 3970|  31.1k|         getBasicType() != EbtFloat && getBasicType() != EbtFloat16))
  ------------------
  |  Branch (3970:10): [True: 8.61k, False: 22.5k]
  |  Branch (3970:40): [True: 5.44k, False: 3.16k]
  ------------------
 3971|   101k|        return;
 3972|       |
 3973|  50.6k|    getQualifier().precision = newPrecision;
 3974|       |
 3975|  50.6k|    TIntermBinary* binaryNode = getAsBinaryNode();
 3976|  50.6k|    if (binaryNode) {
  ------------------
  |  Branch (3976:9): [True: 443, False: 50.2k]
  ------------------
 3977|    443|        binaryNode->getLeft()->propagatePrecision(newPrecision);
 3978|    443|        binaryNode->getRight()->propagatePrecision(newPrecision);
 3979|       |
 3980|    443|        return;
 3981|    443|    }
 3982|       |
 3983|  50.2k|    TIntermUnary* unaryNode = getAsUnaryNode();
 3984|  50.2k|    if (unaryNode) {
  ------------------
  |  Branch (3984:9): [True: 9.19k, False: 41.0k]
  ------------------
 3985|  9.19k|        unaryNode->getOperand()->propagatePrecision(newPrecision);
 3986|       |
 3987|  9.19k|        return;
 3988|  9.19k|    }
 3989|       |
 3990|  41.0k|    TIntermAggregate* aggregateNode = getAsAggregate();
 3991|  41.0k|    if (aggregateNode) {
  ------------------
  |  Branch (3991:9): [True: 15.4k, False: 25.5k]
  ------------------
 3992|  15.4k|        TIntermSequence operands = aggregateNode->getSequence();
 3993|  61.9k|        for (unsigned int i = 0; i < operands.size(); ++i) {
  ------------------
  |  Branch (3993:34): [True: 46.5k, False: 15.4k]
  ------------------
 3994|  46.5k|            TIntermTyped* typedNode = operands[i]->getAsTyped();
 3995|  46.5k|            if (! typedNode)
  ------------------
  |  Branch (3995:17): [True: 0, False: 46.5k]
  ------------------
 3996|      0|                break;
 3997|  46.5k|            typedNode->propagatePrecision(newPrecision);
 3998|  46.5k|        }
 3999|       |
 4000|  15.4k|        return;
 4001|  15.4k|    }
 4002|       |
 4003|  25.5k|    TIntermSelection* selectionNode = getAsSelectionNode();
 4004|  25.5k|    if (selectionNode) {
  ------------------
  |  Branch (4004:9): [True: 36, False: 25.5k]
  ------------------
 4005|     36|        TIntermTyped* typedNode = selectionNode->getTrueBlock()->getAsTyped();
 4006|     36|        if (typedNode) {
  ------------------
  |  Branch (4006:13): [True: 36, False: 0]
  ------------------
 4007|     36|            typedNode->propagatePrecision(newPrecision);
 4008|     36|            typedNode = selectionNode->getFalseBlock()->getAsTyped();
 4009|     36|            if (typedNode)
  ------------------
  |  Branch (4009:17): [True: 36, False: 0]
  ------------------
 4010|     36|                typedNode->propagatePrecision(newPrecision);
 4011|     36|        }
 4012|       |
 4013|     36|        return;
 4014|     36|    }
 4015|  25.5k|}
_ZNK7glslang13TIntermediate20promoteConstantUnionENS_10TBasicTypeEPNS_20TIntermConstantUnionE:
 4034|  57.6k|{
 4035|  57.6k|    const TConstUnionArray& rightUnionArray = node->getConstArray();
 4036|  57.6k|    int size = node->getType().computeNumComponents();
 4037|       |
 4038|  57.6k|    TConstUnionArray leftUnionArray(size);
 4039|       |
 4040|   152k|    for (int i=0; i < size; i++) {
  ------------------
  |  Branch (4040:19): [True: 94.6k, False: 57.6k]
  ------------------
 4041|       |
 4042|  94.6k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
 4043|  94.6k|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
 4044|       |
 4045|  94.6k|#define TO_ALL(Get)   \
 4046|  94.6k|        switch (promoteTo) { \
 4047|  94.6k|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
 4048|  94.6k|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
 4049|  94.6k|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
 4050|  94.6k|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
 4051|  94.6k|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
 4052|  94.6k|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
 4053|  94.6k|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
 4054|  94.6k|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
 4055|  94.6k|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
 4056|  94.6k|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
 4057|  94.6k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
 4058|  94.6k|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
 4059|  94.6k|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
 4060|  94.6k|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
 4061|  94.6k|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
 4062|  94.6k|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
 4063|  94.6k|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
 4064|  94.6k|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
 4065|  94.6k|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
 4066|  94.6k|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
 4067|  94.6k|        default: return node; \
 4068|  94.6k|        }
 4069|       |
 4070|  94.6k|        switch (node->getType().getBasicType()) {
 4071|  1.37k|        case EbtFloat: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|  1.37k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4055|     55|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|     55|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 55, False: 1.32k]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4057|    656|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    656|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 656, False: 721]
  |  |  ------------------
  |  | 4058|      1|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 1, False: 1.37k]
  |  |  ------------------
  |  | 4059|      1|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 1, False: 1.37k]
  |  |  ------------------
  |  | 4060|    633|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    633|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 633, False: 744]
  |  |  ------------------
  |  | 4061|      1|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 1, False: 1.37k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4064|     27|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|     27|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 27, False: 1.35k]
  |  |  ------------------
  |  | 4065|      3|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      3|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 3, False: 1.37k]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 1.37k]
  |  |  ------------------
  |  | 4068|  1.37k|        }
  ------------------
  |  Branch (4071:9): [True: 1.37k, False: 93.2k]
  ------------------
 4072|  42.5k|        case EbtInt: TO_ALL(getIConst); break;
  ------------------
  |  | 4046|  42.5k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4055|    351|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    351|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 351, False: 42.2k]
  |  |  ------------------
  |  | 4056|  4.71k|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  4.71k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 4.71k, False: 37.8k]
  |  |  ------------------
  |  | 4057|  6.54k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  6.54k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 6.54k, False: 36.0k]
  |  |  ------------------
  |  | 4058|    634|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    634|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 634, False: 41.9k]
  |  |  ------------------
  |  | 4059|    501|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    501|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 501, False: 42.0k]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4061|  8.91k|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  8.91k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 8.91k, False: 33.6k]
  |  |  ------------------
  |  | 4062|    626|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    626|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 626, False: 41.9k]
  |  |  ------------------
  |  | 4063|    496|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    496|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 496, False: 42.0k]
  |  |  ------------------
  |  | 4064|  12.6k|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  12.6k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 12.6k, False: 29.9k]
  |  |  ------------------
  |  | 4065|  7.13k|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  7.13k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 7.13k, False: 35.4k]
  |  |  ------------------
  |  | 4066|     13|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|     13|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 13, False: 42.5k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 42.5k]
  |  |  ------------------
  |  | 4068|  42.5k|        }
  ------------------
  |  Branch (4072:9): [True: 42.5k, False: 52.1k]
  ------------------
 4073|  6.35k|        case EbtUint: TO_ALL(getUConst); break;
  ------------------
  |  | 4046|  6.35k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4056|  2.15k|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.15k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 2.15k, False: 4.19k]
  |  |  ------------------
  |  | 4057|  2.07k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.07k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 2.07k, False: 4.27k]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4065|  2.12k|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.12k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 2.12k, False: 4.22k]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 6.35k]
  |  |  ------------------
  |  | 4068|  6.35k|        }
  ------------------
  |  Branch (4073:9): [True: 6.35k, False: 88.3k]
  ------------------
 4074|    574|        case EbtBool: TO_ALL(getBConst); break;
  ------------------
  |  | 4046|    574|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4056|    128|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    128|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 128, False: 446]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4059|      1|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 1, False: 573]
  |  |  ------------------
  |  | 4060|    444|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    444|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 444, False: 130]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4064|      1|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 1, False: 573]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 574]
  |  |  ------------------
  |  | 4068|    574|        }
  ------------------
  |  Branch (4074:9): [True: 574, False: 94.1k]
  ------------------
 4075|  2.66k|        case EbtFloat16: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|  2.66k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4056|  2.35k|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.35k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 2.35k, False: 309]
  |  |  ------------------
  |  | 4057|    309|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    309|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 309, False: 2.35k]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4068|  2.66k|        }
  ------------------
  |  Branch (4075:9): [True: 2.66k, False: 92.0k]
  ------------------
 4076|      0|        case EbtBFloat16: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4076:9): [True: 0, False: 94.6k]
  ------------------
 4077|      0|        case EbtFloatE5M2: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4077:9): [True: 0, False: 94.6k]
  ------------------
 4078|      0|        case EbtFloatE4M3: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4078:9): [True: 0, False: 94.6k]
  ------------------
 4079|      0|        case EbtFloatE2M1: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4079:9): [True: 0, False: 94.6k]
  ------------------
 4080|      0|        case EbtFloatE3M2: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4080:9): [True: 0, False: 94.6k]
  ------------------
 4081|      0|        case EbtFloatE2M3: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4081:9): [True: 0, False: 94.6k]
  ------------------
 4082|      0|        case EbtFloatUE8M0: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4082:9): [True: 0, False: 94.6k]
  ------------------
 4083|      0|        case EbtFloatMXINT8: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      0|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 4068|      0|        }
  ------------------
  |  Branch (4083:9): [True: 0, False: 94.6k]
  ------------------
 4084|      1|        case EbtDouble: TO_ALL(getDConst); break;
  ------------------
  |  | 4046|      1|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4055|      1|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 1, False: 0]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4057|      0|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 1]
  |  |  ------------------
  |  | 4068|      1|        }
  ------------------
  |  Branch (4084:9): [True: 1, False: 94.6k]
  ------------------
 4085|  13.9k|        case EbtInt8: TO_ALL(getI8Const); break;
  ------------------
  |  | 4046|  13.9k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4056|  2.31k|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.31k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 2.31k, False: 11.6k]
  |  |  ------------------
  |  | 4057|  2.29k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.29k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 2.29k, False: 11.6k]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4060|  2.36k|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.36k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 2.36k, False: 11.6k]
  |  |  ------------------
  |  | 4061|  2.34k|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.34k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 2.34k, False: 11.6k]
  |  |  ------------------
  |  | 4062|     10|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|     10|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 10, False: 13.9k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4064|  2.33k|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.33k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 2.33k, False: 11.6k]
  |  |  ------------------
  |  | 4065|  2.33k|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.33k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 2.33k, False: 11.6k]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 13.9k]
  |  |  ------------------
  |  | 4068|  13.9k|        }
  ------------------
  |  Branch (4085:9): [True: 13.9k, False: 80.6k]
  ------------------
 4086|  10.5k|        case EbtInt16: TO_ALL(getI16Const); break;
  ------------------
  |  | 4046|  10.5k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4056|  2.39k|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.39k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 2.39k, False: 8.19k]
  |  |  ------------------
  |  | 4057|  2.19k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.19k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 2.19k, False: 8.39k]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4060|    730|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    730|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 730, False: 9.85k]
  |  |  ------------------
  |  | 4061|    722|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    722|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 722, False: 9.86k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4064|  2.28k|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.28k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 2.28k, False: 8.30k]
  |  |  ------------------
  |  | 4065|  2.26k|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.26k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 2.26k, False: 8.32k]
  |  |  ------------------
  |  | 4066|      5|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      5|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 5, False: 10.5k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 4068|  10.5k|        }
  ------------------
  |  Branch (4086:9): [True: 10.5k, False: 84.0k]
  ------------------
 4087|  4.25k|        case EbtInt64: TO_ALL(getI64Const); break;
  ------------------
  |  | 4046|  4.25k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4056|      1|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 1, False: 4.25k]
  |  |  ------------------
  |  | 4057|  2.09k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.09k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 2.09k, False: 2.16k]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4059|      1|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 1, False: 4.25k]
  |  |  ------------------
  |  | 4060|      0|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4064|      3|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      3|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 3, False: 4.25k]
  |  |  ------------------
  |  | 4065|  2.15k|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.15k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 2.15k, False: 2.10k]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 4.25k]
  |  |  ------------------
  |  | 4068|  4.25k|        }
  ------------------
  |  Branch (4087:9): [True: 4.25k, False: 90.4k]
  ------------------
 4088|  8.32k|        case EbtUint8: TO_ALL(getU8Const); break;
  ------------------
  |  | 4046|  8.32k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4056|  2.09k|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.09k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 2.09k, False: 6.22k]
  |  |  ------------------
  |  | 4057|  2.06k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.06k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 2.06k, False: 6.25k]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4060|     15|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|     15|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 15, False: 8.30k]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4064|  2.08k|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.08k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 2.08k, False: 6.24k]
  |  |  ------------------
  |  | 4065|  2.07k|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  2.07k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 2.07k, False: 6.24k]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 8.32k]
  |  |  ------------------
  |  | 4068|  8.32k|        }
  ------------------
  |  Branch (4088:9): [True: 8.32k, False: 86.3k]
  ------------------
 4089|  2.66k|        case EbtUint16: TO_ALL(getU16Const); break;
  ------------------
  |  | 4046|  2.66k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4056|    789|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    789|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 789, False: 1.87k]
  |  |  ------------------
  |  | 4057|    601|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    601|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 601, False: 2.06k]
  |  |  ------------------
  |  | 4058|      4|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      4|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 4, False: 2.65k]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4060|      1|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 1, False: 2.66k]
  |  |  ------------------
  |  | 4061|      1|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      1|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 1, False: 2.66k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4064|    636|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    636|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 636, False: 2.02k]
  |  |  ------------------
  |  | 4065|    630|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|    630|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 630, False: 2.03k]
  |  |  ------------------
  |  | 4066|      1|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      1|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 1, False: 2.66k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 2.66k]
  |  |  ------------------
  |  | 4068|  2.66k|        }
  ------------------
  |  Branch (4089:9): [True: 2.66k, False: 92.0k]
  ------------------
 4090|  1.32k|        case EbtUint64: TO_ALL(getU64Const); break;
  ------------------
  |  | 4046|  1.32k|        switch (promoteTo) { \
  |  | 4047|      0|        case EbtBFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4047:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4048|      0|        case EbtFloatE5M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4048:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4049|      0|        case EbtFloatE4M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4049:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4050|      0|        case EbtFloatE2M1: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4050:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4051|      0|        case EbtFloatE3M2: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4051:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4052|      0|        case EbtFloatE2M3: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4052:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4053|      0|        case EbtFloatUE8M0: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4053:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4054|      0|        case EbtFloatMXINT8: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4054:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4055|      0|        case EbtFloat16: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4055:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4056|      0|        case EbtFloat: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4056:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4057|  1.31k|        case EbtDouble: PROMOTE(setDConst, double, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|  1.31k|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4057:9): [True: 1.31k, False: 4]
  |  |  ------------------
  |  | 4058|      0|        case EbtInt8: PROMOTE(setI8Const, signed char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4058:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4059|      0|        case EbtInt16: PROMOTE(setI16Const, short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4059:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4060|      4|        case EbtInt: PROMOTE(setIConst, int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      4|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4060:9): [True: 4, False: 1.31k]
  |  |  ------------------
  |  | 4061|      0|        case EbtInt64: PROMOTE(setI64Const, long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4061:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4062|      0|        case EbtUint8: PROMOTE(setU8Const, unsigned char, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4062:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4063|      0|        case EbtUint16: PROMOTE(setU16Const, unsigned short, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4063:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4064|      0|        case EbtUint: PROMOTE(setUConst, unsigned int, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4064:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4065|      0|        case EbtUint64: PROMOTE(setU64Const, unsigned long long, Get); break; \
  |  |  ------------------
  |  |  |  | 4042|      0|#define PROMOTE(Set, CType, Get) leftUnionArray[i].Set(ConvertConstant<CType>(rightUnionArray[i].Get()))
  |  |  ------------------
  |  |  |  Branch (4065:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4066|      0|        case EbtBool: PROMOTE_TO_BOOL(Get); break; \
  |  |  ------------------
  |  |  |  | 4043|      0|#define PROMOTE_TO_BOOL(Get) leftUnionArray[i].setBConst(rightUnionArray[i].Get() != 0)
  |  |  ------------------
  |  |  |  Branch (4066:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4067|      0|        default: return node; \
  |  |  ------------------
  |  |  |  Branch (4067:9): [True: 0, False: 1.32k]
  |  |  ------------------
  |  | 4068|  1.32k|        }
  ------------------
  |  Branch (4090:9): [True: 1.32k, False: 93.3k]
  ------------------
 4091|      0|        default: return node;
  ------------------
  |  Branch (4091:9): [True: 0, False: 94.6k]
  ------------------
 4092|  94.6k|        }
 4093|  94.6k|    }
 4094|       |
 4095|  57.6k|    const TType& t = node->getType();
 4096|       |
 4097|  57.6k|    return addConstantUnion(leftUnionArray, TType(promoteTo, t.getQualifier().storage, t.getVectorSize(), t.getMatrixCols(), t.getMatrixRows()),
 4098|  57.6k|                            node->getLoc());
 4099|  57.6k|}
_ZN7glslang16TIntermAggregate14setPragmaTableERKNS_12TPragmaTableE:
 4102|  5.26k|{
 4103|       |    assert(pragmaTable == nullptr);
 4104|  5.26k|    pragmaTable = new TPragmaTable;
 4105|  5.26k|    *pragmaTable = pTable;
 4106|  5.26k|}
_ZN7glslang13TIntermediate22specConstantPropagatesERKNS_12TIntermTypedES3_:
 4112|  12.6k|{
 4113|  12.6k|    return (node1.getType().getQualifier().isSpecConstant() && node2.getType().getQualifier().isConstant()) ||
  ------------------
  |  Branch (4113:13): [True: 4, False: 12.6k]
  |  Branch (4113:64): [True: 4, False: 0]
  ------------------
 4114|  12.6k|           (node2.getType().getQualifier().isSpecConstant() && node1.getType().getQualifier().isConstant());
  ------------------
  |  Branch (4114:13): [True: 0, False: 12.6k]
  |  Branch (4114:64): [True: 0, False: 0]
  ------------------
 4115|  12.6k|}
_ZN7glslang13TIntermediate15getResourceNameENS_13TResourceTypeE:
 4170|  8.52k|{
 4171|  8.52k|    switch (res) {
 4172|  1.42k|    case EResSampler:         return "shift-sampler-binding";
  ------------------
  |  Branch (4172:5): [True: 1.42k, False: 7.10k]
  ------------------
 4173|  1.42k|    case EResTexture:         return "shift-texture-binding";
  ------------------
  |  Branch (4173:5): [True: 1.42k, False: 7.10k]
  ------------------
 4174|  1.42k|    case EResImage:           return "shift-image-binding";
  ------------------
  |  Branch (4174:5): [True: 1.42k, False: 7.10k]
  ------------------
 4175|  1.42k|    case EResUbo:             return "shift-ubo-binding";
  ------------------
  |  Branch (4175:5): [True: 1.42k, False: 7.10k]
  ------------------
 4176|  1.42k|    case EResSsbo:            return "shift-ssbo-binding";
  ------------------
  |  Branch (4176:5): [True: 1.42k, False: 7.10k]
  ------------------
 4177|  1.42k|    case EResUav:             return "shift-uav-binding";
  ------------------
  |  Branch (4177:5): [True: 1.42k, False: 7.10k]
  ------------------
 4178|      0|    case EResCombinedSampler: return "shift-combined-sampler-binding";
  ------------------
  |  Branch (4178:5): [True: 0, False: 8.52k]
  ------------------
 4179|      0|    case EResAs:              return "shift-as-binding";
  ------------------
  |  Branch (4179:5): [True: 0, False: 8.52k]
  ------------------
 4180|      0|    case EResTensor:          return nullptr;
  ------------------
  |  Branch (4180:5): [True: 0, False: 8.52k]
  ------------------
 4181|      0|    default:
  ------------------
  |  Branch (4181:5): [True: 0, False: 8.52k]
  ------------------
 4182|       |        assert(0); // internal error: should only be called with valid resource types.
 4183|      0|        return nullptr;
 4184|  8.52k|    }
 4185|  8.52k|}
_ZN7glslang13TIntermediate10addSwizzleIiEEPNS_12TIntermTypedERNS_17TSwizzleSelectorsIT_EERKNS_10TSourceLocE:
 2714|  2.07k|{
 2715|  2.07k|    TIntermAggregate* node = new TIntermAggregate(EOpSequence);
 2716|       |
 2717|  2.07k|    node->setLoc(loc);
 2718|  2.07k|    TIntermSequence &sequenceVector = node->getSequence();
 2719|       |
 2720|  7.08k|    for (int i = 0; i < selector.size(); i++)
  ------------------
  |  Branch (2720:21): [True: 5.00k, False: 2.07k]
  ------------------
 2721|  5.00k|        pushSelector(sequenceVector, selector[i], loc);
 2722|       |
 2723|  2.07k|    return node;
 2724|  2.07k|}
Intermediate.cpp:_ZN7glslangL42canSignedIntTypeRepresentAllUnsignedValuesENS_10TBasicTypeES0_:
 1746|  1.11k|{
 1747|  1.11k|    switch(sintType) {
 1748|     26|    case EbtInt8:
  ------------------
  |  Branch (1748:5): [True: 26, False: 1.08k]
  ------------------
 1749|     26|        switch(uintType) {
 1750|     26|        case EbtUint8:
  ------------------
  |  Branch (1750:9): [True: 26, False: 0]
  ------------------
 1751|     26|        case EbtUint16:
  ------------------
  |  Branch (1751:9): [True: 0, False: 26]
  ------------------
 1752|     26|        case EbtUint:
  ------------------
  |  Branch (1752:9): [True: 0, False: 26]
  ------------------
 1753|     26|        case EbtUint64:
  ------------------
  |  Branch (1753:9): [True: 0, False: 26]
  ------------------
 1754|     26|            return false;
 1755|      0|        default:
  ------------------
  |  Branch (1755:9): [True: 0, False: 26]
  ------------------
 1756|      0|            assert(false);
 1757|      0|            return false;
 1758|     26|        }
 1759|      0|        break;
 1760|    500|    case EbtInt16:
  ------------------
  |  Branch (1760:5): [True: 500, False: 611]
  ------------------
 1761|    500|        switch(uintType) {
 1762|      0|        case EbtUint8:
  ------------------
  |  Branch (1762:9): [True: 0, False: 500]
  ------------------
 1763|      0|            return true;
 1764|    500|        case EbtUint16:
  ------------------
  |  Branch (1764:9): [True: 500, False: 0]
  ------------------
 1765|    500|        case EbtUint:
  ------------------
  |  Branch (1765:9): [True: 0, False: 500]
  ------------------
 1766|    500|        case EbtUint64:
  ------------------
  |  Branch (1766:9): [True: 0, False: 500]
  ------------------
 1767|    500|            return false;
 1768|      0|        default:
  ------------------
  |  Branch (1768:9): [True: 0, False: 500]
  ------------------
 1769|      0|            assert(false);
 1770|      0|            return false;
 1771|    500|        }
 1772|      0|        break;
 1773|    261|    case EbtInt:
  ------------------
  |  Branch (1773:5): [True: 261, False: 850]
  ------------------
 1774|    261|        switch(uintType) {
 1775|      5|        case EbtUint8:
  ------------------
  |  Branch (1775:9): [True: 5, False: 256]
  ------------------
 1776|      6|        case EbtUint16:
  ------------------
  |  Branch (1776:9): [True: 1, False: 260]
  ------------------
 1777|      6|            return true;
 1778|    255|        case EbtUint:
  ------------------
  |  Branch (1778:9): [True: 255, False: 6]
  ------------------
 1779|    255|            return false;
 1780|      0|        default:
  ------------------
  |  Branch (1780:9): [True: 0, False: 261]
  ------------------
 1781|      0|            assert(false);
 1782|      0|            return false;
 1783|    261|        }
 1784|      0|        break;
 1785|    324|    case EbtInt64:
  ------------------
  |  Branch (1785:5): [True: 324, False: 787]
  ------------------
 1786|    324|        switch(uintType) {
 1787|      0|        case EbtUint8:
  ------------------
  |  Branch (1787:9): [True: 0, False: 324]
  ------------------
 1788|      0|        case EbtUint16:
  ------------------
  |  Branch (1788:9): [True: 0, False: 324]
  ------------------
 1789|      1|        case EbtUint:
  ------------------
  |  Branch (1789:9): [True: 1, False: 323]
  ------------------
 1790|      1|            return true;
 1791|    323|        case EbtUint64:
  ------------------
  |  Branch (1791:9): [True: 323, False: 1]
  ------------------
 1792|    323|            return false;
 1793|      0|        default:
  ------------------
  |  Branch (1793:9): [True: 0, False: 324]
  ------------------
 1794|      0|            assert(false);
 1795|      0|            return false;
 1796|    324|        }
 1797|      0|        break;
 1798|      0|    default:
  ------------------
  |  Branch (1798:5): [True: 0, False: 1.11k]
  ------------------
 1799|       |        assert(false);
 1800|      0|        return false;
 1801|  1.11k|    }
 1802|  1.11k|}
Intermediate.cpp:_ZN7glslangL28getCorrespondingUnsignedTypeENS_10TBasicTypeE:
 1806|  2.20k|{
 1807|  2.20k|    switch(type) {
 1808|     52|    case EbtInt8:
  ------------------
  |  Branch (1808:5): [True: 52, False: 2.15k]
  ------------------
 1809|     52|        return EbtUint8;
 1810|  1.00k|    case EbtInt16:
  ------------------
  |  Branch (1810:5): [True: 1.00k, False: 1.20k]
  ------------------
 1811|  1.00k|        return EbtUint16;
 1812|    510|    case EbtInt:
  ------------------
  |  Branch (1812:5): [True: 510, False: 1.69k]
  ------------------
 1813|    510|        return EbtUint;
 1814|    646|    case EbtInt64:
  ------------------
  |  Branch (1814:5): [True: 646, False: 1.56k]
  ------------------
 1815|    646|        return EbtUint64;
 1816|      0|    default:
  ------------------
  |  Branch (1816:5): [True: 0, False: 2.20k]
  ------------------
 1817|       |        assert(false);
 1818|      0|        return EbtNumTypes;
 1819|  2.20k|    }
 1820|  2.20k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIddEET_T0_:
 4021|  3.37k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  3.37k|    return static_cast<IntType>(value);
 4031|  3.37k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIadEET_T0_:
 4021|      1|{
 4022|      1|    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|      1|        if (std::isnan(value))
  ------------------
  |  Branch (4023:13): [True: 0, False: 1]
  ------------------
 4024|      0|            return 0;
 4025|      1|        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
  ------------------
  |  Branch (4025:13): [True: 0, False: 1]
  ------------------
 4026|      0|            return std::numeric_limits<IntType>::min();
 4027|      1|        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
  ------------------
  |  Branch (4027:13): [True: 0, False: 1]
  ------------------
 4028|      0|            return std::numeric_limits<IntType>::max();
 4029|      1|    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIsdEET_T0_:
 4021|      1|{
 4022|      1|    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|      1|        if (std::isnan(value))
  ------------------
  |  Branch (4023:13): [True: 0, False: 1]
  ------------------
 4024|      0|            return 0;
 4025|      1|        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
  ------------------
  |  Branch (4025:13): [True: 0, False: 1]
  ------------------
 4026|      0|            return std::numeric_limits<IntType>::min();
 4027|      1|        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
  ------------------
  |  Branch (4027:13): [True: 0, False: 1]
  ------------------
 4028|      0|            return std::numeric_limits<IntType>::max();
 4029|      1|    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIidEET_T0_:
 4021|    633|{
 4022|    633|    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|    633|        if (std::isnan(value))
  ------------------
  |  Branch (4023:13): [True: 0, False: 633]
  ------------------
 4024|      0|            return 0;
 4025|    633|        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
  ------------------
  |  Branch (4025:13): [True: 0, False: 633]
  ------------------
 4026|      0|            return std::numeric_limits<IntType>::min();
 4027|    633|        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
  ------------------
  |  Branch (4027:13): [True: 0, False: 633]
  ------------------
 4028|      0|            return std::numeric_limits<IntType>::max();
 4029|    633|    }
 4030|    633|    return static_cast<IntType>(value);
 4031|    633|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIxdEET_T0_:
 4021|      1|{
 4022|      1|    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|      1|        if (std::isnan(value))
  ------------------
  |  Branch (4023:13): [True: 0, False: 1]
  ------------------
 4024|      0|            return 0;
 4025|      1|        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
  ------------------
  |  Branch (4025:13): [True: 0, False: 1]
  ------------------
 4026|      0|            return std::numeric_limits<IntType>::min();
 4027|      1|        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
  ------------------
  |  Branch (4027:13): [True: 0, False: 1]
  ------------------
 4028|      0|            return std::numeric_limits<IntType>::max();
 4029|      1|    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjdEET_T0_:
 4021|     27|{
 4022|     27|    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|     27|        if (std::isnan(value))
  ------------------
  |  Branch (4023:13): [True: 0, False: 27]
  ------------------
 4024|      0|            return 0;
 4025|     27|        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
  ------------------
  |  Branch (4025:13): [True: 0, False: 27]
  ------------------
 4026|      0|            return std::numeric_limits<IntType>::min();
 4027|     27|        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
  ------------------
  |  Branch (4027:13): [True: 0, False: 27]
  ------------------
 4028|      0|            return std::numeric_limits<IntType>::max();
 4029|     27|    }
 4030|     27|    return static_cast<IntType>(value);
 4031|     27|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIydEET_T0_:
 4021|      3|{
 4022|      3|    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|      3|        if (std::isnan(value))
  ------------------
  |  Branch (4023:13): [True: 0, False: 3]
  ------------------
 4024|      0|            return 0;
 4025|      3|        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
  ------------------
  |  Branch (4025:13): [True: 3, False: 0]
  ------------------
 4026|      3|            return std::numeric_limits<IntType>::min();
 4027|      0|        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
  ------------------
  |  Branch (4027:13): [True: 0, False: 0]
  ------------------
 4028|      0|            return std::numeric_limits<IntType>::max();
 4029|      0|    }
 4030|      0|    return static_cast<IntType>(value);
 4031|      3|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdiEET_T0_:
 4021|  11.6k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  11.6k|    return static_cast<IntType>(value);
 4031|  11.6k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIaiEET_T0_:
 4021|    634|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    634|    return static_cast<IntType>(value);
 4031|    634|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIsiEET_T0_:
 4021|    501|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    501|    return static_cast<IntType>(value);
 4031|    501|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIxiEET_T0_:
 4021|  8.91k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  8.91k|    return static_cast<IntType>(value);
 4031|  8.91k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIhiEET_T0_:
 4021|    626|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    626|    return static_cast<IntType>(value);
 4031|    626|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantItiEET_T0_:
 4021|    496|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    496|    return static_cast<IntType>(value);
 4031|    496|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjiEET_T0_:
 4021|  12.6k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  12.6k|    return static_cast<IntType>(value);
 4031|  12.6k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIyiEET_T0_:
 4021|  7.13k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  7.13k|    return static_cast<IntType>(value);
 4031|  7.13k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdjEET_T0_:
 4021|  4.22k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  4.22k|    return static_cast<IntType>(value);
 4031|  4.22k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIyjEET_T0_:
 4021|  2.12k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.12k|    return static_cast<IntType>(value);
 4031|  2.12k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdbEET_T0_:
 4021|    128|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    128|    return static_cast<IntType>(value);
 4031|    128|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIsbEET_T0_:
 4021|      1|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIibEET_T0_:
 4021|    444|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    444|    return static_cast<IntType>(value);
 4031|    444|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjbEET_T0_:
 4021|      1|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdaEET_T0_:
 4021|  4.60k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  4.60k|    return static_cast<IntType>(value);
 4031|  4.60k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIiaEET_T0_:
 4021|  2.36k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.36k|    return static_cast<IntType>(value);
 4031|  2.36k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIxaEET_T0_:
 4021|  2.34k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.34k|    return static_cast<IntType>(value);
 4031|  2.34k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIhaEET_T0_:
 4021|     10|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|     10|    return static_cast<IntType>(value);
 4031|     10|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjaEET_T0_:
 4021|  2.33k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.33k|    return static_cast<IntType>(value);
 4031|  2.33k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIyaEET_T0_:
 4021|  2.33k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.33k|    return static_cast<IntType>(value);
 4031|  2.33k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdsEET_T0_:
 4021|  4.58k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  4.58k|    return static_cast<IntType>(value);
 4031|  4.58k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIisEET_T0_:
 4021|    730|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    730|    return static_cast<IntType>(value);
 4031|    730|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIxsEET_T0_:
 4021|    722|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    722|    return static_cast<IntType>(value);
 4031|    722|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjsEET_T0_:
 4021|  2.28k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.28k|    return static_cast<IntType>(value);
 4031|  2.28k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIysEET_T0_:
 4021|  2.26k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.26k|    return static_cast<IntType>(value);
 4031|  2.26k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdxEET_T0_:
 4021|  2.09k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.09k|    return static_cast<IntType>(value);
 4031|  2.09k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIsxEET_T0_:
 4021|      1|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjxEET_T0_:
 4021|      3|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      3|    return static_cast<IntType>(value);
 4031|      3|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIyxEET_T0_:
 4021|  2.15k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.15k|    return static_cast<IntType>(value);
 4031|  2.15k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdhEET_T0_:
 4021|  4.15k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  4.15k|    return static_cast<IntType>(value);
 4031|  4.15k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIihEET_T0_:
 4021|     15|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|     15|    return static_cast<IntType>(value);
 4031|     15|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjhEET_T0_:
 4021|  2.08k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.08k|    return static_cast<IntType>(value);
 4031|  2.08k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIyhEET_T0_:
 4021|  2.07k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  2.07k|    return static_cast<IntType>(value);
 4031|  2.07k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdtEET_T0_:
 4021|  1.39k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  1.39k|    return static_cast<IntType>(value);
 4031|  1.39k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIatEET_T0_:
 4021|      4|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      4|    return static_cast<IntType>(value);
 4031|      4|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIitEET_T0_:
 4021|      1|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIxtEET_T0_:
 4021|      1|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      1|    return static_cast<IntType>(value);
 4031|      1|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIjtEET_T0_:
 4021|    636|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    636|    return static_cast<IntType>(value);
 4031|    636|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIytEET_T0_:
 4021|    630|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|    630|    return static_cast<IntType>(value);
 4031|    630|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIdyEET_T0_:
 4021|  1.31k|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|  1.31k|    return static_cast<IntType>(value);
 4031|  1.31k|}
Intermediate.cpp:_ZN7glslangL15ConvertConstantIiyEET_T0_:
 4021|      4|{
 4022|       |    if constexpr (std::is_floating_point_v<SrcType> && std::is_integral_v<IntType>) {
 4023|       |        if (std::isnan(value))
 4024|       |            return 0;
 4025|       |        if (value <= static_cast<SrcType>(std::numeric_limits<IntType>::min()))
 4026|       |            return std::numeric_limits<IntType>::min();
 4027|       |        if (value >= static_cast<SrcType>(std::numeric_limits<IntType>::max()))
 4028|       |            return std::numeric_limits<IntType>::max();
 4029|       |    }
 4030|      4|    return static_cast<IntType>(value);
 4031|      4|}

_ZN7glslang17TParseContextBase13outputMessageERKNS_10TSourceLocEPKcS5_S5_NS_11TPrefixTypeEP13__va_list_tag:
   55|  3.87M|{
   56|  3.87M|    const int maxSize = MaxTokenLength + 200;
   57|  3.87M|    char szExtraInfo[maxSize];
   58|       |
   59|  3.87M|    safe_vsprintf(szExtraInfo, maxSize, szExtraInfoFormat, args);
   60|       |
   61|  3.87M|    infoSink.info.prefix(prefix);
   62|  3.87M|    infoSink.info.location(loc, messages & EShMsgAbsolutePath, messages & EShMsgDisplayErrorColumn);
   63|  3.87M|    infoSink.info << "'" << szToken <<  "' : " << szReason << " " << szExtraInfo << "\n";
   64|       |
   65|  3.87M|    if (prefix == EPrefixError) {
  ------------------
  |  Branch (65:9): [True: 3.87M, False: 528]
  ------------------
   66|  3.87M|        ++numErrors;
   67|  3.87M|    }
   68|  3.87M|}
_ZN7glslang17TParseContextBase5errorERKNS_10TSourceLocEPKcS5_S5_z:
   72|  2.00M|{
   73|  2.00M|    if (messages & EShMsgOnlyPreprocessor)
  ------------------
  |  Branch (73:9): [True: 233k, False: 1.77M]
  ------------------
   74|   233k|        return;
   75|       |    // If enhanced msg readability, only print one error
   76|  1.77M|    if (messages & EShMsgEnhanced && numErrors > 0)
  ------------------
  |  Branch (76:9): [True: 0, False: 1.77M]
  |  Branch (76:38): [True: 0, False: 0]
  ------------------
   77|      0|        return;
   78|  1.77M|    va_list args;
   79|  1.77M|    va_start(args, szExtraInfoFormat);
   80|  1.77M|    outputMessage(loc, szReason, szToken, szExtraInfoFormat, EPrefixError, args);
   81|  1.77M|    va_end(args);
   82|       |
   83|  1.77M|    if ((messages & EShMsgCascadingErrors) == 0)
  ------------------
  |  Branch (83:9): [True: 0, False: 1.77M]
  ------------------
   84|      0|        currentScanner->setEndOfInput();
   85|  1.77M|}
_ZN7glslang17TParseContextBase4warnERKNS_10TSourceLocEPKcS5_S5_z:
   89|    334|{
   90|    334|    if (suppressWarnings())
  ------------------
  |  Branch (90:9): [True: 0, False: 334]
  ------------------
   91|      0|        return;
   92|    334|    va_list args;
   93|    334|    va_start(args, szExtraInfoFormat);
   94|    334|    outputMessage(loc, szReason, szToken, szExtraInfoFormat, EPrefixWarning, args);
   95|       |    va_end(args);
   96|    334|}
_ZN7glslang17TParseContextBase7ppErrorERKNS_10TSourceLocEPKcS5_S5_z:
  100|  2.09M|{
  101|  2.09M|    va_list args;
  102|  2.09M|    va_start(args, szExtraInfoFormat);
  103|  2.09M|    outputMessage(loc, szReason, szToken, szExtraInfoFormat, EPrefixError, args);
  104|  2.09M|    va_end(args);
  105|       |
  106|  2.09M|    if ((messages & EShMsgCascadingErrors) == 0)
  ------------------
  |  Branch (106:9): [True: 0, False: 2.09M]
  ------------------
  107|      0|        currentScanner->setEndOfInput();
  108|  2.09M|}
_ZN7glslang17TParseContextBase6ppWarnERKNS_10TSourceLocEPKcS5_S5_z:
  112|    194|{
  113|    194|    va_list args;
  114|    194|    va_start(args, szExtraInfoFormat);
  115|    194|    outputMessage(loc, szReason, szToken, szExtraInfoFormat, EPrefixWarning, args);
  116|       |    va_end(args);
  117|    194|}
_ZN7glslang17TParseContextBase16lValueErrorCheckERKNS_10TSourceLocEPKcPNS_12TIntermTypedE:
  126|  75.0k|{
  127|  75.0k|    TIntermBinary* binaryNode = node->getAsBinaryNode();
  128|       |
  129|  75.0k|    const char* symbol = nullptr;
  130|  75.0k|    TIntermSymbol* symNode = node->getAsSymbolNode();
  131|  75.0k|    if (symNode != nullptr)
  ------------------
  |  Branch (131:9): [True: 70.1k, False: 4.83k]
  ------------------
  132|  70.1k|        symbol = symNode->getName().c_str();
  133|       |
  134|  75.0k|    const char* message = nullptr;
  135|  75.0k|    switch (node->getQualifier().storage) {
  136|     17|    case EvqConst:          message = "can't modify a const";        break;
  ------------------
  |  Branch (136:5): [True: 17, False: 75.0k]
  ------------------
  137|      1|    case EvqConstReadOnly:  message = "can't modify a const";        break;
  ------------------
  |  Branch (137:5): [True: 1, False: 75.0k]
  ------------------
  138|     36|    case EvqUniform:        message = "can't modify a uniform";      break;
  ------------------
  |  Branch (138:5): [True: 36, False: 74.9k]
  ------------------
  139|      0|    case EvqResourceHeap:
  ------------------
  |  Branch (139:5): [True: 0, False: 75.0k]
  ------------------
  140|      0|    case EvqSamplerHeap:    message = "can't modify a descriptor heap"; break;
  ------------------
  |  Branch (140:5): [True: 0, False: 75.0k]
  ------------------
  141|  5.92k|    case EvqBuffer:
  ------------------
  |  Branch (141:5): [True: 5.92k, False: 69.1k]
  ------------------
  142|  5.92k|        if (node->getQualifier().isReadOnly())
  ------------------
  |  Branch (142:13): [True: 0, False: 5.92k]
  ------------------
  143|      0|            message = "can't modify a readonly buffer";
  144|  5.92k|        if (node->getQualifier().isShaderRecord())
  ------------------
  |  Branch (144:13): [True: 0, False: 5.92k]
  ------------------
  145|      0|            message = "can't modify a shaderrecordnv qualified buffer";
  146|  5.92k|        break;
  147|      0|    case EvqHitAttr:
  ------------------
  |  Branch (147:5): [True: 0, False: 75.0k]
  ------------------
  148|      0|        if (language != EShLangIntersect)
  ------------------
  |  Branch (148:13): [True: 0, False: 0]
  ------------------
  149|      0|            message = "cannot modify hitAttributeNV in this stage";
  150|      0|        break;
  151|       |
  152|  69.0k|    default:
  ------------------
  |  Branch (152:5): [True: 69.0k, False: 5.97k]
  ------------------
  153|       |        //
  154|       |        // Type that can't be written to?
  155|       |        //
  156|  69.0k|        switch (node->getBasicType()) {
  157|      0|        case EbtSampler:
  ------------------
  |  Branch (157:9): [True: 0, False: 69.0k]
  ------------------
  158|      0|            if (extensionTurnedOn(E_GL_ARB_bindless_texture) == false)
  ------------------
  |  Branch (158:17): [True: 0, False: 0]
  ------------------
  159|      0|                message = "can't modify a sampler";
  160|      0|            break;
  161|     14|        case EbtVoid:
  ------------------
  |  Branch (161:9): [True: 14, False: 69.0k]
  ------------------
  162|     14|            message = "can't modify void";
  163|     14|            break;
  164|      0|        case EbtAtomicUint:
  ------------------
  |  Branch (164:9): [True: 0, False: 69.0k]
  ------------------
  165|      0|            message = "can't modify an atomic_uint";
  166|      0|            break;
  167|      0|        case EbtAccStruct:
  ------------------
  |  Branch (167:9): [True: 0, False: 69.0k]
  ------------------
  168|      0|            message = "can't modify accelerationStructureNV";
  169|      0|            break;
  170|      0|        case EbtRayQuery:
  ------------------
  |  Branch (170:9): [True: 0, False: 69.0k]
  ------------------
  171|      0|            message = "can't modify rayQueryEXT";
  172|      0|            break;
  173|      0|        case EbtHitObjectNV:
  ------------------
  |  Branch (173:9): [True: 0, False: 69.0k]
  ------------------
  174|      0|            message = "can't modify hitObjectNV";
  175|      0|            break;
  176|      0|        case EbtHitObjectEXT:
  ------------------
  |  Branch (176:9): [True: 0, False: 69.0k]
  ------------------
  177|      0|            message = "can't modify hitObjectEXT";
  178|      0|            break;
  179|  69.0k|        default:
  ------------------
  |  Branch (179:9): [True: 69.0k, False: 14]
  ------------------
  180|  69.0k|            break;
  181|  69.0k|        }
  182|  75.0k|    }
  183|       |
  184|  75.0k|    if (message == nullptr && binaryNode == nullptr && symNode == nullptr) {
  ------------------
  |  Branch (184:9): [True: 74.9k, False: 68]
  |  Branch (184:31): [True: 70.1k, False: 4.77k]
  |  Branch (184:56): [True: 19, False: 70.1k]
  ------------------
  185|     19|        error(loc, " l-value required", op, "");
  186|       |
  187|     19|        return true;
  188|     19|    }
  189|       |
  190|       |    //
  191|       |    // Everything else is okay, no error.
  192|       |    //
  193|  75.0k|    if (message == nullptr)
  ------------------
  |  Branch (193:9): [True: 74.9k, False: 68]
  ------------------
  194|  74.9k|    {
  195|  74.9k|        if (binaryNode) {
  ------------------
  |  Branch (195:13): [True: 4.77k, False: 70.1k]
  ------------------
  196|       |            // Buffer contents can be writable even when the descriptor is in a read-only heap.
  197|       |            // Check their qualifiers above, then stop before checking the descriptor itself.
  198|  4.77k|            if (binaryNode->getOp() == EOpIndexDirectStruct &&
  ------------------
  |  Branch (198:17): [True: 3.13k, False: 1.64k]
  ------------------
  199|  3.13k|                binaryNode->getLeft()->getQualifier().isBufferType())
  ------------------
  |  Branch (199:17): [True: 0, False: 3.13k]
  ------------------
  200|      0|                return false;
  201|       |
  202|  4.77k|            switch (binaryNode->getOp()) {
  203|  1.63k|            case EOpIndexDirect:
  ------------------
  |  Branch (203:13): [True: 1.63k, False: 3.14k]
  ------------------
  204|  1.64k|            case EOpIndexIndirect:     // fall through
  ------------------
  |  Branch (204:13): [True: 13, False: 4.76k]
  ------------------
  205|  4.77k|            case EOpIndexDirectStruct: // fall through
  ------------------
  |  Branch (205:13): [True: 3.13k, False: 1.64k]
  ------------------
  206|  4.77k|            case EOpVectorSwizzle:
  ------------------
  |  Branch (206:13): [True: 0, False: 4.77k]
  ------------------
  207|  4.77k|            case EOpMatrixSwizzle:
  ------------------
  |  Branch (207:13): [True: 0, False: 4.77k]
  ------------------
  208|  4.77k|                return lValueErrorCheck(loc, op, binaryNode->getLeft());
  209|      0|            default:
  ------------------
  |  Branch (209:13): [True: 0, False: 4.77k]
  ------------------
  210|      0|                break;
  211|  4.77k|            }
  212|      0|            error(loc, " l-value required", op, "");
  213|       |
  214|      0|            return true;
  215|  4.77k|        }
  216|  70.1k|        return false;
  217|  74.9k|    }
  218|       |
  219|       |    //
  220|       |    // If we get here, we have an error and a message.
  221|       |    //
  222|     68|    const TIntermTyped* leftMostTypeNode = TIntermediate::traverseLValueBase(node, true);
  223|       |
  224|     68|    if (symNode)
  ------------------
  |  Branch (224:9): [True: 33, False: 35]
  ------------------
  225|     33|        error(loc, " l-value required", op, "\"%s\" (%s)", symbol, message);
  226|     35|    else
  227|     35|        if (binaryNode && binaryNode->getAsOperator()->getOp() == EOpIndexDirectStruct &&
  ------------------
  |  Branch (227:13): [True: 4, False: 31]
  |  Branch (227:27): [True: 4, False: 0]
  ------------------
  228|      4|            leftMostTypeNode != nullptr && leftMostTypeNode->getAsSymbolNode() != nullptr)
  ------------------
  |  Branch (228:13): [True: 4, False: 0]
  |  Branch (228:44): [True: 4, False: 0]
  ------------------
  229|      4|            if(IsAnonymous(leftMostTypeNode->getAsSymbolNode()->getName()))
  ------------------
  |  Branch (229:16): [True: 2, False: 2]
  ------------------
  230|      2|                error(loc, " l-value required", op, "\"%s\" (%s)", leftMostTypeNode->getAsSymbolNode()->getAccessName().c_str(), message);
  231|      2|            else
  232|      2|                error(loc, " l-value required", op, "\"%s\" (%s)", leftMostTypeNode->getAsSymbolNode()->getName().c_str(), message);
  233|     31|        else
  234|     31|            error(loc, " l-value required", op, "(%s)", message);
  235|       |
  236|     68|    return true;
  237|  75.0k|}
_ZN7glslang17TParseContextBase16rValueErrorCheckERKNS_10TSourceLocEPKcPNS_12TIntermTypedE:
  241|   597k|{
  242|   597k|    if (! node)
  ------------------
  |  Branch (242:9): [True: 0, False: 597k]
  ------------------
  243|      0|        return;
  244|       |
  245|   597k|    TIntermBinary* binaryNode = node->getAsBinaryNode();
  246|   597k|    const TIntermSymbol* symNode = node->getAsSymbolNode();
  247|       |
  248|   597k|    if (node->getQualifier().isWriteOnly()) {
  ------------------
  |  Branch (248:9): [True: 1, False: 597k]
  ------------------
  249|      1|        const TIntermTyped* leftMostTypeNode = TIntermediate::traverseLValueBase(node, true);
  250|       |
  251|      1|        if (symNode != nullptr)
  ------------------
  |  Branch (251:13): [True: 0, False: 1]
  ------------------
  252|      0|            error(loc, "can't read from writeonly object: ", op, "%s", symNode->getName().c_str());
  253|      1|        else if (binaryNode &&
  ------------------
  |  Branch (253:18): [True: 1, False: 0]
  ------------------
  254|      1|                (binaryNode->getAsOperator()->getOp() == EOpIndexDirectStruct ||
  ------------------
  |  Branch (254:18): [True: 1, False: 0]
  ------------------
  255|      0|                 binaryNode->getAsOperator()->getOp() == EOpIndexDirect) &&
  ------------------
  |  Branch (255:18): [True: 0, False: 0]
  ------------------
  256|      1|                leftMostTypeNode != nullptr && leftMostTypeNode->getAsSymbolNode() != nullptr)
  ------------------
  |  Branch (256:17): [True: 1, False: 0]
  |  Branch (256:48): [True: 1, False: 0]
  ------------------
  257|      1|            if(IsAnonymous(leftMostTypeNode->getAsSymbolNode()->getName()))
  ------------------
  |  Branch (257:16): [True: 1, False: 0]
  ------------------
  258|      1|                error(loc, "can't read from writeonly object: ", op, "%s", leftMostTypeNode->getAsSymbolNode()->getAccessName().c_str());
  259|      0|            else
  260|      0|                error(loc, "can't read from writeonly object: ", op, "%s", leftMostTypeNode->getAsSymbolNode()->getName().c_str());
  261|      0|        else
  262|      0|            error(loc, "can't read from writeonly object: ", op, "");
  263|       |
  264|   597k|    } else {
  265|   597k|        if (binaryNode) {
  ------------------
  |  Branch (265:13): [True: 14.9k, False: 582k]
  ------------------
  266|  14.9k|            switch (binaryNode->getOp()) {
  267|  2.10k|            case EOpIndexDirect:
  ------------------
  |  Branch (267:13): [True: 2.10k, False: 12.8k]
  ------------------
  268|  2.54k|            case EOpIndexIndirect:
  ------------------
  |  Branch (268:13): [True: 437, False: 14.4k]
  ------------------
  269|  3.33k|            case EOpIndexDirectStruct:
  ------------------
  |  Branch (269:13): [True: 799, False: 14.1k]
  ------------------
  270|  3.48k|            case EOpVectorSwizzle:
  ------------------
  |  Branch (270:13): [True: 146, False: 14.7k]
  ------------------
  271|  3.48k|            case EOpMatrixSwizzle:
  ------------------
  |  Branch (271:13): [True: 0, False: 14.9k]
  ------------------
  272|  3.48k|                rValueErrorCheck(loc, op, binaryNode->getLeft());
  273|  3.48k|                break;
  274|  11.4k|            default:
  ------------------
  |  Branch (274:13): [True: 11.4k, False: 3.48k]
  ------------------
  275|  11.4k|                break;
  276|  14.9k|            }
  277|  14.9k|        }
  278|   597k|    }
  279|   597k|}
_ZN7glslang17TParseContextBase12trackLinkageERNS_7TSymbolE:
  288|   567k|{
  289|   567k|    if (!parsingBuiltins)
  ------------------
  |  Branch (289:9): [True: 20.1k, False: 547k]
  ------------------
  290|  20.1k|        linkageSymbols.push_back(&symbol);
  291|   567k|}
_ZN7glslang17TParseContextBase22hideUnavailableMembersERNS_7TSymbolE:
  304|  20.1k|{
  305|  20.1k|    TVariable* block = symbol.getAsVariable();
  306|  20.1k|    if (block == nullptr) {
  ------------------
  |  Branch (306:9): [True: 2, False: 20.1k]
  ------------------
  307|      2|        TAnonMember* anon = symbol.getAsAnonMember();
  308|      2|        if (anon == nullptr)
  ------------------
  |  Branch (308:13): [True: 0, False: 2]
  ------------------
  309|      0|            return;
  310|      2|        block = &anon->getAnonContainer();
  311|      2|    }
  312|  20.1k|    if (block->isReadOnly() || ! block->hasMemberExtensions())
  ------------------
  |  Branch (312:9): [True: 0, False: 20.1k]
  |  Branch (312:32): [True: 20.1k, False: 0]
  ------------------
  313|  20.1k|        return;
  314|       |
  315|      0|    TTypeList& members = *block->getWritableType().getWritableStruct();
  316|      0|    for (int member = 0; member < (int)members.size(); ++member) {
  ------------------
  |  Branch (316:26): [True: 0, False: 0]
  ------------------
  317|      0|        const int numExtensions = block->getNumMemberExtensions(member);
  318|      0|        if (numExtensions == 0)
  ------------------
  |  Branch (318:13): [True: 0, False: 0]
  ------------------
  319|      0|            continue;
  320|      0|        const char* const* extensions = block->getMemberExtensions(member);
  321|      0|        bool addsMember = true;
  322|      0|        for (int e = 0; e < numExtensions; ++e)
  ------------------
  |  Branch (322:25): [True: 0, False: 0]
  ------------------
  323|      0|            addsMember = addsMember && extensionAddsMember(extensions[e]);
  ------------------
  |  Branch (323:26): [True: 0, False: 0]
  |  Branch (323:40): [True: 0, False: 0]
  ------------------
  324|      0|        if (addsMember && ! extensionsTurnedOn(numExtensions, extensions))
  ------------------
  |  Branch (324:13): [True: 0, False: 0]
  |  Branch (324:27): [True: 0, False: 0]
  ------------------
  325|      0|            members[member].type->hideMember();
  326|      0|    }
  327|      0|}
_ZN7glslang17TParseContextBase10checkIndexERKNS_10TSourceLocERKNS_5TTypeERl:
  332|  5.73k|{
  333|  5.73k|    const auto sizeIsSpecializationExpression = [&type]() {
  334|  5.73k|        return type.containsSpecializationSize() &&
  335|  5.73k|               type.getArraySizes()->getOuterNode() != nullptr &&
  336|  5.73k|               type.getArraySizes()->getOuterNode()->getAsSymbolNode() == nullptr; };
  337|       |
  338|  5.73k|    if (index < 0) {
  ------------------
  |  Branch (338:9): [True: 78, False: 5.65k]
  ------------------
  339|     78|        error(loc, "", "[", "index out of range '%lld'", (long long)index);
  340|     78|        index = 0;
  341|  5.65k|    } else if (type.isArray()) {
  ------------------
  |  Branch (341:16): [True: 4.58k, False: 1.07k]
  ------------------
  342|  4.58k|        if (type.isSizedArray() && !sizeIsSpecializationExpression() &&
  ------------------
  |  Branch (342:13): [True: 4.25k, False: 334]
  |  Branch (342:36): [True: 4.25k, False: 0]
  ------------------
  343|  4.25k|            index >= type.getOuterArraySize()) {
  ------------------
  |  Branch (343:13): [True: 60, False: 4.19k]
  ------------------
  344|     60|            error(loc, "", "[", "array index out of range '%lld'", (long long)index);
  345|     60|            index = type.getOuterArraySize() - 1;
  346|     60|        }
  347|  4.58k|    } else if (type.isVector()) {
  ------------------
  |  Branch (347:16): [True: 583, False: 488]
  ------------------
  348|    583|        if (index >= type.getVectorSize()) {
  ------------------
  |  Branch (348:13): [True: 53, False: 530]
  ------------------
  349|     53|            error(loc, "", "[", "vector index out of range '%lld'", (long long)index);
  350|     53|            index = type.getVectorSize() - 1;
  351|     53|        }
  352|    583|    } else if (type.isMatrix()) {
  ------------------
  |  Branch (352:16): [True: 488, False: 0]
  ------------------
  353|    488|        if (index >= type.getMatrixCols()) {
  ------------------
  |  Branch (353:13): [True: 28, False: 460]
  ------------------
  354|     28|            error(loc, "", "[", "matrix index out of range '%lld'", (long long)index);
  355|     28|            index = type.getMatrixCols() - 1;
  356|     28|        }
  357|    488|    } else if (type.isCoopVecNV()) {
  ------------------
  |  Branch (357:16): [True: 0, False: 0]
  ------------------
  358|      0|        if (index >= type.computeNumComponents()) {
  ------------------
  |  Branch (358:13): [True: 0, False: 0]
  ------------------
  359|      0|            error(loc, "", "[", "cooperative vector index out of range '%lld'", (long long)index);
  360|      0|            index = type.computeNumComponents() - 1;
  361|      0|        }
  362|      0|    } else if (type.isLongVector()) {
  ------------------
  |  Branch (362:16): [True: 0, False: 0]
  ------------------
  363|      0|        if (!type.hasSpecConstantVectorComponents() && index >= type.computeNumComponents()) {
  ------------------
  |  Branch (363:13): [True: 0, False: 0]
  |  Branch (363:56): [True: 0, False: 0]
  ------------------
  364|      0|            error(loc, "", "[", "vector index out of range '%lld'", (long long)index);
  365|      0|            index = type.computeNumComponents() - 1;
  366|      0|        }
  367|      0|    }
  368|  5.73k|}
_ZN7glslang17TParseContextBase12makeEditableERPNS_7TSymbolE:
  375|    286|{
  376|       |    // copyUp() does a deep copy of the type.
  377|    286|    symbol = symbolTable.copyUp(symbol);
  378|       |
  379|       |    // Save it (deferred, so it can be edited first) in the AST for linker use.
  380|    286|    if (symbol)
  ------------------
  |  Branch (380:9): [True: 286, False: 0]
  ------------------
  381|    286|        trackLinkage(*symbol);
  382|    286|}
_ZN7glslang17TParseContextBase14selectFunctionENS_7TVectorIPKNS_9TFunctionEEERS3_NSt3__18functionIFbRKNS_5TTypeESB_NS_9TOperatorEiEEENS8_IFbSB_SB_SB_EEERb:
  437|  10.8k|{
  438|       |//
  439|       |// Operation
  440|       |//
  441|       |// 1. Prune the input list of candidates down to a list of viable candidates,
  442|       |// where each viable candidate has
  443|       |//
  444|       |//  * at least as many parameters as there are calling arguments, with any
  445|       |//    remaining parameters being optional or having default values
  446|       |//  * each parameter is true under convertible(A, B), where A is the calling
  447|       |//    type for in and B is the formal type, and in addition, for out B is the
  448|       |//    calling type and A is the formal type
  449|       |//
  450|       |// 2. If there are no viable candidates, return with no match.
  451|       |//
  452|       |// 3. If there is only one viable candidate, it is the best match.
  453|       |//
  454|       |// 4. If there are multiple viable candidates, select the first viable candidate
  455|       |// as the incumbent. Compare the incumbent to the next viable candidate, and if
  456|       |// that candidate is better (bullets below), make it the incumbent. Repeat, with
  457|       |// a linear walk through the viable candidate list. The final incumbent will be
  458|       |// returned as the best match. A viable candidate is better than the incumbent if
  459|       |//
  460|       |//  * it has a function argument with a better(...) conversion than the incumbent,
  461|       |//    for all directions needed by in and out
  462|       |//  * the incumbent has no argument with a better(...) conversion then the
  463|       |//    candidate, for either in or out (as needed)
  464|       |//
  465|       |// 5. Check for ambiguity by comparing the best match against all other viable
  466|       |// candidates. If any other viable candidate has a function argument with a
  467|       |// better(...) conversion than the best candidate (for either in or out
  468|       |// directions), return that there was a tie for best.
  469|       |//
  470|       |
  471|  10.8k|    tie = false;
  472|       |
  473|       |    // 1. prune to viable...
  474|  10.8k|    TVector<const TFunction*> viableCandidates;
  475|   282k|    for (auto it = candidateList.begin(); it != candidateList.end(); ++it) {
  ------------------
  |  Branch (475:43): [True: 271k, False: 10.8k]
  ------------------
  476|   271k|        const TFunction& candidate = *(*it);
  477|       |
  478|       |        // to even be a potential match, number of arguments must be >= the number of
  479|       |        // fixed (non-default) parameters, and <= the total (including parameter with defaults).
  480|   271k|        if (call.getParamCount() < candidate.getFixedParamCount() ||
  ------------------
  |  Branch (480:13): [True: 41.4k, False: 229k]
  ------------------
  481|   229k|            (call.getParamCount() > candidate.getParamCount() && !candidate.isVariadic()))
  ------------------
  |  Branch (481:14): [True: 27.9k, False: 201k]
  |  Branch (481:66): [True: 27.9k, False: 0]
  ------------------
  482|  69.3k|            continue;
  483|       |
  484|       |        // see if arguments are convertible
  485|   201k|        bool viable = true;
  486|       |
  487|       |        // The call can have fewer parameters than the candidate, if some have defaults.
  488|   201k|        const int paramCount = std::min(call.getParamCount(), candidate.getParamCount());
  489|   216k|        for (int param = 0; param < paramCount; ++param) {
  ------------------
  |  Branch (489:29): [True: 208k, False: 7.43k]
  ------------------
  490|   208k|            if (candidate[param].type->getQualifier().isParamInput()) {
  ------------------
  |  Branch (490:17): [True: 208k, False: 47]
  ------------------
  491|   208k|                if (! convertible(*call[param].type, *candidate[param].type, candidate.getBuiltInOp(), param)) {
  ------------------
  |  Branch (491:21): [True: 194k, False: 14.1k]
  ------------------
  492|   194k|                    viable = false;
  493|   194k|                    break;
  494|   194k|                }
  495|   208k|            }
  496|  14.2k|            if (candidate[param].type->getQualifier().isParamOutput()) {
  ------------------
  |  Branch (496:17): [True: 48, False: 14.1k]
  ------------------
  497|     48|                if (! convertible(*candidate[param].type, *call[param].type, candidate.getBuiltInOp(), param)) {
  ------------------
  |  Branch (497:21): [True: 30, False: 18]
  ------------------
  498|     30|                    viable = false;
  499|     30|                    break;
  500|     30|                }
  501|     48|            }
  502|  14.2k|        }
  503|       |
  504|   201k|        if (viable)
  ------------------
  |  Branch (504:13): [True: 7.43k, False: 194k]
  ------------------
  505|  7.43k|            viableCandidates.push_back(&candidate);
  506|   201k|    }
  507|       |
  508|       |    // 2. none viable...
  509|  10.8k|    if (viableCandidates.size() == 0)
  ------------------
  |  Branch (509:9): [True: 7.71k, False: 3.14k]
  ------------------
  510|  7.71k|        return nullptr;
  511|       |
  512|       |    // 3. only one viable...
  513|  3.14k|    if (viableCandidates.size() == 1)
  ------------------
  |  Branch (513:9): [True: 730, False: 2.41k]
  ------------------
  514|    730|        return viableCandidates.front();
  515|       |
  516|       |    // 4. find best...
  517|  2.41k|    const auto betterParam = [&call, &better](const TFunction& can1, const TFunction& can2) -> bool {
  518|       |        // is call -> can2 better than call -> can1 for any parameter
  519|  2.41k|        bool hasBetterParam = false;
  520|  2.41k|        const int paramCount = std::min({call.getParamCount(), can1.getParamCount(), can2.getParamCount()});
  521|  2.41k|        for (int param = 0; param < paramCount; ++param) {
  522|  2.41k|            if (better(*call[param].type, *can1[param].type, *can2[param].type)) {
  523|  2.41k|                hasBetterParam = true;
  524|  2.41k|                break;
  525|  2.41k|            }
  526|  2.41k|        }
  527|  2.41k|        return hasBetterParam;
  528|  2.41k|    };
  529|       |
  530|  2.41k|    const auto equivalentParams = [&call, &better](const TFunction& can1, const TFunction& can2) -> bool {
  531|       |        // is call -> can2 equivalent to call -> can1 for all the call parameters?
  532|  2.41k|        const int paramCount = std::min({call.getParamCount(), can1.getParamCount(), can2.getParamCount()});
  533|  2.41k|        for (int param = 0; param < paramCount; ++param) {
  534|  2.41k|            if (better(*call[param].type, *can1[param].type, *can2[param].type) ||
  535|  2.41k|                better(*call[param].type, *can2[param].type, *can1[param].type))
  536|  2.41k|                return false;
  537|  2.41k|        }
  538|  2.41k|        return true;
  539|  2.41k|    };
  540|       |
  541|  2.41k|    const auto enabled = [this](const TFunction& candidate) -> bool {
  542|  2.41k|        bool enabled = candidate.getNumExtensions() == 0;
  543|  2.41k|        for (int i = 0; i < candidate.getNumExtensions(); ++i) {
  544|  2.41k|            TExtensionBehavior behavior = getExtensionBehavior(candidate.getExtensions()[i]);
  545|  2.41k|            if (behavior == EBhEnable || behavior == EBhRequire)
  546|  2.41k|                enabled = true;
  547|  2.41k|        }
  548|  2.41k|        return enabled;
  549|  2.41k|    };
  550|       |
  551|  2.41k|    const TFunction* incumbent = viableCandidates.front();
  552|  6.70k|    for (auto it = viableCandidates.begin() + 1; it != viableCandidates.end(); ++it) {
  ------------------
  |  Branch (552:50): [True: 4.28k, False: 2.41k]
  ------------------
  553|  4.28k|        const TFunction& candidate = *(*it);
  554|  4.28k|        if (betterParam(*incumbent, candidate) && ! betterParam(candidate, *incumbent))
  ------------------
  |  Branch (554:13): [True: 2.31k, False: 1.97k]
  |  Branch (554:51): [True: 2.31k, False: 1]
  ------------------
  555|  2.31k|            incumbent = &candidate;
  556|  4.28k|    }
  557|       |
  558|       |    // 5. ambiguity...
  559|  9.11k|    for (auto it = viableCandidates.begin(); it != viableCandidates.end(); ++it) {
  ------------------
  |  Branch (559:46): [True: 6.70k, False: 2.41k]
  ------------------
  560|  6.70k|        if (incumbent == *it)
  ------------------
  |  Branch (560:13): [True: 2.41k, False: 4.28k]
  ------------------
  561|  2.41k|            continue;
  562|  4.28k|        const TFunction& candidate = *(*it);
  563|       |
  564|       |        // In the case of default parameters, it may have an identical initial set, which is
  565|       |        // also ambiguous
  566|  4.28k|        if ((betterParam(*incumbent, candidate) || equivalentParams(*incumbent, candidate)) && enabled(candidate))
  ------------------
  |  Branch (566:14): [True: 1, False: 4.28k]
  |  Branch (566:52): [True: 518, False: 3.76k]
  |  Branch (566:96): [True: 519, False: 0]
  ------------------
  567|    519|            tie = true;
  568|  4.28k|    }
  569|       |
  570|  2.41k|    return incumbent;
  571|  3.14k|}
_ZN7glslang17TParseContextBase20parseSwizzleSelectorERKNS_10TSourceLocERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEEiRNS_17TSwizzleSelectorsIiEE:
  581|  6.54k|{
  582|       |    // Too long?
  583|  6.54k|    if (compString.size() > MaxSwizzleSelectors)
  ------------------
  |  Branch (583:9): [True: 113, False: 6.43k]
  ------------------
  584|    113|        error(loc, "vector swizzle too long", compString.c_str(), "");
  585|       |
  586|       |    // Use this to test that all swizzle characters are from the same swizzle-namespace-set
  587|  6.54k|    enum {
  588|  6.54k|        exyzw,
  589|  6.54k|        ergba,
  590|  6.54k|        estpq,
  591|  6.54k|        ebadswizzle,
  592|  6.54k|    } fieldSet[MaxSwizzleSelectors];
  593|       |
  594|       |    // Decode the swizzle string.
  595|  6.54k|    int size = std::min(MaxSwizzleSelectors, (int)compString.size());
  596|  16.5k|    for (int i = 0; i < size; ++i) {
  ------------------
  |  Branch (596:21): [True: 10.0k, False: 6.54k]
  ------------------
  597|  10.0k|        switch (compString[i])  {
  598|  4.65k|        case 'x':
  ------------------
  |  Branch (598:9): [True: 4.65k, False: 5.36k]
  ------------------
  599|  4.65k|            selector.push_back(0);
  600|  4.65k|            fieldSet[i] = exyzw;
  601|  4.65k|            break;
  602|    165|        case 'r':
  ------------------
  |  Branch (602:9): [True: 165, False: 9.85k]
  ------------------
  603|    165|            selector.push_back(0);
  604|    165|            fieldSet[i] = ergba;
  605|    165|            break;
  606|    108|        case 's':
  ------------------
  |  Branch (606:9): [True: 108, False: 9.91k]
  ------------------
  607|    108|            selector.push_back(0);
  608|    108|            fieldSet[i] = estpq;
  609|    108|            break;
  610|       |
  611|  3.06k|        case 'y':
  ------------------
  |  Branch (611:9): [True: 3.06k, False: 6.95k]
  ------------------
  612|  3.06k|            selector.push_back(1);
  613|  3.06k|            fieldSet[i] = exyzw;
  614|  3.06k|            break;
  615|     77|        case 'g':
  ------------------
  |  Branch (615:9): [True: 77, False: 9.94k]
  ------------------
  616|     77|            selector.push_back(1);
  617|     77|            fieldSet[i] = ergba;
  618|     77|            break;
  619|     40|        case 't':
  ------------------
  |  Branch (619:9): [True: 40, False: 9.97k]
  ------------------
  620|     40|            selector.push_back(1);
  621|     40|            fieldSet[i] = estpq;
  622|     40|            break;
  623|       |
  624|  1.29k|        case 'z':
  ------------------
  |  Branch (624:9): [True: 1.29k, False: 8.72k]
  ------------------
  625|  1.29k|            selector.push_back(2);
  626|  1.29k|            fieldSet[i] = exyzw;
  627|  1.29k|            break;
  628|     71|        case 'b':
  ------------------
  |  Branch (628:9): [True: 71, False: 9.94k]
  ------------------
  629|     71|            selector.push_back(2);
  630|     71|            fieldSet[i] = ergba;
  631|     71|            break;
  632|     10|        case 'p':
  ------------------
  |  Branch (632:9): [True: 10, False: 10.0k]
  ------------------
  633|     10|            selector.push_back(2);
  634|     10|            fieldSet[i] = estpq;
  635|     10|            break;
  636|       |
  637|    171|        case 'w':
  ------------------
  |  Branch (637:9): [True: 171, False: 9.84k]
  ------------------
  638|    171|            selector.push_back(3);
  639|    171|            fieldSet[i] = exyzw;
  640|    171|            break;
  641|    125|        case 'a':
  ------------------
  |  Branch (641:9): [True: 125, False: 9.89k]
  ------------------
  642|    125|            selector.push_back(3);
  643|    125|            fieldSet[i] = ergba;
  644|    125|            break;
  645|      0|        case 'q':
  ------------------
  |  Branch (645:9): [True: 0, False: 10.0k]
  ------------------
  646|      0|            selector.push_back(3);
  647|      0|            fieldSet[i] = estpq;
  648|      0|            break;
  649|       |
  650|    243|        default:
  ------------------
  |  Branch (650:9): [True: 243, False: 9.77k]
  ------------------
  651|    243|            fieldSet[i] = ebadswizzle;
  652|    243|            break;
  653|  10.0k|        }
  654|  10.0k|    }
  655|       |
  656|       |    // Additional error checking.
  657|  15.9k|    for (int i = 0; i < selector.size(); ++i) {
  ------------------
  |  Branch (657:21): [True: 9.67k, False: 6.24k]
  ------------------
  658|  9.67k|        if (fieldSet[i] == ebadswizzle) {
  ------------------
  |  Branch (658:13): [True: 107, False: 9.56k]
  ------------------
  659|    107|            error(loc, "unknown swizzle selection", compString.c_str(), "");
  660|    107|            selector.resize(i);
  661|    107|            break;
  662|    107|        }
  663|       |
  664|  9.56k|        if (selector[i] >= vecSize) {
  ------------------
  |  Branch (664:13): [True: 197, False: 9.37k]
  ------------------
  665|    197|            error(loc, "vector swizzle selection out of range",  compString.c_str(), "");
  666|    197|            selector.resize(i);
  667|    197|            break;
  668|    197|        }
  669|       |
  670|  9.37k|        if (i > 0 && fieldSet[i] != fieldSet[i-1]) {
  ------------------
  |  Branch (670:13): [True: 2.93k, False: 6.43k]
  |  Branch (670:22): [True: 3, False: 2.92k]
  ------------------
  671|      3|            error(loc, "vector swizzle selectors not from the same set", compString.c_str(), "");
  672|      3|            selector.resize(i);
  673|      3|            break;
  674|      3|        }
  675|  9.37k|    }
  676|       |
  677|       |    // Ensure it is valid.
  678|  6.54k|    if (selector.size() == 0)
  ------------------
  |  Branch (678:9): [True: 110, False: 6.43k]
  ------------------
  679|    110|        selector.push_back(0);
  680|  6.54k|}
_ZN7glslang17TParseContextBase6finishEv:
  800|  15.9k|{
  801|  15.9k|    if (parsingBuiltins)
  ------------------
  |  Branch (801:9): [True: 14.4k, False: 1.42k]
  ------------------
  802|  14.4k|        return;
  803|       |
  804|  1.42k|    for (const TString& relaxedSymbol : relaxedSymbols)
  ------------------
  |  Branch (804:39): [True: 0, False: 1.42k]
  ------------------
  805|      0|    {
  806|      0|        TSymbol* symbol = symbolTable.find(relaxedSymbol);
  807|      0|        TType& type = symbol->getWritableType();
  808|      0|        for (const TTypeLoc& typeLoc : *type.getStruct())
  ------------------
  |  Branch (808:38): [True: 0, False: 0]
  ------------------
  809|      0|        {
  810|      0|            if (typeLoc.type->isOpaque())
  ------------------
  |  Branch (810:17): [True: 0, False: 0]
  ------------------
  811|      0|            {
  812|      0|                typeLoc.type->getSampler() = TSampler{};
  813|      0|                typeLoc.type->setBasicType(EbtInt);
  814|      0|                TString fieldName("/*");
  815|      0|                fieldName.append(typeLoc.type->getFieldName());
  816|      0|                fieldName.append("*/");
  817|      0|                typeLoc.type->setFieldName(fieldName);
  818|      0|            }
  819|      0|        }
  820|      0|    }
  821|       |
  822|       |    // Transfer the linkage symbols to AST nodes, preserving order.
  823|  1.42k|    TIntermAggregate* linkage = new TIntermAggregate;
  824|  21.5k|    for (auto i = linkageSymbols.begin(); i != linkageSymbols.end(); ++i) {
  ------------------
  |  Branch (824:43): [True: 20.1k, False: 1.42k]
  ------------------
  825|  20.1k|        hideUnavailableMembers(**i);
  826|  20.1k|        intermediate.addSymbolLinkageNode(linkage, **i);
  827|  20.1k|    }
  828|  1.42k|    intermediate.addSymbolLinkageNodes(linkage, getLanguage(), symbolTable);
  829|  1.42k|}
ParseContextBase.cpp:_ZZN7glslang17TParseContextBase10checkIndexERKNS_10TSourceLocERKNS_5TTypeERlENK3$_0clEv:
  333|  4.25k|    const auto sizeIsSpecializationExpression = [&type]() {
  334|  4.25k|        return type.containsSpecializationSize() &&
  ------------------
  |  Branch (334:16): [True: 0, False: 4.25k]
  ------------------
  335|      0|               type.getArraySizes()->getOuterNode() != nullptr &&
  ------------------
  |  Branch (335:16): [True: 0, False: 0]
  ------------------
  336|      0|               type.getArraySizes()->getOuterNode()->getAsSymbolNode() == nullptr; };
  ------------------
  |  Branch (336:16): [True: 0, False: 0]
  ------------------
ParseContextBase.cpp:_ZZN7glslang17TParseContextBase14selectFunctionENS_7TVectorIPKNS_9TFunctionEEERS3_NSt3__18functionIFbRKNS_5TTypeESB_NS_9TOperatorEiEEENS8_IFbSB_SB_SB_EEERbENK3$_0clES6_S6_:
  517|  10.8k|    const auto betterParam = [&call, &better](const TFunction& can1, const TFunction& can2) -> bool {
  518|       |        // is call -> can2 better than call -> can1 for any parameter
  519|  10.8k|        bool hasBetterParam = false;
  520|  10.8k|        const int paramCount = std::min({call.getParamCount(), can1.getParamCount(), can2.getParamCount()});
  521|  23.7k|        for (int param = 0; param < paramCount; ++param) {
  ------------------
  |  Branch (521:29): [True: 15.2k, False: 8.56k]
  ------------------
  522|  15.2k|            if (better(*call[param].type, *can1[param].type, *can2[param].type)) {
  ------------------
  |  Branch (522:17): [True: 2.31k, False: 12.9k]
  ------------------
  523|  2.31k|                hasBetterParam = true;
  524|  2.31k|                break;
  525|  2.31k|            }
  526|  15.2k|        }
  527|  10.8k|        return hasBetterParam;
  528|  10.8k|    };
ParseContextBase.cpp:_ZZN7glslang17TParseContextBase14selectFunctionENS_7TVectorIPKNS_9TFunctionEEERS3_NSt3__18functionIFbRKNS_5TTypeESB_NS_9TOperatorEiEEENS8_IFbSB_SB_SB_EEERbENK3$_1clES6_S6_:
  530|  4.28k|    const auto equivalentParams = [&call, &better](const TFunction& can1, const TFunction& can2) -> bool {
  531|       |        // is call -> can2 equivalent to call -> can1 for all the call parameters?
  532|  4.28k|        const int paramCount = std::min({call.getParamCount(), can1.getParamCount(), can2.getParamCount()});
  533|  5.42k|        for (int param = 0; param < paramCount; ++param) {
  ------------------
  |  Branch (533:29): [True: 4.91k, False: 518]
  ------------------
  534|  4.91k|            if (better(*call[param].type, *can1[param].type, *can2[param].type) ||
  ------------------
  |  Branch (534:17): [True: 0, False: 4.91k]
  ------------------
  535|  4.91k|                better(*call[param].type, *can2[param].type, *can1[param].type))
  ------------------
  |  Branch (535:17): [True: 3.76k, False: 1.14k]
  ------------------
  536|  3.76k|                return false;
  537|  4.91k|        }
  538|    518|        return true;
  539|  4.28k|    };
ParseContextBase.cpp:_ZZN7glslang17TParseContextBase14selectFunctionENS_7TVectorIPKNS_9TFunctionEEERS3_NSt3__18functionIFbRKNS_5TTypeESB_NS_9TOperatorEiEEENS8_IFbSB_SB_SB_EEERbENK3$_2clES6_:
  541|    519|    const auto enabled = [this](const TFunction& candidate) -> bool {
  542|    519|        bool enabled = candidate.getNumExtensions() == 0;
  543|    519|        for (int i = 0; i < candidate.getNumExtensions(); ++i) {
  ------------------
  |  Branch (543:25): [True: 0, False: 519]
  ------------------
  544|      0|            TExtensionBehavior behavior = getExtensionBehavior(candidate.getExtensions()[i]);
  545|      0|            if (behavior == EBhEnable || behavior == EBhRequire)
  ------------------
  |  Branch (545:17): [True: 0, False: 0]
  |  Branch (545:42): [True: 0, False: 0]
  ------------------
  546|      0|                enabled = true;
  547|      0|        }
  548|    519|        return enabled;
  549|    519|    };

_ZN7glslang13TParseContextC2ERNS_12TSymbolTableERNS_13TIntermediateEbi8EProfileRKNS_10SpvVersionE11EShLanguageR9TInfoSinkb11EShMessagesPKNSt3__112basic_stringIcNSD_11char_traitsIcEENS_14pool_allocatorIcEEEE:
   60|  18.7k|            TParseContextBase(symbolTable, interm, parsingBuiltins, version, profile, spvVersion, language,
   61|  18.7k|                              infoSink, forwardCompatible, messages, entryPoint),
   62|  18.7k|            inMain(false),
   63|  18.7k|            blockName(nullptr),
   64|  18.7k|            limits(resources.limits),
   65|  18.7k|            atomicUintOffsets(nullptr), anyIndexLimits(false),
   66|  18.7k|            khrDerivativeLayoutQualifierSpecified(false)
   67|  18.7k|{
   68|       |    // decide whether precision qualifiers should be ignored or respected
   69|  18.7k|    if (isEsProfile() || spvVersion.vulkan > 0) {
  ------------------
  |  Branch (69:9): [True: 2.08k, False: 16.6k]
  |  Branch (69:26): [True: 16.6k, False: 0]
  ------------------
   70|  18.7k|        precisionManager.respectPrecisionQualifiers();
   71|  18.7k|        if (! parsingBuiltins && language == EShLangFragment && !isEsProfile() && spvVersion.vulkan > 0)
  ------------------
  |  Branch (71:13): [True: 4.26k, False: 14.4k]
  |  Branch (71:34): [True: 1.42k, False: 2.84k]
  |  Branch (71:65): [True: 1.27k, False: 148]
  |  Branch (71:83): [True: 1.27k, False: 0]
  ------------------
   72|  1.27k|            precisionManager.warnAboutDefaults();
   73|  18.7k|    }
   74|       |
   75|  18.7k|    setPrecisionDefaults();
   76|       |
   77|  18.7k|    globalUniformDefaults.clear();
   78|  18.7k|    globalUniformDefaults.layoutMatrix = ElmColumnMajor;
   79|  18.7k|    globalUniformDefaults.layoutPacking = spvVersion.spv != 0 ? ElpStd140 : ElpShared;
  ------------------
  |  Branch (79:43): [True: 18.7k, False: 0]
  ------------------
   80|       |
   81|  18.7k|    globalBufferDefaults.clear();
   82|  18.7k|    globalBufferDefaults.layoutMatrix = ElmColumnMajor;
   83|  18.7k|    globalBufferDefaults.layoutPacking = spvVersion.spv != 0 ? ElpStd430 : ElpShared;
  ------------------
  |  Branch (83:42): [True: 18.7k, False: 0]
  ------------------
   84|       |
   85|  18.7k|    globalInputDefaults.clear();
   86|  18.7k|    globalOutputDefaults.clear();
   87|       |
   88|  18.7k|    globalSharedDefaults.clear();
   89|  18.7k|    globalSharedDefaults.layoutMatrix = ElmColumnMajor;
   90|  18.7k|    globalSharedDefaults.layoutPacking = ElpStd430;
   91|       |
   92|       |    // "Shaders in the transform
   93|       |    // feedback capturing mode have an initial global default of
   94|       |    //     layout(xfb_buffer = 0) out;"
   95|  18.7k|    if (language == EShLangVertex ||
  ------------------
  |  Branch (95:9): [True: 8.52k, False: 10.2k]
  ------------------
   96|  10.2k|        language == EShLangTessControl ||
  ------------------
  |  Branch (96:9): [True: 904, False: 9.32k]
  ------------------
   97|  9.32k|        language == EShLangTessEvaluation ||
  ------------------
  |  Branch (97:9): [True: 904, False: 8.41k]
  ------------------
   98|  8.41k|        language == EShLangGeometry)
  ------------------
  |  Branch (98:9): [True: 904, False: 7.51k]
  ------------------
   99|  11.2k|        globalOutputDefaults.layoutXfbBuffer = 0;
  100|       |
  101|  18.7k|    if (language == EShLangGeometry)
  ------------------
  |  Branch (101:9): [True: 904, False: 17.8k]
  ------------------
  102|    904|        globalOutputDefaults.layoutStream = 0;
  103|       |
  104|  18.7k|    if (entryPoint != nullptr && entryPoint->size() > 0 && *entryPoint != "main")
  ------------------
  |  Branch (104:9): [True: 18.7k, False: 0]
  |  Branch (104:34): [True: 0, False: 18.7k]
  |  Branch (104:60): [True: 0, False: 0]
  ------------------
  105|      0|        infoSink.info.message(EPrefixError, "Source entry point must be \"main\"");
  106|  18.7k|}
_ZN7glslang13TParseContextD2Ev:
  109|  18.7k|{
  110|  18.7k|    delete [] atomicUintOffsets;
  111|  18.7k|}
_ZN7glslang13TParseContext20setPrecisionDefaultsEv:
  116|  18.7k|{
  117|       |    // Set all precision defaults to EpqNone, which is correct for all types
  118|       |    // when not obeying precision qualifiers, and correct for types that don't
  119|       |    // have defaults (thus getting an error on use) when obeying precision
  120|       |    // qualifiers.
  121|       |
  122|   749k|    for (int type = 0; type < EbtNumTypes; ++type)
  ------------------
  |  Branch (122:24): [True: 731k, False: 18.7k]
  ------------------
  123|   731k|        defaultPrecision[type] = EpqNone;
  124|       |
  125|   210M|    for (int type = 0; type < maxSamplerIndex; ++type)
  ------------------
  |  Branch (125:24): [True: 210M, False: 18.7k]
  ------------------
  126|   210M|        defaultSamplerPrecision[type] = EpqNone;
  127|       |
  128|       |    // replace with real precision defaults for those that have them
  129|  18.7k|    if (obeyPrecisionQualifiers()) {
  ------------------
  |  Branch (129:9): [True: 18.7k, False: 0]
  ------------------
  130|  18.7k|        if (isEsProfile()) {
  ------------------
  |  Branch (130:13): [True: 2.08k, False: 16.6k]
  ------------------
  131|       |            // Most don't have defaults, a few default to lowp.
  132|  2.08k|            TSampler sampler;
  133|  2.08k|            sampler.set(EbtFloat, Esd2D);
  134|  2.08k|            defaultSamplerPrecision[computeSamplerTypeIndex(sampler)] = EpqLow;
  135|  2.08k|            sampler.set(EbtFloat, EsdCube);
  136|  2.08k|            defaultSamplerPrecision[computeSamplerTypeIndex(sampler)] = EpqLow;
  137|  2.08k|            sampler.set(EbtFloat, Esd2D);
  138|  2.08k|            sampler.setExternal(true);
  139|  2.08k|            defaultSamplerPrecision[computeSamplerTypeIndex(sampler)] = EpqLow;
  140|  2.08k|        }
  141|       |
  142|       |        // If we are parsing built-in computational variables/functions, it is meaningful to record
  143|       |        // whether the built-in has no precision qualifier, as that ambiguity
  144|       |        // is used to resolve the precision from the supplied arguments/operands instead.
  145|       |        // So, we don't actually want to replace EpqNone with a default precision for built-ins.
  146|  18.7k|        if (! parsingBuiltins) {
  ------------------
  |  Branch (146:13): [True: 4.26k, False: 14.4k]
  ------------------
  147|  4.26k|            if (isEsProfile() && language == EShLangFragment) {
  ------------------
  |  Branch (147:17): [True: 444, False: 3.81k]
  |  Branch (147:34): [True: 148, False: 296]
  ------------------
  148|    148|                defaultPrecision[EbtInt] = EpqMedium;
  149|    148|                defaultPrecision[EbtUint] = EpqMedium;
  150|  4.11k|            } else {
  151|  4.11k|                defaultPrecision[EbtInt] = EpqHigh;
  152|  4.11k|                defaultPrecision[EbtUint] = EpqHigh;
  153|  4.11k|                defaultPrecision[EbtFloat] = EpqHigh;
  154|  4.11k|            }
  155|       |
  156|  4.26k|            if (!isEsProfile()) {
  ------------------
  |  Branch (156:17): [True: 3.81k, False: 444]
  ------------------
  157|       |                // Non-ES profile
  158|       |                // All sampler precisions default to highp.
  159|  42.8M|                for (int type = 0; type < maxSamplerIndex; ++type)
  ------------------
  |  Branch (159:36): [True: 42.8M, False: 3.81k]
  ------------------
  160|  42.8M|                    defaultSamplerPrecision[type] = EpqHigh;
  161|  3.81k|            }
  162|  4.26k|        }
  163|       |
  164|  18.7k|        defaultPrecision[EbtSampler] = EpqLow;
  165|  18.7k|        defaultPrecision[EbtAtomicUint] = EpqHigh;
  166|  18.7k|    }
  167|  18.7k|}
_ZN7glslang13TParseContext9setLimitsERK16TBuiltInResource:
  170|  4.26k|{
  171|  4.26k|    resources = r;
  172|  4.26k|    intermediate.setLimits(r);
  173|       |
  174|  4.26k|    anyIndexLimits = ! limits.generalAttributeMatrixVectorIndexing ||
  ------------------
  |  Branch (174:22): [True: 0, False: 4.26k]
  ------------------
  175|  4.26k|                     ! limits.generalConstantMatrixVectorIndexing ||
  ------------------
  |  Branch (175:22): [True: 0, False: 4.26k]
  ------------------
  176|  4.26k|                     ! limits.generalSamplerIndexing ||
  ------------------
  |  Branch (176:22): [True: 0, False: 4.26k]
  ------------------
  177|  4.26k|                     ! limits.generalUniformIndexing ||
  ------------------
  |  Branch (177:22): [True: 0, False: 4.26k]
  ------------------
  178|  4.26k|                     ! limits.generalVariableIndexing ||
  ------------------
  |  Branch (178:22): [True: 0, False: 4.26k]
  ------------------
  179|  4.26k|                     ! limits.generalVaryingIndexing;
  ------------------
  |  Branch (179:22): [True: 0, False: 4.26k]
  ------------------
  180|       |
  181|       |
  182|       |    // "Each binding point tracks its own current default offset for
  183|       |    // inheritance of subsequent variables using the same binding. The initial state of compilation is that all
  184|       |    // binding points have an offset of 0."
  185|  4.26k|    atomicUintOffsets = new int[resources.maxAtomicCounterBindings];
  186|  8.52k|    for (int b = 0; b < resources.maxAtomicCounterBindings; ++b)
  ------------------
  |  Branch (186:21): [True: 4.26k, False: 4.26k]
  ------------------
  187|  4.26k|        atomicUintOffsets[b] = 0;
  188|  4.26k|}
_ZN7glslang13TParseContext18parseShaderStringsERNS_10TPpContextERNS_13TInputScannerEb:
  198|  15.9k|{
  199|  15.9k|    currentScanner = &input;
  200|  15.9k|    ppContext.setInput(input, versionWillBeError);
  201|  15.9k|    yyparse(this);
  202|       |
  203|  15.9k|    finish();
  204|       |
  205|  15.9k|    return numErrors == 0;
  206|  15.9k|}
_ZN7glslang13TParseContext11parserErrorEPKc:
  213|  1.23k|{
  214|  1.23k|    if (! getScanner()->atEndOfInput() || numErrors == 0)
  ------------------
  |  Branch (214:9): [True: 1.17k, False: 55]
  |  Branch (214:43): [True: 2, False: 53]
  ------------------
  215|  1.17k|        error(getCurrentLoc(), "", "", "%s", s);
  216|     53|    else
  217|     53|        error(getCurrentLoc(), "compilation terminated", "", "");
  218|  1.23k|}
_ZN7glslang13TParseContext12setInvariantERKNS_10TSourceLocEPKc:
  322|    180|void TParseContext::setInvariant(const TSourceLoc& loc, const char* builtin) {
  323|    180|    TSymbol* symbol = symbolTable.find(builtin);
  324|    180|    if (symbol && symbol->getType().getQualifier().isPipeOutput()) {
  ------------------
  |  Branch (324:9): [True: 42, False: 138]
  |  Branch (324:19): [True: 38, False: 4]
  ------------------
  325|     38|        if (intermediate.inIoAccessed(builtin))
  ------------------
  |  Branch (325:13): [True: 1, False: 37]
  ------------------
  326|      1|            warn(loc, "changing qualification after use", "invariant", "%s", builtin);
  327|     38|        TSymbol* csymbol = symbolTable.copyUp(symbol);
  328|     38|        if (csymbol)
  ------------------
  |  Branch (328:13): [True: 38, False: 0]
  ------------------
  329|     38|            csymbol->getWritableType().getQualifier().invariant = true;
  330|      0|        else
  331|      0|            warn(loc, "cannot make invariant after another member of its block was declared", builtin, "");
  332|     38|    }
  333|    180|}
_ZN7glslang13TParseContext12handlePragmaERKNS_10TSourceLocERKNS_7TVectorINSt3__112basic_stringIcNS5_11char_traitsIcEENS_14pool_allocatorIcEEEEEE:
  336|     40|{
  337|     40|    if (pragmaCallback)
  ------------------
  |  Branch (337:9): [True: 36, False: 4]
  ------------------
  338|     36|        pragmaCallback(loc.line, tokens);
  339|       |
  340|     40|    if (tokens.size() == 0)
  ------------------
  |  Branch (340:9): [True: 0, False: 40]
  ------------------
  341|      0|        return;
  342|       |
  343|     40|    if (tokens[0].compare("optimize") == 0) {
  ------------------
  |  Branch (343:9): [True: 0, False: 40]
  ------------------
  344|      0|        if (tokens.size() != 4) {
  ------------------
  |  Branch (344:13): [True: 0, False: 0]
  ------------------
  345|      0|            error(loc, "optimize pragma syntax is incorrect", "#pragma", "");
  346|      0|            return;
  347|      0|        }
  348|       |
  349|      0|        if (tokens[1].compare("(") != 0) {
  ------------------
  |  Branch (349:13): [True: 0, False: 0]
  ------------------
  350|      0|            error(loc, "\"(\" expected after 'optimize' keyword", "#pragma", "");
  351|      0|            return;
  352|      0|        }
  353|       |
  354|      0|        if (tokens[2].compare("on") == 0)
  ------------------
  |  Branch (354:13): [True: 0, False: 0]
  ------------------
  355|      0|            contextPragma.optimize = true;
  356|      0|        else if (tokens[2].compare("off") == 0)
  ------------------
  |  Branch (356:18): [True: 0, False: 0]
  ------------------
  357|      0|            contextPragma.optimize = false;
  358|      0|        else {
  359|      0|            if(relaxedErrors())
  ------------------
  |  Branch (359:16): [True: 0, False: 0]
  ------------------
  360|       |                //  If an implementation does not recognize the tokens following #pragma, then it will ignore that pragma.
  361|      0|                warn(loc, "\"on\" or \"off\" expected after '(' for 'optimize' pragma", "#pragma", "");
  362|      0|            return;
  363|      0|        }
  364|       |
  365|      0|        if (tokens[3].compare(")") != 0) {
  ------------------
  |  Branch (365:13): [True: 0, False: 0]
  ------------------
  366|      0|            error(loc, "\")\" expected to end 'optimize' pragma", "#pragma", "");
  367|      0|            return;
  368|      0|        }
  369|     40|    } else if (tokens[0].compare("debug") == 0) {
  ------------------
  |  Branch (369:16): [True: 0, False: 40]
  ------------------
  370|      0|        if (tokens.size() != 4) {
  ------------------
  |  Branch (370:13): [True: 0, False: 0]
  ------------------
  371|      0|            error(loc, "debug pragma syntax is incorrect", "#pragma", "");
  372|      0|            return;
  373|      0|        }
  374|       |
  375|      0|        if (tokens[1].compare("(") != 0) {
  ------------------
  |  Branch (375:13): [True: 0, False: 0]
  ------------------
  376|      0|            error(loc, "\"(\" expected after 'debug' keyword", "#pragma", "");
  377|      0|            return;
  378|      0|        }
  379|       |
  380|      0|        if (tokens[2].compare("on") == 0)
  ------------------
  |  Branch (380:13): [True: 0, False: 0]
  ------------------
  381|      0|            contextPragma.debug = true;
  382|      0|        else if (tokens[2].compare("off") == 0)
  ------------------
  |  Branch (382:18): [True: 0, False: 0]
  ------------------
  383|      0|            contextPragma.debug = false;
  384|      0|        else {
  385|      0|            if(relaxedErrors())
  ------------------
  |  Branch (385:16): [True: 0, False: 0]
  ------------------
  386|       |                //  If an implementation does not recognize the tokens following #pragma, then it will ignore that pragma.
  387|      0|                warn(loc, "\"on\" or \"off\" expected after '(' for 'debug' pragma", "#pragma", "");
  388|      0|            return;
  389|      0|        }
  390|       |
  391|      0|        if (tokens[3].compare(")") != 0) {
  ------------------
  |  Branch (391:13): [True: 0, False: 0]
  ------------------
  392|      0|            error(loc, "\")\" expected to end 'debug' pragma", "#pragma", "");
  393|      0|            return;
  394|      0|        }
  395|     40|    } else if (spvVersion.spv > 0 && tokens[0].compare("use_storage_buffer") == 0) {
  ------------------
  |  Branch (395:16): [True: 40, False: 0]
  |  Branch (395:38): [True: 0, False: 40]
  ------------------
  396|      0|        if (tokens.size() != 1)
  ------------------
  |  Branch (396:13): [True: 0, False: 0]
  ------------------
  397|      0|            error(loc, "extra tokens", "#pragma", "");
  398|      0|        intermediate.setUseStorageBuffer();
  399|     40|    } else if (spvVersion.spv > 0 && tokens[0].compare("use_vulkan_memory_model") == 0) {
  ------------------
  |  Branch (399:16): [True: 40, False: 0]
  |  Branch (399:38): [True: 0, False: 40]
  ------------------
  400|      0|        if (tokens.size() != 1)
  ------------------
  |  Branch (400:13): [True: 0, False: 0]
  ------------------
  401|      0|            error(loc, "extra tokens", "#pragma", "");
  402|      0|        intermediate.setUseVulkanMemoryModel();
  403|     40|    } else if (spvVersion.spv > 0 && tokens[0].compare("use_variable_pointers") == 0) {
  ------------------
  |  Branch (403:16): [True: 40, False: 0]
  |  Branch (403:38): [True: 0, False: 40]
  ------------------
  404|      0|        if (tokens.size() != 1)
  ------------------
  |  Branch (404:13): [True: 0, False: 0]
  ------------------
  405|      0|            error(loc, "extra tokens", "#pragma", "");
  406|      0|        if (spvVersion.spv < glslang::EShTargetSpv_1_3)
  ------------------
  |  Branch (406:13): [True: 0, False: 0]
  ------------------
  407|      0|            error(loc, "requires SPIR-V 1.3", "#pragma use_variable_pointers", "");
  408|      0|        intermediate.setUseVariablePointers();
  409|     40|    } else if (spvVersion.spv > 0 && tokens[0].compare("use_replicated_composites") == 0) {
  ------------------
  |  Branch (409:16): [True: 40, False: 0]
  |  Branch (409:38): [True: 0, False: 40]
  ------------------
  410|      0|        if (tokens.size() != 1)
  ------------------
  |  Branch (410:13): [True: 0, False: 0]
  ------------------
  411|      0|            error(loc, "extra tokens", "#pragma", "");
  412|      0|        intermediate.setReplicatedComposites();
  413|     40|    } else if (spvVersion.spv > 0 && tokens[0].compare("promote_uint32_indices") == 0) {
  ------------------
  |  Branch (413:16): [True: 40, False: 0]
  |  Branch (413:38): [True: 0, False: 40]
  ------------------
  414|      0|        if (tokens.size() != 1)
  ------------------
  |  Branch (414:13): [True: 0, False: 0]
  ------------------
  415|      0|            error(loc, "extra tokens", "#pragma", "");
  416|      0|        intermediate.setPromoteUint32Indices();
  417|     40|    } else if (spvVersion.spv > 0 && tokens[0].compare("shader_64bit_indexing") == 0) {
  ------------------
  |  Branch (417:16): [True: 40, False: 0]
  |  Branch (417:38): [True: 0, False: 40]
  ------------------
  418|      0|        if (tokens.size() != 1)
  ------------------
  |  Branch (418:13): [True: 0, False: 0]
  ------------------
  419|      0|            error(loc, "extra tokens", "#pragma", "");
  420|      0|        intermediate.setShader64BitIndexing();
  421|     40|    } else if (tokens[0].compare("once") == 0) {
  ------------------
  |  Branch (421:16): [True: 5, False: 35]
  ------------------
  422|      5|        warn(loc, "not implemented", "#pragma once", "");
  423|     35|    } else if (tokens[0].compare("glslang_binary_double_output") == 0) {
  ------------------
  |  Branch (423:16): [True: 0, False: 35]
  ------------------
  424|      0|        intermediate.setBinaryDoubleOutput();
  425|     35|    } else if (spvVersion.spv > 0 && tokens[0].compare("STDGL") == 0) {
  ------------------
  |  Branch (425:16): [True: 35, False: 0]
  |  Branch (425:38): [True: 13, False: 22]
  ------------------
  426|       |        // The only valid STDGL pragma is #pragma STDGL invariant(all)
  427|     13|        if (tokens.size() > 5)
  ------------------
  |  Branch (427:13): [True: 4, False: 9]
  ------------------
  428|      4|            error(loc, "extra tokens", "#pragma", "");
  429|       |
  430|     13|        if (tokens.size() < 5) {
  ------------------
  |  Branch (430:13): [True: 2, False: 11]
  ------------------
  431|      2|            error(loc, "truncated STDGL declaration", "#pragma", "");
  432|      2|            return;
  433|      2|        }
  434|     11|        if (tokens[2].compare("(") != 0
  ------------------
  |  Branch (434:13): [True: 4, False: 7]
  ------------------
  435|      4|            && tokens[4].compare(")") != 0)
  ------------------
  |  Branch (435:16): [True: 4, False: 0]
  ------------------
  436|      4|            error(loc, "Invalid STDGL declaration", "#pragma", "");
  437|     11|        if (tokens[1].compare("invariant") == 0) {
  ------------------
  |  Branch (437:13): [True: 9, False: 2]
  ------------------
  438|      9|            if(tokens[3].compare("all") != 0)
  ------------------
  |  Branch (438:16): [True: 2, False: 7]
  ------------------
  439|      2|                error(loc, "Invalid STDGL invariant declaration:", "#pragma", "'%s' (expected 'all')", tokens[3].c_str());
  440|       |
  441|      9|            intermediate.setInvariantAll();
  442|       |            // Set all builtin out variables invariant if declared
  443|      9|            setInvariant(loc, "gl_Position");
  444|      9|            setInvariant(loc, "gl_PointSize");
  445|      9|            setInvariant(loc, "gl_ClipDistance");
  446|      9|            setInvariant(loc, "gl_CullDistance");
  447|      9|            setInvariant(loc, "gl_TessLevelOuter");
  448|      9|            setInvariant(loc, "gl_TessLevelInner");
  449|      9|            setInvariant(loc, "gl_PrimitiveID");
  450|      9|            setInvariant(loc, "gl_Layer");
  451|      9|            setInvariant(loc, "gl_ViewportIndex");
  452|      9|            setInvariant(loc, "gl_FragDepth");
  453|      9|            setInvariant(loc, "gl_SampleMask");
  454|      9|            setInvariant(loc, "gl_ClipVertex");
  455|      9|            setInvariant(loc, "gl_FrontColor");
  456|      9|            setInvariant(loc, "gl_BackColor");
  457|      9|            setInvariant(loc, "gl_FrontSecondaryColor");
  458|      9|            setInvariant(loc, "gl_BackSecondaryColor");
  459|      9|            setInvariant(loc, "gl_TexCoord");
  460|      9|            setInvariant(loc, "gl_FogFragCoord");
  461|      9|            setInvariant(loc, "gl_FragColor");
  462|      9|            setInvariant(loc, "gl_FragData");
  463|      9|        } else {
  464|      2|            error(loc, "Unknown STDGL declaration:", "#pragma", "%s", tokens[1].c_str());
  465|      2|        }
  466|     11|    }
  467|     40|}
_ZN7glslang13TParseContext14handleVariableERKNS_10TSourceLocEPNS_7TSymbolEPKNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEE:
  473|   253k|{
  474|   253k|    TIntermTyped* node = nullptr;
  475|       |
  476|       |    // Error check for requiring specific extensions present.
  477|   253k|    if (symbol && symbol->getNumExtensions())
  ------------------
  |  Branch (477:9): [True: 201k, False: 51.9k]
  |  Branch (477:19): [True: 3.24k, False: 197k]
  ------------------
  478|  3.24k|        requireExtensions(loc, symbol->getNumExtensions(), symbol->getExtensions(), symbol->getName().c_str());
  479|       |
  480|   253k|    if (symbol && symbol->isReadOnly()) {
  ------------------
  |  Branch (480:9): [True: 201k, False: 51.9k]
  |  Branch (480:19): [True: 3.63k, False: 197k]
  ------------------
  481|       |        // All shared things containing an unsized array must be copied up
  482|       |        // on first use, so that all future references will share its array structure,
  483|       |        // so that editing the implicit size will effect all nodes consuming it,
  484|       |        // and so that editing the implicit size won't change the shared one.
  485|       |        //
  486|       |        // If this is a variable or a block, check it and all it contains, but if this
  487|       |        // is a member of an anonymous block, check the whole block, as the whole block
  488|       |        // will need to be copied up if it contains an unsized array.
  489|       |        //
  490|       |        // This check is being done before the block-name check further down, so guard
  491|       |        // for that too.
  492|  3.63k|        if (!symbol->getType().isUnusableName()) {
  ------------------
  |  Branch (492:13): [True: 3.63k, False: 0]
  ------------------
  493|  3.63k|            if (symbol->getType().containsUnsizedArray() ||
  ------------------
  |  Branch (493:17): [True: 172, False: 3.46k]
  ------------------
  494|  3.46k|                (symbol->getAsAnonMember() &&
  ------------------
  |  Branch (494:18): [True: 1, False: 3.46k]
  ------------------
  495|      1|                 symbol->getAsAnonMember()->getAnonContainer().getType().containsUnsizedArray()))
  ------------------
  |  Branch (495:18): [True: 1, False: 0]
  ------------------
  496|    173|                makeEditable(symbol);
  497|  3.63k|        }
  498|  3.63k|    }
  499|       |
  500|   253k|    const TVariable* variable;
  501|   253k|    const TAnonMember* anon = symbol ? symbol->getAsAnonMember() : nullptr;
  ------------------
  |  Branch (501:31): [True: 201k, False: 51.9k]
  ------------------
  502|   253k|    if (anon) {
  ------------------
  |  Branch (502:9): [True: 4.71k, False: 248k]
  ------------------
  503|       |        // It was a member of an anonymous container.
  504|       |
  505|       |        // Create a subtree for its dereference.
  506|  4.71k|        variable = anon->getAnonContainer().getAsVariable();
  507|  4.71k|        TIntermTyped* container = intermediate.addSymbol(*variable, loc);
  508|  4.71k|        TIntermTyped* constNode = intermediate.addConstantUnion(anon->getMemberNumber(), loc);
  509|  4.71k|        node = intermediate.addIndex(EOpIndexDirectStruct, container, constNode, loc);
  510|       |
  511|  4.71k|        node->setType(*(*variable->getType().getStruct())[anon->getMemberNumber()].type);
  512|  4.71k|        if (node->getType().hiddenMember())
  ------------------
  |  Branch (512:13): [True: 0, False: 4.71k]
  ------------------
  513|      0|            error(loc, "member of nameless block was not redeclared", string->c_str(), "");
  514|   248k|    } else {
  515|       |        // Not a member of an anonymous container.
  516|       |
  517|       |        // The symbol table search was done in the lexical phase.
  518|       |        // See if it was a variable.
  519|   248k|        variable = symbol ? symbol->getAsVariable() : nullptr;
  ------------------
  |  Branch (519:20): [True: 196k, False: 51.9k]
  ------------------
  520|   248k|        if (variable) {
  ------------------
  |  Branch (520:13): [True: 196k, False: 51.9k]
  ------------------
  521|   196k|            if (variable->getType().isUnusableName()) {
  ------------------
  |  Branch (521:17): [True: 0, False: 196k]
  ------------------
  522|      0|                error(loc, "cannot be used (maybe an instance name is needed)", string->c_str(), "");
  523|      0|                variable = nullptr;
  524|      0|            }
  525|       |
  526|   196k|            if (language == EShLangMesh && variable) {
  ------------------
  |  Branch (526:17): [True: 0, False: 196k]
  |  Branch (526:44): [True: 0, False: 0]
  ------------------
  527|      0|                TLayoutGeometry primitiveType = intermediate.getOutputPrimitive();
  528|      0|                if ((variable->getMangledName() == "gl_PrimitiveTriangleIndicesEXT" && primitiveType != ElgTriangles) ||
  ------------------
  |  Branch (528:22): [True: 0, False: 0]
  |  Branch (528:88): [True: 0, False: 0]
  ------------------
  529|      0|                    (variable->getMangledName() == "gl_PrimitiveLineIndicesEXT" && primitiveType != ElgLines) ||
  ------------------
  |  Branch (529:22): [True: 0, False: 0]
  |  Branch (529:84): [True: 0, False: 0]
  ------------------
  530|      0|                    (variable->getMangledName() == "gl_PrimitivePointIndicesEXT" && primitiveType != ElgPoints)) {
  ------------------
  |  Branch (530:22): [True: 0, False: 0]
  |  Branch (530:85): [True: 0, False: 0]
  ------------------
  531|      0|                    error(loc, "cannot be used (output primitive type mismatch)", string->c_str(), "");
  532|      0|                    variable = nullptr;
  533|      0|                }
  534|      0|            }
  535|   196k|        } else {
  536|  51.9k|            if (symbol)
  ------------------
  |  Branch (536:17): [True: 0, False: 51.9k]
  ------------------
  537|      0|                error(loc, "variable name expected", string->c_str(), "");
  538|  51.9k|        }
  539|       |
  540|       |        // Recovery, if it wasn't found or was not a variable.
  541|   248k|        if (! variable) {
  ------------------
  |  Branch (541:13): [True: 51.9k, False: 196k]
  ------------------
  542|  51.9k|            bool builtIn = false;
  543|  51.9k|            TVector<const TFunction*> candidateList;
  544|  51.9k|            symbolTable.findFunctionNameList(*string + "(", candidateList, builtIn);
  545|       |
  546|       |            // If it's a function, pass the name/mangledName
  547|  51.9k|            if (!candidateList.empty() && !builtIn) {
  ------------------
  |  Branch (547:17): [True: 45.3k, False: 6.60k]
  |  Branch (547:43): [True: 2.28k, False: 43.0k]
  ------------------
  548|  2.28k|                variable = new TVariable(&candidateList[0]->getName(), &candidateList[0]->getMangledName(), TType(EbtFunction));
  549|  49.6k|            } else {
  550|  49.6k|                variable = new TVariable(string, TType(EbtVoid));
  551|  49.6k|            }
  552|  51.9k|        }
  553|       |
  554|       |        // Track use of gl_RayFlagsForceOpacityMicromap2StateEXT before the front-end
  555|       |        // constant fold loses the name. Referencing this built-in is the GLSL-level
  556|       |        // signal that the SPIR-V RayFlags bit ForceOpacityMicromap2StateKHR (0x400)
  557|       |        // will reach a trace / ray-query call, which requires the
  558|       |        // RayTracingOpacityMicromapEXT capability.
  559|   248k|        if (variable->getName() == "gl_RayFlagsForceOpacityMicromap2StateEXT")
  ------------------
  |  Branch (559:13): [True: 0, False: 248k]
  ------------------
  560|      0|            intermediate.setUsesOpacityMicromap2StateFlag();
  561|       |
  562|   248k|        if (variable->getType().getQualifier().isFrontEndConstant())
  ------------------
  |  Branch (562:13): [True: 7.23k, False: 241k]
  ------------------
  563|  7.23k|            node = intermediate.addConstantUnion(variable->getConstArray(), variable->getType(), loc);
  564|   241k|        else
  565|   241k|            node = intermediate.addSymbol(*variable, loc);
  566|   248k|    }
  567|       |
  568|   253k|    if (variable->getType().getQualifier().isIo())
  ------------------
  |  Branch (568:9): [True: 44.5k, False: 208k]
  ------------------
  569|  44.5k|        intermediate.addIoAccessed(*string);
  570|       |
  571|   253k|    if (variable->getType().isReference() &&
  ------------------
  |  Branch (571:9): [True: 0, False: 253k]
  ------------------
  572|      0|        variable->getType().getQualifier().bufferReferenceNeedsVulkanMemoryModel()) {
  ------------------
  |  Branch (572:9): [True: 0, False: 0]
  ------------------
  573|      0|        intermediate.setUseVulkanMemoryModel();
  574|      0|    }
  575|       |
  576|   253k|    return node;
  577|   253k|}
_ZN7glslang13TParseContext24handleBracketDereferenceERKNS_10TSourceLocEPNS_12TIntermTypedES5_:
  583|  4.64k|{
  584|  4.64k|    int64_t indexValue = 0;
  585|  4.64k|    if (index->getQualifier().isFrontEndConstant()) {
  ------------------
  |  Branch (585:9): [True: 3.44k, False: 1.19k]
  ------------------
  586|  3.44k|        if (index->getType().contains64BitInt()) {
  ------------------
  |  Branch (586:13): [True: 0, False: 3.44k]
  ------------------
  587|      0|            indexValue = index->getAsConstantUnion()->getConstArray()[0].getI64Const();
  588|  3.44k|        } else if (index->getType().getBasicType() == EbtUint) {
  ------------------
  |  Branch (588:20): [True: 0, False: 3.44k]
  ------------------
  589|      0|            indexValue = index->getAsConstantUnion()->getConstArray()[0].getUConst();
  590|  3.44k|        } else {
  591|  3.44k|            indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst();
  592|  3.44k|        }
  593|  3.44k|    }
  594|       |    // basic type checks...
  595|  4.64k|    variableCheck(base);
  596|       |
  597|  4.64k|    if (! base->isArray() && ! base->isMatrix() && ! base->isVector() && ! base->getType().isCoopMat() &&
  ------------------
  |  Branch (597:9): [True: 890, False: 3.75k]
  |  Branch (597:30): [True: 512, False: 378]
  |  Branch (597:52): [True: 61, False: 451]
  |  Branch (597:74): [True: 61, False: 0]
  ------------------
  598|     61|        ! base->isReference() && ! base->getType().isCoopVecOrLongVector()) {
  ------------------
  |  Branch (598:9): [True: 61, False: 0]
  |  Branch (598:34): [True: 61, False: 0]
  ------------------
  599|     61|        if (base->getAsSymbolNode())
  ------------------
  |  Branch (599:13): [True: 51, False: 10]
  ------------------
  600|     51|            error(loc, " left of '[' is not of type array, matrix, or vector ", base->getAsSymbolNode()->getName().c_str(), "");
  601|     10|        else
  602|     10|            error(loc, " left of '[' is not of type array, matrix, or vector ", "expression", "");
  603|       |
  604|       |        // Insert dummy error-recovery result
  605|     61|        return intermediate.addConstantUnion(0.0, EbtFloat, loc);
  606|     61|    }
  607|       |
  608|  4.58k|    if (!base->isArray() && base->isVector()) {
  ------------------
  |  Branch (608:9): [True: 829, False: 3.75k]
  |  Branch (608:29): [True: 451, False: 378]
  ------------------
  609|    451|        if (base->getType().contains16BitFloat())
  ------------------
  |  Branch (609:13): [True: 0, False: 451]
  ------------------
  610|      0|            requireFloat16Arithmetic(loc, "[", "does not operate on types containing float16");
  611|    451|        if (base->getType().contains16BitInt())
  ------------------
  |  Branch (611:13): [True: 0, False: 451]
  ------------------
  612|      0|            requireInt16Arithmetic(loc, "[", "does not operate on types containing (u)int16");
  613|    451|        if (base->getType().contains8BitInt())
  ------------------
  |  Branch (613:13): [True: 0, False: 451]
  ------------------
  614|      0|            requireInt8Arithmetic(loc, "[", "does not operate on types containing (u)int8");
  615|    451|    }
  616|       |
  617|       |    // check for constant folding
  618|  4.58k|    if (base->getType().getQualifier().isFrontEndConstant() && index->getQualifier().isFrontEndConstant()) {
  ------------------
  |  Branch (618:9): [True: 1.07k, False: 3.51k]
  |  Branch (618:64): [True: 751, False: 319]
  ------------------
  619|       |        // both base and index are front-end constants
  620|    751|        checkIndex(loc, base->getType(), indexValue);
  621|    751|        return intermediate.foldDereference(base, indexValue, loc);
  622|    751|    }
  623|       |
  624|       |    // at least one of base and index is not a front-end constant variable...
  625|  3.83k|    TIntermTyped* result = nullptr;
  626|       |
  627|  3.83k|    if (base->isReference() && ! base->isArray()) {
  ------------------
  |  Branch (627:9): [True: 0, False: 3.83k]
  |  Branch (627:32): [True: 0, False: 0]
  ------------------
  628|      0|        requireExtensions(loc, 1, &E_GL_EXT_buffer_reference2, "buffer reference indexing");
  629|      0|        if (base->getType().getReferentType()->containsUnsizedArray()) {
  ------------------
  |  Branch (629:13): [True: 0, False: 0]
  ------------------
  630|      0|            error(loc, "cannot index reference to buffer containing an unsized array", "", "");
  631|      0|            result = nullptr;
  632|      0|        } else {
  633|      0|            result = intermediate.addBinaryMath(EOpAdd, base, index, loc);
  634|      0|            if (result != nullptr)
  ------------------
  |  Branch (634:17): [True: 0, False: 0]
  ------------------
  635|      0|                result->setType(base->getType());
  636|      0|        }
  637|      0|        if (result == nullptr) {
  ------------------
  |  Branch (637:13): [True: 0, False: 0]
  ------------------
  638|      0|            error(loc, "cannot index buffer reference", "", "");
  639|      0|            result = intermediate.addConstantUnion(0.0, EbtFloat, loc);
  640|      0|        }
  641|      0|        return result;
  642|      0|    }
  643|  3.83k|    if (base->getAsSymbolNode() && isIoResizeArray(base->getType()))
  ------------------
  |  Branch (643:9): [True: 3.17k, False: 655]
  |  Branch (643:36): [True: 0, False: 3.17k]
  ------------------
  644|      0|        handleIoResizeArrayAccess(loc, base);
  645|       |
  646|  3.83k|    if (index->getQualifier().isFrontEndConstant())
  ------------------
  |  Branch (646:9): [True: 2.65k, False: 1.17k]
  ------------------
  647|  2.65k|        checkIndex(loc, base->getType(), indexValue);
  648|       |
  649|  3.83k|    if (index->getQualifier().isFrontEndConstant()) {
  ------------------
  |  Branch (649:9): [True: 2.65k, False: 1.17k]
  ------------------
  650|  2.65k|        if (base->getType().isUnsizedArray()) {
  ------------------
  |  Branch (650:13): [True: 334, False: 2.32k]
  ------------------
  651|    334|            base->getWritableType().updateImplicitArraySize(indexValue + 1);
  652|    334|            base->getWritableType().setImplicitlySized(true);
  653|    334|            if (base->getQualifier().builtIn == EbvClipDistance &&
  ------------------
  |  Branch (653:17): [True: 61, False: 273]
  ------------------
  654|     61|                indexValue >= resources.maxClipDistances) {
  ------------------
  |  Branch (654:17): [True: 1, False: 60]
  ------------------
  655|      1|                error(loc, "gl_ClipDistance", "[", "array index out of range '%lld'", (long long)indexValue);
  656|      1|            }
  657|    333|            else if (base->getQualifier().builtIn == EbvCullDistance &&
  ------------------
  |  Branch (657:22): [True: 4, False: 329]
  ------------------
  658|      4|                indexValue >= resources.maxCullDistances) {
  ------------------
  |  Branch (658:17): [True: 0, False: 4]
  ------------------
  659|      0|                error(loc, "gl_CullDistance", "[", "array index out of range '%lld'", (long long)indexValue);
  660|      0|            }
  661|    333|            else if (base->getQualifier().builtIn == EbvSampleMask &&
  ------------------
  |  Branch (661:22): [True: 213, False: 120]
  ------------------
  662|    213|                indexValue >= (resources.maxSamples + 31) / 32) {
  ------------------
  |  Branch (662:17): [True: 0, False: 213]
  ------------------
  663|      0|                error(loc, "gl_SampleMask", "[", "array index out of range '%lld'", (long long)indexValue);
  664|      0|            }
  665|       |            // For 2D per-view builtin arrays, update the inner dimension size in parent type
  666|    334|            if (base->getQualifier().isPerView() && base->getQualifier().builtIn != EbvNone) {
  ------------------
  |  Branch (666:17): [True: 0, False: 334]
  |  Branch (666:53): [True: 0, False: 0]
  ------------------
  667|      0|                TIntermBinary* binaryNode = base->getAsBinaryNode();
  668|      0|                if (binaryNode) {
  ------------------
  |  Branch (668:21): [True: 0, False: 0]
  ------------------
  669|      0|                    TType& leftType = binaryNode->getLeft()->getWritableType();
  670|      0|                    TArraySizes& arraySizes = *leftType.getArraySizes();
  671|      0|                    assert(arraySizes.getNumDims() == 2);
  672|      0|                    assert(indexValue < std::numeric_limits<int>::max());
  673|      0|                    arraySizes.setDimSize(1, std::max(arraySizes.getDimSize(1), (int)indexValue + 1));
  674|      0|                }
  675|      0|            }
  676|    334|        } else
  677|  2.32k|            checkIndex(loc, base->getType(), indexValue);
  678|  2.65k|        result = intermediate.addIndex(EOpIndexDirect, base, index, loc);
  679|  2.65k|    } else {
  680|  1.17k|        if (base->getType().isUnsizedArray()) {
  ------------------
  |  Branch (680:13): [True: 3, False: 1.17k]
  ------------------
  681|       |            // we have a variable index into an unsized array, which is okay,
  682|       |            // depending on the situation
  683|      3|            if (base->getAsSymbolNode() && isIoResizeArray(base->getType()))
  ------------------
  |  Branch (683:17): [True: 3, False: 0]
  |  Branch (683:44): [True: 0, False: 3]
  ------------------
  684|      0|                error(loc, "", "[", "array must be sized by a redeclaration or layout qualifier before being indexed with a variable");
  685|      3|            else {
  686|       |                // it is okay for a run-time sized array
  687|      3|                checkRuntimeSizable(loc, *base);
  688|      3|            }
  689|      3|            base->getWritableType().setArrayVariablyIndexed();
  690|      3|        }
  691|  1.17k|        if (base->getBasicType() == EbtBlock) {
  ------------------
  |  Branch (691:13): [True: 350, False: 825]
  ------------------
  692|    350|            if (base->getQualifier().storage == EvqBuffer)
  ------------------
  |  Branch (692:17): [True: 0, False: 350]
  ------------------
  693|      0|                requireProfile(base->getLoc(), ~EEsProfile, "variable indexing buffer block array");
  694|    350|            else if (base->getQualifier().storage == EvqUniform) {
  ------------------
  |  Branch (694:22): [True: 271, False: 79]
  ------------------
  695|    271|                profileRequires(base->getLoc(), EEsProfile, 320, Num_AEP_gpu_shader5, AEP_gpu_shader5,
  696|    271|                                "variable indexing uniform block array");
  697|    271|                profileRequires(base->getLoc(), ECoreProfile, 400, Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5,
  698|    271|                                "variable indexing uniform block array");
  699|       |
  700|    271|            }
  701|     79|            else {
  702|       |                // input/output blocks either don't exist or can't be variably indexed
  703|     79|            }
  704|    825|        } else if (language == EShLangFragment && base->getQualifier().isPipeOutput() && base->getQualifier().builtIn != EbvSampleMask)
  ------------------
  |  Branch (704:20): [True: 825, False: 0]
  |  Branch (704:51): [True: 11, False: 814]
  |  Branch (704:90): [True: 11, False: 0]
  ------------------
  705|     11|            requireProfile(base->getLoc(), ~EEsProfile, "variable indexing fragment shader output array");
  706|    814|        else if (base->getBasicType() == EbtSampler && version >= 130) {
  ------------------
  |  Branch (706:18): [True: 414, False: 400]
  |  Branch (706:56): [True: 414, False: 0]
  ------------------
  707|    414|            const char* explanation = "variable indexing sampler array";
  708|    414|            requireProfile(base->getLoc(), EEsProfile | ECoreProfile | ECompatibilityProfile, explanation);
  709|    414|            profileRequires(base->getLoc(), EEsProfile, 320, Num_AEP_gpu_shader5, AEP_gpu_shader5, explanation);
  710|    414|            profileRequires(base->getLoc(), ECoreProfile | ECompatibilityProfile, 400, Num_AEP_core_gpu_shader5,
  711|    414|                            AEP_core_gpu_shader5, explanation);
  712|    414|        }
  713|       |
  714|  1.17k|        result = intermediate.addIndex(EOpIndexIndirect, base, index, loc);
  715|  1.17k|    }
  716|       |
  717|       |    // Insert valid dereferenced result type
  718|  3.83k|    TType newType(base->getType(), 0);
  719|  3.83k|    if (base->getType().getQualifier().isConstant() && index->getQualifier().isConstant()) {
  ------------------
  |  Branch (719:9): [True: 319, False: 3.51k]
  |  Branch (719:56): [True: 0, False: 319]
  ------------------
  720|      0|        newType.getQualifier().storage = EvqConst;
  721|       |        // If base or index is a specialization constant, the result should also be a specialization constant.
  722|      0|        if (base->getType().getQualifier().isSpecConstant() || index->getQualifier().isSpecConstant()) {
  ------------------
  |  Branch (722:13): [True: 0, False: 0]
  |  Branch (722:64): [True: 0, False: 0]
  ------------------
  723|      0|            newType.getQualifier().makeSpecConstant();
  724|      0|        }
  725|  3.83k|    } else {
  726|  3.83k|        newType.getQualifier().storage = EvqTemporary;
  727|  3.83k|        newType.getQualifier().specConstant = false;
  728|  3.83k|    }
  729|  3.83k|    result->setType(newType);
  730|       |
  731|  3.83k|    inheritMemoryQualifiers(base->getQualifier(), result->getWritableType().getQualifier());
  732|       |
  733|       |    // Propagate nonuniform
  734|  3.83k|    if (base->getQualifier().isNonUniform() || index->getQualifier().isNonUniform())
  ------------------
  |  Branch (734:9): [True: 0, False: 3.83k]
  |  Branch (734:48): [True: 0, False: 3.83k]
  ------------------
  735|      0|        result->getWritableType().getQualifier().nonUniform = true;
  736|       |
  737|  3.83k|    if (anyIndexLimits)
  ------------------
  |  Branch (737:9): [True: 0, False: 3.83k]
  ------------------
  738|      0|        handleIndexLimits(loc, base, index);
  739|       |
  740|  3.83k|    return result;
  741|  3.83k|}
_ZN7glslang13TParseContext12makeEditableERPNS_7TSymbolE:
  765|    286|{
  766|    286|    TParseContextBase::makeEditable(symbol);
  767|       |
  768|       |    // See if it's tied to IO resizing
  769|    286|    if (symbol && isIoResizeArray(symbol->getType()))
  ------------------
  |  Branch (769:9): [True: 286, False: 0]
  |  Branch (769:19): [True: 0, False: 286]
  ------------------
  770|      0|        ioArraySymbolResizeList.push_back(symbol);
  771|    286|}
_ZNK7glslang13TParseContext15isIoResizeArrayERKNS_5TTypeE:
  776|  14.7k|{
  777|  14.7k|    return type.isArray() &&
  ------------------
  |  Branch (777:12): [True: 10.2k, False: 4.51k]
  ------------------
  778|  10.2k|           ((language == EShLangGeometry    && type.getQualifier().storage == EvqVaryingIn) ||
  ------------------
  |  Branch (778:14): [True: 904, False: 9.31k]
  |  Branch (778:48): [True: 904, False: 0]
  ------------------
  779|  9.31k|            (language == EShLangTessControl && type.getQualifier().storage == EvqVaryingOut &&
  ------------------
  |  Branch (779:14): [True: 904, False: 8.40k]
  |  Branch (779:48): [True: 904, False: 0]
  ------------------
  780|    904|                ! type.getQualifier().patch) ||
  ------------------
  |  Branch (780:17): [True: 904, False: 0]
  ------------------
  781|  8.40k|            (language == EShLangFragment && type.getQualifier().storage == EvqVaryingIn &&
  ------------------
  |  Branch (781:14): [True: 7.17k, False: 1.23k]
  |  Branch (781:45): [True: 1.29k, False: 5.87k]
  ------------------
  782|  1.29k|                (type.getQualifier().pervertexNV || type.getQualifier().pervertexEXT)) ||
  ------------------
  |  Branch (782:18): [True: 0, False: 1.29k]
  |  Branch (782:53): [True: 0, False: 1.29k]
  ------------------
  783|  8.40k|            (language == EShLangMesh && type.getQualifier().storage == EvqVaryingOut &&
  ------------------
  |  Branch (783:14): [True: 1.23k, False: 7.17k]
  |  Branch (783:41): [True: 1.23k, False: 0]
  ------------------
  784|  1.23k|                !type.getQualifier().perTaskNV));
  ------------------
  |  Branch (784:17): [True: 1.23k, False: 0]
  ------------------
  785|  14.7k|}
_ZN7glslang13TParseContext14fixIoArraySizeERKNS_10TSourceLocERNS_5TTypeE:
  789|  8.04k|{
  790|  8.04k|    if (! type.isArray() || type.getQualifier().patch || symbolTable.atBuiltInLevel())
  ------------------
  |  Branch (790:9): [True: 4.18k, False: 3.85k]
  |  Branch (790:29): [True: 0, False: 3.85k]
  |  Branch (790:58): [True: 0, False: 3.85k]
  ------------------
  791|  4.18k|        return;
  792|       |
  793|  8.04k|    assert(! isIoResizeArray(type));
  794|       |
  795|  3.85k|    if (type.getQualifier().storage != EvqVaryingIn || type.getQualifier().patch)
  ------------------
  |  Branch (795:9): [True: 3.29k, False: 558]
  |  Branch (795:56): [True: 0, False: 558]
  ------------------
  796|  3.29k|        return;
  797|       |
  798|    558|    if (language == EShLangTessControl || language == EShLangTessEvaluation) {
  ------------------
  |  Branch (798:9): [True: 0, False: 558]
  |  Branch (798:43): [True: 0, False: 558]
  ------------------
  799|      0|        if (type.getOuterArraySize() != resources.maxPatchVertices) {
  ------------------
  |  Branch (799:13): [True: 0, False: 0]
  ------------------
  800|      0|            if (type.isSizedArray())
  ------------------
  |  Branch (800:17): [True: 0, False: 0]
  ------------------
  801|      0|                error(loc, "tessellation input array size must be gl_MaxPatchVertices or implicitly sized", "[]", "");
  802|      0|            type.changeOuterArraySize(resources.maxPatchVertices);
  803|      0|        }
  804|      0|    }
  805|    558|}
_ZN7glslang13TParseContext12ioArrayCheckERKNS_10TSourceLocERKNS_5TTypeERKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEE:
  811|   658k|{
  812|   658k|    if (! type.isArray() && ! symbolTable.atBuiltInLevel()) {
  ------------------
  |  Branch (812:9): [True: 658k, False: 0]
  |  Branch (812:29): [True: 130k, False: 527k]
  ------------------
  813|   130k|        if (type.getQualifier().isArrayedIo(language) && !type.getQualifier().layoutPassthrough)
  ------------------
  |  Branch (813:13): [True: 0, False: 130k]
  |  Branch (813:58): [True: 0, False: 0]
  ------------------
  814|      0|            error(loc, "type must be an array:", type.getStorageQualifierString(), "%s", identifier.c_str());
  815|   130k|    }
  816|   658k|}
_ZN7glslang13TParseContext24checkIoArraysConsistencyERKNS_10TSourceLocEb:
  845|  3.04k|{
  846|  3.04k|    int requiredSize = 0;
  847|  3.04k|    TString featureString;
  848|  3.04k|    size_t listSize = ioArraySymbolResizeList.size();
  849|  3.04k|    size_t i = 0;
  850|       |
  851|       |    // If tailOnly = true, only check the last array symbol in the list.
  852|  3.04k|    if (tailOnly) {
  ------------------
  |  Branch (852:9): [True: 3.04k, False: 0]
  ------------------
  853|  3.04k|        i = listSize - 1;
  854|  3.04k|    }
  855|  3.04k|    for (bool firstIteration = true; i < listSize; ++i) {
  ------------------
  |  Branch (855:38): [True: 3.04k, False: 0]
  ------------------
  856|  3.04k|        TType &type = ioArraySymbolResizeList[i]->getWritableType();
  857|       |
  858|       |        // As I/O array sizes don't change, fetch requiredSize only once,
  859|       |        // except for mesh shaders which could have different I/O array sizes based on type qualifiers.
  860|  3.04k|        if (firstIteration || (language == EShLangMesh)) {
  ------------------
  |  Branch (860:13): [True: 3.04k, False: 0]
  |  Branch (860:31): [True: 0, False: 0]
  ------------------
  861|  3.04k|            requiredSize = getIoArrayImplicitSize(type.getQualifier(), &featureString);
  862|  3.04k|            if (requiredSize == 0)
  ------------------
  |  Branch (862:17): [True: 3.04k, False: 0]
  ------------------
  863|  3.04k|                break;
  864|      0|            firstIteration = false;
  865|      0|        }
  866|       |
  867|      0|        checkIoArrayConsistency(loc, requiredSize, featureString.c_str(), type,
  868|      0|                                ioArraySymbolResizeList[i]->getName());
  869|      0|    }
  870|  3.04k|}
_ZNK7glslang13TParseContext22getIoArrayImplicitSizeERKNS_10TQualifierEPNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEE:
  873|  3.04k|{
  874|  3.04k|    int expectedSize = 0;
  875|  3.04k|    TString str = "unknown";
  876|  3.04k|    unsigned int maxVertices = intermediate.getVertices() != TQualifier::layoutNotSet ? intermediate.getVertices() : 0;
  ------------------
  |  Branch (876:32): [True: 0, False: 3.04k]
  ------------------
  877|       |
  878|  3.04k|    if (language == EShLangGeometry) {
  ------------------
  |  Branch (878:9): [True: 904, False: 2.13k]
  ------------------
  879|    904|        expectedSize = TQualifier::mapGeometryToSize(intermediate.getInputPrimitive());
  880|    904|        str = TQualifier::getGeometryString(intermediate.getInputPrimitive());
  881|    904|    }
  882|  2.13k|    else if (language == EShLangTessControl) {
  ------------------
  |  Branch (882:14): [True: 904, False: 1.23k]
  ------------------
  883|    904|        expectedSize = maxVertices;
  884|    904|        str = "vertices";
  885|  1.23k|    } else if (language == EShLangFragment) {
  ------------------
  |  Branch (885:16): [True: 0, False: 1.23k]
  ------------------
  886|       |        // Number of vertices for Fragment shader is always three.
  887|      0|        expectedSize = 3;
  888|      0|        str = "vertices";
  889|  1.23k|    } else if (language == EShLangMesh) {
  ------------------
  |  Branch (889:16): [True: 1.23k, False: 0]
  ------------------
  890|  1.23k|        unsigned int maxPrimitives =
  891|  1.23k|            intermediate.getPrimitives() != TQualifier::layoutNotSet ? intermediate.getPrimitives() : 0;
  ------------------
  |  Branch (891:13): [True: 0, False: 1.23k]
  ------------------
  892|  1.23k|        if (qualifier.builtIn == EbvPrimitiveIndicesNV) {
  ------------------
  |  Branch (892:13): [True: 0, False: 1.23k]
  ------------------
  893|      0|            expectedSize = maxPrimitives * TQualifier::mapGeometryToSize(intermediate.getOutputPrimitive());
  894|      0|            str = "max_primitives*";
  895|      0|            str += TQualifier::getGeometryString(intermediate.getOutputPrimitive());
  896|      0|        }
  897|  1.23k|        else if (qualifier.builtIn == EbvPrimitiveTriangleIndicesEXT || qualifier.builtIn == EbvPrimitiveLineIndicesEXT ||
  ------------------
  |  Branch (897:18): [True: 0, False: 1.23k]
  |  Branch (897:73): [True: 0, False: 1.23k]
  ------------------
  898|  1.23k|                 qualifier.builtIn == EbvPrimitivePointIndicesEXT) {
  ------------------
  |  Branch (898:18): [True: 0, False: 1.23k]
  ------------------
  899|      0|            expectedSize = maxPrimitives;
  900|      0|            str = "max_primitives";
  901|      0|        }
  902|  1.23k|        else if (qualifier.isPerPrimitive()) {
  ------------------
  |  Branch (902:18): [True: 616, False: 616]
  ------------------
  903|    616|            expectedSize = maxPrimitives;
  904|    616|            str = "max_primitives";
  905|    616|        }
  906|    616|        else {
  907|    616|            expectedSize = maxVertices;
  908|    616|            str = "max_vertices";
  909|    616|        }
  910|  1.23k|    }
  911|  3.04k|    if (featureString)
  ------------------
  |  Branch (911:9): [True: 3.04k, False: 0]
  ------------------
  912|  3.04k|        *featureString = str;
  913|  3.04k|    return expectedSize;
  914|  3.04k|}
_ZN7glslang13TParseContext16handleBinaryMathERKNS_10TSourceLocEPKcNS_9TOperatorEPNS_12TIntermTypedES8_:
  939|  15.8k|{
  940|  15.8k|    rValueErrorCheck(loc, str, left->getAsTyped());
  941|  15.8k|    rValueErrorCheck(loc, str, right->getAsTyped());
  942|       |
  943|  15.8k|    bool allowed = true;
  944|  15.8k|    switch (op) {
  945|       |    // TODO: Bring more source language-specific checks up from intermediate.cpp
  946|       |    // to the specific parse helpers for that source language.
  947|    336|    case EOpLessThan:
  ------------------
  |  Branch (947:5): [True: 336, False: 15.4k]
  ------------------
  948|  1.51k|    case EOpGreaterThan:
  ------------------
  |  Branch (948:5): [True: 1.18k, False: 14.6k]
  ------------------
  949|  1.68k|    case EOpLessThanEqual:
  ------------------
  |  Branch (949:5): [True: 163, False: 15.6k]
  ------------------
  950|  1.82k|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (950:5): [True: 143, False: 15.6k]
  ------------------
  951|  1.82k|        if (! left->isScalar() || ! right->isScalar())
  ------------------
  |  Branch (951:13): [True: 92, False: 1.73k]
  |  Branch (951:35): [True: 2, False: 1.73k]
  ------------------
  952|     94|            allowed = false;
  953|  1.82k|        break;
  954|  13.9k|    default:
  ------------------
  |  Branch (954:5): [True: 13.9k, False: 1.82k]
  ------------------
  955|  13.9k|        break;
  956|  15.8k|    }
  957|       |
  958|  15.8k|    if (((left->getType().contains16BitFloat() || right->getType().contains16BitFloat()) && !float16Arithmetic()) ||
  ------------------
  |  Branch (958:11): [True: 444, False: 15.3k]
  |  Branch (958:51): [True: 213, False: 15.1k]
  |  Branch (958:93): [True: 0, False: 657]
  ------------------
  959|  15.8k|        ((left->getType().contains16BitInt() || right->getType().contains16BitInt()) && !int16Arithmetic()) ||
  ------------------
  |  Branch (959:11): [True: 1.73k, False: 14.0k]
  |  Branch (959:49): [True: 975, False: 13.1k]
  |  Branch (959:89): [True: 0, False: 2.71k]
  ------------------
  960|  15.8k|        ((left->getType().contains8BitInt() || right->getType().contains8BitInt()) && !int8Arithmetic()) ||
  ------------------
  |  Branch (960:11): [True: 276, False: 15.5k]
  |  Branch (960:48): [True: 1.32k, False: 14.2k]
  |  Branch (960:87): [True: 0, False: 1.60k]
  ------------------
  961|  15.8k|        (left->getType().containsBFloat16() || right->getType().containsBFloat16()) ||
  ------------------
  |  Branch (961:10): [True: 0, False: 15.8k]
  |  Branch (961:48): [True: 0, False: 15.8k]
  ------------------
  962|  15.8k|        (left->getType().contains8BitFloat() || right->getType().contains8BitFloat()) ||
  ------------------
  |  Branch (962:10): [True: 0, False: 15.8k]
  |  Branch (962:49): [True: 0, False: 15.8k]
  ------------------
  963|  15.8k|        (left->getType().containsOcpMicroscalingFloat() || right->getType().containsOcpMicroscalingFloat())) {
  ------------------
  |  Branch (963:10): [True: 0, False: 15.8k]
  |  Branch (963:60): [True: 0, False: 15.8k]
  ------------------
  964|      0|        allowed = false;
  965|      0|    }
  966|       |
  967|  15.8k|    TIntermTyped* result = nullptr;
  968|  15.8k|    if (allowed) {
  ------------------
  |  Branch (968:9): [True: 15.7k, False: 94]
  ------------------
  969|  15.7k|        if ((left->isReference() || right->isReference()))
  ------------------
  |  Branch (969:14): [True: 0, False: 15.7k]
  |  Branch (969:37): [True: 0, False: 15.7k]
  ------------------
  970|      0|            requireExtensions(loc, 1, &E_GL_EXT_buffer_reference2, "buffer reference math");
  971|  15.7k|        result = intermediate.addBinaryMath(op, left, right, loc);
  972|  15.7k|    }
  973|       |
  974|  15.8k|    if (result == nullptr) {
  ------------------
  |  Branch (974:9): [True: 1.50k, False: 14.3k]
  ------------------
  975|  1.50k|        bool enhanced = intermediate.getEnhancedMsgs();
  976|  1.50k|        binaryOpError(loc, str, left->getCompleteString(enhanced), right->getCompleteString(enhanced));
  977|  1.50k|    }
  978|       |
  979|  15.8k|    return result;
  980|  15.8k|}
_ZN7glslang13TParseContext15handleUnaryMathERKNS_10TSourceLocEPKcNS_9TOperatorEPNS_12TIntermTypedE:
  984|  61.3k|{
  985|  61.3k|    rValueErrorCheck(loc, str, childNode);
  986|       |
  987|  61.3k|    bool allowed = true;
  988|  61.3k|    if ((childNode->getType().contains16BitFloat() && !float16Arithmetic()) ||
  ------------------
  |  Branch (988:10): [True: 51, False: 61.3k]
  |  Branch (988:55): [True: 0, False: 51]
  ------------------
  989|  61.3k|        (childNode->getType().contains16BitInt() && !int16Arithmetic()) ||
  ------------------
  |  Branch (989:10): [True: 1.08k, False: 60.2k]
  |  Branch (989:53): [True: 0, False: 1.08k]
  ------------------
  990|  61.3k|        (childNode->getType().contains8BitInt() && !int8Arithmetic()) ||
  ------------------
  |  Branch (990:10): [True: 115, False: 61.2k]
  |  Branch (990:52): [True: 0, False: 115]
  ------------------
  991|  61.3k|        (childNode->getType().containsBFloat16()) ||
  ------------------
  |  Branch (991:9): [True: 0, False: 61.3k]
  ------------------
  992|  61.3k|        (childNode->getType().contains8BitFloat()) ||
  ------------------
  |  Branch (992:9): [True: 0, False: 61.3k]
  ------------------
  993|  61.3k|        (childNode->getType().containsOcpMicroscalingFloat())) {
  ------------------
  |  Branch (993:9): [True: 0, False: 61.3k]
  ------------------
  994|      0|        allowed = false;
  995|      0|    }
  996|       |
  997|  61.3k|    TIntermTyped* result = nullptr;
  998|  61.3k|    if (allowed)
  ------------------
  |  Branch (998:9): [True: 61.3k, False: 0]
  ------------------
  999|  61.3k|        result = intermediate.addUnaryMath(op, childNode, loc);
 1000|       |
 1001|  61.3k|    if (result)
  ------------------
  |  Branch (1001:9): [True: 61.2k, False: 125]
  ------------------
 1002|  61.2k|        return result;
 1003|    125|    else {
 1004|    125|        bool enhanced = intermediate.getEnhancedMsgs();
 1005|    125|        unaryOpError(loc, str, childNode->getCompleteString(enhanced));
 1006|    125|    }
 1007|       |
 1008|    125|    return childNode;
 1009|  61.3k|}
_ZN7glslang13TParseContext20handleDotDereferenceERKNS_10TSourceLocEPNS_12TIntermTypedERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 1015|  9.49k|{
 1016|  9.49k|    variableCheck(base);
 1017|       |
 1018|       |    //
 1019|       |    // .length() can't be resolved until we later see the function-calling syntax.
 1020|       |    // Save away the name in the AST for now.  Processing is completed in
 1021|       |    // handleLengthMethod().
 1022|       |    //
 1023|  9.49k|    if (field == "length" || field == "length64") {
  ------------------
  |  Branch (1023:9): [True: 388, False: 9.10k]
  |  Branch (1023:30): [True: 0, False: 9.10k]
  ------------------
 1024|    388|        if (base->isArray()) {
  ------------------
  |  Branch (1024:13): [True: 329, False: 59]
  ------------------
 1025|    329|            profileRequires(loc, ENoProfile, 120, E_GL_3DL_array_objects, (TString(".") + field).c_str());
 1026|    329|            profileRequires(loc, EEsProfile, 300, nullptr, (TString(".") + field).c_str());
 1027|    329|        } else if (base->isVector() || base->isMatrix()) {
  ------------------
  |  Branch (1027:20): [True: 14, False: 45]
  |  Branch (1027:40): [True: 5, False: 40]
  ------------------
 1028|     19|            const char* feature = ".length() on vectors and matrices";
 1029|     19|            requireProfile(loc, ~EEsProfile, feature);
 1030|     19|            profileRequires(loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, feature);
 1031|     40|        } else if (!base->getType().isCoopMat() && !base->getType().isCoopVecOrLongVector()) {
  ------------------
  |  Branch (1031:20): [True: 40, False: 0]
  |  Branch (1031:52): [True: 40, False: 0]
  ------------------
 1032|     40|            bool enhanced = intermediate.getEnhancedMsgs();
 1033|     40|            error(loc, "does not operate on this type:", field.c_str(), "%s", base->getType().getCompleteString(enhanced).c_str());
 1034|     40|            return base;
 1035|     40|        }
 1036|       |
 1037|    348|        if (field == "length") {
  ------------------
  |  Branch (1037:13): [True: 348, False: 0]
  ------------------
 1038|    348|            return intermediate.addMethod(base, TType(EbtInt), &field, loc);
 1039|    348|        } else {
 1040|      0|            requireExtensions(loc, 1, &E_GL_EXT_shader_64bit_indexing, "length64");
 1041|      0|            return intermediate.addMethod(base, TType(EbtInt64), &field, loc);
 1042|      0|        }
 1043|    348|    }
 1044|       |
 1045|       |    // It's not .length() if we get to here.
 1046|       |
 1047|  9.10k|    if (base->isArray()) {
  ------------------
  |  Branch (1047:9): [True: 4, False: 9.10k]
  ------------------
 1048|      4|        error(loc, "cannot apply to an array:", ".", "%s", field.c_str());
 1049|       |
 1050|      4|        return base;
 1051|      4|    }
 1052|       |
 1053|  9.10k|    if (base->getType().isCoopMat()) {
  ------------------
  |  Branch (1053:9): [True: 0, False: 9.10k]
  ------------------
 1054|      0|        error(loc, "cannot apply to a cooperative matrix type:", ".", "%s", field.c_str());
 1055|      0|        return base;
 1056|      0|    }
 1057|       |
 1058|       |    // It's neither an array nor .length() if we get here,
 1059|       |    // leaving swizzles and struct/block dereferences.
 1060|       |
 1061|  9.10k|    TIntermTyped* result = base;
 1062|  9.10k|    if ((base->isVector() || base->isScalar()) &&
  ------------------
  |  Branch (1062:10): [True: 6.16k, False: 2.93k]
  |  Branch (1062:30): [True: 382, False: 2.55k]
  ------------------
 1063|  6.54k|        (base->isFloatingDomain() || base->isIntegerDomain() || base->getBasicType() == EbtBool)) {
  ------------------
  |  Branch (1063:10): [True: 2.82k, False: 3.72k]
  |  Branch (1063:38): [True: 3.13k, False: 592]
  |  Branch (1063:65): [True: 591, False: 1]
  ------------------
 1064|  6.54k|        result = handleDotSwizzle(loc, base, field);
 1065|  6.54k|    } else if (base->isStruct() || base->isReference()) {
  ------------------
  |  Branch (1065:16): [True: 2.55k, False: 1]
  |  Branch (1065:36): [True: 0, False: 1]
  ------------------
 1066|  2.55k|        const TTypeList* fields = base->isReference() ?
  ------------------
  |  Branch (1066:35): [True: 0, False: 2.55k]
  ------------------
 1067|      0|                                  base->getType().getReferentType()->getStruct() :
 1068|  2.55k|                                  base->getType().getStruct();
 1069|  2.55k|        bool fieldFound = false;
 1070|  2.55k|        int member;
 1071|  6.90k|        for (member = 0; member < (int)fields->size(); ++member) {
  ------------------
  |  Branch (1071:26): [True: 6.77k, False: 132]
  ------------------
 1072|  6.77k|            if ((*fields)[member].type->getFieldName() == field) {
  ------------------
  |  Branch (1072:17): [True: 2.42k, False: 4.35k]
  ------------------
 1073|  2.42k|                fieldFound = true;
 1074|  2.42k|                break;
 1075|  2.42k|            }
 1076|  6.77k|        }
 1077|       |
 1078|  2.55k|        if (fieldFound) {
  ------------------
  |  Branch (1078:13): [True: 2.42k, False: 132]
  ------------------
 1079|  2.42k|            if (spvVersion.vulkan != 0 && spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (1079:17): [True: 2.42k, False: 0]
  |  Branch (1079:43): [True: 0, False: 2.42k]
  ------------------
 1080|      0|                result = vkRelaxedRemapDotDereference(loc, *base, *(*fields)[member].type, field);
 1081|       |
 1082|  2.42k|            if (result == base)
  ------------------
  |  Branch (1082:17): [True: 2.42k, False: 0]
  ------------------
 1083|  2.42k|            {
 1084|  2.42k|                if (base->getType().getQualifier().isFrontEndConstant())
  ------------------
  |  Branch (1084:21): [True: 84, False: 2.33k]
  ------------------
 1085|     84|                    result = intermediate.foldDereference(base, member, loc);
 1086|  2.33k|                else {
 1087|  2.33k|                    blockMemberExtensionCheck(loc, base, member, field);
 1088|  2.33k|                    TIntermTyped* index = intermediate.addConstantUnion(member, loc);
 1089|  2.33k|                    result = intermediate.addIndex(EOpIndexDirectStruct, base, index, loc);
 1090|  2.33k|                    result->setType(*(*fields)[member].type);
 1091|  2.33k|                    if ((*fields)[member].type->getQualifier().isIo())
  ------------------
  |  Branch (1091:25): [True: 1.71k, False: 620]
  ------------------
 1092|  1.71k|                        intermediate.addIoAccessed(field);
 1093|  2.33k|                }
 1094|  2.42k|            }
 1095|       |
 1096|  2.42k|            inheritMemoryQualifiers(base->getQualifier(), result->getWritableType().getQualifier());
 1097|  2.42k|        } else {
 1098|    132|            auto baseSymbol = base;
 1099|    148|            while (baseSymbol->getAsSymbolNode() == nullptr) {
  ------------------
  |  Branch (1099:20): [True: 18, False: 130]
  ------------------
 1100|     18|                auto binaryNode = baseSymbol->getAsBinaryNode();
 1101|     18|                if (binaryNode == nullptr) break;
  ------------------
  |  Branch (1101:21): [True: 2, False: 16]
  ------------------
 1102|     16|                baseSymbol = binaryNode->getLeft();
 1103|     16|            }
 1104|    132|            if (baseSymbol->getAsSymbolNode() != nullptr) {
  ------------------
  |  Branch (1104:17): [True: 130, False: 2]
  ------------------
 1105|    130|                TString structName;
 1106|    130|                structName.append("\'").append(baseSymbol->getAsSymbolNode()->getName().c_str()).append("\'");
 1107|    130|                error(loc, "no such field in structure", field.c_str(), "%s", structName.c_str());
 1108|    130|            } else {
 1109|      2|                error(loc, "no such field in structure", field.c_str(), "");
 1110|      2|            }
 1111|    132|        }
 1112|  2.55k|    } else
 1113|      1|        error(loc, "does not apply to this type:", field.c_str(),
 1114|      1|          "%s", base->getType().getCompleteString(intermediate.getEnhancedMsgs()).c_str());
 1115|       |
 1116|       |    // Propagate noContraction up the dereference chain
 1117|  9.10k|    if (base->getQualifier().isNoContraction())
  ------------------
  |  Branch (1117:9): [True: 0, False: 9.10k]
  ------------------
 1118|      0|        result->getWritableType().getQualifier().setNoContraction();
 1119|       |
 1120|       |    // Propagate nonuniform
 1121|  9.10k|    if (base->getQualifier().isNonUniform())
  ------------------
  |  Branch (1121:9): [True: 0, False: 9.10k]
  ------------------
 1122|      0|        result->getWritableType().getQualifier().nonUniform = true;
 1123|       |
 1124|  9.10k|    return result;
 1125|  9.10k|}
_ZN7glslang13TParseContext16handleDotSwizzleERKNS_10TSourceLocEPNS_12TIntermTypedERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 1131|  6.54k|{
 1132|  6.54k|    TIntermTyped* result = base;
 1133|  6.54k|    if (base->isScalar()) {
  ------------------
  |  Branch (1133:9): [True: 381, False: 6.16k]
  ------------------
 1134|    381|        const char* dotFeature = "scalar swizzle";
 1135|    381|        requireProfile(loc, ~EEsProfile, dotFeature);
 1136|    381|        profileRequires(loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, dotFeature);
 1137|    381|    }
 1138|       |
 1139|  6.54k|    TSwizzleSelectors<TVectorSelector> selectors;
 1140|  6.54k|    parseSwizzleSelector(loc, field, base->getVectorSize(), selectors);
 1141|       |
 1142|  6.54k|    if (base->isVector() && selectors.size() != 1 && base->getType().contains16BitFloat())
  ------------------
  |  Branch (1142:9): [True: 6.16k, False: 381]
  |  Branch (1142:29): [True: 2.07k, False: 4.09k]
  |  Branch (1142:54): [True: 111, False: 1.96k]
  ------------------
 1143|    111|        requireFloat16Arithmetic(loc, ".", "can't swizzle types containing float16");
 1144|  6.54k|    if (base->isVector() && selectors.size() != 1 && base->getType().contains16BitInt())
  ------------------
  |  Branch (1144:9): [True: 6.16k, False: 381]
  |  Branch (1144:29): [True: 2.07k, False: 4.09k]
  |  Branch (1144:54): [True: 144, False: 1.93k]
  ------------------
 1145|    144|        requireInt16Arithmetic(loc, ".", "can't swizzle types containing (u)int16");
 1146|  6.54k|    if (base->isVector() && selectors.size() != 1 && base->getType().contains8BitInt())
  ------------------
  |  Branch (1146:9): [True: 6.16k, False: 381]
  |  Branch (1146:29): [True: 2.07k, False: 4.09k]
  |  Branch (1146:54): [True: 0, False: 2.07k]
  ------------------
 1147|      0|        requireInt8Arithmetic(loc, ".", "can't swizzle types containing (u)int8");
 1148|       |
 1149|  6.54k|    if (base->isScalar()) {
  ------------------
  |  Branch (1149:9): [True: 381, False: 6.16k]
  ------------------
 1150|    381|        if (selectors.size() == 1)
  ------------------
  |  Branch (1150:13): [True: 381, False: 0]
  ------------------
 1151|    381|            return result;
 1152|      0|        else {
 1153|      0|            TType type(base->getBasicType(), EvqTemporary, selectors.size());
 1154|       |            // Swizzle operations propagate specialization-constantness
 1155|      0|            if (base->getQualifier().isSpecConstant())
  ------------------
  |  Branch (1155:17): [True: 0, False: 0]
  ------------------
 1156|      0|                type.getQualifier().makeSpecConstant();
 1157|      0|            return addConstructor(loc, base, type);
 1158|      0|        }
 1159|    381|    }
 1160|       |
 1161|  6.16k|    if (base->getType().getQualifier().isFrontEndConstant()) {
  ------------------
  |  Branch (1161:9): [True: 358, False: 5.80k]
  ------------------
 1162|    358|	rValueErrorCheck(loc, ".", base);
 1163|    358|        result = intermediate.foldSwizzle(base, selectors, loc);
 1164|  5.80k|    } else {
 1165|  5.80k|        if (selectors.size() == 1) {
  ------------------
  |  Branch (1165:13): [True: 3.73k, False: 2.07k]
  ------------------
 1166|  3.73k|            TIntermTyped* index = intermediate.addConstantUnion(selectors[0], loc);
 1167|  3.73k|            result = intermediate.addIndex(EOpIndexDirect, base, index, loc);
 1168|  3.73k|            result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision));
 1169|  3.73k|        } else {
 1170|  2.07k|            TIntermTyped* index = intermediate.addSwizzle(selectors, loc);
 1171|  2.07k|            result = intermediate.addIndex(EOpVectorSwizzle, base, index, loc);
 1172|  2.07k|            result->setType(TType(base->getBasicType(), EvqTemporary, base->getType().getQualifier().precision, selectors.size()));
 1173|  2.07k|        }
 1174|       |        // Swizzle operations propagate specialization-constantness
 1175|  5.80k|        if (base->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (1175:13): [True: 0, False: 5.80k]
  ------------------
 1176|      0|            result->getWritableType().getQualifier().makeSpecConstant();
 1177|  5.80k|    }
 1178|       |
 1179|  6.16k|    return result;
 1180|  6.54k|}
_ZN7glslang13TParseContext25blockMemberExtensionCheckERKNS_10TSourceLocEPKNS_12TIntermTypedEiRKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 1199|  2.33k|{
 1200|       |    // a block that needs extension checking is either 'base', or if arrayed,
 1201|       |    // one level removed to the left
 1202|  2.33k|    const TIntermSymbol* baseSymbol = nullptr;
 1203|  2.33k|    if (base->getAsBinaryNode() == nullptr)
  ------------------
  |  Branch (1203:9): [True: 2.16k, False: 170]
  ------------------
 1204|  2.16k|        baseSymbol = base->getAsSymbolNode();
 1205|    170|    else
 1206|    170|        baseSymbol = base->getAsBinaryNode()->getLeft()->getAsSymbolNode();
 1207|  2.33k|    if (baseSymbol == nullptr)
  ------------------
  |  Branch (1207:9): [True: 12, False: 2.32k]
  ------------------
 1208|     12|        return;
 1209|  2.32k|    const TSymbol* symbol = symbolTable.find(baseSymbol->getName());
 1210|  2.32k|    if (symbol == nullptr)
  ------------------
  |  Branch (1210:9): [True: 0, False: 2.32k]
  ------------------
 1211|      0|        return;
 1212|  2.32k|    const TVariable* variable = symbol->getAsVariable();
 1213|  2.32k|    if (variable == nullptr)
  ------------------
  |  Branch (1213:9): [True: 0, False: 2.32k]
  ------------------
 1214|      0|        return;
 1215|  2.32k|    if (!variable->hasMemberExtensions())
  ------------------
  |  Branch (1215:9): [True: 2.32k, False: 0]
  ------------------
 1216|  2.32k|        return;
 1217|       |
 1218|       |    // We now have a variable that is the base of a dot reference
 1219|       |    // with members that need extension checking.
 1220|      0|    if (variable->getNumMemberExtensions(member) > 0)
  ------------------
  |  Branch (1220:9): [True: 0, False: 0]
  ------------------
 1221|      0|        requireExtensions(loc, variable->getNumMemberExtensions(member), variable->getMemberExtensions(member), memberName.c_str());
 1222|      0|}
_ZN7glslang13TParseContext24handleFunctionDeclaratorERKNS_10TSourceLocERNS_9TFunctionEb:
 1229|  9.98M|{
 1230|       |    // ES can't declare prototypes inside functions
 1231|  9.98M|    if (! symbolTable.atGlobalLevel())
  ------------------
  |  Branch (1231:9): [True: 6, False: 9.98M]
  ------------------
 1232|      6|        requireProfile(loc, ~EEsProfile, "local function declaration");
 1233|       |
 1234|       |    //
 1235|       |    // Multiple declarations of the same function name are allowed.
 1236|       |    //
 1237|       |    // If this is a definition, the definition production code will check for redefinitions
 1238|       |    // (we don't know at this point if it's a definition or not).
 1239|       |    //
 1240|       |    // Redeclarations (full signature match) are allowed.  But, return types and parameter qualifiers must also match.
 1241|       |    //  - except ES 100, which only allows a single prototype
 1242|       |    //
 1243|       |    // ES 100 does not allow redefining, but does allow overloading of built-in functions.
 1244|       |    // ES 300 does not allow redefining or overloading of built-in functions.
 1245|       |    //
 1246|  9.98M|    bool builtIn;
 1247|  9.98M|    TSymbol* symbol = symbolTable.find(function.getMangledName(), &builtIn);
 1248|  9.98M|    if (symbol && symbol->getAsFunction() && builtIn)
  ------------------
  |  Branch (1248:9): [True: 68.7k, False: 9.91M]
  |  Branch (1248:19): [True: 68.7k, False: 0]
  |  Branch (1248:46): [True: 68.4k, False: 258]
  ------------------
 1249|  68.4k|        requireProfile(loc, ~EEsProfile, "redefinition of built-in function");
 1250|       |    // Check the validity of using spirv_literal qualifier
 1251|  34.6M|    for (int i = 0; i < function.getParamCount(); ++i) {
  ------------------
  |  Branch (1251:21): [True: 24.6M, False: 9.98M]
  ------------------
 1252|  24.6M|        if (function[i].type->getQualifier().isSpirvLiteral() && function.getBuiltInOp() != EOpSpirvInst)
  ------------------
  |  Branch (1252:13): [True: 0, False: 24.6M]
  |  Branch (1252:66): [True: 0, False: 0]
  ------------------
 1253|      0|            error(loc, "'spirv_literal' can only be used on functions defined with 'spirv_instruction' for argument",
 1254|      0|                  function.getName().c_str(), "%d", i + 1);
 1255|  24.6M|    }
 1256|       |
 1257|       |    // For function declaration with SPIR-V instruction qualifier, always ignore the built-in function and
 1258|       |    // respect this redeclared one.
 1259|  9.98M|    if (symbol && builtIn && function.getBuiltInOp() == EOpSpirvInst)
  ------------------
  |  Branch (1259:9): [True: 68.7k, False: 9.91M]
  |  Branch (1259:19): [True: 68.4k, False: 258]
  |  Branch (1259:30): [True: 0, False: 68.4k]
  ------------------
 1260|      0|        symbol = nullptr;
 1261|  9.98M|    const TFunction* prevDec = symbol ? symbol->getAsFunction() : nullptr;
  ------------------
  |  Branch (1261:32): [True: 68.7k, False: 9.91M]
  ------------------
 1262|  9.98M|    if (prevDec) {
  ------------------
  |  Branch (1262:9): [True: 68.7k, False: 9.91M]
  ------------------
 1263|  68.7k|        if (prevDec->isPrototyped() && prototype)
  ------------------
  |  Branch (1263:13): [True: 23, False: 68.6k]
  |  Branch (1263:40): [True: 8, False: 15]
  ------------------
 1264|      8|            profileRequires(loc, EEsProfile, 300, nullptr, "multiple prototypes for same function");
 1265|  68.7k|        if (prevDec->getSpirvInstruction() != function.getSpirvInstruction()) {
  ------------------
  |  Branch (1265:13): [True: 0, False: 68.7k]
  ------------------
 1266|      0|            error(loc, "overloaded functions must have the same qualifiers", function.getName().c_str(),
 1267|      0|                  "spirv_instruction");
 1268|      0|        }
 1269|  68.7k|        bool parameterTypesDiffer = false;
 1270|   229k|        for (int i = 0; i < prevDec->getParamCount(); ++i) {
  ------------------
  |  Branch (1270:25): [True: 160k, False: 68.7k]
  ------------------
 1271|   160k|            if ((*prevDec)[i].type->getQualifier().storage != function[i].type->getQualifier().storage)
  ------------------
  |  Branch (1271:17): [True: 0, False: 160k]
  ------------------
 1272|      0|                error(loc, "overloaded functions must have the same parameter storage qualifiers for argument", function[i].type->getStorageQualifierString(), "%d", i+1);
 1273|       |
 1274|   160k|            if ((*prevDec)[i].type->getQualifier().precision != function[i].type->getQualifier().precision)
  ------------------
  |  Branch (1274:17): [True: 2, False: 160k]
  ------------------
 1275|      2|                error(loc, "overloaded functions must have the same parameter precision qualifiers for argument", function[i].type->getPrecisionQualifierString(), "%d", i+1);
 1276|       |
 1277|   160k|            if (*(*prevDec)[i].type != *function[i].type)
  ------------------
  |  Branch (1277:17): [True: 0, False: 160k]
  ------------------
 1278|      0|                parameterTypesDiffer = true;
 1279|   160k|        }
 1280|  68.7k|        if (!parameterTypesDiffer && prevDec->getType() != function.getType())
  ------------------
  |  Branch (1280:13): [True: 68.7k, False: 0]
  |  Branch (1280:38): [True: 4, False: 68.7k]
  ------------------
 1281|      4|            error(loc, "overloaded functions must have the same return type", function.getName().c_str(), "");
 1282|       |
 1283|  68.7k|        function.addFunctionControl(prevDec->getFunctionControl());
 1284|  68.7k|        unsigned functionControl = function.getFunctionControl();
 1285|  68.7k|        if (function.hasIncompatibleFunctionControl())
  ------------------
  |  Branch (1285:13): [True: 0, False: 68.7k]
  ------------------
 1286|      0|            error(loc, "function attributes are incompatible", function.getName().c_str(), "");
 1287|  68.7k|        if (!builtIn)
  ------------------
  |  Branch (1287:13): [True: 258, False: 68.4k]
  ------------------
 1288|    258|            symbol->getAsFunction()->setFunctionControl(functionControl);
 1289|  68.7k|    }
 1290|       |
 1291|  9.98M|    arrayObjectCheck(loc, function.getType(), "array in function return type");
 1292|       |
 1293|  9.98M|    if (prototype) {
  ------------------
  |  Branch (1293:9): [True: 9.97M, False: 5.91k]
  ------------------
 1294|       |        // All built-in functions are defined, even though they don't have a body.
 1295|       |        // Count their prototype as a definition instead.
 1296|  9.97M|        if (symbolTable.atBuiltInLevel())
  ------------------
  |  Branch (1296:13): [True: 9.97M, False: 239]
  ------------------
 1297|  9.97M|            function.setDefined();
 1298|    239|        else {
 1299|    239|            if (prevDec && ! builtIn)
  ------------------
  |  Branch (1299:17): [True: 10, False: 229]
  |  Branch (1299:28): [True: 10, False: 0]
  ------------------
 1300|     10|                symbol->getAsFunction()->setPrototyped();  // need a writable one, but like having prevDec as a const
 1301|    239|            function.setPrototyped();
 1302|    239|        }
 1303|  9.97M|    }
 1304|       |
 1305|       |    // This insert won't actually insert it if it's a duplicate signature, but it will still check for
 1306|       |    // other forms of name collisions.
 1307|  9.98M|    if (! symbolTable.insert(function))
  ------------------
  |  Branch (1307:9): [True: 0, False: 9.98M]
  ------------------
 1308|      0|        error(loc, "function name is redeclaration of existing name", function.getName().c_str(), "");
 1309|       |
 1310|       |    //
 1311|       |    // If this is a redeclaration, it could also be a definition,
 1312|       |    // in which case, we need to use the parameter names from this one, and not the one that's
 1313|       |    // being redeclared.  So, pass back this declaration, not the one in the symbol table.
 1314|       |    //
 1315|  9.98M|    return &function;
 1316|  9.98M|}
_ZN7glslang13TParseContext24handleFunctionDefinitionERKNS_10TSourceLocERNS_9TFunctionE:
 1323|  5.91k|{
 1324|  5.91k|    currentCaller = function.getMangledName();
 1325|  5.91k|    TSymbol* symbol = symbolTable.find(function.getMangledName());
 1326|  5.91k|    TFunction* prevDec = symbol ? symbol->getAsFunction() : nullptr;
  ------------------
  |  Branch (1326:26): [True: 5.91k, False: 0]
  ------------------
 1327|       |
 1328|  5.91k|    if (! prevDec)
  ------------------
  |  Branch (1328:9): [True: 0, False: 5.91k]
  ------------------
 1329|      0|        error(loc, "can't find function", function.getName().c_str(), "");
 1330|       |    // Note:  'prevDec' could be 'function' if this is the first time we've seen function
 1331|       |    // as it would have just been put in the symbol table.  Otherwise, we're looking up
 1332|       |    // an earlier occurrence.
 1333|       |
 1334|  5.91k|    if (prevDec && prevDec->isDefined()) {
  ------------------
  |  Branch (1334:9): [True: 5.91k, False: 0]
  |  Branch (1334:20): [True: 233, False: 5.68k]
  ------------------
 1335|       |        // Then this function already has a body.
 1336|    233|        error(loc, "function already has a body", function.getName().c_str(), "");
 1337|    233|    }
 1338|  5.91k|    if (prevDec && ! prevDec->isDefined()) {
  ------------------
  |  Branch (1338:9): [True: 5.91k, False: 0]
  |  Branch (1338:20): [True: 5.68k, False: 233]
  ------------------
 1339|  5.68k|        prevDec->setDefined();
 1340|       |
 1341|       |        // Remember the return type for later checking for RETURN statements.
 1342|  5.68k|        currentFunctionType = &(prevDec->getType());
 1343|  5.68k|    } else
 1344|    233|        currentFunctionType = new TType(EbtVoid);
 1345|  5.91k|    functionReturnsValue = false;
 1346|       |
 1347|       |    // Check for entry point
 1348|  5.91k|    if (function.getName().compare(intermediate.getEntryPointName().c_str()) == 0) {
  ------------------
  |  Branch (1348:9): [True: 702, False: 5.21k]
  ------------------
 1349|    702|        intermediate.setEntryPointMangledName(function.getMangledName().c_str());
 1350|    702|        intermediate.incrementEntryPointCount();
 1351|    702|        inMain = true;
 1352|    702|    } else
 1353|  5.21k|        inMain = false;
 1354|       |
 1355|       |    //
 1356|       |    // Raise error message if main function takes any parameters or returns anything other than void
 1357|       |    //
 1358|  5.91k|    if (inMain) {
  ------------------
  |  Branch (1358:9): [True: 702, False: 5.21k]
  ------------------
 1359|    702|        if (function.getParamCount() > 0)
  ------------------
  |  Branch (1359:13): [True: 0, False: 702]
  ------------------
 1360|      0|            error(loc, "function cannot take any parameter(s)", function.getName().c_str(), "");
 1361|    702|        if (function.getType().getBasicType() != EbtVoid)
  ------------------
  |  Branch (1361:13): [True: 0, False: 702]
  ------------------
 1362|      0|            error(loc, "", function.getType().getBasicTypeString().c_str(), "entry point cannot return a value");
 1363|    702|        if (function.getLinkType() != ELinkNone)
  ------------------
  |  Branch (1363:13): [True: 0, False: 702]
  ------------------
 1364|      0|            error(loc, "main function cannot be exported", "", "");
 1365|    702|    }
 1366|       |
 1367|       |    //
 1368|       |    // New symbol table scope for body of function plus its arguments
 1369|       |    //
 1370|  5.91k|    symbolTable.push();
 1371|       |
 1372|       |    //
 1373|       |    // Insert parameters into the symbol table.
 1374|       |    // If the parameter has no name, it's not an error, just don't insert it
 1375|       |    // (could be used for unused args).
 1376|       |    //
 1377|       |    // Also, accumulate the list of parameters into the HIL, so lower level code
 1378|       |    // knows where to find parameters.
 1379|       |    //
 1380|  5.91k|    TIntermAggregate* paramNodes = new TIntermAggregate;
 1381|  8.23k|    for (int i = 0; i < function.getParamCount(); i++) {
  ------------------
  |  Branch (1381:21): [True: 2.31k, False: 5.91k]
  ------------------
 1382|  2.31k|        TParameter& param = function[i];
 1383|  2.31k|        if (param.name != nullptr) {
  ------------------
  |  Branch (1383:13): [True: 2.27k, False: 40]
  ------------------
 1384|  2.27k|            TVariable *variable = new TVariable(param.name, *param.type);
 1385|       |
 1386|       |            // Insert the parameters with name in the symbol table.
 1387|  2.27k|            if (! symbolTable.insert(*variable))
  ------------------
  |  Branch (1387:17): [True: 2, False: 2.27k]
  ------------------
 1388|      2|                error(loc, "redefinition", variable->getName().c_str(), "");
 1389|  2.27k|            else {
 1390|       |                // Transfer ownership of name pointer to symbol table.
 1391|  2.27k|                param.name = nullptr;
 1392|       |
 1393|       |                // Add the parameter to the HIL
 1394|  2.27k|                paramNodes = intermediate.growAggregate(paramNodes,
 1395|  2.27k|                                                        intermediate.addSymbol(*variable, loc),
 1396|  2.27k|                                                        loc);
 1397|  2.27k|            }
 1398|  2.27k|        } else
 1399|     40|            paramNodes = intermediate.growAggregate(paramNodes, intermediate.addSymbol(*param.type, loc), loc);
 1400|  2.31k|    }
 1401|  5.91k|    paramNodes->setLinkType(function.getLinkType());
 1402|  5.91k|    intermediate.setAggregateOperator(paramNodes, EOpParameters, TType(EbtVoid), loc);
 1403|  5.91k|    loopNestingLevel = 0;
 1404|  5.91k|    statementNestingLevel = 0;
 1405|  5.91k|    controlFlowNestingLevel = 0;
 1406|  5.91k|    postEntryPointReturn = false;
 1407|       |
 1408|  5.91k|    return paramNodes;
 1409|  5.91k|}
_ZN7glslang13TParseContext18handleFunctionCallERKNS_10TSourceLocEPNS_9TFunctionEP11TIntermNode:
 1421|   124k|{
 1422|   124k|    TIntermTyped* result = nullptr;
 1423|       |
 1424|   124k|    if (spvVersion.vulkan != 0 && spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (1424:9): [True: 124k, False: 0]
  |  Branch (1424:35): [True: 0, False: 124k]
  ------------------
 1425|       |        // allow calls that are invalid in Vulkan Semantics to be invisibily
 1426|       |        // remapped to equivalent valid functions
 1427|      0|        result = vkRelaxedRemapFunctionCall(loc, function, arguments);
 1428|      0|        if (result)
  ------------------
  |  Branch (1428:13): [True: 0, False: 0]
  ------------------
 1429|      0|            return result;
 1430|      0|    }
 1431|       |
 1432|   124k|    if (function->getBuiltInOp() == EOpArrayLength)
  ------------------
  |  Branch (1432:9): [True: 345, False: 124k]
  ------------------
 1433|    345|        result = handleLengthMethod(loc, function, arguments);
 1434|   124k|    else if (function->getBuiltInOp() != EOpNull) {
  ------------------
  |  Branch (1434:14): [True: 76.3k, False: 48.1k]
  ------------------
 1435|       |        //
 1436|       |        // Then this should be a constructor.
 1437|       |        // Don't go through the symbol table for constructors.
 1438|       |        // Their parameters will be verified algorithmically.
 1439|       |        //
 1440|  76.3k|        TType type(EbtVoid);  // use this to get the type back
 1441|  76.3k|        if (! constructorError(loc, arguments, *function, function->getBuiltInOp(), type)) {
  ------------------
  |  Branch (1441:13): [True: 76.0k, False: 302]
  ------------------
 1442|       |            //
 1443|       |            // It's a constructor, of type 'type'.
 1444|       |            //
 1445|  76.0k|            result = addConstructor(loc, arguments, type);
 1446|  76.0k|            if (result == nullptr)
  ------------------
  |  Branch (1446:17): [True: 6, False: 76.0k]
  ------------------
 1447|      6|                error(loc, "cannot construct with these arguments", type.getCompleteString(intermediate.getEnhancedMsgs()).c_str(), "");
 1448|  76.0k|        }
 1449|  76.3k|    } else {
 1450|       |        //
 1451|       |        // Find it in the symbol table.
 1452|       |        //
 1453|  48.1k|        const TFunction* fnCandidate;
 1454|  48.1k|        bool builtIn {false};
 1455|  48.1k|        fnCandidate = findFunction(loc, *function, builtIn);
 1456|  48.1k|        if (fnCandidate) {
  ------------------
  |  Branch (1456:13): [True: 38.3k, False: 9.88k]
  ------------------
 1457|       |            // This is a declared function that might map to
 1458|       |            //  - a built-in operator,
 1459|       |            //  - a built-in function not mapped to an operator, or
 1460|       |            //  - a user function.
 1461|       |
 1462|       |            // Error check for a function requiring specific extensions present.
 1463|  38.3k|            if (builtIn &&
  ------------------
  |  Branch (1463:17): [True: 36.0k, False: 2.24k]
  ------------------
 1464|  36.0k|                (fnCandidate->getBuiltInOp() == EOpSubgroupQuadAll || fnCandidate->getBuiltInOp() == EOpSubgroupQuadAny))
  ------------------
  |  Branch (1464:18): [True: 0, False: 36.0k]
  |  Branch (1464:71): [True: 0, False: 36.0k]
  ------------------
 1465|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_quad_control, fnCandidate->getName().c_str());
 1466|       |
 1467|  38.3k|            if (builtIn && fnCandidate->getNumExtensions())
  ------------------
  |  Branch (1467:17): [True: 36.0k, False: 2.24k]
  |  Branch (1467:28): [True: 12.5k, False: 23.4k]
  ------------------
 1468|  12.5k|                requireExtensions(loc, fnCandidate->getNumExtensions(), fnCandidate->getExtensions(), fnCandidate->getName().c_str());
 1469|       |
 1470|  38.3k|            if (builtIn && fnCandidate->getType().contains16BitFloat())
  ------------------
  |  Branch (1470:17): [True: 36.0k, False: 2.24k]
  |  Branch (1470:28): [True: 1.85k, False: 34.2k]
  ------------------
 1471|  1.85k|                requireFloat16Arithmetic(loc, "built-in function", "float16 types can only be in uniform block or buffer storage");
 1472|  38.3k|            if (builtIn && fnCandidate->getType().contains16BitInt())
  ------------------
  |  Branch (1472:17): [True: 36.0k, False: 2.24k]
  |  Branch (1472:28): [True: 843, False: 35.2k]
  ------------------
 1473|    843|                requireInt16Arithmetic(loc, "built-in function", "(u)int16 types can only be in uniform block or buffer storage");
 1474|  38.3k|            if (builtIn && fnCandidate->getType().contains8BitInt())
  ------------------
  |  Branch (1474:17): [True: 36.0k, False: 2.24k]
  |  Branch (1474:28): [True: 145, False: 35.9k]
  ------------------
 1475|    145|                requireInt8Arithmetic(loc, "built-in function", "(u)int8 types can only be in uniform block or buffer storage");
 1476|  38.3k|            if (builtIn && (fnCandidate->getBuiltInOp() == EOpTextureFetch || fnCandidate->getBuiltInOp() == EOpTextureQuerySize)) {
  ------------------
  |  Branch (1476:17): [True: 36.0k, False: 2.24k]
  |  Branch (1476:29): [True: 72, False: 35.9k]
  |  Branch (1476:79): [True: 350, False: 35.6k]
  ------------------
 1477|    422|                if ((*fnCandidate)[0].type->getSampler().isMultiSample() && version <= 140)
  ------------------
  |  Branch (1477:21): [True: 112, False: 310]
  |  Branch (1477:77): [True: 0, False: 112]
  ------------------
 1478|      0|                    requireExtensions(loc, 1, &E_GL_ARB_texture_multisample, fnCandidate->getName().c_str());
 1479|    422|            }
 1480|  38.3k|            bool hasLongVectorArg = false;
 1481|  38.3k|            if (arguments != nullptr) {
  ------------------
  |  Branch (1481:17): [True: 37.2k, False: 1.05k]
  ------------------
 1482|       |                // Make sure qualifications work for these arguments.
 1483|  37.2k|                TIntermAggregate* aggregate = arguments->getAsAggregate();
 1484|   120k|                for (int i = 0; i < fnCandidate->getParamCount(); ++i) {
  ------------------
  |  Branch (1484:33): [True: 83.5k, False: 37.2k]
  ------------------
 1485|       |                    // At this early point there is a slight ambiguity between whether an aggregate 'arguments'
 1486|       |                    // is the single argument itself or its children are the arguments.  Only one argument
 1487|       |                    // means take 'arguments' itself as the one argument.
 1488|  83.5k|                    if ((*fnCandidate)[i].defaultValue) {
  ------------------
  |  Branch (1488:25): [True: 0, False: 83.5k]
  ------------------
 1489|      0|                        if (!aggregate) {
  ------------------
  |  Branch (1489:29): [True: 0, False: 0]
  ------------------
 1490|       |                            // Only one argument was passed (rest are default arguments) so arguments isn't a TIntermAggregate.
 1491|       |                            // But the function takes at least one more argument, so a TIntermAggregate is needed.
 1492|      0|                            aggregate = new TIntermAggregate;
 1493|      0|                            aggregate->getSequence().push_back(arguments);
 1494|      0|                            arguments = aggregate;
 1495|      0|                        }
 1496|      0|                        if (i >= static_cast<int>(aggregate->getSequence().size())) {
  ------------------
  |  Branch (1496:29): [True: 0, False: 0]
  ------------------
 1497|       |                            // Append the default value if there are no more arguments left in the aggregate.
 1498|      0|                            TIntermConstantUnion *defaultValue = nullptr;
 1499|      0|                            if (const auto *constUnion = (*fnCandidate)[i].defaultValue->getAsConstantUnion()) {
  ------------------
  |  Branch (1499:45): [True: 0, False: 0]
  ------------------
 1500|      0|                                defaultValue = new TIntermConstantUnion(constUnion->getConstArray(), constUnion->getType());
 1501|      0|                            }
 1502|      0|                            assert(defaultValue && "unsupported default value construct");
 1503|      0|                            aggregate->getSequence().push_back(defaultValue);
 1504|      0|                        }
 1505|      0|                    }
 1506|  83.5k|                    TIntermNode* arg = fnCandidate->getParamCount() == 1 ? arguments : (aggregate ? aggregate->getSequence()[i] : arguments);
  ------------------
  |  Branch (1506:40): [True: 12.2k, False: 71.3k]
  |  Branch (1506:89): [True: 71.3k, False: 0]
  ------------------
 1507|  83.5k|                    TQualifier& formalQualifier = (*fnCandidate)[i].type->getQualifier();
 1508|  83.5k|                    if (formalQualifier.isParamOutput()) {
  ------------------
  |  Branch (1508:25): [True: 1.62k, False: 81.9k]
  ------------------
 1509|  1.62k|                        if (lValueErrorCheck(arguments->getLoc(), "assign", arg->getAsTyped()))
  ------------------
  |  Branch (1509:29): [True: 0, False: 1.62k]
  ------------------
 1510|      0|                            error(arguments->getLoc(), "Non-L-value cannot be passed for 'out' or 'inout' parameters.", "out", "");
 1511|  1.62k|                    }
 1512|  83.5k|                    if (formalQualifier.isSpirvLiteral()) {
  ------------------
  |  Branch (1512:25): [True: 0, False: 83.5k]
  ------------------
 1513|      0|                        if (!arg->getAsTyped()->getQualifier().isFrontEndConstant()) {
  ------------------
  |  Branch (1513:29): [True: 0, False: 0]
  ------------------
 1514|      0|                            error(arguments->getLoc(),
 1515|      0|                                  "Non front-end constant expressions cannot be passed for 'spirv_literal' parameters.",
 1516|      0|                                  "spirv_literal", "");
 1517|      0|                        }
 1518|      0|                    }
 1519|  83.5k|                    const TType& argType = arg->getAsTyped()->getType();
 1520|  83.5k|                    const TQualifier& argQualifier = argType.getQualifier();
 1521|  83.5k|                    bool containsBindlessSampler = intermediate.getBindlessMode() && argType.containsSampler();
  ------------------
  |  Branch (1521:52): [True: 56, False: 83.5k]
  |  Branch (1521:86): [True: 0, False: 56]
  ------------------
 1522|  83.5k|                    if (argQualifier.isMemory() && !containsBindlessSampler && (argType.containsOpaque() || argType.isReference())) {
  ------------------
  |  Branch (1522:25): [True: 1.10k, False: 82.4k]
  |  Branch (1522:52): [True: 1.10k, False: 0]
  |  Branch (1522:81): [True: 1.10k, False: 0]
  |  Branch (1522:109): [True: 0, False: 0]
  ------------------
 1523|  1.10k|                        const char* message = "argument cannot drop memory qualifier when passed to formal parameter";
 1524|  1.10k|                        if (argQualifier.volatil && ! formalQualifier.volatil)
  ------------------
  |  Branch (1524:29): [True: 942, False: 166]
  |  Branch (1524:53): [True: 0, False: 942]
  ------------------
 1525|      0|                            error(arguments->getLoc(), message, "volatile", "");
 1526|  1.10k|                        if (argQualifier.coherent && ! (formalQualifier.devicecoherent || formalQualifier.coherent))
  ------------------
  |  Branch (1526:29): [True: 942, False: 166]
  |  Branch (1526:57): [True: 0, False: 942]
  |  Branch (1526:91): [True: 942, False: 0]
  ------------------
 1527|      0|                            error(arguments->getLoc(), message, "coherent", "");
 1528|  1.10k|                        if (argQualifier.devicecoherent && ! (formalQualifier.devicecoherent || formalQualifier.coherent))
  ------------------
  |  Branch (1528:29): [True: 0, False: 1.10k]
  |  Branch (1528:63): [True: 0, False: 0]
  |  Branch (1528:97): [True: 0, False: 0]
  ------------------
 1529|      0|                            error(arguments->getLoc(), message, "devicecoherent", "");
 1530|  1.10k|                        if (argQualifier.queuefamilycoherent && ! (formalQualifier.queuefamilycoherent || formalQualifier.devicecoherent || formalQualifier.coherent))
  ------------------
  |  Branch (1530:29): [True: 0, False: 1.10k]
  |  Branch (1530:68): [True: 0, False: 0]
  |  Branch (1530:107): [True: 0, False: 0]
  |  Branch (1530:141): [True: 0, False: 0]
  ------------------
 1531|      0|                            error(arguments->getLoc(), message, "queuefamilycoherent", "");
 1532|  1.10k|                        if (argQualifier.workgroupcoherent && ! (formalQualifier.workgroupcoherent || formalQualifier.queuefamilycoherent || formalQualifier.devicecoherent || formalQualifier.coherent))
  ------------------
  |  Branch (1532:29): [True: 0, False: 1.10k]
  |  Branch (1532:66): [True: 0, False: 0]
  |  Branch (1532:103): [True: 0, False: 0]
  |  Branch (1532:142): [True: 0, False: 0]
  |  Branch (1532:176): [True: 0, False: 0]
  ------------------
 1533|      0|                            error(arguments->getLoc(), message, "workgroupcoherent", "");
 1534|  1.10k|                        if (argQualifier.subgroupcoherent && ! (formalQualifier.subgroupcoherent || formalQualifier.workgroupcoherent || formalQualifier.queuefamilycoherent || formalQualifier.devicecoherent || formalQualifier.coherent))
  ------------------
  |  Branch (1534:29): [True: 0, False: 1.10k]
  |  Branch (1534:65): [True: 0, False: 0]
  |  Branch (1534:101): [True: 0, False: 0]
  |  Branch (1534:138): [True: 0, False: 0]
  |  Branch (1534:177): [True: 0, False: 0]
  |  Branch (1534:211): [True: 0, False: 0]
  ------------------
 1535|      0|                            error(arguments->getLoc(), message, "subgroupcoherent", "");
 1536|  1.10k|                        if (argQualifier.readonly && ! formalQualifier.readonly)
  ------------------
  |  Branch (1536:29): [True: 84, False: 1.02k]
  |  Branch (1536:54): [True: 0, False: 84]
  ------------------
 1537|      0|                            error(arguments->getLoc(), message, "readonly", "");
 1538|  1.10k|                        if (argQualifier.writeonly && ! formalQualifier.writeonly)
  ------------------
  |  Branch (1538:29): [True: 82, False: 1.02k]
  |  Branch (1538:55): [True: 1, False: 81]
  ------------------
 1539|      1|                            error(arguments->getLoc(), message, "writeonly", "");
 1540|  1.10k|                        if (argQualifier.nontemporal && ! formalQualifier.nontemporal)
  ------------------
  |  Branch (1540:29): [True: 0, False: 1.10k]
  |  Branch (1540:57): [True: 0, False: 0]
  ------------------
 1541|      0|                            error(arguments->getLoc(), message, "nontemporal", "");
 1542|       |                        // Don't check 'restrict', it is different than the rest:
 1543|       |                        // "...but only restrict can be taken away from a calling argument, by a formal parameter that
 1544|       |                        // lacks the restrict qualifier..."
 1545|  1.10k|                    }
 1546|  83.5k|                    if (!builtIn && argQualifier.getFormat() != formalQualifier.getFormat()) {
  ------------------
  |  Branch (1546:25): [True: 1.76k, False: 81.8k]
  |  Branch (1546:37): [True: 0, False: 1.76k]
  ------------------
 1547|       |                        // we have mismatched formats, which should only be allowed if writeonly
 1548|       |                        // and at least one format is unknown
 1549|      0|                        if (!formalQualifier.isWriteOnly() || (formalQualifier.getFormat() != ElfNone &&
  ------------------
  |  Branch (1549:29): [True: 0, False: 0]
  |  Branch (1549:64): [True: 0, False: 0]
  ------------------
 1550|      0|                                                                  argQualifier.getFormat() != ElfNone))
  ------------------
  |  Branch (1550:67): [True: 0, False: 0]
  ------------------
 1551|      0|                            error(arguments->getLoc(), "image formats must match", "format", "");
 1552|      0|                    }
 1553|  83.5k|                    if (builtIn && arg->getAsTyped()->getType().contains16BitFloat())
  ------------------
  |  Branch (1553:25): [True: 81.8k, False: 1.76k]
  |  Branch (1553:36): [True: 5.26k, False: 76.5k]
  ------------------
 1554|  5.26k|                        requireFloat16Arithmetic(arguments->getLoc(), "built-in function", "float16 types can only be in uniform block or buffer storage");
 1555|  83.5k|                    if (builtIn && arg->getAsTyped()->getType().contains16BitInt())
  ------------------
  |  Branch (1555:25): [True: 81.8k, False: 1.76k]
  |  Branch (1555:36): [True: 3.73k, False: 78.0k]
  ------------------
 1556|  3.73k|                        requireInt16Arithmetic(arguments->getLoc(), "built-in function", "(u)int16 types can only be in uniform block or buffer storage");
 1557|  83.5k|                    if (builtIn && arg->getAsTyped()->getType().contains8BitInt())
  ------------------
  |  Branch (1557:25): [True: 81.8k, False: 1.76k]
  |  Branch (1557:36): [True: 770, False: 81.0k]
  ------------------
 1558|    770|                        requireInt8Arithmetic(arguments->getLoc(), "built-in function", "(u)int8 types can only be in uniform block or buffer storage");
 1559|       |
 1560|       |                    // Check that coopVecOuterProductAccumulateNV vector component types match
 1561|  83.5k|                    if (builtIn && fnCandidate->getBuiltInOp() == EOpCooperativeVectorOuterProductAccumulateNV &&
  ------------------
  |  Branch (1561:25): [True: 81.8k, False: 1.76k]
  |  Branch (1561:36): [True: 0, False: 81.8k]
  ------------------
 1562|      0|                        i == 1 && arg->getAsTyped()->getType().getBasicType() != aggregate->getSequence()[0]->getAsTyped()->getType().getBasicType())
  ------------------
  |  Branch (1562:25): [True: 0, False: 0]
  |  Branch (1562:35): [True: 0, False: 0]
  ------------------
 1563|      0|                        error(arguments->getLoc(), "cooperative vector basic types must match", fnCandidate->getName().c_str(), "");
 1564|       |
 1565|       |                    // Check that coopVecLoadNV and coopVecStoreNV buffer parameter is in buffer or shared storage
 1566|  83.5k|                    if (builtIn && (fnCandidate->getBuiltInOp() == EOpCooperativeVectorLoadNV ||
  ------------------
  |  Branch (1566:25): [True: 81.8k, False: 1.76k]
  |  Branch (1566:37): [True: 0, False: 81.8k]
  ------------------
 1567|  81.8k|                                    fnCandidate->getBuiltInOp() == EOpCooperativeVectorStoreNV) &&
  ------------------
  |  Branch (1567:37): [True: 0, False: 81.8k]
  ------------------
 1568|      0|                        i == 1) {
  ------------------
  |  Branch (1568:25): [True: 0, False: 0]
  ------------------
 1569|      0|                        TStorageQualifier storage = arg->getAsTyped()->getType().getQualifier().storage;
 1570|      0|                        if (storage != EvqBuffer && storage != EvqShared) {
  ------------------
  |  Branch (1570:29): [True: 0, False: 0]
  |  Branch (1570:53): [True: 0, False: 0]
  ------------------
 1571|      0|                            error(arguments->getLoc(), "buffer argument must be in buffer or shared storage",
 1572|      0|                                  fnCandidate->getName().c_str(), "");
 1573|      0|                        }
 1574|      0|                    }
 1575|       |
 1576|  83.5k|                    if (argType.isLongVector()) {
  ------------------
  |  Branch (1576:25): [True: 0, False: 83.5k]
  ------------------
 1577|      0|                        hasLongVectorArg = true;
 1578|      0|                    }
 1579|       |
 1580|       |                    // TODO 4.5 functionality:  A shader will fail to compile
 1581|       |                    // if the value passed to the memargument of an atomic memory function does not correspond to a buffer or
 1582|       |                    // shared variable. It is acceptable to pass an element of an array or a single component of a vector to the
 1583|       |                    // memargument of an atomic memory function, as long as the underlying array or vector is a buffer or
 1584|       |                    // shared variable.
 1585|  83.5k|                }
 1586|       |
 1587|       |                // Convert 'in' arguments
 1588|  37.2k|                addInputArgumentConversions(*fnCandidate, arguments);  // arguments may be modified if it's just a single argument node
 1589|  37.2k|            }
 1590|       |
 1591|  38.3k|            if (builtIn && fnCandidate->getBuiltInOp() != EOpNull) {
  ------------------
  |  Branch (1591:17): [True: 36.0k, False: 2.24k]
  |  Branch (1591:28): [True: 36.0k, False: 0]
  ------------------
 1592|       |                // A function call mapped to a built-in operation.
 1593|  36.0k|                result = handleBuiltInFunctionCall(loc, arguments, *fnCandidate);
 1594|  36.0k|            } else if (fnCandidate->getBuiltInOp() == EOpSpirvInst) {
  ------------------
  |  Branch (1594:24): [True: 0, False: 2.24k]
  ------------------
 1595|       |                // When SPIR-V instruction qualifier is specified, the function call is still mapped to a built-in operation.
 1596|      0|                result = handleBuiltInFunctionCall(loc, arguments, *fnCandidate);
 1597|  2.24k|            } else {
 1598|       |                // This is a function call not mapped to built-in operator.
 1599|       |                // It could still be a built-in function, but only if PureOperatorBuiltins == false.
 1600|  2.24k|                result = intermediate.setAggregateOperator(arguments, EOpFunctionCall, fnCandidate->getType(), loc);
 1601|  2.24k|                TIntermAggregate* call = result->getAsAggregate();
 1602|  2.24k|                call->setName(fnCandidate->getMangledName());
 1603|       |
 1604|       |                // this is how we know whether the given function is a built-in function or a user-defined function
 1605|       |                // if builtIn == false, it's a userDefined -> could be an overloaded built-in function also
 1606|       |                // if builtIn == true, it's definitely a built-in function with EOpNull
 1607|  2.24k|                if (! builtIn) {
  ------------------
  |  Branch (1607:21): [True: 2.24k, False: 0]
  ------------------
 1608|  2.24k|                    call->setUserDefined();
 1609|  2.24k|                    if (symbolTable.atGlobalLevel()) {
  ------------------
  |  Branch (1609:25): [True: 0, False: 2.24k]
  ------------------
 1610|      0|                        requireProfile(loc, ~EEsProfile, "calling user function from global scope");
 1611|      0|                        intermediate.addToCallGraph(infoSink, "main(", fnCandidate->getMangledName());
 1612|      0|                    } else
 1613|  2.24k|                        intermediate.addToCallGraph(infoSink, currentCaller, fnCandidate->getMangledName());
 1614|  2.24k|                }
 1615|       |
 1616|  2.24k|                if (builtIn)
  ------------------
  |  Branch (1616:21): [True: 0, False: 2.24k]
  ------------------
 1617|      0|                    nonOpBuiltInCheck(loc, *fnCandidate, *call);
 1618|  2.24k|                else
 1619|  2.24k|                    userFunctionCallCheck(loc, *call);
 1620|  2.24k|            }
 1621|       |
 1622|  38.3k|            if (hasLongVectorArg && fnCandidate->getBuiltInOp() != EOpNull) {
  ------------------
  |  Branch (1622:17): [True: 0, False: 38.3k]
  |  Branch (1622:37): [True: 0, False: 0]
  ------------------
 1623|      0|                TType longVectorResultType(EbtVoid);
 1624|      0|                handleLongVectorBuiltin(loc, fnCandidate, &longVectorResultType, arguments);
 1625|      0|                result->setType(longVectorResultType);
 1626|       |                // The type was copied from an argument; a const argument must not make
 1627|       |                // an unfolded call look like a constant.
 1628|      0|                if (result->getAsConstantUnion() == nullptr)
  ------------------
  |  Branch (1628:21): [True: 0, False: 0]
  ------------------
 1629|      0|                    result->getWritableType().getQualifier().makeTemporary();
 1630|      0|            }
 1631|       |
 1632|       |            // Convert 'out' arguments.  If it was a constant folded built-in, it won't be an aggregate anymore.
 1633|       |            // Built-ins with a single argument aren't called with an aggregate, but they also don't have an output.
 1634|       |            // Also, build the qualifier list for user function calls, which are always called with an aggregate.
 1635|  38.3k|            if (result->getAsAggregate()) {
  ------------------
  |  Branch (1635:17): [True: 22.8k, False: 15.4k]
  ------------------
 1636|  22.8k|                TQualifierList& qualifierList = result->getAsAggregate()->getQualifierList();
 1637|  86.1k|                for (int i = 0; i < fnCandidate->getParamCount(); ++i) {
  ------------------
  |  Branch (1637:33): [True: 63.2k, False: 22.8k]
  ------------------
 1638|  63.2k|                    TStorageQualifier qual = (*fnCandidate)[i].type->getQualifier().storage;
 1639|  63.2k|                    qualifierList.push_back(qual);
 1640|  63.2k|                }
 1641|  22.8k|                result = addOutputArgumentConversions(*fnCandidate, *result->getAsAggregate());
 1642|  22.8k|            }
 1643|       |
 1644|  38.3k|            handleCoopMat2FunctionCall(loc, fnCandidate, result, arguments);
 1645|       |
 1646|  38.3k|            handleVector2CoopMatConversionCall(loc, fnCandidate, result, arguments);
 1647|       |
 1648|  38.3k|            if (result->getAsTyped()->getType().isCoopVecOrLongVector() &&
  ------------------
  |  Branch (1648:17): [True: 0, False: 38.3k]
  ------------------
 1649|      0|               !result->getAsTyped()->getType().isParameterized()) {
  ------------------
  |  Branch (1649:16): [True: 0, False: 0]
  ------------------
 1650|       |                // Take the type parameters from the first argument. The result may already
 1651|       |                // be a folded constant rather than an aggregate, and a const argument must
 1652|       |                // not make an unfolded call look like a constant.
 1653|      0|                const TIntermTyped* firstArg = fnCandidate->getParamCount() == 1 || !arguments->getAsAggregate()
  ------------------
  |  Branch (1653:48): [True: 0, False: 0]
  |  Branch (1653:85): [True: 0, False: 0]
  ------------------
 1654|      0|                                                   ? arguments->getAsTyped()
 1655|      0|                                                   : arguments->getAsAggregate()->getSequence()[0]->getAsTyped();
 1656|      0|                result->setType(firstArg->getType());
 1657|      0|                if (result->getAsConstantUnion() == nullptr)
  ------------------
  |  Branch (1657:21): [True: 0, False: 0]
  ------------------
 1658|      0|                    result->getWritableType().getQualifier().makeTemporary();
 1659|      0|            }
 1660|       |
 1661|  38.3k|            if (fnCandidate->getBuiltInOp() == EOpConstructSaturated) {
  ------------------
  |  Branch (1661:17): [True: 0, False: 38.3k]
  ------------------
 1662|       |                // result type is taken from the first parameter
 1663|      0|                TIntermAggregate* aggregate = result->getAsAggregate();
 1664|      0|                if (aggregate != nullptr && aggregate->getSequence().size() == 2)
  ------------------
  |  Branch (1664:21): [True: 0, False: 0]
  |  Branch (1664:45): [True: 0, False: 0]
  ------------------
 1665|      0|                    result->setType(aggregate->getSequence()[0]->getAsTyped()->getType());
 1666|      0|                else if (aggregate == nullptr)
  ------------------
  |  Branch (1666:26): [True: 0, False: 0]
  ------------------
 1667|       |                    // a call with the wrong argument count folds away from an aggregate and
 1668|       |                    // never reaches builtInOpCheck; reject it here before SPIR-V generation
 1669|      0|                    error(loc, "requires exactly two parameters", "", "");
 1670|      0|            }
 1671|  38.3k|        }
 1672|  48.1k|    }
 1673|       |
 1674|       |    // generic error recovery
 1675|       |    // TODO: simplification: localize all the error recoveries that look like this, and taking type into account to reduce cascades
 1676|   124k|    if (result == nullptr)
  ------------------
  |  Branch (1676:9): [True: 10.1k, False: 114k]
  ------------------
 1677|  10.1k|        result = intermediate.addConstantUnion(0.0, EbtFloat, loc);
 1678|       |
 1679|   124k|    return result;
 1680|   124k|}
_ZN7glslang13TParseContext26handleCoopMat2FunctionCallERKNS_10TSourceLocEPKNS_9TFunctionEPNS_12TIntermTypedEP11TIntermNode:
 1683|  38.3k|{
 1684|       |    // coopMatPerElementNV/EXT are declared with an empty prototype, so overload
 1685|       |    // resolution accepts any argument list. Fewer than the required (result matrix,
 1686|       |    // input matrix, per-element function) arguments is not passed as an aggregate,
 1687|       |    // skips the validation below, and reaches SPIR-V generation, which dereferences
 1688|       |    // operands[0] as the result matrix.
 1689|  38.3k|    if (fnCandidate->getBuiltInOp() == EOpCooperativeMatrixPerElementOpNV) {
  ------------------
  |  Branch (1689:9): [True: 0, False: 38.3k]
  ------------------
 1690|      0|        const TIntermAggregate* aggregate = arguments ? arguments->getAsAggregate() : nullptr;
  ------------------
  |  Branch (1690:45): [True: 0, False: 0]
  ------------------
 1691|      0|        if (aggregate == nullptr || aggregate->getSequence().size() < 3) {
  ------------------
  |  Branch (1691:13): [True: 0, False: 0]
  |  Branch (1691:37): [True: 0, False: 0]
  ------------------
 1692|      0|            error(loc, "expected a result matrix, an input matrix, and a per-element function",
 1693|      0|                  fnCandidate->getName().c_str(), "");
 1694|      0|            return;
 1695|      0|        }
 1696|      0|    }
 1697|       |
 1698|  38.3k|    if (arguments && arguments->getAsAggregate()) {
  ------------------
  |  Branch (1698:9): [True: 37.2k, False: 1.05k]
  |  Branch (1698:22): [True: 25.1k, False: 12.1k]
  ------------------
 1699|  25.1k|        auto &sequence = arguments->getAsAggregate()->getSequence();
 1700|       |
 1701|  25.1k|        if (fnCandidate->getBuiltInOp() == EOpCooperativeMatrixReduceNV && sequence.size() == 4) {
  ------------------
  |  Branch (1701:13): [True: 0, False: 25.1k]
  |  Branch (1701:76): [True: 0, False: 0]
  ------------------
 1702|      0|            static constexpr int CM_UseAcc = 2; // == gl_MatrixUseAccumulator
 1703|      0|            static constexpr int CM_ReduceRow = 1;
 1704|      0|            static constexpr int CM_ReduceColumn = 2;
 1705|      0|            static constexpr int CM_ReduceRowAndColumn = 3;
 1706|      0|            static constexpr int CM_Reduce2x2 = 4;
 1707|       |
 1708|      0|            const TType& resultType = sequence[0]->getAsTyped()->getType();
 1709|      0|            const TType& matrixType = sequence[1]->getAsTyped()->getType();
 1710|       |
 1711|      0|            if (resultType.getBasicType() != matrixType.getBasicType()) {
  ------------------
  |  Branch (1711:17): [True: 0, False: 0]
  ------------------
 1712|      0|                error(loc, "input and result component types must match", fnCandidate->getName().c_str(), "");
 1713|      0|            }
 1714|      0|            if (resultType.getCoopMatKHRuse() != CM_UseAcc || matrixType.getCoopMatKHRuse() != CM_UseAcc) {
  ------------------
  |  Branch (1714:17): [True: 0, False: 0]
  |  Branch (1714:63): [True: 0, False: 0]
  ------------------
 1715|      0|                error(loc, "input and result Use must be Accumulator", fnCandidate->getName().c_str(), "");
 1716|      0|            }
 1717|       |
 1718|      0|            const TTypeParameters* resultParameters = resultType.getTypeParameters();
 1719|      0|            const TTypeParameters* matrixParameters = matrixType.getTypeParameters();
 1720|      0|            const TArraySizes* resultSizes = resultParameters ? resultParameters->arraySizes : nullptr;
  ------------------
  |  Branch (1720:46): [True: 0, False: 0]
  ------------------
 1721|      0|            const TArraySizes* matrixSizes = matrixParameters ? matrixParameters->arraySizes : nullptr;
  ------------------
  |  Branch (1721:46): [True: 0, False: 0]
  ------------------
 1722|      0|            const bool completeTypes = resultSizes && resultSizes->getNumDims() == 4 &&
  ------------------
  |  Branch (1722:40): [True: 0, False: 0]
  |  Branch (1722:55): [True: 0, False: 0]
  ------------------
 1723|      0|                                       matrixSizes && matrixSizes->getNumDims() == 4;
  ------------------
  |  Branch (1723:40): [True: 0, False: 0]
  |  Branch (1723:55): [True: 0, False: 0]
  ------------------
 1724|      0|            const auto knownDimensionMismatch = [](const TArraySizes& result, int resultIndex,
 1725|      0|                                                   const TArraySizes& matrix, int matrixIndex) {
 1726|      0|                return !result.elementEqual(matrix, resultIndex, matrixIndex) &&
 1727|      0|                       result.getDimNode(resultIndex) == nullptr && matrix.getDimNode(matrixIndex) == nullptr;
 1728|      0|            };
 1729|      0|            if (!completeTypes) {
  ------------------
  |  Branch (1729:17): [True: 0, False: 0]
  ------------------
 1730|      0|                error(loc, "incomplete cooperative matrix type parameters", fnCandidate->getName().c_str(), "");
 1731|      0|            } else if (knownDimensionMismatch(*resultSizes, 0, *matrixSizes, 0)) {
  ------------------
  |  Branch (1731:24): [True: 0, False: 0]
  ------------------
 1732|      0|                error(loc, "input and result scopes must match", fnCandidate->getName().c_str(), "");
 1733|      0|            }
 1734|       |
 1735|      0|            const TIntermConstantUnion* maskConstant = sequence[2]->getAsConstantUnion();
 1736|      0|            if (maskConstant == nullptr) {
  ------------------
  |  Branch (1736:17): [True: 0, False: 0]
  ------------------
 1737|      0|                error(loc, "reduceMask must be a constant expression", fnCandidate->getName().c_str(), "");
 1738|      0|            } else {
 1739|      0|                const int mask = maskConstant->getConstArray()[0].getIConst();
 1740|      0|                if (mask != CM_ReduceRow && mask != CM_ReduceColumn &&
  ------------------
  |  Branch (1740:21): [True: 0, False: 0]
  |  Branch (1740:45): [True: 0, False: 0]
  ------------------
 1741|      0|                    mask != CM_ReduceRowAndColumn && mask != CM_Reduce2x2) {
  ------------------
  |  Branch (1741:21): [True: 0, False: 0]
  |  Branch (1741:54): [True: 0, False: 0]
  ------------------
 1742|      0|                    error(loc, "reduceMask must be a valid cooperative matrix reduction value",
 1743|      0|                          fnCandidate->getName().c_str(), "");
 1744|      0|                } else if (completeTypes) {
  ------------------
  |  Branch (1744:28): [True: 0, False: 0]
  ------------------
 1745|      0|                    if (mask == CM_ReduceRow && knownDimensionMismatch(*resultSizes, 1, *matrixSizes, 1)) {
  ------------------
  |  Branch (1745:25): [True: 0, False: 0]
  |  Branch (1745:49): [True: 0, False: 0]
  ------------------
 1746|      0|                        error(loc, "result rows must match input rows for a row reduction",
 1747|      0|                              fnCandidate->getName().c_str(), "");
 1748|      0|                    } else if (mask == CM_ReduceColumn && knownDimensionMismatch(*resultSizes, 2, *matrixSizes, 2)) {
  ------------------
  |  Branch (1748:32): [True: 0, False: 0]
  |  Branch (1748:59): [True: 0, False: 0]
  ------------------
 1749|      0|                        error(loc, "result columns must match input columns for a column reduction",
 1750|      0|                              fnCandidate->getName().c_str(), "");
 1751|      0|                    } else if (mask == CM_Reduce2x2 &&
  ------------------
  |  Branch (1751:32): [True: 0, False: 0]
  ------------------
 1752|      0|                               resultSizes->getDimNode(1) == nullptr && resultSizes->getDimNode(2) == nullptr &&
  ------------------
  |  Branch (1752:32): [True: 0, False: 0]
  |  Branch (1752:73): [True: 0, False: 0]
  ------------------
 1753|      0|                               matrixSizes->getDimNode(1) == nullptr && matrixSizes->getDimNode(2) == nullptr &&
  ------------------
  |  Branch (1753:32): [True: 0, False: 0]
  |  Branch (1753:73): [True: 0, False: 0]
  ------------------
 1754|      0|                               (static_cast<uint64_t>(resultSizes->getDimSize(1)) * 2 !=
  ------------------
  |  Branch (1754:33): [True: 0, False: 0]
  ------------------
 1755|      0|                                    static_cast<uint64_t>(matrixSizes->getDimSize(1)) ||
 1756|      0|                                static_cast<uint64_t>(resultSizes->getDimSize(2)) * 2 !=
  ------------------
  |  Branch (1756:33): [True: 0, False: 0]
  ------------------
 1757|      0|                                    static_cast<uint64_t>(matrixSizes->getDimSize(2)))) {
 1758|      0|                        error(loc, "result rows and columns must be half the input rows and columns for a 2x2 reduction",
 1759|      0|                              fnCandidate->getName().c_str(), "");
 1760|      0|                    }
 1761|      0|                }
 1762|      0|            }
 1763|      0|        }
 1764|       |
 1765|  96.6k|        for (uint32_t i = 0; i < sequence.size(); ++i) {
  ------------------
  |  Branch (1765:30): [True: 71.5k, False: 25.1k]
  ------------------
 1766|  71.5k|            auto param = sequence[i];
 1767|  71.5k|            if (param->getAsTyped()->getBasicType() == EbtFunction) {
  ------------------
  |  Branch (1767:17): [True: 0, False: 71.5k]
  ------------------
 1768|       |                // Add the function to the callgraph
 1769|      0|                intermediate.addToCallGraph(infoSink, currentCaller, param->getAsSymbolNode()->getMangledName());
 1770|       |
 1771|       |                // error checking that all parameters are 'const in'
 1772|      0|                if (fnCandidate->getBuiltInOp() == EOpCooperativeMatrixLoadTensorNV ||
  ------------------
  |  Branch (1772:21): [True: 0, False: 0]
  ------------------
 1773|      0|                    fnCandidate->getBuiltInOp() == EOpCooperativeMatrixReduceNV ||
  ------------------
  |  Branch (1773:21): [True: 0, False: 0]
  ------------------
 1774|      0|                    fnCandidate->getBuiltInOp() == EOpCooperativeMatrixPerElementOpNV) {
  ------------------
  |  Branch (1774:21): [True: 0, False: 0]
  ------------------
 1775|      0|                    const TFunction* func = symbolTable.find(param->getAsSymbolNode()->getMangledName())->getAsFunction();
 1776|      0|                    for (int i = 0; i < func->getParamCount(); ++i) {
  ------------------
  |  Branch (1776:37): [True: 0, False: 0]
  ------------------
 1777|      0|                        const TParameter& arg = (*func)[i];
 1778|      0|                        const TQualifier& formalQualifier = arg.type->getQualifier();
 1779|      0|                        if (formalQualifier.storage != EvqConstReadOnly) {
  ------------------
  |  Branch (1779:29): [True: 0, False: 0]
  ------------------
 1780|      0|                            error(loc, "function parameters must all be qualified 'const in'", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1781|      0|                        }
 1782|      0|                    }
 1783|      0|                }
 1784|       |
 1785|       |
 1786|       |                // error checking reduce function has matching parameters
 1787|      0|                if (fnCandidate->getBuiltInOp() == EOpCooperativeMatrixReduceNV) {
  ------------------
  |  Branch (1787:21): [True: 0, False: 0]
  ------------------
 1788|      0|                    const TFunction* combineOp = symbolTable.find(param->getAsSymbolNode()->getMangledName())->getAsFunction();
 1789|      0|                    const TType& matrixType = sequence[1]->getAsTyped()->getType();
 1790|      0|                    const auto isMatrixComponentType = [&matrixType](const TType& type) {
 1791|      0|                        return type.getBasicType() == matrixType.getBasicType() && type.isScalar() && !type.isCoopMat();
 1792|      0|                    };
 1793|       |
 1794|      0|                    if (combineOp->getParamCount() != 2) {
  ------------------
  |  Branch (1794:25): [True: 0, False: 0]
  ------------------
 1795|      0|                        error(loc, "must have two parameters", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1796|      0|                    }
 1797|       |
 1798|      0|                    for (int i = 0; i < combineOp->getParamCount(); ++i) {
  ------------------
  |  Branch (1798:37): [True: 0, False: 0]
  ------------------
 1799|      0|                        const TParameter& arg = (*combineOp)[i];
 1800|      0|                        if (!isMatrixComponentType(*arg.type)) {
  ------------------
  |  Branch (1800:29): [True: 0, False: 0]
  ------------------
 1801|      0|                            error(loc, "parameter types must match cooperative matrix component type", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1802|      0|                        }
 1803|      0|                    }
 1804|      0|                    if (!isMatrixComponentType(combineOp->getType())) {
  ------------------
  |  Branch (1804:25): [True: 0, False: 0]
  ------------------
 1805|      0|                        error(loc, "return type must match cooperative matrix component type", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1806|      0|                    }
 1807|      0|                }
 1808|       |
 1809|       |                // error checking perelement op has correct parameters
 1810|      0|                if (fnCandidate->getBuiltInOp() == EOpCooperativeMatrixPerElementOpNV) {
  ------------------
  |  Branch (1810:21): [True: 0, False: 0]
  ------------------
 1811|      0|                    const TFunction* elemOp = symbolTable.find(param->getAsSymbolNode()->getMangledName())->getAsFunction();
 1812|      0|                    const TType& matrixType = sequence[1]->getAsTyped()->getType();
 1813|      0|                    const auto isMatrixComponentType = [&matrixType](const TType& type) {
 1814|      0|                        return type.getBasicType() == matrixType.getBasicType() && type.isScalar() && !type.isCoopMat();
 1815|      0|                    };
 1816|       |
 1817|      0|                    if (matrixType != sequence[0]->getAsTyped()->getType()) {
  ------------------
  |  Branch (1817:25): [True: 0, False: 0]
  ------------------
 1818|      0|                        error(loc, "cooperative matrix input and result types must match", "", "");
 1819|      0|                    }
 1820|       |
 1821|      0|                    if (elemOp->getParamCount() < 3) {
  ------------------
  |  Branch (1821:25): [True: 0, False: 0]
  ------------------
 1822|      0|                        error(loc, "not enough parameters", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1823|      0|                    } else if (elemOp->getParamCount() != (int)sequence.size()) {
  ------------------
  |  Branch (1823:32): [True: 0, False: 0]
  ------------------
 1824|      0|                        error(loc, "number of parameters must match call to cooperative matrix per-element operation", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1825|      0|                    } else {
 1826|      0|                        if ((*elemOp)[0].type->getBasicType() != EbtUint || !(*elemOp)[0].type->isScalar() ||
  ------------------
  |  Branch (1826:29): [True: 0, False: 0]
  |  Branch (1826:77): [True: 0, False: 0]
  ------------------
 1827|      0|                            (*elemOp)[0].type->isCoopMat() ||
  ------------------
  |  Branch (1827:29): [True: 0, False: 0]
  ------------------
 1828|      0|                            (*elemOp)[1].type->getBasicType() != EbtUint || !(*elemOp)[1].type->isScalar() ||
  ------------------
  |  Branch (1828:29): [True: 0, False: 0]
  |  Branch (1828:77): [True: 0, False: 0]
  ------------------
 1829|      0|                            (*elemOp)[1].type->isCoopMat()) {
  ------------------
  |  Branch (1829:29): [True: 0, False: 0]
  ------------------
 1830|      0|                            error(loc, "row/column parameters must be uint32_t", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1831|      0|                        }
 1832|       |
 1833|      0|                        const TParameter& matArg = (*elemOp)[2];
 1834|      0|                        if (!isMatrixComponentType(*matArg.type)) {
  ------------------
  |  Branch (1834:29): [True: 0, False: 0]
  ------------------
 1835|      0|                            error(loc, "third parameter must match cooperative matrix component type", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1836|      0|                        }
 1837|       |
 1838|      0|                        for (int i = 3; i < elemOp->getParamCount(); ++i) {
  ------------------
  |  Branch (1838:41): [True: 0, False: 0]
  ------------------
 1839|      0|                            const TParameter& arg = (*elemOp)[i];
 1840|      0|                            const TType& operandType = sequence[i]->getAsTyped()->getType();
 1841|      0|                            if (operandType.isCoopMat()) {
  ------------------
  |  Branch (1841:33): [True: 0, False: 0]
  ------------------
 1842|      0|                                if (operandType != matrixType) {
  ------------------
  |  Branch (1842:37): [True: 0, False: 0]
  ------------------
 1843|      0|                                    error(loc, "optional cooperative matrix types must match the input matrix type",
 1844|      0|                                          param->getAsSymbolNode()->getMangledName().c_str(), "");
 1845|      0|                                }
 1846|      0|                                if (!isMatrixComponentType(*arg.type)) {
  ------------------
  |  Branch (1846:37): [True: 0, False: 0]
  ------------------
 1847|      0|                                    error(loc, "parameters corresponding to cooperative matrices must match the matrix component type",
 1848|      0|                                          param->getAsSymbolNode()->getMangledName().c_str(), "");
 1849|      0|                                }
 1850|      0|                            } else if (operandType != *arg.type) {
  ------------------
  |  Branch (1850:40): [True: 0, False: 0]
  ------------------
 1851|      0|                                error(loc, "parameter types must match or be cooperative matrix component type", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1852|      0|                            }
 1853|      0|                        }
 1854|      0|                        if (!isMatrixComponentType(elemOp->getType())) {
  ------------------
  |  Branch (1854:29): [True: 0, False: 0]
  ------------------
 1855|      0|                            error(loc, "return type must match cooperative matrix component type", param->getAsSymbolNode()->getMangledName().c_str(), "");
 1856|      0|                        }
 1857|      0|                    }
 1858|      0|                }
 1859|      0|            }
 1860|  71.5k|        }
 1861|       |
 1862|       |        // Validate the decode function(s) for coopMatLoadTensorNV.
 1863|       |        //
 1864|       |        //   coopMatLoadTensorNV(mat, buf, off, t [, view] [, decodeFunc [, decodeVectorFunc]])
 1865|       |        //
 1866|       |        // The decode function rules are:
 1867|       |        //   * decodeFunc:        scalar return matching the matrix component type.
 1868|       |        //   * decodeVectorFunc:  optional, requires GL_NV_cooperative_matrix_decode_vector.
 1869|       |        //                        Vector return of the matrix component type with V in {2,4,8}.
 1870|       |        // Each function is validated independently; their parameter lists do
 1871|       |        // not need to match (the buffer_reference type may differ between the
 1872|       |        // two so the shader can type-view the same byte address differently).
 1873|       |        // The non-decode load form (no function args) is allowed and skipped here.
 1874|  25.1k|        if (fnCandidate->getBuiltInOp() == EOpCooperativeMatrixLoadTensorNV) {
  ------------------
  |  Branch (1874:13): [True: 0, False: 25.1k]
  ------------------
 1875|      0|            std::vector<TIntermNode*> funcArgs;
 1876|      0|            for (uint32_t i = 0; i < sequence.size(); ++i) {
  ------------------
  |  Branch (1876:34): [True: 0, False: 0]
  ------------------
 1877|      0|                if (sequence[i]->getAsTyped()->getBasicType() == EbtFunction) {
  ------------------
  |  Branch (1877:21): [True: 0, False: 0]
  ------------------
 1878|      0|                    funcArgs.push_back(sequence[i]);
 1879|      0|                }
 1880|      0|            }
 1881|      0|            assert(funcArgs.size() <= 2);
 1882|       |
 1883|      0|            auto checkBaseShape = [&](const TFunction* fn, const char* name) {
 1884|      0|                if (fn->getParamCount() != 3) {
 1885|      0|                    error(loc, "must have three parameters", name, "");
 1886|      0|                    return;
 1887|      0|                }
 1888|      0|                if ((*fn)[0].type->getBasicType() != EbtReference) {
 1889|      0|                    error(loc, "first parameter must be buffer reference type", name, "");
 1890|      0|                }
 1891|      0|                if ((*fn)[1].type->getBasicType() != EbtUint || (*fn)[2].type->getBasicType() != EbtUint) {
 1892|      0|                    error(loc, "coordinate parameters must be uint32_t", name, "");
 1893|      0|                }
 1894|      0|                if (!(*fn)[1].type->isArray() || !(*fn)[2].type->isArray()) {
 1895|      0|                    error(loc, "coordinate parameters must be uint32_t", name, "");
 1896|      0|                }
 1897|      0|            };
 1898|       |
 1899|      0|            const TType& matType = sequence[0]->getAsTyped()->getType();
 1900|       |
 1901|      0|            if (funcArgs.size() >= 1) {
  ------------------
  |  Branch (1901:17): [True: 0, False: 0]
  ------------------
 1902|      0|                const char* scalarName = funcArgs[0]->getAsSymbolNode()->getMangledName().c_str();
 1903|      0|                const TFunction* scalarFn =
 1904|      0|                    symbolTable.find(funcArgs[0]->getAsSymbolNode()->getMangledName())->getAsFunction();
 1905|      0|                checkBaseShape(scalarFn, scalarName);
 1906|      0|                const TType& retType = scalarFn->getType();
 1907|      0|                if (retType.getBasicType() != matType.getBasicType() ||
  ------------------
  |  Branch (1907:21): [True: 0, False: 0]
  ------------------
 1908|      0|                    retType.isVector() || retType.isLongVector() ||
  ------------------
  |  Branch (1908:21): [True: 0, False: 0]
  |  Branch (1908:43): [True: 0, False: 0]
  ------------------
 1909|      0|                    retType.isArray() || retType.isStruct() || retType.isMatrix()) {
  ------------------
  |  Branch (1909:21): [True: 0, False: 0]
  |  Branch (1909:42): [True: 0, False: 0]
  |  Branch (1909:64): [True: 0, False: 0]
  ------------------
 1910|      0|                    error(loc, "decodeFunc return type must be the cooperative matrix component type (scalar)",
 1911|      0|                          scalarName, "");
 1912|      0|                }
 1913|      0|            }
 1914|       |
 1915|      0|            if (funcArgs.size() == 2) {
  ------------------
  |  Branch (1915:17): [True: 0, False: 0]
  ------------------
 1916|      0|                requireExtensions(loc, 1, &E_GL_NV_cooperative_matrix_decode_vector,
 1917|      0|                                  "coopMatLoadTensorNV decodeVectorFunc argument");
 1918|       |
 1919|      0|                const char* vectorName = funcArgs[1]->getAsSymbolNode()->getMangledName().c_str();
 1920|      0|                const TFunction* vectorFn =
 1921|      0|                    symbolTable.find(funcArgs[1]->getAsSymbolNode()->getMangledName())->getAsFunction();
 1922|      0|                checkBaseShape(vectorFn, vectorName);
 1923|       |
 1924|      0|                const TType& retType = vectorFn->getType();
 1925|      0|                const bool retIsVector = retType.isVector() || retType.isLongVector();
  ------------------
  |  Branch (1925:42): [True: 0, False: 0]
  |  Branch (1925:64): [True: 0, False: 0]
  ------------------
 1926|      0|                if (!retIsVector) {
  ------------------
  |  Branch (1926:21): [True: 0, False: 0]
  ------------------
 1927|      0|                    error(loc, "decodeVectorFunc return type must be a vector of the matrix component type",
 1928|      0|                          vectorName, "");
 1929|      0|                } else {
 1930|      0|                    if (retType.getBasicType() != matType.getBasicType()) {
  ------------------
  |  Branch (1930:25): [True: 0, False: 0]
  ------------------
 1931|      0|                        error(loc, "decodeVectorFunc return type component must match cooperative matrix component type",
 1932|      0|                              vectorName, "");
 1933|      0|                    }
 1934|      0|                    if (!retType.hasSpecConstantVectorComponents()) {
  ------------------
  |  Branch (1934:25): [True: 0, False: 0]
  ------------------
 1935|      0|                        const uint32_t V = retType.isLongVector()
  ------------------
  |  Branch (1935:44): [True: 0, False: 0]
  ------------------
 1936|      0|                            ? static_cast<uint32_t>(retType.getTypeParameters()->arraySizes->getDimSize(0))
 1937|      0|                            : static_cast<uint32_t>(retType.getVectorSize());
 1938|      0|                        if (V != 2 && V != 4 && V != 8) {
  ------------------
  |  Branch (1938:29): [True: 0, False: 0]
  |  Branch (1938:39): [True: 0, False: 0]
  |  Branch (1938:49): [True: 0, False: 0]
  ------------------
 1939|      0|                            error(loc, "decodeVectorFunc return vector length must be 2, 4, or 8",
 1940|      0|                                  vectorName, "");
 1941|      0|                        }
 1942|      0|                    }
 1943|      0|                }
 1944|      0|            }
 1945|      0|        }
 1946|  25.1k|    }
 1947|  38.3k|    if ((result->getAsTyped()->getType().isCoopMat() ||
  ------------------
  |  Branch (1947:10): [True: 0, False: 38.3k]
  ------------------
 1948|  38.3k|         result->getAsTyped()->getType().isTensorLayoutNV() ||
  ------------------
  |  Branch (1948:10): [True: 0, False: 38.3k]
  ------------------
 1949|  38.3k|         result->getAsTyped()->getType().isTensorViewNV()) &&
  ------------------
  |  Branch (1949:10): [True: 0, False: 38.3k]
  ------------------
 1950|      0|       !result->getAsTyped()->getType().isParameterized()) {
  ------------------
  |  Branch (1950:8): [True: 0, False: 0]
  ------------------
 1951|      0|        assert(fnCandidate->getBuiltInOp() == EOpCooperativeMatrixMulAdd ||
 1952|      0|               fnCandidate->getBuiltInOp() == EOpCooperativeMatrixMulAddNV ||
 1953|      0|               fnCandidate->getBuiltInOp() == EOpCooperativeMatrixReduceNV ||
 1954|      0|               fnCandidate->getBuiltInOp() == EOpCooperativeMatrixPerElementOpNV ||
 1955|      0|               fnCandidate->getBuiltInOp() == EOpCooperativeMatrixTransposeNV ||
 1956|      0|               fnCandidate->getBuiltInOp() == EOpCooperativeMatrixGetCoordinateEXT ||
 1957|      0|               fnCandidate->getBuiltInOp() == EOpCreateTensorLayoutNV ||
 1958|      0|               fnCandidate->getBuiltInOp() == EOpTensorLayoutSetDimensionNV ||
 1959|      0|               fnCandidate->getBuiltInOp() == EOpTensorLayoutSetBlockSizeNV ||
 1960|      0|               fnCandidate->getBuiltInOp() == EOpTensorLayoutSetStrideNV ||
 1961|      0|               fnCandidate->getBuiltInOp() == EOpTensorLayoutSliceNV ||
 1962|      0|               fnCandidate->getBuiltInOp() == EOpTensorLayoutSetClampValueNV ||
 1963|      0|               fnCandidate->getBuiltInOp() == EOpCreateTensorViewNV ||
 1964|      0|               fnCandidate->getBuiltInOp() == EOpTensorViewSetDimensionNV ||
 1965|      0|               fnCandidate->getBuiltInOp() == EOpTensorViewSetStrideNV ||
 1966|      0|               fnCandidate->getBuiltInOp() == EOpTensorViewSetClipNV);
 1967|       |
 1968|      0|        if (fnCandidate->getBuiltInOp() == EOpCreateTensorLayoutNV) {
  ------------------
  |  Branch (1968:13): [True: 0, False: 0]
  ------------------
 1969|       |
 1970|       |            // Convert template parameters to arraySizes/typeParameters
 1971|      0|            TArraySizes *arraySizes = new TArraySizes;
 1972|      0|            for (uint32_t i = 0; i < 2; ++i) {
  ------------------
  |  Branch (1972:34): [True: 0, False: 0]
  ------------------
 1973|      0|                TIntermNode *param {};
 1974|      0|                if (fnCandidate->getParamCount() == 1) {
  ------------------
  |  Branch (1974:21): [True: 0, False: 0]
  ------------------
 1975|       |                    // a single argument is not wrapped in an aggregate
 1976|      0|                    if (i == 0) {
  ------------------
  |  Branch (1976:25): [True: 0, False: 0]
  ------------------
 1977|      0|                        param = arguments;
 1978|      0|                    }
 1979|      0|                } else {
 1980|      0|                    assert(arguments->getAsAggregate());
 1981|      0|                    auto &sequence = arguments->getAsAggregate()->getSequence();
 1982|      0|                    if (i < sequence.size()) {
  ------------------
  |  Branch (1982:25): [True: 0, False: 0]
  ------------------
 1983|      0|                        param = sequence[i];
 1984|      0|                    }
 1985|      0|                }
 1986|      0|                if (param) {
  ------------------
  |  Branch (1986:21): [True: 0, False: 0]
  ------------------
 1987|       |                    // the arguments become the type parameters of the result, so
 1988|       |                    // they must be constants or specialization constants
 1989|      0|                    TArraySize size;
 1990|      0|                    arraySizeCheck(loc, param->getAsTyped(), size, "type parameter", true);
 1991|      0|                    arraySizes->addInnerSize(size);
 1992|      0|                } else {
 1993|       |                    // gl_CooperativeMatrixClampModeUndefined
 1994|      0|                    arraySizes->addInnerSize(0);
 1995|      0|                }
 1996|      0|            }
 1997|      0|            TTypeParameters typeParameters;
 1998|      0|            typeParameters.arraySizes = arraySizes;
 1999|       |
 2000|      0|            TType resultType;
 2001|      0|            resultType.deepCopy(result->getAsTyped()->getType());
 2002|       |
 2003|      0|            resultType.copyTypeParameters(typeParameters);
 2004|      0|            result->setType(resultType);
 2005|      0|        } else if (fnCandidate->getBuiltInOp() == EOpCreateTensorViewNV) {
  ------------------
  |  Branch (2005:20): [True: 0, False: 0]
  ------------------
 2006|       |
 2007|       |            // Convert template parameters to arraySizes/typeParameters
 2008|      0|            TArraySizes *arraySizes = new TArraySizes;
 2009|      0|            for (uint32_t i = 0; i < 7; ++i) {
  ------------------
  |  Branch (2009:34): [True: 0, False: 0]
  ------------------
 2010|      0|                TIntermNode *param {};
 2011|      0|                if (fnCandidate->getParamCount() == 1) {
  ------------------
  |  Branch (2011:21): [True: 0, False: 0]
  ------------------
 2012|       |                    // a single argument is not wrapped in an aggregate
 2013|      0|                    if (i == 0) {
  ------------------
  |  Branch (2013:25): [True: 0, False: 0]
  ------------------
 2014|      0|                        param = arguments;
 2015|      0|                    }
 2016|      0|                } else {
 2017|      0|                    assert(arguments->getAsAggregate());
 2018|      0|                    auto &sequence = arguments->getAsAggregate()->getSequence();
 2019|      0|                    if (i < sequence.size()) {
  ------------------
  |  Branch (2019:25): [True: 0, False: 0]
  ------------------
 2020|      0|                        param = sequence[i];
 2021|      0|                    }
 2022|      0|                }
 2023|      0|                if (param) {
  ------------------
  |  Branch (2023:21): [True: 0, False: 0]
  ------------------
 2024|       |                    // the arguments become the type parameters of the result, so
 2025|       |                    // they must be constants or specialization constants
 2026|      0|                    TArraySize size;
 2027|      0|                    arraySizeCheck(loc, param->getAsTyped(), size, "type parameter", true);
 2028|      0|                    arraySizes->addInnerSize(size);
 2029|      0|                } else {
 2030|      0|                    uint32_t value = 0;
 2031|      0|                    if (i >= 2) {
  ------------------
  |  Branch (2031:25): [True: 0, False: 0]
  ------------------
 2032|       |                        // default permutation values are an increasing sequence
 2033|      0|                        value = i - 2;
 2034|      0|                    }
 2035|      0|                    arraySizes->addInnerSize(value);
 2036|      0|                }
 2037|      0|            }
 2038|      0|            TTypeParameters typeParameters;
 2039|      0|            typeParameters.arraySizes = arraySizes;
 2040|       |
 2041|      0|            TType resultType;
 2042|      0|            resultType.deepCopy(result->getAsTyped()->getType());
 2043|       |
 2044|      0|            resultType.copyTypeParameters(typeParameters);
 2045|      0|            result->setType(resultType);
 2046|      0|        } else if (fnCandidate->getBuiltInOp() == EOpCooperativeMatrixReduceNV ||
  ------------------
  |  Branch (2046:20): [True: 0, False: 0]
  ------------------
 2047|      0|                   fnCandidate->getBuiltInOp() == EOpCooperativeMatrixPerElementOpNV ||
  ------------------
  |  Branch (2047:20): [True: 0, False: 0]
  ------------------
 2048|      0|                   fnCandidate->getBuiltInOp() == EOpCooperativeMatrixTransposeNV ||
  ------------------
  |  Branch (2048:20): [True: 0, False: 0]
  ------------------
 2049|      0|                   fnCandidate->getBuiltInOp() == EOpCooperativeMatrixGetCoordinateEXT ||
  ------------------
  |  Branch (2049:20): [True: 0, False: 0]
  ------------------
 2050|      0|                   fnCandidate->getBuiltInOp() == EOpTensorLayoutSetDimensionNV ||
  ------------------
  |  Branch (2050:20): [True: 0, False: 0]
  ------------------
 2051|      0|                   fnCandidate->getBuiltInOp() == EOpTensorLayoutSetBlockSizeNV ||
  ------------------
  |  Branch (2051:20): [True: 0, False: 0]
  ------------------
 2052|      0|                   fnCandidate->getBuiltInOp() == EOpTensorLayoutSetStrideNV ||
  ------------------
  |  Branch (2052:20): [True: 0, False: 0]
  ------------------
 2053|      0|                   fnCandidate->getBuiltInOp() == EOpTensorLayoutSliceNV ||
  ------------------
  |  Branch (2053:20): [True: 0, False: 0]
  ------------------
 2054|      0|                   fnCandidate->getBuiltInOp() == EOpTensorLayoutSetClampValueNV ||
  ------------------
  |  Branch (2054:20): [True: 0, False: 0]
  ------------------
 2055|      0|                   fnCandidate->getBuiltInOp() == EOpTensorViewSetDimensionNV ||
  ------------------
  |  Branch (2055:20): [True: 0, False: 0]
  ------------------
 2056|      0|                   fnCandidate->getBuiltInOp() == EOpTensorViewSetStrideNV ||
  ------------------
  |  Branch (2056:20): [True: 0, False: 0]
  ------------------
 2057|      0|                   fnCandidate->getBuiltInOp() == EOpTensorViewSetClipNV) {
  ------------------
  |  Branch (2057:20): [True: 0, False: 0]
  ------------------
 2058|       |            // Set result type to match type of first parameter
 2059|      0|            result->setType(result->getAsAggregate()->getSequence()[0]->getAsTyped()->getType());
 2060|      0|        } else {
 2061|       |            // The only remaining operation is MulAdd
 2062|      0|            assert(fnCandidate->getBuiltInOp() == EOpCooperativeMatrixMulAdd ||
 2063|      0|                   fnCandidate->getBuiltInOp() == EOpCooperativeMatrixMulAddNV);
 2064|       |
 2065|       |            // Validate that the matrix sizes are compatible for multiplication and addition
 2066|      0|            const auto &sequence = arguments->getAsAggregate()->getSequence();
 2067|       |
 2068|      0|            using ArrayDim = const TArraySize&;
 2069|      0|            auto getDim = [](const TIntermSequence& seq, int idx) -> std::tuple<ArrayDim, ArrayDim, int> {
 2070|      0|                const auto &type = seq[idx]->getAsTyped()->getType();
 2071|      0|                const auto *size = type.getTypeParameters()->arraySizes;
 2072|       |
 2073|      0|                if (type.isCoopMatNV()) {
 2074|       |                    // coopmatNV don't encode usage, so provide the correct usage by default
 2075|      0|                    return {size->getArraySize(2), size->getArraySize(3), idx};
 2076|      0|                } else {
 2077|      0|                    assert(type.isCoopMatKHR());
 2078|      0|                    return {size->getArraySize(1), size->getArraySize(2), size->getDimSize(3)};
 2079|      0|                }
 2080|      0|            };
 2081|       |
 2082|       |            // sizes look like: [scope, rows, cols, use]
 2083|      0|            auto [aRows, aCols, aUse] = getDim(sequence, 0);
 2084|      0|            auto [bRows, bCols, bUse] = getDim(sequence, 1);
 2085|      0|            auto [cRows, cCols, cUse] = getDim(sequence, 2);
 2086|       |
 2087|      0|            auto toString = [](ArrayDim dim) -> std::string {
 2088|      0|                std::stringstream buf;
 2089|      0|                if (dim.node == nullptr) {
 2090|      0|                    buf << dim.size;
 2091|      0|                } else {
 2092|      0|                    buf << "spec_const";
 2093|      0|                }
 2094|      0|                return buf.str();
 2095|      0|            };
 2096|       |
 2097|       |            // A coop matrix operand can be a non-symbol expression (e.g. a nested
 2098|       |            // coopMatMulAdd result), so getAsSymbolNode() may be null here.
 2099|      0|            auto operandName = [](TIntermNode* node) -> const char* {
 2100|      0|                const TIntermSymbol* symbol = node->getAsSymbolNode();
 2101|      0|                return symbol ? symbol->getMangledName().c_str() : "";
 2102|      0|            };
 2103|       |
 2104|      0|            if (aCols != bRows) {
  ------------------
  |  Branch (2104:17): [True: 0, False: 0]
  ------------------
 2105|      0|                auto aRowsStr = toString(aRows);
 2106|      0|                auto aColsStr = toString(aCols);
 2107|      0|                auto bRowsStr = toString(bRows);
 2108|      0|                auto bColsStr = toString(bCols);
 2109|      0|                error(loc, "cannot multiply coop matrices with incompatible sizes",
 2110|      0|                      operandName(sequence[0]),
 2111|      0|                      "%s x %s with %s x %s",
 2112|      0|                      aRowsStr.c_str(),
 2113|      0|                      aColsStr.c_str(),
 2114|      0|                      bRowsStr.c_str(),
 2115|      0|                      bColsStr.c_str());
 2116|      0|            } else if (aRows != cRows || bCols != cCols) {
  ------------------
  |  Branch (2116:24): [True: 0, False: 0]
  |  Branch (2116:42): [True: 0, False: 0]
  ------------------
 2117|      0|                auto aRowsStr = toString(aRows);
 2118|      0|                auto bColsStr = toString(bCols);
 2119|      0|                auto cRowsStr = toString(cRows);
 2120|      0|                auto cColsStr = toString(cCols);
 2121|      0|                error(loc, "cannot add coop matrices with incompatible sizes",
 2122|      0|                      operandName(sequence[2]),
 2123|      0|                      "%s x %s with %s x %s",
 2124|      0|                      aRowsStr.c_str(),
 2125|      0|                      bColsStr.c_str(),
 2126|      0|                      cRowsStr.c_str(),
 2127|      0|                      cColsStr.c_str());
 2128|      0|            } else if (aUse != 0) {
  ------------------
  |  Branch (2128:24): [True: 0, False: 0]
  ------------------
 2129|      0|                error(loc, "coop matrix A in MulAdd operation has incompatible usage property,",
 2130|      0|                      operandName(sequence[0]),
 2131|      0|                      "found %d, but needed 0", aUse);
 2132|      0|            } else if (bUse != 1) {
  ------------------
  |  Branch (2132:24): [True: 0, False: 0]
  ------------------
 2133|      0|                error(loc, "coop matrix B in MulAdd operation has incompatible usage property,",
 2134|      0|                      operandName(sequence[1]),
 2135|      0|                      "found %d, but needed 1", bUse);
 2136|      0|            } else if (cUse != 2) {
  ------------------
  |  Branch (2136:24): [True: 0, False: 0]
  ------------------
 2137|      0|                error(loc, "coop matrix C in MulAdd operation has incompatible usage property,",
 2138|      0|                      operandName(sequence[2]),
 2139|      0|                      "found %d, but needed 2", cUse);
 2140|      0|            }
 2141|       |
 2142|       |            // Set result type to match type of C parameter
 2143|      0|            result->setType(result->getAsAggregate()->getSequence()[2]->getAsTyped()->getType());
 2144|      0|        }
 2145|      0|    }
 2146|  38.3k|}
_ZN7glslang13TParseContext34handleVector2CoopMatConversionCallERKNS_10TSourceLocEPKNS_9TFunctionERPNS_12TIntermTypedEP11TIntermNode:
 2153|  38.3k|{
 2154|  38.3k|  const uint32_t CM_MatrixUseA = 0;           // == gl_MatrixUseA
 2155|  38.3k|  const uint32_t CM_MatrixUseB = 1;           // == gl_MatrixUseB
 2156|  38.3k|  const uint32_t CM_MatrixUseAccumulator = 2; // == gl_MatrixUseAccumulator
 2157|       |
 2158|  38.3k|  TOperator builtinOp = fnCandidate->getBuiltInOp();
 2159|       |
 2160|  38.3k|  if (!(builtinOp == EOpBitCastArrayQCOM || builtinOp == EOpExtractSubArrayQCOM ||
  ------------------
  |  Branch (2160:9): [True: 0, False: 38.3k]
  |  Branch (2160:45): [True: 0, False: 38.3k]
  ------------------
 2161|  38.3k|        builtinOp == EOpCompositeConstructCoopMatQCOM || builtinOp == EOpCompositeExtractCoopMatQCOM))
  ------------------
  |  Branch (2161:9): [True: 0, False: 38.3k]
  |  Branch (2161:58): [True: 0, False: 38.3k]
  ------------------
 2162|  38.3k|    return;
 2163|       |
 2164|      0|  TPublicType pubType{};
 2165|      0|  auto* oldResult = result;
 2166|       |
 2167|      0|  if (builtinOp == EOpBitCastArrayQCOM) {
  ------------------
  |  Branch (2167:7): [True: 0, False: 0]
  ------------------
 2168|      0|    auto srcArr = arguments->getAsAggregate()->getSequence()[0]->getAsTyped();
 2169|      0|    auto& srcTy = srcArr->getType();
 2170|      0|    auto srcArrLen = srcTy.getArraySizes()->getDimSize(0);
 2171|      0|    auto srcLenAsNode = srcTy.getArraySizes()->getDimNode(0);
 2172|       |
 2173|      0|    auto dstArr = arguments->getAsAggregate()->getSequence()[1]->getAsTyped();
 2174|      0|    auto& dstTy = dstArr->getType();
 2175|      0|    auto dstArrLen = dstTy.getArraySizes()->getDimSize(0);
 2176|      0|    auto dstLenAsNode = dstTy.getArraySizes()->getDimNode(0);
 2177|       |
 2178|      0|    if (srcLenAsNode == nullptr && dstLenAsNode == nullptr) {
  ------------------
  |  Branch (2178:9): [True: 0, False: 0]
  |  Branch (2178:36): [True: 0, False: 0]
  ------------------
 2179|       |      //do basic tests:
 2180|      0|      if ((srcArrLen * GetNumBits(srcTy.getBasicType())) != (dstArrLen * GetNumBits(dstTy.getBasicType())))
  ------------------
  |  Branch (2180:11): [True: 0, False: 0]
  ------------------
 2181|      0|        error(loc, "source and target arrays have different bit sizes", "", "");
 2182|      0|    }
 2183|       |
 2184|      0|    pubType.basicType = dstTy.getBasicType();
 2185|      0|    pubType.vectorSize = 1u;
 2186|      0|    pubType.qualifier.precision = EpqNone;
 2187|      0|    pubType.coopmatNV = false;
 2188|      0|    pubType.coopmatKHR = false;
 2189|      0|    pubType.arraySizes = new TArraySizes;
 2190|      0|    pubType.arraySizes->addInnerSize(dstArrLen, dstLenAsNode);
 2191|      0|    pubType.typeParameters = nullptr;
 2192|      0|  }
 2193|       |
 2194|      0|  if (builtinOp == EOpExtractSubArrayQCOM) {
  ------------------
  |  Branch (2194:7): [True: 0, False: 0]
  ------------------
 2195|      0|    auto dstArr = arguments->getAsAggregate()->getSequence()[2]->getAsTyped();
 2196|      0|    auto& dstTy = dstArr->getType();
 2197|      0|    auto dstArrLen = dstTy.getArraySizes()->getDimSize(0);
 2198|      0|    auto dstLenAsNode = dstTy.getArraySizes()->getDimNode(0);
 2199|       |
 2200|      0|    if (dstLenAsNode == nullptr) {
  ------------------
  |  Branch (2200:9): [True: 0, False: 0]
  ------------------
 2201|      0|      if ((dstArrLen * GetNumBits(dstTy.getBasicType())) == 32)
  ------------------
  |  Branch (2201:11): [True: 0, False: 0]
  ------------------
 2202|      0|        error(loc, "the byte size of the target array must be 32", "", "");
 2203|      0|    }
 2204|       |
 2205|      0|    pubType.basicType = dstTy.getBasicType();
 2206|      0|    pubType.vectorSize = 1u;
 2207|      0|    pubType.qualifier.precision = EpqNone;
 2208|      0|    pubType.coopmatNV = false;
 2209|      0|    pubType.coopmatKHR = false;
 2210|      0|    pubType.arraySizes = new TArraySizes;
 2211|      0|    pubType.arraySizes->addInnerSize(dstArrLen, dstLenAsNode);
 2212|      0|    pubType.typeParameters = nullptr;
 2213|      0|  }
 2214|       |
 2215|      0|  if (builtinOp == EOpCompositeConstructCoopMatQCOM) {
  ------------------
  |  Branch (2215:7): [True: 0, False: 0]
  ------------------
 2216|       |
 2217|      0|    auto& srcType = arguments->getAsAggregate()->getSequence()[0]->getAsTyped()->getType();
 2218|      0|    auto& dstType = arguments->getAsAggregate()->getSequence()[1]->getAsTyped()->getType();
 2219|       |
 2220|      0|    glslang::TBasicType srcBasicType = srcType.getBasicType();
 2221|      0|    glslang::TBasicType dstBasicType = dstType.getBasicType();
 2222|       |
 2223|      0|    if (srcBasicType != EbtUint && srcBasicType != dstBasicType)
  ------------------
  |  Branch (2223:9): [True: 0, False: 0]
  |  Branch (2223:36): [True: 0, False: 0]
  ------------------
 2224|      0|      error(loc, "source and destination element types are not compatible", "", "");
 2225|       |
 2226|      0|    uint32_t scope = spv_Scope_Subgroup;
 2227|      0|    uint32_t coopMatKHRuse = !0u;
 2228|      0|    uint32_t coopMatNumRows = !0u, coopMatNumCols = !0u;
 2229|      0|    TIntermTyped *nodeNumRows = nullptr, *nodeNumCols = nullptr;
 2230|      0|    const TTypeParameters* dstTypeParameters = dstType.getTypeParameters();
 2231|      0|    if (dstTypeParameters->arraySizes == nullptr || dstTypeParameters->arraySizes->getNumDims() != 4) {
  ------------------
  |  Branch (2231:9): [True: 0, False: 0]
  |  Branch (2231:53): [True: 0, False: 0]
  ------------------
 2232|      0|      error(loc, "destination cooperative matrix has an unsupported type", "", "");
 2233|      0|    } else {
 2234|      0|      auto arraySizes = dstTypeParameters->arraySizes;
 2235|      0|      scope = arraySizes->getDimSize(0);
 2236|      0|      coopMatNumRows = arraySizes->getDimSize(1);
 2237|      0|      nodeNumRows = arraySizes->getDimNode(1);
 2238|      0|      coopMatNumCols = arraySizes->getDimSize(2);
 2239|      0|      nodeNumCols = arraySizes->getDimNode(2);
 2240|      0|      coopMatKHRuse = arraySizes->getDimSize(3);
 2241|      0|    }
 2242|       |
 2243|      0|    if (scope != spv_Scope_Subgroup) {
  ------------------
  |  Branch (2243:9): [True: 0, False: 0]
  ------------------
 2244|      0|      scope = spv_Scope_Subgroup;
 2245|      0|      error(loc, "cooperative matrix has unsupported scope; gl_SubgroupScope is expected", "", "");
 2246|      0|    }
 2247|       |
 2248|      0|    if (coopMatKHRuse > CM_MatrixUseAccumulator) {
  ------------------
  |  Branch (2248:9): [True: 0, False: 0]
  ------------------
 2249|      0|      coopMatKHRuse = CM_MatrixUseA;
 2250|      0|      error(loc, "cooperative matrix use must be one of gl_MatrixUseA, gl_MatrixUseB, gl_MatrixUseAccumulator",
 2251|      0|            "", "");
 2252|      0|    }
 2253|       |
 2254|      0|    uint32_t dstBasicTypeSize = GetNumBits(dstBasicType) / 8;
 2255|       |
 2256|      0|    unsigned numRows = coopMatNumRows;
 2257|      0|    TIntermTyped* specConstRows = nodeNumRows;
 2258|      0|    unsigned numCols = coopMatNumCols;
 2259|      0|    TIntermTyped* specConstCols = nodeNumCols;
 2260|       |
 2261|       |    // input array type
 2262|      0|    const TType& type = arguments->getAsAggregate()->getSequence()[0]->getAsTyped()->getType();
 2263|      0|    uint32_t arrayLen = type.getArraySizes()->getDimSize(0);
 2264|      0|    auto arrayDimNode = type.getArraySizes()->getDimNode(0);
 2265|       |
 2266|      0|    if (coopMatKHRuse == CM_MatrixUseA || coopMatKHRuse == CM_MatrixUseAccumulator) {
  ------------------
  |  Branch (2266:9): [True: 0, False: 0]
  |  Branch (2266:43): [True: 0, False: 0]
  ------------------
 2267|       |      // update numCols
 2268|      0|      if (arrayDimNode == nullptr && specConstCols == nullptr)
  ------------------
  |  Branch (2268:11): [True: 0, False: 0]
  |  Branch (2268:38): [True: 0, False: 0]
  ------------------
 2269|      0|        numCols = arrayLen * (sizeof(uint32_t) / dstBasicTypeSize);
 2270|      0|    } else if (coopMatKHRuse == CM_MatrixUseB) {
  ------------------
  |  Branch (2270:16): [True: 0, False: 0]
  ------------------
 2271|       |      // update numRows
 2272|      0|      if (arrayDimNode == nullptr && specConstRows == nullptr) {
  ------------------
  |  Branch (2272:11): [True: 0, False: 0]
  |  Branch (2272:38): [True: 0, False: 0]
  ------------------
 2273|      0|        numRows = arrayLen * (sizeof(uint32_t) / dstBasicTypeSize);
 2274|      0|      }
 2275|      0|    }
 2276|       |
 2277|       |    // construct the type
 2278|      0|    TArraySizes* arraySizes = new TArraySizes;
 2279|       |
 2280|       |    // add Scope
 2281|      0|    arraySizes->addInnerSize(scope);
 2282|       |
 2283|       |    // add the row size
 2284|      0|    arraySizes->addInnerSize(numRows, specConstRows); // copy from source
 2285|       |    // add the column size
 2286|      0|    arraySizes->addInnerSize(numCols, specConstCols); // copy from source
 2287|       |    // add cooperative matrix use
 2288|      0|    arraySizes->addInnerSize(coopMatKHRuse);
 2289|       |
 2290|      0|    pubType.basicType = dstBasicType;
 2291|      0|    pubType.vectorSize = 1u;
 2292|      0|    pubType.qualifier = srcType.getQualifier();
 2293|      0|    pubType.qualifier.precision = EpqNone;
 2294|      0|    pubType.coopmatNV = dstType.isCoopMatNV();
 2295|      0|    pubType.coopmatKHR = dstType.isCoopMatKHR();
 2296|      0|    pubType.arraySizes = nullptr;
 2297|      0|    pubType.typeParameters = const_cast<glslang::TTypeParameters*>(dstTypeParameters);
 2298|      0|  }
 2299|       |
 2300|      0|  if (builtinOp == EOpCompositeExtractCoopMatQCOM) {
  ------------------
  |  Branch (2300:7): [True: 0, False: 0]
  ------------------
 2301|      0|    auto& srcType = arguments->getAsAggregate()->getSequence()[0]->getAsTyped()->getType();
 2302|      0|    auto& dstType = arguments->getAsAggregate()->getSequence()[1]->getAsTyped()->getType();
 2303|       |
 2304|      0|    glslang::TBasicType srcBasicType = srcType.getBasicType();
 2305|      0|    glslang::TBasicType dstBasicType = dstType.getBasicType();
 2306|       |
 2307|      0|    if (dstBasicType != EbtUint && srcBasicType != dstBasicType)
  ------------------
  |  Branch (2307:9): [True: 0, False: 0]
  |  Branch (2307:36): [True: 0, False: 0]
  ------------------
 2308|      0|      error(loc, "source and destination element types are not compatible", "", "");
 2309|       |
 2310|      0|    uint32_t scope = spv_Scope_Subgroup;
 2311|      0|    unsigned coopMatKHRuse = !0u;
 2312|      0|    const TTypeParameters* srcTypeParameters = srcType.getTypeParameters();
 2313|      0|    if (srcTypeParameters->arraySizes == nullptr || srcTypeParameters->arraySizes->getNumDims() != 4) {
  ------------------
  |  Branch (2313:9): [True: 0, False: 0]
  |  Branch (2313:53): [True: 0, False: 0]
  ------------------
 2314|      0|      error(loc, "source cooperative matrix has an unsupported type", "", "");
 2315|      0|    } else {
 2316|      0|      auto arraySizes = srcTypeParameters->arraySizes;
 2317|      0|      scope = arraySizes->getDimSize(0);
 2318|      0|      coopMatKHRuse = arraySizes->getDimSize(3);
 2319|      0|    }
 2320|       |
 2321|      0|    if (scope != spv_Scope_Subgroup) {
  ------------------
  |  Branch (2321:9): [True: 0, False: 0]
  ------------------
 2322|      0|      scope = spv_Scope_Subgroup;
 2323|      0|      error(loc, "cooperative matrix has unsupported scope; gl_SubgroupScope is expected", "", "");
 2324|      0|    }
 2325|       |
 2326|      0|    if (coopMatKHRuse > CM_MatrixUseAccumulator) {
  ------------------
  |  Branch (2326:9): [True: 0, False: 0]
  ------------------
 2327|      0|      coopMatKHRuse = CM_MatrixUseA;
 2328|      0|      error(loc, "cooperative matrix use must be one of gl_MatrixUseA, gl_MatrixUseB, gl_MatrixUseAccumulator",
 2329|      0|            "", "");
 2330|      0|    }
 2331|       |
 2332|      0|    auto dstArrLen = dstType.getArraySizes()->getDimSize(0);
 2333|      0|    auto dstLenAsNode = dstType.getArraySizes()->getDimNode(0);
 2334|       |
 2335|      0|    if (dstLenAsNode == nullptr) {
  ------------------
  |  Branch (2335:9): [True: 0, False: 0]
  ------------------
 2336|      0|      bool ok = true;
 2337|      0|      switch (dstBasicType) {
 2338|      0|      case EbtUint:
  ------------------
  |  Branch (2338:7): [True: 0, False: 0]
  ------------------
 2339|      0|      case EbtInt:
  ------------------
  |  Branch (2339:7): [True: 0, False: 0]
  ------------------
 2340|      0|      case EbtFloat:
  ------------------
  |  Branch (2340:7): [True: 0, False: 0]
  ------------------
 2341|      0|        ok = (((coopMatKHRuse == CM_MatrixUseA || coopMatKHRuse == CM_MatrixUseB) && dstArrLen == 8) ||
  ------------------
  |  Branch (2341:17): [True: 0, False: 0]
  |  Branch (2341:51): [True: 0, False: 0]
  |  Branch (2341:86): [True: 0, False: 0]
  ------------------
 2342|      0|              (coopMatKHRuse ==
  ------------------
  |  Branch (2342:15): [True: 0, False: 0]
  ------------------
 2343|      0|               CM_MatrixUseAccumulator) /* && (dstArrLen == 64 || dstArrLen == 32 || dstArrLen == 16))*/);
 2344|      0|        break;
 2345|      0|      case EbtFloat16:
  ------------------
  |  Branch (2345:7): [True: 0, False: 0]
  ------------------
 2346|      0|        ok = (((coopMatKHRuse == CM_MatrixUseA || coopMatKHRuse == CM_MatrixUseB) && dstArrLen == 16) ||
  ------------------
  |  Branch (2346:17): [True: 0, False: 0]
  |  Branch (2346:51): [True: 0, False: 0]
  |  Branch (2346:86): [True: 0, False: 0]
  ------------------
 2347|      0|              (coopMatKHRuse ==
  ------------------
  |  Branch (2347:15): [True: 0, False: 0]
  ------------------
 2348|      0|               CM_MatrixUseAccumulator) /* && (dstArrLen == 64 || dstArrLen == 32 || dstArrLen == 16))*/);
 2349|      0|        break;
 2350|      0|      case EbtInt8:
  ------------------
  |  Branch (2350:7): [True: 0, False: 0]
  ------------------
 2351|      0|      case EbtUint8:
  ------------------
  |  Branch (2351:7): [True: 0, False: 0]
  ------------------
 2352|      0|        ok = (((coopMatKHRuse == CM_MatrixUseA || coopMatKHRuse == CM_MatrixUseB) && dstArrLen == 32) ||
  ------------------
  |  Branch (2352:17): [True: 0, False: 0]
  |  Branch (2352:51): [True: 0, False: 0]
  |  Branch (2352:86): [True: 0, False: 0]
  ------------------
 2353|      0|              (coopMatKHRuse ==
  ------------------
  |  Branch (2353:15): [True: 0, False: 0]
  ------------------
 2354|      0|               CM_MatrixUseAccumulator) /* && (dstArrLen == 64 || dstArrLen == 32 || dstArrLen == 16))*/);
 2355|      0|        break;
 2356|      0|      default:
  ------------------
  |  Branch (2356:7): [True: 0, False: 0]
  ------------------
 2357|      0|        error(loc, "unsupported element type", "", "");
 2358|      0|      }
 2359|      0|      if (!ok)
  ------------------
  |  Branch (2359:11): [True: 0, False: 0]
  ------------------
 2360|      0|        error(loc, "unsupported destination array length", "", "");
 2361|      0|    }
 2362|       |
 2363|      0|    pubType.basicType = dstBasicType;
 2364|      0|    pubType.vectorSize = 1u;
 2365|      0|    pubType.qualifier.precision = EpqNone;
 2366|      0|    pubType.coopmatNV = false;
 2367|      0|    pubType.coopmatKHR = false;
 2368|       |
 2369|      0|    pubType.arraySizes = new TArraySizes;
 2370|       |
 2371|      0|    {
 2372|       |      //int coopMatKHRuse = srcTypeParameters->arraySizes->getDimSize(3);
 2373|      0|      uint32_t index = !0u;
 2374|      0|      if (coopMatKHRuse == CM_MatrixUseA) {
  ------------------
  |  Branch (2374:11): [True: 0, False: 0]
  ------------------
 2375|      0|        index = 2;
 2376|      0|      } else if (coopMatKHRuse == CM_MatrixUseB) {
  ------------------
  |  Branch (2376:18): [True: 0, False: 0]
  ------------------
 2377|      0|        index = 1;
 2378|      0|      } else if (coopMatKHRuse == CM_MatrixUseAccumulator) {
  ------------------
  |  Branch (2378:18): [True: 0, False: 0]
  ------------------
 2379|      0|        index = 2;
 2380|      0|      } else {
 2381|      0|        error(loc, "source cooperative matrix has an unexpected cooperative matrix use", "", "");
 2382|      0|      }
 2383|      0|      int32_t numRowsOrCols = srcTypeParameters->arraySizes->getDimSize(index);
 2384|      0|      auto dimNode = srcTypeParameters->arraySizes->getDimNode(index);
 2385|      0|      if (dimNode != nullptr && dstLenAsNode == nullptr) {
  ------------------
  |  Branch (2385:11): [True: 0, False: 0]
  |  Branch (2385:33): [True: 0, False: 0]
  ------------------
 2386|      0|        numRowsOrCols = dstType.getArraySizes()->getDimSize(0);
 2387|      0|        dimNode = nullptr;
 2388|      0|      }
 2389|       |      //int32_t dstArrLen = dstType.getArraySizes()->getDimSize(0);
 2390|      0|      pubType.arraySizes->addInnerSize(dstArrLen, dstLenAsNode);
 2391|      0|      if (dimNode == nullptr && dstLenAsNode == nullptr) {
  ------------------
  |  Branch (2391:11): [True: 0, False: 0]
  |  Branch (2391:33): [True: 0, False: 0]
  ------------------
 2392|      0|        const char* msg = nullptr;
 2393|      0|        if (coopMatKHRuse == CM_MatrixUseA && (numRowsOrCols != dstArrLen && dstArrLen != 8)) {
  ------------------
  |  Branch (2393:13): [True: 0, False: 0]
  |  Branch (2393:48): [True: 0, False: 0]
  |  Branch (2393:78): [True: 0, False: 0]
  ------------------
 2394|      0|          msg = "the source matrix's column is not compatible with the destination array";
 2395|      0|        } else if (coopMatKHRuse == CM_MatrixUseB && (numRowsOrCols != dstArrLen && dstArrLen != 8)) {
  ------------------
  |  Branch (2395:20): [True: 0, False: 0]
  |  Branch (2395:55): [True: 0, False: 0]
  |  Branch (2395:85): [True: 0, False: 0]
  ------------------
 2396|      0|          msg = "the source matrix's row is not compatible with the destination array";
 2397|      0|        } else if (coopMatKHRuse == CM_MatrixUseAccumulator &&
  ------------------
  |  Branch (2397:20): [True: 0, False: 0]
  ------------------
 2398|      0|                   (numRowsOrCols != dstArrLen &&
  ------------------
  |  Branch (2398:21): [True: 0, False: 0]
  ------------------
 2399|      0|                    (srcBasicType == EbtFloat16 && numRowsOrCols != 2 * dstArrLen))) {
  ------------------
  |  Branch (2399:22): [True: 0, False: 0]
  |  Branch (2399:52): [True: 0, False: 0]
  ------------------
 2400|      0|          msg = "the source matrix's column is not compatible with the destination array";
 2401|      0|        }
 2402|      0|        if (msg != nullptr)
  ------------------
  |  Branch (2402:13): [True: 0, False: 0]
  ------------------
 2403|      0|          error(loc, msg, "", "");
 2404|      0|      }
 2405|      0|    }
 2406|       |
 2407|      0|    pubType.typeParameters = nullptr;
 2408|      0|  }
 2409|       |
 2410|      0|  TType resultType(pubType);
 2411|      0|  if (pubType.typeParameters != nullptr)
  ------------------
  |  Branch (2411:7): [True: 0, False: 0]
  ------------------
 2412|      0|    resultType.copyTypeParameters(*pubType.typeParameters);
 2413|       |  // need to make StorageQualifier temp
 2414|      0|  resultType.makeTemporary();
 2415|      0|  result->setType(resultType);
 2416|       |
 2417|       |  // the RHS of an assignment to be formed
 2418|      0|  auto rhs = result;
 2419|       |
 2420|       |  // the LHS of an assignment to be formed; pick the last argument
 2421|      0|  int lhsIdx = (builtinOp == EOpExtractSubArrayQCOM ? 2 : 1);
  ------------------
  |  Branch (2421:17): [True: 0, False: 0]
  ------------------
 2422|      0|  auto lhs = arguments->getAsAggregate()->getSequence()[lhsIdx]->getAsTyped();
 2423|       |  // pop the last argument from the arguments sequence
 2424|      0|  arguments->getAsAggregate()->getSequence().pop_back();
 2425|       |
 2426|       |  // Create OpAssign
 2427|      0|  {
 2428|      0|    arrayObjectCheck(loc, lhs->getType(), "array assignment");
 2429|      0|    storage16BitAssignmentCheck(loc, lhs->getType(), "=");
 2430|      0|    lValueErrorCheck(loc, "assign", lhs);
 2431|      0|    rValueErrorCheck(loc, "assign", rhs);
 2432|      0|    result = addAssign(loc, EOpAssign, lhs, rhs);
 2433|      0|    if (result == nullptr)
  ------------------
  |  Branch (2433:9): [True: 0, False: 0]
  ------------------
 2434|      0|      result = oldResult;
 2435|      0|  }
 2436|      0|}
_ZN7glslang13TParseContext25handleBuiltInFunctionCallENS_10TSourceLocEP11TIntermNodeRKNS_9TFunctionE:
 2447|  36.0k|{
 2448|  36.0k|    checkLocation(loc, function.getBuiltInOp());
 2449|  36.0k|    TIntermTyped *result = intermediate.addBuiltInFunctionCall(loc, function.getBuiltInOp(),
 2450|  36.0k|                                                               function.getParamCount() == 1,
 2451|  36.0k|                                                               arguments, function.getType());
 2452|       |
 2453|       |    // EXT_descriptor_heap
 2454|       |    // All the image atomic ops' first param is image variable.
 2455|  36.0k|    if (extensionTurnedOn(E_GL_EXT_descriptor_heap) && function.getBuiltInOp() <= EOpImageAtomicStore &&
  ------------------
  |  Branch (2455:9): [True: 0, False: 36.0k]
  |  Branch (2455:56): [True: 0, False: 0]
  ------------------
 2456|      0|        function.getBuiltInOp() >= EOpImageAtomicAdd) {
  ------------------
  |  Branch (2456:9): [True: 0, False: 0]
  ------------------
 2457|      0|        TIntermNode* imageNode = nullptr;
 2458|      0|        if (arguments->getAsAggregate() && arguments->getAsAggregate()->getSequence().size() > 0)
  ------------------
  |  Branch (2458:13): [True: 0, False: 0]
  |  Branch (2458:44): [True: 0, False: 0]
  ------------------
 2459|      0|            imageNode = arguments->getAsAggregate()->getSequence()[0];
 2460|      0|        else if (arguments->getAsUnaryNode())
  ------------------
  |  Branch (2460:18): [True: 0, False: 0]
  ------------------
 2461|      0|            imageNode = arguments->getAsUnaryNode();
 2462|       |
 2463|      0|        if (imageNode && imageNode->getAsBinaryNode()) {
  ------------------
  |  Branch (2463:13): [True: 0, False: 0]
  |  Branch (2463:26): [True: 0, False: 0]
  ------------------
 2464|      0|            auto imageSymbol = imageNode->getAsBinaryNode()->getLeft();
 2465|      0|            if (imageSymbol && imageSymbol->getType().isImage()) {
  ------------------
  |  Branch (2465:17): [True: 0, False: 0]
  |  Branch (2465:32): [True: 0, False: 0]
  ------------------
 2466|      0|                imageSymbol->getQualifier().setUsedByAtomic();
 2467|      0|                result->getQualifier().setUsedByAtomic();
 2468|      0|            }
 2469|      0|        }
 2470|      0|    }
 2471|       |
 2472|  36.0k|    if (result != nullptr && obeyPrecisionQualifiers())
  ------------------
  |  Branch (2472:9): [True: 36.0k, False: 0]
  |  Branch (2472:30): [True: 36.0k, False: 0]
  ------------------
 2473|  36.0k|        computeBuiltinPrecisions(*result, function);
 2474|       |
 2475|  36.0k|    if (result == nullptr) {
  ------------------
  |  Branch (2475:9): [True: 0, False: 36.0k]
  ------------------
 2476|      0|        if (arguments == nullptr)
  ------------------
  |  Branch (2476:13): [True: 0, False: 0]
  ------------------
 2477|      0|            error(loc, " wrong operand type", "Internal Error",
 2478|      0|                                      "built in unary operator function.  Type: %s", "");
 2479|      0|        else
 2480|      0|            error(arguments->getLoc(), " wrong operand type", "Internal Error",
 2481|      0|                                      "built in unary operator function.  Type: %s",
 2482|      0|                                      static_cast<TIntermTyped*>(arguments)->getCompleteString(intermediate.getEnhancedMsgs()).c_str());
 2483|  36.0k|    } else if (result->getAsOperator())
  ------------------
  |  Branch (2483:16): [True: 28.6k, False: 7.42k]
  ------------------
 2484|  28.6k|        builtInOpCheck(loc, function, *result->getAsOperator());
 2485|       |
 2486|       |    // Special handling for function call with SPIR-V instruction qualifier specified
 2487|  36.0k|    if (function.getBuiltInOp() == EOpSpirvInst) {
  ------------------
  |  Branch (2487:9): [True: 0, False: 36.0k]
  ------------------
 2488|      0|        if (auto agg = result->getAsAggregate()) {
  ------------------
  |  Branch (2488:18): [True: 0, False: 0]
  ------------------
 2489|       |            // Propogate spirv_by_reference/spirv_literal from parameters to arguments
 2490|      0|            auto& sequence = agg->getSequence();
 2491|      0|            for (unsigned i = 0; i < sequence.size(); ++i) {
  ------------------
  |  Branch (2491:34): [True: 0, False: 0]
  ------------------
 2492|      0|                if (function[i].type->getQualifier().isSpirvByReference())
  ------------------
  |  Branch (2492:21): [True: 0, False: 0]
  ------------------
 2493|      0|                    sequence[i]->getAsTyped()->getQualifier().setSpirvByReference();
 2494|      0|                if (function[i].type->getQualifier().isSpirvLiteral())
  ------------------
  |  Branch (2494:21): [True: 0, False: 0]
  ------------------
 2495|      0|                    sequence[i]->getAsTyped()->getQualifier().setSpirvLiteral();
 2496|      0|            }
 2497|       |
 2498|       |            // Attach the function call to SPIR-V intruction
 2499|      0|            agg->setSpirvInstruction(function.getSpirvInstruction());
 2500|      0|        } else if (auto unaryNode = result->getAsUnaryNode()) {
  ------------------
  |  Branch (2500:25): [True: 0, False: 0]
  ------------------
 2501|       |            // Propogate spirv_by_reference/spirv_literal from parameters to arguments
 2502|      0|            if (function[0].type->getQualifier().isSpirvByReference())
  ------------------
  |  Branch (2502:17): [True: 0, False: 0]
  ------------------
 2503|      0|                unaryNode->getOperand()->getQualifier().setSpirvByReference();
 2504|      0|            if (function[0].type->getQualifier().isSpirvLiteral())
  ------------------
  |  Branch (2504:17): [True: 0, False: 0]
  ------------------
 2505|      0|                unaryNode->getOperand()->getQualifier().setSpirvLiteral();
 2506|       |
 2507|       |            // Attach the function call to SPIR-V intruction
 2508|      0|            unaryNode->setSpirvInstruction(function.getSpirvInstruction());
 2509|      0|        } else
 2510|      0|            assert(0);
 2511|      0|    }
 2512|       |
 2513|  36.0k|    return result;
 2514|  36.0k|}
_ZN7glslang13TParseContext24computeBuiltinPrecisionsERNS_12TIntermTypedERKNS_9TFunctionE:
 2549|  36.0k|{
 2550|  36.0k|    TPrecisionQualifier operationPrecision = EpqNone;
 2551|  36.0k|    TPrecisionQualifier resultPrecision = EpqNone;
 2552|       |
 2553|  36.0k|    TIntermOperator* opNode = node.getAsOperator();
 2554|  36.0k|    if (opNode == nullptr)
  ------------------
  |  Branch (2554:9): [True: 7.42k, False: 28.6k]
  ------------------
 2555|  7.42k|        return;
 2556|       |
 2557|  28.6k|    if (TIntermUnary* unaryNode = node.getAsUnaryNode()) {
  ------------------
  |  Branch (2557:23): [True: 7.99k, False: 20.6k]
  ------------------
 2558|  7.99k|        operationPrecision = std::max(function[0].type->getQualifier().precision,
 2559|  7.99k|                                      unaryNode->getOperand()->getType().getQualifier().precision);
 2560|  7.99k|        if (function.getType().getBasicType() != EbtBool)
  ------------------
  |  Branch (2560:13): [True: 7.23k, False: 755]
  ------------------
 2561|  7.23k|            resultPrecision = function.getType().getQualifier().precision == EpqNone ?
  ------------------
  |  Branch (2561:31): [True: 6.67k, False: 557]
  ------------------
 2562|  6.67k|                                        operationPrecision :
 2563|  7.23k|                                        function.getType().getQualifier().precision;
 2564|  20.6k|    } else if (TIntermAggregate* agg = node.getAsAggregate()) {
  ------------------
  |  Branch (2564:34): [True: 20.6k, False: 0]
  ------------------
 2565|  20.6k|        TIntermSequence& sequence = agg->getSequence();
 2566|  20.6k|        unsigned int numArgs = (unsigned int)sequence.size();
 2567|  20.6k|        switch (agg->getOp()) {
 2568|    208|        case EOpBitfieldExtract:
  ------------------
  |  Branch (2568:9): [True: 208, False: 20.4k]
  ------------------
 2569|    208|            numArgs = 1;
 2570|    208|            break;
 2571|    187|        case EOpBitfieldInsert:
  ------------------
  |  Branch (2571:9): [True: 187, False: 20.4k]
  ------------------
 2572|    187|            numArgs = 2;
 2573|    187|            break;
 2574|      0|        case EOpInterpolateAtCentroid:
  ------------------
  |  Branch (2574:9): [True: 0, False: 20.6k]
  ------------------
 2575|    269|        case EOpInterpolateAtOffset:
  ------------------
  |  Branch (2575:9): [True: 269, False: 20.3k]
  ------------------
 2576|    548|        case EOpInterpolateAtSample:
  ------------------
  |  Branch (2576:9): [True: 279, False: 20.3k]
  ------------------
 2577|    548|            numArgs = 1;
 2578|    548|            break;
 2579|      0|        case EOpDebugPrintf:
  ------------------
  |  Branch (2579:9): [True: 0, False: 20.6k]
  ------------------
 2580|      0|        case EOpAbortEXT:
  ------------------
  |  Branch (2580:9): [True: 0, False: 20.6k]
  ------------------
 2581|      0|        case EOpCooperativeMatrixPerElementOpNV:
  ------------------
  |  Branch (2581:9): [True: 0, False: 20.6k]
  ------------------
 2582|      0|        case EOpCooperativeMatrixReduceNV:
  ------------------
  |  Branch (2582:9): [True: 0, False: 20.6k]
  ------------------
 2583|      0|        case EOpConstructSaturated:
  ------------------
  |  Branch (2583:9): [True: 0, False: 20.6k]
  ------------------
 2584|      0|            numArgs = 0;
 2585|      0|            break;
 2586|  19.7k|        default:
  ------------------
  |  Branch (2586:9): [True: 19.7k, False: 943]
  ------------------
 2587|  19.7k|            break;
 2588|  20.6k|        }
 2589|       |        // find the maximum precision from the arguments and parameters
 2590|  80.7k|        for (unsigned int arg = 0; arg < numArgs; ++arg) {
  ------------------
  |  Branch (2590:36): [True: 60.1k, False: 20.6k]
  ------------------
 2591|  60.1k|            operationPrecision = std::max(operationPrecision, sequence[arg]->getAsTyped()->getQualifier().precision);
 2592|  60.1k|        }
 2593|  82.1k|        for (int arg = 0; arg < function.getParamCount(); ++arg) {
  ------------------
  |  Branch (2593:27): [True: 61.4k, False: 20.6k]
  ------------------
 2594|  61.4k|            operationPrecision = std::max(operationPrecision, function[arg].type->getQualifier().precision);
 2595|  61.4k|        }
 2596|       |        // compute the result precision
 2597|  20.6k|        if (agg->isSampling() ||
  ------------------
  |  Branch (2597:13): [True: 7.54k, False: 13.1k]
  ------------------
 2598|  13.1k|            agg->getOp() == EOpImageLoad || agg->getOp() == EOpImageStore ||
  ------------------
  |  Branch (2598:13): [True: 148, False: 12.9k]
  |  Branch (2598:45): [True: 125, False: 12.8k]
  ------------------
 2599|  12.8k|            agg->getOp() == EOpImageLoadLod || agg->getOp() == EOpImageStoreLod)
  ------------------
  |  Branch (2599:13): [True: 0, False: 12.8k]
  |  Branch (2599:48): [True: 0, False: 12.8k]
  ------------------
 2600|  7.81k|            resultPrecision = sequence[0]->getAsTyped()->getQualifier().precision;
 2601|  12.8k|        else if (function.getType().getBasicType() != EbtBool)
  ------------------
  |  Branch (2601:18): [True: 11.7k, False: 1.05k]
  ------------------
 2602|  11.7k|            resultPrecision = function.getType().getQualifier().precision == EpqNone ?
  ------------------
  |  Branch (2602:31): [True: 9.11k, False: 2.66k]
  ------------------
 2603|  9.11k|                                        operationPrecision :
 2604|  11.7k|                                        function.getType().getQualifier().precision;
 2605|  20.6k|    }
 2606|       |
 2607|       |    // Propagate precision through this node and its children. That algorithm stops
 2608|       |    // when a precision is found, so start by clearing this subroot precision
 2609|  28.6k|    opNode->getQualifier().precision = EpqNone;
 2610|  28.6k|    if (operationPrecision != EpqNone) {
  ------------------
  |  Branch (2610:9): [True: 21.4k, False: 7.17k]
  ------------------
 2611|  21.4k|        opNode->propagatePrecision(operationPrecision);
 2612|  21.4k|        opNode->setOperationPrecision(operationPrecision);
 2613|  21.4k|    }
 2614|       |    // Now, set the result precision, which might not match
 2615|  28.6k|    opNode->getQualifier().precision = resultPrecision;
 2616|  28.6k|}
_ZN7glslang13TParseContext17handleReturnValueERKNS_10TSourceLocEPNS_12TIntermTypedE:
 2619|    743|{
 2620|    743|    storage16BitAssignmentCheck(loc, value->getType(), "return");
 2621|       |
 2622|    743|    functionReturnsValue = true;
 2623|    743|    TIntermBranch* branch = nullptr;
 2624|    743|    if (currentFunctionType->getBasicType() == EbtVoid) {
  ------------------
  |  Branch (2624:9): [True: 69, False: 674]
  ------------------
 2625|     69|        error(loc, "void function cannot return a value", "return", "");
 2626|     69|        branch = intermediate.addBranch(EOpReturn, loc);
 2627|    674|    } else if (*currentFunctionType != value->getType()) {
  ------------------
  |  Branch (2627:16): [True: 105, False: 569]
  ------------------
 2628|    105|        TIntermTyped* converted = intermediate.addConversion(EOpReturn, *currentFunctionType, value);
 2629|    105|        if (converted) {
  ------------------
  |  Branch (2629:13): [True: 0, False: 105]
  ------------------
 2630|      0|            if (*currentFunctionType != converted->getType())
  ------------------
  |  Branch (2630:17): [True: 0, False: 0]
  ------------------
 2631|      0|                error(loc, "cannot convert return value to function return type", "return", "");
 2632|      0|            if (version < 420)
  ------------------
  |  Branch (2632:17): [True: 0, False: 0]
  ------------------
 2633|      0|                warn(loc, "type conversion on return values was not explicitly allowed until version 420",
 2634|      0|                     "return", "");
 2635|      0|            branch = intermediate.addBranch(EOpReturn, converted, loc);
 2636|    105|        } else {
 2637|    105|            error(loc, "type does not match, or is not convertible to, the function's return type", "return", "");
 2638|    105|            branch = intermediate.addBranch(EOpReturn, value, loc);
 2639|    105|        }
 2640|    569|    } else {
 2641|    569|        if (value->getType().isTexture() || value->getType().isImage()) {
  ------------------
  |  Branch (2641:13): [True: 0, False: 569]
  |  Branch (2641:45): [True: 0, False: 569]
  ------------------
 2642|      0|            if (spvVersion.spv != 0)
  ------------------
  |  Branch (2642:17): [True: 0, False: 0]
  ------------------
 2643|      0|                error(loc, "sampler or image cannot be used as return type when generating SPIR-V", "return", "");
 2644|      0|            else if (!extensionTurnedOn(E_GL_ARB_bindless_texture))
  ------------------
  |  Branch (2644:22): [True: 0, False: 0]
  ------------------
 2645|      0|                error(loc, "sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled", "return", "");
 2646|      0|        }
 2647|    569|        branch = intermediate.addBranch(EOpReturn, value, loc);
 2648|    569|    }
 2649|    743|    branch->updatePrecision(currentFunctionType->getQualifier().precision);
 2650|    743|    return branch;
 2651|    743|}
_ZN7glslang13TParseContext13checkLocationERKNS_10TSourceLocENS_9TOperatorE:
 2655|  36.0k|{
 2656|  36.0k|    switch (op) {
 2657|      0|    case EOpBarrier:
  ------------------
  |  Branch (2657:5): [True: 0, False: 36.0k]
  ------------------
 2658|      0|        if (language == EShLangTessControl) {
  ------------------
  |  Branch (2658:13): [True: 0, False: 0]
  ------------------
 2659|      0|            if (controlFlowNestingLevel > 0)
  ------------------
  |  Branch (2659:17): [True: 0, False: 0]
  ------------------
 2660|      0|                error(loc, "tessellation control barrier() cannot be placed within flow control", "", "");
 2661|      0|            if (! inMain)
  ------------------
  |  Branch (2661:17): [True: 0, False: 0]
  ------------------
 2662|      0|                error(loc, "tessellation control barrier() must be in main()", "", "");
 2663|      0|            else if (postEntryPointReturn)
  ------------------
  |  Branch (2663:22): [True: 0, False: 0]
  ------------------
 2664|      0|                error(loc, "tessellation control barrier() cannot be placed after a return from main()", "", "");
 2665|      0|        }
 2666|      0|        break;
 2667|      0|    case EOpBeginInvocationInterlock:
  ------------------
  |  Branch (2667:5): [True: 0, False: 36.0k]
  ------------------
 2668|      0|        if (language != EShLangFragment)
  ------------------
  |  Branch (2668:13): [True: 0, False: 0]
  ------------------
 2669|      0|            error(loc, "beginInvocationInterlockARB() must be in a fragment shader", "", "");
 2670|      0|        if (! inMain)
  ------------------
  |  Branch (2670:13): [True: 0, False: 0]
  ------------------
 2671|      0|            error(loc, "beginInvocationInterlockARB() must be in main()", "", "");
 2672|      0|        else if (postEntryPointReturn)
  ------------------
  |  Branch (2672:18): [True: 0, False: 0]
  ------------------
 2673|      0|            error(loc, "beginInvocationInterlockARB() cannot be placed after a return from main()", "", "");
 2674|      0|        if (controlFlowNestingLevel > 0)
  ------------------
  |  Branch (2674:13): [True: 0, False: 0]
  ------------------
 2675|      0|            error(loc, "beginInvocationInterlockARB() cannot be placed within flow control", "", "");
 2676|       |
 2677|      0|        if (beginInvocationInterlockCount > 0)
  ------------------
  |  Branch (2677:13): [True: 0, False: 0]
  ------------------
 2678|      0|            error(loc, "beginInvocationInterlockARB() must only be called once", "", "");
 2679|      0|        if (endInvocationInterlockCount > 0)
  ------------------
  |  Branch (2679:13): [True: 0, False: 0]
  ------------------
 2680|      0|            error(loc, "beginInvocationInterlockARB() must be called before endInvocationInterlockARB()", "", "");
 2681|       |
 2682|      0|        beginInvocationInterlockCount++;
 2683|       |
 2684|       |        // default to pixel_interlock_ordered
 2685|      0|        if (intermediate.getInterlockOrdering() == EioNone)
  ------------------
  |  Branch (2685:13): [True: 0, False: 0]
  ------------------
 2686|      0|            intermediate.setInterlockOrdering(EioPixelInterlockOrdered);
 2687|      0|        break;
 2688|      0|    case EOpEndInvocationInterlock:
  ------------------
  |  Branch (2688:5): [True: 0, False: 36.0k]
  ------------------
 2689|      0|        if (language != EShLangFragment)
  ------------------
  |  Branch (2689:13): [True: 0, False: 0]
  ------------------
 2690|      0|            error(loc, "endInvocationInterlockARB() must be in a fragment shader", "", "");
 2691|      0|        if (! inMain)
  ------------------
  |  Branch (2691:13): [True: 0, False: 0]
  ------------------
 2692|      0|            error(loc, "endInvocationInterlockARB() must be in main()", "", "");
 2693|      0|        else if (postEntryPointReturn)
  ------------------
  |  Branch (2693:18): [True: 0, False: 0]
  ------------------
 2694|      0|            error(loc, "endInvocationInterlockARB() cannot be placed after a return from main()", "", "");
 2695|      0|        if (controlFlowNestingLevel > 0)
  ------------------
  |  Branch (2695:13): [True: 0, False: 0]
  ------------------
 2696|      0|            error(loc, "endInvocationInterlockARB() cannot be placed within flow control", "", "");
 2697|       |
 2698|      0|        if (endInvocationInterlockCount > 0)
  ------------------
  |  Branch (2698:13): [True: 0, False: 0]
  ------------------
 2699|      0|            error(loc, "endInvocationInterlockARB() must only be called once", "", "");
 2700|      0|        if (beginInvocationInterlockCount == 0)
  ------------------
  |  Branch (2700:13): [True: 0, False: 0]
  ------------------
 2701|      0|            error(loc, "beginInvocationInterlockARB() must be called before endInvocationInterlockARB()", "", "");
 2702|       |
 2703|      0|        endInvocationInterlockCount++;
 2704|      0|        break;
 2705|  36.0k|    default:
  ------------------
  |  Branch (2705:5): [True: 36.0k, False: 0]
  ------------------
 2706|  36.0k|        break;
 2707|  36.0k|    }
 2708|  36.0k|}
_ZN7glslang13TParseContext18handleLengthMethodERKNS_10TSourceLocEPNS_9TFunctionEP11TIntermNode:
 2716|    345|{
 2717|    345|    int length = 0;
 2718|       |
 2719|    345|    if (function->getParamCount() > 0)
  ------------------
  |  Branch (2719:9): [True: 2, False: 343]
  ------------------
 2720|      2|        error(loc, "method does not accept any arguments", function->getName().c_str(), "");
 2721|    343|    else {
 2722|    343|        const TType& type = intermNode->getAsTyped()->getType();
 2723|    343|        if (type.isArray()) {
  ------------------
  |  Branch (2723:13): [True: 329, False: 14]
  ------------------
 2724|    329|            if (type.isUnsizedArray()) {
  ------------------
  |  Branch (2724:17): [True: 36, False: 293]
  ------------------
 2725|     36|                if (intermNode->getAsSymbolNode() && isIoResizeArray(type)) {
  ------------------
  |  Branch (2725:21): [True: 36, False: 0]
  |  Branch (2725:54): [True: 0, False: 36]
  ------------------
 2726|       |                    // We could be between a layout declaration that gives a built-in io array implicit size and
 2727|       |                    // a user redeclaration of that array, meaning we have to substitute its implicit size here
 2728|       |                    // without actually redeclaring the array.  (It is an error to use a member before the
 2729|       |                    // redeclaration, but not an error to use the array name itself.)
 2730|      0|                    const TString& name = intermNode->getAsSymbolNode()->getName();
 2731|      0|                    if (name == "gl_in" || name == "gl_out" || name == "gl_MeshVerticesNV" ||
  ------------------
  |  Branch (2731:25): [True: 0, False: 0]
  |  Branch (2731:44): [True: 0, False: 0]
  |  Branch (2731:64): [True: 0, False: 0]
  ------------------
 2732|      0|                        name == "gl_MeshPrimitivesNV") {
  ------------------
  |  Branch (2732:25): [True: 0, False: 0]
  ------------------
 2733|      0|                        length = getIoArrayImplicitSize(type.getQualifier());
 2734|      0|                    }
 2735|     36|                } else if (const auto typed = intermNode->getAsTyped()) {
  ------------------
  |  Branch (2735:39): [True: 36, False: 0]
  ------------------
 2736|     36|                    if (typed->getQualifier().builtIn == EbvSampleMask) {
  ------------------
  |  Branch (2736:25): [True: 0, False: 36]
  ------------------
 2737|      0|                        requireProfile(loc, EEsProfile, "the array size of gl_SampleMask and gl_SampleMaskIn is ceil(gl_MaxSamples/32)");
 2738|      0|                        length = (resources.maxSamples + 31) / 32;
 2739|      0|                    }
 2740|     36|                }
 2741|     36|                if (length == 0) {
  ------------------
  |  Branch (2741:21): [True: 36, False: 0]
  ------------------
 2742|     36|                    if (intermNode->getAsSymbolNode() && isIoResizeArray(type))
  ------------------
  |  Branch (2742:25): [True: 36, False: 0]
  |  Branch (2742:58): [True: 0, False: 36]
  ------------------
 2743|      0|                        error(loc, "", function->getName().c_str(), "array must first be sized by a redeclaration or layout qualifier");
 2744|     36|                    else if (isRuntimeLength(*intermNode->getAsTyped())) {
  ------------------
  |  Branch (2744:30): [True: 0, False: 36]
  ------------------
 2745|       |                        // Create a unary op and let the back end handle it
 2746|      0|                        return intermediate.addBuiltInFunctionCall(loc, EOpArrayLength, true, intermNode, function->getType());
 2747|      0|                    } else
 2748|     36|                        error(loc, "", function->getName().c_str(), "array must be declared with a size before using this method");
 2749|     36|                }
 2750|    293|            } else if (type.getOuterArrayNode()) {
  ------------------
  |  Branch (2750:24): [True: 0, False: 293]
  ------------------
 2751|       |                // If the array's outer size is specified by an intermediate node, it means the array's length
 2752|       |                // was specified by a specialization constant. In such a case, we should return the node of the
 2753|       |                // specialization constants to represent the length.
 2754|      0|                return type.getOuterArrayNode();
 2755|      0|            } else
 2756|    293|                length = type.getOuterArraySize();
 2757|    329|        } else if (type.isMatrix())
  ------------------
  |  Branch (2757:20): [True: 5, False: 9]
  ------------------
 2758|      5|            length = type.getMatrixCols();
 2759|      9|        else if (type.isVector())
  ------------------
  |  Branch (2759:18): [True: 9, False: 0]
  ------------------
 2760|      9|            length = type.getVectorSize();
 2761|      0|        else if (type.isCoopMat() || type.isCoopVecOrLongVector())
  ------------------
  |  Branch (2761:18): [True: 0, False: 0]
  |  Branch (2761:38): [True: 0, False: 0]
  ------------------
 2762|      0|            return intermediate.addBuiltInFunctionCall(loc, EOpArrayLength, true, intermNode, TType(EbtInt));
 2763|      0|        else {
 2764|       |            // we should not get here, because earlier semantic checking should have prevented this path
 2765|      0|            error(loc, ".length()", "unexpected use of .length()", "");
 2766|      0|        }
 2767|    343|    }
 2768|       |
 2769|    345|    if (length == 0)
  ------------------
  |  Branch (2769:9): [True: 38, False: 307]
  ------------------
 2770|     38|        length = 1;
 2771|       |
 2772|    345|    return intermediate.addConstantUnion(length, loc);
 2773|    345|}
_ZNK7glslang13TParseContext27addInputArgumentConversionsERKNS_9TFunctionERP11TIntermNode:
 2779|  37.2k|{
 2780|  37.2k|    TIntermAggregate* aggregate = arguments->getAsAggregate();
 2781|       |
 2782|       |    // Process each argument's conversion
 2783|   120k|    for (int i = 0; i < function.getParamCount(); ++i) {
  ------------------
  |  Branch (2783:21): [True: 83.5k, False: 37.2k]
  ------------------
 2784|       |        // At this early point there is a slight ambiguity between whether an aggregate 'arguments'
 2785|       |        // is the single argument itself or its children are the arguments.  Only one argument
 2786|       |        // means take 'arguments' itself as the one argument.
 2787|  83.5k|        TIntermTyped* arg = function.getParamCount() == 1 ? arguments->getAsTyped() : (aggregate ? aggregate->getSequence()[i]->getAsTyped() : arguments->getAsTyped());
  ------------------
  |  Branch (2787:29): [True: 12.2k, False: 71.3k]
  |  Branch (2787:88): [True: 71.3k, False: 0]
  ------------------
 2788|  83.5k|        if (*function[i].type != arg->getType()) {
  ------------------
  |  Branch (2788:13): [True: 4.81k, False: 78.7k]
  ------------------
 2789|  4.81k|            if (function[i].type->getQualifier().isParamInput() &&
  ------------------
  |  Branch (2789:17): [True: 4.81k, False: 6]
  ------------------
 2790|  4.81k|               !function[i].type->isCoopMat() && !function[i].type->isTensorARM() &&
  ------------------
  |  Branch (2790:16): [True: 4.81k, False: 0]
  |  Branch (2790:50): [True: 4.81k, False: 0]
  ------------------
 2791|       |               // tensor layout/view type declarations don't do conversions, so we can't convert these parameters either
 2792|  4.81k|               (function.getName() != "createTensorLayoutNV") &&
  ------------------
  |  Branch (2792:16): [True: 4.81k, False: 0]
  ------------------
 2793|  4.81k|               (function.getName() != "createTensorViewNV")) {
  ------------------
  |  Branch (2793:16): [True: 4.81k, False: 0]
  ------------------
 2794|       |                // In-qualified arguments just need an extra node added above the argument to
 2795|       |                // convert to the correct type.
 2796|  4.81k|                arg = intermediate.addConversion(EOpFunctionCall, *function[i].type, arg);
 2797|  4.81k|                if (arg) {
  ------------------
  |  Branch (2797:21): [True: 4.81k, False: 0]
  ------------------
 2798|  4.81k|                    if (function.getParamCount() == 1)
  ------------------
  |  Branch (2798:25): [True: 1.49k, False: 3.31k]
  ------------------
 2799|  1.49k|                        arguments = arg;
 2800|  3.31k|                    else {
 2801|  3.31k|                        if (aggregate)
  ------------------
  |  Branch (2801:29): [True: 3.31k, False: 0]
  ------------------
 2802|  3.31k|                            aggregate->getSequence()[i] = arg;
 2803|      0|                        else
 2804|      0|                            arguments = arg;
 2805|  3.31k|                    }
 2806|  4.81k|                }
 2807|  4.81k|            }
 2808|  4.81k|        }
 2809|  83.5k|    }
 2810|  37.2k|}
_ZNK7glslang13TParseContext28addOutputArgumentConversionsERKNS_9TFunctionERNS_16TIntermAggregateE:
 2820|  22.8k|{
 2821|  22.8k|    TIntermSequence& arguments = intermNode.getSequence();
 2822|       |
 2823|       |    // Will there be any output conversions?
 2824|  22.8k|    bool outputConversions = false;
 2825|  86.1k|    for (int i = 0; i < function.getParamCount(); ++i) {
  ------------------
  |  Branch (2825:21): [True: 63.2k, False: 22.8k]
  ------------------
 2826|  63.2k|        if (*function[i].type != arguments[i]->getAsTyped()->getType() && function[i].type->getQualifier().isParamOutput() &&
  ------------------
  |  Branch (2826:13): [True: 6, False: 63.2k]
  |  Branch (2826:75): [True: 6, False: 0]
  ------------------
 2827|      6|            !function[i].type->isCoopMat()) {
  ------------------
  |  Branch (2827:13): [True: 6, False: 0]
  ------------------
 2828|      6|            outputConversions = true;
 2829|      6|            break;
 2830|      6|        }
 2831|  63.2k|    }
 2832|       |
 2833|  22.8k|    if (! outputConversions)
  ------------------
  |  Branch (2833:9): [True: 22.8k, False: 6]
  ------------------
 2834|  22.8k|        return &intermNode;
 2835|       |
 2836|       |    // Setup for the new tree, if needed:
 2837|       |    //
 2838|       |    // Output conversions need a different tree topology.
 2839|       |    // Out-qualified arguments need a temporary of the correct type, with the call
 2840|       |    // followed by an assignment of the temporary to the original argument:
 2841|       |    //     void: function(arg, ...)  ->        (          function(tempArg, ...), arg = tempArg, ...)
 2842|       |    //     ret = function(arg, ...)  ->  ret = (tempRet = function(tempArg, ...), arg = tempArg, ..., tempRet)
 2843|       |    // Where the "tempArg" type needs no conversion as an argument, but will convert on assignment.
 2844|      6|    TIntermTyped* conversionTree = nullptr;
 2845|      6|    TVariable* tempRet = nullptr;
 2846|      6|    if (intermNode.getBasicType() != EbtVoid) {
  ------------------
  |  Branch (2846:9): [True: 1, False: 5]
  ------------------
 2847|       |        // do the "tempRet = function(...), " bit from above
 2848|      1|        tempRet = makeInternalVariable("tempReturn", intermNode.getType());
 2849|      1|        TIntermSymbol* tempRetNode = intermediate.addSymbol(*tempRet, intermNode.getLoc());
 2850|      1|        conversionTree = intermediate.addAssign(EOpAssign, tempRetNode, &intermNode, intermNode.getLoc());
 2851|      1|    } else
 2852|      5|        conversionTree = &intermNode;
 2853|       |
 2854|      6|    conversionTree = intermediate.makeAggregate(conversionTree);
 2855|       |
 2856|       |    // Process each argument's conversion
 2857|     28|    for (int i = 0; i < function.getParamCount(); ++i) {
  ------------------
  |  Branch (2857:21): [True: 22, False: 6]
  ------------------
 2858|     22|        if (*function[i].type != arguments[i]->getAsTyped()->getType()) {
  ------------------
  |  Branch (2858:13): [True: 6, False: 16]
  ------------------
 2859|      6|            if (function[i].type->getQualifier().isParamOutput()) {
  ------------------
  |  Branch (2859:17): [True: 6, False: 0]
  ------------------
 2860|       |                // Out-qualified arguments need to use the topology set up above.
 2861|       |                // do the " ...(tempArg, ...), arg = tempArg" bit from above
 2862|      6|                TType paramType;
 2863|      6|                paramType.shallowCopy(*function[i].type);
 2864|      6|                if (arguments[i]->getAsTyped()->getType().isParameterized() &&
  ------------------
  |  Branch (2864:21): [True: 0, False: 6]
  ------------------
 2865|      0|                    !paramType.isParameterized()) {
  ------------------
  |  Branch (2865:21): [True: 0, False: 0]
  ------------------
 2866|      0|                    paramType.shallowCopy(arguments[i]->getAsTyped()->getType());
 2867|      0|                    paramType.copyTypeParameters(*arguments[i]->getAsTyped()->getType().getTypeParameters());
 2868|      0|                }
 2869|      6|                TVariable* tempArg = makeInternalVariable("tempArg", paramType);
 2870|      6|                tempArg->getWritableType().getQualifier().makeTemporary();
 2871|      6|                TIntermSymbol* tempArgNode = intermediate.addSymbol(*tempArg, intermNode.getLoc());
 2872|      6|                TIntermTyped* tempAssign = intermediate.addAssign(EOpAssign, arguments[i]->getAsTyped(), tempArgNode, arguments[i]->getLoc());
 2873|      6|                conversionTree = intermediate.growAggregate(conversionTree, tempAssign, arguments[i]->getLoc());
 2874|       |                // replace the argument with another node for the same tempArg variable
 2875|      6|                arguments[i] = intermediate.addSymbol(*tempArg, intermNode.getLoc());
 2876|      6|            }
 2877|      6|        }
 2878|     22|    }
 2879|       |
 2880|       |    // Finalize the tree topology (see bigger comment above).
 2881|      6|    if (tempRet) {
  ------------------
  |  Branch (2881:9): [True: 1, False: 5]
  ------------------
 2882|       |        // do the "..., tempRet" bit from above
 2883|      1|        TIntermSymbol* tempRetNode = intermediate.addSymbol(*tempRet, intermNode.getLoc());
 2884|      1|        conversionTree = intermediate.growAggregate(conversionTree, tempRetNode, intermNode.getLoc());
 2885|      1|    }
 2886|      6|    conversionTree = intermediate.setAggregateOperator(conversionTree, EOpComma, intermNode.getType(), intermNode.getLoc());
 2887|       |
 2888|      6|    return conversionTree;
 2889|  22.8k|}
_ZN7glslang13TParseContext9addAssignERKNS_10TSourceLocENS_9TOperatorEPNS_12TIntermTypedES6_:
 2892|  31.1k|{
 2893|  31.1k|    if ((op == EOpAddAssign || op == EOpSubAssign) && left->isReference())
  ------------------
  |  Branch (2893:10): [True: 7.01k, False: 24.0k]
  |  Branch (2893:32): [True: 162, False: 23.9k]
  |  Branch (2893:55): [True: 0, False: 7.17k]
  ------------------
 2894|      0|        requireExtensions(loc, 1, &E_GL_EXT_buffer_reference2, "+= and -= on a buffer reference");
 2895|       |
 2896|  31.1k|    if (op == EOpAssign && left->getBasicType() == EbtSampler && right->getBasicType() == EbtSampler)
  ------------------
  |  Branch (2896:9): [True: 22.7k, False: 8.33k]
  |  Branch (2896:28): [True: 7, False: 22.7k]
  |  Branch (2896:66): [True: 1, False: 6]
  ------------------
 2897|      1|        requireExtensions(loc, 1, &E_GL_ARB_bindless_texture, "sampler assignment for bindless texture");
 2898|       |
 2899|  31.1k|    return intermediate.addAssign(op, left, right, loc);
 2900|  31.1k|}
_ZN7glslang13TParseContext20memorySemanticsCheckERKNS_10TSourceLocERKNS_9TFunctionERKNS_15TIntermOperatorE:
 2903|    520|{
 2904|    520|    const TIntermSequence* argp = &callNode.getAsAggregate()->getSequence();
 2905|       |
 2906|       |    //const int gl_SemanticsRelaxed         = 0x0;
 2907|    520|    const int gl_SemanticsAcquire         = 0x2;
 2908|    520|    const int gl_SemanticsRelease         = 0x4;
 2909|    520|    const int gl_SemanticsAcquireRelease  = 0x8;
 2910|    520|    const int gl_SemanticsMakeAvailable   = 0x2000;
 2911|    520|    const int gl_SemanticsMakeVisible     = 0x4000;
 2912|    520|    const int gl_SemanticsVolatile        = 0x8000;
 2913|       |
 2914|       |    //const int gl_StorageSemanticsNone     = 0x0;
 2915|    520|    const int gl_StorageSemanticsBuffer   = 0x40;
 2916|    520|    const int gl_StorageSemanticsShared   = 0x100;
 2917|    520|    const int gl_StorageSemanticsImage    = 0x800;
 2918|    520|    const int gl_StorageSemanticsOutput   = 0x1000;
 2919|       |
 2920|    520|    const int nonRelaxedMemoryOrder = gl_SemanticsAcquire |
 2921|    520|                                      gl_SemanticsRelease |
 2922|    520|                                      gl_SemanticsAcquireRelease;
 2923|       |
 2924|    520|    unsigned int semantics = 0, storageClassSemantics = 0;
 2925|    520|    unsigned int semantics2 = 0, storageClassSemantics2 = 0;
 2926|       |
 2927|    520|    const TIntermTyped* arg0 = (*argp)[0]->getAsTyped();
 2928|    520|    const bool isMS = arg0->getBasicType() == EbtSampler && arg0->getType().getSampler().isMultiSample();
  ------------------
  |  Branch (2928:23): [True: 520, False: 0]
  |  Branch (2928:61): [True: 75, False: 445]
  ------------------
 2929|       |
 2930|       |    // The Scope, storage-class-semantics and semantics operands must be
 2931|       |    // compile-time constants. The extraction below reads them as constants, and
 2932|       |    // SPIR-V generation folds the Scope to a literal, so a non-constant operand
 2933|       |    // would otherwise deref a null TIntermConstantUnion here and trip an
 2934|       |    // id/immediate assert in the back end. Locate the first constant operand and
 2935|       |    // reject anything from there on that is not a compile-time constant.
 2936|    520|    int firstConstArg = -1;
 2937|    520|    switch (callNode.getOp()) {
 2938|      0|    case EOpAtomicAdd:
  ------------------
  |  Branch (2938:5): [True: 0, False: 520]
  ------------------
 2939|      0|    case EOpAtomicSubtract:
  ------------------
  |  Branch (2939:5): [True: 0, False: 520]
  ------------------
 2940|      0|    case EOpAtomicMin:
  ------------------
  |  Branch (2940:5): [True: 0, False: 520]
  ------------------
 2941|      0|    case EOpAtomicMax:
  ------------------
  |  Branch (2941:5): [True: 0, False: 520]
  ------------------
 2942|      0|    case EOpAtomicAnd:
  ------------------
  |  Branch (2942:5): [True: 0, False: 520]
  ------------------
 2943|      0|    case EOpAtomicOr:
  ------------------
  |  Branch (2943:5): [True: 0, False: 520]
  ------------------
 2944|      0|    case EOpAtomicXor:
  ------------------
  |  Branch (2944:5): [True: 0, False: 520]
  ------------------
 2945|      0|    case EOpAtomicExchange:
  ------------------
  |  Branch (2945:5): [True: 0, False: 520]
  ------------------
 2946|      0|    case EOpAtomicStore:
  ------------------
  |  Branch (2946:5): [True: 0, False: 520]
  ------------------
 2947|      0|        firstConstArg = 2;
 2948|      0|        break;
 2949|      0|    case EOpAtomicLoad:
  ------------------
  |  Branch (2949:5): [True: 0, False: 520]
  ------------------
 2950|      0|        firstConstArg = 1;
 2951|      0|        break;
 2952|      0|    case EOpAtomicCompSwap:
  ------------------
  |  Branch (2952:5): [True: 0, False: 520]
  ------------------
 2953|      0|        firstConstArg = 3;
 2954|      0|        break;
 2955|     60|    case EOpImageAtomicAdd:
  ------------------
  |  Branch (2955:5): [True: 60, False: 460]
  ------------------
 2956|    117|    case EOpImageAtomicMin:
  ------------------
  |  Branch (2956:5): [True: 57, False: 463]
  ------------------
 2957|    175|    case EOpImageAtomicMax:
  ------------------
  |  Branch (2957:5): [True: 58, False: 462]
  ------------------
 2958|    233|    case EOpImageAtomicAnd:
  ------------------
  |  Branch (2958:5): [True: 58, False: 462]
  ------------------
 2959|    256|    case EOpImageAtomicOr:
  ------------------
  |  Branch (2959:5): [True: 23, False: 497]
  ------------------
 2960|    312|    case EOpImageAtomicXor:
  ------------------
  |  Branch (2960:5): [True: 56, False: 464]
  ------------------
 2961|    367|    case EOpImageAtomicExchange:
  ------------------
  |  Branch (2961:5): [True: 55, False: 465]
  ------------------
 2962|    418|    case EOpImageAtomicStore:
  ------------------
  |  Branch (2962:5): [True: 51, False: 469]
  ------------------
 2963|    418|        firstConstArg = isMS ? 4 : 3;
  ------------------
  |  Branch (2963:25): [True: 75, False: 343]
  ------------------
 2964|    418|        break;
 2965|     53|    case EOpImageAtomicLoad:
  ------------------
  |  Branch (2965:5): [True: 53, False: 467]
  ------------------
 2966|     53|        firstConstArg = isMS ? 3 : 2;
  ------------------
  |  Branch (2966:25): [True: 0, False: 53]
  ------------------
 2967|     53|        break;
 2968|     49|    case EOpImageAtomicCompSwap:
  ------------------
  |  Branch (2968:5): [True: 49, False: 471]
  ------------------
 2969|     49|        firstConstArg = isMS ? 5 : 4;
  ------------------
  |  Branch (2969:25): [True: 0, False: 49]
  ------------------
 2970|     49|        break;
 2971|      0|    case EOpBarrier:
  ------------------
  |  Branch (2971:5): [True: 0, False: 520]
  ------------------
 2972|      0|    case EOpControlBarrierArriveEXT:
  ------------------
  |  Branch (2972:5): [True: 0, False: 520]
  ------------------
 2973|      0|    case EOpControlBarrierWaitEXT:
  ------------------
  |  Branch (2973:5): [True: 0, False: 520]
  ------------------
 2974|      0|    case EOpMemoryBarrier:
  ------------------
  |  Branch (2974:5): [True: 0, False: 520]
  ------------------
 2975|      0|        firstConstArg = 0;
 2976|      0|        break;
 2977|      0|    default:
  ------------------
  |  Branch (2977:5): [True: 0, False: 520]
  ------------------
 2978|      0|        break;
 2979|    520|    }
 2980|  2.17k|    for (int i = firstConstArg; i >= 0 && i < (int)argp->size(); ++i) {
  ------------------
  |  Branch (2980:33): [True: 2.17k, False: 0]
  |  Branch (2980:43): [True: 1.65k, False: 520]
  ------------------
 2981|  1.65k|        if ((*argp)[i]->getAsConstantUnion() == nullptr) {
  ------------------
  |  Branch (2981:13): [True: 0, False: 1.65k]
  ------------------
 2982|      0|            error(loc, "argument must be a compile-time constant", fnCandidate.getName().c_str(), "");
 2983|      0|            return;
 2984|      0|        }
 2985|  1.65k|    }
 2986|       |
 2987|       |    // Grab the semantics and storage class semantics from the operands, based on opcode
 2988|    520|    switch (callNode.getOp()) {
 2989|      0|    case EOpAtomicAdd:
  ------------------
  |  Branch (2989:5): [True: 0, False: 520]
  ------------------
 2990|      0|    case EOpAtomicSubtract:
  ------------------
  |  Branch (2990:5): [True: 0, False: 520]
  ------------------
 2991|      0|    case EOpAtomicMin:
  ------------------
  |  Branch (2991:5): [True: 0, False: 520]
  ------------------
 2992|      0|    case EOpAtomicMax:
  ------------------
  |  Branch (2992:5): [True: 0, False: 520]
  ------------------
 2993|      0|    case EOpAtomicAnd:
  ------------------
  |  Branch (2993:5): [True: 0, False: 520]
  ------------------
 2994|      0|    case EOpAtomicOr:
  ------------------
  |  Branch (2994:5): [True: 0, False: 520]
  ------------------
 2995|      0|    case EOpAtomicXor:
  ------------------
  |  Branch (2995:5): [True: 0, False: 520]
  ------------------
 2996|      0|    case EOpAtomicExchange:
  ------------------
  |  Branch (2996:5): [True: 0, False: 520]
  ------------------
 2997|      0|    case EOpAtomicStore:
  ------------------
  |  Branch (2997:5): [True: 0, False: 520]
  ------------------
 2998|      0|        storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst();
 2999|      0|        semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3000|      0|        break;
 3001|      0|    case EOpAtomicLoad:
  ------------------
  |  Branch (3001:5): [True: 0, False: 520]
  ------------------
 3002|      0|        storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3003|      0|        semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3004|      0|        break;
 3005|      0|    case EOpAtomicCompSwap:
  ------------------
  |  Branch (3005:5): [True: 0, False: 520]
  ------------------
 3006|      0|        storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3007|      0|        semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3008|      0|        storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3009|      0|        semantics2 = (*argp)[7]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3010|      0|        break;
 3011|       |
 3012|     60|    case EOpImageAtomicAdd:
  ------------------
  |  Branch (3012:5): [True: 60, False: 460]
  ------------------
 3013|    117|    case EOpImageAtomicMin:
  ------------------
  |  Branch (3013:5): [True: 57, False: 463]
  ------------------
 3014|    175|    case EOpImageAtomicMax:
  ------------------
  |  Branch (3014:5): [True: 58, False: 462]
  ------------------
 3015|    233|    case EOpImageAtomicAnd:
  ------------------
  |  Branch (3015:5): [True: 58, False: 462]
  ------------------
 3016|    256|    case EOpImageAtomicOr:
  ------------------
  |  Branch (3016:5): [True: 23, False: 497]
  ------------------
 3017|    312|    case EOpImageAtomicXor:
  ------------------
  |  Branch (3017:5): [True: 56, False: 464]
  ------------------
 3018|    367|    case EOpImageAtomicExchange:
  ------------------
  |  Branch (3018:5): [True: 55, False: 465]
  ------------------
 3019|    418|    case EOpImageAtomicStore:
  ------------------
  |  Branch (3019:5): [True: 51, False: 469]
  ------------------
 3020|    418|        storageClassSemantics = (*argp)[isMS ? 5 : 4]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3020:41): [True: 75, False: 343]
  ------------------
 3021|    418|        semantics = (*argp)[isMS ? 6 : 5]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3021:29): [True: 75, False: 343]
  ------------------
 3022|    418|        break;
 3023|     53|    case EOpImageAtomicLoad:
  ------------------
  |  Branch (3023:5): [True: 53, False: 467]
  ------------------
 3024|     53|        storageClassSemantics = (*argp)[isMS ? 4 : 3]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3024:41): [True: 0, False: 53]
  ------------------
 3025|     53|        semantics = (*argp)[isMS ? 5 : 4]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3025:29): [True: 0, False: 53]
  ------------------
 3026|     53|        break;
 3027|     49|    case EOpImageAtomicCompSwap:
  ------------------
  |  Branch (3027:5): [True: 49, False: 471]
  ------------------
 3028|     49|        storageClassSemantics = (*argp)[isMS ? 6 : 5]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3028:41): [True: 0, False: 49]
  ------------------
 3029|     49|        semantics = (*argp)[isMS ? 7 : 6]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3029:29): [True: 0, False: 49]
  ------------------
 3030|     49|        storageClassSemantics2 = (*argp)[isMS ? 8 : 7]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3030:42): [True: 0, False: 49]
  ------------------
 3031|     49|        semantics2 = (*argp)[isMS ? 9 : 8]->getAsConstantUnion()->getConstArray()[0].getIConst();
  ------------------
  |  Branch (3031:30): [True: 0, False: 49]
  ------------------
 3032|     49|        break;
 3033|       |
 3034|      0|    case EOpBarrier:
  ------------------
  |  Branch (3034:5): [True: 0, False: 520]
  ------------------
 3035|      0|    case EOpControlBarrierArriveEXT:
  ------------------
  |  Branch (3035:5): [True: 0, False: 520]
  ------------------
 3036|      0|    case EOpControlBarrierWaitEXT:
  ------------------
  |  Branch (3036:5): [True: 0, False: 520]
  ------------------
 3037|      0|        storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3038|      0|        semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3039|      0|        break;
 3040|      0|    case EOpMemoryBarrier:
  ------------------
  |  Branch (3040:5): [True: 0, False: 520]
  ------------------
 3041|      0|        storageClassSemantics = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3042|      0|        semantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3043|      0|        break;
 3044|      0|    default:
  ------------------
  |  Branch (3044:5): [True: 0, False: 520]
  ------------------
 3045|      0|        break;
 3046|    520|    }
 3047|       |
 3048|    520|    if (((semantics | semantics2) & ~(gl_SemanticsAcquire |
  ------------------
  |  Branch (3048:9): [True: 0, False: 520]
  ------------------
 3049|    520|                                      gl_SemanticsRelease |
 3050|    520|                                      gl_SemanticsAcquireRelease |
 3051|    520|                                      gl_SemanticsMakeAvailable |
 3052|    520|                                      gl_SemanticsMakeVisible |
 3053|    520|                                      gl_SemanticsVolatile))) {
 3054|      0|        error(loc, "Invalid semantics value", fnCandidate.getName().c_str(), "");
 3055|      0|    }
 3056|       |
 3057|    520|    if (((storageClassSemantics | storageClassSemantics2) & ~(gl_StorageSemanticsBuffer |
  ------------------
  |  Branch (3057:9): [True: 0, False: 520]
  ------------------
 3058|    520|                                                              gl_StorageSemanticsShared |
 3059|    520|                                                              gl_StorageSemanticsImage |
 3060|    520|                                                              gl_StorageSemanticsOutput))) {
 3061|      0|        error(loc, "Invalid storage class semantics value", fnCandidate.getName().c_str(), "");
 3062|      0|    }
 3063|       |
 3064|    520|    if (((semantics & nonRelaxedMemoryOrder) && !IsPow2(semantics & nonRelaxedMemoryOrder)) ||
  ------------------
  |  Branch (3064:10): [True: 520, False: 0]
  |  Branch (3064:49): [True: 0, False: 520]
  ------------------
 3065|    520|        ((semantics2 & nonRelaxedMemoryOrder) && !IsPow2(semantics2 & nonRelaxedMemoryOrder))) {
  ------------------
  |  Branch (3065:10): [True: 49, False: 471]
  |  Branch (3065:50): [True: 0, False: 49]
  ------------------
 3066|      0|        error(loc,
 3067|      0|              "Semantics must not include multiple of gl_SemanticsRelease, gl_SemanticsAcquire, or "
 3068|      0|              "gl_SemanticsAcquireRelease",
 3069|      0|              fnCandidate.getName().c_str(), "");
 3070|      0|    }
 3071|       |
 3072|    520|    if (((semantics & nonRelaxedMemoryOrder) && !storageClassSemantics) ||
  ------------------
  |  Branch (3072:10): [True: 520, False: 0]
  |  Branch (3072:49): [True: 0, False: 520]
  ------------------
 3073|    520|        ((semantics2 & nonRelaxedMemoryOrder) && !storageClassSemantics2)) {
  ------------------
  |  Branch (3073:10): [True: 49, False: 471]
  |  Branch (3073:50): [True: 0, False: 49]
  ------------------
 3074|      0|        error(loc,
 3075|      0|              "Storage class semantics must not be zero when used with gl_SemanticsRelease, "
 3076|      0|              "gl_SemanticsAcquire, or gl_SemanticsAcquireRelease",
 3077|      0|              fnCandidate.getName().c_str(), "");
 3078|      0|    }
 3079|       |
 3080|    520|    if ((storageClassSemantics && !(semantics & nonRelaxedMemoryOrder)) ||
  ------------------
  |  Branch (3080:10): [True: 520, False: 0]
  |  Branch (3080:35): [True: 0, False: 520]
  ------------------
 3081|    520|        (storageClassSemantics2 && !(semantics2 & nonRelaxedMemoryOrder))) {
  ------------------
  |  Branch (3081:10): [True: 49, False: 471]
  |  Branch (3081:36): [True: 0, False: 49]
  ------------------
 3082|      0|        error(loc,
 3083|      0|              "Semantics must be gl_SemanticsRelease, gl_SemanticsAcquire, or gl_SemanticsAcquireRelease when used "
 3084|      0|              "with non-zero storage class semantics",
 3085|      0|              fnCandidate.getName().c_str(), "");
 3086|      0|    }
 3087|       |
 3088|    520|    if (storageClassSemantics) {
  ------------------
  |  Branch (3088:9): [True: 520, False: 0]
  ------------------
 3089|    520|        if (callNode.getOp() == EOpControlBarrierArriveEXT &&
  ------------------
  |  Branch (3089:13): [True: 0, False: 520]
  ------------------
 3090|      0|            (semantics & ~gl_SemanticsMakeAvailable) != gl_SemanticsRelease) {
  ------------------
  |  Branch (3090:13): [True: 0, False: 0]
  ------------------
 3091|      0|            error(loc,
 3092|      0|                  "Semantics must be gl_SemanticsRelease (optionally with gl_SemanticsMakeAvailable) when used "
 3093|      0|                  "with non-zero storage class semantics",
 3094|      0|                  fnCandidate.getName().c_str(), "");
 3095|      0|        }
 3096|    520|        if (callNode.getOp() == EOpControlBarrierWaitEXT &&
  ------------------
  |  Branch (3096:13): [True: 0, False: 520]
  ------------------
 3097|      0|            (semantics & ~gl_SemanticsMakeVisible) != gl_SemanticsAcquire) {
  ------------------
  |  Branch (3097:13): [True: 0, False: 0]
  ------------------
 3098|      0|            error(loc,
 3099|      0|                  "Semantics must be gl_SemanticsAcquire (optionally with gl_SemanticsMakeVisible) when used "
 3100|      0|                  "with non-zero storage class semantics",
 3101|      0|                  fnCandidate.getName().c_str(), "");
 3102|      0|        }
 3103|    520|    }
 3104|       |
 3105|    520|    if (((semantics & gl_SemanticsMakeAvailable) &&
  ------------------
  |  Branch (3105:10): [True: 0, False: 520]
  ------------------
 3106|      0|         !(semantics & (gl_SemanticsRelease | gl_SemanticsAcquireRelease))) ||
  ------------------
  |  Branch (3106:10): [True: 0, False: 0]
  ------------------
 3107|    520|        ((semantics2 & gl_SemanticsMakeAvailable) &&
  ------------------
  |  Branch (3107:10): [True: 0, False: 520]
  ------------------
 3108|      0|         !(semantics2 & (gl_SemanticsRelease | gl_SemanticsAcquireRelease)))) {
  ------------------
  |  Branch (3108:10): [True: 0, False: 0]
  ------------------
 3109|      0|        error(loc, "gl_SemanticsMakeAvailable requires gl_SemanticsRelease or gl_SemanticsAcquireRelease",
 3110|      0|              fnCandidate.getName().c_str(), "");
 3111|      0|    }
 3112|       |
 3113|    520|    if (((semantics & gl_SemanticsMakeVisible) && !(semantics & (gl_SemanticsAcquire | gl_SemanticsAcquireRelease))) ||
  ------------------
  |  Branch (3113:10): [True: 0, False: 520]
  |  Branch (3113:51): [True: 0, False: 0]
  ------------------
 3114|    520|        ((semantics2 & gl_SemanticsMakeVisible) &&
  ------------------
  |  Branch (3114:10): [True: 0, False: 520]
  ------------------
 3115|      0|         !(semantics2 & (gl_SemanticsAcquire | gl_SemanticsAcquireRelease)))) {
  ------------------
  |  Branch (3115:10): [True: 0, False: 0]
  ------------------
 3116|      0|        error(loc, "gl_SemanticsMakeVisible requires gl_SemanticsAcquire or gl_SemanticsAcquireRelease",
 3117|      0|              fnCandidate.getName().c_str(), "");
 3118|      0|    }
 3119|       |
 3120|    520|    if ((callNode.getOp() == EOpAtomicStore || callNode.getOp() == EOpImageAtomicStore) &&
  ------------------
  |  Branch (3120:10): [True: 0, False: 520]
  |  Branch (3120:48): [True: 51, False: 469]
  ------------------
 3121|     51|        (semantics & gl_SemanticsAcquire)) {
  ------------------
  |  Branch (3121:9): [True: 0, False: 51]
  ------------------
 3122|      0|        error(loc, "gl_SemanticsAcquire must not be used with (image) atomic store", fnCandidate.getName().c_str(), "");
 3123|      0|    }
 3124|       |
 3125|    520|    if ((callNode.getOp() == EOpAtomicLoad || callNode.getOp() == EOpImageAtomicLoad) &&
  ------------------
  |  Branch (3125:10): [True: 0, False: 520]
  |  Branch (3125:47): [True: 53, False: 467]
  ------------------
 3126|     53|        (semantics & gl_SemanticsRelease)) {
  ------------------
  |  Branch (3126:9): [True: 0, False: 53]
  ------------------
 3127|      0|        error(loc, "gl_SemanticsRelease must not be used with (image) atomic load", fnCandidate.getName().c_str(), "");
 3128|      0|    }
 3129|       |
 3130|    520|    if ((callNode.getOp() == EOpAtomicStore || callNode.getOp() == EOpImageAtomicStore ||
  ------------------
  |  Branch (3130:10): [True: 0, False: 520]
  |  Branch (3130:48): [True: 51, False: 469]
  ------------------
 3131|    469|         callNode.getOp() == EOpAtomicLoad || callNode.getOp() == EOpImageAtomicLoad) &&
  ------------------
  |  Branch (3131:10): [True: 0, False: 469]
  |  Branch (3131:47): [True: 53, False: 416]
  ------------------
 3132|    104|        (semantics & gl_SemanticsAcquireRelease)) {
  ------------------
  |  Branch (3132:9): [True: 0, False: 104]
  ------------------
 3133|      0|        error(loc, "gl_SemanticsAcquireRelease must not be used with (image) atomic load/store",
 3134|      0|              fnCandidate.getName().c_str(), "");
 3135|      0|    }
 3136|       |
 3137|    520|    if (callNode.getOp() == EOpMemoryBarrier &&
  ------------------
  |  Branch (3137:9): [True: 0, False: 520]
  ------------------
 3138|      0|        !(semantics & (gl_SemanticsAcquire | gl_SemanticsRelease | gl_SemanticsAcquireRelease))) {
  ------------------
  |  Branch (3138:9): [True: 0, False: 0]
  ------------------
 3139|      0|        error(loc,
 3140|      0|              "Semantics must include exactly one of gl_SemanticsRelease, gl_SemanticsAcquire, or "
 3141|      0|              "gl_SemanticsAcquireRelease when used with memoryBarrier",
 3142|      0|              fnCandidate.getName().c_str(), "");
 3143|      0|    }
 3144|       |
 3145|    520|    if ((callNode.getOp() == EOpMemoryBarrier || callNode.getOp() == EOpBarrier) &&
  ------------------
  |  Branch (3145:10): [True: 0, False: 520]
  |  Branch (3145:50): [True: 0, False: 520]
  ------------------
 3146|      0|        (semantics & gl_SemanticsVolatile)) {
  ------------------
  |  Branch (3146:9): [True: 0, False: 0]
  ------------------
 3147|      0|        error(loc, "gl_SemanticsVolatile must not be used with memoryBarrier or controlBarrier",
 3148|      0|              fnCandidate.getName().c_str(), "");
 3149|      0|    }
 3150|       |
 3151|    520|    if ((callNode.getOp() == EOpControlBarrierArriveEXT) && ((semantics & gl_SemanticsVolatile) != 0)) {
  ------------------
  |  Branch (3151:9): [True: 0, False: 520]
  |  Branch (3151:61): [True: 0, False: 0]
  ------------------
 3152|      0|      error(loc, "gl_SemanticsVolatile must not be used with controlBarrierArrive",
 3153|      0|            fnCandidate.getName().c_str(), "");
 3154|      0|    }
 3155|       |
 3156|    520|    if ((callNode.getOp() == EOpControlBarrierWaitEXT) && ((semantics & gl_SemanticsVolatile) != 0)) {
  ------------------
  |  Branch (3156:9): [True: 0, False: 520]
  |  Branch (3156:59): [True: 0, False: 0]
  ------------------
 3157|      0|      error(loc, "gl_SemanticsVolatile must not be used with controlBarrierWait",
 3158|      0|            fnCandidate.getName().c_str(), "");
 3159|      0|    }
 3160|       |
 3161|    520|    if (callNode.getOp() == EOpAtomicCompSwap || callNode.getOp() == EOpImageAtomicCompSwap) {
  ------------------
  |  Branch (3161:9): [True: 0, False: 520]
  |  Branch (3161:50): [True: 49, False: 471]
  ------------------
 3162|     49|        if (semantics2 & (gl_SemanticsRelease | gl_SemanticsAcquireRelease)) {
  ------------------
  |  Branch (3162:13): [True: 0, False: 49]
  ------------------
 3163|      0|            error(loc, "semUnequal must not be gl_SemanticsRelease or gl_SemanticsAcquireRelease",
 3164|      0|                  fnCandidate.getName().c_str(), "");
 3165|      0|        }
 3166|     49|        if ((semantics2 & gl_SemanticsAcquire) && !(semantics & (gl_SemanticsAcquire | gl_SemanticsAcquireRelease))) {
  ------------------
  |  Branch (3166:13): [True: 49, False: 0]
  |  Branch (3166:51): [True: 0, False: 49]
  ------------------
 3167|      0|            error(loc,
 3168|      0|                  "semUnequal must not be gl_SemanticsAcquire unless semEqual is gl_SemanticsAcquire "
 3169|      0|                  "or gl_SemanticsAcquireRelease",
 3170|      0|                  fnCandidate.getName().c_str(), "");
 3171|      0|        }
 3172|     49|        if ((semantics2 & gl_SemanticsMakeVisible) && !(semantics & gl_SemanticsMakeVisible)) {
  ------------------
  |  Branch (3172:13): [True: 0, False: 49]
  |  Branch (3172:55): [True: 0, False: 0]
  ------------------
 3173|      0|            error(loc,
 3174|      0|                  "semUnequal must not include gl_SemanticsMakeVisible unless semEqual also includes "
 3175|      0|                  "gl_SemanticsMakeVisible",
 3176|      0|                  fnCandidate.getName().c_str(), "");
 3177|      0|        }
 3178|     49|        if (storageClassSemantics2 & ~(storageClassSemantics)) {
  ------------------
  |  Branch (3178:13): [True: 0, False: 49]
  ------------------
 3179|      0|            error(loc, "semStorageUnequal must not include any option that is not present in semStorageEqual",
 3180|      0|                  fnCandidate.getName().c_str(), "");
 3181|      0|        }
 3182|     49|        if ((semantics ^ semantics2) & gl_SemanticsVolatile) {
  ------------------
  |  Branch (3182:13): [True: 0, False: 49]
  ------------------
 3183|      0|            error(loc, "semEqual and semUnequal must either both include gl_SemanticsVolatile or neither",
 3184|      0|                  fnCandidate.getName().c_str(), "");
 3185|      0|        }
 3186|     49|    }
 3187|    520|}
_ZN7glslang13TParseContext23requireDerivativeLayoutERKNS_10TSourceLocEPKcb:
 3196|  2.11k|{
 3197|  2.11k|    if (language != EShLangCompute && language != EShLangTask && language != EShLangMesh)
  ------------------
  |  Branch (3197:9): [True: 2.11k, False: 0]
  |  Branch (3197:39): [True: 2.11k, False: 0]
  |  Branch (3197:66): [True: 2.11k, False: 0]
  ------------------
 3198|  2.11k|        return;
 3199|       |
 3200|       |    // Prior to the compute shader derivatives extensions:
 3201|       |    //  - texture operations using implicit derivatives could be treated as if
 3202|       |    //    the base level of detail was zero. If neither of the compute shader
 3203|       |    //    derivative extensions are enabled, we preserve that behavior to
 3204|       |    //    avoid breaking existing shaders that may rely on that
 3205|       |    //  - derivative operations (such as dFdx()) were only allowed in fragment
 3206|       |    //    shaders, and can only be used in other stages if one of the
 3207|       |    //    extensions are enabled.
 3208|       |
 3209|      0|    if (isDerivativeOp) {
  ------------------
  |  Branch (3209:9): [True: 0, False: 0]
  ------------------
 3210|       |        // GL_NV_compute_shader_derivative added support for derivative operations
 3211|       |        // in compute shaders (only).
 3212|       |        //  GL_KHR_compute_shader_derivatives extended this to
 3213|       |        // task and mesh shaders.
 3214|       |
 3215|      0|        if (language == EShLangCompute) {
  ------------------
  |  Branch (3215:13): [True: 0, False: 0]
  ------------------
 3216|      0|            const char* const derivativeExts[] = {E_GL_NV_compute_shader_derivatives,
 3217|      0|                                                  E_GL_KHR_compute_shader_derivatives};
 3218|      0|            requireExtensions(loc, 2, derivativeExts, featureDesc);
 3219|      0|        } else {
 3220|      0|            requireExtensions(loc, 1, &E_GL_KHR_compute_shader_derivatives, featureDesc);
 3221|      0|        }
 3222|      0|    }
 3223|       |
 3224|       |    // GL_KHR_compute_shader_derivatives requires a derivative group mode to
 3225|       |    // be specified. GL_NV_compute_shader_derivative does not.
 3226|      0|    if (extensionTurnedOn(E_GL_KHR_compute_shader_derivatives) &&
  ------------------
  |  Branch (3226:9): [True: 0, False: 0]
  ------------------
 3227|      0|        !intermediate.hasLayoutDerivativeModeNone())
  ------------------
  |  Branch (3227:9): [True: 0, False: 0]
  ------------------
 3228|      0|        error(loc, "requires a derivative_group_quads* or derivative_group_linear* layout qualifier", featureDesc, "");
 3229|      0|}
_ZN7glslang13TParseContext14builtInOpCheckERKNS_10TSourceLocERKNS_9TFunctionERNS_15TIntermOperatorE:
 3232|  28.6k|{
 3233|       |    // Set up convenience accessors to the argument(s).  There is almost always
 3234|       |    // multiple arguments for the cases below, but when there might be one,
 3235|       |    // check the unaryArg first.
 3236|  28.6k|    const TIntermSequence* argp = nullptr;   // confusing to use [] syntax on a pointer, so this is to help get a reference
 3237|  28.6k|    const TIntermTyped* unaryArg = nullptr;
 3238|  28.6k|    const TIntermTyped* arg0 = nullptr;
 3239|  28.6k|    if (callNode.getAsAggregate()) {
  ------------------
  |  Branch (3239:9): [True: 20.6k, False: 7.99k]
  ------------------
 3240|  20.6k|        argp = &callNode.getAsAggregate()->getSequence();
 3241|  20.6k|        if (argp->size() > 0)
  ------------------
  |  Branch (3241:13): [True: 20.2k, False: 442]
  ------------------
 3242|  20.2k|            arg0 = (*argp)[0]->getAsTyped();
 3243|  20.6k|    } else {
 3244|  7.99k|        assert(callNode.getAsUnaryNode());
 3245|  7.99k|        unaryArg = callNode.getAsUnaryNode()->getOperand();
 3246|  7.99k|        arg0 = unaryArg;
 3247|  7.99k|    }
 3248|       |
 3249|  28.6k|    TString featureString;
 3250|  28.6k|    const char* feature = nullptr;
 3251|       |
 3252|  28.6k|    auto checkConstantArgWithLocation = [&](int argIndex, const char* argDescription,
 3253|  28.6k|                                                       const char* errMsg, int ioRTLocationSet) {
 3254|       |        //ioRTLocationSet refers to grouping of locations of RT input/outputs as defined in TIntermediate::usedIoRT
 3255|  28.6k|        if (!(*argp)[argIndex]->getAsConstantUnion()) {
 3256|  28.6k|            error(loc, "argument must be compile-time constant", argDescription, argIndex == 10 ? "a" : "");
 3257|  28.6k|        } else if (ioRTLocationSet >= 0) {
 3258|  28.6k|            unsigned int location = (*argp)[argIndex]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst();
 3259|  28.6k|            if (!extensionTurnedOn(E_GL_EXT_spirv_intrinsics) && intermediate.checkLocationRT(ioRTLocationSet, location) < 0)
 3260|  28.6k|                error(loc, "with layout(location =", errMsg, "%d)", location);
 3261|  28.6k|        }
 3262|  28.6k|    };
 3263|       |
 3264|       |    // Hit object functions that also require an interacting extension to be enabled
 3265|  28.6k|    switch (callNode.getOp()) {
 3266|      0|    case EOpHitObjectTraceRayMotionNV:
  ------------------
  |  Branch (3266:5): [True: 0, False: 28.6k]
  ------------------
 3267|      0|    case EOpHitObjectRecordHitMotionNV:
  ------------------
  |  Branch (3267:5): [True: 0, False: 28.6k]
  ------------------
 3268|      0|    case EOpHitObjectRecordHitWithIndexMotionNV:
  ------------------
  |  Branch (3268:5): [True: 0, False: 28.6k]
  ------------------
 3269|      0|    case EOpHitObjectRecordMissMotionNV:
  ------------------
  |  Branch (3269:5): [True: 0, False: 28.6k]
  ------------------
 3270|      0|    case EOpHitObjectGetCurrentTimeNV:
  ------------------
  |  Branch (3270:5): [True: 0, False: 28.6k]
  ------------------
 3271|      0|    case EOpHitObjectTraceRayMotionEXT:
  ------------------
  |  Branch (3271:5): [True: 0, False: 28.6k]
  ------------------
 3272|      0|    case EOpHitObjectRecordMissMotionEXT:
  ------------------
  |  Branch (3272:5): [True: 0, False: 28.6k]
  ------------------
 3273|      0|    case EOpHitObjectGetCurrentTimeEXT:
  ------------------
  |  Branch (3273:5): [True: 0, False: 28.6k]
  ------------------
 3274|      0|    case EOpHitObjectTraceMotionReorderExecuteEXT:
  ------------------
  |  Branch (3274:5): [True: 0, False: 28.6k]
  ------------------
 3275|      0|        requireExtensions(loc, 1, &E_GL_NV_ray_tracing_motion_blur, fnCandidate.getName().c_str());
 3276|      0|        break;
 3277|      0|    case EOpHitObjectGetIntersectionTriangleVertexPositionsEXT:
  ------------------
  |  Branch (3277:5): [True: 0, False: 28.6k]
  ------------------
 3278|      0|        requireExtensions(loc, 1, &E_GL_EXT_ray_tracing_position_fetch, fnCandidate.getName().c_str());
 3279|      0|        break;
 3280|  28.6k|    default:
  ------------------
  |  Branch (3280:5): [True: 28.6k, False: 0]
  ------------------
 3281|  28.6k|        break;
 3282|  28.6k|    }
 3283|       |
 3284|  28.6k|    switch (callNode.getOp()) {
 3285|     67|    case EOpDPdx:
  ------------------
  |  Branch (3285:5): [True: 67, False: 28.5k]
  ------------------
 3286|     85|    case EOpDPdxFine:
  ------------------
  |  Branch (3286:5): [True: 18, False: 28.6k]
  ------------------
 3287|    103|    case EOpDPdxCoarse:
  ------------------
  |  Branch (3287:5): [True: 18, False: 28.6k]
  ------------------
 3288|    124|    case EOpDPdy:
  ------------------
  |  Branch (3288:5): [True: 21, False: 28.6k]
  ------------------
 3289|    134|    case EOpDPdyFine:
  ------------------
  |  Branch (3289:5): [True: 10, False: 28.6k]
  ------------------
 3290|    140|    case EOpDPdyCoarse:
  ------------------
  |  Branch (3290:5): [True: 6, False: 28.6k]
  ------------------
 3291|    162|    case EOpFwidth:
  ------------------
  |  Branch (3291:5): [True: 22, False: 28.6k]
  ------------------
 3292|    179|    case EOpFwidthFine:
  ------------------
  |  Branch (3292:5): [True: 17, False: 28.6k]
  ------------------
 3293|    196|    case EOpFwidthCoarse:
  ------------------
  |  Branch (3293:5): [True: 17, False: 28.6k]
  ------------------
 3294|    196|        requireDerivativeLayout(loc, fnCandidate.getName().c_str(), true);
 3295|    196|        break;
 3296|       |
 3297|    558|    case EOpTextureGather:
  ------------------
  |  Branch (3297:5): [True: 558, False: 28.0k]
  ------------------
 3298|  1.69k|    case EOpTextureGatherOffset:
  ------------------
  |  Branch (3298:5): [True: 1.13k, False: 27.5k]
  ------------------
 3299|  2.01k|    case EOpTextureGatherOffsets:
  ------------------
  |  Branch (3299:5): [True: 316, False: 28.3k]
  ------------------
 3300|  2.01k|    {
 3301|       |        // Figure out which variants are allowed by what extensions,
 3302|       |        // and what arguments must be constant for which situations.
 3303|       |
 3304|  2.01k|        featureString = fnCandidate.getName();
 3305|  2.01k|        featureString += "(...)";
 3306|  2.01k|        feature = featureString.c_str();
 3307|  2.01k|        profileRequires(loc, EEsProfile, 310, nullptr, feature);
 3308|  2.01k|        int compArg = -1;  // track which argument, if any, is the constant component argument
 3309|  2.01k|        const int numTexGatherExts = 3;
 3310|  2.01k|        const char* texGatherExts[numTexGatherExts] = { E_GL_ARB_texture_gather,
 3311|  2.01k|                                                        E_GL_ARB_gpu_shader5,
 3312|  2.01k|                                                        E_GL_NV_gpu_shader5};
 3313|  2.01k|        switch (callNode.getOp()) {
 3314|    558|        case EOpTextureGather:
  ------------------
  |  Branch (3314:9): [True: 558, False: 1.45k]
  ------------------
 3315|       |            // More than two arguments needs gpu_shader5, and rectangular or shadow needs gpu_shader5,
 3316|       |            // otherwise, need GL_ARB_texture_gather.
 3317|    558|            if (fnCandidate.getParamCount() > 2 || fnCandidate[0].type->getSampler().dim == EsdRect || fnCandidate[0].type->getSampler().shadow) {
  ------------------
  |  Branch (3317:17): [True: 89, False: 469]
  |  Branch (3317:52): [True: 0, False: 469]
  |  Branch (3317:104): [True: 0, False: 469]
  ------------------
 3318|     89|                profileRequires(loc, ~EEsProfile, 400, Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5, feature);
 3319|     89|                if (! fnCandidate[0].type->getSampler().shadow)
  ------------------
  |  Branch (3319:21): [True: 20, False: 69]
  ------------------
 3320|     20|                    compArg = 2;
 3321|     89|            } else
 3322|    469|                profileRequires(loc, ~EEsProfile, 400, numTexGatherExts, texGatherExts, feature);
 3323|    558|            break;
 3324|  1.13k|        case EOpTextureGatherOffset:
  ------------------
  |  Branch (3324:9): [True: 1.13k, False: 874]
  ------------------
 3325|       |            // GL_ARB_texture_gather is good enough for 2D non-shadow textures with no component argument
 3326|  1.13k|            if (fnCandidate[0].type->getSampler().dim == Esd2D && ! fnCandidate[0].type->getSampler().shadow && fnCandidate.getParamCount() == 3)
  ------------------
  |  Branch (3326:17): [True: 1.13k, False: 0]
  |  Branch (3326:67): [True: 1.04k, False: 94]
  |  Branch (3326:113): [True: 547, False: 498]
  ------------------
 3327|    547|                profileRequires(loc, ~EEsProfile, 400, numTexGatherExts, texGatherExts, feature);
 3328|    592|            else
 3329|    592|                profileRequires(loc, ~EEsProfile, 400, Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5, feature);
 3330|  1.13k|            if (! (*argp)[fnCandidate[0].type->getSampler().shadow ? 3 : 2]->getAsConstantUnion())
  ------------------
  |  Branch (3330:17): [True: 399, False: 740]
  |  Branch (3330:27): [True: 94, False: 1.04k]
  ------------------
 3331|    399|                profileRequires(loc, EEsProfile, 320, Num_AEP_gpu_shader5, AEP_gpu_shader5,
 3332|    399|                                "non-constant offset argument");
 3333|  1.13k|            if (! fnCandidate[0].type->getSampler().shadow)
  ------------------
  |  Branch (3333:17): [True: 1.04k, False: 94]
  ------------------
 3334|  1.04k|                compArg = 3;
 3335|  1.13k|            break;
 3336|    316|        case EOpTextureGatherOffsets:
  ------------------
  |  Branch (3336:9): [True: 316, False: 1.69k]
  ------------------
 3337|    316|            profileRequires(loc, ~EEsProfile, 400, Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5, feature);
 3338|    316|            if (! fnCandidate[0].type->getSampler().shadow)
  ------------------
  |  Branch (3338:17): [True: 283, False: 33]
  ------------------
 3339|    283|                compArg = 3;
 3340|       |            // check for constant offsets
 3341|    316|            if (! (*argp)[fnCandidate[0].type->getSampler().shadow ? 3 : 2]->getAsConstantUnion()
  ------------------
  |  Branch (3341:17): [True: 149, False: 167]
  |  Branch (3341:27): [True: 33, False: 283]
  ------------------
 3342|       |                // NV_gpu_shader5 relaxes this limitation and allows for non-constant offsets
 3343|    149|                && !extensionTurnedOn(E_GL_NV_gpu_shader5))
  ------------------
  |  Branch (3343:20): [True: 70, False: 79]
  ------------------
 3344|     70|                error(loc, "must be a compile-time constant:", feature, "offsets argument");
 3345|    316|            break;
 3346|      0|        default:
  ------------------
  |  Branch (3346:9): [True: 0, False: 2.01k]
  ------------------
 3347|      0|            break;
 3348|  2.01k|        }
 3349|       |
 3350|  2.01k|        if (compArg > 0 && compArg < fnCandidate.getParamCount()) {
  ------------------
  |  Branch (3350:13): [True: 1.34k, False: 665]
  |  Branch (3350:28): [True: 528, False: 820]
  ------------------
 3351|    528|            if ((*argp)[compArg]->getAsConstantUnion()) {
  ------------------
  |  Branch (3351:17): [True: 418, False: 110]
  ------------------
 3352|    418|                int value = (*argp)[compArg]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3353|    418|                if (value < 0 || value > 3)
  ------------------
  |  Branch (3353:21): [True: 0, False: 418]
  |  Branch (3353:34): [True: 109, False: 309]
  ------------------
 3354|    109|                    error(loc, "must be 0, 1, 2, or 3:", feature, "component argument");
 3355|    418|            } else
 3356|    110|                error(loc, "must be a compile-time constant:", feature, "component argument");
 3357|    528|        }
 3358|       |
 3359|  2.01k|        bool bias = false;
 3360|  2.01k|        if (callNode.getOp() == EOpTextureGather)
  ------------------
  |  Branch (3360:13): [True: 558, False: 1.45k]
  ------------------
 3361|    558|            bias = fnCandidate.getParamCount() > 3;
 3362|  1.45k|        else if (callNode.getOp() == EOpTextureGatherOffset ||
  ------------------
  |  Branch (3362:18): [True: 1.13k, False: 316]
  ------------------
 3363|    316|                 callNode.getOp() == EOpTextureGatherOffsets)
  ------------------
  |  Branch (3363:18): [True: 316, False: 0]
  ------------------
 3364|  1.45k|            bias = fnCandidate.getParamCount() > 4;
 3365|       |
 3366|  2.01k|        if (bias) {
  ------------------
  |  Branch (3366:13): [True: 8, False: 2.00k]
  ------------------
 3367|      8|            featureString = fnCandidate.getName();
 3368|      8|            featureString += "with bias argument";
 3369|      8|            feature = featureString.c_str();
 3370|      8|            profileRequires(loc, ~EEsProfile, 450, nullptr, feature);
 3371|      8|            requireExtensions(loc, 1, &E_GL_AMD_texture_gather_bias_lod, feature);
 3372|      8|        }
 3373|  2.01k|        break;
 3374|  2.01k|    }
 3375|       |
 3376|     36|    case EOpTextureGather4x1QCOM:
  ------------------
  |  Branch (3376:5): [True: 36, False: 28.6k]
  ------------------
 3377|     72|    case EOpTextureGatherV2QCOM:
  ------------------
  |  Branch (3377:5): [True: 36, False: 28.6k]
  ------------------
 3378|    108|    case EOpTextureGatherH2QCOM:
  ------------------
  |  Branch (3378:5): [True: 36, False: 28.6k]
  ------------------
 3379|    144|    case EOpTextureGatherDQCOM:
  ------------------
  |  Branch (3379:5): [True: 36, False: 28.6k]
  ------------------
 3380|    177|    case EOpTextureGather4x1OffsetQCOM:
  ------------------
  |  Branch (3380:5): [True: 33, False: 28.6k]
  ------------------
 3381|    210|    case EOpTextureGatherV2OffsetQCOM:
  ------------------
  |  Branch (3381:5): [True: 33, False: 28.6k]
  ------------------
 3382|    243|    case EOpTextureGatherH2OffsetQCOM:
  ------------------
  |  Branch (3382:5): [True: 33, False: 28.6k]
  ------------------
 3383|    273|    case EOpTextureGatherDOffsetQCOM:
  ------------------
  |  Branch (3383:5): [True: 30, False: 28.6k]
  ------------------
 3384|    273|    {
 3385|    273|        featureString = fnCandidate.getName();
 3386|    273|        featureString += "(...)";
 3387|    273|        feature = featureString.c_str();
 3388|    273|        profileRequires(loc, EEsProfile, 310, nullptr, feature);
 3389|    273|        int compArg = -1;  // track which argument, if any, is the constant component argument
 3390|    273|        const int numTexGatherExts = 1;
 3391|    273|        const char* texGatherExts[numTexGatherExts] = { E_GL_QCOM_image_processing3 };
 3392|    273|        switch (callNode.getOp()) {
 3393|     36|        case EOpTextureGather4x1QCOM:
  ------------------
  |  Branch (3393:9): [True: 36, False: 237]
  ------------------
 3394|     72|        case EOpTextureGatherV2QCOM:
  ------------------
  |  Branch (3394:9): [True: 36, False: 237]
  ------------------
 3395|    108|        case EOpTextureGatherH2QCOM:
  ------------------
  |  Branch (3395:9): [True: 36, False: 237]
  ------------------
 3396|    144|        case EOpTextureGatherDQCOM:
  ------------------
  |  Branch (3396:9): [True: 36, False: 237]
  ------------------
 3397|    144|            profileRequires(loc, ~EEsProfile, 460, numTexGatherExts, texGatherExts, feature);
 3398|       |            // More than two arguments needs gpu_shader5, and rectangular or shadow needs gpu_shader5,
 3399|       |            // otherwise, need GL_ARB_texture_gather.
 3400|    144|            if (fnCandidate.getParamCount() > 2) {
  ------------------
  |  Branch (3400:17): [True: 48, False: 96]
  ------------------
 3401|     48|                compArg = 2;
 3402|     48|            }
 3403|    144|            break;
 3404|     33|        case EOpTextureGather4x1OffsetQCOM:
  ------------------
  |  Branch (3404:9): [True: 33, False: 240]
  ------------------
 3405|     66|        case EOpTextureGatherV2OffsetQCOM:
  ------------------
  |  Branch (3405:9): [True: 33, False: 240]
  ------------------
 3406|     99|        case EOpTextureGatherH2OffsetQCOM:
  ------------------
  |  Branch (3406:9): [True: 33, False: 240]
  ------------------
 3407|    129|        case EOpTextureGatherDOffsetQCOM:
  ------------------
  |  Branch (3407:9): [True: 30, False: 243]
  ------------------
 3408|    129|            profileRequires(loc, ~EEsProfile, 460, numTexGatherExts, texGatherExts, feature);
 3409|    129|            if (fnCandidate.getParamCount() > 3) {
  ------------------
  |  Branch (3409:17): [True: 46, False: 83]
  ------------------
 3410|     46|                compArg = 3;
 3411|     46|            }
 3412|    129|            break;
 3413|      0|        default:
  ------------------
  |  Branch (3413:9): [True: 0, False: 273]
  ------------------
 3414|      0|            break;
 3415|    273|        }
 3416|       |
 3417|    273|        if (compArg > 0 && compArg < fnCandidate.getParamCount()) {
  ------------------
  |  Branch (3417:13): [True: 94, False: 179]
  |  Branch (3417:28): [True: 94, False: 0]
  ------------------
 3418|     94|            if ((*argp)[compArg]->getAsConstantUnion()) {
  ------------------
  |  Branch (3418:17): [True: 94, False: 0]
  ------------------
 3419|     94|                int value = (*argp)[compArg]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3420|     94|                if (value < 0 || value > 3)
  ------------------
  |  Branch (3420:21): [True: 0, False: 94]
  |  Branch (3420:34): [True: 0, False: 94]
  ------------------
 3421|      0|                    error(loc, "must be 0, 1, 2, or 3:", feature, "component argument");
 3422|     94|            } else
 3423|      0|                error(loc, "must be a compile-time constant:", feature, "component argument");
 3424|     94|        }
 3425|    273|        break;
 3426|    273|    }
 3427|       |
 3428|    822|    case EOpTexture:
  ------------------
  |  Branch (3428:5): [True: 822, False: 27.8k]
  ------------------
 3429|    912|    case EOpTextureLod:
  ------------------
  |  Branch (3429:5): [True: 90, False: 28.5k]
  ------------------
 3430|    912|    {
 3431|    912|        if (callNode.getOp() == EOpTexture && fnCandidate.getParamCount() > 2)
  ------------------
  |  Branch (3431:13): [True: 822, False: 90]
  |  Branch (3431:47): [True: 235, False: 587]
  ------------------
 3432|    235|            requireDerivativeLayout(loc, (fnCandidate.getName() + " with bias argument").c_str(), false);
 3433|       |
 3434|    912|        if ((fnCandidate.getParamCount() > 2) && ((*argp)[1]->getAsTyped()->getType().getBasicType() == EbtFloat) &&
  ------------------
  |  Branch (3434:13): [True: 325, False: 587]
  |  Branch (3434:50): [True: 289, False: 36]
  ------------------
 3435|    289|            ((*argp)[1]->getAsTyped()->getType().getVectorSize() == 4) && fnCandidate[0].type->getSampler().shadow) {
  ------------------
  |  Branch (3435:13): [True: 196, False: 93]
  |  Branch (3435:75): [True: 12, False: 184]
  ------------------
 3436|     12|            featureString = fnCandidate.getName();
 3437|     12|            if (callNode.getOp() == EOpTexture)
  ------------------
  |  Branch (3437:17): [True: 12, False: 0]
  ------------------
 3438|     12|                featureString += "(..., float bias)";
 3439|      0|            else
 3440|      0|                featureString += "(..., float lod)";
 3441|     12|            feature = featureString.c_str();
 3442|       |
 3443|     12|            if ((fnCandidate[0].type->getSampler().dim == Esd2D && fnCandidate[0].type->getSampler().arrayed) || //2D Array Shadow
  ------------------
  |  Branch (3443:18): [True: 0, False: 12]
  |  Branch (3443:68): [True: 0, False: 0]
  ------------------
 3444|     12|                (fnCandidate[0].type->getSampler().dim == EsdCube && fnCandidate[0].type->getSampler().arrayed && fnCandidate.getParamCount() > 3) || // Cube Array Shadow
  ------------------
  |  Branch (3444:18): [True: 12, False: 0]
  |  Branch (3444:70): [True: 12, False: 0]
  |  Branch (3444:115): [True: 0, False: 12]
  ------------------
 3445|     12|                (fnCandidate[0].type->getSampler().dim == EsdCube && callNode.getOp() == EOpTextureLod)) { // Cube Shadow
  ------------------
  |  Branch (3445:18): [True: 12, False: 0]
  |  Branch (3445:70): [True: 0, False: 12]
  ------------------
 3446|      0|                requireExtensions(loc, 1, &E_GL_EXT_texture_shadow_lod, feature);
 3447|      0|                if (isEsProfile()) {
  ------------------
  |  Branch (3447:21): [True: 0, False: 0]
  ------------------
 3448|      0|                    if (version < 320 &&
  ------------------
  |  Branch (3448:25): [True: 0, False: 0]
  ------------------
 3449|      0|                        !extensionsTurnedOn(Num_AEP_texture_cube_map_array, AEP_texture_cube_map_array))
  ------------------
  |  Branch (3449:25): [True: 0, False: 0]
  ------------------
 3450|      0|                        error(loc, "GL_EXT_texture_shadow_lod not supported for this ES version", feature, "");
 3451|      0|                    else
 3452|      0|                        profileRequires(loc, EEsProfile, 320, nullptr, feature);
 3453|      0|                } else { // Desktop
 3454|      0|                    profileRequires(loc, ~EEsProfile, 130, nullptr, feature);
 3455|      0|                }
 3456|      0|            }
 3457|     12|        }
 3458|    912|        break;
 3459|    822|    }
 3460|       |
 3461|     71|    case EOpTextureProj:
  ------------------
  |  Branch (3461:5): [True: 71, False: 28.5k]
  ------------------
 3462|    124|    case EOpSparseTexture:
  ------------------
  |  Branch (3462:5): [True: 53, False: 28.5k]
  ------------------
 3463|    215|    case EOpTextureQueryLod:
  ------------------
  |  Branch (3463:5): [True: 91, False: 28.5k]
  ------------------
 3464|    215|        requireDerivativeLayout(loc, fnCandidate.getName().c_str(), false);
 3465|    215|        break;
 3466|       |
 3467|     37|    case EOpSparseTextureGather:
  ------------------
  |  Branch (3467:5): [True: 37, False: 28.6k]
  ------------------
 3468|     55|    case EOpSparseTextureGatherOffset:
  ------------------
  |  Branch (3468:5): [True: 18, False: 28.6k]
  ------------------
 3469|     73|    case EOpSparseTextureGatherOffsets:
  ------------------
  |  Branch (3469:5): [True: 18, False: 28.6k]
  ------------------
 3470|     73|    {
 3471|     73|        bool bias = false;
 3472|     73|        if (callNode.getOp() == EOpSparseTextureGather)
  ------------------
  |  Branch (3472:13): [True: 37, False: 36]
  ------------------
 3473|     37|            bias = fnCandidate.getParamCount() > 4;
 3474|     36|        else if (callNode.getOp() == EOpSparseTextureGatherOffset ||
  ------------------
  |  Branch (3474:18): [True: 18, False: 18]
  ------------------
 3475|     18|                 callNode.getOp() == EOpSparseTextureGatherOffsets)
  ------------------
  |  Branch (3475:18): [True: 18, False: 0]
  ------------------
 3476|     36|            bias = fnCandidate.getParamCount() > 5;
 3477|       |
 3478|     73|        if (bias) {
  ------------------
  |  Branch (3478:13): [True: 8, False: 65]
  ------------------
 3479|      8|            featureString = fnCandidate.getName();
 3480|      8|            featureString += "with bias argument";
 3481|      8|            feature = featureString.c_str();
 3482|      8|            profileRequires(loc, ~EEsProfile, 450, nullptr, feature);
 3483|      8|            requireExtensions(loc, 1, &E_GL_AMD_texture_gather_bias_lod, feature);
 3484|      8|        }
 3485|       |        // As per GL_ARB_sparse_texture2 extension "Offsets" parameter must be constant integral expression
 3486|       |        // for sparseTextureGatherOffsetsARB just as textureGatherOffsets
 3487|     73|        if (callNode.getOp() == EOpSparseTextureGatherOffsets) {
  ------------------
  |  Branch (3487:13): [True: 18, False: 55]
  ------------------
 3488|     18|            int offsetsArg = arg0->getType().getSampler().shadow ? 3 : 2;
  ------------------
  |  Branch (3488:30): [True: 8, False: 10]
  ------------------
 3489|     18|            if (!(*argp)[offsetsArg]->getAsConstantUnion())
  ------------------
  |  Branch (3489:17): [True: 0, False: 18]
  ------------------
 3490|      0|                error(loc, "argument must be compile-time constant", "offsets", "");
 3491|     18|        }
 3492|     73|        break;
 3493|     55|    }
 3494|       |
 3495|     16|    case EOpSparseTextureGatherLod:
  ------------------
  |  Branch (3495:5): [True: 16, False: 28.6k]
  ------------------
 3496|     24|    case EOpSparseTextureGatherLodOffset:
  ------------------
  |  Branch (3496:5): [True: 8, False: 28.6k]
  ------------------
 3497|     32|    case EOpSparseTextureGatherLodOffsets:
  ------------------
  |  Branch (3497:5): [True: 8, False: 28.6k]
  ------------------
 3498|     32|    {
 3499|     32|        requireExtensions(loc, 1, &E_GL_ARB_sparse_texture2, fnCandidate.getName().c_str());
 3500|     32|        break;
 3501|     24|    }
 3502|       |
 3503|      0|    case EOpSwizzleInvocations:
  ------------------
  |  Branch (3503:5): [True: 0, False: 28.6k]
  ------------------
 3504|      0|    {
 3505|      0|        if (! (*argp)[1]->getAsConstantUnion())
  ------------------
  |  Branch (3505:13): [True: 0, False: 0]
  ------------------
 3506|      0|            error(loc, "argument must be compile-time constant", "offset", "");
 3507|      0|        else {
 3508|      0|            unsigned offset[4] = {};
 3509|      0|            offset[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst();
 3510|      0|            offset[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst();
 3511|      0|            offset[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst();
 3512|      0|            offset[3] = (*argp)[1]->getAsConstantUnion()->getConstArray()[3].getUConst();
 3513|      0|            if (offset[0] > 3 || offset[1] > 3 || offset[2] > 3 || offset[3] > 3)
  ------------------
  |  Branch (3513:17): [True: 0, False: 0]
  |  Branch (3513:34): [True: 0, False: 0]
  |  Branch (3513:51): [True: 0, False: 0]
  |  Branch (3513:68): [True: 0, False: 0]
  ------------------
 3514|      0|                error(loc, "components must be in the range [0, 3]", "offset", "");
 3515|      0|        }
 3516|       |
 3517|      0|        break;
 3518|     24|    }
 3519|       |
 3520|      0|    case EOpSwizzleInvocationsMasked:
  ------------------
  |  Branch (3520:5): [True: 0, False: 28.6k]
  ------------------
 3521|      0|    {
 3522|      0|        if (! (*argp)[1]->getAsConstantUnion())
  ------------------
  |  Branch (3522:13): [True: 0, False: 0]
  ------------------
 3523|      0|            error(loc, "argument must be compile-time constant", "mask", "");
 3524|      0|        else {
 3525|      0|            unsigned mask[3] = {};
 3526|      0|            mask[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst();
 3527|      0|            mask[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst();
 3528|      0|            mask[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst();
 3529|      0|            if (mask[0] > 31 || mask[1] > 31 || mask[2] > 31)
  ------------------
  |  Branch (3529:17): [True: 0, False: 0]
  |  Branch (3529:33): [True: 0, False: 0]
  |  Branch (3529:49): [True: 0, False: 0]
  ------------------
 3530|      0|                error(loc, "components must be in the range [0, 31]", "mask", "");
 3531|      0|        }
 3532|       |
 3533|      0|        break;
 3534|     24|    }
 3535|       |
 3536|    864|    case EOpTextureOffset:
  ------------------
  |  Branch (3536:5): [True: 864, False: 27.7k]
  ------------------
 3537|  1.44k|    case EOpTextureFetchOffset:
  ------------------
  |  Branch (3537:5): [True: 577, False: 28.0k]
  ------------------
 3538|  2.02k|    case EOpTextureProjOffset:
  ------------------
  |  Branch (3538:5): [True: 581, False: 28.0k]
  ------------------
 3539|  2.54k|    case EOpTextureLodOffset:
  ------------------
  |  Branch (3539:5): [True: 519, False: 28.1k]
  ------------------
 3540|  2.89k|    case EOpTextureProjLodOffset:
  ------------------
  |  Branch (3540:5): [True: 352, False: 28.2k]
  ------------------
 3541|  2.94k|    case EOpTextureGradOffset:
  ------------------
  |  Branch (3541:5): [True: 56, False: 28.5k]
  ------------------
 3542|  3.37k|    case EOpTextureProjGradOffset:
  ------------------
  |  Branch (3542:5): [True: 429, False: 28.2k]
  ------------------
 3543|  3.40k|    case EOpSparseTextureOffset:
  ------------------
  |  Branch (3543:5): [True: 24, False: 28.6k]
  ------------------
 3544|  3.41k|    case EOpSparseTextureFetchOffset:
  ------------------
  |  Branch (3544:5): [True: 11, False: 28.6k]
  ------------------
 3545|  3.43k|    case EOpSparseTextureLodOffset:
  ------------------
  |  Branch (3545:5): [True: 22, False: 28.6k]
  ------------------
 3546|  3.45k|    case EOpSparseTextureGradOffset:
  ------------------
  |  Branch (3546:5): [True: 24, False: 28.6k]
  ------------------
 3547|  3.45k|    {
 3548|  3.45k|        if (callNode.getOp() == EOpTextureOffset || callNode.getOp() == EOpTextureProjOffset ||
  ------------------
  |  Branch (3548:13): [True: 864, False: 2.59k]
  |  Branch (3548:53): [True: 581, False: 2.01k]
  ------------------
 3549|  2.01k|            callNode.getOp() == EOpSparseTextureOffset)
  ------------------
  |  Branch (3549:13): [True: 24, False: 1.99k]
  ------------------
 3550|  1.46k|            requireDerivativeLayout(loc, fnCandidate.getName().c_str(), false);
 3551|       |
 3552|       |        // Handle texture-offset limits checking
 3553|       |        // Pick which argument has to hold constant offsets
 3554|  3.45k|        int arg = -1;
 3555|  3.45k|        switch (callNode.getOp()) {
 3556|     24|        case EOpSparseTextureOffset:
  ------------------
  |  Branch (3556:9): [True: 24, False: 3.43k]
  ------------------
 3557|    888|        case EOpTextureOffset:
  ------------------
  |  Branch (3557:9): [True: 864, False: 2.59k]
  ------------------
 3558|  1.46k|        case EOpTextureProjOffset:
  ------------------
  |  Branch (3558:9): [True: 581, False: 2.87k]
  ------------------
 3559|  1.46k|            arg = 2;
 3560|  1.46k|            break;
 3561|     22|        case EOpSparseTextureLodOffset:
  ------------------
  |  Branch (3561:9): [True: 22, False: 3.43k]
  ------------------
 3562|    541|        case EOpTextureLodOffset:
  ------------------
  |  Branch (3562:9): [True: 519, False: 2.94k]
  ------------------
 3563|    893|        case EOpTextureProjLodOffset:
  ------------------
  |  Branch (3563:9): [True: 352, False: 3.10k]
  ------------------
 3564|    893|            arg = 3;
 3565|    893|            break;
 3566|     24|        case EOpSparseTextureGradOffset:
  ------------------
  |  Branch (3566:9): [True: 24, False: 3.43k]
  ------------------
 3567|     80|        case EOpTextureGradOffset:
  ------------------
  |  Branch (3567:9): [True: 56, False: 3.40k]
  ------------------
 3568|    509|        case EOpTextureProjGradOffset:
  ------------------
  |  Branch (3568:9): [True: 429, False: 3.03k]
  ------------------
 3569|    509|            arg = 4;
 3570|    509|            break;
 3571|     11|        case EOpSparseTextureFetchOffset:
  ------------------
  |  Branch (3571:9): [True: 11, False: 3.44k]
  ------------------
 3572|    588|        case EOpTextureFetchOffset:
  ------------------
  |  Branch (3572:9): [True: 577, False: 2.88k]
  ------------------
 3573|    588|            arg = (arg0->getType().getSampler().isRect()) ? 2 : 3;
  ------------------
  |  Branch (3573:19): [True: 0, False: 588]
  ------------------
 3574|    588|            break;
 3575|      0|        default:
  ------------------
  |  Branch (3575:9): [True: 0, False: 3.45k]
  ------------------
 3576|      0|            assert(0);
 3577|      0|            break;
 3578|  3.45k|        }
 3579|       |
 3580|  3.45k|        if (arg > 0) {
  ------------------
  |  Branch (3580:13): [True: 3.45k, False: 0]
  ------------------
 3581|       |
 3582|  3.45k|            bool f16ShadowCompare = (*argp)[1]->getAsTyped()->getBasicType() == EbtFloat16 &&
  ------------------
  |  Branch (3582:37): [True: 61, False: 3.39k]
  ------------------
 3583|     61|                                    arg0->getType().getSampler().shadow;
  ------------------
  |  Branch (3583:37): [True: 22, False: 39]
  ------------------
 3584|  3.45k|            if (f16ShadowCompare)
  ------------------
  |  Branch (3584:17): [True: 22, False: 3.43k]
  ------------------
 3585|     22|                ++arg;
 3586|       |            // Allow non-constant offsets for certain texture ops
 3587|  3.45k|            bool variableOffsetSupport = extensionTurnedOn(E_GL_NV_gpu_shader5) &&
  ------------------
  |  Branch (3587:42): [True: 2.65k, False: 801]
  ------------------
 3588|  2.65k|                (callNode.getOp() == EOpTextureOffset ||
  ------------------
  |  Branch (3588:18): [True: 796, False: 1.86k]
  ------------------
 3589|  1.86k|                 callNode.getOp() == EOpTextureFetchOffset ||
  ------------------
  |  Branch (3589:18): [True: 549, False: 1.31k]
  ------------------
 3590|  1.31k|                 callNode.getOp() == EOpTextureProjOffset ||
  ------------------
  |  Branch (3590:18): [True: 533, False: 780]
  ------------------
 3591|    780|                 callNode.getOp() == EOpTextureLodOffset ||
  ------------------
  |  Branch (3591:18): [True: 471, False: 309]
  ------------------
 3592|    309|                 callNode.getOp() == EOpTextureProjLodOffset);
  ------------------
  |  Branch (3592:18): [True: 309, False: 0]
  ------------------
 3593|  3.45k|            if (! (*argp)[arg]->getAsTyped()->getQualifier().isConstant()) {
  ------------------
  |  Branch (3593:17): [True: 2.82k, False: 638]
  ------------------
 3594|  2.82k|				if (!extensionTurnedOn(E_GL_EXT_texture_offset_non_const) && !variableOffsetSupport)
  ------------------
  |  Branch (3594:9): [True: 2.82k, False: 0]
  |  Branch (3594:66): [True: 163, False: 2.65k]
  ------------------
 3595|    163|                    error(loc, "argument must be compile-time constant", "texel offset", "");
 3596|  2.82k|            }
 3597|    638|            else if ((*argp)[arg]->getAsConstantUnion()) {
  ------------------
  |  Branch (3597:22): [True: 638, False: 0]
  ------------------
 3598|    638|                const TType& type = (*argp)[arg]->getAsTyped()->getType();
 3599|  1.85k|                for (int c = 0; c < type.getVectorSize(); ++c) {
  ------------------
  |  Branch (3599:33): [True: 1.21k, False: 638]
  ------------------
 3600|  1.21k|                    int offset = (*argp)[arg]->getAsConstantUnion()->getConstArray()[c].getIConst();
 3601|  1.21k|                    if (offset > resources.maxProgramTexelOffset || offset < resources.minProgramTexelOffset)
  ------------------
  |  Branch (3601:25): [True: 291, False: 924]
  |  Branch (3601:69): [True: 101, False: 823]
  ------------------
 3602|    392|                        error(loc, "value is out of range:", "texel offset",
 3603|    392|                              "[gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]");
 3604|  1.21k|                }
 3605|    638|            }
 3606|       |
 3607|       |            // This check does not apply to sparse because
 3608|       |            // GL_ARB_sparse_texture2 always includes this function.
 3609|  3.45k|            if (callNode.getOp() == EOpTextureOffset) {
  ------------------
  |  Branch (3609:17): [True: 864, False: 2.59k]
  ------------------
 3610|    864|                TSampler s = arg0->getType().getSampler();
 3611|    864|                if (s.is2D() && s.isArrayed() && s.isShadow()) {
  ------------------
  |  Branch (3611:21): [True: 347, False: 517]
  |  Branch (3611:33): [True: 135, False: 212]
  |  Branch (3611:50): [True: 5, False: 130]
  ------------------
 3612|      5|                    if (
 3613|      5|                        ((*argp)[1]->getAsTyped()->getType().getBasicType() == EbtFloat) &&
  ------------------
  |  Branch (3613:25): [True: 4, False: 1]
  ------------------
 3614|      4|                        ((*argp)[1]->getAsTyped()->getType().getVectorSize() == 4) &&
  ------------------
  |  Branch (3614:25): [True: 4, False: 0]
  ------------------
 3615|      4|                        (fnCandidate.getParamCount() == 4)) {
  ------------------
  |  Branch (3615:25): [True: 0, False: 4]
  ------------------
 3616|      0|                        featureString = fnCandidate.getName() + " for sampler2DArrayShadow";
 3617|      0|                        feature = featureString.c_str();
 3618|      0|                        requireExtensions(loc, 1, &E_GL_EXT_texture_shadow_lod, feature);
 3619|      0|                        profileRequires(loc, EEsProfile, 300, nullptr, feature);
 3620|      0|                        profileRequires(loc, ~EEsProfile, 130, nullptr, feature);
 3621|      0|                    }
 3622|      5|                    else if (isEsProfile())
  ------------------
  |  Branch (3622:30): [True: 0, False: 5]
  ------------------
 3623|      0|                        error(loc, "TextureOffset does not support sampler2DArrayShadow : ", "sampler", "ES Profile");
 3624|      5|                    else if (version <= 420)
  ------------------
  |  Branch (3624:30): [True: 0, False: 5]
  ------------------
 3625|      0|                        error(loc, "TextureOffset does not support sampler2DArrayShadow : ", "sampler", "version <= 420");
 3626|      5|                }
 3627|    864|            }
 3628|       |
 3629|       |            // This check does not apply to sparse because
 3630|       |            // GL_ARB_sparse_texture2 does not define sparseTextureLodOffsetARB
 3631|       |            // with a sampler2DArrayShadow.
 3632|  3.45k|            if (callNode.getOp() == EOpTextureLodOffset) {
  ------------------
  |  Branch (3632:17): [True: 519, False: 2.94k]
  ------------------
 3633|    519|                TSampler s = arg0->getType().getSampler();
 3634|    519|                if (s.is2D() && s.isArrayed() && s.isShadow() &&
  ------------------
  |  Branch (3634:21): [True: 205, False: 314]
  |  Branch (3634:33): [True: 79, False: 126]
  |  Branch (3634:50): [True: 0, False: 79]
  ------------------
 3635|      0|                    ((*argp)[1]->getAsTyped()->getType().getBasicType() == EbtFloat) &&
  ------------------
  |  Branch (3635:21): [True: 0, False: 0]
  ------------------
 3636|      0|                    ((*argp)[1]->getAsTyped()->getType().getVectorSize() == 4) &&
  ------------------
  |  Branch (3636:21): [True: 0, False: 0]
  ------------------
 3637|      0|                    (fnCandidate.getParamCount() == 4)) {
  ------------------
  |  Branch (3637:21): [True: 0, False: 0]
  ------------------
 3638|      0|                        featureString = fnCandidate.getName() + " for sampler2DArrayShadow";
 3639|      0|                        feature = featureString.c_str();
 3640|      0|                        profileRequires(loc, EEsProfile, 300, nullptr, feature);
 3641|      0|                        profileRequires(loc, ~EEsProfile, 130, nullptr, feature);
 3642|      0|                        requireExtensions(loc, 1, &E_GL_EXT_texture_shadow_lod, feature);
 3643|      0|                }
 3644|    519|            }
 3645|  3.45k|        }
 3646|       |
 3647|  3.45k|        break;
 3648|  3.45k|    }
 3649|       |
 3650|       |
 3651|      0|    case EOpTraceNV:
  ------------------
  |  Branch (3651:5): [True: 0, False: 28.6k]
  ------------------
 3652|      0|        checkConstantArgWithLocation(10, "payload number", nullptr, -1);
 3653|      0|        break;
 3654|      0|    case EOpTraceRayMotionNV:
  ------------------
  |  Branch (3654:5): [True: 0, False: 28.6k]
  ------------------
 3655|      0|        checkConstantArgWithLocation(11, "payload number", "no rayPayloadEXT/rayPayloadInEXT declared", 0);
 3656|      0|        break;
 3657|      0|    case EOpTraceKHR:
  ------------------
  |  Branch (3657:5): [True: 0, False: 28.6k]
  ------------------
 3658|      0|        checkConstantArgWithLocation(10, "payload number", "no rayPayloadEXT/rayPayloadInEXT declared", 0);
 3659|      0|        break;
 3660|      0|    case EOpExecuteCallableNV:
  ------------------
  |  Branch (3660:5): [True: 0, False: 28.6k]
  ------------------
 3661|      0|        checkConstantArgWithLocation(1, "callable data number", nullptr, -1);
 3662|      0|        break;
 3663|      0|    case EOpExecuteCallableKHR:
  ------------------
  |  Branch (3663:5): [True: 0, False: 28.6k]
  ------------------
 3664|      0|        checkConstantArgWithLocation(1, "callable data number", "no callableDataEXT/callableDataInEXT declared", 1);
 3665|      0|        break;
 3666|       |
 3667|      0|    case EOpHitObjectTraceRayNV:
  ------------------
  |  Branch (3667:5): [True: 0, False: 28.6k]
  ------------------
 3668|      0|        checkConstantArgWithLocation(11, "payload number", "no rayPayloadEXT/rayPayloadInEXT declared", 0);
 3669|      0|        break;
 3670|      0|    case EOpHitObjectTraceRayMotionNV:
  ------------------
  |  Branch (3670:5): [True: 0, False: 28.6k]
  ------------------
 3671|      0|        checkConstantArgWithLocation(12, "payload number", "no rayPayloadEXT/rayPayloadInEXT declared", 0);
 3672|      0|        break;
 3673|      0|    case EOpHitObjectExecuteShaderNV:
  ------------------
  |  Branch (3673:5): [True: 0, False: 28.6k]
  ------------------
 3674|      0|        checkConstantArgWithLocation(1, "payload number", "no rayPayloadEXT/rayPayloadInEXT declared", 0);
 3675|      0|        break;
 3676|      0|    case EOpHitObjectRecordHitNV:
  ------------------
  |  Branch (3676:5): [True: 0, False: 28.6k]
  ------------------
 3677|      0|        checkConstantArgWithLocation(12, "hitobjectattribute number", "no hitObjectAttributeNV declared", 2);
 3678|      0|        break;
 3679|      0|    case EOpHitObjectRecordHitMotionNV:
  ------------------
  |  Branch (3679:5): [True: 0, False: 28.6k]
  ------------------
 3680|      0|        checkConstantArgWithLocation(13, "hitobjectattribute number", "no hitObjectAttributeNV declared", 2);
 3681|      0|        break;
 3682|      0|    case EOpHitObjectRecordHitWithIndexNV:
  ------------------
  |  Branch (3682:5): [True: 0, False: 28.6k]
  ------------------
 3683|      0|        checkConstantArgWithLocation(11, "hitobjectattribute number", "no hitObjectAttributeNV declared", 2);
 3684|      0|        break;
 3685|      0|    case EOpHitObjectRecordHitWithIndexMotionNV:
  ------------------
  |  Branch (3685:5): [True: 0, False: 28.6k]
  ------------------
 3686|      0|        checkConstantArgWithLocation(12, "hitobjectattribute number", "no hitObjectAttributeNV declared", 2);
 3687|      0|        break;
 3688|      0|    case EOpHitObjectGetAttributesNV:
  ------------------
  |  Branch (3688:5): [True: 0, False: 28.6k]
  ------------------
 3689|      0|        checkConstantArgWithLocation(1, "hitobjectattribute number", "no hitObjectAttributeNV declared", 2);
 3690|      0|        break;
 3691|       |
 3692|     34|    case EOpRayQueryGetIntersectionType:
  ------------------
  |  Branch (3692:5): [True: 34, False: 28.6k]
  ------------------
 3693|     61|    case EOpRayQueryGetIntersectionT:
  ------------------
  |  Branch (3693:5): [True: 27, False: 28.6k]
  ------------------
 3694|     89|    case EOpRayQueryGetIntersectionInstanceCustomIndex:
  ------------------
  |  Branch (3694:5): [True: 28, False: 28.6k]
  ------------------
 3695|    118|    case EOpRayQueryGetIntersectionInstanceId:
  ------------------
  |  Branch (3695:5): [True: 29, False: 28.6k]
  ------------------
 3696|    135|    case EOpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffset:
  ------------------
  |  Branch (3696:5): [True: 17, False: 28.6k]
  ------------------
 3697|    146|    case EOpRayQueryGetIntersectionGeometryIndex:
  ------------------
  |  Branch (3697:5): [True: 11, False: 28.6k]
  ------------------
 3698|    173|    case EOpRayQueryGetIntersectionPrimitiveIndex:
  ------------------
  |  Branch (3698:5): [True: 27, False: 28.6k]
  ------------------
 3699|    202|    case EOpRayQueryGetIntersectionBarycentrics:
  ------------------
  |  Branch (3699:5): [True: 29, False: 28.6k]
  ------------------
 3700|    233|    case EOpRayQueryGetIntersectionFrontFace:
  ------------------
  |  Branch (3700:5): [True: 31, False: 28.6k]
  ------------------
 3701|    261|    case EOpRayQueryGetIntersectionObjectRayDirection:
  ------------------
  |  Branch (3701:5): [True: 28, False: 28.6k]
  ------------------
 3702|    288|    case EOpRayQueryGetIntersectionObjectRayOrigin:
  ------------------
  |  Branch (3702:5): [True: 27, False: 28.6k]
  ------------------
 3703|    324|    case EOpRayQueryGetIntersectionObjectToWorld:
  ------------------
  |  Branch (3703:5): [True: 36, False: 28.6k]
  ------------------
 3704|    354|    case EOpRayQueryGetIntersectionWorldToObject:
  ------------------
  |  Branch (3704:5): [True: 30, False: 28.6k]
  ------------------
 3705|    354|    case EOpRayQueryGetIntersectionTriangleVertexPositionsEXT:
  ------------------
  |  Branch (3705:5): [True: 0, False: 28.6k]
  ------------------
 3706|    354|    case EOpRayQueryGetIntersectionClusterIdNV:
  ------------------
  |  Branch (3706:5): [True: 0, False: 28.6k]
  ------------------
 3707|    354|    case EOpRayQueryGetIntersectionSpherePositionNV:
  ------------------
  |  Branch (3707:5): [True: 0, False: 28.6k]
  ------------------
 3708|    354|    case EOpRayQueryGetIntersectionSphereRadiusNV:
  ------------------
  |  Branch (3708:5): [True: 0, False: 28.6k]
  ------------------
 3709|    354|    case EOpRayQueryGetIntersectionLSSHitValueNV:
  ------------------
  |  Branch (3709:5): [True: 0, False: 28.6k]
  ------------------
 3710|    354|    case EOpRayQueryGetIntersectionLSSPositionsNV:
  ------------------
  |  Branch (3710:5): [True: 0, False: 28.6k]
  ------------------
 3711|    354|    case EOpRayQueryGetIntersectionLSSRadiiNV:
  ------------------
  |  Branch (3711:5): [True: 0, False: 28.6k]
  ------------------
 3712|    354|        if (!(*argp)[1]->getAsConstantUnion())
  ------------------
  |  Branch (3712:13): [True: 1, False: 353]
  ------------------
 3713|      1|            error(loc, "argument must be compile-time constant", "committed", "");
 3714|    354|        break;
 3715|       |
 3716|     12|    case EOpTextureQuerySamples:
  ------------------
  |  Branch (3716:5): [True: 12, False: 28.6k]
  ------------------
 3717|     18|    case EOpImageQuerySamples:
  ------------------
  |  Branch (3717:5): [True: 6, False: 28.6k]
  ------------------
 3718|       |        // GL_ARB_shader_texture_image_samples
 3719|     18|        profileRequires(loc, ~EEsProfile, 450, E_GL_ARB_shader_texture_image_samples, "textureSamples and imageSamples");
 3720|     18|        break;
 3721|       |
 3722|    639|    case EOpImageAtomicAdd:
  ------------------
  |  Branch (3722:5): [True: 639, False: 28.0k]
  ------------------
 3723|  1.21k|    case EOpImageAtomicMin:
  ------------------
  |  Branch (3723:5): [True: 576, False: 28.0k]
  ------------------
 3724|  1.76k|    case EOpImageAtomicMax:
  ------------------
  |  Branch (3724:5): [True: 546, False: 28.0k]
  ------------------
 3725|  2.06k|    case EOpImageAtomicAnd:
  ------------------
  |  Branch (3725:5): [True: 300, False: 28.3k]
  ------------------
 3726|  2.29k|    case EOpImageAtomicOr:
  ------------------
  |  Branch (3726:5): [True: 229, False: 28.4k]
  ------------------
 3727|  2.59k|    case EOpImageAtomicXor:
  ------------------
  |  Branch (3727:5): [True: 300, False: 28.3k]
  ------------------
 3728|  3.13k|    case EOpImageAtomicExchange:
  ------------------
  |  Branch (3728:5): [True: 547, False: 28.0k]
  ------------------
 3729|  3.42k|    case EOpImageAtomicCompSwap:
  ------------------
  |  Branch (3729:5): [True: 291, False: 28.3k]
  ------------------
 3730|  3.48k|    case EOpImageAtomicLoad:
  ------------------
  |  Branch (3730:5): [True: 53, False: 28.5k]
  ------------------
 3731|  3.53k|    case EOpImageAtomicStore:
  ------------------
  |  Branch (3731:5): [True: 51, False: 28.5k]
  ------------------
 3732|  3.53k|    {
 3733|       |        // Make sure the image types have the correct layout() format and correct argument types
 3734|  3.53k|        const TType& imageType = arg0->getType();
 3735|  3.53k|        if (imageType.getSampler().type == EbtInt || imageType.getSampler().type == EbtUint ||
  ------------------
  |  Branch (3735:13): [True: 761, False: 2.77k]
  |  Branch (3735:54): [True: 759, False: 2.01k]
  ------------------
 3736|  2.54k|            imageType.getSampler().type == EbtInt64 || imageType.getSampler().type == EbtUint64) {
  ------------------
  |  Branch (3736:13): [True: 570, False: 1.44k]
  |  Branch (3736:56): [True: 454, False: 988]
  ------------------
 3737|  2.54k|            if (imageType.getQualifier().getFormat() != ElfR32i && imageType.getQualifier().getFormat() != ElfR32ui &&
  ------------------
  |  Branch (3737:17): [True: 1.83k, False: 711]
  |  Branch (3737:68): [True: 1.11k, False: 717]
  ------------------
 3738|  1.11k|                imageType.getQualifier().getFormat() != ElfR64i && imageType.getQualifier().getFormat() != ElfR64ui)
  ------------------
  |  Branch (3738:17): [True: 556, False: 560]
  |  Branch (3738:68): [True: 112, False: 444]
  ------------------
 3739|    112|                error(loc, "only supported on image with format r32i or r32ui", fnCandidate.getName().c_str(), "");
 3740|  2.54k|            if (callNode.getType().getBasicType() == EbtInt64 && imageType.getQualifier().getFormat() != ElfR64i)
  ------------------
  |  Branch (3740:17): [True: 538, False: 2.00k]
  |  Branch (3740:66): [True: 10, False: 528]
  ------------------
 3741|     10|                error(loc, "only supported on image with format r64i", fnCandidate.getName().c_str(), "");
 3742|  2.53k|            else if (callNode.getType().getBasicType() == EbtUint64 && imageType.getQualifier().getFormat() != ElfR64ui)
  ------------------
  |  Branch (3742:22): [True: 435, False: 2.09k]
  |  Branch (3742:72): [True: 10, False: 425]
  ------------------
 3743|     10|                error(loc, "only supported on image with format r64ui", fnCandidate.getName().c_str(), "");
 3744|  2.54k|        } else if(callNode.getType().getBasicType() == EbtFloat16 &&
  ------------------
  |  Branch (3744:19): [True: 841, False: 147]
  ------------------
 3745|    841|                ((callNode.getType().getVectorSize() == 2 && arg0->getType().getQualifier().getFormat() == ElfRg16f) ||
  ------------------
  |  Branch (3745:19): [True: 681, False: 160]
  |  Branch (3745:62): [True: 653, False: 28]
  ------------------
 3746|    784|                  (callNode.getType().getVectorSize() == 4 && arg0->getType().getQualifier().getFormat() == ElfRgba16f))) {
  ------------------
  |  Branch (3746:20): [True: 160, False: 28]
  |  Branch (3746:63): [True: 131, False: 29]
  ------------------
 3747|    784|            if (StartsWith(fnCandidate.getName(), "imageAtomicAdd") ||
  ------------------
  |  Branch (3747:17): [True: 281, False: 503]
  ------------------
 3748|    503|                StartsWith(fnCandidate.getName(), "imageAtomicExchange") ||
  ------------------
  |  Branch (3748:17): [True: 119, False: 384]
  ------------------
 3749|    384|                StartsWith(fnCandidate.getName(), "imageAtomicMin") ||
  ------------------
  |  Branch (3749:17): [True: 238, False: 146]
  ------------------
 3750|    784|                StartsWith(fnCandidate.getName(), "imageAtomicMax")) {
  ------------------
  |  Branch (3750:17): [True: 146, False: 0]
  ------------------
 3751|    784|                requireExtensions(loc, 1, &E_GL_NV_shader_atomic_fp16_vector, fnCandidate.getName().c_str());
 3752|    784|            } else {
 3753|      0|                error(loc, "f16vec2/4 operation not supported on: ", fnCandidate.getName().c_str(), "");
 3754|      0|            }
 3755|    784|        } else if (imageType.getSampler().type == EbtFloat) {
  ------------------
  |  Branch (3755:20): [True: 204, False: 0]
  ------------------
 3756|    204|            if (StartsWith(fnCandidate.getName(), "imageAtomicExchange")) {
  ------------------
  |  Branch (3756:17): [True: 132, False: 72]
  ------------------
 3757|       |                // imageAtomicExchange doesn't require an extension
 3758|    132|            } else if (StartsWith(fnCandidate.getName(), "imageAtomicAdd") ||
  ------------------
  |  Branch (3758:24): [True: 39, False: 33]
  ------------------
 3759|     33|                       StartsWith(fnCandidate.getName(), "imageAtomicLoad") ||
  ------------------
  |  Branch (3759:24): [True: 0, False: 33]
  ------------------
 3760|     39|                       StartsWith(fnCandidate.getName(), "imageAtomicStore")) {
  ------------------
  |  Branch (3760:24): [True: 0, False: 33]
  ------------------
 3761|     39|                requireExtensions(loc, 1, &E_GL_EXT_shader_atomic_float, fnCandidate.getName().c_str());
 3762|     39|            } else if (StartsWith(fnCandidate.getName(), "imageAtomicMin") ||
  ------------------
  |  Branch (3762:24): [True: 24, False: 9]
  ------------------
 3763|     33|                       StartsWith(fnCandidate.getName(), "imageAtomicMax")) {
  ------------------
  |  Branch (3763:24): [True: 9, False: 0]
  ------------------
 3764|     33|                requireExtensions(loc, 1, &E_GL_EXT_shader_atomic_float2, fnCandidate.getName().c_str());
 3765|     33|            } else {
 3766|      0|                error(loc, "only supported on integer images", fnCandidate.getName().c_str(), "");
 3767|      0|            }
 3768|    204|            if (imageType.getQualifier().getFormat() != ElfR32f && isEsProfile())
  ------------------
  |  Branch (3768:17): [True: 119, False: 85]
  |  Branch (3768:68): [True: 42, False: 77]
  ------------------
 3769|     42|                error(loc, "only supported on image with format r32f", fnCandidate.getName().c_str(), "");
 3770|    204|        } else {
 3771|      0|            error(loc, "not supported on this image type", fnCandidate.getName().c_str(), "");
 3772|      0|        }
 3773|       |
 3774|  3.53k|        const size_t maxArgs = imageType.getSampler().isMultiSample() ? 5 : 4;
  ------------------
  |  Branch (3774:32): [True: 145, False: 3.38k]
  ------------------
 3775|  3.53k|        if (argp->size() > maxArgs) {
  ------------------
  |  Branch (3775:13): [True: 520, False: 3.01k]
  ------------------
 3776|    520|            requireExtensions(loc, 1, &E_GL_KHR_memory_scope_semantics, fnCandidate.getName().c_str());
 3777|    520|            memorySemanticsCheck(loc, fnCandidate, callNode);
 3778|    520|        }
 3779|       |
 3780|  3.53k|        break;
 3781|  3.48k|    }
 3782|       |
 3783|     96|    case EOpAtomicAdd:
  ------------------
  |  Branch (3783:5): [True: 96, False: 28.5k]
  ------------------
 3784|     96|    case EOpAtomicSubtract:
  ------------------
  |  Branch (3784:5): [True: 0, False: 28.6k]
  ------------------
 3785|    177|    case EOpAtomicMin:
  ------------------
  |  Branch (3785:5): [True: 81, False: 28.5k]
  ------------------
 3786|    255|    case EOpAtomicMax:
  ------------------
  |  Branch (3786:5): [True: 78, False: 28.5k]
  ------------------
 3787|    266|    case EOpAtomicAnd:
  ------------------
  |  Branch (3787:5): [True: 11, False: 28.6k]
  ------------------
 3788|    266|    case EOpAtomicOr:
  ------------------
  |  Branch (3788:5): [True: 0, False: 28.6k]
  ------------------
 3789|    266|    case EOpAtomicXor:
  ------------------
  |  Branch (3789:5): [True: 0, False: 28.6k]
  ------------------
 3790|    357|    case EOpAtomicExchange:
  ------------------
  |  Branch (3790:5): [True: 91, False: 28.5k]
  ------------------
 3791|    370|    case EOpAtomicCompSwap:
  ------------------
  |  Branch (3791:5): [True: 13, False: 28.6k]
  ------------------
 3792|    370|    case EOpAtomicLoad:
  ------------------
  |  Branch (3792:5): [True: 0, False: 28.6k]
  ------------------
 3793|    370|    case EOpAtomicStore:
  ------------------
  |  Branch (3793:5): [True: 0, False: 28.6k]
  ------------------
 3794|    370|    {
 3795|    370|        if (argp->size() > 3) {
  ------------------
  |  Branch (3795:13): [True: 0, False: 370]
  ------------------
 3796|      0|            requireExtensions(loc, 1, &E_GL_KHR_memory_scope_semantics, fnCandidate.getName().c_str());
 3797|      0|            memorySemanticsCheck(loc, fnCandidate, callNode);
 3798|      0|            if ((callNode.getOp() == EOpAtomicAdd || callNode.getOp() == EOpAtomicExchange ||
  ------------------
  |  Branch (3798:18): [True: 0, False: 0]
  |  Branch (3798:54): [True: 0, False: 0]
  ------------------
 3799|      0|                callNode.getOp() == EOpAtomicLoad || callNode.getOp() == EOpAtomicStore) &&
  ------------------
  |  Branch (3799:17): [True: 0, False: 0]
  |  Branch (3799:54): [True: 0, False: 0]
  ------------------
 3800|      0|                (arg0->getType().getBasicType() == EbtFloat ||
  ------------------
  |  Branch (3800:18): [True: 0, False: 0]
  ------------------
 3801|      0|                 arg0->getType().getBasicType() == EbtDouble)) {
  ------------------
  |  Branch (3801:18): [True: 0, False: 0]
  ------------------
 3802|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_atomic_float, fnCandidate.getName().c_str());
 3803|      0|            } else if ((callNode.getOp() == EOpAtomicAdd || callNode.getOp() == EOpAtomicExchange ||
  ------------------
  |  Branch (3803:25): [True: 0, False: 0]
  |  Branch (3803:61): [True: 0, False: 0]
  ------------------
 3804|      0|                        callNode.getOp() == EOpAtomicLoad || callNode.getOp() == EOpAtomicStore ||
  ------------------
  |  Branch (3804:25): [True: 0, False: 0]
  |  Branch (3804:62): [True: 0, False: 0]
  ------------------
 3805|      0|                        callNode.getOp() == EOpAtomicMin || callNode.getOp() == EOpAtomicMax) &&
  ------------------
  |  Branch (3805:25): [True: 0, False: 0]
  |  Branch (3805:61): [True: 0, False: 0]
  ------------------
 3806|      0|                       arg0->getType().isFloatingDomain()) {
  ------------------
  |  Branch (3806:24): [True: 0, False: 0]
  ------------------
 3807|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_atomic_float2, fnCandidate.getName().c_str());
 3808|      0|            }
 3809|    370|        } else if (arg0->getType().getBasicType() == EbtInt64 || arg0->getType().getBasicType() == EbtUint64) {
  ------------------
  |  Branch (3809:20): [True: 0, False: 370]
  |  Branch (3809:66): [True: 0, False: 370]
  ------------------
 3810|      0|            const char* const extensions[2] = { E_GL_NV_shader_atomic_int64,
 3811|      0|                                                E_GL_EXT_shader_atomic_int64 };
 3812|      0|            requireExtensions(loc, 2, extensions, fnCandidate.getName().c_str());
 3813|    370|        } else if ((callNode.getOp() == EOpAtomicAdd || callNode.getOp() == EOpAtomicExchange ||
  ------------------
  |  Branch (3813:21): [True: 96, False: 274]
  |  Branch (3813:57): [True: 91, False: 183]
  ------------------
 3814|    183|                    callNode.getOp() == EOpAtomicMin || callNode.getOp() == EOpAtomicMax) &&
  ------------------
  |  Branch (3814:21): [True: 81, False: 102]
  |  Branch (3814:57): [True: 78, False: 24]
  ------------------
 3815|    346|                   arg0->getType().getBasicType() == EbtFloat16 &&
  ------------------
  |  Branch (3815:20): [True: 319, False: 27]
  ------------------
 3816|    319|                   (arg0->getType().getVectorSize() == 2 || arg0->getType().getVectorSize() == 4 )) {
  ------------------
  |  Branch (3816:21): [True: 164, False: 155]
  |  Branch (3816:61): [True: 155, False: 0]
  ------------------
 3817|    319|            requireExtensions(loc, 1, &E_GL_NV_shader_atomic_fp16_vector, fnCandidate.getName().c_str());
 3818|    319|        } else if ((callNode.getOp() == EOpAtomicAdd || callNode.getOp() == EOpAtomicExchange) &&
  ------------------
  |  Branch (3818:21): [True: 14, False: 37]
  |  Branch (3818:57): [True: 13, False: 24]
  ------------------
 3819|     27|                   (arg0->getType().getBasicType() == EbtFloat ||
  ------------------
  |  Branch (3819:21): [True: 0, False: 27]
  ------------------
 3820|     27|                    arg0->getType().getBasicType() == EbtDouble)) {
  ------------------
  |  Branch (3820:21): [True: 0, False: 27]
  ------------------
 3821|      0|            requireExtensions(loc, 1, &E_GL_EXT_shader_atomic_float, fnCandidate.getName().c_str());
 3822|     51|        } else if ((callNode.getOp() == EOpAtomicAdd || callNode.getOp() == EOpAtomicExchange ||
  ------------------
  |  Branch (3822:21): [True: 14, False: 37]
  |  Branch (3822:57): [True: 13, False: 24]
  ------------------
 3823|     24|                    callNode.getOp() == EOpAtomicLoad || callNode.getOp() == EOpAtomicStore ||
  ------------------
  |  Branch (3823:21): [True: 0, False: 24]
  |  Branch (3823:58): [True: 0, False: 24]
  ------------------
 3824|     24|                    callNode.getOp() == EOpAtomicMin || callNode.getOp() == EOpAtomicMax) &&
  ------------------
  |  Branch (3824:21): [True: 0, False: 24]
  |  Branch (3824:57): [True: 0, False: 24]
  ------------------
 3825|     27|                   arg0->getType().isFloatingDomain()) {
  ------------------
  |  Branch (3825:20): [True: 0, False: 27]
  ------------------
 3826|      0|            requireExtensions(loc, 1, &E_GL_EXT_shader_atomic_float2, fnCandidate.getName().c_str());
 3827|      0|        }
 3828|       |
 3829|    370|        const TIntermTyped* base = TIntermediate::traverseLValueBase(arg0, true, true);
 3830|    370|        const char* errMsg = "Only l-values corresponding to shader block storage or shared variables can be used with "
 3831|    370|                             "atomic memory functions.";
 3832|    370|        if (base) {
  ------------------
  |  Branch (3832:13): [True: 370, False: 0]
  ------------------
 3833|    370|            const TType* refType = (base->getType().isReference()) ? base->getType().getReferentType() : nullptr;
  ------------------
  |  Branch (3833:36): [True: 0, False: 370]
  ------------------
 3834|    370|            const TQualifier& qualifier =
 3835|    370|                (refType != nullptr) ? refType->getQualifier() : base->getType().getQualifier();
  ------------------
  |  Branch (3835:17): [True: 0, False: 370]
  ------------------
 3836|    370|            if (qualifier.storage != EvqShared && qualifier.storage != EvqBuffer &&
  ------------------
  |  Branch (3836:17): [True: 370, False: 0]
  |  Branch (3836:51): [True: 1, False: 369]
  ------------------
 3837|      1|                qualifier.storage != EvqtaskPayloadSharedEXT)
  ------------------
  |  Branch (3837:17): [True: 1, False: 0]
  ------------------
 3838|      1|                error(loc, errMsg, fnCandidate.getName().c_str(), "");
 3839|    370|        } else {
 3840|      0|            error(loc, errMsg, fnCandidate.getName().c_str(), "");
 3841|      0|        }
 3842|       |
 3843|    370|        break;
 3844|    370|    }
 3845|       |
 3846|    418|    case EOpInterpolateAtCentroid:
  ------------------
  |  Branch (3846:5): [True: 418, False: 28.2k]
  ------------------
 3847|    697|    case EOpInterpolateAtSample:
  ------------------
  |  Branch (3847:5): [True: 279, False: 28.3k]
  ------------------
 3848|    966|    case EOpInterpolateAtOffset:
  ------------------
  |  Branch (3848:5): [True: 269, False: 28.3k]
  ------------------
 3849|    966|    case EOpInterpolateAtVertex: {
  ------------------
  |  Branch (3849:5): [True: 0, False: 28.6k]
  ------------------
 3850|    966|        if (arg0->getType().getQualifier().storage != EvqVaryingIn) {
  ------------------
  |  Branch (3850:13): [True: 374, False: 592]
  ------------------
 3851|       |            // Traverse down the left branch of arg0 to ensure this argument is a valid interpolant.
 3852|       |            //
 3853|       |            // For desktop GL >4.3 we effectively only need to ensure that arg0 represents an l-value from an
 3854|       |            // input declaration.
 3855|       |            //
 3856|       |            // For desktop GL <= 4.3 and ES, we must also ensure that swizzling is not used
 3857|       |            //
 3858|       |            // For ES, we must also ensure that a field selection operator (i.e., '.') is not used on a named
 3859|       |            // struct.
 3860|       |
 3861|    374|            const bool esProfile = isEsProfile();
 3862|    374|            const bool swizzleOkay = !esProfile && (version >= 440);
  ------------------
  |  Branch (3862:38): [True: 45, False: 329]
  |  Branch (3862:52): [True: 27, False: 18]
  ------------------
 3863|       |
 3864|    374|            std::string interpolantErrorMsg = "first argument must be an interpolant, or interpolant-array element";
 3865|    374|            bool isValid = true; // Assume that the interpolant is valid until we find a condition making it invalid
 3866|    374|            bool isIn = false;   // Checks whether or not the interpolant is a shader input
 3867|    374|            bool structAccessOp = false; // Whether or not the previous node in the chain is a struct accessor
 3868|    374|            TIntermediate::traverseLValueBase(
 3869|    374|                arg0, swizzleOkay, false,
 3870|    374|                [&isValid, &isIn, &interpolantErrorMsg, esProfile, &structAccessOp](const TIntermNode& n) -> bool {
 3871|    374|                    auto* type = n.getAsTyped();
 3872|    374|                    if (type) {
 3873|    374|                        if (type->getType().getQualifier().storage == EvqVaryingIn) {
 3874|    374|                            isIn = true;
 3875|    374|                        }
 3876|       |                        // If a field accessor was used, it can only be used to access a field with an input block, not a struct.
 3877|    374|                        if (structAccessOp && (type->getType().getBasicType() != EbtBlock)) {
 3878|    374|                            interpolantErrorMsg +=
 3879|    374|                                ". Using the field of a named struct as an interpolant argument is not "
 3880|    374|                                "allowed (ES-only).";
 3881|    374|                            isValid = false;
 3882|    374|                        }
 3883|    374|                    }
 3884|       |
 3885|       |                    // ES has different requirements for interpolants than GL
 3886|    374|                    if (esProfile) {
 3887|       |                        // Swizzling will be taken care of by the 'swizzleOkay' argument passsed to traverseLValueBase,
 3888|       |                        // so we only ned to check whether or not a field accessor has been used with a named struct.
 3889|    374|                        auto* binary = n.getAsBinaryNode();
 3890|    374|                        if (binary && (binary->getOp() == EOpIndexDirectStruct)) {
 3891|    374|                            structAccessOp = true;
 3892|    374|                        }
 3893|    374|                    }
 3894|       |                    // Don't continue traversing if we know we have an invalid interpolant at this point.
 3895|    374|                    return isValid;
 3896|    374|                });
 3897|    374|            if (!isIn || !isValid) {
  ------------------
  |  Branch (3897:17): [True: 235, False: 139]
  |  Branch (3897:26): [True: 1, False: 138]
  ------------------
 3898|    236|                error(loc, interpolantErrorMsg.c_str(), fnCandidate.getName().c_str(), "");
 3899|    236|            }
 3900|    374|        }
 3901|       |
 3902|    966|        if (callNode.getOp() == EOpInterpolateAtVertex) {
  ------------------
  |  Branch (3902:13): [True: 0, False: 966]
  ------------------
 3903|      0|            if (!arg0->getType().getQualifier().isExplicitInterpolation())
  ------------------
  |  Branch (3903:17): [True: 0, False: 0]
  ------------------
 3904|      0|                error(loc, "argument must be qualified as __explicitInterpAMD in", "interpolant", "");
 3905|      0|            else {
 3906|      0|                if (! (*argp)[1]->getAsConstantUnion())
  ------------------
  |  Branch (3906:21): [True: 0, False: 0]
  ------------------
 3907|      0|                    error(loc, "argument must be compile-time constant", "vertex index", "");
 3908|      0|                else {
 3909|      0|                    unsigned vertexIdx = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst();
 3910|      0|                    if (vertexIdx > 2)
  ------------------
  |  Branch (3910:25): [True: 0, False: 0]
  ------------------
 3911|      0|                        error(loc, "must be in the range [0, 2]", "vertex index", "");
 3912|      0|                }
 3913|      0|            }
 3914|      0|        }
 3915|    966|    } break;
 3916|       |
 3917|      0|    case EOpEmitStreamVertex:
  ------------------
  |  Branch (3917:5): [True: 0, False: 28.6k]
  ------------------
 3918|      0|    case EOpEndStreamPrimitive:
  ------------------
  |  Branch (3918:5): [True: 0, False: 28.6k]
  ------------------
 3919|      0|        if (version == 150)
  ------------------
  |  Branch (3919:13): [True: 0, False: 0]
  ------------------
 3920|      0|            requireExtensions(loc, Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5, "if the verison is 150 , the EmitStreamVertex and EndStreamPrimitive only support at extension GL_ARB_gpu_shader5/GL_NV_gpu_shader5");
 3921|      0|        intermediate.setMultiStream();
 3922|      0|        break;
 3923|       |
 3924|     67|    case EOpSubgroupClusteredAdd:
  ------------------
  |  Branch (3924:5): [True: 67, False: 28.5k]
  ------------------
 3925|    134|    case EOpSubgroupClusteredMul:
  ------------------
  |  Branch (3925:5): [True: 67, False: 28.5k]
  ------------------
 3926|    204|    case EOpSubgroupClusteredMin:
  ------------------
  |  Branch (3926:5): [True: 70, False: 28.5k]
  ------------------
 3927|    269|    case EOpSubgroupClusteredMax:
  ------------------
  |  Branch (3927:5): [True: 65, False: 28.5k]
  ------------------
 3928|    308|    case EOpSubgroupClusteredAnd:
  ------------------
  |  Branch (3928:5): [True: 39, False: 28.6k]
  ------------------
 3929|    345|    case EOpSubgroupClusteredOr:
  ------------------
  |  Branch (3929:5): [True: 37, False: 28.6k]
  ------------------
 3930|    380|    case EOpSubgroupClusteredXor:
  ------------------
  |  Branch (3930:5): [True: 35, False: 28.6k]
  ------------------
 3931|       |        // The <clusterSize> as used in the subgroupClustered<op>() operations must be:
 3932|       |        // - An integral constant expression.
 3933|       |        // - At least 1.
 3934|       |        // - A power of 2.
 3935|    380|        if ((*argp)[1]->getAsConstantUnion() == nullptr)
  ------------------
  |  Branch (3935:13): [True: 0, False: 380]
  ------------------
 3936|      0|            error(loc, "argument must be compile-time constant", "cluster size", "");
 3937|    380|        else {
 3938|    380|            int size = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getIConst();
 3939|    380|            if (size < 1)
  ------------------
  |  Branch (3939:17): [True: 0, False: 380]
  ------------------
 3940|      0|                error(loc, "argument must be at least 1", "cluster size", "");
 3941|    380|            else if (!IsPow2(size))
  ------------------
  |  Branch (3941:22): [True: 0, False: 380]
  ------------------
 3942|      0|                error(loc, "argument must be a power of 2", "cluster size", "");
 3943|    380|        }
 3944|    380|        break;
 3945|       |
 3946|    105|    case EOpSubgroupBroadcast:
  ------------------
  |  Branch (3946:5): [True: 105, False: 28.5k]
  ------------------
 3947|    179|    case EOpSubgroupQuadBroadcast:
  ------------------
  |  Branch (3947:5): [True: 74, False: 28.5k]
  ------------------
 3948|    179|        if (spvVersion.spv < EShTargetSpv_1_5) {
  ------------------
  |  Branch (3948:13): [True: 179, False: 0]
  ------------------
 3949|       |            // <id> must be an integral constant expression.
 3950|    179|            if ((*argp)[1]->getAsConstantUnion() == nullptr)
  ------------------
  |  Branch (3950:17): [True: 52, False: 127]
  ------------------
 3951|     52|                error(loc, "argument must be compile-time constant", "id", "");
 3952|    179|        }
 3953|    179|        break;
 3954|       |
 3955|      0|    case EOpBarrier:
  ------------------
  |  Branch (3955:5): [True: 0, False: 28.6k]
  ------------------
 3956|      0|    case EOpControlBarrierArriveEXT:
  ------------------
  |  Branch (3956:5): [True: 0, False: 28.6k]
  ------------------
 3957|      0|    case EOpControlBarrierWaitEXT:
  ------------------
  |  Branch (3957:5): [True: 0, False: 28.6k]
  ------------------
 3958|      0|    case EOpMemoryBarrier:
  ------------------
  |  Branch (3958:5): [True: 0, False: 28.6k]
  ------------------
 3959|      0|        if (argp->size() > 0) {
  ------------------
  |  Branch (3959:13): [True: 0, False: 0]
  ------------------
 3960|      0|            requireExtensions(loc, 1, &E_GL_KHR_memory_scope_semantics, fnCandidate.getName().c_str());
 3961|      0|            memorySemanticsCheck(loc, fnCandidate, callNode);
 3962|      0|        }
 3963|      0|        break;
 3964|       |
 3965|    801|    case EOpMix:
  ------------------
  |  Branch (3965:5): [True: 801, False: 27.8k]
  ------------------
 3966|    801|        if (profile == EEsProfile && version < 310) {
  ------------------
  |  Branch (3966:13): [True: 352, False: 449]
  |  Branch (3966:38): [True: 0, False: 352]
  ------------------
 3967|       |            // Look for specific signatures
 3968|      0|            if ((*argp)[0]->getAsTyped()->getBasicType() != EbtFloat &&
  ------------------
  |  Branch (3968:17): [True: 0, False: 0]
  ------------------
 3969|      0|                (*argp)[1]->getAsTyped()->getBasicType() != EbtFloat &&
  ------------------
  |  Branch (3969:17): [True: 0, False: 0]
  ------------------
 3970|      0|                (*argp)[2]->getAsTyped()->getBasicType() == EbtBool) {
  ------------------
  |  Branch (3970:17): [True: 0, False: 0]
  ------------------
 3971|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_integer_mix, "specific signature of builtin mix");
 3972|      0|            }
 3973|      0|        }
 3974|       |
 3975|    801|        if (profile != EEsProfile && version < 450) {
  ------------------
  |  Branch (3975:13): [True: 449, False: 352]
  |  Branch (3975:38): [True: 239, False: 210]
  ------------------
 3976|    239|            if ((*argp)[0]->getAsTyped()->getBasicType() != EbtFloat &&
  ------------------
  |  Branch (3976:17): [True: 101, False: 138]
  ------------------
 3977|    101|                (*argp)[0]->getAsTyped()->getBasicType() != EbtDouble &&
  ------------------
  |  Branch (3977:17): [True: 21, False: 80]
  ------------------
 3978|     21|                (*argp)[1]->getAsTyped()->getBasicType() != EbtFloat &&
  ------------------
  |  Branch (3978:17): [True: 21, False: 0]
  ------------------
 3979|     21|                (*argp)[1]->getAsTyped()->getBasicType() != EbtDouble &&
  ------------------
  |  Branch (3979:17): [True: 21, False: 0]
  ------------------
 3980|     21|                (*argp)[2]->getAsTyped()->getBasicType() == EbtBool) {
  ------------------
  |  Branch (3980:17): [True: 21, False: 0]
  ------------------
 3981|     21|                requireExtensions(loc, 1, &E_GL_EXT_shader_integer_mix, fnCandidate.getName().c_str());
 3982|     21|            }
 3983|    239|        }
 3984|       |
 3985|    801|        break;
 3986|    172|    case EOpLessThan:
  ------------------
  |  Branch (3986:5): [True: 172, False: 28.4k]
  ------------------
 3987|    295|    case EOpLessThanEqual:
  ------------------
  |  Branch (3987:5): [True: 123, False: 28.5k]
  ------------------
 3988|    419|    case EOpGreaterThan:
  ------------------
  |  Branch (3988:5): [True: 124, False: 28.5k]
  ------------------
 3989|    537|    case EOpGreaterThanEqual:
  ------------------
  |  Branch (3989:5): [True: 118, False: 28.5k]
  ------------------
 3990|    537|    case EOpEqual:
  ------------------
  |  Branch (3990:5): [True: 0, False: 28.6k]
  ------------------
 3991|    537|    case EOpNotEqual:
  ------------------
  |  Branch (3991:5): [True: 0, False: 28.6k]
  ------------------
 3992|    537|        if (profile != EEsProfile && version >= 150 && version < 450) {
  ------------------
  |  Branch (3992:13): [True: 529, False: 8]
  |  Branch (3992:38): [True: 394, False: 135]
  |  Branch (3992:56): [True: 40, False: 354]
  ------------------
 3993|     40|            if ((*argp)[1]->getAsTyped()->getBasicType() == EbtInt64 ||
  ------------------
  |  Branch (3993:17): [True: 0, False: 40]
  ------------------
 3994|     40|                (*argp)[1]->getAsTyped()->getBasicType() == EbtUint64)
  ------------------
  |  Branch (3994:17): [True: 0, False: 40]
  ------------------
 3995|      0|                requireExtensions(loc, 1, &E_GL_NV_gpu_shader5, fnCandidate.getName().c_str());
 3996|     40|        }
 3997|    537|    break;
 3998|    267|    case EOpFma:
  ------------------
  |  Branch (3998:5): [True: 267, False: 28.3k]
  ------------------
 3999|    423|    case EOpFrexp:
  ------------------
  |  Branch (3999:5): [True: 156, False: 28.4k]
  ------------------
 4000|    586|    case EOpLdexp:
  ------------------
  |  Branch (4000:5): [True: 163, False: 28.4k]
  ------------------
 4001|    586|        if (profile != EEsProfile && version < 400) {
  ------------------
  |  Branch (4001:13): [True: 447, False: 139]
  |  Branch (4001:38): [True: 192, False: 255]
  ------------------
 4002|    192|            if ((*argp)[0]->getAsTyped()->getBasicType() == EbtFloat) {
  ------------------
  |  Branch (4002:17): [True: 192, False: 0]
  ------------------
 4003|    192|                requireExtensions(loc, Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5, fnCandidate.getName().c_str());
 4004|    192|            }
 4005|    192|        }
 4006|       |
 4007|    586|        break;
 4008|      0|    case EOpCooperativeVectorMatMulNV:
  ------------------
  |  Branch (4008:5): [True: 0, False: 28.6k]
  ------------------
 4009|      0|    case EOpCooperativeVectorMatMulAddNV:
  ------------------
  |  Branch (4009:5): [True: 0, False: 28.6k]
  ------------------
 4010|      0|        {
 4011|      0|            int inputInterpIdx = 2;
 4012|      0|            int matrixInterpIdx = 5;
 4013|      0|            int biasInterpIdx = 8;
 4014|      0|            int MIdx = callNode.getOp() == EOpCooperativeVectorMatMulAddNV ? 9 : 6;
  ------------------
  |  Branch (4014:24): [True: 0, False: 0]
  ------------------
 4015|      0|            int KIdx = callNode.getOp() == EOpCooperativeVectorMatMulAddNV ? 10 : 7;
  ------------------
  |  Branch (4015:24): [True: 0, False: 0]
  ------------------
 4016|      0|            int matrixLayoutIdx = callNode.getOp() == EOpCooperativeVectorMatMulAddNV ? 11 : 8;
  ------------------
  |  Branch (4016:35): [True: 0, False: 0]
  ------------------
 4017|      0|            int transposeIdx = callNode.getOp() == EOpCooperativeVectorMatMulAddNV ? 12 : 9;
  ------------------
  |  Branch (4017:32): [True: 0, False: 0]
  ------------------
 4018|       |
 4019|      0|            if (!(*argp)[inputInterpIdx]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4019:17): [True: 0, False: 0]
  ------------------
 4020|      0|                error(loc, "argument must be compile-time constant", "inputInterpretation", "");
 4021|      0|            if (!(*argp)[matrixInterpIdx]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4021:17): [True: 0, False: 0]
  ------------------
 4022|      0|                error(loc, "argument must be compile-time constant", "matrixInterpretation", "");
 4023|      0|            if (callNode.getOp() == EOpCooperativeVectorMatMulAddNV) {
  ------------------
  |  Branch (4023:17): [True: 0, False: 0]
  ------------------
 4024|      0|                if (!(*argp)[biasInterpIdx]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4024:21): [True: 0, False: 0]
  ------------------
 4025|      0|                    error(loc, "argument must be compile-time constant", "biasInterpretation", "");
 4026|      0|            }
 4027|      0|            if (!(*argp)[MIdx]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4027:17): [True: 0, False: 0]
  ------------------
 4028|      0|                error(loc, "argument must be compile-time constant", "M", "");
 4029|      0|            if (!(*argp)[KIdx]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4029:17): [True: 0, False: 0]
  ------------------
 4030|      0|                error(loc, "argument must be compile-time constant", "K", "");
 4031|      0|            if (!(*argp)[matrixLayoutIdx]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4031:17): [True: 0, False: 0]
  ------------------
 4032|      0|                error(loc, "argument must be compile-time constant", "matrixLayout", "");
 4033|      0|            if (!(*argp)[transposeIdx]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4033:17): [True: 0, False: 0]
  ------------------
 4034|      0|                error(loc, "argument must be compile-time constant", "transpose", "");
 4035|      0|        }
 4036|      0|        break;
 4037|      0|    case EOpCooperativeVectorOuterProductAccumulateNV:
  ------------------
  |  Branch (4037:5): [True: 0, False: 28.6k]
  ------------------
 4038|      0|        if (!(*argp)[5]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4038:13): [True: 0, False: 0]
  ------------------
 4039|      0|            error(loc, "argument must be compile-time constant", "matrixLayout", "");
 4040|      0|        if (!(*argp)[6]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4040:13): [True: 0, False: 0]
  ------------------
 4041|      0|            error(loc, "argument must be compile-time constant", "matrixInterpretation", "");
 4042|      0|        break;
 4043|       |
 4044|      0|    case EOpCooperativeMatrixLoad:
  ------------------
  |  Branch (4044:5): [True: 0, False: 28.6k]
  ------------------
 4045|      0|    case EOpCooperativeMatrixLoadNV:
  ------------------
  |  Branch (4045:5): [True: 0, False: 28.6k]
  ------------------
 4046|      0|    case EOpCooperativeMatrixLoadTensorNV:
  ------------------
  |  Branch (4046:5): [True: 0, False: 28.6k]
  ------------------
 4047|      0|    case EOpCooperativeMatrixStore:
  ------------------
  |  Branch (4047:5): [True: 0, False: 28.6k]
  ------------------
 4048|      0|    case EOpCooperativeMatrixStoreNV:
  ------------------
  |  Branch (4048:5): [True: 0, False: 28.6k]
  ------------------
 4049|      0|    case EOpCooperativeMatrixStoreTensorNV:
  ------------------
  |  Branch (4049:5): [True: 0, False: 28.6k]
  ------------------
 4050|      0|    {
 4051|      0|        const TIntermTyped *arg1 = (*argp)[1]->getAsTyped();
 4052|      0|        const TIntermTyped* base = TIntermediate::traverseLValueBase(arg1, true, true);
 4053|      0|        const char* errMsg = "Only l-values corresponding to storage block or shared variables can be used with "
 4054|      0|                             "cooperative matrix load/store functions.";
 4055|      0|        if (base) {
  ------------------
  |  Branch (4055:13): [True: 0, False: 0]
  ------------------
 4056|      0|            const TType* refType = (base->getType().isReference()) ? base->getType().getReferentType() : nullptr;
  ------------------
  |  Branch (4056:36): [True: 0, False: 0]
  ------------------
 4057|      0|            const TQualifier& qualifier =
 4058|      0|                (refType != nullptr) ? refType->getQualifier() : base->getType().getQualifier();
  ------------------
  |  Branch (4058:17): [True: 0, False: 0]
  ------------------
 4059|      0|            if (qualifier.storage != EvqShared && qualifier.storage != EvqBuffer)
  ------------------
  |  Branch (4059:17): [True: 0, False: 0]
  |  Branch (4059:51): [True: 0, False: 0]
  ------------------
 4060|      0|                error(loc, errMsg, fnCandidate.getName().c_str(), "");
 4061|      0|        } else {
 4062|      0|            error(loc, errMsg, fnCandidate.getName().c_str(), "");
 4063|      0|        }
 4064|      0|        if ((callNode.getOp() == EOpCooperativeMatrixLoad || callNode.getOp() == EOpCooperativeMatrixStore) &&
  ------------------
  |  Branch (4064:14): [True: 0, False: 0]
  |  Branch (4064:62): [True: 0, False: 0]
  ------------------
 4065|      0|            !(*argp)[4]->getAsTyped()->getType().getQualifier().isConstant())
  ------------------
  |  Branch (4065:13): [True: 0, False: 0]
  ------------------
 4066|      0|            error(loc, "argument must be compile-time constant", "matrixLayout", "");
 4067|      0|    }
 4068|      0|    break;
 4069|      0|    case EOpCooperativeMatrixTransposeNV:
  ------------------
  |  Branch (4069:5): [True: 0, False: 28.6k]
  ------------------
 4070|      0|    {
 4071|      0|        static constexpr int CM_UseB = 1;   // == gl_MatrixUseB
 4072|      0|        static constexpr int CM_UseAcc = 2; // == gl_MatrixUseAccumulator
 4073|       |
 4074|      0|        auto &dstType = (*argp)[0]->getAsTyped()->getType();
 4075|      0|        auto &srcType = (*argp)[1]->getAsTyped()->getType();
 4076|      0|        int dstUse = dstType.getCoopMatKHRuse();
 4077|      0|        int srcUse = srcType.getCoopMatKHRuse();
 4078|       |
 4079|      0|        const TTypeParameters* dstTypeParameters = dstType.getTypeParameters();
 4080|      0|        const TTypeParameters* srcTypeParameters = srcType.getTypeParameters();
 4081|      0|        if (dstTypeParameters->arraySizes == nullptr || dstTypeParameters->arraySizes->getNumDims() != 4 ||
  ------------------
  |  Branch (4081:13): [True: 0, False: 0]
  |  Branch (4081:57): [True: 0, False: 0]
  ------------------
 4082|      0|            srcTypeParameters->arraySizes == nullptr || srcTypeParameters->arraySizes->getNumDims() != 4) {
  ------------------
  |  Branch (4082:13): [True: 0, False: 0]
  |  Branch (4082:57): [True: 0, False: 0]
  ------------------
 4083|      0|            error(loc, "incomplete type parameters", fnCandidate.getName().c_str(), "");
 4084|      0|        } else {
 4085|      0|            const auto knownDimensionMismatch = [](const TArraySizes& dst, int dstIndex,
 4086|      0|                                                   const TArraySizes& src, int srcIndex) {
 4087|      0|                return !dst.elementEqual(src, dstIndex, srcIndex) && dst.getDimNode(dstIndex) == nullptr &&
 4088|      0|                       src.getDimNode(srcIndex) == nullptr;
 4089|      0|            };
 4090|      0|            if (knownDimensionMismatch(*dstTypeParameters->arraySizes, 0, *srcTypeParameters->arraySizes, 0)) {
  ------------------
  |  Branch (4090:17): [True: 0, False: 0]
  ------------------
 4091|      0|                error(loc, "scope must match", fnCandidate.getName().c_str(), "");
 4092|      0|            }
 4093|      0|            if (knownDimensionMismatch(*dstTypeParameters->arraySizes, 1, *srcTypeParameters->arraySizes, 2) ||
  ------------------
  |  Branch (4093:17): [True: 0, False: 0]
  ------------------
 4094|      0|                knownDimensionMismatch(*dstTypeParameters->arraySizes, 2, *srcTypeParameters->arraySizes, 1)) {
  ------------------
  |  Branch (4094:17): [True: 0, False: 0]
  ------------------
 4095|      0|                error(loc, "rows/columns must be swapped", fnCandidate.getName().c_str(), "");
 4096|      0|            }
 4097|      0|        }
 4098|      0|        if (srcUse != CM_UseAcc) {
  ------------------
  |  Branch (4098:13): [True: 0, False: 0]
  ------------------
 4099|      0|            error(loc, "Cooperative matrix source Use must be Accumulator", fnCandidate.getName().c_str(), "");
 4100|      0|        }
 4101|      0|        if (extensionTurnedOn(E_GL_EXT_cooperative_matrix_maintenance1)) {
  ------------------
  |  Branch (4101:13): [True: 0, False: 0]
  ------------------
 4102|      0|            if (dstUse == CM_UseAcc) {
  ------------------
  |  Branch (4102:17): [True: 0, False: 0]
  ------------------
 4103|      0|                error(loc, "Cooperative matrix result Use must not be Accumulator", fnCandidate.getName().c_str(), "");
 4104|      0|            }
 4105|      0|        } else {
 4106|      0|            if (dstUse != CM_UseB) {
  ------------------
  |  Branch (4106:17): [True: 0, False: 0]
  ------------------
 4107|      0|                error(loc, "Cooperative matrix result Use must be B", fnCandidate.getName().c_str(), "");
 4108|      0|            }
 4109|      0|        }
 4110|      0|    }
 4111|      0|    break;
 4112|       |
 4113|  13.7k|    default:
  ------------------
  |  Branch (4113:5): [True: 13.7k, False: 14.8k]
  ------------------
 4114|  13.7k|        break;
 4115|  28.6k|    }
 4116|       |
 4117|       |    // Texture operations on texture objects (aside from texelFetch on a
 4118|       |    // textureBuffer) require EXT_samplerless_texture_functions.
 4119|  28.6k|    switch (callNode.getOp()) {
 4120|    350|    case EOpTextureQuerySize:
  ------------------
  |  Branch (4120:5): [True: 350, False: 28.2k]
  ------------------
 4121|    402|    case EOpTextureQueryLevels:
  ------------------
  |  Branch (4121:5): [True: 52, False: 28.5k]
  ------------------
 4122|    414|    case EOpTextureQuerySamples:
  ------------------
  |  Branch (4122:5): [True: 12, False: 28.6k]
  ------------------
 4123|    486|    case EOpTextureFetch:
  ------------------
  |  Branch (4123:5): [True: 72, False: 28.5k]
  ------------------
 4124|  1.06k|    case EOpTextureFetchOffset:
  ------------------
  |  Branch (4124:5): [True: 577, False: 28.0k]
  ------------------
 4125|  1.06k|    {
 4126|  1.06k|        const TSampler& sampler = fnCandidate[0].type->getSampler();
 4127|       |
 4128|  1.06k|        const bool isTexture = sampler.isTexture() && !sampler.isCombined();
  ------------------
  |  Branch (4128:32): [True: 1.06k, False: 0]
  |  Branch (4128:55): [True: 0, False: 1.06k]
  ------------------
 4129|  1.06k|        const bool isBuffer = sampler.isBuffer();
 4130|  1.06k|        const bool isFetch = callNode.getOp() == EOpTextureFetch || callNode.getOp() == EOpTextureFetchOffset;
  ------------------
  |  Branch (4130:30): [True: 72, False: 991]
  |  Branch (4130:69): [True: 577, False: 414]
  ------------------
 4131|       |
 4132|  1.06k|        if (isTexture && (!isBuffer || !isFetch))
  ------------------
  |  Branch (4132:13): [True: 0, False: 1.06k]
  |  Branch (4132:27): [True: 0, False: 0]
  |  Branch (4132:40): [True: 0, False: 0]
  ------------------
 4133|      0|            requireExtensions(loc, 1, &E_GL_EXT_samplerless_texture_functions, fnCandidate.getName().c_str());
 4134|       |
 4135|  1.06k|        break;
 4136|    486|    }
 4137|       |
 4138|      0|    case EOpConstructSaturated:
  ------------------
  |  Branch (4138:5): [True: 0, False: 28.6k]
  ------------------
 4139|      0|    {
 4140|      0|        const TIntermAggregate* aggregate = callNode.getAsAggregate();
 4141|      0|        if (aggregate == nullptr || aggregate->getSequence().size() != 2) {
  ------------------
  |  Branch (4141:13): [True: 0, False: 0]
  |  Branch (4141:37): [True: 0, False: 0]
  ------------------
 4142|      0|            error(loc, "requires exactly two parameters", "", "");
 4143|      0|            break;
 4144|      0|        }
 4145|      0|        auto &sequence = aggregate->getSequence();
 4146|      0|        auto &op0Type = sequence[0]->getAsTyped()->getType();
 4147|      0|        auto &op1Type = sequence[1]->getAsTyped()->getType();
 4148|      0|        if (op0Type.getBasicType() != EbtFloatE5M2 && op0Type.getBasicType() != EbtFloatE4M3) {
  ------------------
  |  Branch (4148:13): [True: 0, False: 0]
  |  Branch (4148:55): [True: 0, False: 0]
  ------------------
 4149|      0|            error(loc, "first parameter must have floate5m2 or floate4m3 basic type", "", "");
 4150|      0|        }
 4151|      0|        if (op1Type.getBasicType() == EbtFloatE5M2 || op1Type.getBasicType() == EbtFloatE4M3) {
  ------------------
  |  Branch (4151:13): [True: 0, False: 0]
  |  Branch (4151:55): [True: 0, False: 0]
  ------------------
 4152|      0|            error(loc, "second parameter must not have floate5m2 or floate4m3 basic type", "", "");
 4153|      0|        }
 4154|       |
 4155|      0|        if (!(op0Type.isScalar() || op0Type.isVector() || op0Type.isLongVector() || op0Type.isCoopMatKHR())) {
  ------------------
  |  Branch (4155:15): [True: 0, False: 0]
  |  Branch (4155:37): [True: 0, False: 0]
  |  Branch (4155:59): [True: 0, False: 0]
  |  Branch (4155:85): [True: 0, False: 0]
  ------------------
 4156|      0|            error(loc, "first parameter must be scalar, vector, or cooperative matrix", "", "");
 4157|      0|        }
 4158|      0|        if (!(op1Type.isScalar() || op1Type.isVector() || op1Type.isLongVector() || op1Type.isCoopMatKHR())) {
  ------------------
  |  Branch (4158:15): [True: 0, False: 0]
  |  Branch (4158:37): [True: 0, False: 0]
  |  Branch (4158:59): [True: 0, False: 0]
  |  Branch (4158:85): [True: 0, False: 0]
  ------------------
 4159|      0|            error(loc, "second parameter must be scalar, vector, or cooperative matrix", "", "");
 4160|      0|        }
 4161|      0|        if (!(op0Type.sameElementShape(op1Type) || op0Type.sameCoopMatShape(op1Type))) {
  ------------------
  |  Branch (4161:15): [True: 0, False: 0]
  |  Branch (4161:52): [True: 0, False: 0]
  ------------------
 4162|      0|            error(loc, "types must match other than scalar type and coopmat Use", "", "");
 4163|      0|        }
 4164|      0|        break;
 4165|      0|    }
 4166|      0|    case EOpTensorReadARM:
  ------------------
  |  Branch (4166:5): [True: 0, False: 28.6k]
  ------------------
 4167|      0|    case EOpTensorWriteARM:
  ------------------
  |  Branch (4167:5): [True: 0, False: 28.6k]
  ------------------
 4168|      0|    {
 4169|      0|        const TType &tensorType = (*argp)[0]->getAsTyped()->getType();
 4170|       |
 4171|       |        // Check that coordinates argument length matches rank of tensor argument.
 4172|      0|        int tensorRank = tensorType.getTensorRankARM();
 4173|      0|        const TArraySizes *coordArgArrayTy = (*argp)[1]->getAsTyped()->getType().getArraySizes();
 4174|      0|        assert(coordArgArrayTy->getNumDims() == 1 && "expecting 1D coordinate array");
 4175|      0|        if (coordArgArrayTy->getDimSize(0) != tensorRank) {
  ------------------
  |  Branch (4175:13): [True: 0, False: 0]
  ------------------
 4176|      0|            error(loc, "number of coordinates does not match tensor rank", "coord", "");
 4177|      0|        }
 4178|       |
 4179|       |        // Check that tensor element type matches data argument.
 4180|      0|        TBasicType eltTy = tensorType.getBasicType();
 4181|      0|        TBasicType argTy = (*argp)[2]->getAsTyped()->getType().getBasicType();
 4182|      0|        if (eltTy != argTy) {
  ------------------
  |  Branch (4182:13): [True: 0, False: 0]
  ------------------
 4183|      0|            error(loc, "", "data", "data argument type (%s) does not match tensor element type (%s)",
 4184|      0|                  TType::getBasicString(argTy), TType::getBasicString(eltTy));
 4185|      0|        }
 4186|       |
 4187|       |        // Check optional tensor operands.
 4188|      0|        if (argp->size() > 3) {
  ------------------
  |  Branch (4188:13): [True: 0, False: 0]
  ------------------
 4189|      0|            const TIntermConstantUnion* opArg = (*argp)[3]->getAsConstantUnion();
 4190|      0|            if (!opArg) {
  ------------------
  |  Branch (4190:17): [True: 0, False: 0]
  ------------------
 4191|      0|                error(loc, "tensor operands argument must be a constant integral expression", "tensorOps", "");
 4192|      0|            }
 4193|      0|            const unsigned int ops = opArg ? opArg->getConstArray()[0].getUConst() : 0u;
  ------------------
  |  Branch (4193:38): [True: 0, False: 0]
  ------------------
 4194|      0|            const int gl_TensorOperandsOutOfBoundsValueARM = 0x2;
 4195|      0|            if (ops & gl_TensorOperandsOutOfBoundsValueARM) {
  ------------------
  |  Branch (4195:17): [True: 0, False: 0]
  ------------------
 4196|       |                // Out-of-bounds values can only be used with reads.
 4197|      0|                if (callNode.getOp() != EOpTensorReadARM) {
  ------------------
  |  Branch (4197:21): [True: 0, False: 0]
  ------------------
 4198|      0|                    error(loc, "out-of-bounds value is only valid with tensorReadARM", "tensorOps", "");
 4199|      0|                }
 4200|       |                // Check that an out-of-bounds value is present.
 4201|      0|                if (argp->size() == 4) {
  ------------------
  |  Branch (4201:21): [True: 0, False: 0]
  ------------------
 4202|      0|                    error(loc, "expecting out-of-bounds value as next argument", "tensorOps", "");
 4203|      0|                } else {
 4204|       |                    // Check constantness of out-of-bounds value.
 4205|      0|                    const TIntermConstantUnion* oobArg = (*argp)[4]->getAsConstantUnion();
 4206|      0|                    if (!oobArg) {
  ------------------
  |  Branch (4206:25): [True: 0, False: 0]
  ------------------
 4207|      0|                        error(loc, "argument following gl_TensorOperandsOutOfBoundsValueARM must be constant", "vararg",
 4208|      0|                              "");
 4209|      0|                    } else if (oobArg->getType().getBasicType() != tensorType.getBasicType()) {
  ------------------
  |  Branch (4209:32): [True: 0, False: 0]
  ------------------
 4210|       |                        // The type of the OOB value does not match the tensor type.
 4211|      0|                        error(loc, "", "vararg",
 4212|      0|                            "out-of-bounds value type (%s) does not match tensor element type (%s)",
 4213|      0|                            TType::getBasicString(oobArg->getBasicType()), TType::getBasicString(eltTy));
 4214|       |
 4215|      0|                    }
 4216|      0|                }
 4217|      0|            }
 4218|      0|        }
 4219|      0|        break;
 4220|      0|    }
 4221|       |
 4222|      0|    case EOpTensorSizeARM:
  ------------------
  |  Branch (4222:5): [True: 0, False: 28.6k]
  ------------------
 4223|      0|    {
 4224|      0|        unsigned int tensorRank = (*argp)[0]->getAsTyped()->getType().getTensorRankARM();
 4225|      0|        const TIntermConstantUnion *dimArg = (*argp)[1]->getAsConstantUnion();
 4226|      0|        if (dimArg) {
  ------------------
  |  Branch (4226:13): [True: 0, False: 0]
  ------------------
 4227|      0|            if (dimArg->getConstArray()[0].getUConst() >= tensorRank) {
  ------------------
  |  Branch (4227:17): [True: 0, False: 0]
  ------------------
 4228|      0|                error(loc, "dimension argument exceeds tensor rank", "dim", "");
 4229|      0|            }
 4230|      0|        } else {
 4231|      0|            error(loc, "dimension argument must be constant", "dim", "");
 4232|      0|        }
 4233|      0|        break;
 4234|      0|    }
 4235|       |
 4236|      0|    case EOpAbortEXT:
  ------------------
  |  Branch (4236:5): [True: 0, False: 28.6k]
  ------------------
 4237|       |        // GL_EXT_abort allows abortEXT() with no arguments at all. Otherwise the message
 4238|       |        // must be a string literal, not merely an expression of string type: isLiteral()
 4239|       |        // is false for e.g. ("msg"). createAbortEXT() assumes this.
 4240|      0|        if (arg0 != nullptr) {
  ------------------
  |  Branch (4240:13): [True: 0, False: 0]
  ------------------
 4241|      0|            const TIntermConstantUnion* message = arg0->getAsConstantUnion();
 4242|      0|            if (message == nullptr || message->getBasicType() != EbtString || ! message->isLiteral())
  ------------------
  |  Branch (4242:17): [True: 0, False: 0]
  |  Branch (4242:39): [True: 0, False: 0]
  |  Branch (4242:79): [True: 0, False: 0]
  ------------------
 4243|      0|                error(loc, "first argument must be a string literal", fnCandidate.getName().c_str(), "");
 4244|      0|        }
 4245|       |        // The message string and the remaining arguments are packed into an explicitly laid
 4246|       |        // out structure type, so every argument has to be something that can be laid out in memory.
 4247|      0|        if (argp != nullptr) {
  ------------------
  |  Branch (4247:13): [True: 0, False: 0]
  ------------------
 4248|      0|            for (int arg = 1; arg < (int)argp->size(); ++arg) {
  ------------------
  |  Branch (4248:31): [True: 0, False: 0]
  ------------------
 4249|      0|                const TIntermTyped* argNode = (*argp)[arg]->getAsTyped();
 4250|      0|                if (argNode == nullptr)
  ------------------
  |  Branch (4250:21): [True: 0, False: 0]
  ------------------
 4251|      0|                    continue;
 4252|      0|                const TType& argType = argNode->getType();
 4253|      0|                if (argType.getBasicType() == EbtString) {
  ------------------
  |  Branch (4253:21): [True: 0, False: 0]
  ------------------
 4254|      0|                    error(loc, "argument cannot be a string, only the message may be a string",
 4255|      0|                          fnCandidate.getName().c_str(), "");
 4256|      0|                } else if (argType.containsOpaque()) {
  ------------------
  |  Branch (4256:28): [True: 0, False: 0]
  ------------------
 4257|      0|                    error(loc, "argument cannot be an opaque type", fnCandidate.getName().c_str(), "");
 4258|      0|                } else if (argType.containsUnsizedArray()) {
  ------------------
  |  Branch (4258:28): [True: 0, False: 0]
  ------------------
 4259|      0|                    error(loc, "argument cannot be a run-time sized array", fnCandidate.getName().c_str(), "");
 4260|      0|                } else if (argType.containsBasicType(EbtBool) && ! argType.isScalar() && ! argType.isVector()) {
  ------------------
  |  Branch (4260:28): [True: 0, False: 0]
  |  Branch (4260:66): [True: 0, False: 0]
  |  Branch (4260:90): [True: 0, False: 0]
  ------------------
 4261|      0|                    error(loc, "argument cannot be an aggregate containing a bool",
 4262|      0|                          fnCandidate.getName().c_str(), "");
 4263|      0|                }
 4264|      0|            }
 4265|      0|        }
 4266|      0|        break;
 4267|      0|    case EOpDebugPrintf:
  ------------------
  |  Branch (4267:5): [True: 0, False: 28.6k]
  ------------------
 4268|      0|    {
 4269|       |        // GL_EXT_debug_printf requires the format to be a string literal, not just
 4270|       |        // an expression of string type: isLiteral() is false for e.g. ("fmt").
 4271|      0|        const TIntermConstantUnion* format = arg0 ? arg0->getAsConstantUnion() : nullptr;
  ------------------
  |  Branch (4271:46): [True: 0, False: 0]
  ------------------
 4272|      0|        if (format == nullptr || format->getBasicType() != EbtString || ! format->isLiteral())
  ------------------
  |  Branch (4272:13): [True: 0, False: 0]
  |  Branch (4272:34): [True: 0, False: 0]
  |  Branch (4272:73): [True: 0, False: 0]
  ------------------
 4273|      0|            error(loc, "first argument must be a string literal", fnCandidate.getName().c_str(), "");
 4274|      0|        break;
 4275|      0|    }
 4276|       |
 4277|  27.5k|    default:
  ------------------
  |  Branch (4277:5): [True: 27.5k, False: 1.06k]
  ------------------
 4278|  27.5k|        break;
 4279|  28.6k|    }
 4280|       |
 4281|  28.6k|    if (callNode.isSubgroup()) {
  ------------------
  |  Branch (4281:9): [True: 5.19k, False: 23.4k]
  ------------------
 4282|       |        // these require SPIR-V 1.3
 4283|  5.19k|        if (spvVersion.spv > 0 && spvVersion.spv < EShTargetSpv_1_3)
  ------------------
  |  Branch (4283:13): [True: 5.19k, False: 0]
  |  Branch (4283:35): [True: 5.19k, False: 0]
  ------------------
 4284|  5.19k|            error(loc, "requires SPIR-V 1.3", "subgroup op", "");
 4285|       |
 4286|       |        // Check that if extended types are being used that the correct extensions are enabled.
 4287|  5.19k|        if (arg0 != nullptr) {
  ------------------
  |  Branch (4287:13): [True: 4.74k, False: 442]
  ------------------
 4288|  4.74k|            const TType& type = arg0->getType();
 4289|  4.74k|            bool enhanced = intermediate.getEnhancedMsgs();
 4290|  4.74k|            switch (type.getBasicType()) {
 4291|  4.74k|            default:
  ------------------
  |  Branch (4291:13): [True: 4.74k, False: 0]
  ------------------
 4292|  4.74k|                break;
 4293|  4.74k|            case EbtInt8:
  ------------------
  |  Branch (4293:13): [True: 0, False: 4.74k]
  ------------------
 4294|      0|            case EbtUint8:
  ------------------
  |  Branch (4294:13): [True: 0, False: 4.74k]
  ------------------
 4295|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_subgroup_extended_types_int8, type.getCompleteString(enhanced).c_str());
 4296|      0|                break;
 4297|      0|            case EbtInt16:
  ------------------
  |  Branch (4297:13): [True: 0, False: 4.74k]
  ------------------
 4298|      0|            case EbtUint16:
  ------------------
  |  Branch (4298:13): [True: 0, False: 4.74k]
  ------------------
 4299|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_subgroup_extended_types_int16, type.getCompleteString(enhanced).c_str());
 4300|      0|                break;
 4301|      0|            case EbtInt64:
  ------------------
  |  Branch (4301:13): [True: 0, False: 4.74k]
  ------------------
 4302|      0|            case EbtUint64:
  ------------------
  |  Branch (4302:13): [True: 0, False: 4.74k]
  ------------------
 4303|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_subgroup_extended_types_int64, type.getCompleteString(enhanced).c_str());
 4304|      0|                break;
 4305|      0|            case EbtFloat16:
  ------------------
  |  Branch (4305:13): [True: 0, False: 4.74k]
  ------------------
 4306|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_subgroup_extended_types_float16, type.getCompleteString(enhanced).c_str());
 4307|      0|                break;
 4308|  4.74k|            }
 4309|  4.74k|        }
 4310|  5.19k|    }
 4311|  28.6k|}
_ZN7glslang13TParseContext21userFunctionCallCheckERKNS_10TSourceLocERNS_16TIntermAggregateE:
 4444|  2.24k|{
 4445|  2.24k|    TIntermSequence& arguments = callNode.getSequence();
 4446|       |
 4447|  4.00k|    for (int i = 0; i < (int)arguments.size(); ++i)
  ------------------
  |  Branch (4447:21): [True: 1.76k, False: 2.24k]
  ------------------
 4448|  1.76k|        samplerConstructorLocationCheck(loc, "call argument", arguments[i]);
 4449|  2.24k|}
_ZN7glslang13TParseContext31samplerConstructorLocationCheckERKNS_10TSourceLocEPKcP11TIntermNode:
 4455|  1.78k|{
 4456|  1.78k|    if (node->getAsOperator() && node->getAsOperator()->getOp() == EOpConstructTextureSampler)
  ------------------
  |  Branch (4456:9): [True: 1.39k, False: 392]
  |  Branch (4456:34): [True: 9, False: 1.38k]
  ------------------
 4457|      9|        error(loc, "sampler constructor must appear at point of use", token, "");
 4458|  1.78k|}
_ZN7glslang13TParseContext21handleConstructorCallERKNS_10TSourceLocERKNS_11TPublicTypeE:
 4464|  76.5k|{
 4465|  76.5k|    TType type(publicType);
 4466|  76.5k|    type.getQualifier().precision = EpqNone;
 4467|       |
 4468|  76.5k|    if (type.isArray()) {
  ------------------
  |  Branch (4468:9): [True: 1.63k, False: 74.8k]
  ------------------
 4469|  1.63k|        profileRequires(loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed constructor");
 4470|  1.63k|        profileRequires(loc, EEsProfile, 300, nullptr, "arrayed constructor");
 4471|  1.63k|    }
 4472|       |
 4473|       |    // Reuse EOpConstructTextureSampler for bindless image constructor
 4474|       |    // uvec2 imgHandle;
 4475|       |    // imageLoad(image1D(imgHandle), 0);
 4476|  76.5k|    if (type.isImage() && extensionTurnedOn(E_GL_ARB_bindless_texture))
  ------------------
  |  Branch (4476:9): [True: 3, False: 76.5k]
  |  Branch (4476:27): [True: 0, False: 3]
  ------------------
 4477|      0|    {
 4478|      0|        intermediate.setBindlessImageMode(currentCaller, AstRefTypeFunc);
 4479|      0|    }
 4480|       |
 4481|  76.5k|    TOperator op = intermediate.mapTypeToConstructorOp(type);
 4482|       |
 4483|  76.5k|    if (op == EOpNull) {
  ------------------
  |  Branch (4483:9): [True: 36, False: 76.4k]
  ------------------
 4484|     36|        if (intermediate.getEnhancedMsgs() && type.getBasicType() == EbtSampler)
  ------------------
  |  Branch (4484:13): [True: 0, False: 36]
  |  Branch (4484:47): [True: 0, False: 0]
  ------------------
 4485|      0|            error(loc, "function not supported in this version; use texture() instead", "texture*D*", "");
 4486|     36|        else
 4487|     36|            error(loc, "cannot construct this type", type.getBasicString(), "");
 4488|     36|        op = EOpConstructFloat;
 4489|     36|        TType errorType(EbtFloat);
 4490|     36|        type.shallowCopy(errorType);
 4491|     36|    }
 4492|       |
 4493|  76.5k|    TString empty("");
 4494|       |
 4495|  76.5k|    return new TFunction(&empty, type, op);
 4496|  76.5k|}
_ZN7glslang13TParseContext24handlePrecisionQualifierERKNS_10TSourceLocERNS_10TQualifierENS_19TPrecisionQualifierE:
 4500|  1.99M|{
 4501|  1.99M|    if (obeyPrecisionQualifiers())
  ------------------
  |  Branch (4501:9): [True: 1.99M, False: 0]
  ------------------
 4502|  1.99M|        qualifier.precision = precision;
 4503|  1.99M|}
_ZN7glslang13TParseContext23checkPrecisionQualifierERKNS_10TSourceLocENS_19TPrecisionQualifierE:
 4508|  1.99M|{
 4509|  1.99M|    if (precisionManager.shouldWarnAboutDefaults()) {
  ------------------
  |  Branch (4509:9): [True: 80, False: 1.99M]
  ------------------
 4510|     80|        warn(loc, "all default precisions are highp; use precision statements to quiet warning, e.g.:\n"
 4511|     80|                  "         \"precision mediump int; precision highp float;\"", "", "");
 4512|     80|        precisionManager.defaultWarningGiven();
 4513|     80|    }
 4514|  1.99M|}
_ZN7glslang13TParseContext11assignErrorERKNS_10TSourceLocEPKcNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEESC_:
 4520|  54.2k|{
 4521|  54.2k|    error(loc, "", op, "cannot convert from '%s' to '%s'",
 4522|  54.2k|          right.c_str(), left.c_str());
 4523|  54.2k|}
_ZN7glslang13TParseContext12unaryOpErrorERKNS_10TSourceLocEPKcNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 4529|    125|{
 4530|    125|   error(loc, " wrong operand type", op,
 4531|    125|          "no operation '%s' exists that takes an operand of type %s (or there is no acceptable conversion)",
 4532|    125|          op, operand.c_str());
 4533|    125|}
_ZN7glslang13TParseContext13binaryOpErrorERKNS_10TSourceLocEPKcNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEESC_:
 4539|  1.51k|{
 4540|  1.51k|    error(loc, " wrong operand types:", op,
 4541|  1.51k|            "no operation '%s' exists that takes a left-hand operand of type '%s' and "
 4542|  1.51k|            "a right operand of type '%s' (or there is no acceptable conversion)",
 4543|  1.51k|            op, left.c_str(), right.c_str());
 4544|  1.51k|}
_ZN7glslang13TParseContext13variableCheckERPNS_12TIntermTypedE:
 4552|   836k|{
 4553|   836k|    TIntermSymbol* symbol = nodePtr->getAsSymbolNode();
 4554|   836k|    if (! symbol)
  ------------------
  |  Branch (4554:9): [True: 643k, False: 193k]
  ------------------
 4555|   643k|        return;
 4556|       |
 4557|   193k|    if (symbol->getType().getBasicType() == EbtVoid) {
  ------------------
  |  Branch (4557:9): [True: 3.74k, False: 189k]
  ------------------
 4558|  3.74k|        const char *extraInfoFormat = "";
 4559|  3.74k|        if (spvVersion.vulkan != 0 && symbol->getName() == "gl_VertexID") {
  ------------------
  |  Branch (4559:13): [True: 3.74k, False: 0]
  |  Branch (4559:39): [True: 0, False: 3.74k]
  ------------------
 4560|      0|          extraInfoFormat = "(Did you mean gl_VertexIndex?)";
 4561|  3.74k|        } else if (spvVersion.vulkan != 0 && symbol->getName() == "gl_InstanceID") {
  ------------------
  |  Branch (4561:20): [True: 3.74k, False: 0]
  |  Branch (4561:46): [True: 0, False: 3.74k]
  ------------------
 4562|      0|          extraInfoFormat = "(Did you mean gl_InstanceIndex?)";
 4563|      0|        }
 4564|  3.74k|        error(symbol->getLoc(), "undeclared identifier", symbol->getName().c_str(), "%s", extraInfoFormat);
 4565|       |
 4566|       |        // Add to symbol table to prevent future error messages on the same name
 4567|  3.74k|        if (symbol->getName().size() > 0) {
  ------------------
  |  Branch (4567:13): [True: 3.74k, False: 0]
  ------------------
 4568|  3.74k|            TVariable* fakeVariable = new TVariable(&symbol->getName(), TType(EbtFloat));
 4569|  3.74k|            symbolTable.insert(*fakeVariable);
 4570|       |
 4571|       |            // substitute a symbol node for this new variable
 4572|  3.74k|            nodePtr = intermediate.addSymbol(*fakeVariable, symbol->getLoc());
 4573|  3.74k|        }
 4574|   189k|    } else {
 4575|   189k|        switch (symbol->getQualifier().storage) {
 4576|      0|        case EvqPointCoord:
  ------------------
  |  Branch (4576:9): [True: 0, False: 189k]
  ------------------
 4577|      0|            profileRequires(symbol->getLoc(), ENoProfile, 120, nullptr, "gl_PointCoord");
 4578|      0|            break;
 4579|   189k|        default: break; // some compilers want this
  ------------------
  |  Branch (4579:9): [True: 189k, False: 0]
  ------------------
 4580|   189k|        }
 4581|   189k|    }
 4582|   193k|}
_ZN7glslang13TParseContext16lValueErrorCheckERKNS_10TSourceLocEPKcPNS_12TIntermTypedE:
 4591|  75.6k|{
 4592|  75.6k|    TIntermBinary* binaryNode = node->getAsBinaryNode();
 4593|       |
 4594|  75.6k|    if (binaryNode) {
  ------------------
  |  Branch (4594:9): [True: 5.41k, False: 70.2k]
  ------------------
 4595|  5.41k|        bool errorReturn = false;
 4596|       |
 4597|  5.41k|        switch(binaryNode->getOp()) {
 4598|  1.63k|        case EOpIndexDirect:
  ------------------
  |  Branch (4598:9): [True: 1.63k, False: 3.78k]
  ------------------
 4599|  1.64k|        case EOpIndexIndirect:
  ------------------
  |  Branch (4599:9): [True: 13, False: 5.40k]
  ------------------
 4600|       |            // ...  tessellation control shader ...
 4601|       |            // If a per-vertex output variable is used as an l-value, it is a
 4602|       |            // compile-time or link-time error if the expression indicating the
 4603|       |            // vertex index is not the identifier gl_InvocationID.
 4604|  1.64k|            if (language == EShLangTessControl) {
  ------------------
  |  Branch (4604:17): [True: 0, False: 1.64k]
  ------------------
 4605|      0|                const TType& leftType = binaryNode->getLeft()->getType();
 4606|      0|                if (leftType.getQualifier().storage == EvqVaryingOut && ! leftType.getQualifier().patch && binaryNode->getLeft()->getAsSymbolNode()) {
  ------------------
  |  Branch (4606:21): [True: 0, False: 0]
  |  Branch (4606:73): [True: 0, False: 0]
  |  Branch (4606:108): [True: 0, False: 0]
  ------------------
 4607|       |                    // we have a per-vertex output
 4608|      0|                    const TIntermSymbol* rightSymbol = binaryNode->getRight()->getAsSymbolNode();
 4609|      0|                    if (! rightSymbol || rightSymbol->getQualifier().builtIn != EbvInvocationId)
  ------------------
  |  Branch (4609:25): [True: 0, False: 0]
  |  Branch (4609:42): [True: 0, False: 0]
  ------------------
 4610|      0|                        error(loc, "tessellation-control per-vertex output l-value must be indexed with gl_InvocationID", "[]", "");
 4611|      0|                }
 4612|      0|            }
 4613|  1.64k|            break; // left node is checked by base class
 4614|    639|        case EOpVectorSwizzle:
  ------------------
  |  Branch (4614:9): [True: 639, False: 4.78k]
  ------------------
 4615|    639|            errorReturn = lValueErrorCheck(loc, op, binaryNode->getLeft());
 4616|    639|            if (!errorReturn) {
  ------------------
  |  Branch (4616:17): [True: 639, False: 0]
  ------------------
 4617|    639|                int offset[4] = {0,0,0,0};
 4618|       |
 4619|    639|                TIntermTyped* rightNode = binaryNode->getRight();
 4620|    639|                TIntermAggregate *aggrNode = rightNode->getAsAggregate();
 4621|       |
 4622|    639|                for (TIntermSequence::iterator p = aggrNode->getSequence().begin();
 4623|  1.99k|                                               p != aggrNode->getSequence().end(); p++) {
  ------------------
  |  Branch (4623:48): [True: 1.35k, False: 638]
  ------------------
 4624|  1.35k|                    int value = (*p)->getAsTyped()->getAsConstantUnion()->getConstArray()[0].getIConst();
 4625|  1.35k|                    offset[value]++;
 4626|  1.35k|                    if (offset[value] > 1) {
  ------------------
  |  Branch (4626:25): [True: 1, False: 1.35k]
  ------------------
 4627|      1|                        error(loc, " l-value of swizzle cannot have duplicate components", op, "");
 4628|       |
 4629|      1|                        return true;
 4630|      1|                    }
 4631|  1.35k|                }
 4632|    639|            }
 4633|       |
 4634|    638|            return errorReturn;
 4635|  3.13k|        default:
  ------------------
  |  Branch (4635:9): [True: 3.13k, False: 2.28k]
  ------------------
 4636|  3.13k|            break;
 4637|  5.41k|        }
 4638|       |
 4639|  4.78k|        if (errorReturn) {
  ------------------
  |  Branch (4639:13): [True: 0, False: 4.78k]
  ------------------
 4640|      0|            error(loc, " l-value required", op, "");
 4641|      0|            return true;
 4642|      0|        }
 4643|  4.78k|    }
 4644|       |
 4645|  75.0k|    if (binaryNode && binaryNode->getOp() == EOpIndexDirectStruct && binaryNode->getLeft()->isReference())
  ------------------
  |  Branch (4645:9): [True: 4.78k, False: 70.2k]
  |  Branch (4645:23): [True: 3.13k, False: 1.64k]
  |  Branch (4645:70): [True: 0, False: 3.13k]
  ------------------
 4646|      0|        return false;
 4647|       |
 4648|       |    // Let the base class check errors
 4649|  75.0k|    if (TParseContextBase::lValueErrorCheck(loc, op, node))
  ------------------
  |  Branch (4649:9): [True: 92, False: 74.9k]
  ------------------
 4650|     92|        return true;
 4651|       |
 4652|  74.9k|    const char* symbol = nullptr;
 4653|  74.9k|    TIntermSymbol* symNode = node->getAsSymbolNode();
 4654|  74.9k|    if (symNode != nullptr)
  ------------------
  |  Branch (4654:9): [True: 70.1k, False: 4.77k]
  ------------------
 4655|  70.1k|        symbol = symNode->getName().c_str();
 4656|       |
 4657|  74.9k|    const char* message = nullptr;
 4658|  74.9k|    switch (node->getQualifier().storage) {
 4659|      7|    case EvqVaryingIn:      message = "can't modify shader input";   break;
  ------------------
  |  Branch (4659:5): [True: 7, False: 74.9k]
  ------------------
 4660|      0|    case EvqInstanceId:     message = "can't modify gl_InstanceID";  break;
  ------------------
  |  Branch (4660:5): [True: 0, False: 74.9k]
  ------------------
 4661|      0|    case EvqVertexId:       message = "can't modify gl_VertexID";    break;
  ------------------
  |  Branch (4661:5): [True: 0, False: 74.9k]
  ------------------
 4662|      0|    case EvqFace:           message = "can't modify gl_FrontFace";   break;
  ------------------
  |  Branch (4662:5): [True: 0, False: 74.9k]
  ------------------
 4663|      0|    case EvqFragCoord:      message = "can't modify gl_FragCoord";   break;
  ------------------
  |  Branch (4663:5): [True: 0, False: 74.9k]
  ------------------
 4664|      0|    case EvqPointCoord:     message = "can't modify gl_PointCoord";  break;
  ------------------
  |  Branch (4664:5): [True: 0, False: 74.9k]
  ------------------
 4665|     93|    case EvqFragDepth:
  ------------------
  |  Branch (4665:5): [True: 93, False: 74.8k]
  ------------------
 4666|     93|        intermediate.setDepthReplacing();
 4667|       |        // "In addition, it is an error to statically write to gl_FragDepth in the fragment shader."
 4668|     93|        if (isEsProfile() && intermediate.getEarlyFragmentTests())
  ------------------
  |  Branch (4668:13): [True: 82, False: 11]
  |  Branch (4668:30): [True: 71, False: 11]
  ------------------
 4669|     71|            message = "can't modify gl_FragDepth if using early_fragment_tests";
 4670|     93|        break;
 4671|      0|    case EvqFragStencil:
  ------------------
  |  Branch (4671:5): [True: 0, False: 74.9k]
  ------------------
 4672|      0|        intermediate.setStencilReplacing();
 4673|       |        // "In addition, it is an error to statically write to gl_FragDepth in the fragment shader."
 4674|      0|        if (isEsProfile() && intermediate.getEarlyFragmentTests())
  ------------------
  |  Branch (4674:13): [True: 0, False: 0]
  |  Branch (4674:30): [True: 0, False: 0]
  ------------------
 4675|      0|            message = "can't modify EvqFragStencil if using early_fragment_tests";
 4676|      0|        break;
 4677|       |
 4678|      0|    case EvqtaskPayloadSharedEXT:
  ------------------
  |  Branch (4678:5): [True: 0, False: 74.9k]
  ------------------
 4679|      0|        if (language == EShLangMesh)
  ------------------
  |  Branch (4679:13): [True: 0, False: 0]
  ------------------
 4680|      0|            message = "can't modify variable with storage qualifier taskPayloadSharedEXT in mesh shaders";
 4681|      0|        break;
 4682|  74.8k|    default:
  ------------------
  |  Branch (4682:5): [True: 74.8k, False: 100]
  ------------------
 4683|  74.8k|        break;
 4684|  74.9k|    }
 4685|       |
 4686|  74.9k|    if (message == nullptr && binaryNode == nullptr && symNode == nullptr) {
  ------------------
  |  Branch (4686:9): [True: 74.8k, False: 78]
  |  Branch (4686:31): [True: 70.0k, False: 4.77k]
  |  Branch (4686:56): [True: 0, False: 70.0k]
  ------------------
 4687|      0|        error(loc, " l-value required", op, "");
 4688|       |
 4689|      0|        return true;
 4690|      0|    }
 4691|       |
 4692|       |    //
 4693|       |    // Everything else is okay, no error.
 4694|       |    //
 4695|  74.9k|    if (message == nullptr)
  ------------------
  |  Branch (4695:9): [True: 74.8k, False: 78]
  ------------------
 4696|  74.8k|        return false;
 4697|       |
 4698|       |    //
 4699|       |    // If we get here, we have an error and a message.
 4700|       |    //
 4701|     78|    if (symNode)
  ------------------
  |  Branch (4701:9): [True: 78, False: 0]
  ------------------
 4702|     78|        error(loc, " l-value required", op, "\"%s\" (%s)", symbol, message);
 4703|      0|    else
 4704|      0|        error(loc, " l-value required", op, "(%s)", message);
 4705|       |
 4706|     78|    return true;
 4707|  74.9k|}
_ZN7glslang13TParseContext16rValueErrorCheckERKNS_10TSourceLocEPKcPNS_12TIntermTypedE:
 4711|   597k|{
 4712|       |    // Let the base class check errors
 4713|   597k|    TParseContextBase::rValueErrorCheck(loc, op, node);
 4714|       |
 4715|   597k|    TIntermSymbol* symNode = node->getAsSymbolNode();
 4716|   597k|    if (!(symNode && symNode->getQualifier().isWriteOnly())) // base class checks
  ------------------
  |  Branch (4716:11): [True: 91.1k, False: 506k]
  |  Branch (4716:22): [True: 0, False: 91.1k]
  ------------------
 4717|   597k|        if (symNode && symNode->getQualifier().isExplicitInterpolation())
  ------------------
  |  Branch (4717:13): [True: 91.1k, False: 506k]
  |  Branch (4717:24): [True: 0, False: 91.1k]
  ------------------
 4718|      0|            error(loc, "can't read from explicitly-interpolated object: ", op, "%s", symNode->getName().c_str());
 4719|       |
 4720|       |    // local_size_{xyz} must be assigned or specialized before gl_WorkGroupSize can be assigned.
 4721|   597k|    if(node->getQualifier().builtIn == EbvWorkGroupSize &&
  ------------------
  |  Branch (4721:8): [True: 0, False: 597k]
  ------------------
 4722|      0|       !(intermediate.isLocalSizeSet() || intermediate.isLocalSizeSpecialized()))
  ------------------
  |  Branch (4722:10): [True: 0, False: 0]
  |  Branch (4722:43): [True: 0, False: 0]
  ------------------
 4723|      0|        error(loc, "can't read from gl_WorkGroupSize before a fixed workgroup size has been declared", op, "");
 4724|   597k|}
_ZN7glslang13TParseContext18constantValueCheckEPNS_12TIntermTypedEPKc:
 4731|    134|{
 4732|    134|    if (! node->getQualifier().isConstant())
  ------------------
  |  Branch (4732:9): [True: 3, False: 131]
  ------------------
 4733|      3|        error(node->getLoc(), "constant expression required", token, "");
 4734|    134|}
_ZN7glslang13TParseContext12integerCheckEPKNS_12TIntermTypedEPKc:
 4741|  11.6k|{
 4742|  11.6k|    auto from_type = node->getBasicType();
 4743|  11.6k|    if ((from_type == EbtInt || from_type == EbtUint ||
  ------------------
  |  Branch (4743:10): [True: 11.1k, False: 483]
  |  Branch (4743:33): [True: 402, False: 81]
  ------------------
 4744|     81|         intermediate.canImplicitlyPromote(from_type, EbtInt, EOpNull) ||
  ------------------
  |  Branch (4744:10): [True: 15, False: 66]
  ------------------
 4745|  11.6k|         intermediate.canImplicitlyPromote(from_type, EbtUint, EOpNull)) && node->isScalar())
  ------------------
  |  Branch (4745:10): [True: 0, False: 66]
  |  Branch (4745:77): [True: 11.6k, False: 0]
  ------------------
 4746|  11.6k|        return;
 4747|       |
 4748|     66|    error(node->getLoc(), "scalar integer expression required", token, "");
 4749|     66|}
_ZN7glslang13TParseContext15arrayIndexCheckEPKNS_12TIntermTypedEPKc:
 4756|  4.64k|{
 4757|  4.64k|    auto from_type = node->getBasicType();
 4758|       |
 4759|  4.64k|    if ((from_type == EbtInt64 || from_type == EbtUint64) &&
  ------------------
  |  Branch (4759:10): [True: 0, False: 4.64k]
  |  Branch (4759:35): [True: 0, False: 4.64k]
  ------------------
 4760|      0|        extensionTurnedOn(E_GL_EXT_shader_64bit_indexing))
  ------------------
  |  Branch (4760:9): [True: 0, False: 0]
  ------------------
 4761|      0|        return;
 4762|       |
 4763|  4.64k|    integerCheck(node, token);
 4764|  4.64k|}
_ZN7glslang13TParseContext11globalCheckERKNS_10TSourceLocEPKc:
 4771|   915k|{
 4772|   915k|    if (! symbolTable.atGlobalLevel())
  ------------------
  |  Branch (4772:9): [True: 112, False: 915k]
  ------------------
 4773|    112|        error(loc, "not allowed in nested scope", token, "");
 4774|   915k|}
_ZN7glslang13TParseContext18reservedErrorCheckERKNS_10TSourceLocERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 4780|  4.59M|{
 4781|       |    // "Identifiers starting with "gl_" are reserved for use by OpenGL, and may not be
 4782|       |    // declared in a shader; this results in a compile-time error."
 4783|  4.59M|    if (! symbolTable.atBuiltInLevel()) {
  ------------------
  |  Branch (4783:9): [True: 191k, False: 4.40M]
  ------------------
 4784|       |        // The extension GL_EXT_conservative_depth allows us to declare "gl_FragDepth".
 4785|   191k|        if (identifier == "gl_FragDepth" && extensionTurnedOn(E_GL_EXT_conservative_depth))
  ------------------
  |  Branch (4785:13): [True: 26, False: 191k]
  |  Branch (4785:45): [True: 0, False: 26]
  ------------------
 4786|      0|            return;
 4787|       |
 4788|   191k|        if (builtInName(identifier) && !extensionTurnedOn(E_GL_EXT_spirv_intrinsics))
  ------------------
  |  Branch (4788:13): [True: 277, False: 191k]
  |  Branch (4788:40): [True: 277, False: 0]
  ------------------
 4789|       |            // The extension GL_EXT_spirv_intrinsics allows us to declare identifiers starting with "gl_".
 4790|    277|            error(loc, "identifiers starting with \"gl_\" are reserved", identifier.c_str(), "");
 4791|       |
 4792|       |        // "__" are not supposed to be an error.  ES 300 (and desktop) added the clarification:
 4793|       |        // "In addition, all identifiers containing two consecutive underscores (__) are
 4794|       |        // reserved; using such a name does not itself result in an error, but may result
 4795|       |        // in undefined behavior."
 4796|       |        // however, before that, ES tests required an error.
 4797|   191k|        if (identifier.find("__") != TString::npos && !extensionTurnedOn(E_GL_EXT_spirv_intrinsics)) {
  ------------------
  |  Branch (4797:13): [True: 1, False: 191k]
  |  Branch (4797:55): [True: 1, False: 0]
  ------------------
 4798|       |            // The extension GL_EXT_spirv_intrinsics allows us to declare identifiers starting with "__".
 4799|      1|            if (isEsProfile() && version < 300)
  ------------------
  |  Branch (4799:17): [True: 1, False: 0]
  |  Branch (4799:34): [True: 0, False: 1]
  ------------------
 4800|      0|                error(loc, "identifiers containing consecutive underscores (\"__\") are reserved, and an error if version < 300", identifier.c_str(), "");
 4801|      1|            else
 4802|      1|                warn(loc, "identifiers containing consecutive underscores (\"__\") are reserved", identifier.c_str(), "");
 4803|      1|        }
 4804|   191k|    }
 4805|  4.59M|}
_ZN7glslang13TParseContext20reservedPpErrorCheckERKNS_10TSourceLocEPKcS5_:
 4811|  7.84k|{
 4812|       |    // "__" are not supposed to be an error.  ES 300 (and desktop) added the clarification:
 4813|       |    // "All macro names containing two consecutive underscores ( __ ) are reserved;
 4814|       |    // defining such a name does not itself result in an error, but may result in
 4815|       |    // undefined behavior.  All macro names prefixed with "GL_" ("GL" followed by a
 4816|       |    // single underscore) are also reserved, and defining such a name results in a
 4817|       |    // compile-time error."
 4818|       |    // however, before that, ES tests required an error.
 4819|  7.84k|    if (strncmp(identifier, "GL_", 3) == 0 && !extensionTurnedOn(E_GL_EXT_spirv_intrinsics))
  ------------------
  |  Branch (4819:9): [True: 52, False: 7.78k]
  |  Branch (4819:47): [True: 16, False: 36]
  ------------------
 4820|       |        // The extension GL_EXT_spirv_intrinsics allows us to declare macros prefixed with "GL_".
 4821|     16|        ppError(loc, "names beginning with \"GL_\" can't be (un)defined:", op,  "%s", identifier);
 4822|  7.82k|    else if (strncmp(identifier, "defined", 8) == 0)
  ------------------
  |  Branch (4822:14): [True: 0, False: 7.82k]
  ------------------
 4823|      0|        if (relaxedErrors())
  ------------------
  |  Branch (4823:13): [True: 0, False: 0]
  ------------------
 4824|      0|            ppWarn(loc, "\"defined\" is (un)defined:", op,  "%s", identifier);
 4825|      0|        else
 4826|      0|            ppError(loc, "\"defined\" can't be (un)defined:", op,  "%s", identifier);
 4827|  7.82k|    else if (strstr(identifier, "__") != nullptr && !extensionTurnedOn(E_GL_EXT_spirv_intrinsics)) {
  ------------------
  |  Branch (4827:14): [True: 23, False: 7.80k]
  |  Branch (4827:53): [True: 23, False: 0]
  ------------------
 4828|       |        // The extension GL_EXT_spirv_intrinsics allows us to declare macros prefixed with "__".
 4829|     23|        if (isEsProfile() && version >= 300 &&
  ------------------
  |  Branch (4829:13): [True: 15, False: 8]
  |  Branch (4829:30): [True: 15, False: 0]
  ------------------
 4830|     15|            (strcmp(identifier, "__LINE__") == 0 ||
  ------------------
  |  Branch (4830:14): [True: 0, False: 15]
  ------------------
 4831|     15|             strcmp(identifier, "__FILE__") == 0 ||
  ------------------
  |  Branch (4831:14): [True: 0, False: 15]
  ------------------
 4832|     15|             strcmp(identifier, "__VERSION__") == 0))
  ------------------
  |  Branch (4832:14): [True: 0, False: 15]
  ------------------
 4833|      0|            ppError(loc, "predefined names can't be (un)defined:", op,  "%s", identifier);
 4834|     23|        else {
 4835|     23|            if (isEsProfile() && version < 300 && !relaxedErrors())
  ------------------
  |  Branch (4835:17): [True: 15, False: 8]
  |  Branch (4835:34): [True: 0, False: 15]
  |  Branch (4835:51): [True: 0, False: 0]
  ------------------
 4836|      0|                ppError(loc, "names containing consecutive underscores are reserved, and an error if version < 300:", op, "%s", identifier);
 4837|     23|            else
 4838|     23|                ppWarn(loc, "names containing consecutive underscores are reserved:", op, "%s", identifier);
 4839|     23|        }
 4840|     23|    }
 4841|  7.84k|}
_ZN7glslang13TParseContext21lineContinuationCheckERKNS_10TSourceLocEb:
 4849|  7.95k|{
 4850|  7.95k|    const char* message = "line continuation";
 4851|       |
 4852|  7.95k|    bool lineContinuationAllowed = (isEsProfile() && version >= 300) ||
  ------------------
  |  Branch (4852:37): [True: 0, False: 7.95k]
  |  Branch (4852:54): [True: 0, False: 0]
  ------------------
 4853|  7.95k|                                   (!isEsProfile() && (version >= 420 || extensionTurnedOn(E_GL_ARB_shading_language_420pack)));
  ------------------
  |  Branch (4853:37): [True: 7.95k, False: 0]
  |  Branch (4853:56): [True: 0, False: 7.95k]
  |  Branch (4853:74): [True: 62, False: 7.88k]
  ------------------
 4854|       |
 4855|  7.95k|    if (endOfComment) {
  ------------------
  |  Branch (4855:9): [True: 24, False: 7.92k]
  ------------------
 4856|     24|        if (lineContinuationAllowed)
  ------------------
  |  Branch (4856:13): [True: 0, False: 24]
  ------------------
 4857|      0|            warn(loc, "used at end of comment; the following line is still part of the comment", message, "");
 4858|     24|        else
 4859|     24|            warn(loc, "used at end of comment, but this version does not provide line continuation", message, "");
 4860|       |
 4861|     24|        return lineContinuationAllowed;
 4862|     24|    }
 4863|       |
 4864|  7.92k|    if (relaxedErrors()) {
  ------------------
  |  Branch (4864:9): [True: 0, False: 7.92k]
  ------------------
 4865|      0|        if (! lineContinuationAllowed)
  ------------------
  |  Branch (4865:13): [True: 0, False: 0]
  ------------------
 4866|      0|            warn(loc, "not allowed in this version", message, "");
 4867|      0|        return true;
 4868|  7.92k|    } else {
 4869|  7.92k|        profileRequires(loc, EEsProfile, 300, nullptr, message);
 4870|  7.92k|        profileRequires(loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, message);
 4871|  7.92k|    }
 4872|       |
 4873|  7.92k|    return lineContinuationAllowed;
 4874|  7.92k|}
_ZN7glslang13TParseContext11builtInNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 4877|   876k|{
 4878|   876k|    return identifier.compare(0, 3, "gl_") == 0;
 4879|   876k|}
_ZN7glslang13TParseContext16constructorErrorERKNS_10TSourceLocEP11TIntermNodeRNS_9TFunctionENS_9TOperatorERNS_5TTypeE:
 4901|  76.3k|{
 4902|       |    // See if the constructor does not establish the main type, only requalifies
 4903|       |    // it, in which case the type comes from the argument instead of from the
 4904|       |    // constructor function.
 4905|  76.3k|    switch (op) {
 4906|      0|    case EOpConstructNonuniform:
  ------------------
  |  Branch (4906:5): [True: 0, False: 76.3k]
  ------------------
 4907|      0|        if (node != nullptr && node->getAsTyped() != nullptr) {
  ------------------
  |  Branch (4907:13): [True: 0, False: 0]
  |  Branch (4907:32): [True: 0, False: 0]
  ------------------
 4908|      0|            type.shallowCopy(node->getAsTyped()->getType());
 4909|      0|            type.getQualifier().makeTemporary();
 4910|      0|            type.getQualifier().nonUniform = true;
 4911|      0|        }
 4912|      0|        break;
 4913|  76.3k|    default:
  ------------------
  |  Branch (4913:5): [True: 76.3k, False: 0]
  ------------------
 4914|  76.3k|        type.shallowCopy(function.getType());
 4915|  76.3k|        break;
 4916|  76.3k|    }
 4917|       |
 4918|  76.3k|    TString constructorString;
 4919|  76.3k|    if (intermediate.getEnhancedMsgs())
  ------------------
  |  Branch (4919:9): [True: 0, False: 76.3k]
  ------------------
 4920|      0|        constructorString.append(type.getCompleteString(true, false, false, true)).append(" constructor");
 4921|  76.3k|    else
 4922|  76.3k|        constructorString.append("constructor");
 4923|       |
 4924|       |    // See if it's a matrix
 4925|  76.3k|    bool constructingMatrix = false;
 4926|  76.3k|    switch (op) {
 4927|    232|    case EOpConstructTextureSampler:
  ------------------
  |  Branch (4927:5): [True: 232, False: 76.1k]
  ------------------
 4928|    232|        return constructorTextureSamplerError(loc, function);
 4929|     75|    case EOpConstructMat2x2:
  ------------------
  |  Branch (4929:5): [True: 75, False: 76.3k]
  ------------------
 4930|     75|    case EOpConstructMat2x3:
  ------------------
  |  Branch (4930:5): [True: 0, False: 76.3k]
  ------------------
 4931|    107|    case EOpConstructMat2x4:
  ------------------
  |  Branch (4931:5): [True: 32, False: 76.3k]
  ------------------
 4932|    130|    case EOpConstructMat3x2:
  ------------------
  |  Branch (4932:5): [True: 23, False: 76.3k]
  ------------------
 4933|    194|    case EOpConstructMat3x3:
  ------------------
  |  Branch (4933:5): [True: 64, False: 76.3k]
  ------------------
 4934|    215|    case EOpConstructMat3x4:
  ------------------
  |  Branch (4934:5): [True: 21, False: 76.3k]
  ------------------
 4935|    215|    case EOpConstructMat4x2:
  ------------------
  |  Branch (4935:5): [True: 0, False: 76.3k]
  ------------------
 4936|    215|    case EOpConstructMat4x3:
  ------------------
  |  Branch (4936:5): [True: 0, False: 76.3k]
  ------------------
 4937|    219|    case EOpConstructMat4x4:
  ------------------
  |  Branch (4937:5): [True: 4, False: 76.3k]
  ------------------
 4938|    220|    case EOpConstructDMat2x2:
  ------------------
  |  Branch (4938:5): [True: 1, False: 76.3k]
  ------------------
 4939|    220|    case EOpConstructDMat2x3:
  ------------------
  |  Branch (4939:5): [True: 0, False: 76.3k]
  ------------------
 4940|    220|    case EOpConstructDMat2x4:
  ------------------
  |  Branch (4940:5): [True: 0, False: 76.3k]
  ------------------
 4941|    220|    case EOpConstructDMat3x2:
  ------------------
  |  Branch (4941:5): [True: 0, False: 76.3k]
  ------------------
 4942|    220|    case EOpConstructDMat3x3:
  ------------------
  |  Branch (4942:5): [True: 0, False: 76.3k]
  ------------------
 4943|    220|    case EOpConstructDMat3x4:
  ------------------
  |  Branch (4943:5): [True: 0, False: 76.3k]
  ------------------
 4944|    220|    case EOpConstructDMat4x2:
  ------------------
  |  Branch (4944:5): [True: 0, False: 76.3k]
  ------------------
 4945|    220|    case EOpConstructDMat4x3:
  ------------------
  |  Branch (4945:5): [True: 0, False: 76.3k]
  ------------------
 4946|    220|    case EOpConstructDMat4x4:
  ------------------
  |  Branch (4946:5): [True: 0, False: 76.3k]
  ------------------
 4947|    220|    case EOpConstructF16Mat2x2:
  ------------------
  |  Branch (4947:5): [True: 0, False: 76.3k]
  ------------------
 4948|    220|    case EOpConstructF16Mat2x3:
  ------------------
  |  Branch (4948:5): [True: 0, False: 76.3k]
  ------------------
 4949|    220|    case EOpConstructF16Mat2x4:
  ------------------
  |  Branch (4949:5): [True: 0, False: 76.3k]
  ------------------
 4950|    220|    case EOpConstructF16Mat3x2:
  ------------------
  |  Branch (4950:5): [True: 0, False: 76.3k]
  ------------------
 4951|    220|    case EOpConstructF16Mat3x3:
  ------------------
  |  Branch (4951:5): [True: 0, False: 76.3k]
  ------------------
 4952|    220|    case EOpConstructF16Mat3x4:
  ------------------
  |  Branch (4952:5): [True: 0, False: 76.3k]
  ------------------
 4953|    220|    case EOpConstructF16Mat4x2:
  ------------------
  |  Branch (4953:5): [True: 0, False: 76.3k]
  ------------------
 4954|    220|    case EOpConstructF16Mat4x3:
  ------------------
  |  Branch (4954:5): [True: 0, False: 76.3k]
  ------------------
 4955|    220|    case EOpConstructF16Mat4x4:
  ------------------
  |  Branch (4955:5): [True: 0, False: 76.3k]
  ------------------
 4956|    220|        constructingMatrix = true;
 4957|    220|        break;
 4958|  75.9k|    default:
  ------------------
  |  Branch (4958:5): [True: 75.9k, False: 452]
  ------------------
 4959|  75.9k|        break;
 4960|  76.3k|    }
 4961|       |
 4962|       |    //
 4963|       |    // Walk the arguments for first-pass checks and collection of information.
 4964|       |    //
 4965|       |
 4966|  76.1k|    int size = 0;
 4967|  76.1k|    bool constType = true;
 4968|  76.1k|    bool specConstType = false;   // value is only valid if constType is true
 4969|  76.1k|    bool full = false;
 4970|  76.1k|    bool overFull = false;
 4971|  76.1k|    bool matrixInMatrix = false;
 4972|  76.1k|    bool arrayArg = false;
 4973|  76.1k|    bool floatArgument = false;
 4974|  76.1k|    bool intArgument = false;
 4975|   176k|    for (int arg = 0; arg < function.getParamCount(); ++arg) {
  ------------------
  |  Branch (4975:23): [True: 100k, False: 76.1k]
  ------------------
 4976|   100k|        if (function[arg].type->isArray()) {
  ------------------
  |  Branch (4976:13): [True: 1.06k, False: 99.1k]
  ------------------
 4977|  1.06k|            if (function[arg].type->isUnsizedArray()) {
  ------------------
  |  Branch (4977:17): [True: 8, False: 1.05k]
  ------------------
 4978|       |                // Can't construct from an unsized array.
 4979|      8|                error(loc, "array argument must be sized", constructorString.c_str(), "");
 4980|      8|                return true;
 4981|      8|            }
 4982|  1.05k|            arrayArg = true;
 4983|  1.05k|        }
 4984|   100k|        if (function[arg].type->getBasicType() == EbtString) {
  ------------------
  |  Branch (4984:13): [True: 0, False: 100k]
  ------------------
 4985|      0|            error(loc, "cannot convert a string", constructorString.c_str(), "");
 4986|      0|            return true;
 4987|      0|        }
 4988|   100k|        if (constructingMatrix && function[arg].type->isMatrix())
  ------------------
  |  Branch (4988:13): [True: 806, False: 99.3k]
  |  Branch (4988:35): [True: 31, False: 775]
  ------------------
 4989|     31|            matrixInMatrix = true;
 4990|       |
 4991|       |        // 'full' will go to true when enough args have been seen.  If we loop
 4992|       |        // again, there is an extra argument.
 4993|   100k|        if (full) {
  ------------------
  |  Branch (4993:13): [True: 48, False: 100k]
  ------------------
 4994|       |            // For vectors and matrices, it's okay to have too many components
 4995|       |            // available, but not okay to have unused arguments.
 4996|     48|            overFull = true;
 4997|     48|        }
 4998|       |
 4999|   100k|        size += function[arg].type->computeNumComponents();
 5000|   100k|        if (op != EOpConstructStruct && ! type.isArray() && size >= type.computeNumComponents())
  ------------------
  |  Branch (5000:13): [True: 99.8k, False: 348]
  |  Branch (5000:41): [True: 95.6k, False: 4.23k]
  |  Branch (5000:61): [True: 30.3k, False: 65.2k]
  ------------------
 5001|  30.3k|            full = true;
 5002|       |
 5003|   100k|        if (! function[arg].type->getQualifier().isConstant())
  ------------------
  |  Branch (5003:13): [True: 7.26k, False: 92.9k]
  ------------------
 5004|  7.26k|            constType = false;
 5005|   100k|        if (function[arg].type->getQualifier().isSpecConstant())
  ------------------
  |  Branch (5005:13): [True: 585, False: 99.6k]
  ------------------
 5006|    585|            specConstType = true;
 5007|   100k|        if (function[arg].type->isFloatingDomain())
  ------------------
  |  Branch (5007:13): [True: 13.7k, False: 86.4k]
  ------------------
 5008|  13.7k|            floatArgument = true;
 5009|   100k|        if (function[arg].type->isIntegerDomain())
  ------------------
  |  Branch (5009:13): [True: 84.6k, False: 15.5k]
  ------------------
 5010|  84.6k|            intArgument = true;
 5011|   100k|        if (type.isStruct()) {
  ------------------
  |  Branch (5011:13): [True: 348, False: 99.8k]
  ------------------
 5012|    348|            if (function[arg].type->contains16BitFloat()) {
  ------------------
  |  Branch (5012:17): [True: 0, False: 348]
  ------------------
 5013|      0|                requireFloat16Arithmetic(loc, constructorString.c_str(), "can't construct structure containing 16-bit type");
 5014|      0|            }
 5015|    348|            if (function[arg].type->contains16BitInt()) {
  ------------------
  |  Branch (5015:17): [True: 0, False: 348]
  ------------------
 5016|      0|                requireInt16Arithmetic(loc, constructorString.c_str(), "can't construct structure containing 16-bit type");
 5017|      0|            }
 5018|    348|            if (function[arg].type->contains8BitInt()) {
  ------------------
  |  Branch (5018:17): [True: 0, False: 348]
  ------------------
 5019|      0|                requireInt8Arithmetic(loc, constructorString.c_str(), "can't construct structure containing 8-bit type");
 5020|      0|            }
 5021|    348|        }
 5022|   100k|    }
 5023|  76.1k|    if (op == EOpConstructNonuniform)
  ------------------
  |  Branch (5023:9): [True: 0, False: 76.1k]
  ------------------
 5024|      0|        constType = false;
 5025|       |
 5026|  76.1k|    switch (op) {
 5027|    760|    case EOpConstructFloat16:
  ------------------
  |  Branch (5027:5): [True: 760, False: 75.3k]
  ------------------
 5028|  2.13k|    case EOpConstructF16Vec2:
  ------------------
  |  Branch (5028:5): [True: 1.37k, False: 74.7k]
  ------------------
 5029|  3.07k|    case EOpConstructF16Vec3:
  ------------------
  |  Branch (5029:5): [True: 939, False: 75.2k]
  ------------------
 5030|  4.29k|    case EOpConstructF16Vec4:
  ------------------
  |  Branch (5030:5): [True: 1.22k, False: 74.9k]
  ------------------
 5031|  4.29k|        if (type.isArray())
  ------------------
  |  Branch (5031:13): [True: 0, False: 4.29k]
  ------------------
 5032|      0|            requireFloat16Arithmetic(loc, constructorString.c_str(), "16-bit arrays not supported");
 5033|  4.29k|        if (type.isVector() && function.getParamCount() != 1)
  ------------------
  |  Branch (5033:13): [True: 3.53k, False: 760]
  |  Branch (5033:32): [True: 10, False: 3.52k]
  ------------------
 5034|     10|            requireFloat16Arithmetic(loc, constructorString.c_str(), "16-bit vectors only take vector types");
 5035|  4.29k|        break;
 5036|  1.27k|    case EOpConstructUint16:
  ------------------
  |  Branch (5036:5): [True: 1.27k, False: 74.8k]
  ------------------
 5037|  2.89k|    case EOpConstructU16Vec2:
  ------------------
  |  Branch (5037:5): [True: 1.61k, False: 74.5k]
  ------------------
 5038|  3.49k|    case EOpConstructU16Vec3:
  ------------------
  |  Branch (5038:5): [True: 594, False: 75.5k]
  ------------------
 5039|  3.67k|    case EOpConstructU16Vec4:
  ------------------
  |  Branch (5039:5): [True: 179, False: 75.9k]
  ------------------
 5040|  6.08k|    case EOpConstructInt16:
  ------------------
  |  Branch (5040:5): [True: 2.41k, False: 73.7k]
  ------------------
 5041|  8.84k|    case EOpConstructI16Vec2:
  ------------------
  |  Branch (5041:5): [True: 2.76k, False: 73.3k]
  ------------------
 5042|  9.95k|    case EOpConstructI16Vec3:
  ------------------
  |  Branch (5042:5): [True: 1.10k, False: 75.0k]
  ------------------
 5043|  11.0k|    case EOpConstructI16Vec4:
  ------------------
  |  Branch (5043:5): [True: 1.10k, False: 75.0k]
  ------------------
 5044|  11.0k|        if (type.isArray())
  ------------------
  |  Branch (5044:13): [True: 0, False: 11.0k]
  ------------------
 5045|      0|            requireInt16Arithmetic(loc, constructorString.c_str(), "16-bit arrays not supported");
 5046|  11.0k|        if (type.isVector() && function.getParamCount() != 1)
  ------------------
  |  Branch (5046:13): [True: 7.36k, False: 3.68k]
  |  Branch (5046:32): [True: 8, False: 7.35k]
  ------------------
 5047|      8|            requireInt16Arithmetic(loc, constructorString.c_str(), "16-bit vectors only take vector types");
 5048|  11.0k|        break;
 5049|  1.10k|    case EOpConstructUint8:
  ------------------
  |  Branch (5049:5): [True: 1.10k, False: 75.0k]
  ------------------
 5050|  2.27k|    case EOpConstructU8Vec2:
  ------------------
  |  Branch (5050:5): [True: 1.17k, False: 74.9k]
  ------------------
 5051|  3.39k|    case EOpConstructU8Vec3:
  ------------------
  |  Branch (5051:5): [True: 1.11k, False: 75.0k]
  ------------------
 5052|  4.45k|    case EOpConstructU8Vec4:
  ------------------
  |  Branch (5052:5): [True: 1.06k, False: 75.0k]
  ------------------
 5053|  6.47k|    case EOpConstructInt8:
  ------------------
  |  Branch (5053:5): [True: 2.01k, False: 74.1k]
  ------------------
 5054|  8.32k|    case EOpConstructI8Vec2:
  ------------------
  |  Branch (5054:5): [True: 1.84k, False: 74.3k]
  ------------------
 5055|  9.97k|    case EOpConstructI8Vec3:
  ------------------
  |  Branch (5055:5): [True: 1.64k, False: 74.5k]
  ------------------
 5056|  11.5k|    case EOpConstructI8Vec4:
  ------------------
  |  Branch (5056:5): [True: 1.61k, False: 74.5k]
  ------------------
 5057|  11.5k|        if (type.isArray())
  ------------------
  |  Branch (5057:13): [True: 0, False: 11.5k]
  ------------------
 5058|      0|            requireInt8Arithmetic(loc, constructorString.c_str(), "8-bit arrays not supported");
 5059|  11.5k|        if (type.isVector() && function.getParamCount() != 1)
  ------------------
  |  Branch (5059:13): [True: 8.46k, False: 3.12k]
  |  Branch (5059:32): [True: 2, False: 8.46k]
  ------------------
 5060|      2|            requireInt8Arithmetic(loc, constructorString.c_str(), "8-bit vectors only take vector types");
 5061|  11.5k|        break;
 5062|      0|    case EOpConstructFloatE2M1:
  ------------------
  |  Branch (5062:5): [True: 0, False: 76.1k]
  ------------------
 5063|      0|    case EOpConstructFloatE2M1Vec2:
  ------------------
  |  Branch (5063:5): [True: 0, False: 76.1k]
  ------------------
 5064|      0|    case EOpConstructFloatE2M1Vec3:
  ------------------
  |  Branch (5064:5): [True: 0, False: 76.1k]
  ------------------
 5065|      0|    case EOpConstructFloatE2M1Vec4:
  ------------------
  |  Branch (5065:5): [True: 0, False: 76.1k]
  ------------------
 5066|      0|    case EOpConstructFloatE3M2:
  ------------------
  |  Branch (5066:5): [True: 0, False: 76.1k]
  ------------------
 5067|      0|    case EOpConstructFloatE3M2Vec2:
  ------------------
  |  Branch (5067:5): [True: 0, False: 76.1k]
  ------------------
 5068|      0|    case EOpConstructFloatE3M2Vec3:
  ------------------
  |  Branch (5068:5): [True: 0, False: 76.1k]
  ------------------
 5069|      0|    case EOpConstructFloatE3M2Vec4:
  ------------------
  |  Branch (5069:5): [True: 0, False: 76.1k]
  ------------------
 5070|      0|    case EOpConstructFloatE2M3:
  ------------------
  |  Branch (5070:5): [True: 0, False: 76.1k]
  ------------------
 5071|      0|    case EOpConstructFloatE2M3Vec2:
  ------------------
  |  Branch (5071:5): [True: 0, False: 76.1k]
  ------------------
 5072|      0|    case EOpConstructFloatE2M3Vec3:
  ------------------
  |  Branch (5072:5): [True: 0, False: 76.1k]
  ------------------
 5073|      0|    case EOpConstructFloatE2M3Vec4:
  ------------------
  |  Branch (5073:5): [True: 0, False: 76.1k]
  ------------------
 5074|      0|    case EOpConstructFloatUE8M0:
  ------------------
  |  Branch (5074:5): [True: 0, False: 76.1k]
  ------------------
 5075|      0|    case EOpConstructFloatUE8M0Vec2:
  ------------------
  |  Branch (5075:5): [True: 0, False: 76.1k]
  ------------------
 5076|      0|    case EOpConstructFloatUE8M0Vec3:
  ------------------
  |  Branch (5076:5): [True: 0, False: 76.1k]
  ------------------
 5077|      0|    case EOpConstructFloatUE8M0Vec4:
  ------------------
  |  Branch (5077:5): [True: 0, False: 76.1k]
  ------------------
 5078|      0|    case EOpConstructFloatMXINT8:
  ------------------
  |  Branch (5078:5): [True: 0, False: 76.1k]
  ------------------
 5079|      0|    case EOpConstructFloatMXINT8Vec2:
  ------------------
  |  Branch (5079:5): [True: 0, False: 76.1k]
  ------------------
 5080|      0|    case EOpConstructFloatMXINT8Vec3:
  ------------------
  |  Branch (5080:5): [True: 0, False: 76.1k]
  ------------------
 5081|      0|    case EOpConstructFloatMXINT8Vec4:
  ------------------
  |  Branch (5081:5): [True: 0, False: 76.1k]
  ------------------
 5082|      0|        if (!constType || specConstType) {
  ------------------
  |  Branch (5082:13): [True: 0, False: 0]
  |  Branch (5082:27): [True: 0, False: 0]
  ------------------
 5083|      0|            for (int i = 0; i < function.getParamCount(); ++i) {
  ------------------
  |  Branch (5083:29): [True: 0, False: 0]
  ------------------
 5084|      0|                TIntermNode* arg = function.getParamCount() == 1 ? node : node->getAsAggregate()->getSequence()[i];
  ------------------
  |  Branch (5084:36): [True: 0, False: 0]
  ------------------
 5085|      0|                if (arg->getAsTyped()->getBasicType() != type.getBasicType()) {
  ------------------
  |  Branch (5085:21): [True: 0, False: 0]
  ------------------
 5086|      0|                    error(loc, "constructor argument must be a non-spec constant", constructorString.c_str(), "");
 5087|      0|                    return true;
 5088|      0|                }
 5089|      0|            }
 5090|      0|        }
 5091|      0|        break;
 5092|  49.2k|    default:
  ------------------
  |  Branch (5092:5): [True: 49.2k, False: 26.9k]
  ------------------
 5093|  49.2k|        break;
 5094|  76.1k|    }
 5095|       |
 5096|       |    // inherit constness from children
 5097|  76.1k|    if (constType) {
  ------------------
  |  Branch (5097:9): [True: 69.5k, False: 6.56k]
  ------------------
 5098|  69.5k|        bool makeSpecConst;
 5099|       |        // Finish pinning down spec-const semantics
 5100|  69.5k|        if (specConstType) {
  ------------------
  |  Branch (5100:13): [True: 585, False: 69.0k]
  ------------------
 5101|    585|            switch (op) {
 5102|      0|            case EOpConstructInt8:
  ------------------
  |  Branch (5102:13): [True: 0, False: 585]
  ------------------
 5103|     48|            case EOpConstructInt:
  ------------------
  |  Branch (5103:13): [True: 48, False: 537]
  ------------------
 5104|     97|            case EOpConstructUint:
  ------------------
  |  Branch (5104:13): [True: 49, False: 536]
  ------------------
 5105|    154|            case EOpConstructBool:
  ------------------
  |  Branch (5105:13): [True: 57, False: 528]
  ------------------
 5106|    154|            case EOpConstructBVec2:
  ------------------
  |  Branch (5106:13): [True: 0, False: 585]
  ------------------
 5107|    154|            case EOpConstructBVec3:
  ------------------
  |  Branch (5107:13): [True: 0, False: 585]
  ------------------
 5108|    154|            case EOpConstructBVec4:
  ------------------
  |  Branch (5108:13): [True: 0, False: 585]
  ------------------
 5109|    154|            case EOpConstructIVec2:
  ------------------
  |  Branch (5109:13): [True: 0, False: 585]
  ------------------
 5110|    154|            case EOpConstructIVec3:
  ------------------
  |  Branch (5110:13): [True: 0, False: 585]
  ------------------
 5111|    154|            case EOpConstructIVec4:
  ------------------
  |  Branch (5111:13): [True: 0, False: 585]
  ------------------
 5112|    154|            case EOpConstructUVec2:
  ------------------
  |  Branch (5112:13): [True: 0, False: 585]
  ------------------
 5113|    154|            case EOpConstructUVec3:
  ------------------
  |  Branch (5113:13): [True: 0, False: 585]
  ------------------
 5114|    154|            case EOpConstructUVec4:
  ------------------
  |  Branch (5114:13): [True: 0, False: 585]
  ------------------
 5115|    154|            case EOpConstructUint8:
  ------------------
  |  Branch (5115:13): [True: 0, False: 585]
  ------------------
 5116|    279|            case EOpConstructInt16:
  ------------------
  |  Branch (5116:13): [True: 125, False: 460]
  ------------------
 5117|    402|            case EOpConstructUint16:
  ------------------
  |  Branch (5117:13): [True: 123, False: 462]
  ------------------
 5118|    443|            case EOpConstructInt64:
  ------------------
  |  Branch (5118:13): [True: 41, False: 544]
  ------------------
 5119|    494|            case EOpConstructUint64:
  ------------------
  |  Branch (5119:13): [True: 51, False: 534]
  ------------------
 5120|    494|            case EOpConstructI8Vec2:
  ------------------
  |  Branch (5120:13): [True: 0, False: 585]
  ------------------
 5121|    494|            case EOpConstructI8Vec3:
  ------------------
  |  Branch (5121:13): [True: 0, False: 585]
  ------------------
 5122|    494|            case EOpConstructI8Vec4:
  ------------------
  |  Branch (5122:13): [True: 0, False: 585]
  ------------------
 5123|    494|            case EOpConstructU8Vec2:
  ------------------
  |  Branch (5123:13): [True: 0, False: 585]
  ------------------
 5124|    494|            case EOpConstructU8Vec3:
  ------------------
  |  Branch (5124:13): [True: 0, False: 585]
  ------------------
 5125|    494|            case EOpConstructU8Vec4:
  ------------------
  |  Branch (5125:13): [True: 0, False: 585]
  ------------------
 5126|    494|            case EOpConstructI16Vec2:
  ------------------
  |  Branch (5126:13): [True: 0, False: 585]
  ------------------
 5127|    494|            case EOpConstructI16Vec3:
  ------------------
  |  Branch (5127:13): [True: 0, False: 585]
  ------------------
 5128|    494|            case EOpConstructI16Vec4:
  ------------------
  |  Branch (5128:13): [True: 0, False: 585]
  ------------------
 5129|    494|            case EOpConstructU16Vec2:
  ------------------
  |  Branch (5129:13): [True: 0, False: 585]
  ------------------
 5130|    494|            case EOpConstructU16Vec3:
  ------------------
  |  Branch (5130:13): [True: 0, False: 585]
  ------------------
 5131|    494|            case EOpConstructU16Vec4:
  ------------------
  |  Branch (5131:13): [True: 0, False: 585]
  ------------------
 5132|    494|            case EOpConstructI64Vec2:
  ------------------
  |  Branch (5132:13): [True: 0, False: 585]
  ------------------
 5133|    494|            case EOpConstructI64Vec3:
  ------------------
  |  Branch (5133:13): [True: 0, False: 585]
  ------------------
 5134|    494|            case EOpConstructI64Vec4:
  ------------------
  |  Branch (5134:13): [True: 0, False: 585]
  ------------------
 5135|    494|            case EOpConstructU64Vec2:
  ------------------
  |  Branch (5135:13): [True: 0, False: 585]
  ------------------
 5136|    494|            case EOpConstructU64Vec3:
  ------------------
  |  Branch (5136:13): [True: 0, False: 585]
  ------------------
 5137|    494|            case EOpConstructU64Vec4:
  ------------------
  |  Branch (5137:13): [True: 0, False: 585]
  ------------------
 5138|       |                // This was the list of valid ones, if they aren't converting from float
 5139|       |                // and aren't making an array.
 5140|    494|                makeSpecConst = ! floatArgument && ! type.isArray();
  ------------------
  |  Branch (5140:33): [True: 494, False: 0]
  |  Branch (5140:52): [True: 494, False: 0]
  ------------------
 5141|    494|                break;
 5142|       |
 5143|      0|            case EOpConstructVec2:
  ------------------
  |  Branch (5143:13): [True: 0, False: 585]
  ------------------
 5144|      0|            case EOpConstructVec3:
  ------------------
  |  Branch (5144:13): [True: 0, False: 585]
  ------------------
 5145|      0|            case EOpConstructVec4:
  ------------------
  |  Branch (5145:13): [True: 0, False: 585]
  ------------------
 5146|       |                // This was the list of valid ones, if they aren't converting from int
 5147|       |                // and aren't making an array.
 5148|      0|                makeSpecConst = ! intArgument && !type.isArray();
  ------------------
  |  Branch (5148:33): [True: 0, False: 0]
  |  Branch (5148:50): [True: 0, False: 0]
  ------------------
 5149|      0|                break;
 5150|       |
 5151|      0|            case EOpConstructCooperativeMatrixNV:
  ------------------
  |  Branch (5151:13): [True: 0, False: 585]
  ------------------
 5152|      0|            case EOpConstructCooperativeMatrixKHR:
  ------------------
  |  Branch (5152:13): [True: 0, False: 585]
  ------------------
 5153|      0|            case EOpConstructStruct:
  ------------------
  |  Branch (5153:13): [True: 0, False: 585]
  ------------------
 5154|      0|                {
 5155|      0|                    const char *specConstantCompositeExt[] = { E_GL_EXT_spec_constant_composites };
 5156|      0|                    if (checkExtensionsRequested(loc, 1, specConstantCompositeExt, "spec constant aggregate constructor")) {
  ------------------
  |  Branch (5156:25): [True: 0, False: 0]
  ------------------
 5157|      0|                        makeSpecConst = true;
 5158|      0|                    } else {
 5159|      0|                        makeSpecConst = false;
 5160|      0|                    }
 5161|      0|                }
 5162|      0|                break;
 5163|       |
 5164|     91|            default:
  ------------------
  |  Branch (5164:13): [True: 91, False: 494]
  ------------------
 5165|       |                // anything else wasn't white-listed in the spec as a conversion
 5166|     91|                makeSpecConst = false;
 5167|     91|                break;
 5168|    585|            }
 5169|    585|        } else
 5170|  69.0k|            makeSpecConst = false;
 5171|       |
 5172|  69.5k|        if (makeSpecConst)
  ------------------
  |  Branch (5172:13): [True: 494, False: 69.1k]
  ------------------
 5173|    494|            type.getQualifier().makeSpecConstant();
 5174|  69.1k|        else if (specConstType)
  ------------------
  |  Branch (5174:18): [True: 91, False: 69.0k]
  ------------------
 5175|     91|            type.getQualifier().makeTemporary();
 5176|  69.0k|        else
 5177|  69.0k|            type.getQualifier().storage = EvqConst;
 5178|  69.5k|    }
 5179|       |
 5180|  76.1k|    if (type.isArray()) {
  ------------------
  |  Branch (5180:9): [True: 1.57k, False: 74.5k]
  ------------------
 5181|  1.57k|        if (function.getParamCount() == 0) {
  ------------------
  |  Branch (5181:13): [True: 0, False: 1.57k]
  ------------------
 5182|      0|            error(loc, "array constructor must have at least one argument", constructorString.c_str(), "");
 5183|      0|            return true;
 5184|      0|        }
 5185|       |
 5186|  1.57k|        if (type.isUnsizedArray()) {
  ------------------
  |  Branch (5186:13): [True: 337, False: 1.24k]
  ------------------
 5187|       |            // auto adapt the constructor type to the number of arguments
 5188|    337|            type.changeOuterArraySize(function.getParamCount());
 5189|  1.24k|        } else if (type.getOuterArraySize() != function.getParamCount()) {
  ------------------
  |  Branch (5189:20): [True: 6, False: 1.23k]
  ------------------
 5190|      6|            error(loc, "array constructor needs one argument per array element", constructorString.c_str(), "");
 5191|      6|            return true;
 5192|      6|        }
 5193|       |
 5194|  1.57k|        if (type.isArrayOfArrays()) {
  ------------------
  |  Branch (5194:13): [True: 264, False: 1.30k]
  ------------------
 5195|       |            // Types have to match, but we're still making the type.
 5196|       |            // Finish making the type, and the comparison is done later
 5197|       |            // when checking for conversion.
 5198|    264|            TArraySizes& arraySizes = *type.getArraySizes();
 5199|       |
 5200|       |            // At least the dimensionalities have to match.
 5201|    264|            if (! function[0].type->isArray() ||
  ------------------
  |  Branch (5201:17): [True: 4, False: 260]
  ------------------
 5202|    260|                    arraySizes.getNumDims() != function[0].type->getArraySizes()->getNumDims() + 1) {
  ------------------
  |  Branch (5202:21): [True: 34, False: 226]
  ------------------
 5203|     38|                error(loc, "array constructor argument not correct type to construct array element", constructorString.c_str(), "");
 5204|     38|                return true;
 5205|     38|            }
 5206|       |
 5207|    226|            if (arraySizes.isInnerUnsized()) {
  ------------------
  |  Branch (5207:17): [True: 153, False: 73]
  ------------------
 5208|       |                // "Arrays of arrays ..., and the size for any dimension is optional"
 5209|       |                // That means we need to adopt (from the first argument) the other array sizes into the type.
 5210|    306|                for (int d = 1; d < arraySizes.getNumDims(); ++d) {
  ------------------
  |  Branch (5210:33): [True: 153, False: 153]
  ------------------
 5211|    153|                    if (arraySizes.getDimSize(d) == UnsizedArraySize) {
  ------------------
  |  Branch (5211:25): [True: 153, False: 0]
  ------------------
 5212|    153|                        arraySizes.setDimSize(d, function[0].type->getArraySizes()->getDimSize(d - 1));
 5213|    153|                    }
 5214|    153|                }
 5215|    153|            }
 5216|    226|        }
 5217|  1.57k|    }
 5218|       |
 5219|  76.1k|    if (arrayArg && op != EOpConstructStruct && ! type.isArrayOfArrays()) {
  ------------------
  |  Branch (5219:9): [True: 264, False: 75.8k]
  |  Branch (5219:21): [True: 264, False: 0]
  |  Branch (5219:49): [True: 38, False: 226]
  ------------------
 5220|     38|        error(loc, "constructing non-array constituent from array argument", constructorString.c_str(), "");
 5221|     38|        return true;
 5222|     38|    }
 5223|       |
 5224|  76.0k|    if (matrixInMatrix && ! type.isArray()) {
  ------------------
  |  Branch (5224:9): [True: 31, False: 76.0k]
  |  Branch (5224:27): [True: 31, False: 0]
  ------------------
 5225|     31|        profileRequires(loc, ENoProfile, 120, nullptr, "constructing matrix from matrix");
 5226|       |
 5227|       |        // "If a matrix argument is given to a matrix constructor,
 5228|       |        // it is a compile-time error to have any other arguments."
 5229|     31|        if (function.getParamCount() != 1)
  ------------------
  |  Branch (5229:13): [True: 0, False: 31]
  ------------------
 5230|      0|            error(loc, "matrix constructed from matrix can only have one argument", constructorString.c_str(), "");
 5231|     31|        return false;
 5232|     31|    }
 5233|       |
 5234|  76.0k|    if (overFull) {
  ------------------
  |  Branch (5234:9): [True: 36, False: 76.0k]
  ------------------
 5235|     36|        error(loc, "too many arguments", constructorString.c_str(), "");
 5236|     36|        return true;
 5237|     36|    }
 5238|       |
 5239|  76.0k|    if (op == EOpConstructStruct && ! type.isArray() && (int)type.getStruct()->size() != function.getParamCount()) {
  ------------------
  |  Branch (5239:9): [True: 116, False: 75.8k]
  |  Branch (5239:37): [True: 95, False: 21]
  |  Branch (5239:57): [True: 0, False: 95]
  ------------------
 5240|      0|        error(loc, "Number of constructor parameters does not match the number of structure fields", constructorString.c_str(), "");
 5241|      0|        return true;
 5242|      0|    }
 5243|       |
 5244|  76.0k|    if (type.isLongVector() && !isValidLongVectorElseError(loc, type)) {
  ------------------
  |  Branch (5244:9): [True: 0, False: 76.0k]
  |  Branch (5244:32): [True: 0, False: 0]
  ------------------
 5245|      0|        return true;
 5246|      0|    }
 5247|       |
 5248|  76.0k|    if ((op != EOpConstructStruct && size != 1 && size < type.computeNumComponents()) ||
  ------------------
  |  Branch (5248:10): [True: 75.8k, False: 116]
  |  Branch (5248:38): [True: 16.3k, False: 59.5k]
  |  Branch (5248:51): [True: 36, False: 16.2k]
  ------------------
 5249|  75.9k|        (op == EOpConstructStruct && size < type.computeNumComponents())) {
  ------------------
  |  Branch (5249:10): [True: 116, False: 75.8k]
  |  Branch (5249:38): [True: 0, False: 116]
  ------------------
 5250|     36|        error(loc, "not enough data provided for construction", constructorString.c_str(), "");
 5251|     36|        return true;
 5252|     36|    }
 5253|       |
 5254|  75.9k|    if (type.isCoopMat() && function.getParamCount() != 1) {
  ------------------
  |  Branch (5254:9): [True: 0, False: 75.9k]
  |  Branch (5254:29): [True: 0, False: 0]
  ------------------
 5255|      0|        error(loc, "wrong number of arguments", constructorString.c_str(), "");
 5256|      0|        return true;
 5257|      0|    }
 5258|  75.9k|    if (type.isCoopMat() &&
  ------------------
  |  Branch (5258:9): [True: 0, False: 75.9k]
  ------------------
 5259|      0|        !(function[0].type->isScalar() || function[0].type->isCoopMat())) {
  ------------------
  |  Branch (5259:11): [True: 0, False: 0]
  |  Branch (5259:43): [True: 0, False: 0]
  ------------------
 5260|      0|        error(loc, "Cooperative matrix constructor argument must be scalar or cooperative matrix", constructorString.c_str(), "");
 5261|      0|        return true;
 5262|      0|    }
 5263|       |
 5264|  75.9k|    TIntermTyped* typed = node->getAsTyped();
 5265|  75.9k|    if (typed == nullptr) {
  ------------------
  |  Branch (5265:9): [True: 0, False: 75.9k]
  ------------------
 5266|      0|        error(loc, "constructor argument does not have a type", constructorString.c_str(), "");
 5267|      0|        return true;
 5268|      0|    }
 5269|       |
 5270|  75.9k|    if (type.isCoopMat() && typed->getType().isCoopMat()) {
  ------------------
  |  Branch (5270:9): [True: 0, False: 75.9k]
  |  Branch (5270:29): [True: 0, False: 0]
  ------------------
 5271|      0|        static constexpr int CM_UseA = 0;   // == gl_MatrixUseA
 5272|      0|        static constexpr int CM_UseB = 1;   // == gl_MatrixUseB
 5273|      0|        static constexpr int CM_UseAcc = 2; // == gl_MatrixUseAccumulator
 5274|       |
 5275|      0|        int dstUse = type.getCoopMatKHRuse();
 5276|      0|        int srcUse = typed->getType().getCoopMatKHRuse();
 5277|       |
 5278|      0|        if (extensionTurnedOn(E_GL_EXT_cooperative_matrix_maintenance1)) {
  ------------------
  |  Branch (5278:13): [True: 0, False: 0]
  ------------------
 5279|      0|            bool allowedConversion = srcUse == dstUse ||
  ------------------
  |  Branch (5279:38): [True: 0, False: 0]
  ------------------
 5280|      0|                                    (srcUse == CM_UseAcc && (dstUse == CM_UseA || dstUse == CM_UseB)) ||
  ------------------
  |  Branch (5280:38): [True: 0, False: 0]
  |  Branch (5280:62): [True: 0, False: 0]
  |  Branch (5280:83): [True: 0, False: 0]
  ------------------
 5281|      0|                                    (dstUse == CM_UseAcc && (srcUse == CM_UseA || srcUse == CM_UseB));
  ------------------
  |  Branch (5281:38): [True: 0, False: 0]
  |  Branch (5281:62): [True: 0, False: 0]
  |  Branch (5281:83): [True: 0, False: 0]
  ------------------
 5282|      0|            if (!type.sameCoopMatShape(typed->getType()) || !allowedConversion) {
  ------------------
  |  Branch (5282:17): [True: 0, False: 0]
  |  Branch (5282:61): [True: 0, False: 0]
  ------------------
 5283|      0|                error(loc, "Cooperative matrix type parameters mismatch", constructorString.c_str(), "");
 5284|      0|                return true;
 5285|      0|            }
 5286|      0|        } else if (extensionTurnedOn(E_GL_NV_cooperative_matrix2)) {
  ------------------
  |  Branch (5286:20): [True: 0, False: 0]
  ------------------
 5287|      0|            bool allowedConversion = srcUse == dstUse ||
  ------------------
  |  Branch (5287:38): [True: 0, False: 0]
  ------------------
 5288|      0|                                    (srcUse == CM_UseAcc && (dstUse == CM_UseA || dstUse == CM_UseB));
  ------------------
  |  Branch (5288:38): [True: 0, False: 0]
  |  Branch (5288:62): [True: 0, False: 0]
  |  Branch (5288:83): [True: 0, False: 0]
  ------------------
 5289|      0|            if (!type.sameCoopMatShape(typed->getType()) || !allowedConversion) {
  ------------------
  |  Branch (5289:17): [True: 0, False: 0]
  |  Branch (5289:61): [True: 0, False: 0]
  ------------------
 5290|      0|                error(loc, "Cooperative matrix type parameters mismatch", constructorString.c_str(), "");
 5291|      0|                return true;
 5292|      0|            }
 5293|      0|        } else {
 5294|      0|            if (!type.sameCoopMatShapeAndUse(typed->getType())) {
  ------------------
  |  Branch (5294:17): [True: 0, False: 0]
  ------------------
 5295|      0|                error(loc, "Cooperative matrix type parameters mismatch", constructorString.c_str(), "");
 5296|      0|                return true;
 5297|      0|            }
 5298|      0|        }
 5299|      0|    }
 5300|       |
 5301|  75.9k|    if (op != EOpConstructStruct && op != EOpConstructNonuniform && typed->getBasicType() == EbtSampler) {
  ------------------
  |  Branch (5301:9): [True: 75.8k, False: 116]
  |  Branch (5301:37): [True: 75.8k, False: 0]
  |  Branch (5301:69): [True: 0, False: 75.8k]
  ------------------
 5302|      0|        if (op == EOpConstructUVec2 && extensionTurnedOn(E_GL_ARB_bindless_texture)) {
  ------------------
  |  Branch (5302:13): [True: 0, False: 0]
  |  Branch (5302:40): [True: 0, False: 0]
  ------------------
 5303|      0|            intermediate.setBindlessTextureMode(currentCaller, AstRefTypeFunc);
 5304|      0|        }
 5305|      0|        else {
 5306|      0|            error(loc, "cannot convert a sampler", constructorString.c_str(), "");
 5307|      0|            return true;
 5308|      0|        }
 5309|      0|    }
 5310|  75.9k|    if (op != EOpConstructStruct && typed->isAtomic()) {
  ------------------
  |  Branch (5310:9): [True: 75.8k, False: 116]
  |  Branch (5310:37): [True: 0, False: 75.8k]
  ------------------
 5311|      0|        error(loc, "cannot convert an atomic_uint", constructorString.c_str(), "");
 5312|      0|        return true;
 5313|      0|    }
 5314|  75.9k|    if (typed->getBasicType() == EbtVoid) {
  ------------------
  |  Branch (5314:9): [True: 0, False: 75.9k]
  ------------------
 5315|      0|        error(loc, "cannot convert a void", constructorString.c_str(), "");
 5316|      0|        return true;
 5317|      0|    }
 5318|       |
 5319|  75.9k|    return false;
 5320|  75.9k|}
_ZN7glslang13TParseContext30constructorTextureSamplerErrorERKNS_10TSourceLocERKNS_9TFunctionE:
 5325|    232|{
 5326|    232|    TString constructorName = function.getType().getBasicTypeString();  // TODO: performance: should not be making copy; interface needs to change
 5327|    232|    const char* token = constructorName.c_str();
 5328|       |    // verify the constructor for bindless texture, the input must be ivec2 or uvec2
 5329|    232|    if (function.getParamCount() == 1) {
  ------------------
  |  Branch (5329:9): [True: 18, False: 214]
  ------------------
 5330|     18|        TType* pType = function[0].type;
 5331|     18|        TBasicType basicType = pType->getBasicType();
 5332|     18|        bool isIntegerVec2 = ((basicType == EbtUint || basicType == EbtInt) && pType->getVectorSize() == 2);
  ------------------
  |  Branch (5332:32): [True: 0, False: 18]
  |  Branch (5332:56): [True: 0, False: 18]
  |  Branch (5332:80): [True: 0, False: 0]
  ------------------
 5333|     18|        bool bindlessMode = extensionTurnedOn(E_GL_ARB_bindless_texture);
 5334|     18|        if (isIntegerVec2 && bindlessMode) {
  ------------------
  |  Branch (5334:13): [True: 0, False: 18]
  |  Branch (5334:30): [True: 0, False: 0]
  ------------------
 5335|      0|            if (pType->getSampler().isImage())
  ------------------
  |  Branch (5335:17): [True: 0, False: 0]
  ------------------
 5336|      0|                intermediate.setBindlessImageMode(currentCaller, AstRefTypeFunc);
 5337|      0|            else
 5338|      0|                intermediate.setBindlessTextureMode(currentCaller, AstRefTypeFunc);
 5339|      0|            return false;
 5340|     18|        } else {
 5341|     18|            if (!bindlessMode)
  ------------------
  |  Branch (5341:17): [True: 18, False: 0]
  ------------------
 5342|     18|                error(loc, "sampler-constructor requires the extension GL_ARB_bindless_texture enabled", token, "");
 5343|      0|            else
 5344|      0|                error(loc, "sampler-constructor requires the input to be ivec2 or uvec2", token, "");
 5345|     18|            return true;
 5346|     18|        }
 5347|     18|    }
 5348|       |
 5349|       |    // exactly two arguments needed
 5350|    214|    if (function.getParamCount() != 2) {
  ------------------
  |  Branch (5350:9): [True: 0, False: 214]
  ------------------
 5351|      0|        error(loc, "sampler-constructor requires two arguments", token, "");
 5352|      0|        return true;
 5353|      0|    }
 5354|       |
 5355|       |    // For now, not allowing arrayed constructors, the rest of this function
 5356|       |    // is set up to allow them, if this test is removed:
 5357|    214|    if (function.getType().isArray()) {
  ------------------
  |  Branch (5357:9): [True: 28, False: 186]
  ------------------
 5358|     28|        error(loc, "sampler-constructor cannot make an array of samplers", token, "");
 5359|     28|        return true;
 5360|     28|    }
 5361|       |
 5362|       |    // first argument
 5363|       |    //  * the constructor's first argument must be a texture type
 5364|       |    //  * the dimensionality (1D, 2D, 3D, Cube, Rect, Buffer, MS, and Array)
 5365|       |    //    of the texture type must match that of the constructed sampler type
 5366|       |    //    (that is, the suffixes of the type of the first argument and the
 5367|       |    //    type of the constructor will be spelled the same way)
 5368|    186|    if (function[0].type->getBasicType() != EbtSampler ||
  ------------------
  |  Branch (5368:9): [True: 7, False: 179]
  ------------------
 5369|    179|        ! function[0].type->getSampler().isTexture() ||
  ------------------
  |  Branch (5369:9): [True: 29, False: 150]
  ------------------
 5370|    150|        function[0].type->isArray()) {
  ------------------
  |  Branch (5370:9): [True: 0, False: 150]
  ------------------
 5371|     36|        error(loc, "sampler-constructor first argument must be a scalar *texture* type", token, "");
 5372|     36|        return true;
 5373|     36|    }
 5374|       |
 5375|       |    // simulate the first argument's impact on the result type, so it can be compared with the encapsulated operator!=()
 5376|    150|    TSampler texture = function.getType().getSampler();
 5377|    150|    texture.setCombined(false);
 5378|    150|    texture.shadow = false;
 5379|    150|    if (function[0].type->getSampler().isTileAttachmentQCOM()) {
  ------------------
  |  Branch (5379:9): [True: 0, False: 150]
  ------------------
 5380|       |      //TSampler& texture = const_cast<TFunction&>(function).getWritableType().getSampler();
 5381|      0|      texture.image = true;
 5382|      0|      texture.tileQCOM = true;
 5383|      0|    }
 5384|    150|    if (texture != function[0].type->getSampler()) {
  ------------------
  |  Branch (5384:9): [True: 16, False: 134]
  ------------------
 5385|     16|        error(loc, "sampler-constructor first argument must be a *texture* type"
 5386|     16|                   " matching the dimensionality and sampled type of the constructor", token, "");
 5387|     16|        return true;
 5388|     16|    }
 5389|       |
 5390|       |    // second argument
 5391|       |    //   * the constructor's second argument must be a scalar of type
 5392|       |    //     *sampler* or *samplerShadow*
 5393|    134|    if (  function[1].type->getBasicType() != EbtSampler ||
  ------------------
  |  Branch (5393:11): [True: 15, False: 119]
  ------------------
 5394|    119|        ! function[1].type->getSampler().isPureSampler() ||
  ------------------
  |  Branch (5394:9): [True: 14, False: 105]
  ------------------
 5395|    105|          function[1].type->isArray()) {
  ------------------
  |  Branch (5395:11): [True: 13, False: 92]
  ------------------
 5396|     42|        error(loc, "sampler-constructor second argument must be a scalar sampler or samplerShadow", token, "");
 5397|     42|        return true;
 5398|     42|    }
 5399|       |
 5400|     92|    return false;
 5401|    134|}
_ZN7glslang13TParseContext14voidErrorCheckERKNS_10TSourceLocERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEENS_10TBasicTypeE:
 5408|   713k|{
 5409|   713k|    if (basicType == EbtVoid) {
  ------------------
  |  Branch (5409:9): [True: 11, False: 713k]
  ------------------
 5410|     11|        error(loc, "illegal use of type 'void'", identifier.c_str(), "");
 5411|     11|        return true;
 5412|     11|    }
 5413|       |
 5414|   713k|    return false;
 5415|   713k|}
_ZN7glslang13TParseContext9boolCheckERKNS_10TSourceLocEPKNS_12TIntermTypedE:
 5419|    788|{
 5420|    788|    if (type->getBasicType() != EbtBool || type->isArray() || type->isMatrix() || type->isVector())
  ------------------
  |  Branch (5420:9): [True: 24, False: 764]
  |  Branch (5420:44): [True: 0, False: 764]
  |  Branch (5420:63): [True: 0, False: 764]
  |  Branch (5420:83): [True: 0, False: 764]
  ------------------
 5421|     24|        error(loc, "boolean expression expected", "", "");
 5422|    788|}
_ZN7glslang13TParseContext12samplerCheckERKNS_10TSourceLocERKNS_5TTypeERKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEEPNS_12TIntermTypedE:
 5432|   675k|{
 5433|       |    // Check that the appropriate extension is enabled if external sampler is used.
 5434|       |    // There are two extensions. The correct one must be used based on GLSL version.
 5435|   675k|    if (type.getBasicType() == EbtSampler && type.getSampler().isExternal()) {
  ------------------
  |  Branch (5435:9): [True: 7.15k, False: 668k]
  |  Branch (5435:46): [True: 15, False: 7.13k]
  ------------------
 5436|     15|        if (version < 300) {
  ------------------
  |  Branch (5436:13): [True: 0, False: 15]
  ------------------
 5437|      0|            requireExtensions(loc, 1, &E_GL_OES_EGL_image_external, "samplerExternalOES");
 5438|     15|        } else {
 5439|     15|            requireExtensions(loc, 1, &E_GL_OES_EGL_image_external_essl3, "samplerExternalOES");
 5440|     15|        }
 5441|     15|    }
 5442|   675k|    if (type.getSampler().isYuv()) {
  ------------------
  |  Branch (5442:9): [True: 0, False: 675k]
  ------------------
 5443|      0|        requireExtensions(loc, 1, &E_GL_EXT_YUV_target, "__samplerExternal2DY2YEXT");
 5444|      0|    }
 5445|       |
 5446|   675k|    if (type.getQualifier().storage == EvqUniform)
  ------------------
  |  Branch (5446:9): [True: 11.8k, False: 663k]
  ------------------
 5447|  11.8k|        return;
 5448|       |
 5449|   663k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtSampler)) {
  ------------------
  |  Branch (5449:9): [True: 669, False: 662k]
  |  Branch (5449:45): [True: 14, False: 655]
  ------------------
 5450|       |        // For bindless texture, sampler can be declared as an struct member
 5451|     14|        if (extensionTurnedOn(E_GL_ARB_bindless_texture)) {
  ------------------
  |  Branch (5451:13): [True: 0, False: 14]
  ------------------
 5452|      0|            if (type.getSampler().isImage())
  ------------------
  |  Branch (5452:17): [True: 0, False: 0]
  ------------------
 5453|      0|                intermediate.setBindlessImageMode(currentCaller, AstRefTypeVar);
 5454|      0|            else
 5455|      0|                intermediate.setBindlessTextureMode(currentCaller, AstRefTypeVar);
 5456|      0|        }
 5457|     14|        else {
 5458|     14|            error(loc, "non-uniform struct contains a sampler or image:", type.getBasicTypeString().c_str(), "%s", identifier.c_str());
 5459|     14|        }
 5460|     14|    }
 5461|   663k|    else if (type.getBasicType() == EbtSampler && type.getQualifier().storage != EvqUniform) {
  ------------------
  |  Branch (5461:14): [True: 221, False: 663k]
  |  Branch (5461:51): [True: 221, False: 0]
  ------------------
 5462|       |        // For bindless texture, sampler can be declared as an input/output/block member
 5463|    221|        if (extensionTurnedOn(E_GL_ARB_bindless_texture)) {
  ------------------
  |  Branch (5463:13): [True: 3, False: 218]
  ------------------
 5464|      3|            if (type.getSampler().isImage())
  ------------------
  |  Branch (5464:17): [True: 0, False: 3]
  ------------------
 5465|      0|                intermediate.setBindlessImageMode(currentCaller, AstRefTypeVar);
 5466|      3|            else
 5467|      3|                intermediate.setBindlessTextureMode(currentCaller, AstRefTypeVar);
 5468|      3|        }
 5469|    218|        else {
 5470|       |            // non-uniform sampler
 5471|       |            // not yet:  okay if it has an initializer
 5472|       |            // if (! initializer)
 5473|    218|            if (type.getSampler().isAttachmentEXT() && type.getQualifier().storage != EvqTileImageEXT)
  ------------------
  |  Branch (5473:17): [True: 0, False: 218]
  |  Branch (5473:56): [True: 0, False: 0]
  ------------------
 5474|      0|                 error(loc, "can only be used in tileImageEXT variables or function parameters:", type.getBasicTypeString().c_str(), "%s", identifier.c_str());
 5475|    218|            else if (type.getQualifier().storage != EvqTileImageEXT)
  ------------------
  |  Branch (5475:22): [True: 218, False: 0]
  ------------------
 5476|    218|                 error(loc, "sampler/image types can only be used in uniform variables or function parameters:", type.getBasicTypeString().c_str(), "%s", identifier.c_str());
 5477|    218|        }
 5478|    221|    }
 5479|   663k|    else if (type.isTensorARM() && type.getQualifier().storage != EvqUniform) {
  ------------------
  |  Branch (5479:14): [True: 0, False: 663k]
  |  Branch (5479:36): [True: 0, False: 0]
  ------------------
 5480|      0|        error(loc, "tensorARM types can only be used in uniform variables or function parameters:", "tensorARM", "%s", identifier.c_str());
 5481|      0|    }
 5482|   663k|}
_ZN7glslang13TParseContext15atomicUintCheckERKNS_10TSourceLocERKNS_5TTypeERKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 5485|   675k|{
 5486|   675k|    if (type.getQualifier().storage == EvqUniform)
  ------------------
  |  Branch (5486:9): [True: 11.8k, False: 663k]
  ------------------
 5487|  11.8k|        return;
 5488|       |
 5489|   663k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtAtomicUint))
  ------------------
  |  Branch (5489:9): [True: 669, False: 662k]
  |  Branch (5489:45): [True: 0, False: 669]
  ------------------
 5490|      0|        error(loc, "non-uniform struct contains an atomic_uint:", type.getBasicTypeString().c_str(), "%s", identifier.c_str());
 5491|   663k|    else if (type.getBasicType() == EbtAtomicUint && type.getQualifier().storage != EvqUniform)
  ------------------
  |  Branch (5491:14): [True: 0, False: 663k]
  |  Branch (5491:54): [True: 0, False: 0]
  ------------------
 5492|      0|        error(loc, "atomic_uints can only be used in uniform variables or function parameters:", type.getBasicTypeString().c_str(), "%s", identifier.c_str());
 5493|   663k|}
_ZN7glslang13TParseContext14accStructCheckERKNS_10TSourceLocERKNS_5TTypeERKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 5496|   675k|{
 5497|   675k|    if (type.getQualifier().storage == EvqUniform)
  ------------------
  |  Branch (5497:9): [True: 11.8k, False: 663k]
  ------------------
 5498|  11.8k|        return;
 5499|       |
 5500|   663k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtAccStruct))
  ------------------
  |  Branch (5500:9): [True: 669, False: 662k]
  |  Branch (5500:45): [True: 0, False: 669]
  ------------------
 5501|      0|        error(loc, "non-uniform struct contains an accelerationStructureNV:", type.getBasicTypeString().c_str(), "%s", identifier.c_str());
 5502|   663k|    else if (type.getBasicType() == EbtAccStruct && type.getQualifier().storage != EvqUniform)
  ------------------
  |  Branch (5502:14): [True: 0, False: 663k]
  |  Branch (5502:53): [True: 0, False: 0]
  ------------------
 5503|      0|        error(loc, "accelerationStructureNV can only be used in uniform variables or function parameters:",
 5504|      0|            type.getBasicTypeString().c_str(), "%s", identifier.c_str());
 5505|       |
 5506|   663k|}
_ZN7glslang13TParseContext17hitObjectEXTCheckERKNS_10TSourceLocERKNS_5TTypeERKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 5509|   675k|{
 5510|   675k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtHitObjectEXT)) {
  ------------------
  |  Branch (5510:9): [True: 691, False: 674k]
  |  Branch (5510:45): [True: 0, False: 691]
  ------------------
 5511|      0|        error(loc, "struct is not allowed to contain hitObjectEXT:", type.getTypeName().c_str(), "%s", identifier.c_str());
 5512|   675k|    } else if (type.getBasicType() == EbtHitObjectEXT) {
  ------------------
  |  Branch (5512:16): [True: 0, False: 675k]
  ------------------
 5513|      0|        TStorageQualifier qualifier = type.getQualifier().storage;
 5514|      0|        if (qualifier != EvqGlobal && qualifier != EvqTemporary) {
  ------------------
  |  Branch (5514:13): [True: 0, False: 0]
  |  Branch (5514:39): [True: 0, False: 0]
  ------------------
 5515|      0|            error(loc, "hitObjectEXT can only be declared in global or function scope with no storage qualifier:", "hitObjectEXT", "%s", identifier.c_str());
 5516|      0|        }
 5517|      0|    }
 5518|   675k|}
_ZN7glslang13TParseContext16hitObjectNVCheckERKNS_10TSourceLocERKNS_5TTypeERKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 5520|   675k|{
 5521|   675k|    if (type.getBasicType() == EbtStruct && ( containsFieldWithBasicType(type, EbtHitObjectNV))) {
  ------------------
  |  Branch (5521:9): [True: 691, False: 674k]
  |  Branch (5521:45): [True: 0, False: 691]
  ------------------
 5522|      0|        error(loc, "struct is not allowed to contain hitObjectNV:", type.getTypeName().c_str(), "%s", identifier.c_str());
 5523|   675k|    } else if ((type.getBasicType() == EbtHitObjectNV)) {
  ------------------
  |  Branch (5523:16): [True: 0, False: 675k]
  ------------------
 5524|      0|        TStorageQualifier qualifier = type.getQualifier().storage;
 5525|      0|        if (qualifier != EvqGlobal && qualifier != EvqTemporary) {
  ------------------
  |  Branch (5525:13): [True: 0, False: 0]
  |  Branch (5525:39): [True: 0, False: 0]
  ------------------
 5526|      0|            error(loc, "hitObjectNV can only be declared in global or function scope with no storage qualifier:", "hitObjectNV", "%s", identifier.c_str());
 5527|      0|        }
 5528|      0|    }
 5529|   675k|}
_ZN7glslang13TParseContext22transparentOpaqueCheckERKNS_10TSourceLocERKNS_5TTypeERKNSt3__112basic_stringIcNS7_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 5532|   675k|{
 5533|   675k|    if (parsingBuiltins)
  ------------------
  |  Branch (5533:9): [True: 541k, False: 133k]
  ------------------
 5534|   541k|        return;
 5535|       |
 5536|   133k|    if (type.getQualifier().storage != EvqUniform)
  ------------------
  |  Branch (5536:9): [True: 125k, False: 7.65k]
  ------------------
 5537|   125k|        return;
 5538|       |
 5539|  7.65k|    if (type.containsNonOpaque()) {
  ------------------
  |  Branch (5539:9): [True: 626, False: 7.02k]
  ------------------
 5540|       |        // Vulkan doesn't allow transparent uniforms outside of blocks
 5541|    626|        if (spvVersion.vulkan > 0 && !spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (5541:13): [True: 626, False: 0]
  |  Branch (5541:38): [True: 626, False: 0]
  ------------------
 5542|    626|            vulkanRemoved(loc, "non-opaque uniforms outside a block");
 5543|       |        // OpenGL wants locations on these (unless they are getting automapped)
 5544|    626|        if (spvVersion.openGl > 0 && !type.getQualifier().hasLocation() && !intermediate.getAutoMapLocations())
  ------------------
  |  Branch (5544:13): [True: 0, False: 626]
  |  Branch (5544:38): [True: 0, False: 0]
  |  Branch (5544:76): [True: 0, False: 0]
  ------------------
 5545|      0|            error(loc, "non-opaque uniform variables need a layout(location=L)", identifier.c_str(), "");
 5546|    626|    }
 5547|  7.65k|}
_ZN7glslang13TParseContext20memberQualifierCheckERNS_11TPublicTypeE:
 5553|  5.53k|{
 5554|  5.53k|    globalQualifierFixCheck(publicType.loc, publicType.qualifier, true);
 5555|  5.53k|    checkNoShaderLayouts(publicType.loc, publicType.shaderQualifiers);
 5556|  5.53k|    if (publicType.qualifier.isNonUniform()) {
  ------------------
  |  Branch (5556:9): [True: 0, False: 5.53k]
  ------------------
 5557|      0|        error(publicType.loc, "not allowed on block or structure members", "nonuniformEXT", "");
 5558|      0|        publicType.qualifier.nonUniform = false;
 5559|      0|    }
 5560|  5.53k|    if (publicType.qualifier.isPatch()) {
  ------------------
  |  Branch (5560:9): [True: 0, False: 5.53k]
  ------------------
 5561|      0|        error(publicType.loc, "not allowed on block or structure members",
 5562|      0|              "patch", "");
 5563|      0|    }
 5564|  5.53k|}
_ZN7glslang13TParseContext23globalQualifierFixCheckERKNS_10TSourceLocERNS_10TQualifierEbPKNS_11TPublicTypeE:
 5570|  1.41M|{
 5571|  1.41M|    bool nonuniformOkay = false;
 5572|       |
 5573|       |    // move from parameter/unknown qualifiers to pipeline in/out qualifiers
 5574|  1.41M|    switch (qualifier.storage) {
 5575|   234k|    case EvqIn:
  ------------------
  |  Branch (5575:5): [True: 234k, False: 1.17M]
  ------------------
 5576|   234k|        profileRequires(loc, ENoProfile, 130, nullptr, "in for stage inputs");
 5577|   234k|        profileRequires(loc, EEsProfile, 300, nullptr, "in for stage inputs");
 5578|   234k|        qualifier.storage = EvqVaryingIn;
 5579|   234k|        nonuniformOkay = true;
 5580|   234k|        break;
 5581|  27.3k|    case EvqOut:
  ------------------
  |  Branch (5581:5): [True: 27.3k, False: 1.38M]
  ------------------
 5582|  27.3k|        profileRequires(loc, ENoProfile, 130, nullptr, "out for stage outputs");
 5583|  27.3k|        profileRequires(loc, EEsProfile, 300, nullptr, "out for stage outputs");
 5584|  27.3k|        qualifier.storage = EvqVaryingOut;
 5585|  27.3k|        if (intermediate.isInvariantAll())
  ------------------
  |  Branch (5585:13): [True: 0, False: 27.3k]
  ------------------
 5586|      0|            qualifier.invariant = true;
 5587|  27.3k|        break;
 5588|      0|    case EvqInOut:
  ------------------
  |  Branch (5588:5): [True: 0, False: 1.41M]
  ------------------
 5589|      0|        qualifier.storage = EvqVaryingIn;
 5590|      0|        error(loc, "cannot use 'inout' at global scope", "", "");
 5591|      0|        break;
 5592|   814k|    case EvqGlobal:
  ------------------
  |  Branch (5592:5): [True: 814k, False: 597k]
  ------------------
 5593|   817k|    case EvqTemporary:
  ------------------
  |  Branch (5593:5): [True: 3.40k, False: 1.40M]
  ------------------
 5594|   817k|        nonuniformOkay = true;
 5595|   817k|        break;
 5596|  15.0k|    case EvqUniform:
  ------------------
  |  Branch (5596:5): [True: 15.0k, False: 1.39M]
  ------------------
 5597|       |        // According to GLSL spec: The std430 qualifier is supported only for shader storage blocks; a shader using
 5598|       |        // the std430 qualifier on a uniform block will fail to compile.
 5599|       |        // Only check the global declaration: layout(std430) uniform;
 5600|  15.0k|        if (blockName == nullptr &&
  ------------------
  |  Branch (5600:13): [True: 5.96k, False: 9.12k]
  ------------------
 5601|  5.96k|            qualifier.layoutPacking == ElpStd430)
  ------------------
  |  Branch (5601:13): [True: 0, False: 5.96k]
  ------------------
 5602|      0|        {
 5603|      0|            requireExtensions(loc, 1, &E_GL_EXT_scalar_block_layout, "default std430 layout for uniform");
 5604|      0|        }
 5605|       |
 5606|  15.0k|        if (publicType != nullptr && publicType->isImage() &&
  ------------------
  |  Branch (5606:13): [True: 11.8k, False: 3.22k]
  |  Branch (5606:38): [True: 2.24k, False: 9.61k]
  ------------------
 5607|  2.24k|            (qualifier.layoutFormat > ElfExtSizeGuard && qualifier.layoutFormat < ElfCount))
  ------------------
  |  Branch (5607:14): [True: 0, False: 2.24k]
  |  Branch (5607:58): [True: 0, False: 0]
  ------------------
 5608|      0|            qualifier.layoutFormat = mapLegacyLayoutFormat(qualifier.layoutFormat, publicType->sampler.getBasicType());
 5609|       |
 5610|  15.0k|        break;
 5611|   317k|    default:
  ------------------
  |  Branch (5611:5): [True: 317k, False: 1.09M]
  ------------------
 5612|   317k|        break;
 5613|  1.41M|    }
 5614|       |
 5615|  1.41M|    if (!nonuniformOkay && qualifier.isNonUniform())
  ------------------
  |  Branch (5615:9): [True: 359k, False: 1.05M]
  |  Branch (5615:28): [True: 0, False: 359k]
  ------------------
 5616|      0|        error(loc, "for non-parameter, can only apply to 'in' or no storage qualifier", "nonuniformEXT", "");
 5617|       |
 5618|  1.41M|    if (qualifier.isSpirvByReference())
  ------------------
  |  Branch (5618:9): [True: 0, False: 1.41M]
  ------------------
 5619|      0|        error(loc, "can only apply to parameter", "spirv_by_reference", "");
 5620|       |
 5621|  1.41M|    if (qualifier.isSpirvLiteral())
  ------------------
  |  Branch (5621:9): [True: 0, False: 1.41M]
  ------------------
 5622|      0|        error(loc, "can only apply to parameter", "spirv_literal", "");
 5623|       |
 5624|       |    // Storage qualifier isn't ready for memberQualifierCheck, we should skip invariantCheck for it.
 5625|  1.41M|    if (!isMemberCheck || structNestingLevel > 0)
  ------------------
  |  Branch (5625:9): [True: 1.40M, False: 5.53k]
  |  Branch (5625:27): [True: 66, False: 5.47k]
  ------------------
 5626|  1.40M|        invariantCheck(loc, qualifier);
 5627|       |
 5628|  1.41M|    if (qualifier.isFullQuads()) {
  ------------------
  |  Branch (5628:9): [True: 0, False: 1.41M]
  ------------------
 5629|      0|        if (qualifier.storage != EvqVaryingIn)
  ------------------
  |  Branch (5629:13): [True: 0, False: 0]
  ------------------
 5630|      0|            error(loc, "can only apply to input layout", "full_quads ", "");
 5631|      0|        intermediate.setReqFullQuadsMode();
 5632|      0|    }
 5633|       |
 5634|  1.41M|    if (qualifier.isQuadDeriv()) {
  ------------------
  |  Branch (5634:9): [True: 0, False: 1.41M]
  ------------------
 5635|      0|        if (qualifier.storage != EvqVaryingIn)
  ------------------
  |  Branch (5635:13): [True: 0, False: 0]
  ------------------
 5636|      0|            error(loc, "can only apply to input layout", "quad_derivatives", "");
 5637|      0|        intermediate.setQuadDerivMode();
 5638|      0|    }
 5639|  1.41M|}
_ZN7glslang13TParseContext24globalQualifierTypeCheckERKNS_10TSourceLocERKNS_10TQualifierERKNS_11TPublicTypeE:
 5645|  10.6M|{
 5646|  10.6M|    if (! symbolTable.atGlobalLevel())
  ------------------
  |  Branch (5646:9): [True: 114k, False: 10.5M]
  ------------------
 5647|   114k|        return;
 5648|       |
 5649|  10.5M|    if (!(publicType.userDef && publicType.userDef->isReference()) && !publicType.isTensorARM() && !parsingBuiltins) {
  ------------------
  |  Branch (5649:11): [True: 1.77k, False: 10.5M]
  |  Branch (5649:33): [True: 0, False: 1.77k]
  |  Branch (5649:71): [True: 10.5M, False: 0]
  |  Branch (5649:100): [True: 25.8k, False: 10.5M]
  ------------------
 5650|  25.8k|        if (qualifier.isMemoryQualifierImageAndSSBOOnly() && ! publicType.isImage() && publicType.qualifier.storage != EvqBuffer) {
  ------------------
  |  Branch (5650:13): [True: 1.19k, False: 24.6k]
  |  Branch (5650:62): [True: 1, False: 1.19k]
  |  Branch (5650:88): [True: 1, False: 0]
  ------------------
 5651|      1|            error(loc, "memory qualifiers cannot be used on this type", "", "");
 5652|  25.8k|        } else if (qualifier.isMemory() && (publicType.basicType != EbtSampler) && !publicType.qualifier.isUniformOrBuffer()) {
  ------------------
  |  Branch (5652:20): [True: 1.19k, False: 24.6k]
  |  Branch (5652:44): [True: 0, False: 1.19k]
  |  Branch (5652:84): [True: 0, False: 0]
  ------------------
 5653|      0|            error(loc, "memory qualifiers cannot be used on this type", "", "");
 5654|      0|        }
 5655|  25.8k|    }
 5656|       |
 5657|  10.5M|    if (qualifier.storage == EvqBuffer &&
  ------------------
  |  Branch (5657:9): [True: 0, False: 10.5M]
  ------------------
 5658|      0|        publicType.basicType != EbtBlock &&
  ------------------
  |  Branch (5658:9): [True: 0, False: 0]
  ------------------
 5659|      0|        !qualifier.hasBufferReference() &&
  ------------------
  |  Branch (5659:9): [True: 0, False: 0]
  ------------------
 5660|      0|        !qualifier.isBufferType())
  ------------------
  |  Branch (5660:9): [True: 0, False: 0]
  ------------------
 5661|      0|        error(loc, "buffers can be declared only as blocks", "buffer", "");
 5662|       |
 5663|  10.5M|    if (qualifier.storage != EvqVaryingIn && publicType.basicType == EbtDouble &&
  ------------------
  |  Branch (5663:9): [True: 10.3M, False: 231k]
  |  Branch (5663:46): [True: 352k, False: 9.96M]
  ------------------
 5664|   352k|        extensionTurnedOn(E_GL_ARB_vertex_attrib_64bit) && language == EShLangVertex &&
  ------------------
  |  Branch (5664:9): [True: 0, False: 352k]
  |  Branch (5664:60): [True: 0, False: 0]
  ------------------
 5665|      0|        version < 400) {
  ------------------
  |  Branch (5665:9): [True: 0, False: 0]
  ------------------
 5666|      0|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 410, E_GL_ARB_gpu_shader_fp64, "vertex-shader `double` type");
 5667|      0|    }
 5668|  10.5M|    if (qualifier.storage != EvqVaryingIn && qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (5668:9): [True: 10.3M, False: 231k]
  |  Branch (5668:46): [True: 10.2M, False: 21.7k]
  ------------------
 5669|  10.2M|        return;
 5670|       |
 5671|   253k|    if (publicType.shaderQualifiers.hasBlendEquation())
  ------------------
  |  Branch (5671:9): [True: 0, False: 253k]
  ------------------
 5672|      0|        error(loc, "can only be applied to a standalone 'out'", "blend equation", "");
 5673|       |
 5674|       |    // now, knowing it is a shader in/out, do all the in/out semantic checks
 5675|       |
 5676|   253k|    if (isTypeInt(publicType.basicType) || publicType.basicType == EbtDouble) {
  ------------------
  |  Branch (5676:9): [True: 227k, False: 26.3k]
  |  Branch (5676:44): [True: 23, False: 26.3k]
  ------------------
 5677|   227k|        profileRequires(loc, EEsProfile, 300, nullptr, "non-float shader input/output");
 5678|   227k|        profileRequires(loc, ~EEsProfile, 130, nullptr, "non-float shader input/output");
 5679|   227k|    }
 5680|       |
 5681|   253k|    if (!qualifier.flat && !qualifier.isExplicitInterpolation() && !qualifier.isPervertexNV() && !qualifier.isPervertexEXT()) {
  ------------------
  |  Branch (5681:9): [True: 217k, False: 36.1k]
  |  Branch (5681:28): [True: 217k, False: 0]
  |  Branch (5681:68): [True: 217k, False: 0]
  |  Branch (5681:98): [True: 217k, False: 0]
  ------------------
 5682|   217k|        if (isTypeInt(publicType.basicType) ||
  ------------------
  |  Branch (5682:13): [True: 191k, False: 25.9k]
  ------------------
 5683|  25.9k|            publicType.basicType == EbtDouble ||
  ------------------
  |  Branch (5683:13): [True: 1, False: 25.9k]
  ------------------
 5684|  25.9k|            (publicType.userDef && (   publicType.userDef->containsBasicType(EbtInt)
  ------------------
  |  Branch (5684:14): [True: 454, False: 25.5k]
  |  Branch (5684:40): [True: 13, False: 441]
  ------------------
 5685|    441|                                    || publicType.userDef->containsBasicType(EbtUint)
  ------------------
  |  Branch (5685:40): [True: 0, False: 441]
  ------------------
 5686|    441|                                    || publicType.userDef->contains16BitInt()
  ------------------
  |  Branch (5686:40): [True: 0, False: 441]
  ------------------
 5687|    441|                                    || publicType.userDef->contains8BitInt()
  ------------------
  |  Branch (5687:40): [True: 0, False: 441]
  ------------------
 5688|    441|                                    || publicType.userDef->contains64BitInt()
  ------------------
  |  Branch (5688:40): [True: 0, False: 441]
  ------------------
 5689|   191k|                                    || publicType.userDef->containsDouble()))) {
  ------------------
  |  Branch (5689:40): [True: 0, False: 441]
  ------------------
 5690|   191k|            if (qualifier.storage == EvqVaryingIn && language == EShLangFragment)
  ------------------
  |  Branch (5690:17): [True: 176k, False: 14.9k]
  |  Branch (5690:54): [True: 16, False: 176k]
  ------------------
 5691|     16|                error(loc, "must be qualified as flat", TType::getBasicString(publicType.basicType), "%s", GetStorageQualifierString(qualifier.storage));
 5692|   191k|            else if (qualifier.storage == EvqVaryingOut && language == EShLangVertex && version == 300)
  ------------------
  |  Branch (5692:22): [True: 14.9k, False: 176k]
  |  Branch (5692:60): [True: 2.66k, False: 12.2k]
  |  Branch (5692:89): [True: 0, False: 2.66k]
  ------------------
 5693|      0|                error(loc, "must be qualified as flat", TType::getBasicString(publicType.basicType), "%s", GetStorageQualifierString(qualifier.storage));
 5694|   191k|        }
 5695|   217k|    }
 5696|       |
 5697|   253k|    if (qualifier.isPatch() && qualifier.isInterpolation())
  ------------------
  |  Branch (5697:9): [True: 3.93k, False: 249k]
  |  Branch (5697:32): [True: 0, False: 3.93k]
  ------------------
 5698|      0|        error(loc, "cannot use interpolation qualifiers with patch", "patch", "");
 5699|       |
 5700|       |    // Only "patch in" is supported via GL_NV_gpu_shader5
 5701|   253k|    if (! symbolTable.atBuiltInLevel() && qualifier.isPatch() &&
  ------------------
  |  Branch (5701:9): [True: 6.71k, False: 246k]
  |  Branch (5701:43): [True: 12, False: 6.70k]
  ------------------
 5702|     12|        (language == EShLangGeometry) && qualifier.storage != EvqVaryingIn &&
  ------------------
  |  Branch (5702:9): [True: 0, False: 12]
  |  Branch (5702:42): [True: 0, False: 0]
  ------------------
 5703|      0|        extensionTurnedOn(E_GL_NV_gpu_shader5))
  ------------------
  |  Branch (5703:9): [True: 0, False: 0]
  ------------------
 5704|      0|            error(loc, "only 'patch in' is supported in this stage:", "patch", "geometry");
 5705|       |
 5706|   253k|    if (qualifier.isTaskPayload() && publicType.basicType == EbtBlock)
  ------------------
  |  Branch (5706:9): [True: 0, False: 253k]
  |  Branch (5706:38): [True: 0, False: 0]
  ------------------
 5707|      0|        error(loc, "taskPayloadSharedEXT variables should not be declared as interface blocks", "taskPayloadSharedEXT", "");
 5708|       |
 5709|   253k|    if (qualifier.isTaskMemory() && publicType.basicType != EbtBlock)
  ------------------
  |  Branch (5709:9): [True: 0, False: 253k]
  |  Branch (5709:37): [True: 0, False: 0]
  ------------------
 5710|      0|        error(loc, "taskNV variables can be declared only as blocks", "taskNV", "");
 5711|       |
 5712|   253k|    if (qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (5712:9): [True: 231k, False: 21.7k]
  ------------------
 5713|   231k|        switch (language) {
 5714|  33.3k|        case EShLangVertex:
  ------------------
  |  Branch (5714:9): [True: 33.3k, False: 198k]
  ------------------
 5715|  33.3k|            if (publicType.basicType == EbtStruct) {
  ------------------
  |  Branch (5715:17): [True: 0, False: 33.3k]
  ------------------
 5716|      0|                error(loc, "cannot be a structure", GetStorageQualifierString(qualifier.storage), "");
 5717|      0|                return;
 5718|      0|            }
 5719|  33.3k|            if (publicType.arraySizes) {
  ------------------
  |  Branch (5719:17): [True: 0, False: 33.3k]
  ------------------
 5720|      0|                requireProfile(loc, ~EEsProfile, "vertex input arrays");
 5721|      0|                profileRequires(loc, ENoProfile, 150, nullptr, "vertex input arrays");
 5722|      0|            }
 5723|  33.3k|            if (publicType.basicType == EbtDouble) {
  ------------------
  |  Branch (5723:17): [True: 0, False: 33.3k]
  ------------------
 5724|      0|            	const char* const float64_attrib[] = {E_GL_NV_gpu_shader5, E_GL_ARB_vertex_attrib_64bit};
 5725|      0|                const int Num_float64_attrib = sizeof(float64_attrib) / sizeof(float64_attrib[0]);
 5726|      0|                profileRequires(loc, ~EEsProfile, 410, Num_float64_attrib, float64_attrib, "vertex-shader `double` type input");
 5727|      0|			}
 5728|  33.3k|            if (qualifier.isAuxiliary() || qualifier.isInterpolation() || qualifier.isMemory() || qualifier.invariant)
  ------------------
  |  Branch (5728:17): [True: 0, False: 33.3k]
  |  Branch (5728:44): [True: 0, False: 33.3k]
  |  Branch (5728:75): [True: 0, False: 33.3k]
  |  Branch (5728:99): [True: 0, False: 33.3k]
  ------------------
 5729|      0|                error(loc, "vertex input cannot be further qualified", "", "");
 5730|  33.3k|            break;
 5731|  47.7k|        case EShLangFragment:
  ------------------
  |  Branch (5731:9): [True: 47.7k, False: 183k]
  ------------------
 5732|  47.7k|            if (publicType.userDef) {
  ------------------
  |  Branch (5732:17): [True: 454, False: 47.3k]
  ------------------
 5733|    454|                profileRequires(loc, EEsProfile, 300, nullptr, "fragment-shader struct input");
 5734|    454|                profileRequires(loc, ~EEsProfile, 150, nullptr, "fragment-shader struct input");
 5735|    454|                if (publicType.userDef->containsStructure())
  ------------------
  |  Branch (5735:21): [True: 79, False: 375]
  ------------------
 5736|     79|                    requireProfile(loc, ~EEsProfile, "fragment-shader struct input containing structure");
 5737|    454|                if (publicType.userDef->containsArray())
  ------------------
  |  Branch (5737:21): [True: 93, False: 361]
  ------------------
 5738|     93|                    requireProfile(loc, ~EEsProfile, "fragment-shader struct input containing an array");
 5739|    454|            }
 5740|  47.7k|            break;
 5741|  18.8k|       case EShLangCompute:
  ------------------
  |  Branch (5741:8): [True: 18.8k, False: 212k]
  ------------------
 5742|  18.8k|            if (! symbolTable.atBuiltInLevel())
  ------------------
  |  Branch (5742:17): [True: 0, False: 18.8k]
  ------------------
 5743|      0|                error(loc, "global storage input qualifier cannot be used in a compute shader", "in", "");
 5744|  18.8k|            break;
 5745|  20.7k|       case EShLangTessControl:
  ------------------
  |  Branch (5745:8): [True: 20.7k, False: 210k]
  ------------------
 5746|  20.7k|            if (qualifier.patch)
  ------------------
  |  Branch (5746:17): [True: 0, False: 20.7k]
  ------------------
 5747|      0|                error(loc, "can only use on output in tessellation-control shader", "patch", "");
 5748|  20.7k|            break;
 5749|   110k|        default:
  ------------------
  |  Branch (5749:9): [True: 110k, False: 120k]
  ------------------
 5750|   110k|            break;
 5751|   231k|        }
 5752|   231k|    } else {
 5753|       |        // qualifier.storage == EvqVaryingOut
 5754|  21.7k|        switch (language) {
 5755|  4.29k|        case EShLangVertex:
  ------------------
  |  Branch (5755:9): [True: 4.29k, False: 17.4k]
  ------------------
 5756|  4.29k|            if (publicType.userDef) {
  ------------------
  |  Branch (5756:17): [True: 0, False: 4.29k]
  ------------------
 5757|      0|                profileRequires(loc, EEsProfile, 300, nullptr, "vertex-shader struct output");
 5758|      0|                profileRequires(loc, ~EEsProfile, 150, nullptr, "vertex-shader struct output");
 5759|      0|                if (publicType.userDef->containsStructure())
  ------------------
  |  Branch (5759:21): [True: 0, False: 0]
  ------------------
 5760|      0|                    requireProfile(loc, ~EEsProfile, "vertex-shader struct output containing structure");
 5761|      0|                if (publicType.userDef->containsArray())
  ------------------
  |  Branch (5761:21): [True: 0, False: 0]
  ------------------
 5762|      0|                    requireProfile(loc, ~EEsProfile, "vertex-shader struct output containing an array");
 5763|      0|            }
 5764|       |
 5765|  4.29k|            break;
 5766|  4.86k|        case EShLangFragment:
  ------------------
  |  Branch (5766:9): [True: 4.86k, False: 16.9k]
  ------------------
 5767|  4.86k|            profileRequires(loc, EEsProfile, 300, nullptr, "fragment shader output");
 5768|  4.86k|            if (publicType.basicType == EbtStruct) {
  ------------------
  |  Branch (5768:17): [True: 0, False: 4.86k]
  ------------------
 5769|      0|                error(loc, "cannot be a structure", GetStorageQualifierString(qualifier.storage), "");
 5770|      0|                return;
 5771|      0|            }
 5772|  4.86k|            if (publicType.matrixRows > 0) {
  ------------------
  |  Branch (5772:17): [True: 82, False: 4.77k]
  ------------------
 5773|     82|                error(loc, "cannot be a matrix", GetStorageQualifierString(qualifier.storage), "");
 5774|     82|                return;
 5775|     82|            }
 5776|  4.77k|            if (qualifier.isAuxiliary())
  ------------------
  |  Branch (5776:17): [True: 101, False: 4.67k]
  ------------------
 5777|    101|                error(loc, "can't use auxiliary qualifier on a fragment output", "centroid/sample/patch", "");
 5778|  4.77k|            if (qualifier.isInterpolation())
  ------------------
  |  Branch (5778:17): [True: 129, False: 4.65k]
  ------------------
 5779|    129|                error(loc, "can't use interpolation qualifier on a fragment output", "flat/smooth/noperspective", "");
 5780|  4.77k|            if (publicType.basicType == EbtDouble || publicType.basicType == EbtInt64 || publicType.basicType == EbtUint64)
  ------------------
  |  Branch (5780:17): [True: 0, False: 4.77k]
  |  Branch (5780:54): [True: 0, False: 4.77k]
  |  Branch (5780:90): [True: 0, False: 4.77k]
  ------------------
 5781|      0|                error(loc, "cannot contain a double, int64, or uint64", GetStorageQualifierString(qualifier.storage), "");
 5782|  4.77k|        break;
 5783|       |
 5784|      0|        case EShLangCompute:
  ------------------
  |  Branch (5784:9): [True: 0, False: 21.7k]
  ------------------
 5785|      0|            error(loc, "global storage output qualifier cannot be used in a compute shader", "out", "");
 5786|      0|            break;
 5787|  2.81k|        case EShLangTessEvaluation:
  ------------------
  |  Branch (5787:9): [True: 2.81k, False: 18.9k]
  ------------------
 5788|  2.81k|            if (qualifier.patch)
  ------------------
  |  Branch (5788:17): [True: 0, False: 2.81k]
  ------------------
 5789|      0|                error(loc, "can only use on input in tessellation-evaluation shader", "patch", "");
 5790|  2.81k|            break;
 5791|  9.81k|        default:
  ------------------
  |  Branch (5791:9): [True: 9.81k, False: 11.9k]
  ------------------
 5792|  9.81k|            break;
 5793|  21.7k|        }
 5794|  21.7k|    }
 5795|   253k|}
_ZN7glslang13TParseContext15mergeQualifiersERKNS_10TSourceLocERNS_10TQualifierERKS4_b:
 5807|  4.66M|{
 5808|       |    // Multiple auxiliary qualifiers (mostly done later by 'individual qualifiers')
 5809|  4.66M|    if (src.isAuxiliary() && dst.isAuxiliary())
  ------------------
  |  Branch (5809:9): [True: 4.98k, False: 4.65M]
  |  Branch (5809:30): [True: 0, False: 4.98k]
  ------------------
 5810|      0|        error(loc, "can only have one auxiliary qualifier (centroid, patch, and sample)", "", "");
 5811|       |
 5812|       |    // Multiple interpolation qualifiers (mostly done later by 'individual qualifiers')
 5813|  4.66M|    if (src.isInterpolation() && dst.isInterpolation())
  ------------------
  |  Branch (5813:9): [True: 36.8k, False: 4.62M]
  |  Branch (5813:34): [True: 0, False: 36.8k]
  ------------------
 5814|      0|        error(loc, "can only have one interpolation qualifier (flat, smooth, noperspective, __explicitInterpAMD)", "", "");
 5815|       |
 5816|       |    // Ordering
 5817|  4.66M|    if (! force && ((!isEsProfile() && version < 420) ||
  ------------------
  |  Branch (5817:9): [True: 3.29M, False: 1.36M]
  |  Branch (5817:22): [True: 2.80M, False: 491k]
  |  Branch (5817:40): [True: 735k, False: 2.06M]
  ------------------
 5818|  2.55M|                    (isEsProfile() && version < 310))
  ------------------
  |  Branch (5818:22): [True: 491k, False: 2.06M]
  |  Branch (5818:39): [True: 0, False: 491k]
  ------------------
 5819|   735k|                && ! extensionTurnedOn(E_GL_ARB_shading_language_420pack)) {
  ------------------
  |  Branch (5819:20): [True: 735k, False: 22]
  ------------------
 5820|       |        // non-function parameters
 5821|   735k|        if (src.isNoContraction() && (dst.invariant || dst.isInterpolation() || dst.isAuxiliary() || dst.storage != EvqTemporary || dst.precision != EpqNone))
  ------------------
  |  Branch (5821:13): [True: 0, False: 735k]
  |  Branch (5821:39): [True: 0, False: 0]
  |  Branch (5821:56): [True: 0, False: 0]
  |  Branch (5821:81): [True: 0, False: 0]
  |  Branch (5821:102): [True: 0, False: 0]
  |  Branch (5821:133): [True: 0, False: 0]
  ------------------
 5822|      0|            error(loc, "precise qualifier must appear first", "", "");
 5823|   735k|        if (src.invariant && (dst.isInterpolation() || dst.isAuxiliary() || dst.storage != EvqTemporary || dst.precision != EpqNone))
  ------------------
  |  Branch (5823:13): [True: 0, False: 735k]
  |  Branch (5823:31): [True: 0, False: 0]
  |  Branch (5823:56): [True: 0, False: 0]
  |  Branch (5823:77): [True: 0, False: 0]
  |  Branch (5823:108): [True: 0, False: 0]
  ------------------
 5824|      0|            error(loc, "invariant qualifier must appear before interpolation, storage, and precision qualifiers ", "", "");
 5825|   735k|        else if (src.isInterpolation() && (dst.isAuxiliary() || dst.storage != EvqTemporary || dst.precision != EpqNone))
  ------------------
  |  Branch (5825:18): [True: 27, False: 734k]
  |  Branch (5825:44): [True: 0, False: 27]
  |  Branch (5825:65): [True: 27, False: 0]
  |  Branch (5825:96): [True: 0, False: 0]
  ------------------
 5826|     27|            error(loc, "interpolation qualifiers must appear before storage and precision qualifiers", "", "");
 5827|   734k|        else if (src.isAuxiliary() && (dst.storage != EvqTemporary || dst.precision != EpqNone))
  ------------------
  |  Branch (5827:18): [True: 20, False: 734k]
  |  Branch (5827:40): [True: 17, False: 3]
  |  Branch (5827:71): [True: 0, False: 3]
  ------------------
 5828|     17|            error(loc, "Auxiliary qualifiers (centroid, patch, and sample) must appear before storage and precision qualifiers", "", "");
 5829|   734k|        else if (src.storage != EvqTemporary && (dst.precision != EpqNone))
  ------------------
  |  Branch (5829:18): [True: 72.4k, False: 662k]
  |  Branch (5829:49): [True: 1, False: 72.4k]
  ------------------
 5830|      1|            error(loc, "precision qualifier must appear as last qualifier", "", "");
 5831|       |
 5832|       |        // function parameters
 5833|   735k|        if (src.isNoContraction() && (dst.storage == EvqConst || dst.storage == EvqIn || dst.storage == EvqOut))
  ------------------
  |  Branch (5833:13): [True: 0, False: 735k]
  |  Branch (5833:39): [True: 0, False: 0]
  |  Branch (5833:66): [True: 0, False: 0]
  |  Branch (5833:90): [True: 0, False: 0]
  ------------------
 5834|      0|            error(loc, "precise qualifier must appear first", "", "");
 5835|   735k|        if (src.storage == EvqConst && (dst.storage == EvqIn || dst.storage == EvqOut))
  ------------------
  |  Branch (5835:13): [True: 30, False: 734k]
  |  Branch (5835:41): [True: 0, False: 30]
  |  Branch (5835:65): [True: 0, False: 30]
  ------------------
 5836|      0|            error(loc, "in/out must appear before const", "", "");
 5837|   735k|    }
 5838|       |
 5839|       |    // Storage qualification
 5840|  4.66M|    if (dst.storage == EvqTemporary || dst.storage == EvqGlobal)
  ------------------
  |  Branch (5840:9): [True: 3.03M, False: 1.62M]
  |  Branch (5840:40): [True: 1.36M, False: 262k]
  ------------------
 5841|  4.40M|        dst.storage = src.storage;
 5842|   262k|    else if ((dst.storage == EvqIn  && src.storage == EvqOut) ||
  ------------------
  |  Branch (5842:15): [True: 190k, False: 72.3k]
  |  Branch (5842:40): [True: 1, False: 190k]
  ------------------
 5843|   262k|             (dst.storage == EvqOut && src.storage == EvqIn))
  ------------------
  |  Branch (5843:15): [True: 33.2k, False: 229k]
  |  Branch (5843:40): [True: 0, False: 33.2k]
  ------------------
 5844|      1|        dst.storage = EvqInOut;
 5845|   262k|    else if ((dst.storage == EvqIn    && src.storage == EvqConst) ||
  ------------------
  |  Branch (5845:15): [True: 190k, False: 72.3k]
  |  Branch (5845:42): [True: 0, False: 190k]
  ------------------
 5846|   262k|             (dst.storage == EvqConst && src.storage == EvqIn))
  ------------------
  |  Branch (5846:15): [True: 36.0k, False: 226k]
  |  Branch (5846:42): [True: 0, False: 36.0k]
  ------------------
 5847|      0|        dst.storage = EvqConstReadOnly;
 5848|   262k|    else if (src.storage != EvqTemporary &&
  ------------------
  |  Branch (5848:14): [True: 236k, False: 25.7k]
  ------------------
 5849|   236k|             src.storage != EvqGlobal)
  ------------------
  |  Branch (5849:14): [True: 25, False: 236k]
  ------------------
 5850|     25|        error(loc, "too many storage qualifiers", GetStorageQualifierString(src.storage), "");
 5851|       |
 5852|       |    // Precision qualifiers
 5853|  4.66M|    if (! force && src.precision != EpqNone && dst.precision != EpqNone)
  ------------------
  |  Branch (5853:9): [True: 3.29M, False: 1.36M]
  |  Branch (5853:20): [True: 242k, False: 3.05M]
  |  Branch (5853:48): [True: 0, False: 242k]
  ------------------
 5854|      0|        error(loc, "only one precision qualifier allowed", GetPrecisionQualifierString(src.precision), "");
 5855|  4.66M|    if (dst.precision == EpqNone || (force && src.precision != EpqNone))
  ------------------
  |  Branch (5855:9): [True: 4.63M, False: 29.8k]
  |  Branch (5855:38): [True: 15.8k, False: 14.0k]
  |  Branch (5855:47): [True: 1.26k, False: 14.5k]
  ------------------
 5856|  4.63M|        dst.precision = src.precision;
 5857|       |
 5858|  4.66M|    if (!force && ((src.coherent && (dst.devicecoherent || dst.queuefamilycoherent || dst.workgroupcoherent || dst.subgroupcoherent || dst.shadercallcoherent)) ||
  ------------------
  |  Branch (5858:9): [True: 3.29M, False: 1.36M]
  |  Branch (5858:21): [True: 1.27M, False: 2.02M]
  |  Branch (5858:38): [True: 0, False: 1.27M]
  |  Branch (5858:60): [True: 0, False: 1.27M]
  |  Branch (5858:87): [True: 0, False: 1.27M]
  |  Branch (5858:112): [True: 0, False: 1.27M]
  |  Branch (5858:136): [True: 0, False: 1.27M]
  ------------------
 5859|  3.29M|                   (src.devicecoherent && (dst.coherent || dst.queuefamilycoherent || dst.workgroupcoherent || dst.subgroupcoherent || dst.shadercallcoherent)) ||
  ------------------
  |  Branch (5859:21): [True: 0, False: 3.29M]
  |  Branch (5859:44): [True: 0, False: 0]
  |  Branch (5859:60): [True: 0, False: 0]
  |  Branch (5859:87): [True: 0, False: 0]
  |  Branch (5859:112): [True: 0, False: 0]
  |  Branch (5859:136): [True: 0, False: 0]
  ------------------
 5860|  3.29M|                   (src.queuefamilycoherent && (dst.coherent || dst.devicecoherent || dst.workgroupcoherent || dst.subgroupcoherent || dst.shadercallcoherent)) ||
  ------------------
  |  Branch (5860:21): [True: 0, False: 3.29M]
  |  Branch (5860:49): [True: 0, False: 0]
  |  Branch (5860:65): [True: 0, False: 0]
  |  Branch (5860:87): [True: 0, False: 0]
  |  Branch (5860:112): [True: 0, False: 0]
  |  Branch (5860:136): [True: 0, False: 0]
  ------------------
 5861|  3.29M|                   (src.workgroupcoherent && (dst.coherent || dst.devicecoherent || dst.queuefamilycoherent || dst.subgroupcoherent || dst.shadercallcoherent)) ||
  ------------------
  |  Branch (5861:21): [True: 0, False: 3.29M]
  |  Branch (5861:47): [True: 0, False: 0]
  |  Branch (5861:63): [True: 0, False: 0]
  |  Branch (5861:85): [True: 0, False: 0]
  |  Branch (5861:112): [True: 0, False: 0]
  |  Branch (5861:136): [True: 0, False: 0]
  ------------------
 5862|  3.29M|                   (src.subgroupcoherent  && (dst.coherent || dst.devicecoherent || dst.queuefamilycoherent || dst.workgroupcoherent || dst.shadercallcoherent)) ||
  ------------------
  |  Branch (5862:21): [True: 0, False: 3.29M]
  |  Branch (5862:47): [True: 0, False: 0]
  |  Branch (5862:63): [True: 0, False: 0]
  |  Branch (5862:85): [True: 0, False: 0]
  |  Branch (5862:112): [True: 0, False: 0]
  |  Branch (5862:137): [True: 0, False: 0]
  ------------------
 5863|  3.29M|                   (src.shadercallcoherent && (dst.coherent || dst.devicecoherent || dst.queuefamilycoherent || dst.workgroupcoherent || dst.subgroupcoherent)))) {
  ------------------
  |  Branch (5863:21): [True: 0, False: 3.29M]
  |  Branch (5863:48): [True: 0, False: 0]
  |  Branch (5863:64): [True: 0, False: 0]
  |  Branch (5863:86): [True: 0, False: 0]
  |  Branch (5863:113): [True: 0, False: 0]
  |  Branch (5863:138): [True: 0, False: 0]
  ------------------
 5864|      0|        error(loc, "only one coherent/devicecoherent/queuefamilycoherent/workgroupcoherent/subgroupcoherent/shadercallcoherent qualifier allowed",
 5865|      0|            GetPrecisionQualifierString(src.precision), "");
 5866|      0|    }
 5867|       |
 5868|       |    // Layout qualifiers
 5869|  4.66M|    mergeObjectLayoutQualifiers(dst, src, false);
 5870|       |
 5871|       |    // individual qualifiers
 5872|  4.66M|    bool repeated = false;
 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
 5874|  4.66M|    MERGE_SINGLETON(invariant);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 22, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 22]
  |  |  ------------------
  ------------------
 5875|  4.66M|    MERGE_SINGLETON(centroid);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 281, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 281]
  |  |  ------------------
  ------------------
 5876|  4.66M|    MERGE_SINGLETON(smooth);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 105, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 105]
  |  |  ------------------
  ------------------
 5877|  4.66M|    MERGE_SINGLETON(flat);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 63.6k, False: 4.60M]
  |  |  |  Branch (5873:61): [True: 0, False: 63.6k]
  |  |  ------------------
  ------------------
 5878|  4.66M|    MERGE_SINGLETON(specConstant);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 345, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 345]
  |  |  ------------------
  ------------------
 5879|  4.66M|    MERGE_SINGLETON(noContraction);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5880|  4.66M|    MERGE_SINGLETON(nopersp);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 148, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 148]
  |  |  ------------------
  ------------------
 5881|  4.66M|    MERGE_SINGLETON(explicitInterp);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5882|  4.66M|    MERGE_SINGLETON(perPrimitiveNV);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 616, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 616]
  |  |  ------------------
  ------------------
 5883|  4.66M|    MERGE_SINGLETON(perViewNV);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5884|  4.66M|    MERGE_SINGLETON(perTaskNV);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5885|  4.66M|    MERGE_SINGLETON(patch);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 4.82k, False: 4.65M]
  |  |  |  Branch (5873:61): [True: 0, False: 4.82k]
  |  |  ------------------
  ------------------
 5886|  4.66M|    MERGE_SINGLETON(sample);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 236, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 236]
  |  |  ------------------
  ------------------
 5887|  4.66M|    MERGE_SINGLETON(coherent);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 1.40M, False: 3.26M]
  |  |  |  Branch (5873:61): [True: 0, False: 1.40M]
  |  |  ------------------
  ------------------
 5888|  4.66M|    MERGE_SINGLETON(devicecoherent);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5889|  4.66M|    MERGE_SINGLETON(queuefamilycoherent);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5890|  4.66M|    MERGE_SINGLETON(workgroupcoherent);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5891|  4.66M|    MERGE_SINGLETON(subgroupcoherent);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5892|  4.66M|    MERGE_SINGLETON(shadercallcoherent);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5893|  4.66M|    MERGE_SINGLETON(nonprivate);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5894|  4.66M|    MERGE_SINGLETON(volatil);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 2.61M, False: 2.04M]
  |  |  |  Branch (5873:61): [True: 0, False: 2.61M]
  |  |  ------------------
  ------------------
 5895|  4.66M|    MERGE_SINGLETON(nontemporal);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 59.5k, False: 4.60M]
  |  |  |  Branch (5873:61): [True: 0, False: 59.5k]
  |  |  ------------------
  ------------------
 5896|  4.66M|    MERGE_SINGLETON(restrict);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 16, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 16]
  |  |  ------------------
  ------------------
 5897|  4.66M|    MERGE_SINGLETON(readonly);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 490k, False: 4.17M]
  |  |  |  Branch (5873:61): [True: 0, False: 490k]
  |  |  ------------------
  ------------------
 5898|  4.66M|    MERGE_SINGLETON(writeonly);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 379k, False: 4.28M]
  |  |  |  Branch (5873:61): [True: 0, False: 379k]
  |  |  ------------------
  ------------------
 5899|  4.66M|    MERGE_SINGLETON(nonUniform);
  ------------------
  |  | 5873|  4.66M|    #define MERGE_SINGLETON(field) repeated |= dst.field && src.field; dst.field |= src.field;
  |  |  ------------------
  |  |  |  Branch (5873:48): [True: 0, False: 4.66M]
  |  |  |  Branch (5873:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5900|       |
 5901|       |    // SPIR-V storage class qualifier (GL_EXT_spirv_intrinsics)
 5902|  4.66M|    dst.spirvStorageClass = src.spirvStorageClass;
 5903|       |
 5904|       |    // SPIR-V decorate qualifiers (GL_EXT_spirv_intrinsics)
 5905|  4.66M|    if (src.hasSpirvDecorate()) {
  ------------------
  |  Branch (5905:9): [True: 0, False: 4.66M]
  ------------------
 5906|      0|        if (dst.hasSpirvDecorate()) {
  ------------------
  |  Branch (5906:13): [True: 0, False: 0]
  ------------------
 5907|      0|            const TSpirvDecorate& srcSpirvDecorate = src.getSpirvDecorate();
 5908|      0|            TSpirvDecorate& dstSpirvDecorate = dst.getSpirvDecorate();
 5909|      0|            for (auto& decorate : srcSpirvDecorate.decorates) {
  ------------------
  |  Branch (5909:33): [True: 0, False: 0]
  ------------------
 5910|      0|                if (dstSpirvDecorate.decorates.find(decorate.first) != dstSpirvDecorate.decorates.end())
  ------------------
  |  Branch (5910:21): [True: 0, False: 0]
  ------------------
 5911|      0|                    error(loc, "too many SPIR-V decorate qualifiers", "spirv_decorate", "(decoration=%u)", decorate.first);
 5912|      0|                else
 5913|      0|                    dstSpirvDecorate.decorates.insert(decorate);
 5914|      0|            }
 5915|       |
 5916|      0|            for (auto& decorateId : srcSpirvDecorate.decorateIds) {
  ------------------
  |  Branch (5916:35): [True: 0, False: 0]
  ------------------
 5917|      0|                if (dstSpirvDecorate.decorateIds.find(decorateId.first) != dstSpirvDecorate.decorateIds.end())
  ------------------
  |  Branch (5917:21): [True: 0, False: 0]
  ------------------
 5918|      0|                    error(loc, "too many SPIR-V decorate qualifiers", "spirv_decorate_id", "(decoration=%u)", decorateId.first);
 5919|      0|                else
 5920|      0|                    dstSpirvDecorate.decorateIds.insert(decorateId);
 5921|      0|            }
 5922|       |
 5923|      0|            for (auto& decorateString : srcSpirvDecorate.decorateStrings) {
  ------------------
  |  Branch (5923:39): [True: 0, False: 0]
  ------------------
 5924|      0|                if (dstSpirvDecorate.decorates.find(decorateString.first) != dstSpirvDecorate.decorates.end())
  ------------------
  |  Branch (5924:21): [True: 0, False: 0]
  ------------------
 5925|      0|                    error(loc, "too many SPIR-V decorate qualifiers", "spirv_decorate_string", "(decoration=%u)", decorateString.first);
 5926|      0|                else
 5927|      0|                    dstSpirvDecorate.decorateStrings.insert(decorateString);
 5928|      0|            }
 5929|      0|        } else {
 5930|      0|            dst.spirvDecorate = src.spirvDecorate;
 5931|      0|        }
 5932|      0|    }
 5933|       |
 5934|  4.66M|    if (repeated)
  ------------------
  |  Branch (5934:9): [True: 0, False: 4.66M]
  ------------------
 5935|      0|        error(loc, "replicated qualifiers", "", "");
 5936|  4.66M|}
_ZN7glslang13TParseContext19setDefaultPrecisionERKNS_10TSourceLocERNS_11TPublicTypeENS_19TPrecisionQualifierE:
 5939|    977|{
 5940|    977|    TBasicType basicType = publicType.basicType;
 5941|       |
 5942|    977|    if (basicType == EbtSampler) {
  ------------------
  |  Branch (5942:9): [True: 773, False: 204]
  ------------------
 5943|    773|        defaultSamplerPrecision[computeSamplerTypeIndex(publicType.sampler)] = qualifier;
 5944|       |
 5945|    773|        return;  // all is well
 5946|    773|    }
 5947|       |
 5948|    204|    if (basicType == EbtInt || basicType == EbtFloat) {
  ------------------
  |  Branch (5948:9): [True: 8, False: 196]
  |  Branch (5948:32): [True: 182, False: 14]
  ------------------
 5949|    190|        if (publicType.isScalar()) {
  ------------------
  |  Branch (5949:13): [True: 190, False: 0]
  ------------------
 5950|    190|            defaultPrecision[basicType] = qualifier;
 5951|    190|            if (basicType == EbtInt) {
  ------------------
  |  Branch (5951:17): [True: 8, False: 182]
  ------------------
 5952|      8|                defaultPrecision[EbtUint] = qualifier;
 5953|      8|                precisionManager.explicitIntDefaultSeen();
 5954|      8|            } else
 5955|    182|                precisionManager.explicitFloatDefaultSeen();
 5956|       |
 5957|    190|            return;  // all is well
 5958|    190|        }
 5959|    190|    }
 5960|       |
 5961|     14|    if (basicType == EbtAtomicUint) {
  ------------------
  |  Branch (5961:9): [True: 0, False: 14]
  ------------------
 5962|      0|        if (qualifier != EpqHigh)
  ------------------
  |  Branch (5962:13): [True: 0, False: 0]
  ------------------
 5963|      0|            error(loc, "can only apply highp to atomic_uint", "precision", "");
 5964|       |
 5965|      0|        return;
 5966|      0|    }
 5967|       |
 5968|     14|    error(loc, "cannot apply precision statement to this type; use 'float', 'int' or a sampler type", TType::getBasicString(basicType), "");
 5969|     14|}
_ZN7glslang13TParseContext23computeSamplerTypeIndexERNS_8TSamplerE:
 5974|  3.12M|{
 5975|  3.12M|    int arrayIndex    = sampler.arrayed         ? 1 : 0;
  ------------------
  |  Branch (5975:25): [True: 1.14M, False: 1.98M]
  ------------------
 5976|  3.12M|    int shadowIndex   = sampler.shadow          ? 1 : 0;
  ------------------
  |  Branch (5976:25): [True: 284k, False: 2.84M]
  ------------------
 5977|  3.12M|    int externalIndex = sampler.isExternal()    ? 1 : 0;
  ------------------
  |  Branch (5977:25): [True: 2.11k, False: 3.12M]
  ------------------
 5978|  3.12M|    int imageIndex    = sampler.isImageClass()  ? 1 : 0;
  ------------------
  |  Branch (5978:25): [True: 1.16M, False: 1.95M]
  ------------------
 5979|  3.12M|    int msIndex       = sampler.isMultiSample() ? 1 : 0;
  ------------------
  |  Branch (5979:25): [True: 281k, False: 2.84M]
  ------------------
 5980|       |
 5981|  3.12M|    int flattened = EsdNumDims * (EbtNumTypes * (2 * (2 * (2 * (2 * arrayIndex + msIndex) + imageIndex) + shadowIndex) +
 5982|  3.12M|                                                 externalIndex) + sampler.type) + sampler.dim;
 5983|  3.12M|    assert(flattened < maxSamplerIndex);
 5984|       |
 5985|  3.12M|    return flattened;
 5986|  3.12M|}
_ZN7glslang13TParseContext19getDefaultPrecisionERNS_11TPublicTypeE:
 5989|  35.4M|{
 5990|  35.4M|    if (publicType.basicType == EbtSampler)
  ------------------
  |  Branch (5990:9): [True: 3.11M, False: 32.3M]
  ------------------
 5991|  3.11M|        return defaultSamplerPrecision[computeSamplerTypeIndex(publicType.sampler)];
 5992|  32.3M|    else
 5993|  32.3M|        return defaultPrecision[publicType.basicType];
 5994|  35.4M|}
_ZN7glslang13TParseContext23precisionQualifierCheckERKNS_10TSourceLocENS_10TBasicTypeERNS_10TQualifierEb:
 5997|  35.3M|{
 5998|       |    // Built-in symbols are allowed some ambiguous precisions, to be pinned down
 5999|       |    // later by context.
 6000|  35.3M|    if (! obeyPrecisionQualifiers() || parsingBuiltins)
  ------------------
  |  Branch (6000:9): [True: 0, False: 35.3M]
  |  Branch (6000:40): [True: 35.2M, False: 148k]
  ------------------
 6001|  35.2M|        return;
 6002|       |
 6003|   148k|    if (baseType == EbtAtomicUint && qualifier.precision != EpqNone && qualifier.precision != EpqHigh)
  ------------------
  |  Branch (6003:9): [True: 76, False: 148k]
  |  Branch (6003:38): [True: 76, False: 0]
  |  Branch (6003:72): [True: 0, False: 76]
  ------------------
 6004|      0|        error(loc, "atomic counters can only be highp", "atomic_uint", "");
 6005|       |
 6006|   148k|    if (hasTypeParameter)
  ------------------
  |  Branch (6006:9): [True: 0, False: 148k]
  ------------------
 6007|      0|        return;
 6008|       |
 6009|   148k|    if (baseType == EbtFloat || baseType == EbtUint || baseType == EbtInt || baseType == EbtSampler || baseType == EbtAtomicUint) {
  ------------------
  |  Branch (6009:9): [True: 34.2k, False: 114k]
  |  Branch (6009:33): [True: 16.7k, False: 97.8k]
  |  Branch (6009:56): [True: 13.3k, False: 84.5k]
  |  Branch (6009:78): [True: 7.18k, False: 77.3k]
  |  Branch (6009:104): [True: 76, False: 77.2k]
  ------------------
 6010|  71.5k|        if (qualifier.precision == EpqNone) {
  ------------------
  |  Branch (6010:13): [True: 739, False: 70.8k]
  ------------------
 6011|    739|            if (relaxedErrors())
  ------------------
  |  Branch (6011:17): [True: 0, False: 739]
  ------------------
 6012|      0|                warn(loc, "type requires declaration of default precision qualifier", TType::getBasicString(baseType), "substituting 'mediump'");
 6013|    739|            else
 6014|    739|                error(loc, "type requires declaration of default precision qualifier", TType::getBasicString(baseType), "");
 6015|    739|            qualifier.precision = EpqMedium;
 6016|    739|            defaultPrecision[baseType] = EpqMedium;
 6017|    739|        }
 6018|  77.2k|    } else if (qualifier.precision != EpqNone)
  ------------------
  |  Branch (6018:16): [True: 0, False: 77.2k]
  ------------------
 6019|      0|        error(loc, "type cannot have precision qualifier", TType::getBasicString(baseType), "");
 6020|   148k|}
_ZN7glslang13TParseContext18parameterTypeCheckERKNS_10TSourceLocENS_17TStorageQualifierERKNS_5TTypeE:
 6023|  24.6M|{
 6024|       |    // getBindlessMode() is only set once a bindless construct has been parsed, so it is
 6025|       |    // still false for a function declared above the first one. Ask the extension instead.
 6026|  24.6M|    const bool bindlessHandle =
 6027|  24.6M|        type.getBasicType() == EbtSampler && intermediate.IsRequestedExtension(E_GL_ARB_bindless_texture);
  ------------------
  |  Branch (6027:9): [True: 3.11M, False: 21.5M]
  |  Branch (6027:46): [True: 0, False: 3.11M]
  ------------------
 6028|  24.6M|    if ((qualifier == EvqOut || qualifier == EvqInOut) && type.isOpaque() && !bindlessHandle)
  ------------------
  |  Branch (6028:10): [True: 534k, False: 24.1M]
  |  Branch (6028:33): [True: 56.2k, False: 24.0M]
  |  Branch (6028:59): [True: 0, False: 591k]
  |  Branch (6028:78): [True: 0, False: 0]
  ------------------
 6029|      0|        error(loc, "samplers and atomic_uints cannot be output parameters", type.getBasicTypeString().c_str(), "");
 6030|  24.6M|    if (!parsingBuiltins && type.contains16BitFloat())
  ------------------
  |  Branch (6030:9): [True: 2.68k, False: 24.6M]
  |  Branch (6030:29): [True: 4, False: 2.67k]
  ------------------
 6031|      4|        requireFloat16Arithmetic(loc, type.getBasicTypeString().c_str(), "float16 types can only be in uniform block or buffer storage");
 6032|  24.6M|    if (!parsingBuiltins && type.contains16BitInt())
  ------------------
  |  Branch (6032:9): [True: 2.68k, False: 24.6M]
  |  Branch (6032:29): [True: 4, False: 2.67k]
  ------------------
 6033|      4|        requireInt16Arithmetic(loc, type.getBasicTypeString().c_str(), "(u)int16 types can only be in uniform block or buffer storage");
 6034|  24.6M|    if (!parsingBuiltins && type.contains8BitInt())
  ------------------
  |  Branch (6034:9): [True: 2.68k, False: 24.6M]
  |  Branch (6034:29): [True: 2, False: 2.67k]
  ------------------
 6035|      2|        requireInt8Arithmetic(loc, type.getBasicTypeString().c_str(), "(u)int8 types can only be in uniform block or buffer storage");
 6036|  24.6M|}
_ZN7glslang13TParseContext26containsFieldWithBasicTypeERKNS_5TTypeENS_10TBasicTypeE:
 6039|  47.2k|{
 6040|  47.2k|    if (type.getBasicType() == basicType)
  ------------------
  |  Branch (6040:9): [True: 64, False: 47.1k]
  ------------------
 6041|     64|        return true;
 6042|       |
 6043|  47.1k|    if (type.getBasicType() == EbtStruct) {
  ------------------
  |  Branch (6043:9): [True: 4.12k, False: 43.0k]
  ------------------
 6044|  4.12k|        const TTypeList& structure = *type.getStruct();
 6045|  11.8k|        for (unsigned int i = 0; i < structure.size(); ++i) {
  ------------------
  |  Branch (6045:34): [True: 7.78k, False: 4.07k]
  ------------------
 6046|  7.78k|            if (containsFieldWithBasicType(*structure[i].type, basicType))
  ------------------
  |  Branch (6046:17): [True: 57, False: 7.72k]
  ------------------
 6047|     57|                return true;
 6048|  7.78k|        }
 6049|  4.12k|    }
 6050|       |
 6051|  47.1k|    return false;
 6052|  47.1k|}
_ZN7glslang13TParseContext14arraySizeCheckERKNS_10TSourceLocEPNS_12TIntermTypedERNS_10TArraySizeEPKcb:
 6059|  88.9k|{
 6060|  88.9k|    bool isConst = false;
 6061|  88.9k|    sizePair.node = nullptr;
 6062|       |
 6063|  88.9k|    int size = 1;
 6064|       |
 6065|  88.9k|    TIntermConstantUnion* constant = expr->getAsConstantUnion();
 6066|  88.9k|    if (constant) {
  ------------------
  |  Branch (6066:9): [True: 88.9k, False: 47]
  ------------------
 6067|       |        // handle true (non-specialization) constant
 6068|  88.9k|        size = constant->getConstArray()[0].getIConst();
 6069|  88.9k|        isConst = true;
 6070|  88.9k|    } else {
 6071|       |        // see if it's a specialization constant instead
 6072|     47|        if (expr->getQualifier().isSpecConstant()) {
  ------------------
  |  Branch (6072:13): [True: 1, False: 46]
  ------------------
 6073|      1|            isConst = true;
 6074|      1|            sizePair.node = expr;
 6075|      1|            TIntermSymbol* symbol = expr->getAsSymbolNode();
 6076|      1|            if (symbol && symbol->getConstArray().size() > 0)
  ------------------
  |  Branch (6076:17): [True: 1, False: 0]
  |  Branch (6076:27): [True: 1, False: 0]
  ------------------
 6077|      1|                size = symbol->getConstArray()[0].getIConst();
 6078|     46|        } else if (expr->getAsUnaryNode() && expr->getAsUnaryNode()->getOp() == glslang::EOpArrayLength &&
  ------------------
  |  Branch (6078:20): [True: 14, False: 32]
  |  Branch (6078:46): [True: 0, False: 14]
  ------------------
 6079|      0|                   expr->getAsUnaryNode()->getOperand()->getType().isCoopMatNV()) {
  ------------------
  |  Branch (6079:20): [True: 0, False: 0]
  ------------------
 6080|      0|            isConst = true;
 6081|      0|            size = 1;
 6082|      0|            sizePair.node = expr->getAsUnaryNode();
 6083|      0|        }
 6084|     47|    }
 6085|       |
 6086|  88.9k|    sizePair.size = size;
 6087|       |
 6088|  88.9k|    if (isTypeParameter) {
  ------------------
  |  Branch (6088:9): [True: 7.16k, False: 81.8k]
  ------------------
 6089|  7.16k|        if (extensionTurnedOn(E_GL_NV_cooperative_matrix2)) {
  ------------------
  |  Branch (6089:13): [True: 0, False: 7.16k]
  ------------------
 6090|      0|            if (! isConst || (expr->getBasicType() != EbtInt && expr->getBasicType() != EbtUint && expr->getBasicType() != EbtBool)) {
  ------------------
  |  Branch (6090:17): [True: 0, False: 0]
  |  Branch (6090:31): [True: 0, False: 0]
  |  Branch (6090:65): [True: 0, False: 0]
  |  Branch (6090:100): [True: 0, False: 0]
  ------------------
 6091|      0|                error(loc, sizeType, "", "must be a constant integer or boolean expression");
 6092|      0|                return;
 6093|      0|            }
 6094|  7.16k|        } else {
 6095|  7.16k|            if (! isConst || (expr->getBasicType() != EbtInt && expr->getBasicType() != EbtUint)) {
  ------------------
  |  Branch (6095:17): [True: 0, False: 7.16k]
  |  Branch (6095:31): [True: 5, False: 7.16k]
  |  Branch (6095:65): [True: 5, False: 0]
  ------------------
 6096|      5|                error(loc, sizeType, "", "must be a constant integer expression");
 6097|      5|                return;
 6098|      5|            }
 6099|  7.16k|        }
 6100|  7.16k|        if (size < 0) {
  ------------------
  |  Branch (6100:13): [True: 0, False: 7.16k]
  ------------------
 6101|      0|            error(loc, sizeType, "", "must be a non-negative integer");
 6102|      0|            return;
 6103|      0|        }
 6104|  81.8k|    } else {
 6105|  81.8k|        if (! isConst || (expr->getBasicType() != EbtInt && expr->getBasicType() != EbtUint)) {
  ------------------
  |  Branch (6105:13): [True: 46, False: 81.7k]
  |  Branch (6105:27): [True: 29, False: 81.7k]
  |  Branch (6105:61): [True: 2, False: 27]
  ------------------
 6106|     48|            error(loc, sizeType, "", "must be a constant integer expression");
 6107|     48|            return;
 6108|     48|        }
 6109|  81.7k|        if (size <= 0) {
  ------------------
  |  Branch (6109:13): [True: 5, False: 81.7k]
  ------------------
 6110|      5|            error(loc, sizeType, "", "must be a positive integer");
 6111|      5|            return;
 6112|      5|        }
 6113|  81.7k|    }
 6114|  88.9k|}
_ZN7glslang13TParseContext19arrayQualifierErrorERKNS_10TSourceLocERKNS_10TQualifierE:
 6122|  20.5k|{
 6123|  20.5k|    if (qualifier.storage == EvqConst) {
  ------------------
  |  Branch (6123:9): [True: 812, False: 19.7k]
  ------------------
 6124|    812|        profileRequires(loc, ENoProfile, 120, E_GL_3DL_array_objects, "const array");
 6125|    812|        profileRequires(loc, EEsProfile, 300, nullptr, "const array");
 6126|    812|    }
 6127|       |
 6128|  20.5k|    if (qualifier.storage == EvqVaryingIn && language == EShLangVertex) {
  ------------------
  |  Branch (6128:9): [True: 7.25k, False: 13.3k]
  |  Branch (6128:46): [True: 0, False: 7.25k]
  ------------------
 6129|      0|        requireProfile(loc, ~EEsProfile, "vertex input arrays");
 6130|      0|        profileRequires(loc, ENoProfile, 150, nullptr, "vertex input arrays");
 6131|      0|    }
 6132|       |
 6133|  20.5k|    return false;
 6134|  20.5k|}
_ZN7glslang13TParseContext10arrayErrorERKNS_10TSourceLocERKNS_5TTypeE:
 6143|  20.3k|{
 6144|  20.3k|    if (type.getQualifier().storage == EvqVaryingOut && language == EShLangVertex) {
  ------------------
  |  Branch (6144:9): [True: 10.1k, False: 10.2k]
  |  Branch (6144:57): [True: 2.47k, False: 7.66k]
  ------------------
 6145|  2.47k|        if (type.isArrayOfArrays())
  ------------------
  |  Branch (6145:13): [True: 0, False: 2.47k]
  ------------------
 6146|      0|            requireProfile(loc, ~EEsProfile, "vertex-shader array-of-array output");
 6147|  2.47k|        else if (type.isStruct())
  ------------------
  |  Branch (6147:18): [True: 0, False: 2.47k]
  ------------------
 6148|      0|            requireProfile(loc, ~EEsProfile, "vertex-shader array-of-struct output");
 6149|  2.47k|    }
 6150|  20.3k|    if (type.getQualifier().storage == EvqVaryingIn && language == EShLangFragment) {
  ------------------
  |  Branch (6150:9): [True: 7.17k, False: 13.1k]
  |  Branch (6150:56): [True: 4.29k, False: 2.87k]
  ------------------
 6151|  4.29k|        if (type.isArrayOfArrays())
  ------------------
  |  Branch (6151:13): [True: 82, False: 4.21k]
  ------------------
 6152|     82|            requireProfile(loc, ~EEsProfile, "fragment-shader array-of-array input");
 6153|  4.21k|        else if (type.isStruct())
  ------------------
  |  Branch (6153:18): [True: 162, False: 4.05k]
  ------------------
 6154|    162|            requireProfile(loc, ~EEsProfile, "fragment-shader array-of-struct input");
 6155|  4.29k|    }
 6156|  20.3k|    if (type.getQualifier().storage == EvqVaryingOut && language == EShLangFragment) {
  ------------------
  |  Branch (6156:9): [True: 10.1k, False: 10.2k]
  |  Branch (6156:57): [True: 1.44k, False: 8.69k]
  ------------------
 6157|  1.44k|        if (type.isArrayOfArrays())
  ------------------
  |  Branch (6157:13): [True: 6, False: 1.43k]
  ------------------
 6158|      6|            requireProfile(loc, ~EEsProfile, "fragment-shader array-of-array output");
 6159|  1.44k|    }
 6160|       |
 6161|  20.3k|    return false;
 6162|  20.3k|}
_ZN7glslang13TParseContext22arraySizeRequiredCheckERKNS_10TSourceLocERKNS_11TArraySizesE:
 6168|   430k|{
 6169|   430k|    if (!parsingBuiltins && arraySizes.hasUnsized())
  ------------------
  |  Branch (6169:9): [True: 1.40k, False: 429k]
  |  Branch (6169:29): [True: 11, False: 1.38k]
  ------------------
 6170|     11|        error(loc, "array size required", "", "");
 6171|   430k|}
_ZN7glslang13TParseContext16structArrayCheckERKNS_10TSourceLocERKNS_5TTypeE:
 6174|  1.24k|{
 6175|  1.24k|    const TTypeList& structure = *type.getStruct();
 6176|  5.99k|    for (int m = 0; m < (int)structure.size(); ++m) {
  ------------------
  |  Branch (6176:21): [True: 4.74k, False: 1.24k]
  ------------------
 6177|  4.74k|        const TType& member = *structure[m].type;
 6178|  4.74k|        if (member.isArray())
  ------------------
  |  Branch (6178:13): [True: 96, False: 4.65k]
  ------------------
 6179|     96|            arraySizeRequiredCheck(structure[m].loc, *member.getArraySizes());
 6180|  4.74k|    }
 6181|  1.24k|}
_ZN7glslang13TParseContext15arraySizesCheckERKNS_10TSourceLocERKNS_10TQualifierEPNS_11TArraySizesEPKNS_12TIntermTypedEb:
 6185|  38.4k|{
 6186|  38.4k|    assert(arraySizes);
 6187|       |
 6188|       |    // always allow special built-in ins/outs sized to topologies
 6189|  38.4k|    if (parsingBuiltins)
  ------------------
  |  Branch (6189:9): [True: 34.0k, False: 4.38k]
  ------------------
 6190|  34.0k|        return;
 6191|       |
 6192|       |    // initializer must be a sized array, in which case
 6193|       |    // allow the initializer to set any unknown array sizes
 6194|  4.38k|    if (initializer != nullptr) {
  ------------------
  |  Branch (6194:9): [True: 1.07k, False: 3.31k]
  ------------------
 6195|  1.07k|        if (initializer->getType().isUnsizedArray())
  ------------------
  |  Branch (6195:13): [True: 0, False: 1.07k]
  ------------------
 6196|      0|            error(loc, "array initializer must be sized", "[]", "");
 6197|  1.07k|        return;
 6198|  1.07k|    }
 6199|       |
 6200|       |    // No environment allows any non-outer-dimension to be implicitly sized
 6201|  3.31k|    if (arraySizes->isInnerUnsized()) {
  ------------------
  |  Branch (6201:9): [True: 50, False: 3.26k]
  ------------------
 6202|     50|        error(loc, "only outermost dimension of an array of arrays can be implicitly sized", "[]", "");
 6203|     50|        arraySizes->clearInnerUnsized();
 6204|     50|    }
 6205|       |
 6206|  3.31k|    if (arraySizes->isInnerSpecialization() &&
  ------------------
  |  Branch (6206:9): [True: 0, False: 3.31k]
  ------------------
 6207|      0|        (qualifier.storage != EvqTemporary && qualifier.storage != EvqGlobal && qualifier.storage != EvqShared && qualifier.storage != EvqConst))
  ------------------
  |  Branch (6207:10): [True: 0, False: 0]
  |  Branch (6207:47): [True: 0, False: 0]
  |  Branch (6207:81): [True: 0, False: 0]
  |  Branch (6207:115): [True: 0, False: 0]
  ------------------
 6208|      0|        error(loc, "only outermost dimension of an array of arrays can be a specialization constant", "[]", "");
 6209|       |
 6210|       |    // desktop always allows outer-dimension-unsized variable arrays,
 6211|  3.31k|    if (!isEsProfile())
  ------------------
  |  Branch (6211:9): [True: 2.13k, False: 1.17k]
  ------------------
 6212|  2.13k|        return;
 6213|       |
 6214|       |    // for ES, if size isn't coming from an initializer, it has to be explicitly declared now,
 6215|       |    // with very few exceptions
 6216|       |
 6217|       |    // implicitly-sized io exceptions:
 6218|  1.17k|    switch (language) {
 6219|      0|    case EShLangGeometry:
  ------------------
  |  Branch (6219:5): [True: 0, False: 1.17k]
  ------------------
 6220|      0|        if (qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (6220:13): [True: 0, False: 0]
  ------------------
 6221|      0|            if ((isEsProfile() && version >= 320) ||
  ------------------
  |  Branch (6221:18): [True: 0, False: 0]
  |  Branch (6221:35): [True: 0, False: 0]
  ------------------
 6222|      0|                extensionsTurnedOn(Num_AEP_geometry_shader, AEP_geometry_shader))
  ------------------
  |  Branch (6222:17): [True: 0, False: 0]
  ------------------
 6223|      0|                return;
 6224|      0|        break;
 6225|      0|    case EShLangTessControl:
  ------------------
  |  Branch (6225:5): [True: 0, False: 1.17k]
  ------------------
 6226|      0|        if ( qualifier.storage == EvqVaryingIn ||
  ------------------
  |  Branch (6226:14): [True: 0, False: 0]
  ------------------
 6227|      0|            (qualifier.storage == EvqVaryingOut && ! qualifier.isPatch()))
  ------------------
  |  Branch (6227:14): [True: 0, False: 0]
  |  Branch (6227:52): [True: 0, False: 0]
  ------------------
 6228|      0|            if ((isEsProfile() && version >= 320) ||
  ------------------
  |  Branch (6228:18): [True: 0, False: 0]
  |  Branch (6228:35): [True: 0, False: 0]
  ------------------
 6229|      0|                extensionsTurnedOn(Num_AEP_tessellation_shader, AEP_tessellation_shader))
  ------------------
  |  Branch (6229:17): [True: 0, False: 0]
  ------------------
 6230|      0|                return;
 6231|      0|        break;
 6232|      0|    case EShLangTessEvaluation:
  ------------------
  |  Branch (6232:5): [True: 0, False: 1.17k]
  ------------------
 6233|      0|        if ((qualifier.storage == EvqVaryingIn && ! qualifier.isPatch()) ||
  ------------------
  |  Branch (6233:14): [True: 0, False: 0]
  |  Branch (6233:51): [True: 0, False: 0]
  ------------------
 6234|      0|             qualifier.storage == EvqVaryingOut)
  ------------------
  |  Branch (6234:14): [True: 0, False: 0]
  ------------------
 6235|      0|            if ((isEsProfile() && version >= 320) ||
  ------------------
  |  Branch (6235:18): [True: 0, False: 0]
  |  Branch (6235:35): [True: 0, False: 0]
  ------------------
 6236|      0|                extensionsTurnedOn(Num_AEP_tessellation_shader, AEP_tessellation_shader))
  ------------------
  |  Branch (6236:17): [True: 0, False: 0]
  ------------------
 6237|      0|                return;
 6238|      0|        break;
 6239|      0|    case EShLangMesh:
  ------------------
  |  Branch (6239:5): [True: 0, False: 1.17k]
  ------------------
 6240|      0|        if (qualifier.storage == EvqVaryingOut)
  ------------------
  |  Branch (6240:13): [True: 0, False: 0]
  ------------------
 6241|      0|            if ((isEsProfile() && version >= 320) ||
  ------------------
  |  Branch (6241:18): [True: 0, False: 0]
  |  Branch (6241:35): [True: 0, False: 0]
  ------------------
 6242|      0|                extensionsTurnedOn(Num_AEP_mesh_shader, AEP_mesh_shader))
  ------------------
  |  Branch (6242:17): [True: 0, False: 0]
  ------------------
 6243|      0|                return;
 6244|      0|        break;
 6245|  1.17k|    default:
  ------------------
  |  Branch (6245:5): [True: 1.17k, False: 0]
  ------------------
 6246|  1.17k|        break;
 6247|  1.17k|    }
 6248|       |
 6249|       |    // last member of ssbo block exception:
 6250|  1.17k|    if (qualifier.storage == EvqBuffer && lastMember)
  ------------------
  |  Branch (6250:9): [True: 93, False: 1.08k]
  |  Branch (6250:43): [True: 7, False: 86]
  ------------------
 6251|      7|        return;
 6252|       |
 6253|       |    // GL_EXT_descriptor_heap arrays, and the last member of a GL_EXT_structured_descriptor_heap heap block
 6254|  1.16k|    if (qualifier.layoutDescriptorHeap)
  ------------------
  |  Branch (6254:9): [True: 0, False: 1.16k]
  ------------------
 6255|      0|        return;
 6256|  1.16k|    if ((qualifier.storage == EvqResourceHeap || qualifier.storage == EvqSamplerHeap) && lastMember)
  ------------------
  |  Branch (6256:10): [True: 0, False: 1.16k]
  |  Branch (6256:50): [True: 0, False: 1.16k]
  |  Branch (6256:90): [True: 0, False: 0]
  ------------------
 6257|      0|        return;
 6258|       |
 6259|  1.16k|    if (qualifier.storage == EvqUniform && lastMember && extensionTurnedOn(E_GL_EXT_uniform_buffer_unsized_array))
  ------------------
  |  Branch (6259:9): [True: 497, False: 670]
  |  Branch (6259:44): [True: 6, False: 491]
  |  Branch (6259:58): [True: 0, False: 6]
  ------------------
 6260|      0|        return;
 6261|       |
 6262|  1.16k|    arraySizeRequiredCheck(loc, *arraySizes);
 6263|  1.16k|}
_ZN7glslang13TParseContext24arrayOfArrayVersionCheckERKNS_10TSourceLocEPKNS_11TArraySizesE:
 6266|  1.16M|{
 6267|  1.16M|    if (sizes == nullptr || sizes->getNumDims() == 1)
  ------------------
  |  Branch (6267:9): [True: 678k, False: 484k]
  |  Branch (6267:29): [True: 481k, False: 3.17k]
  ------------------
 6268|  1.15M|        return;
 6269|       |
 6270|  3.17k|    const char* feature = "arrays of arrays";
 6271|       |
 6272|  3.17k|    requireProfile(loc, EEsProfile | ECoreProfile | ECompatibilityProfile, feature);
 6273|  3.17k|    profileRequires(loc, EEsProfile, 310, nullptr, feature);
 6274|  3.17k|    profileRequires(loc, ECoreProfile | ECompatibilityProfile, 430, nullptr, feature);
 6275|  3.17k|}
_ZN7glslang13TParseContext12declareArrayERKNS_10TSourceLocERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS_5TTypeERPNS_7TSymbolE:
 6282|  20.3k|{
 6283|  20.3k|    if (symbol == nullptr) {
  ------------------
  |  Branch (6283:9): [True: 20.3k, False: 55]
  ------------------
 6284|  20.3k|        bool currentScope;
 6285|  20.3k|        symbol = symbolTable.find(identifier, nullptr, &currentScope);
 6286|       |
 6287|  20.3k|        if (symbol && builtInName(identifier) && ! symbolTable.atBuiltInLevel()) {
  ------------------
  |  Branch (6287:13): [True: 255, False: 20.0k]
  |  Branch (6287:23): [True: 3, False: 252]
  |  Branch (6287:50): [True: 3, False: 0]
  ------------------
 6288|       |            // bad shader (errors already reported) trying to redeclare a built-in name as an array
 6289|      3|            symbol = nullptr;
 6290|      3|            return;
 6291|      3|        }
 6292|  20.3k|        if (symbol == nullptr || ! currentScope) {
  ------------------
  |  Branch (6292:13): [True: 20.0k, False: 252]
  |  Branch (6292:34): [True: 118, False: 134]
  ------------------
 6293|       |            //
 6294|       |            // Successfully process a new definition.
 6295|       |            // (Redeclarations have to take place at the same scope; otherwise they are hiding declarations)
 6296|       |            //
 6297|  20.1k|            symbol = new TVariable(&identifier, type);
 6298|  20.1k|            symbolTable.insert(*symbol);
 6299|  20.1k|            if (symbolTable.atGlobalLevel())
  ------------------
  |  Branch (6299:17): [True: 18.6k, False: 1.52k]
  ------------------
 6300|  18.6k|                trackLinkage(*symbol);
 6301|       |
 6302|  20.1k|            if (! symbolTable.atBuiltInLevel()) {
  ------------------
  |  Branch (6302:17): [True: 3.29k, False: 16.8k]
  ------------------
 6303|  3.29k|                if (isIoResizeArray(type)) {
  ------------------
  |  Branch (6303:21): [True: 0, False: 3.29k]
  ------------------
 6304|      0|                    ioArraySymbolResizeList.push_back(symbol);
 6305|      0|                    checkIoArraysConsistency(loc, true);
 6306|      0|                } else
 6307|  3.29k|                    fixIoArraySize(loc, symbol->getWritableType());
 6308|  3.29k|            }
 6309|       |
 6310|  20.1k|            return;
 6311|  20.1k|        }
 6312|    134|        if (symbol->getAsAnonMember()) {
  ------------------
  |  Branch (6312:13): [True: 0, False: 134]
  ------------------
 6313|      0|            error(loc, "cannot redeclare a user-block member array", identifier.c_str(), "");
 6314|      0|            symbol = nullptr;
 6315|      0|            return;
 6316|      0|        }
 6317|    134|    }
 6318|       |
 6319|       |    //
 6320|       |    // Process a redeclaration.
 6321|       |    //
 6322|       |
 6323|    189|    if (symbol == nullptr) {
  ------------------
  |  Branch (6323:9): [True: 0, False: 189]
  ------------------
 6324|      0|        error(loc, "array variable name expected", identifier.c_str(), "");
 6325|      0|        return;
 6326|      0|    }
 6327|       |
 6328|       |    // redeclareBuiltinVariable() should have already done the copyUp()
 6329|    189|    TType& existingType = symbol->getWritableType();
 6330|       |
 6331|    189|    if (! existingType.isArray()) {
  ------------------
  |  Branch (6331:9): [True: 44, False: 145]
  ------------------
 6332|     44|        error(loc, "redeclaring non-array as array", identifier.c_str(), "");
 6333|     44|        return;
 6334|     44|    }
 6335|       |
 6336|    145|    if (! existingType.sameElementType(type)) {
  ------------------
  |  Branch (6336:9): [True: 16, False: 129]
  ------------------
 6337|     16|        error(loc, "redeclaration of array with a different element type", identifier.c_str(), "");
 6338|     16|        return;
 6339|     16|    }
 6340|       |
 6341|    129|    if (! existingType.sameInnerArrayness(type)) {
  ------------------
  |  Branch (6341:9): [True: 46, False: 83]
  ------------------
 6342|     46|        error(loc, "redeclaration of array with a different array dimensions or sizes", identifier.c_str(), "");
 6343|     46|        return;
 6344|     46|    }
 6345|       |
 6346|     83|    if (existingType.isSizedArray()) {
  ------------------
  |  Branch (6346:9): [True: 26, False: 57]
  ------------------
 6347|       |        // be more leniant for input arrays to geometry shaders and tessellation control outputs, where the redeclaration is the same size
 6348|     26|        if (! (isIoResizeArray(type) && existingType.getOuterArraySize() == type.getOuterArraySize()))
  ------------------
  |  Branch (6348:16): [True: 0, False: 26]
  |  Branch (6348:41): [True: 0, False: 0]
  ------------------
 6349|     26|            error(loc, "redeclaration of array with size", identifier.c_str(), "");
 6350|     26|        return;
 6351|     26|    }
 6352|       |
 6353|     57|    arrayLimitCheck(loc, identifier, type.getOuterArraySize());
 6354|       |
 6355|     57|    existingType.updateArraySizes(type);
 6356|       |
 6357|     57|    if (isIoResizeArray(type))
  ------------------
  |  Branch (6357:9): [True: 0, False: 57]
  ------------------
 6358|      0|        checkIoArraysConsistency(loc);
 6359|     57|}
_ZN7glslang13TParseContext19checkRuntimeSizableERKNS_10TSourceLocERKNS_12TIntermTypedE:
 6363|      3|{
 6364|       |    // runtime length implies runtime sizeable, so no problem
 6365|      3|    if (isRuntimeLength(base))
  ------------------
  |  Branch (6365:9): [True: 0, False: 3]
  ------------------
 6366|      0|        return;
 6367|       |
 6368|      3|    if (base.getType().getQualifier().builtIn == EbvSampleMask)
  ------------------
  |  Branch (6368:9): [True: 0, False: 3]
  ------------------
 6369|      0|        return;
 6370|       |
 6371|       |    // Check for last member of a structured heap, which can be runtime sizeable
 6372|       |    // when using GL_EXT_structured_descriptor_heap
 6373|      3|    if (extensionTurnedOn(E_GL_EXT_structured_descriptor_heap)) {
  ------------------
  |  Branch (6373:9): [True: 0, False: 3]
  ------------------
 6374|      0|        const TIntermBinary* binary = base.getAsBinaryNode();
 6375|      0|        if (binary != nullptr && binary->getOp() == EOpIndexDirectStruct) {
  ------------------
  |  Branch (6375:13): [True: 0, False: 0]
  |  Branch (6375:34): [True: 0, False: 0]
  ------------------
 6376|      0|            const TType& blockType = binary->getLeft()->getType();
 6377|      0|            const TStorageQualifier storage = blockType.getQualifier().storage;
 6378|       |
 6379|      0|            const bool isStructuredHeap = (storage == EvqResourceHeap || storage == EvqSamplerHeap);
  ------------------
  |  Branch (6379:44): [True: 0, False: 0]
  |  Branch (6379:74): [True: 0, False: 0]
  ------------------
 6380|       |
 6381|      0|            if (blockType.getBasicType() == EbtBlock && isStructuredHeap) {
  ------------------
  |  Branch (6381:17): [True: 0, False: 0]
  |  Branch (6381:57): [True: 0, False: 0]
  ------------------
 6382|      0|                const int index = binary->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst();
 6383|      0|                const TTypeList& members = *blockType.getStruct();
 6384|      0|                const int memberCount = static_cast<int>(members.size());
 6385|       |
 6386|      0|                if (index != memberCount - 1) {
  ------------------
  |  Branch (6386:21): [True: 0, False: 0]
  ------------------
 6387|      0|                    const char* fieldName = members[index].type->getFieldName().c_str();
 6388|      0|                    error(loc, "cannot declare runtime sizeable array for the non-last field of the heap", fieldName, "");
 6389|      0|                }
 6390|       |
 6391|      0|                return;
 6392|      0|            }
 6393|      0|        }
 6394|      0|    }
 6395|       |
 6396|       |    // Check for last member of a buffer_reference type, which is runtime sizeable
 6397|       |    // but doesn't support runtime length
 6398|      3|    if (base.getType().getQualifier().storage == EvqBuffer) {
  ------------------
  |  Branch (6398:9): [True: 0, False: 3]
  ------------------
 6399|      0|        const TIntermBinary* binary = base.getAsBinaryNode();
 6400|      0|        if (binary != nullptr &&
  ------------------
  |  Branch (6400:13): [True: 0, False: 0]
  ------------------
 6401|      0|            binary->getOp() == EOpIndexDirectStruct &&
  ------------------
  |  Branch (6401:13): [True: 0, False: 0]
  ------------------
 6402|      0|            binary->getLeft()->isReference()) {
  ------------------
  |  Branch (6402:13): [True: 0, False: 0]
  ------------------
 6403|       |
 6404|      0|            const int index = binary->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst();
 6405|      0|            const int memberCount = (int)binary->getLeft()->getType().getReferentType()->getStruct()->size();
 6406|      0|            if (index == memberCount - 1)
  ------------------
  |  Branch (6406:17): [True: 0, False: 0]
  ------------------
 6407|      0|                return;
 6408|      0|        }
 6409|      0|    }
 6410|       |
 6411|       |    // Check for last member of a uniform block, which can be runtime sizeable
 6412|       |    // when using GL_EXT_uniform_buffer_unsized_array
 6413|      3|    if (base.getType().getQualifier().storage == EvqUniform && extensionTurnedOn(E_GL_EXT_uniform_buffer_unsized_array)) {
  ------------------
  |  Branch (6413:9): [True: 0, False: 3]
  |  Branch (6413:64): [True: 0, False: 0]
  ------------------
 6414|      0|        const TIntermBinary* binary = base.getAsBinaryNode();
 6415|      0|        if (binary != nullptr &&
  ------------------
  |  Branch (6415:13): [True: 0, False: 0]
  ------------------
 6416|      0|            binary->getOp() == EOpIndexDirectStruct) {
  ------------------
  |  Branch (6416:13): [True: 0, False: 0]
  ------------------
 6417|       |
 6418|      0|            const int index = binary->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst();
 6419|      0|            const int memberCount = (int)binary->getLeft()->getType().getStruct()->size();
 6420|      0|            if (index == memberCount - 1)
  ------------------
  |  Branch (6420:17): [True: 0, False: 0]
  ------------------
 6421|      0|                return;
 6422|      0|        }
 6423|      0|    }
 6424|       |
 6425|       |    // check for additional things allowed by GL_EXT_nonuniform_qualifier
 6426|      3|    if (base.getBasicType() == EbtSampler || base.getBasicType() == EbtAccStruct || base.getBasicType() == EbtRayQuery ||
  ------------------
  |  Branch (6426:9): [True: 0, False: 3]
  |  Branch (6426:46): [True: 0, False: 3]
  |  Branch (6426:85): [True: 0, False: 3]
  ------------------
 6427|      3|        base.getBasicType() == EbtHitObjectNV || (base.getBasicType() == EbtBlock && base.getType().getQualifier().isUniformOrBuffer()))
  ------------------
  |  Branch (6427:9): [True: 0, False: 3]
  |  Branch (6427:51): [True: 0, False: 3]
  |  Branch (6427:86): [True: 0, False: 0]
  ------------------
 6428|      0|        requireExtensions(loc, 1, &E_GL_EXT_nonuniform_qualifier, "variable index");
 6429|      3|    else
 6430|      3|        error(loc, "", "[", "array must be redeclared with a size before being indexed with a variable");
 6431|      3|}
_ZNK7glslang13TParseContext15isRuntimeLengthERKNS_12TIntermTypedE:
 6435|     39|{
 6436|     39|    if (base.getType().getQualifier().storage == EvqBuffer) {
  ------------------
  |  Branch (6436:9): [True: 0, False: 39]
  ------------------
 6437|       |        // in a buffer block
 6438|      0|        const TIntermBinary* binary = base.getAsBinaryNode();
 6439|      0|        if (binary != nullptr && binary->getOp() == EOpIndexDirectStruct) {
  ------------------
  |  Branch (6439:13): [True: 0, False: 0]
  |  Branch (6439:34): [True: 0, False: 0]
  ------------------
 6440|       |            // is it the last member?
 6441|      0|            const int index = binary->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst();
 6442|       |
 6443|      0|            if (binary->getLeft()->isReference())
  ------------------
  |  Branch (6443:17): [True: 0, False: 0]
  ------------------
 6444|      0|                return false;
 6445|       |
 6446|      0|            const int memberCount = (int)binary->getLeft()->getType().getStruct()->size();
 6447|      0|            if (index == memberCount - 1)
  ------------------
  |  Branch (6447:17): [True: 0, False: 0]
  ------------------
 6448|      0|                return true;
 6449|      0|        }
 6450|      0|    }
 6451|       |
 6452|     39|    return false;
 6453|     39|}
_ZN7glslang13TParseContext25checkAndResizeMeshViewDimERKNS_10TSourceLocERNS_5TTypeEb:
 6458|   679k|{
 6459|       |    // see if member is a per-view attribute
 6460|   679k|    if (!type.getQualifier().isPerView())
  ------------------
  |  Branch (6460:9): [True: 677k, False: 1.54k]
  ------------------
 6461|   677k|        return;
 6462|       |
 6463|  1.54k|    if ((isBlockMember && type.isArray()) || (!isBlockMember && type.isArrayOfArrays())) {
  ------------------
  |  Branch (6463:10): [True: 1.54k, False: 0]
  |  Branch (6463:27): [True: 1.54k, False: 0]
  |  Branch (6463:47): [True: 0, False: 0]
  |  Branch (6463:65): [True: 0, False: 0]
  ------------------
 6464|       |        // since we don't have the maxMeshViewCountNV set during parsing builtins, we hardcode the value.
 6465|  1.54k|        int maxViewCount = parsingBuiltins ? 4 : resources.maxMeshViewCountNV;
  ------------------
  |  Branch (6465:28): [True: 1.54k, False: 0]
  ------------------
 6466|       |        // For block members, outermost array dimension is the view dimension.
 6467|       |        // For non-block members, outermost array dimension is the vertex/primitive dimension
 6468|       |        // and 2nd outermost is the view dimension.
 6469|  1.54k|        int viewDim = isBlockMember ? 0 : 1;
  ------------------
  |  Branch (6469:23): [True: 1.54k, False: 0]
  ------------------
 6470|  1.54k|        int viewDimSize = type.getArraySizes()->getDimSize(viewDim);
 6471|       |
 6472|  1.54k|        if (viewDimSize != UnsizedArraySize && viewDimSize != maxViewCount)
  ------------------
  |  Branch (6472:13): [True: 0, False: 1.54k]
  |  Branch (6472:48): [True: 0, False: 0]
  ------------------
 6473|      0|            error(loc, "mesh view output array size must be gl_MaxMeshViewCountNV or implicitly sized", "[]", "");
 6474|  1.54k|        else if (viewDimSize == UnsizedArraySize)
  ------------------
  |  Branch (6474:18): [True: 1.54k, False: 0]
  ------------------
 6475|  1.54k|            type.getArraySizes()->setDimSize(viewDim, maxViewCount);
 6476|  1.54k|    }
 6477|      0|    else {
 6478|      0|        error(loc, "requires a view array dimension", "perviewNV", "");
 6479|      0|    }
 6480|  1.54k|}
_ZNK7glslang13TParseContext30lineDirectiveShouldSetNextLineEv:
 6492|    184|{
 6493|    184|    return isEsProfile() || version >= 330;
  ------------------
  |  Branch (6493:12): [True: 17, False: 167]
  |  Branch (6493:29): [True: 4, False: 163]
  ------------------
 6494|    184|}
_ZN7glslang13TParseContext17nonInitConstCheckERKNS_10TSourceLocERNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEERNS_5TTypeE:
 6500|   282k|{
 6501|       |    //
 6502|       |    // Make the qualifier make sense, given that there is not an initializer.
 6503|       |    //
 6504|   282k|    if (type.getQualifier().storage == EvqConst ||
  ------------------
  |  Branch (6504:9): [True: 8, False: 282k]
  ------------------
 6505|   282k|        type.getQualifier().storage == EvqConstReadOnly) {
  ------------------
  |  Branch (6505:9): [True: 0, False: 282k]
  ------------------
 6506|      8|        type.getQualifier().makeTemporary();
 6507|      8|        error(loc, "variables with qualifier 'const' must be initialized", identifier.c_str(), "");
 6508|      8|    }
 6509|   282k|}
_ZN7glslang13TParseContext24redeclareBuiltinVariableERKNS_10TSourceLocERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS_10TQualifierERKNS_17TShaderQualifiersE:
 6523|   675k|{
 6524|   675k|    if (! builtInName(identifier) || symbolTable.atBuiltInLevel() || ! symbolTable.atGlobalLevel())
  ------------------
  |  Branch (6524:9): [True: 132k, False: 542k]
  |  Branch (6524:38): [True: 541k, False: 862]
  |  Branch (6524:70): [True: 4, False: 858]
  ------------------
 6525|   674k|        return nullptr;
 6526|       |
 6527|    858|    bool nonEsRedecls = (!isEsProfile() && (version >= 130 || identifier == "gl_TexCoord"));
  ------------------
  |  Branch (6527:26): [True: 337, False: 521]
  |  Branch (6527:45): [True: 337, False: 0]
  |  Branch (6527:63): [True: 0, False: 0]
  ------------------
 6528|    858|    bool    esRedecls = (isEsProfile() &&
  ------------------
  |  Branch (6528:26): [True: 521, False: 337]
  ------------------
 6529|    521|                         (version >= 320 || extensionsTurnedOn(Num_AEP_shader_io_blocks, AEP_shader_io_blocks) ||
  ------------------
  |  Branch (6529:27): [True: 37, False: 484]
  |  Branch (6529:45): [True: 329, False: 155]
  ------------------
 6530|    155|                          (identifier == "gl_FragDepth" && extensionTurnedOn(E_GL_EXT_conservative_depth)) ||
  ------------------
  |  Branch (6530:28): [True: 26, False: 129]
  |  Branch (6530:60): [True: 0, False: 26]
  ------------------
 6531|    155|                          ((identifier == "gl_ClipDistance" || identifier == "gl_CullDistance") &&
  ------------------
  |  Branch (6531:29): [True: 2, False: 153]
  |  Branch (6531:64): [True: 0, False: 153]
  ------------------
 6532|      2|                           extensionTurnedOn(E_GL_EXT_clip_cull_distance))));
  ------------------
  |  Branch (6532:28): [True: 0, False: 2]
  ------------------
 6533|    858|    if (! esRedecls && ! nonEsRedecls)
  ------------------
  |  Branch (6533:9): [True: 492, False: 366]
  |  Branch (6533:24): [True: 155, False: 337]
  ------------------
 6534|    155|        return nullptr;
 6535|       |
 6536|       |    // Special case when using GL_ARB_separate_shader_objects
 6537|    703|    bool ssoPre150 = false;  // means the only reason this variable is redeclared is due to this combination
 6538|    703|    if (!isEsProfile() && version <= 140 && extensionTurnedOn(E_GL_ARB_separate_shader_objects)) {
  ------------------
  |  Branch (6538:9): [True: 337, False: 366]
  |  Branch (6538:27): [True: 220, False: 117]
  |  Branch (6538:45): [True: 10, False: 210]
  ------------------
 6539|     10|        if (identifier == "gl_Position"     ||
  ------------------
  |  Branch (6539:13): [True: 0, False: 10]
  ------------------
 6540|     10|            identifier == "gl_PointSize"    ||
  ------------------
  |  Branch (6540:13): [True: 0, False: 10]
  ------------------
 6541|     10|            identifier == "gl_ClipVertex"   ||
  ------------------
  |  Branch (6541:13): [True: 0, False: 10]
  ------------------
 6542|     10|            identifier == "gl_FogFragCoord")
  ------------------
  |  Branch (6542:13): [True: 4, False: 6]
  ------------------
 6543|      4|            ssoPre150 = true;
 6544|     10|    }
 6545|       |
 6546|       |    // Potentially redeclaring a built-in variable...
 6547|       |
 6548|    703|    if (ssoPre150 ||
  ------------------
  |  Branch (6548:9): [True: 4, False: 699]
  ------------------
 6549|    699|        (identifier == "gl_FragDepth"           && ((nonEsRedecls && version >= 420) || esRedecls)) ||
  ------------------
  |  Branch (6549:10): [True: 249, False: 450]
  |  Branch (6549:54): [True: 34, False: 215]
  |  Branch (6549:70): [True: 34, False: 0]
  |  Branch (6549:89): [True: 215, False: 0]
  ------------------
 6550|    450|        (identifier == "gl_FragCoord"           && ((nonEsRedecls && version >= 140) || esRedecls)) ||
  ------------------
  |  Branch (6550:10): [True: 200, False: 250]
  |  Branch (6550:54): [True: 49, False: 151]
  |  Branch (6550:70): [True: 49, False: 0]
  |  Branch (6550:89): [True: 151, False: 0]
  ------------------
 6551|    250|         identifier == "gl_ClipDistance"                                                            ||
  ------------------
  |  Branch (6551:10): [True: 14, False: 236]
  ------------------
 6552|    236|         identifier == "gl_CullDistance"                                                            ||
  ------------------
  |  Branch (6552:10): [True: 0, False: 236]
  ------------------
 6553|    236|         identifier == "gl_ShadingRateEXT"                                                          ||
  ------------------
  |  Branch (6553:10): [True: 0, False: 236]
  ------------------
 6554|    236|         identifier == "gl_PrimitiveShadingRateEXT"                                                 ||
  ------------------
  |  Branch (6554:10): [True: 0, False: 236]
  ------------------
 6555|    236|         identifier == "gl_FrontColor"                                                              ||
  ------------------
  |  Branch (6555:10): [True: 0, False: 236]
  ------------------
 6556|    236|         identifier == "gl_BackColor"                                                               ||
  ------------------
  |  Branch (6556:10): [True: 0, False: 236]
  ------------------
 6557|    236|         identifier == "gl_FrontSecondaryColor"                                                     ||
  ------------------
  |  Branch (6557:10): [True: 0, False: 236]
  ------------------
 6558|    236|         identifier == "gl_BackSecondaryColor"                                                      ||
  ------------------
  |  Branch (6558:10): [True: 0, False: 236]
  ------------------
 6559|    236|         identifier == "gl_SecondaryColor"                                                          ||
  ------------------
  |  Branch (6559:10): [True: 0, False: 236]
  ------------------
 6560|    236|        (identifier == "gl_Color"               && language == EShLangFragment)                     ||
  ------------------
  |  Branch (6560:10): [True: 228, False: 8]
  |  Branch (6560:52): [True: 228, False: 0]
  ------------------
 6561|      8|        (identifier == "gl_FragStencilRefARB"   && (nonEsRedecls && version >= 140)
  ------------------
  |  Branch (6561:10): [True: 0, False: 8]
  |  Branch (6561:53): [True: 0, False: 0]
  |  Branch (6561:69): [True: 0, False: 0]
  ------------------
 6562|      0|                                                && language == EShLangFragment)                     ||
  ------------------
  |  Branch (6562:52): [True: 0, False: 0]
  ------------------
 6563|      8|         identifier == "gl_SampleMask"                                                              ||
  ------------------
  |  Branch (6563:10): [True: 0, False: 8]
  ------------------
 6564|      8|         identifier == "gl_EnableOpacityMicromapEXT"                                                ||
  ------------------
  |  Branch (6564:10): [True: 0, False: 8]
  ------------------
 6565|      8|         identifier == "gl_Layer"                                                                   ||
  ------------------
  |  Branch (6565:10): [True: 0, False: 8]
  ------------------
 6566|      8|         identifier == "gl_PrimitiveIndicesNV"                                                      ||
  ------------------
  |  Branch (6566:10): [True: 0, False: 8]
  ------------------
 6567|      8|         identifier == "gl_PrimitivePointIndicesEXT"                                                ||
  ------------------
  |  Branch (6567:10): [True: 0, False: 8]
  ------------------
 6568|      8|         identifier == "gl_PrimitiveLineIndicesEXT"                                                 ||
  ------------------
  |  Branch (6568:10): [True: 0, False: 8]
  ------------------
 6569|      8|         identifier == "gl_PrimitiveTriangleIndicesEXT"                                             ||
  ------------------
  |  Branch (6569:10): [True: 0, False: 8]
  ------------------
 6570|    695|         identifier == "gl_TexCoord") {
  ------------------
  |  Branch (6570:10): [True: 0, False: 8]
  ------------------
 6571|       |
 6572|       |        // Find the existing symbol, if any.
 6573|    695|        bool builtIn;
 6574|    695|        TSymbol* symbol = symbolTable.find(identifier, &builtIn);
 6575|       |
 6576|       |        // If the symbol was not found, this must be a version/profile/stage
 6577|       |        // that doesn't have it.
 6578|    695|        if (! symbol)
  ------------------
  |  Branch (6578:13): [True: 52, False: 643]
  ------------------
 6579|     52|            return nullptr;
 6580|       |
 6581|       |        // If it wasn't at a built-in level, then it's already been redeclared;
 6582|       |        // that is, this is a redeclaration of a redeclaration; reuse that initial
 6583|       |        // redeclaration.  Otherwise, make the new one.
 6584|    643|        if (builtIn) {
  ------------------
  |  Branch (6584:13): [True: 113, False: 530]
  ------------------
 6585|    113|            makeEditable(symbol);
 6586|    113|            if (! symbol) {
  ------------------
  |  Branch (6586:17): [True: 0, False: 113]
  ------------------
 6587|      0|                error(loc, "cannot redeclare after another member of its block was declared",
 6588|      0|                      identifier.c_str(), "");
 6589|      0|                return nullptr;
 6590|      0|            }
 6591|    113|            symbolTable.amendSymbolIdLevel(*symbol);
 6592|    113|        }
 6593|       |
 6594|       |        // Now, modify the type of the copy, as per the type of the current redeclaration.
 6595|       |
 6596|    643|        TQualifier& symbolQualifier = symbol->getWritableType().getQualifier();
 6597|    643|        if (ssoPre150) {
  ------------------
  |  Branch (6597:13): [True: 4, False: 639]
  ------------------
 6598|      4|            if (intermediate.inIoAccessed(identifier))
  ------------------
  |  Branch (6598:17): [True: 0, False: 4]
  ------------------
 6599|      0|                error(loc, "cannot redeclare after use", identifier.c_str(), "");
 6600|      4|            if (qualifier.hasLayout())
  ------------------
  |  Branch (6600:17): [True: 0, False: 4]
  ------------------
 6601|      0|                error(loc, "cannot apply layout qualifier to", "redeclaration", "%s", symbol->getName().c_str());
 6602|      4|            if (qualifier.isMemory() || qualifier.isAuxiliary() || (language == EShLangVertex   && qualifier.storage != EvqVaryingOut) ||
  ------------------
  |  Branch (6602:17): [True: 0, False: 4]
  |  Branch (6602:41): [True: 0, False: 4]
  |  Branch (6602:69): [True: 0, False: 4]
  |  Branch (6602:100): [True: 0, False: 0]
  ------------------
 6603|      4|                                                                   (language == EShLangFragment && qualifier.storage != EvqVaryingIn))
  ------------------
  |  Branch (6603:69): [True: 4, False: 0]
  |  Branch (6603:100): [True: 0, False: 4]
  ------------------
 6604|      0|                error(loc, "cannot change storage, memory, or auxiliary qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6605|      4|            if (! qualifier.smooth)
  ------------------
  |  Branch (6605:17): [True: 0, False: 4]
  ------------------
 6606|      0|                error(loc, "cannot change interpolation qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6607|    639|        } else if (identifier == "gl_FrontColor"          ||
  ------------------
  |  Branch (6607:20): [True: 0, False: 639]
  ------------------
 6608|    639|                   identifier == "gl_BackColor"           ||
  ------------------
  |  Branch (6608:20): [True: 0, False: 639]
  ------------------
 6609|    639|                   identifier == "gl_FrontSecondaryColor" ||
  ------------------
  |  Branch (6609:20): [True: 0, False: 639]
  ------------------
 6610|    639|                   identifier == "gl_BackSecondaryColor"  ||
  ------------------
  |  Branch (6610:20): [True: 0, False: 639]
  ------------------
 6611|    639|                   identifier == "gl_SecondaryColor"      ||
  ------------------
  |  Branch (6611:20): [True: 0, False: 639]
  ------------------
 6612|    639|                   identifier == "gl_Color") {
  ------------------
  |  Branch (6612:20): [True: 176, False: 463]
  ------------------
 6613|    176|            symbolQualifier.flat = qualifier.flat;
 6614|    176|            symbolQualifier.smooth = qualifier.smooth;
 6615|    176|            symbolQualifier.nopersp = qualifier.nopersp;
 6616|    176|            if (qualifier.hasLayout())
  ------------------
  |  Branch (6616:17): [True: 3, False: 173]
  ------------------
 6617|      3|                error(loc, "cannot apply layout qualifier to", "redeclaration", "%s", symbol->getName().c_str());
 6618|    176|            if (qualifier.isMemory() || qualifier.isAuxiliary() || symbol->getType().getQualifier().storage != qualifier.storage)
  ------------------
  |  Branch (6618:17): [True: 0, False: 176]
  |  Branch (6618:41): [True: 0, False: 176]
  |  Branch (6618:68): [True: 42, False: 134]
  ------------------
 6619|     42|                error(loc, "cannot change storage, memory, or auxiliary qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6620|    463|        } else if (identifier == "gl_TexCoord"     ||
  ------------------
  |  Branch (6620:20): [True: 0, False: 463]
  ------------------
 6621|    463|                   identifier == "gl_ClipDistance" ||
  ------------------
  |  Branch (6621:20): [True: 14, False: 449]
  ------------------
 6622|    449|                   identifier == "gl_CullDistance") {
  ------------------
  |  Branch (6622:20): [True: 0, False: 449]
  ------------------
 6623|     14|            if (qualifier.hasLayout() || qualifier.isMemory() || qualifier.isAuxiliary() ||
  ------------------
  |  Branch (6623:17): [True: 0, False: 14]
  |  Branch (6623:42): [True: 0, False: 14]
  |  Branch (6623:66): [True: 0, False: 14]
  ------------------
 6624|     14|                qualifier.nopersp != symbolQualifier.nopersp || qualifier.flat != symbolQualifier.flat ||
  ------------------
  |  Branch (6624:17): [True: 7, False: 7]
  |  Branch (6624:65): [True: 0, False: 7]
  ------------------
 6625|      7|                symbolQualifier.storage != qualifier.storage)
  ------------------
  |  Branch (6625:17): [True: 0, False: 7]
  ------------------
 6626|      7|                error(loc, "cannot change qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6627|    449|        } else if (identifier == "gl_FragCoord") {
  ------------------
  |  Branch (6627:20): [True: 200, False: 249]
  ------------------
 6628|    200|            if (!intermediate.getTexCoordRedeclared() && intermediate.inIoAccessed("gl_FragCoord"))
  ------------------
  |  Branch (6628:17): [True: 92, False: 108]
  |  Branch (6628:17): [True: 5, False: 195]
  |  Branch (6628:58): [True: 5, False: 87]
  ------------------
 6629|      5|                error(loc, "cannot redeclare after use", "gl_FragCoord", "");
 6630|    200|            if (qualifier.nopersp != symbolQualifier.nopersp || qualifier.flat != symbolQualifier.flat ||
  ------------------
  |  Branch (6630:17): [True: 0, False: 200]
  |  Branch (6630:65): [True: 0, False: 200]
  ------------------
 6631|    200|                qualifier.isMemory() || qualifier.isAuxiliary())
  ------------------
  |  Branch (6631:17): [True: 0, False: 200]
  |  Branch (6631:41): [True: 0, False: 200]
  ------------------
 6632|      0|                error(loc, "can only change layout qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6633|    200|            if (qualifier.storage != EvqVaryingIn)
  ------------------
  |  Branch (6633:17): [True: 0, False: 200]
  ------------------
 6634|      0|                error(loc, "cannot change input storage qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6635|    200|            if (! builtIn && (publicType.pixelCenterInteger != intermediate.getPixelCenterInteger() ||
  ------------------
  |  Branch (6635:17): [True: 176, False: 24]
  |  Branch (6635:31): [True: 86, False: 90]
  ------------------
 6636|     90|                              publicType.originUpperLeft != intermediate.getOriginUpperLeft()))
  ------------------
  |  Branch (6636:31): [True: 69, False: 21]
  ------------------
 6637|    155|                error(loc, "cannot redeclare with different qualification:", "redeclaration", "%s", symbol->getName().c_str());
 6638|       |
 6639|       |
 6640|    200|            intermediate.setTexCoordRedeclared();
 6641|    200|            if (publicType.pixelCenterInteger)
  ------------------
  |  Branch (6641:17): [True: 107, False: 93]
  ------------------
 6642|    107|                intermediate.setPixelCenterInteger();
 6643|    200|            if (publicType.originUpperLeft)
  ------------------
  |  Branch (6643:17): [True: 106, False: 94]
  ------------------
 6644|    106|                intermediate.setOriginUpperLeft();
 6645|    249|        } else if (identifier == "gl_FragDepth") {
  ------------------
  |  Branch (6645:20): [True: 249, False: 0]
  ------------------
 6646|    249|            if (qualifier.nopersp != symbolQualifier.nopersp || qualifier.flat != symbolQualifier.flat ||
  ------------------
  |  Branch (6646:17): [True: 0, False: 249]
  |  Branch (6646:65): [True: 0, False: 249]
  ------------------
 6647|    249|                qualifier.isMemory() || qualifier.isAuxiliary())
  ------------------
  |  Branch (6647:17): [True: 0, False: 249]
  |  Branch (6647:41): [True: 0, False: 249]
  ------------------
 6648|      0|                error(loc, "can only change layout qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6649|    249|            if (qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (6649:17): [True: 0, False: 249]
  ------------------
 6650|      0|                error(loc, "cannot change output storage qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6651|    249|            if (publicType.layoutDepth != EldNone) {
  ------------------
  |  Branch (6651:17): [True: 95, False: 154]
  ------------------
 6652|     95|                if (intermediate.inIoAccessed("gl_FragDepth"))
  ------------------
  |  Branch (6652:21): [True: 0, False: 95]
  ------------------
 6653|      0|                    error(loc, "cannot redeclare after use", "gl_FragDepth", "");
 6654|     95|                if (! intermediate.setDepth(publicType.layoutDepth))
  ------------------
  |  Branch (6654:21): [True: 11, False: 84]
  ------------------
 6655|     11|                    error(loc, "all redeclarations must use the same depth layout on", "redeclaration", "%s", symbol->getName().c_str());
 6656|     95|            }
 6657|    249|        } else if (identifier == "gl_FragStencilRefARB") {
  ------------------
  |  Branch (6657:20): [True: 0, False: 0]
  ------------------
 6658|      0|            if (qualifier.nopersp != symbolQualifier.nopersp || qualifier.flat != symbolQualifier.flat ||
  ------------------
  |  Branch (6658:17): [True: 0, False: 0]
  |  Branch (6658:65): [True: 0, False: 0]
  ------------------
 6659|      0|                qualifier.isMemory() || qualifier.isAuxiliary())
  ------------------
  |  Branch (6659:17): [True: 0, False: 0]
  |  Branch (6659:41): [True: 0, False: 0]
  ------------------
 6660|      0|                error(loc, "can only change layout qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6661|      0|            if (qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (6661:17): [True: 0, False: 0]
  ------------------
 6662|      0|                error(loc, "cannot change output storage qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6663|      0|            if (publicType.layoutStencil != ElsNone) {
  ------------------
  |  Branch (6663:17): [True: 0, False: 0]
  ------------------
 6664|      0|                if (intermediate.inIoAccessed("gl_FragStencilRefARB"))
  ------------------
  |  Branch (6664:21): [True: 0, False: 0]
  ------------------
 6665|      0|                    error(loc, "cannot redeclare after use", "gl_FragStencilRefARB", "");
 6666|      0|                if (!intermediate.setStencil(publicType.layoutStencil))
  ------------------
  |  Branch (6666:21): [True: 0, False: 0]
  ------------------
 6667|      0|                    error(loc, "all redeclarations must use the same stencil layout on", "redeclaration",
 6668|      0|                          "%s", symbol->getName().c_str());
 6669|      0|            }
 6670|      0|        }
 6671|      0|        else if (
 6672|      0|            identifier == "gl_PrimitiveIndicesNV") {
  ------------------
  |  Branch (6672:13): [True: 0, False: 0]
  ------------------
 6673|      0|            if (qualifier.hasLayout())
  ------------------
  |  Branch (6673:17): [True: 0, False: 0]
  ------------------
 6674|      0|                error(loc, "cannot apply layout qualifier to", "redeclaration", "%s", symbol->getName().c_str());
 6675|      0|            if (qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (6675:17): [True: 0, False: 0]
  ------------------
 6676|      0|                error(loc, "cannot change output storage qualification of", "redeclaration", "%s", symbol->getName().c_str());
 6677|      0|        }
 6678|      0|        else if (identifier == "gl_SampleMask") {
  ------------------
  |  Branch (6678:18): [True: 0, False: 0]
  ------------------
 6679|      0|            if (!publicType.layoutOverrideCoverage) {
  ------------------
  |  Branch (6679:17): [True: 0, False: 0]
  ------------------
 6680|      0|                error(loc, "redeclaration only allowed for override_coverage layout", "redeclaration", "%s", symbol->getName().c_str());
 6681|      0|            }
 6682|      0|            intermediate.setLayoutOverrideCoverage();
 6683|      0|        }
 6684|      0|        else if (identifier == "gl_Layer") {
  ------------------
  |  Branch (6684:18): [True: 0, False: 0]
  ------------------
 6685|      0|            if (!qualifier.layoutViewportRelative && qualifier.layoutSecondaryViewportRelativeOffset == -2048)
  ------------------
  |  Branch (6685:17): [True: 0, False: 0]
  |  Branch (6685:54): [True: 0, False: 0]
  ------------------
 6686|      0|                error(loc, "redeclaration only allowed for viewport_relative or secondary_view_offset layout", "redeclaration", "%s", symbol->getName().c_str());
 6687|      0|            symbolQualifier.layoutViewportRelative = qualifier.layoutViewportRelative;
 6688|      0|            symbolQualifier.layoutSecondaryViewportRelativeOffset = qualifier.layoutSecondaryViewportRelativeOffset;
 6689|      0|        }
 6690|      0|        else if (identifier == "gl_EnableOpacityMicromapEXT") {
  ------------------
  |  Branch (6690:18): [True: 0, False: 0]
  ------------------
 6691|       |            // GL_EXT_opacity_micromap_ray_query_mode. This branch handles the full-redeclaration form
 6692|       |            //   const bool gl_EnableOpacityMicromapEXT = <true|false>;
 6693|       |            // which sets the built-in's value (emitted as OpConstantTrue/OpConstantFalse). The
 6694|       |            // specialization-constant form is the bare "layout(constant_id = N) gl_EnableOpacityMicromapEXT;"
 6695|       |            // (handled in addQualifierToExisting); per the extension it is not valid to restate the type
 6696|       |            // or specify a value together with constant_id.
 6697|      0|            requireExtensions(loc, 1, &E_GL_EXT_opacity_micromap_ray_query_mode, "gl_EnableOpacityMicromapEXT redeclaration");
 6698|      0|            if (qualifier.hasSpecConstantId())
  ------------------
  |  Branch (6698:17): [True: 0, False: 0]
  ------------------
 6699|      0|                error(loc, "cannot restate the type or specify a value with constant_id; use "
 6700|      0|                           "'layout(constant_id = N) gl_EnableOpacityMicromapEXT;'", "redeclaration",
 6701|      0|                      "%s", symbol->getName().c_str());
 6702|      0|            else if (qualifier.storage != EvqConst)
  ------------------
  |  Branch (6702:22): [True: 0, False: 0]
  ------------------
 6703|      0|                error(loc, "can only be redeclared as 'const bool gl_EnableOpacityMicromapEXT = <true|false>;' "
 6704|      0|                           "or 'layout(constant_id = N) gl_EnableOpacityMicromapEXT;'", "redeclaration",
 6705|      0|                      "%s", symbol->getName().c_str());
 6706|       |            // For the valid 'const bool = <true|false>;' form the value is captured from the initializer
 6707|       |            // after it is processed (see declareVariable); nothing else to do to the symbol's qualifier here.
 6708|      0|        }
 6709|       |
 6710|       |        // TODO: semantics quality: separate smooth from nothing declared, then use IsInterpolation for several tests above
 6711|       |
 6712|    643|        return symbol;
 6713|    643|    }
 6714|       |
 6715|      8|    return nullptr;
 6716|    703|}
_ZN7glslang13TParseContext21redeclareBuiltinBlockERKNS_10TSourceLocERNS_7TVectorINS_8TTypeLocEEERKNSt3__112basic_stringIcNS8_11char_traitsIcEENS_14pool_allocatorIcEEEEPSF_PNS_11TArraySizesE:
 6724|     98|{
 6725|     98|    const char* feature = "built-in block redeclaration";
 6726|     98|    profileRequires(loc, EEsProfile, 320, Num_AEP_shader_io_blocks, AEP_shader_io_blocks, feature);
 6727|     98|    profileRequires(loc, ~EEsProfile, 410, E_GL_ARB_separate_shader_objects, feature);
 6728|       |
 6729|     98|    if (blockName != "gl_PerVertex" && blockName != "gl_PerFragment" &&
  ------------------
  |  Branch (6729:9): [True: 51, False: 47]
  |  Branch (6729:40): [True: 27, False: 24]
  ------------------
 6730|     27|        blockName != "gl_MeshPerVertexNV" && blockName != "gl_MeshPerPrimitiveNV" &&
  ------------------
  |  Branch (6730:9): [True: 27, False: 0]
  |  Branch (6730:46): [True: 27, False: 0]
  ------------------
 6731|     27|        blockName != "gl_MeshPerVertexEXT" && blockName != "gl_MeshPerPrimitiveEXT") {
  ------------------
  |  Branch (6731:9): [True: 27, False: 0]
  |  Branch (6731:47): [True: 27, False: 0]
  ------------------
 6732|     27|        error(loc, "cannot redeclare block: ", "block declaration", "%s", blockName.c_str());
 6733|     27|        return;
 6734|     27|    }
 6735|       |
 6736|       |    // Redeclaring a built-in block...
 6737|       |
 6738|     71|    if (instanceName && ! builtInName(*instanceName)) {
  ------------------
  |  Branch (6738:9): [True: 24, False: 47]
  |  Branch (6738:25): [True: 19, False: 5]
  ------------------
 6739|     19|        error(loc, "cannot redeclare a built-in block with a user name", instanceName->c_str(), "");
 6740|     19|        return;
 6741|     19|    }
 6742|       |
 6743|       |    // Blocks with instance names are easy to find, lookup the instance name,
 6744|       |    // Anonymous blocks need to be found via a member.
 6745|     52|    bool builtIn;
 6746|     52|    TSymbol* block;
 6747|     52|    if (instanceName)
  ------------------
  |  Branch (6747:9): [True: 5, False: 47]
  ------------------
 6748|      5|        block = symbolTable.find(*instanceName, &builtIn);
 6749|     47|    else
 6750|     47|        block = symbolTable.find(newTypeList.front().type->getFieldName(), &builtIn);
 6751|       |
 6752|       |    // If the block was not found, this must be a version/profile/stage
 6753|       |    // that doesn't have it, or the instance name is wrong.
 6754|     52|    const char* errorName = instanceName ? instanceName->c_str() : newTypeList.front().type->getFieldName().c_str();
  ------------------
  |  Branch (6754:29): [True: 5, False: 47]
  ------------------
 6755|     52|    if (! block) {
  ------------------
  |  Branch (6755:9): [True: 6, False: 46]
  ------------------
 6756|      6|        error(loc, "no declaration found for redeclaration", errorName, "");
 6757|      6|        return;
 6758|      6|    }
 6759|       |    // Built-in blocks cannot be redeclared more than once, which if happened,
 6760|       |    // we'd be finding the already redeclared one here, rather than the built in.
 6761|     46|    if (! builtIn) {
  ------------------
  |  Branch (6761:9): [True: 0, False: 46]
  ------------------
 6762|      0|        error(loc, "can only redeclare a built-in block once, and before any use", blockName.c_str(), "");
 6763|      0|        return;
 6764|      0|    }
 6765|       |
 6766|       |    // Copy the block to make a writable version, to insert into the block table after editing.
 6767|     46|    block = symbolTable.copyUpDeferredInsert(block);
 6768|       |
 6769|     46|    if (block->getType().getBasicType() != EbtBlock) {
  ------------------
  |  Branch (6769:9): [True: 23, False: 23]
  ------------------
 6770|     23|        error(loc, "cannot redeclare a non block as a block", errorName, "");
 6771|     23|        return;
 6772|     23|    }
 6773|       |
 6774|       |    // Fix XFB stuff up, it applies to the order of the redeclaration, not
 6775|       |    // the order of the original members.
 6776|     23|    if (currentBlockQualifier.storage == EvqVaryingOut && globalOutputDefaults.hasXfbBuffer()) {
  ------------------
  |  Branch (6776:9): [True: 0, False: 23]
  |  Branch (6776:59): [True: 0, False: 0]
  ------------------
 6777|      0|        if (!currentBlockQualifier.hasXfbBuffer())
  ------------------
  |  Branch (6777:13): [True: 0, False: 0]
  ------------------
 6778|      0|            currentBlockQualifier.layoutXfbBuffer = globalOutputDefaults.layoutXfbBuffer;
 6779|      0|        if (!currentBlockQualifier.hasStream())
  ------------------
  |  Branch (6779:13): [True: 0, False: 0]
  ------------------
 6780|      0|            currentBlockQualifier.layoutStream = globalOutputDefaults.layoutStream;
 6781|      0|        fixXfbOffsets(currentBlockQualifier, newTypeList);
 6782|      0|    }
 6783|       |
 6784|       |    // Edit and error check the container against the redeclaration
 6785|       |    //  - remove unused members
 6786|       |    //  - ensure remaining qualifiers/types match
 6787|       |
 6788|     23|    TType& type = block->getWritableType();
 6789|       |
 6790|       |    // if gl_PerVertex is redeclared for the purpose of passing through "gl_Position"
 6791|       |    // for passthrough purpose, the redeclared block should have the same qualifers as
 6792|       |    // the current one
 6793|     23|    if (currentBlockQualifier.layoutPassthrough) {
  ------------------
  |  Branch (6793:9): [True: 0, False: 23]
  ------------------
 6794|      0|        type.getQualifier().layoutPassthrough = currentBlockQualifier.layoutPassthrough;
 6795|      0|        type.getQualifier().storage = currentBlockQualifier.storage;
 6796|      0|        type.getQualifier().layoutStream = currentBlockQualifier.layoutStream;
 6797|      0|        type.getQualifier().layoutXfbBuffer = currentBlockQualifier.layoutXfbBuffer;
 6798|      0|    }
 6799|       |
 6800|     23|    TTypeList::iterator member = type.getWritableStruct()->begin();
 6801|     23|    size_t numOriginalMembersFound = 0;
 6802|    115|    while (member != type.getStruct()->end()) {
  ------------------
  |  Branch (6802:12): [True: 92, False: 23]
  ------------------
 6803|       |        // look for match
 6804|     92|        bool found = false;
 6805|     92|        TTypeList::const_iterator newMember;
 6806|     92|        TSourceLoc memberLoc;
 6807|     92|        memberLoc.init();
 6808|    161|        for (newMember = newTypeList.begin(); newMember != newTypeList.end(); ++newMember) {
  ------------------
  |  Branch (6808:47): [True: 92, False: 69]
  ------------------
 6809|     92|            if (member->type->getFieldName() == newMember->type->getFieldName()) {
  ------------------
  |  Branch (6809:17): [True: 23, False: 69]
  ------------------
 6810|     23|                found = true;
 6811|     23|                memberLoc = newMember->loc;
 6812|     23|                break;
 6813|     23|            }
 6814|     92|        }
 6815|       |
 6816|     92|        if (found) {
  ------------------
  |  Branch (6816:13): [True: 23, False: 69]
  ------------------
 6817|     23|            ++numOriginalMembersFound;
 6818|       |            // - ensure match between redeclared members' types
 6819|       |            // - check for things that can't be changed
 6820|       |            // - update things that can be changed
 6821|     23|            TType& oldType = *member->type;
 6822|     23|            const TType& newType = *newMember->type;
 6823|     23|            if (! newType.sameElementType(oldType))
  ------------------
  |  Branch (6823:17): [True: 0, False: 23]
  ------------------
 6824|      0|                error(memberLoc, "cannot redeclare block member with a different type", member->type->getFieldName().c_str(), "");
 6825|     23|            if (oldType.isArray() != newType.isArray())
  ------------------
  |  Branch (6825:17): [True: 0, False: 23]
  ------------------
 6826|      0|                error(memberLoc, "cannot change arrayness of redeclared block member", member->type->getFieldName().c_str(), "");
 6827|     23|            else if (! oldType.getQualifier().isPerView() && ! oldType.sameArrayness(newType) && oldType.isSizedArray())
  ------------------
  |  Branch (6827:22): [True: 23, False: 0]
  |  Branch (6827:62): [True: 0, False: 23]
  |  Branch (6827:98): [True: 0, False: 0]
  ------------------
 6828|      0|                error(memberLoc, "cannot change array size of redeclared block member", member->type->getFieldName().c_str(), "");
 6829|     23|            else if (! oldType.getQualifier().isPerView() && newType.isArray())
  ------------------
  |  Branch (6829:22): [True: 23, False: 0]
  |  Branch (6829:62): [True: 0, False: 23]
  ------------------
 6830|      0|                arrayLimitCheck(memberLoc, member->type->getFieldName(), newType.getOuterArraySize());
 6831|     23|            if (oldType.getQualifier().isPerView() && ! newType.getQualifier().isPerView())
  ------------------
  |  Branch (6831:17): [True: 0, False: 23]
  |  Branch (6831:55): [True: 0, False: 0]
  ------------------
 6832|      0|                error(memberLoc, "missing perviewNV qualifier to redeclared block member", member->type->getFieldName().c_str(), "");
 6833|     23|            else if (! oldType.getQualifier().isPerView() && newType.getQualifier().isPerView())
  ------------------
  |  Branch (6833:22): [True: 23, False: 0]
  |  Branch (6833:62): [True: 0, False: 23]
  ------------------
 6834|      0|                error(memberLoc, "cannot add perviewNV qualifier to redeclared block member", member->type->getFieldName().c_str(), "");
 6835|     23|            else if (newType.getQualifier().isPerView()) {
  ------------------
  |  Branch (6835:22): [True: 0, False: 23]
  ------------------
 6836|      0|                if (oldType.getArraySizes()->getNumDims() != newType.getArraySizes()->getNumDims())
  ------------------
  |  Branch (6836:21): [True: 0, False: 0]
  ------------------
 6837|      0|                    error(memberLoc, "cannot change arrayness of redeclared block member", member->type->getFieldName().c_str(), "");
 6838|      0|                else if (! newType.isUnsizedArray() && newType.getOuterArraySize() != resources.maxMeshViewCountNV)
  ------------------
  |  Branch (6838:26): [True: 0, False: 0]
  |  Branch (6838:56): [True: 0, False: 0]
  ------------------
 6839|      0|                    error(loc, "mesh view output array size must be gl_MaxMeshViewCountNV or implicitly sized", "[]", "");
 6840|      0|                else if (newType.getArraySizes()->getNumDims() == 2) {
  ------------------
  |  Branch (6840:26): [True: 0, False: 0]
  ------------------
 6841|      0|                    int innerDimSize = newType.getArraySizes()->getDimSize(1);
 6842|      0|                    arrayLimitCheck(memberLoc, member->type->getFieldName(), innerDimSize);
 6843|      0|                    oldType.getArraySizes()->setDimSize(1, innerDimSize);
 6844|      0|                }
 6845|      0|            }
 6846|     23|            if (oldType.getQualifier().isPerPrimitive() && ! newType.getQualifier().isPerPrimitive())
  ------------------
  |  Branch (6846:17): [True: 0, False: 23]
  |  Branch (6846:60): [True: 0, False: 0]
  ------------------
 6847|      0|                error(memberLoc, "missing perprimitiveNV qualifier to redeclared block member", member->type->getFieldName().c_str(), "");
 6848|     23|            else if (! oldType.getQualifier().isPerPrimitive() && newType.getQualifier().isPerPrimitive())
  ------------------
  |  Branch (6848:22): [True: 23, False: 0]
  |  Branch (6848:67): [True: 0, False: 23]
  ------------------
 6849|      0|                error(memberLoc, "cannot add perprimitiveNV qualifier to redeclared block member", member->type->getFieldName().c_str(), "");
 6850|     23|            if (newType.getQualifier().isMemory())
  ------------------
  |  Branch (6850:17): [True: 0, False: 23]
  ------------------
 6851|      0|                error(memberLoc, "cannot add memory qualifier to redeclared block member", member->type->getFieldName().c_str(), "");
 6852|     23|            if (newType.getQualifier().hasNonXfbLayout())
  ------------------
  |  Branch (6852:17): [True: 0, False: 23]
  ------------------
 6853|      0|                error(memberLoc, "cannot add non-XFB layout to redeclared block member", member->type->getFieldName().c_str(), "");
 6854|     23|            if (newType.getQualifier().patch)
  ------------------
  |  Branch (6854:17): [True: 0, False: 23]
  ------------------
 6855|      0|                error(memberLoc, "cannot add patch to redeclared block member", member->type->getFieldName().c_str(), "");
 6856|     23|            if (newType.getQualifier().hasXfbBuffer() &&
  ------------------
  |  Branch (6856:17): [True: 0, False: 23]
  ------------------
 6857|      0|                newType.getQualifier().layoutXfbBuffer != currentBlockQualifier.layoutXfbBuffer)
  ------------------
  |  Branch (6857:17): [True: 0, False: 0]
  ------------------
 6858|      0|                error(memberLoc, "member cannot contradict block (or what block inherited from global)", "xfb_buffer", "");
 6859|     23|            if (newType.getQualifier().hasStream() &&
  ------------------
  |  Branch (6859:17): [True: 0, False: 23]
  ------------------
 6860|      0|                newType.getQualifier().layoutStream != currentBlockQualifier.layoutStream)
  ------------------
  |  Branch (6860:17): [True: 0, False: 0]
  ------------------
 6861|      0|                error(memberLoc, "member cannot contradict block (or what block inherited from global)", "xfb_stream", "");
 6862|     23|            oldType.getQualifier().centroid = newType.getQualifier().centroid;
 6863|     23|            oldType.getQualifier().sample = newType.getQualifier().sample;
 6864|     23|            oldType.getQualifier().invariant = newType.getQualifier().invariant;
 6865|     23|            oldType.getQualifier().noContraction = newType.getQualifier().noContraction;
 6866|     23|            oldType.getQualifier().smooth = newType.getQualifier().smooth;
 6867|     23|            oldType.getQualifier().flat = newType.getQualifier().flat;
 6868|     23|            oldType.getQualifier().nopersp = newType.getQualifier().nopersp;
 6869|     23|            oldType.getQualifier().layoutXfbOffset = newType.getQualifier().layoutXfbOffset;
 6870|     23|            oldType.getQualifier().layoutXfbBuffer = newType.getQualifier().layoutXfbBuffer;
 6871|     23|            oldType.getQualifier().layoutXfbStride = newType.getQualifier().layoutXfbStride;
 6872|     23|            if (oldType.getQualifier().layoutXfbOffset != TQualifier::layoutXfbBufferEnd) {
  ------------------
  |  Branch (6872:17): [True: 23, False: 0]
  ------------------
 6873|       |                // If any member has an xfb_offset, then the block's xfb_buffer inherents current xfb_buffer,
 6874|       |                // and for xfb processing, the member needs it as well, along with xfb_stride.
 6875|     23|                type.getQualifier().layoutXfbBuffer = currentBlockQualifier.layoutXfbBuffer;
 6876|     23|                oldType.getQualifier().layoutXfbBuffer = currentBlockQualifier.layoutXfbBuffer;
 6877|     23|            }
 6878|     23|            if (oldType.isUnsizedArray() && newType.isSizedArray())
  ------------------
  |  Branch (6878:17): [True: 0, False: 23]
  |  Branch (6878:45): [True: 0, False: 0]
  ------------------
 6879|      0|                oldType.changeOuterArraySize(newType.getOuterArraySize());
 6880|       |
 6881|       |            //  check and process the member's type, which will include managing xfb information
 6882|     23|            layoutTypeCheck(loc, oldType);
 6883|       |
 6884|       |            // go to next member
 6885|     23|            ++member;
 6886|     69|        } else {
 6887|       |            // For missing members of anonymous blocks that have been redeclared,
 6888|       |            // hide the original (shared) declaration.
 6889|       |            // Instance-named blocks can just have the member removed, along with its
 6890|       |            // extension list, so later members keep their own extension checks.
 6891|     69|            if (instanceName) {
  ------------------
  |  Branch (6891:17): [True: 0, False: 69]
  ------------------
 6892|      0|                block->getAsVariable()->eraseMemberExtensions(
 6893|      0|                    static_cast<int>(member - type.getWritableStruct()->begin()));
 6894|      0|                member = type.getWritableStruct()->erase(member);
 6895|     69|            } else {
 6896|     69|                member->type->hideMember();
 6897|     69|                ++member;
 6898|     69|            }
 6899|     69|        }
 6900|     92|    }
 6901|       |
 6902|     23|    if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (6902:9): [True: 23, False: 0]
  ------------------
 6903|       |        // ...then streams apply to built-in blocks, instead of them being only on stream 0
 6904|     23|        type.getQualifier().layoutStream = currentBlockQualifier.layoutStream;
 6905|     23|    }
 6906|       |
 6907|     23|    if (numOriginalMembersFound < newTypeList.size())
  ------------------
  |  Branch (6907:9): [True: 0, False: 23]
  ------------------
 6908|      0|        error(loc, "block redeclaration has extra members", blockName.c_str(), "");
 6909|     23|    if (type.isArray() != (arraySizes != nullptr) ||
  ------------------
  |  Branch (6909:9): [True: 0, False: 23]
  ------------------
 6910|     23|        (type.isArray() && arraySizes != nullptr && type.getArraySizes()->getNumDims() != arraySizes->getNumDims()))
  ------------------
  |  Branch (6910:10): [True: 0, False: 23]
  |  Branch (6910:28): [True: 0, False: 0]
  |  Branch (6910:53): [True: 0, False: 0]
  ------------------
 6911|      0|        error(loc, "cannot change arrayness of redeclared block", blockName.c_str(), "");
 6912|     23|    else if (type.isArray()) {
  ------------------
  |  Branch (6912:14): [True: 0, False: 23]
  ------------------
 6913|       |        // At this point, we know both are arrays and both have the same number of dimensions.
 6914|       |
 6915|       |        // It is okay for a built-in block redeclaration to be unsized, and keep the size of the
 6916|       |        // original block declaration.
 6917|      0|        if (!arraySizes->isSized() && type.isSizedArray())
  ------------------
  |  Branch (6917:13): [True: 0, False: 0]
  |  Branch (6917:39): [True: 0, False: 0]
  ------------------
 6918|      0|            arraySizes->changeOuterSize(type.getOuterArraySize());
 6919|       |
 6920|       |        // And, okay to be giving a size to the array, by the redeclaration
 6921|      0|        if (!type.isSizedArray() && arraySizes->isSized())
  ------------------
  |  Branch (6921:13): [True: 0, False: 0]
  |  Branch (6921:37): [True: 0, False: 0]
  ------------------
 6922|      0|            type.changeOuterArraySize(arraySizes->getOuterSize());
 6923|       |
 6924|       |        // Now, they must match in all dimensions.
 6925|      0|        if (type.isSizedArray() && *type.getArraySizes() != *arraySizes)
  ------------------
  |  Branch (6925:13): [True: 0, False: 0]
  |  Branch (6925:36): [True: 0, False: 0]
  ------------------
 6926|      0|            error(loc, "cannot change array size of redeclared block", blockName.c_str(), "");
 6927|      0|    }
 6928|       |
 6929|     23|    symbolTable.insert(*block);
 6930|       |
 6931|       |    // Check for general layout qualifier errors
 6932|     23|    layoutObjectCheck(loc, *block);
 6933|       |
 6934|       |    // Tracking for implicit sizing of array
 6935|     23|    if (isIoResizeArray(block->getType())) {
  ------------------
  |  Branch (6935:9): [True: 0, False: 23]
  ------------------
 6936|      0|        ioArraySymbolResizeList.push_back(block);
 6937|      0|        checkIoArraysConsistency(loc, true);
 6938|     23|    } else if (block->getType().isArray())
  ------------------
  |  Branch (6938:16): [True: 0, False: 23]
  ------------------
 6939|      0|        fixIoArraySize(loc, block->getWritableType());
 6940|       |
 6941|       |    // Save it in the AST for linker use.
 6942|     23|    trackLinkage(*block);
 6943|     23|}
_ZN7glslang13TParseContext20paramCheckFixStorageERKNS_10TSourceLocERKNS_17TStorageQualifierERNS_5TTypeE:
 6946|  24.6M|{
 6947|  24.6M|    switch (qualifier) {
 6948|      0|    case EvqConst:
  ------------------
  |  Branch (6948:5): [True: 0, False: 24.6M]
  ------------------
 6949|      0|    case EvqConstReadOnly:
  ------------------
  |  Branch (6949:5): [True: 0, False: 24.6M]
  ------------------
 6950|      0|        type.getQualifier().storage = EvqConstReadOnly;
 6951|      0|        break;
 6952|  5.93k|    case EvqIn:
  ------------------
  |  Branch (6952:5): [True: 5.93k, False: 24.6M]
  ------------------
 6953|   540k|    case EvqOut:
  ------------------
  |  Branch (6953:5): [True: 534k, False: 24.1M]
  ------------------
 6954|   597k|    case EvqInOut:
  ------------------
  |  Branch (6954:5): [True: 56.2k, False: 24.6M]
  ------------------
 6955|   597k|    case EvqTileImageEXT:
  ------------------
  |  Branch (6955:5): [True: 0, False: 24.6M]
  ------------------
 6956|   597k|        type.getQualifier().storage = qualifier;
 6957|   597k|        break;
 6958|   942k|    case EvqGlobal:
  ------------------
  |  Branch (6958:5): [True: 942k, False: 23.7M]
  ------------------
 6959|  24.0M|    case EvqTemporary:
  ------------------
  |  Branch (6959:5): [True: 23.1M, False: 1.53M]
  ------------------
 6960|  24.0M|        type.getQualifier().storage = EvqIn;
 6961|  24.0M|        break;
 6962|      2|    default:
  ------------------
  |  Branch (6962:5): [True: 2, False: 24.6M]
  ------------------
 6963|      2|        type.getQualifier().storage = EvqIn;
 6964|      2|        error(loc, "storage qualifier not allowed on function parameter", GetStorageQualifierString(qualifier), "");
 6965|      2|        break;
 6966|  24.6M|    }
 6967|  24.6M|}
_ZN7glslang13TParseContext13paramCheckFixERKNS_10TSourceLocERKNS_10TQualifierERNS_5TTypeE:
 6970|  2.83M|{
 6971|  2.83M|    if (qualifier.isMemory()) {
  ------------------
  |  Branch (6971:9): [True: 1.35M, False: 1.47M]
  ------------------
 6972|  1.35M|        type.getQualifier().volatil   = qualifier.volatil;
 6973|  1.35M|        type.getQualifier().nontemporal   = qualifier.nontemporal;
 6974|  1.35M|        type.getQualifier().coherent  = qualifier.coherent;
 6975|  1.35M|        type.getQualifier().devicecoherent  = qualifier.devicecoherent ;
 6976|  1.35M|        type.getQualifier().queuefamilycoherent  = qualifier.queuefamilycoherent;
 6977|  1.35M|        type.getQualifier().workgroupcoherent  = qualifier.workgroupcoherent;
 6978|  1.35M|        type.getQualifier().subgroupcoherent  = qualifier.subgroupcoherent;
 6979|  1.35M|        type.getQualifier().shadercallcoherent = qualifier.shadercallcoherent;
 6980|  1.35M|        type.getQualifier().nonprivate = qualifier.nonprivate;
 6981|  1.35M|        type.getQualifier().readonly  = qualifier.readonly;
 6982|  1.35M|        type.getQualifier().writeonly = qualifier.writeonly;
 6983|  1.35M|        type.getQualifier().restrict  = qualifier.restrict;
 6984|  1.35M|    }
 6985|       |
 6986|  2.83M|    if (qualifier.isAuxiliary() ||
  ------------------
  |  Branch (6986:9): [True: 1, False: 2.83M]
  ------------------
 6987|  2.83M|        qualifier.isInterpolation())
  ------------------
  |  Branch (6987:9): [True: 0, False: 2.83M]
  ------------------
 6988|      1|        error(loc, "cannot use auxiliary or interpolation qualifiers on a function parameter", "", "");
 6989|  2.83M|    if (qualifier.hasLayout())
  ------------------
  |  Branch (6989:9): [True: 3, False: 2.83M]
  ------------------
 6990|      3|        error(loc, "cannot use layout qualifiers on a function parameter", "", "");
 6991|  2.83M|    if (qualifier.invariant)
  ------------------
  |  Branch (6991:9): [True: 0, False: 2.83M]
  ------------------
 6992|      0|        error(loc, "cannot use invariant qualifier on a function parameter", "", "");
 6993|  2.83M|    if (qualifier.isNoContraction()) {
  ------------------
  |  Branch (6993:9): [True: 0, False: 2.83M]
  ------------------
 6994|      0|        if (qualifier.isParamOutput())
  ------------------
  |  Branch (6994:13): [True: 0, False: 0]
  ------------------
 6995|      0|            type.getQualifier().setNoContraction();
 6996|      0|        else
 6997|      0|            warn(loc, "qualifier has no effect on non-output parameters", "precise", "");
 6998|      0|    }
 6999|  2.83M|    if (qualifier.isNonUniform())
  ------------------
  |  Branch (6999:9): [True: 0, False: 2.83M]
  ------------------
 7000|      0|        type.getQualifier().nonUniform = qualifier.nonUniform;
 7001|  2.83M|    if (qualifier.isSpirvByReference())
  ------------------
  |  Branch (7001:9): [True: 0, False: 2.83M]
  ------------------
 7002|      0|        type.getQualifier().setSpirvByReference();
 7003|  2.83M|    if (qualifier.isSpirvLiteral()) {
  ------------------
  |  Branch (7003:9): [True: 0, False: 2.83M]
  ------------------
 7004|      0|        if (type.getBasicType() == EbtFloat || type.getBasicType() == EbtInt || type.getBasicType() == EbtUint ||
  ------------------
  |  Branch (7004:13): [True: 0, False: 0]
  |  Branch (7004:48): [True: 0, False: 0]
  |  Branch (7004:81): [True: 0, False: 0]
  ------------------
 7005|      0|            type.getBasicType() == EbtBool)
  ------------------
  |  Branch (7005:13): [True: 0, False: 0]
  ------------------
 7006|      0|            type.getQualifier().setSpirvLiteral();
 7007|      0|        else
 7008|      0|            error(loc, "cannot use spirv_literal qualifier", type.getBasicTypeString().c_str(), "");
 7009|      0|    }
 7010|       |
 7011|  2.83M|    paramCheckFixStorage(loc, qualifier.storage, type);
 7012|  2.83M|}
_ZN7glslang13TParseContext16nestedBlockCheckERKNS_10TSourceLocEb:
 7015|  8.13k|{
 7016|  8.13k|    if (allowedInnerStruct) {
  ------------------
  |  Branch (7016:9): [True: 0, False: 8.13k]
  ------------------
 7017|      0|        if ((structNestingLevel <= 0 && blockNestingLevel <= 0) ||
  ------------------
  |  Branch (7017:14): [True: 0, False: 0]
  |  Branch (7017:41): [True: 0, False: 0]
  ------------------
 7018|      0|            (structNestingLevel > 0 && blockNestingLevel > 0) ||
  ------------------
  |  Branch (7018:14): [True: 0, False: 0]
  |  Branch (7018:40): [True: 0, False: 0]
  ------------------
 7019|      0|            blockNestingLevel > 1)
  ------------------
  |  Branch (7019:13): [True: 0, False: 0]
  ------------------
 7020|      0|            error(loc, "cannot nest a block definition inside a structure or block", "", "");
 7021|  8.13k|    } else if (structNestingLevel > 0 || blockNestingLevel > 0)
  ------------------
  |  Branch (7021:16): [True: 0, False: 8.13k]
  |  Branch (7021:42): [True: 0, False: 8.13k]
  ------------------
 7022|      0|        error(loc, "cannot nest a block definition inside a structure or block", "", "");
 7023|  8.13k|    ++blockNestingLevel;
 7024|  8.13k|}
_ZN7glslang13TParseContext17nestedStructCheckERKNS_10TSourceLocE:
 7027|  1.33k|{
 7028|  1.33k|    if (structNestingLevel > 0 || blockNestingLevel > 0)
  ------------------
  |  Branch (7028:9): [True: 0, False: 1.33k]
  |  Branch (7028:35): [True: 80, False: 1.25k]
  ------------------
 7029|     80|        error(loc, "cannot nest a structure definition inside a structure or block", "", "");
 7030|  1.33k|    ++structNestingLevel;
 7031|  1.33k|}
_ZN7glslang13TParseContext16arrayObjectCheckERKNS_10TSourceLocERKNS_5TTypeEPKc:
 7034|  10.4M|{
 7035|       |    // Some versions don't allow comparing arrays or structures containing arrays
 7036|  10.4M|    if (type.containsArray()) {
  ------------------
  |  Branch (7036:9): [True: 1.25k, False: 10.4M]
  ------------------
 7037|  1.25k|        profileRequires(loc, ENoProfile, 120, E_GL_3DL_array_objects, op);
 7038|  1.25k|        profileRequires(loc, EEsProfile, 300, nullptr, op);
 7039|  1.25k|    }
 7040|  10.4M|}
_ZN7glslang13TParseContext11opaqueCheckERKNS_10TSourceLocERKNS_5TTypeEPKc:
 7043|  33.4k|{
 7044|  33.4k|    if (containsFieldWithBasicType(type, EbtSampler) && !extensionTurnedOn(E_GL_ARB_bindless_texture))
  ------------------
  |  Branch (7044:9): [True: 50, False: 33.4k]
  |  Branch (7044:57): [True: 50, False: 0]
  ------------------
 7045|     50|        error(loc, "can't use with samplers or structs containing samplers", op, "");
 7046|  33.4k|}
_ZN7glslang13TParseContext14referenceCheckERKNS_10TSourceLocERKNS_5TTypeEPKc:
 7049|  2.36k|{
 7050|  2.36k|    if (containsFieldWithBasicType(type, EbtReference))
  ------------------
  |  Branch (7050:9): [True: 0, False: 2.36k]
  ------------------
 7051|      0|        error(loc, "can't use with reference types", op, "");
 7052|  2.36k|}
_ZN7glslang13TParseContext27storage16BitAssignmentCheckERKNS_10TSourceLocERKNS_5TTypeEPKc:
 7055|  31.8k|{
 7056|  31.8k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtFloat16))
  ------------------
  |  Branch (7056:9): [True: 49, False: 31.8k]
  |  Branch (7056:45): [True: 0, False: 49]
  ------------------
 7057|      0|        requireFloat16Arithmetic(loc, op, "can't use with structs containing float16");
 7058|       |
 7059|  31.8k|    if (type.isArray() && type.getBasicType() == EbtFloat16)
  ------------------
  |  Branch (7059:9): [True: 202, False: 31.6k]
  |  Branch (7059:27): [True: 0, False: 202]
  ------------------
 7060|      0|        requireFloat16Arithmetic(loc, op, "can't use with arrays containing float16");
 7061|       |
 7062|  31.8k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtInt16))
  ------------------
  |  Branch (7062:9): [True: 49, False: 31.8k]
  |  Branch (7062:45): [True: 0, False: 49]
  ------------------
 7063|      0|        requireInt16Arithmetic(loc, op, "can't use with structs containing int16");
 7064|       |
 7065|  31.8k|    if (type.isArray() && type.getBasicType() == EbtInt16)
  ------------------
  |  Branch (7065:9): [True: 202, False: 31.6k]
  |  Branch (7065:27): [True: 0, False: 202]
  ------------------
 7066|      0|        requireInt16Arithmetic(loc, op, "can't use with arrays containing int16");
 7067|       |
 7068|  31.8k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtUint16))
  ------------------
  |  Branch (7068:9): [True: 49, False: 31.8k]
  |  Branch (7068:45): [True: 0, False: 49]
  ------------------
 7069|      0|        requireInt16Arithmetic(loc, op, "can't use with structs containing uint16");
 7070|       |
 7071|  31.8k|    if (type.isArray() && type.getBasicType() == EbtUint16)
  ------------------
  |  Branch (7071:9): [True: 202, False: 31.6k]
  |  Branch (7071:27): [True: 0, False: 202]
  ------------------
 7072|      0|        requireInt16Arithmetic(loc, op, "can't use with arrays containing uint16");
 7073|       |
 7074|  31.8k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtInt8))
  ------------------
  |  Branch (7074:9): [True: 49, False: 31.8k]
  |  Branch (7074:45): [True: 0, False: 49]
  ------------------
 7075|      0|        requireInt8Arithmetic(loc, op, "can't use with structs containing int8");
 7076|       |
 7077|  31.8k|    if (type.isArray() && type.getBasicType() == EbtInt8)
  ------------------
  |  Branch (7077:9): [True: 202, False: 31.6k]
  |  Branch (7077:27): [True: 0, False: 202]
  ------------------
 7078|      0|        requireInt8Arithmetic(loc, op, "can't use with arrays containing int8");
 7079|       |
 7080|  31.8k|    if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtUint8))
  ------------------
  |  Branch (7080:9): [True: 49, False: 31.8k]
  |  Branch (7080:45): [True: 0, False: 49]
  ------------------
 7081|      0|        requireInt8Arithmetic(loc, op, "can't use with structs containing uint8");
 7082|       |
 7083|  31.8k|    if (type.isArray() && type.getBasicType() == EbtUint8)
  ------------------
  |  Branch (7083:9): [True: 202, False: 31.6k]
  |  Branch (7083:27): [True: 0, False: 202]
  ------------------
 7084|      0|        requireInt8Arithmetic(loc, op, "can't use with arrays containing uint8");
 7085|  31.8k|}
_ZN7glslang13TParseContext19specializationCheckERKNS_10TSourceLocERKNS_5TTypeEPKc:
 7088|   133k|{
 7089|   133k|    if (type.containsSpecializationSize())
  ------------------
  |  Branch (7089:9): [True: 0, False: 133k]
  ------------------
 7090|      0|        error(loc, "can't use with types containing arrays sized with a specialization constant", op, "");
 7091|   133k|}
_ZN7glslang13TParseContext15structTypeCheckERKNS_10TSourceLocERNS_11TPublicTypeE:
 7094|  1.33k|{
 7095|  1.33k|    const TTypeList& typeList = *publicType.userDef->getStruct();
 7096|       |
 7097|       |    // fix and check for member storage qualifiers and types that don't belong within a structure
 7098|  6.17k|    for (unsigned int member = 0; member < typeList.size(); ++member) {
  ------------------
  |  Branch (7098:35): [True: 4.84k, False: 1.33k]
  ------------------
 7099|  4.84k|        TQualifier& memberQualifier = typeList[member].type->getQualifier();
 7100|  4.84k|        const TSourceLoc& memberLoc = typeList[member].loc;
 7101|  4.84k|        if (memberQualifier.isAuxiliary() ||
  ------------------
  |  Branch (7101:13): [True: 0, False: 4.84k]
  ------------------
 7102|  4.84k|            memberQualifier.isInterpolation() ||
  ------------------
  |  Branch (7102:13): [True: 0, False: 4.84k]
  ------------------
 7103|  4.84k|            (memberQualifier.storage != EvqTemporary && memberQualifier.storage != EvqGlobal &&
  ------------------
  |  Branch (7103:14): [True: 4.75k, False: 88]
  |  Branch (7103:57): [True: 4, False: 4.74k]
  ------------------
 7104|      4|             !memberQualifier.layoutDescriptorHeap && !memberQualifier.isBufferType()))
  ------------------
  |  Branch (7104:14): [True: 4, False: 0]
  |  Branch (7104:55): [True: 4, False: 0]
  ------------------
 7105|      4|            error(memberLoc, "cannot use storage or interpolation qualifiers on structure members", typeList[member].type->getFieldName().c_str(), "");
 7106|  4.84k|        if (memberQualifier.isMemory())
  ------------------
  |  Branch (7106:13): [True: 0, False: 4.84k]
  ------------------
 7107|      0|            error(memberLoc, "cannot use memory qualifiers on structure members", typeList[member].type->getFieldName().c_str(), "");
 7108|  4.84k|        if (memberQualifier.hasLayout() && !memberQualifier.isBufferType()) {
  ------------------
  |  Branch (7108:13): [True: 58, False: 4.78k]
  |  Branch (7108:44): [True: 58, False: 0]
  ------------------
 7109|     58|            error(memberLoc, "cannot use layout qualifiers on structure members", typeList[member].type->getFieldName().c_str(), "");
 7110|     58|            memberQualifier.clearLayout();
 7111|     58|        }
 7112|  4.84k|        if (memberQualifier.invariant)
  ------------------
  |  Branch (7112:13): [True: 2, False: 4.83k]
  ------------------
 7113|      2|            error(memberLoc, "cannot use invariant qualifier on structure members", typeList[member].type->getFieldName().c_str(), "");
 7114|  4.84k|    }
 7115|  1.33k|}
_ZN7glslang13TParseContext15arrayLimitCheckERKNS_10TSourceLocERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEEi:
 7236|     57|{
 7237|     57|    if (identifier.compare("gl_TexCoord") == 0)
  ------------------
  |  Branch (7237:9): [True: 0, False: 57]
  ------------------
 7238|      0|        limitCheck(loc, size, "gl_MaxTextureCoords", "gl_TexCoord array size");
 7239|     57|    else if (identifier.compare("gl_ClipDistance") == 0)
  ------------------
  |  Branch (7239:14): [True: 12, False: 45]
  ------------------
 7240|     12|        limitCheck(loc, size, "gl_MaxClipDistances", "gl_ClipDistance array size");
 7241|     45|    else if (identifier.compare("gl_CullDistance") == 0)
  ------------------
  |  Branch (7241:14): [True: 0, False: 45]
  ------------------
 7242|      0|        limitCheck(loc, size, "gl_MaxCullDistances", "gl_CullDistance array size");
 7243|     45|    else if (identifier.compare("gl_ClipDistancePerViewNV") == 0)
  ------------------
  |  Branch (7243:14): [True: 0, False: 45]
  ------------------
 7244|      0|        limitCheck(loc, size, "gl_MaxClipDistances", "gl_ClipDistancePerViewNV array size");
 7245|     45|    else if (identifier.compare("gl_CullDistancePerViewNV") == 0)
  ------------------
  |  Branch (7245:14): [True: 0, False: 45]
  ------------------
 7246|      0|        limitCheck(loc, size, "gl_MaxCullDistances", "gl_CullDistancePerViewNV array size");
 7247|     57|}
_ZN7glslang13TParseContext10limitCheckERKNS_10TSourceLocEiPKcS5_:
 7252|     12|{
 7253|     12|    TSymbol* symbol = symbolTable.find(limit);
 7254|     12|    assert(symbol->getAsVariable());
 7255|     12|    const TConstUnionArray& constArray = symbol->getAsVariable()->getConstArray();
 7256|     12|    assert(! constArray.empty());
 7257|     12|    if (value > constArray[0].getIConst())
  ------------------
  |  Branch (7257:9): [True: 0, False: 12]
  ------------------
 7258|      0|        error(loc, "must be less than or equal to", feature, "%s (%d)", limit, constArray[0].getIConst());
 7259|     12|}
_ZN7glslang13TParseContext6finishEv:
 7336|  15.9k|{
 7337|  15.9k|    TParseContextBase::finish();
 7338|       |
 7339|  15.9k|    if (parsingBuiltins)
  ------------------
  |  Branch (7339:9): [True: 14.4k, False: 1.42k]
  ------------------
 7340|  14.4k|        return;
 7341|       |
 7342|  1.42k|    if (language == EShLangMesh && extensionTurnedOn(E_GL_EXT_mesh_shader) && intermediate.getTreeRoot() != nullptr) {
  ------------------
  |  Branch (7342:9): [True: 0, False: 1.42k]
  |  Branch (7342:36): [True: 0, False: 0]
  |  Branch (7342:79): [True: 0, False: 0]
  ------------------
 7343|      0|        TMeshOutputReadTraverser meshOutputReads(*this);
 7344|      0|        intermediate.getTreeRoot()->traverse(&meshOutputReads);
 7345|      0|    }
 7346|       |
 7347|       |    // Forward builtin alias to AST for later use
 7348|  1.42k|    intermediate.setBuiltinAliasLookup(symbolTable.collectBuiltinAlias());
 7349|       |
 7350|       |    // Check on array indexes for ES 2.0 (version 100) limitations.
 7351|  1.42k|    for (size_t i = 0; i < needsIndexLimitationChecking.size(); ++i)
  ------------------
  |  Branch (7351:24): [True: 0, False: 1.42k]
  ------------------
 7352|      0|        constantIndexExpressionCheck(needsIndexLimitationChecking[i]);
 7353|       |
 7354|       |    // Check for stages that are enabled by extension.
 7355|       |    // Can't do this at the beginning, it is chicken and egg to add a stage by
 7356|       |    // extension.
 7357|       |    // Stage-specific features were correctly tested for already, this is just
 7358|       |    // about the stage itself.
 7359|  1.42k|    switch (language) {
 7360|      0|    case EShLangGeometry:
  ------------------
  |  Branch (7360:5): [True: 0, False: 1.42k]
  ------------------
 7361|      0|        if (isEsProfile() && version == 310)
  ------------------
  |  Branch (7361:13): [True: 0, False: 0]
  |  Branch (7361:30): [True: 0, False: 0]
  ------------------
 7362|      0|            requireExtensions(getCurrentLoc(), Num_AEP_geometry_shader, AEP_geometry_shader, "geometry shaders");
 7363|      0|        break;
 7364|      0|    case EShLangTessControl:
  ------------------
  |  Branch (7364:5): [True: 0, False: 1.42k]
  ------------------
 7365|      0|    case EShLangTessEvaluation:
  ------------------
  |  Branch (7365:5): [True: 0, False: 1.42k]
  ------------------
 7366|      0|        if (isEsProfile() && version == 310)
  ------------------
  |  Branch (7366:13): [True: 0, False: 0]
  |  Branch (7366:30): [True: 0, False: 0]
  ------------------
 7367|      0|            requireExtensions(getCurrentLoc(), Num_AEP_tessellation_shader, AEP_tessellation_shader, "tessellation shaders");
 7368|      0|        else if (!isEsProfile() && version < 400)
  ------------------
  |  Branch (7368:18): [True: 0, False: 0]
  |  Branch (7368:36): [True: 0, False: 0]
  ------------------
 7369|      0|            requireExtensions(getCurrentLoc(), 1, &E_GL_ARB_tessellation_shader, "tessellation shaders");
 7370|      0|        break;
 7371|      0|    case EShLangCompute:
  ------------------
  |  Branch (7371:5): [True: 0, False: 1.42k]
  ------------------
 7372|      0|        if (!isEsProfile() && version < 430)
  ------------------
  |  Branch (7372:13): [True: 0, False: 0]
  |  Branch (7372:31): [True: 0, False: 0]
  ------------------
 7373|      0|            requireExtensions(getCurrentLoc(), 1, &E_GL_ARB_compute_shader, "compute shaders");
 7374|      0|        break;
 7375|      0|    case EShLangTask:
  ------------------
  |  Branch (7375:5): [True: 0, False: 1.42k]
  ------------------
 7376|      0|        requireExtensions(getCurrentLoc(), Num_AEP_mesh_shader, AEP_mesh_shader, "task shaders");
 7377|      0|        break;
 7378|      0|    case EShLangMesh:
  ------------------
  |  Branch (7378:5): [True: 0, False: 1.42k]
  ------------------
 7379|      0|        requireExtensions(getCurrentLoc(), Num_AEP_mesh_shader, AEP_mesh_shader, "mesh shaders");
 7380|      0|        break;
 7381|  1.42k|    default:
  ------------------
  |  Branch (7381:5): [True: 1.42k, False: 0]
  ------------------
 7382|  1.42k|        break;
 7383|  1.42k|    }
 7384|       |
 7385|  1.42k|    if (intermediate.IsRequestedExtension(E_GL_KHR_compute_shader_derivatives) &&
  ------------------
  |  Branch (7385:9): [True: 0, False: 1.42k]
  ------------------
 7386|      0|        !khrDerivativeLayoutQualifierSpecified) {
  ------------------
  |  Branch (7386:9): [True: 0, False: 0]
  ------------------
 7387|      0|        error(getCurrentLoc(), "requires one of derivative_group_quadsKHR or derivative_group_linearKHR layout qualifiers",
 7388|      0|              E_GL_KHR_compute_shader_derivatives, "");
 7389|      0|    }
 7390|       |
 7391|  1.42k|    if (intermediate.getLayoutDerivativeModeNone() == LayoutDerivativeGroupQuads) {
  ------------------
  |  Branch (7391:9): [True: 0, False: 1.42k]
  ------------------
 7392|      0|        if ((intermediate.getLocalSizeSpecId(0) == TQualifier::layoutNotSet && (intermediate.getLocalSize(0) & 1)) ||
  ------------------
  |  Branch (7392:14): [True: 0, False: 0]
  |  Branch (7392:80): [True: 0, False: 0]
  ------------------
 7393|      0|            (intermediate.getLocalSizeSpecId(1) == TQualifier::layoutNotSet && (intermediate.getLocalSize(1) & 1)))
  ------------------
  |  Branch (7393:14): [True: 0, False: 0]
  |  Branch (7393:80): [True: 0, False: 0]
  ------------------
 7394|      0|            error(getCurrentLoc(), "requires local_size_x and local_size_y to be multiple of two", "derivative_group_quads", "");
 7395|  1.42k|    } else if (intermediate.getLayoutDerivativeModeNone() == LayoutDerivativeGroupLinear) {
  ------------------
  |  Branch (7395:16): [True: 0, False: 1.42k]
  ------------------
 7396|      0|        if (intermediate.getLocalSizeSpecId(0) == TQualifier::layoutNotSet &&
  ------------------
  |  Branch (7396:13): [True: 0, False: 0]
  ------------------
 7397|      0|            intermediate.getLocalSizeSpecId(1) == TQualifier::layoutNotSet &&
  ------------------
  |  Branch (7397:13): [True: 0, False: 0]
  ------------------
 7398|      0|            intermediate.getLocalSizeSpecId(2) == TQualifier::layoutNotSet &&
  ------------------
  |  Branch (7398:13): [True: 0, False: 0]
  ------------------
 7399|      0|            (intermediate.getLocalSize(0) *
  ------------------
  |  Branch (7399:13): [True: 0, False: 0]
  ------------------
 7400|      0|             intermediate.getLocalSize(1) *
 7401|      0|             intermediate.getLocalSize(2)) % 4 != 0)
 7402|      0|            error(getCurrentLoc(), "requires total group size to be multiple of four", "derivative_group_linear", "");
 7403|      0|    }
 7404|       |
 7405|       |    // Set default outputs for GL_NV_geometry_shader_passthrough
 7406|  1.42k|    if (language == EShLangGeometry && extensionTurnedOn(E_SPV_NV_geometry_shader_passthrough)) {
  ------------------
  |  Branch (7406:9): [True: 0, False: 1.42k]
  |  Branch (7406:40): [True: 0, False: 0]
  ------------------
 7407|      0|        if (intermediate.getOutputPrimitive() == ElgNone) {
  ------------------
  |  Branch (7407:13): [True: 0, False: 0]
  ------------------
 7408|      0|            switch (intermediate.getInputPrimitive()) {
 7409|      0|            case ElgPoints:      intermediate.setOutputPrimitive(ElgPoints);    break;
  ------------------
  |  Branch (7409:13): [True: 0, False: 0]
  ------------------
 7410|      0|            case ElgLines:       intermediate.setOutputPrimitive(ElgLineStrip); break;
  ------------------
  |  Branch (7410:13): [True: 0, False: 0]
  ------------------
 7411|      0|            case ElgTriangles:   intermediate.setOutputPrimitive(ElgTriangleStrip); break;
  ------------------
  |  Branch (7411:13): [True: 0, False: 0]
  ------------------
 7412|      0|            default: break;
  ------------------
  |  Branch (7412:13): [True: 0, False: 0]
  ------------------
 7413|      0|            }
 7414|      0|        }
 7415|      0|        if (intermediate.getVertices() == TQualifier::layoutNotSet) {
  ------------------
  |  Branch (7415:13): [True: 0, False: 0]
  ------------------
 7416|      0|            switch (intermediate.getInputPrimitive()) {
 7417|      0|            case ElgPoints:      intermediate.setVertices(1); break;
  ------------------
  |  Branch (7417:13): [True: 0, False: 0]
  ------------------
 7418|      0|            case ElgLines:       intermediate.setVertices(2); break;
  ------------------
  |  Branch (7418:13): [True: 0, False: 0]
  ------------------
 7419|      0|            case ElgTriangles:   intermediate.setVertices(3); break;
  ------------------
  |  Branch (7419:13): [True: 0, False: 0]
  ------------------
 7420|      0|            default: break;
  ------------------
  |  Branch (7420:13): [True: 0, False: 0]
  ------------------
 7421|      0|            }
 7422|      0|        }
 7423|      0|    }
 7424|  1.42k|}
_ZN7glslang13TParseContext18setLayoutQualifierERKNS_10TSourceLocERNS_11TPublicTypeERNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEE:
 7433|  3.72k|{
 7434|  3.72k|    std::transform(id.begin(), id.end(), id.begin(), ::tolower);
 7435|       |
 7436|  3.72k|    if (id == TQualifier::getLayoutMatrixString(ElmColumnMajor)) {
  ------------------
  |  Branch (7436:9): [True: 29, False: 3.69k]
  ------------------
 7437|     29|        publicType.qualifier.layoutMatrix = ElmColumnMajor;
 7438|     29|        return;
 7439|     29|    }
 7440|  3.69k|    if (id == TQualifier::getLayoutMatrixString(ElmRowMajor)) {
  ------------------
  |  Branch (7440:9): [True: 15, False: 3.67k]
  ------------------
 7441|     15|        publicType.qualifier.layoutMatrix = ElmRowMajor;
 7442|     15|        return;
 7443|     15|    }
 7444|  3.67k|    if (id == TQualifier::getLayoutPackingString(ElpPacked)) {
  ------------------
  |  Branch (7444:9): [True: 0, False: 3.67k]
  ------------------
 7445|      0|        if (spvVersion.spv != 0) {
  ------------------
  |  Branch (7445:13): [True: 0, False: 0]
  ------------------
 7446|      0|            if (spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (7446:17): [True: 0, False: 0]
  ------------------
 7447|      0|                return; // silently ignore qualifier
 7448|      0|            else
 7449|      0|                spvRemoved(loc, "packed");
 7450|      0|        }
 7451|      0|        publicType.qualifier.layoutPacking = ElpPacked;
 7452|      0|        return;
 7453|      0|    }
 7454|  3.67k|    if (id == TQualifier::getLayoutPackingString(ElpShared)) {
  ------------------
  |  Branch (7454:9): [True: 85, False: 3.59k]
  ------------------
 7455|     85|        if (spvVersion.spv != 0) {
  ------------------
  |  Branch (7455:13): [True: 85, False: 0]
  ------------------
 7456|     85|            if (spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (7456:17): [True: 0, False: 85]
  ------------------
 7457|      0|                return; // silently ignore qualifier
 7458|     85|            else
 7459|     85|                spvRemoved(loc, "shared");
 7460|     85|        }
 7461|     85|        publicType.qualifier.layoutPacking = ElpShared;
 7462|     85|        return;
 7463|     85|    }
 7464|  3.59k|    if (id == TQualifier::getLayoutPackingString(ElpStd140)) {
  ------------------
  |  Branch (7464:9): [True: 284, False: 3.30k]
  ------------------
 7465|    284|        publicType.qualifier.layoutPacking = ElpStd140;
 7466|    284|        return;
 7467|    284|    }
 7468|  3.30k|    if (id == TQualifier::getLayoutPackingString(ElpStd430)) {
  ------------------
  |  Branch (7468:9): [True: 194, False: 3.11k]
  ------------------
 7469|    194|        requireProfile(loc, EEsProfile | ECoreProfile | ECompatibilityProfile, "std430");
 7470|    194|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 430, E_GL_ARB_shader_storage_buffer_object, "std430");
 7471|    194|        profileRequires(loc, EEsProfile, 310, nullptr, "std430");
 7472|    194|        publicType.qualifier.layoutPacking = ElpStd430;
 7473|    194|        return;
 7474|    194|    }
 7475|  3.11k|    if (id == TQualifier::getLayoutPackingString(ElpScalar)) {
  ------------------
  |  Branch (7475:9): [True: 0, False: 3.11k]
  ------------------
 7476|      0|        requireVulkan(loc, "scalar");
 7477|      0|        requireExtensions(loc, 1, &E_GL_EXT_scalar_block_layout, "scalar block layout");
 7478|      0|        publicType.qualifier.layoutPacking = ElpScalar;
 7479|      0|        return;
 7480|      0|    }
 7481|       |    // TODO: compile-time performance: may need to stop doing linear searches
 7482|   114k|    for (TLayoutFormat format = (TLayoutFormat)(ElfNone + 1); format < ElfCount; format = (TLayoutFormat)(format + 1)) {
  ------------------
  |  Branch (7482:63): [True: 113k, False: 1.63k]
  ------------------
 7483|   113k|        if (id == TQualifier::getLayoutFormatString(format)) {
  ------------------
  |  Branch (7483:13): [True: 1.47k, False: 111k]
  ------------------
 7484|  1.47k|            if ((format > ElfEsFloatGuard && format < ElfFloatGuard) ||
  ------------------
  |  Branch (7484:18): [True: 995, False: 484]
  |  Branch (7484:46): [True: 322, False: 673]
  ------------------
 7485|  1.15k|                (format > ElfEsIntGuard && format < ElfIntGuard) ||
  ------------------
  |  Branch (7485:18): [True: 563, False: 594]
  |  Branch (7485:44): [True: 230, False: 333]
  ------------------
 7486|    927|                (format > ElfEsUintGuard && format < ElfCount))
  ------------------
  |  Branch (7486:18): [True: 228, False: 699]
  |  Branch (7486:45): [True: 228, False: 0]
  ------------------
 7487|    780|                requireProfile(loc, ENoProfile | ECoreProfile | ECompatibilityProfile, "image load-store format");
 7488|  1.47k|            profileRequires(loc, ENoProfile | ECoreProfile | ECompatibilityProfile, 420, E_GL_ARB_shader_image_load_store, "image load store");
 7489|  1.47k|            profileRequires(loc, EEsProfile, 310, E_GL_ARB_shader_image_load_store, "image load store");
 7490|  1.47k|            publicType.qualifier.layoutFormat = format;
 7491|  1.47k|            return;
 7492|  1.47k|        }
 7493|   113k|    }
 7494|  1.63k|    if (id == "descriptor_heap") {
  ------------------
  |  Branch (7494:9): [True: 0, False: 1.63k]
  ------------------
 7495|      0|        requireExtensions(loc, 1, &E_GL_EXT_descriptor_heap, "descriptor_stride");
 7496|      0|        requireVulkan(loc, "descriptor_heap");
 7497|      0|        publicType.qualifier.layoutDescriptorHeap = true;
 7498|      0|        return;
 7499|      0|    }
 7500|  1.63k|    if (id == "push_constant") {
  ------------------
  |  Branch (7500:9): [True: 84, False: 1.55k]
  ------------------
 7501|     84|        requireVulkan(loc, "push_constant");
 7502|     84|        publicType.qualifier.layoutPushConstant = true;
 7503|     84|        return;
 7504|     84|    }
 7505|  1.55k|    if (id == "buffer_reference") {
  ------------------
  |  Branch (7505:9): [True: 8, False: 1.54k]
  ------------------
 7506|      8|        requireVulkan(loc, "buffer_reference");
 7507|      8|        requireExtensions(loc, 1, &E_GL_EXT_buffer_reference, "buffer_reference");
 7508|      8|        publicType.qualifier.layoutBufferReference = true;
 7509|      8|        intermediate.setUseStorageBuffer();
 7510|      8|        intermediate.setUsePhysicalStorageBuffer();
 7511|      8|        return;
 7512|      8|    }
 7513|  1.54k|    if (id == "buffer_type") {
  ------------------
  |  Branch (7513:9): [True: 0, False: 1.54k]
  ------------------
 7514|      0|        requireVulkan(loc, "buffer_type");
 7515|      0|        requireExtensions(loc, 1, &E_GL_EXT_structured_descriptor_heap, "buffer_type");
 7516|      0|        publicType.qualifier.layoutDescriptorBufferType = true;
 7517|      0|        return;
 7518|      0|    }
 7519|  1.54k|    if (id == "bindless_sampler") {
  ------------------
  |  Branch (7519:9): [True: 7, False: 1.53k]
  ------------------
 7520|      7|        requireExtensions(loc, 1, &E_GL_ARB_bindless_texture, "bindless_sampler");
 7521|      7|        publicType.qualifier.layoutBindlessSampler = true;
 7522|      7|        intermediate.setBindlessTextureMode(currentCaller, AstRefTypeLayout);
 7523|      7|        return;
 7524|      7|    }
 7525|  1.53k|    if (id == "bindless_image") {
  ------------------
  |  Branch (7525:9): [True: 0, False: 1.53k]
  ------------------
 7526|      0|        requireExtensions(loc, 1, &E_GL_ARB_bindless_texture, "bindless_image");
 7527|      0|        publicType.qualifier.layoutBindlessImage = true;
 7528|      0|        intermediate.setBindlessImageMode(currentCaller, AstRefTypeLayout);
 7529|      0|        return;
 7530|      0|    }
 7531|  1.53k|    if (id == "bound_sampler") {
  ------------------
  |  Branch (7531:9): [True: 0, False: 1.53k]
  ------------------
 7532|      0|        requireExtensions(loc, 1, &E_GL_ARB_bindless_texture, "bound_sampler");
 7533|      0|        publicType.qualifier.layoutBindlessSampler = false;
 7534|      0|        return;
 7535|      0|    }
 7536|  1.53k|    if (id == "bound_image") {
  ------------------
  |  Branch (7536:9): [True: 0, False: 1.53k]
  ------------------
 7537|      0|        requireExtensions(loc, 1, &E_GL_ARB_bindless_texture, "bound_image");
 7538|      0|        publicType.qualifier.layoutBindlessImage = false;
 7539|      0|        return;
 7540|      0|    }
 7541|  1.53k|    if (language == EShLangGeometry || language == EShLangTessEvaluation || language == EShLangMesh) {
  ------------------
  |  Branch (7541:9): [True: 0, False: 1.53k]
  |  Branch (7541:40): [True: 0, False: 1.53k]
  |  Branch (7541:77): [True: 0, False: 1.53k]
  ------------------
 7542|      0|        if (id == TQualifier::getGeometryString(ElgTriangles)) {
  ------------------
  |  Branch (7542:13): [True: 0, False: 0]
  ------------------
 7543|      0|            publicType.shaderQualifiers.geometry = ElgTriangles;
 7544|      0|            return;
 7545|      0|        }
 7546|      0|        if (language == EShLangGeometry || language == EShLangMesh) {
  ------------------
  |  Branch (7546:13): [True: 0, False: 0]
  |  Branch (7546:44): [True: 0, False: 0]
  ------------------
 7547|      0|            if (id == TQualifier::getGeometryString(ElgPoints)) {
  ------------------
  |  Branch (7547:17): [True: 0, False: 0]
  ------------------
 7548|      0|                publicType.shaderQualifiers.geometry = ElgPoints;
 7549|      0|                return;
 7550|      0|            }
 7551|      0|            if (id == TQualifier::getGeometryString(ElgLines)) {
  ------------------
  |  Branch (7551:17): [True: 0, False: 0]
  ------------------
 7552|      0|                publicType.shaderQualifiers.geometry = ElgLines;
 7553|      0|                return;
 7554|      0|            }
 7555|      0|            if (language == EShLangGeometry) {
  ------------------
  |  Branch (7555:17): [True: 0, False: 0]
  ------------------
 7556|      0|                if (id == TQualifier::getGeometryString(ElgLineStrip)) {
  ------------------
  |  Branch (7556:21): [True: 0, False: 0]
  ------------------
 7557|      0|                    publicType.shaderQualifiers.geometry = ElgLineStrip;
 7558|      0|                    return;
 7559|      0|                }
 7560|      0|                if (id == TQualifier::getGeometryString(ElgLinesAdjacency)) {
  ------------------
  |  Branch (7560:21): [True: 0, False: 0]
  ------------------
 7561|      0|                    publicType.shaderQualifiers.geometry = ElgLinesAdjacency;
 7562|      0|                    return;
 7563|      0|                }
 7564|      0|                if (id == TQualifier::getGeometryString(ElgTrianglesAdjacency)) {
  ------------------
  |  Branch (7564:21): [True: 0, False: 0]
  ------------------
 7565|      0|                    publicType.shaderQualifiers.geometry = ElgTrianglesAdjacency;
 7566|      0|                    return;
 7567|      0|                }
 7568|      0|                if (id == TQualifier::getGeometryString(ElgTriangleStrip)) {
  ------------------
  |  Branch (7568:21): [True: 0, False: 0]
  ------------------
 7569|      0|                    publicType.shaderQualifiers.geometry = ElgTriangleStrip;
 7570|      0|                    return;
 7571|      0|                }
 7572|      0|                if (id == "passthrough") {
  ------------------
  |  Branch (7572:21): [True: 0, False: 0]
  ------------------
 7573|      0|                    requireExtensions(loc, 1, &E_SPV_NV_geometry_shader_passthrough, "geometry shader passthrough");
 7574|      0|                    publicType.qualifier.layoutPassthrough = true;
 7575|      0|                    intermediate.setGeoPassthroughEXT();
 7576|      0|                    return;
 7577|      0|                }
 7578|      0|            }
 7579|      0|        } else {
 7580|      0|            assert(language == EShLangTessEvaluation);
 7581|       |
 7582|       |            // input primitive
 7583|      0|            if (id == TQualifier::getGeometryString(ElgTriangles)) {
  ------------------
  |  Branch (7583:17): [True: 0, False: 0]
  ------------------
 7584|      0|                publicType.shaderQualifiers.geometry = ElgTriangles;
 7585|      0|                return;
 7586|      0|            }
 7587|      0|            if (id == TQualifier::getGeometryString(ElgQuads)) {
  ------------------
  |  Branch (7587:17): [True: 0, False: 0]
  ------------------
 7588|      0|                publicType.shaderQualifiers.geometry = ElgQuads;
 7589|      0|                return;
 7590|      0|            }
 7591|      0|            if (id == TQualifier::getGeometryString(ElgIsolines)) {
  ------------------
  |  Branch (7591:17): [True: 0, False: 0]
  ------------------
 7592|      0|                publicType.shaderQualifiers.geometry = ElgIsolines;
 7593|      0|                return;
 7594|      0|            }
 7595|       |
 7596|       |            // vertex spacing
 7597|      0|            if (id == TQualifier::getVertexSpacingString(EvsEqual)) {
  ------------------
  |  Branch (7597:17): [True: 0, False: 0]
  ------------------
 7598|      0|                publicType.shaderQualifiers.spacing = EvsEqual;
 7599|      0|                return;
 7600|      0|            }
 7601|      0|            if (id == TQualifier::getVertexSpacingString(EvsFractionalEven)) {
  ------------------
  |  Branch (7601:17): [True: 0, False: 0]
  ------------------
 7602|      0|                publicType.shaderQualifiers.spacing = EvsFractionalEven;
 7603|      0|                return;
 7604|      0|            }
 7605|      0|            if (id == TQualifier::getVertexSpacingString(EvsFractionalOdd)) {
  ------------------
  |  Branch (7605:17): [True: 0, False: 0]
  ------------------
 7606|      0|                publicType.shaderQualifiers.spacing = EvsFractionalOdd;
 7607|      0|                return;
 7608|      0|            }
 7609|       |
 7610|       |            // triangle order
 7611|      0|            if (id == TQualifier::getVertexOrderString(EvoCw)) {
  ------------------
  |  Branch (7611:17): [True: 0, False: 0]
  ------------------
 7612|      0|                publicType.shaderQualifiers.order = EvoCw;
 7613|      0|                return;
 7614|      0|            }
 7615|      0|            if (id == TQualifier::getVertexOrderString(EvoCcw)) {
  ------------------
  |  Branch (7615:17): [True: 0, False: 0]
  ------------------
 7616|      0|                publicType.shaderQualifiers.order = EvoCcw;
 7617|      0|                return;
 7618|      0|            }
 7619|       |
 7620|       |            // point mode
 7621|      0|            if (id == "point_mode") {
  ------------------
  |  Branch (7621:17): [True: 0, False: 0]
  ------------------
 7622|      0|                publicType.shaderQualifiers.pointMode = true;
 7623|      0|                return;
 7624|      0|            }
 7625|      0|        }
 7626|      0|    }
 7627|  1.53k|    if (language == EShLangFragment) {
  ------------------
  |  Branch (7627:9): [True: 1.53k, False: 0]
  ------------------
 7628|  1.53k|        if (id == "origin_upper_left") {
  ------------------
  |  Branch (7628:13): [True: 219, False: 1.31k]
  ------------------
 7629|    219|            requireProfile(loc, ECoreProfile | ECompatibilityProfile | ENoProfile, "origin_upper_left");
 7630|    219|            if (profile == ENoProfile) {
  ------------------
  |  Branch (7630:17): [True: 2, False: 217]
  ------------------
 7631|      2|                profileRequires(loc,ECoreProfile | ECompatibilityProfile, 140, E_GL_ARB_fragment_coord_conventions, "origin_upper_left");
 7632|      2|            }
 7633|       |
 7634|    219|            publicType.shaderQualifiers.originUpperLeft = true;
 7635|    219|            return;
 7636|    219|        }
 7637|  1.31k|        if (id == "pixel_center_integer") {
  ------------------
  |  Branch (7637:13): [True: 218, False: 1.09k]
  ------------------
 7638|    218|            requireProfile(loc, ECoreProfile | ECompatibilityProfile | ENoProfile, "pixel_center_integer");
 7639|    218|            if (profile == ENoProfile) {
  ------------------
  |  Branch (7639:17): [True: 2, False: 216]
  ------------------
 7640|      2|                profileRequires(loc,ECoreProfile | ECompatibilityProfile, 140, E_GL_ARB_fragment_coord_conventions, "pixel_center_integer");
 7641|      2|            }
 7642|    218|            publicType.shaderQualifiers.pixelCenterInteger = true;
 7643|    218|            return;
 7644|    218|        }
 7645|  1.09k|        if (id == "early_fragment_tests") {
  ------------------
  |  Branch (7645:13): [True: 180, False: 919]
  ------------------
 7646|    180|            profileRequires(loc, ENoProfile | ECoreProfile | ECompatibilityProfile, 420, E_GL_ARB_shader_image_load_store, "early_fragment_tests");
 7647|    180|            profileRequires(loc, EEsProfile, 310, nullptr, "early_fragment_tests");
 7648|    180|            publicType.shaderQualifiers.earlyFragmentTests = true;
 7649|    180|            return;
 7650|    180|        }
 7651|    919|        if (id == "early_and_late_fragment_tests_amd") {
  ------------------
  |  Branch (7651:13): [True: 0, False: 919]
  ------------------
 7652|      0|            profileRequires(loc, ENoProfile | ECoreProfile | ECompatibilityProfile, 420, E_GL_AMD_shader_early_and_late_fragment_tests, "early_and_late_fragment_tests_amd");
 7653|      0|            profileRequires(loc, EEsProfile, 310, nullptr, "early_and_late_fragment_tests_amd");
 7654|      0|            publicType.shaderQualifiers.earlyAndLateFragmentTestsAMD = true;
 7655|      0|            return;
 7656|      0|        }
 7657|    919|        if (id == "post_depth_coverage") {
  ------------------
  |  Branch (7657:13): [True: 0, False: 919]
  ------------------
 7658|      0|            requireExtensions(loc, Num_post_depth_coverageEXTs, post_depth_coverageEXTs, "post depth coverage");
 7659|      0|            if (extensionTurnedOn(E_GL_ARB_post_depth_coverage)) {
  ------------------
  |  Branch (7659:17): [True: 0, False: 0]
  ------------------
 7660|      0|                publicType.shaderQualifiers.earlyFragmentTests = true;
 7661|      0|            }
 7662|      0|            publicType.shaderQualifiers.postDepthCoverage = true;
 7663|      0|            return;
 7664|      0|        }
 7665|       |        /* id is transformed into lower case in the beginning of this function. */
 7666|    919|        if (id == "non_coherent_color_attachment_readext") {
  ------------------
  |  Branch (7666:13): [True: 0, False: 919]
  ------------------
 7667|      0|            requireExtensions(loc, 1, &E_GL_EXT_shader_tile_image, "non_coherent_color_attachment_readEXT");
 7668|      0|            publicType.shaderQualifiers.nonCoherentColorAttachmentReadEXT = true;
 7669|      0|            return;
 7670|      0|        }
 7671|    919|        if (id == "non_coherent_depth_attachment_readext") {
  ------------------
  |  Branch (7671:13): [True: 0, False: 919]
  ------------------
 7672|      0|            requireExtensions(loc, 1, &E_GL_EXT_shader_tile_image, "non_coherent_depth_attachment_readEXT");
 7673|      0|            publicType.shaderQualifiers.nonCoherentDepthAttachmentReadEXT = true;
 7674|      0|            return;
 7675|      0|        }
 7676|    919|        if (id == "non_coherent_stencil_attachment_readext") {
  ------------------
  |  Branch (7676:13): [True: 0, False: 919]
  ------------------
 7677|      0|            requireExtensions(loc, 1, &E_GL_EXT_shader_tile_image, "non_coherent_stencil_attachment_readEXT");
 7678|      0|            publicType.shaderQualifiers.nonCoherentStencilAttachmentReadEXT = true;
 7679|      0|            return;
 7680|      0|        }
 7681|  4.18k|        for (TLayoutDepth depth = (TLayoutDepth)(EldNone + 1); depth < EldCount; depth = (TLayoutDepth)(depth+1)) {
  ------------------
  |  Branch (7681:64): [True: 3.38k, False: 806]
  ------------------
 7682|  3.38k|            if (id == TQualifier::getLayoutDepthString(depth)) {
  ------------------
  |  Branch (7682:17): [True: 113, False: 3.26k]
  ------------------
 7683|    113|                const char* feature = "depth layout qualifier";
 7684|    113|                requireProfile(loc, ECoreProfile | ECompatibilityProfile | EEsProfile, feature);
 7685|    113|                profileRequires(loc, ECoreProfile | ECompatibilityProfile, 420, E_GL_ARB_conservative_depth, feature);
 7686|    113|                profileRequires(loc, EEsProfile, 0, E_GL_EXT_conservative_depth, feature);
 7687|    113|                publicType.shaderQualifiers.layoutDepth = depth;
 7688|    113|                return;
 7689|    113|            }
 7690|  3.38k|        }
 7691|  5.64k|        for (TLayoutStencil stencil = (TLayoutStencil)(ElsNone + 1); stencil < ElsCount; stencil = (TLayoutStencil)(stencil+1)) {
  ------------------
  |  Branch (7691:70): [True: 4.83k, False: 806]
  ------------------
 7692|  4.83k|            if (id == TQualifier::getLayoutStencilString(stencil)) {
  ------------------
  |  Branch (7692:17): [True: 0, False: 4.83k]
  ------------------
 7693|      0|                requireProfile(loc, ECoreProfile | ECompatibilityProfile, "stencil layout qualifier");
 7694|      0|                profileRequires(loc, ECoreProfile | ECompatibilityProfile, 420, nullptr, "stencil layout qualifier");
 7695|      0|                publicType.shaderQualifiers.layoutStencil = stencil;
 7696|      0|                return;
 7697|      0|            }
 7698|  4.83k|        }
 7699|  5.64k|        for (TInterlockOrdering order = (TInterlockOrdering)(EioNone + 1); order < EioCount; order = (TInterlockOrdering)(order+1)) {
  ------------------
  |  Branch (7699:76): [True: 4.83k, False: 806]
  ------------------
 7700|  4.83k|            if (id == TQualifier::getInterlockOrderingString(order)) {
  ------------------
  |  Branch (7700:17): [True: 0, False: 4.83k]
  ------------------
 7701|      0|                requireProfile(loc, ECoreProfile | ECompatibilityProfile, "fragment shader interlock layout qualifier");
 7702|      0|                profileRequires(loc, ECoreProfile | ECompatibilityProfile, 450, nullptr, "fragment shader interlock layout qualifier");
 7703|      0|                requireExtensions(loc, 1, &E_GL_ARB_fragment_shader_interlock, TQualifier::getInterlockOrderingString(order));
 7704|      0|                if (order == EioShadingRateInterlockOrdered || order == EioShadingRateInterlockUnordered)
  ------------------
  |  Branch (7704:21): [True: 0, False: 0]
  |  Branch (7704:64): [True: 0, False: 0]
  ------------------
 7705|      0|                    requireExtensions(loc, 1, &E_GL_NV_shading_rate_image, TQualifier::getInterlockOrderingString(order));
 7706|      0|                publicType.shaderQualifiers.interlockOrdering = order;
 7707|      0|                return;
 7708|      0|            }
 7709|  4.83k|        }
 7710|    806|        if (id.compare(0, 13, "blend_support") == 0) {
  ------------------
  |  Branch (7710:13): [True: 725, False: 81]
  ------------------
 7711|    725|            bool found = false;
 7712|  7.31k|            for (TBlendEquationShift be = (TBlendEquationShift)0; be < EBlendCount; be = (TBlendEquationShift)(be + 1)) {
  ------------------
  |  Branch (7712:67): [True: 7.30k, False: 15]
  ------------------
 7713|  7.30k|                if (id == TQualifier::getBlendEquationString(be)) {
  ------------------
  |  Branch (7713:21): [True: 710, False: 6.59k]
  ------------------
 7714|    710|                    profileRequires(loc, EEsProfile, 320, E_GL_KHR_blend_equation_advanced, "blend equation");
 7715|    710|                    profileRequires(loc, ~EEsProfile, 0, E_GL_KHR_blend_equation_advanced, "blend equation");
 7716|    710|                    intermediate.addBlendEquation(be);
 7717|    710|                    publicType.shaderQualifiers.blendEquation = true;
 7718|    710|                    found = true;
 7719|    710|                    break;
 7720|    710|                }
 7721|  7.30k|            }
 7722|    725|            if (! found)
  ------------------
  |  Branch (7722:17): [True: 15, False: 710]
  ------------------
 7723|     15|                error(loc, "unknown blend equation", "blend_support", "");
 7724|    725|            return;
 7725|    725|        }
 7726|     81|        if (id == "override_coverage") {
  ------------------
  |  Branch (7726:13): [True: 0, False: 81]
  ------------------
 7727|      0|            requireExtensions(loc, 1, &E_GL_NV_sample_mask_override_coverage, "sample mask override coverage");
 7728|      0|            publicType.shaderQualifiers.layoutOverrideCoverage = true;
 7729|      0|            return;
 7730|      0|        }
 7731|     81|        if (id == "full_quads")
  ------------------
  |  Branch (7731:13): [True: 0, False: 81]
  ------------------
 7732|      0|        {
 7733|      0|            const char* feature = "full_quads qualifier";
 7734|      0|            requireProfile(loc, ECompatibilityProfile | ECoreProfile | EEsProfile, feature);
 7735|      0|            profileRequires(loc, ECoreProfile | ECompatibilityProfile, 140, E_GL_EXT_shader_quad_control, feature);
 7736|      0|            profileRequires(loc, EEsProfile, 310, E_GL_EXT_shader_quad_control, feature);
 7737|      0|            publicType.qualifier.layoutFullQuads = true;
 7738|      0|            return;
 7739|      0|        }
 7740|     81|        if (id == "non_coherent_attachment_readqcom") {
  ------------------
  |  Branch (7740:13): [True: 0, False: 81]
  ------------------
 7741|      0|            requireExtensions(loc, 1, &E_GL_QCOM_tile_shading, "tile shading QCOM");
 7742|      0|            publicType.shaderQualifiers.layoutNonCoherentTileAttachmentReadQCOM = true;
 7743|      0|            return;
 7744|      0|        }
 7745|     81|        if (id == "tile_attachmentqcom") {
  ------------------
  |  Branch (7745:13): [True: 0, False: 81]
  ------------------
 7746|      0|            requireExtensions(loc, 1, &E_GL_QCOM_tile_shading, "tile shading QCOM");
 7747|      0|            publicType.qualifier.layoutTileAttachmentQCOM = true;
 7748|      0|            return;
 7749|      0|        }
 7750|     81|    }
 7751|     81|    if (language == EShLangVertex ||
  ------------------
  |  Branch (7751:9): [True: 0, False: 81]
  ------------------
 7752|     81|        language == EShLangTessControl ||
  ------------------
  |  Branch (7752:9): [True: 0, False: 81]
  ------------------
 7753|     81|        language == EShLangTessEvaluation ||
  ------------------
  |  Branch (7753:9): [True: 0, False: 81]
  ------------------
 7754|     81|        language == EShLangGeometry ) {
  ------------------
  |  Branch (7754:9): [True: 0, False: 81]
  ------------------
 7755|      0|        if (id == "viewport_relative") {
  ------------------
  |  Branch (7755:13): [True: 0, False: 0]
  ------------------
 7756|      0|            requireExtensions(loc, 1, &E_GL_NV_viewport_array2, "view port array2");
 7757|      0|            publicType.qualifier.layoutViewportRelative = true;
 7758|      0|            return;
 7759|      0|        }
 7760|     81|    } else {
 7761|     81|        if (language == EShLangRayGen || language == EShLangIntersect ||
  ------------------
  |  Branch (7761:13): [True: 0, False: 81]
  |  Branch (7761:42): [True: 0, False: 81]
  ------------------
 7762|     81|        language == EShLangAnyHit || language == EShLangClosestHit ||
  ------------------
  |  Branch (7762:9): [True: 0, False: 81]
  |  Branch (7762:38): [True: 0, False: 81]
  ------------------
 7763|     81|        language == EShLangMiss || language == EShLangCallable) {
  ------------------
  |  Branch (7763:9): [True: 0, False: 81]
  |  Branch (7763:36): [True: 0, False: 81]
  ------------------
 7764|      0|            if (id == "shaderrecordnv" || id == "shaderrecordext") {
  ------------------
  |  Branch (7764:17): [True: 0, False: 0]
  |  Branch (7764:43): [True: 0, False: 0]
  ------------------
 7765|      0|                if (id == "shaderrecordnv") {
  ------------------
  |  Branch (7765:21): [True: 0, False: 0]
  ------------------
 7766|      0|                    requireExtensions(loc, 1, &E_GL_NV_ray_tracing, "shader record NV");
 7767|      0|                } else {
 7768|      0|                    requireExtensions(loc, 1, &E_GL_EXT_ray_tracing, "shader record EXT");
 7769|      0|                }
 7770|      0|                publicType.qualifier.layoutShaderRecord = true;
 7771|      0|                return;
 7772|      0|            } else if (id == "hitobjectshaderrecordnv") {
  ------------------
  |  Branch (7772:24): [True: 0, False: 0]
  ------------------
 7773|      0|                requireExtensions(loc, 1, &E_GL_NV_shader_invocation_reorder, "hitobject shader record NV");
 7774|      0|                publicType.qualifier.layoutHitObjectShaderRecordNV = true;
 7775|      0|                return;
 7776|      0|            } else if (id == "hitobjectshaderrecordext") {
  ------------------
  |  Branch (7776:24): [True: 0, False: 0]
  ------------------
 7777|      0|                requireExtensions(loc, 1, &E_GL_EXT_shader_invocation_reorder, "hitobject shader record EXT");
 7778|      0|                publicType.qualifier.layoutHitObjectShaderRecordEXT = true;
 7779|      0|                return;
 7780|      0|            }
 7781|       |
 7782|      0|        }
 7783|     81|    }
 7784|     81|    if (language == EShLangCompute || language == EShLangTask || language == EShLangMesh) {
  ------------------
  |  Branch (7784:9): [True: 0, False: 81]
  |  Branch (7784:39): [True: 0, False: 81]
  |  Branch (7784:66): [True: 0, False: 81]
  ------------------
 7785|      0|        if (id.compare(0, 17, "derivative_group_") == 0) {
  ------------------
  |  Branch (7785:13): [True: 0, False: 0]
  ------------------
 7786|      0|            if (id == "derivative_group_quadsnv" || id == "derivative_group_linearnv") {
  ------------------
  |  Branch (7786:17): [True: 0, False: 0]
  |  Branch (7786:53): [True: 0, False: 0]
  ------------------
 7787|      0|                requireExtensions(loc, 1, &E_GL_NV_compute_shader_derivatives, "compute shader derivatives");
 7788|      0|                if (language != EShLangCompute) {
  ------------------
  |  Branch (7788:21): [True: 0, False: 0]
  ------------------
 7789|      0|                    error(loc, "can only apply to compute shaders", id.c_str(), "");
 7790|      0|                    return;
 7791|      0|                }
 7792|      0|            } else if (id == "derivative_group_quadskhr" || id == "derivative_group_linearkhr") {
  ------------------
  |  Branch (7792:24): [True: 0, False: 0]
  |  Branch (7792:61): [True: 0, False: 0]
  ------------------
 7793|      0|                requireExtensions(loc, 1, &E_GL_KHR_compute_shader_derivatives, "compute shader derivatives");
 7794|      0|                khrDerivativeLayoutQualifierSpecified = true;
 7795|      0|            }
 7796|      0|            if (id == "derivative_group_quadsnv" || id == "derivative_group_quadskhr") {
  ------------------
  |  Branch (7796:17): [True: 0, False: 0]
  |  Branch (7796:53): [True: 0, False: 0]
  ------------------
 7797|      0|                publicType.shaderQualifiers.layoutDerivativeGroupQuads = true;
 7798|      0|                publicType.shaderQualifiers.derivativeGroupExtension =
 7799|      0|                    id == "derivative_group_quadsnv" ? EdgNV : EdgKHR;
  ------------------
  |  Branch (7799:21): [True: 0, False: 0]
  ------------------
 7800|      0|                return;
 7801|      0|            } else if (id == "derivative_group_linearnv" || id == "derivative_group_linearkhr") {
  ------------------
  |  Branch (7801:24): [True: 0, False: 0]
  |  Branch (7801:61): [True: 0, False: 0]
  ------------------
 7802|      0|                publicType.shaderQualifiers.layoutDerivativeGroupLinear = true;
 7803|      0|                publicType.shaderQualifiers.derivativeGroupExtension =
 7804|      0|                    id == "derivative_group_linearnv" ? EdgNV : EdgKHR;
  ------------------
  |  Branch (7804:21): [True: 0, False: 0]
  ------------------
 7805|      0|                return;
 7806|      0|            }
 7807|      0|        }
 7808|      0|    }
 7809|     81|    if (language == EShLangCompute) {
  ------------------
  |  Branch (7809:9): [True: 0, False: 81]
  ------------------
 7810|      0|        if (id == "tile_attachmentqcom") {
  ------------------
  |  Branch (7810:13): [True: 0, False: 0]
  ------------------
 7811|      0|            requireExtensions(loc, 1, &E_GL_QCOM_tile_shading, "tile shading QCOM");
 7812|      0|            publicType.qualifier.layoutTileAttachmentQCOM = true;
 7813|      0|            return;
 7814|      0|        }
 7815|      0|    }
 7816|       |
 7817|     81|    if (id == "primitive_culling") {
  ------------------
  |  Branch (7817:9): [True: 0, False: 81]
  ------------------
 7818|      0|        requireExtensions(loc, 1, &E_GL_EXT_ray_flags_primitive_culling, "primitive culling");
 7819|      0|        publicType.shaderQualifiers.layoutPrimitiveCulling = true;
 7820|      0|        return;
 7821|      0|    }
 7822|       |
 7823|     81|    if (id == "quad_derivatives")
  ------------------
  |  Branch (7823:9): [True: 0, False: 81]
  ------------------
 7824|      0|    {
 7825|      0|        const char* feature = "quad_derivatives qualifier";
 7826|      0|        requireProfile(loc, ECompatibilityProfile | ECoreProfile | EEsProfile, feature);
 7827|      0|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 140, E_GL_EXT_shader_quad_control, feature);
 7828|      0|        profileRequires(loc, EEsProfile, 310, E_GL_EXT_shader_quad_control, feature);
 7829|      0|        publicType.qualifier.layoutQuadDeriv = true;
 7830|      0|        return;
 7831|      0|    }
 7832|       |
 7833|     81|    error(loc, "unrecognized layout identifier, or qualifier requires assignment (e.g., binding = 4)", id.c_str(), "");
 7834|     81|}
_ZN7glslang13TParseContext18setLayoutQualifierERKNS_10TSourceLocERNS_11TPublicTypeERNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEEPKNS_12TIntermTypedE:
 7839|  6.89k|{
 7840|  6.89k|    const char* feature = "layout-id value";
 7841|  6.89k|    const char* nonLiteralFeature = "non-literal layout-id value";
 7842|       |
 7843|  6.89k|    if (id != "heap_offset" && !node->getQualifier().isConstant())
  ------------------
  |  Branch (7843:9): [True: 6.89k, False: 0]
  |  Branch (7843:32): [True: 9, False: 6.88k]
  ------------------
 7844|      9|        error(loc, "constant expression required", "", "");
 7845|       |
 7846|  6.89k|    integerCheck(node, feature);
 7847|  6.89k|    const TIntermConstantUnion* constUnion = node->getAsConstantUnion();
 7848|  6.89k|    int value;
 7849|  6.89k|    bool nonLiteral = false;
 7850|  6.89k|    if (constUnion) {
  ------------------
  |  Branch (7850:9): [True: 6.88k, False: 9]
  ------------------
 7851|  6.88k|        value = constUnion->getConstArray()[0].getIConst();
 7852|  6.88k|        if (! constUnion->isLiteral()) {
  ------------------
  |  Branch (7852:13): [True: 305, False: 6.58k]
  ------------------
 7853|    305|            requireProfile(loc, ECoreProfile | ECompatibilityProfile, nonLiteralFeature);
 7854|    305|            profileRequires(loc, ECoreProfile | ECompatibilityProfile, 440, E_GL_ARB_enhanced_layouts, nonLiteralFeature);
 7855|    305|        }
 7856|  6.88k|    } else {
 7857|       |        // grammar should have give out the error message
 7858|      9|        value = 0;
 7859|      9|        nonLiteral = true;
 7860|      9|    }
 7861|       |
 7862|  6.89k|    if (value < 0) {
  ------------------
  |  Branch (7862:9): [True: 153, False: 6.74k]
  ------------------
 7863|    153|        error(loc, "cannot be negative", feature, "");
 7864|    153|        return;
 7865|    153|    }
 7866|       |
 7867|  6.74k|    std::transform(id.begin(), id.end(), id.begin(), ::tolower);
 7868|       |
 7869|  6.74k|    if (id == "offset") {
  ------------------
  |  Branch (7869:9): [True: 266, False: 6.47k]
  ------------------
 7870|       |        // "offset" can be for either
 7871|       |        //  - uniform offsets
 7872|       |        //  - atomic_uint offsets
 7873|    266|        const char* feature = "offset";
 7874|    266|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (7874:13): [True: 0, False: 266]
  ------------------
 7875|      0|            requireProfile(loc, EEsProfile | ECoreProfile | ECompatibilityProfile, feature);
 7876|      0|            const char* exts[2] = { E_GL_ARB_enhanced_layouts, E_GL_ARB_shader_atomic_counters };
 7877|      0|            profileRequires(loc, ECoreProfile | ECompatibilityProfile, 420, 2, exts, feature);
 7878|      0|            profileRequires(loc, EEsProfile, 310, nullptr, feature);
 7879|      0|        }
 7880|    266|        publicType.qualifier.layoutOffset = value;
 7881|    266|        publicType.qualifier.explicitOffset = true;
 7882|    266|        if (nonLiteral)
  ------------------
  |  Branch (7882:13): [True: 0, False: 266]
  ------------------
 7883|      0|            error(loc, "needs a literal integer", "offset", "");
 7884|    266|        return;
 7885|  6.47k|    } else if (id == "align") {
  ------------------
  |  Branch (7885:16): [True: 265, False: 6.21k]
  ------------------
 7886|    265|        const char* feature = "uniform buffer-member align";
 7887|    265|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (7887:13): [True: 0, False: 265]
  ------------------
 7888|      0|            requireProfile(loc, ECoreProfile | ECompatibilityProfile, feature);
 7889|      0|            profileRequires(loc, ECoreProfile | ECompatibilityProfile, 440, E_GL_ARB_enhanced_layouts, feature);
 7890|      0|        }
 7891|       |        // "The specified alignment must be a power of 2, or a compile-time error results."
 7892|    265|        if (! IsPow2(value))
  ------------------
  |  Branch (7892:13): [True: 31, False: 234]
  ------------------
 7893|     31|            error(loc, "must be a power of 2", "align", "");
 7894|    234|        else
 7895|    234|            publicType.qualifier.layoutAlign = value;
 7896|    265|        if (nonLiteral)
  ------------------
  |  Branch (7896:13): [True: 0, False: 265]
  ------------------
 7897|      0|            error(loc, "needs a literal integer", "align", "");
 7898|    265|        return;
 7899|  6.21k|    } else if (id == "location") {
  ------------------
  |  Branch (7899:16): [True: 2.19k, False: 4.01k]
  ------------------
 7900|  2.19k|        profileRequires(loc, EEsProfile, 300, nullptr, "location");
 7901|       |        // Generating SPIR-V requires a location on every user input and output, so allow one at any desktop version
 7902|  2.19k|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (7902:13): [True: 0, False: 2.19k]
  ------------------
 7903|      0|            const char* exts[2] = { E_GL_ARB_separate_shader_objects, E_GL_ARB_explicit_attrib_location };
 7904|       |            // GL_ARB_explicit_uniform_location requires 330 or GL_ARB_explicit_attrib_location,
 7905|       |            // we do not need to add it here
 7906|      0|            profileRequires(loc, ~EEsProfile, 330, 2, exts, "location");
 7907|      0|        }
 7908|  2.19k|        if ((unsigned int)value >= TQualifier::layoutLocationEnd)
  ------------------
  |  Branch (7908:13): [True: 111, False: 2.08k]
  ------------------
 7909|    111|            error(loc, "location is too large", id.c_str(), "");
 7910|  2.08k|        else
 7911|  2.08k|            publicType.qualifier.layoutLocation = value;
 7912|  2.19k|        if (nonLiteral)
  ------------------
  |  Branch (7912:13): [True: 4, False: 2.19k]
  ------------------
 7913|      4|            error(loc, "needs a literal integer", "location", "");
 7914|  2.19k|        return;
 7915|  4.01k|    } else if (id == "set") {
  ------------------
  |  Branch (7915:16): [True: 303, False: 3.71k]
  ------------------
 7916|    303|        if (!relaxSetBindingLimits() && value >= static_cast<int>(TQualifier::layoutSetEnd))
  ------------------
  |  Branch (7916:13): [True: 303, False: 0]
  |  Branch (7916:41): [True: 0, False: 303]
  ------------------
 7917|      0|            error(loc, "set is too large", id.c_str(), "");
 7918|    303|        else
 7919|    303|            publicType.qualifier.layoutSet = value;
 7920|    303|        if (value != 0)
  ------------------
  |  Branch (7920:13): [True: 128, False: 175]
  ------------------
 7921|    128|            requireVulkan(loc, "descriptor set");
 7922|    303|        if (nonLiteral)
  ------------------
  |  Branch (7922:13): [True: 0, False: 303]
  ------------------
 7923|      0|            error(loc, "needs a literal integer", "set", "");
 7924|    303|        return;
 7925|  3.71k|    } else if (id == "binding") {
  ------------------
  |  Branch (7925:16): [True: 2.76k, False: 947]
  ------------------
 7926|  2.76k|        profileRequires(loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, "binding");
 7927|  2.76k|        profileRequires(loc, EEsProfile, 310, nullptr, "binding");
 7928|  2.76k|        if (!relaxSetBindingLimits() && value >= static_cast<int>(TQualifier::layoutBindingEnd))
  ------------------
  |  Branch (7928:13): [True: 2.76k, False: 0]
  |  Branch (7928:41): [True: 0, False: 2.76k]
  ------------------
 7929|      0|            error(loc, "binding is too large", id.c_str(), "");
 7930|  2.76k|        else
 7931|  2.76k|            publicType.qualifier.layoutBinding = value;
 7932|  2.76k|        if (nonLiteral)
  ------------------
  |  Branch (7932:13): [True: 3, False: 2.76k]
  ------------------
 7933|      3|            error(loc, "needs a literal integer", "binding", "");
 7934|  2.76k|        return;
 7935|  2.76k|    }
 7936|    947|    if (id == "constant_id") {
  ------------------
  |  Branch (7936:9): [True: 343, False: 604]
  ------------------
 7937|    343|        requireSpv(loc, "constant_id");
 7938|    343|        if ((unsigned)value >= TQualifier::layoutSpecConstantIdEnd) {
  ------------------
  |  Branch (7938:13): [True: 0, False: 343]
  ------------------
 7939|      0|            error(loc, "specialization-constant id is too large", id.c_str(), "");
 7940|    343|        } else {
 7941|    343|            publicType.qualifier.layoutSpecConstantId = value;
 7942|    343|            publicType.qualifier.specConstant = true;
 7943|    343|            if (! intermediate.addUsedConstantId(value))
  ------------------
  |  Branch (7943:17): [True: 28, False: 315]
  ------------------
 7944|     28|                error(loc, "specialization-constant id already used", id.c_str(), "");
 7945|    343|        }
 7946|    343|        if (nonLiteral)
  ------------------
  |  Branch (7946:13): [True: 1, False: 342]
  ------------------
 7947|      1|            error(loc, "needs a literal integer", "constant_id", "");
 7948|    343|        return;
 7949|    343|    }
 7950|    604|    if (id == "component") {
  ------------------
  |  Branch (7950:9): [True: 326, False: 278]
  ------------------
 7951|    326|        requireProfile(loc, ECoreProfile | ECompatibilityProfile, "component");
 7952|    326|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 440, E_GL_ARB_enhanced_layouts, "component");
 7953|    326|        if ((unsigned)value >= TQualifier::layoutComponentEnd)
  ------------------
  |  Branch (7953:13): [True: 0, False: 326]
  ------------------
 7954|      0|            error(loc, "component is too large", id.c_str(), "");
 7955|    326|        else
 7956|    326|            publicType.qualifier.layoutComponent = value;
 7957|    326|        if (nonLiteral)
  ------------------
  |  Branch (7957:13): [True: 0, False: 326]
  ------------------
 7958|      0|            error(loc, "needs a literal integer", "component", "");
 7959|    326|        return;
 7960|    326|    }
 7961|    278|    if (id.compare(0, 4, "xfb_") == 0) {
  ------------------
  |  Branch (7961:9): [True: 0, False: 278]
  ------------------
 7962|       |        // "Any shader making any static use (after preprocessing) of any of these
 7963|       |        // *xfb_* qualifiers will cause the shader to be in a transform feedback
 7964|       |        // capturing mode and hence responsible for describing the transform feedback
 7965|       |        // setup."
 7966|      0|        intermediate.setXfbMode();
 7967|      0|        const char* feature = "transform feedback qualifier";
 7968|      0|        requireStage(loc, (EShLanguageMask)(EShLangVertexMask | EShLangGeometryMask | EShLangTessControlMask | EShLangTessEvaluationMask), feature);
 7969|      0|        requireProfile(loc, ECoreProfile | ECompatibilityProfile, feature);
 7970|      0|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 440, E_GL_ARB_enhanced_layouts, feature);
 7971|      0|        if (id == "xfb_buffer") {
  ------------------
  |  Branch (7971:13): [True: 0, False: 0]
  ------------------
 7972|       |            // "It is a compile-time error to specify an *xfb_buffer* that is greater than
 7973|       |            // the implementation-dependent constant gl_MaxTransformFeedbackBuffers."
 7974|      0|            if (value >= resources.maxTransformFeedbackBuffers)
  ------------------
  |  Branch (7974:17): [True: 0, False: 0]
  ------------------
 7975|      0|                error(loc, "buffer is too large:", id.c_str(), "gl_MaxTransformFeedbackBuffers is %d", resources.maxTransformFeedbackBuffers);
 7976|      0|            if (value >= (int)TQualifier::layoutXfbBufferEnd)
  ------------------
  |  Branch (7976:17): [True: 0, False: 0]
  ------------------
 7977|      0|                error(loc, "buffer is too large:", id.c_str(), "internal max is %d", TQualifier::layoutXfbBufferEnd-1);
 7978|      0|            else
 7979|      0|                publicType.qualifier.layoutXfbBuffer = value;
 7980|      0|            if (nonLiteral)
  ------------------
  |  Branch (7980:17): [True: 0, False: 0]
  ------------------
 7981|      0|                error(loc, "needs a literal integer", "xfb_buffer", "");
 7982|      0|            return;
 7983|      0|        } else if (id == "xfb_offset") {
  ------------------
  |  Branch (7983:20): [True: 0, False: 0]
  ------------------
 7984|      0|            if (value >= (int)TQualifier::layoutXfbOffsetEnd)
  ------------------
  |  Branch (7984:17): [True: 0, False: 0]
  ------------------
 7985|      0|                error(loc, "offset is too large:", id.c_str(), "internal max is %d", TQualifier::layoutXfbOffsetEnd-1);
 7986|      0|            else
 7987|      0|                publicType.qualifier.layoutXfbOffset = value;
 7988|      0|            if (nonLiteral)
  ------------------
  |  Branch (7988:17): [True: 0, False: 0]
  ------------------
 7989|      0|                error(loc, "needs a literal integer", "xfb_offset", "");
 7990|      0|            return;
 7991|      0|        } else if (id == "xfb_stride") {
  ------------------
  |  Branch (7991:20): [True: 0, False: 0]
  ------------------
 7992|       |            // "The resulting stride (implicit or explicit), when divided by 4, must be less than or equal to the
 7993|       |            // implementation-dependent constant gl_MaxTransformFeedbackInterleavedComponents."
 7994|      0|            if (value > 4 * resources.maxTransformFeedbackInterleavedComponents) {
  ------------------
  |  Branch (7994:17): [True: 0, False: 0]
  ------------------
 7995|      0|                error(loc, "1/4 stride is too large:", id.c_str(), "gl_MaxTransformFeedbackInterleavedComponents is %d",
 7996|      0|                    resources.maxTransformFeedbackInterleavedComponents);
 7997|      0|            }
 7998|      0|            if (value >= (int)TQualifier::layoutXfbStrideEnd)
  ------------------
  |  Branch (7998:17): [True: 0, False: 0]
  ------------------
 7999|      0|                error(loc, "stride is too large:", id.c_str(), "internal max is %d", TQualifier::layoutXfbStrideEnd-1);
 8000|      0|            else
 8001|      0|                publicType.qualifier.layoutXfbStride = value;
 8002|      0|            if (nonLiteral)
  ------------------
  |  Branch (8002:17): [True: 0, False: 0]
  ------------------
 8003|      0|                error(loc, "needs a literal integer", "xfb_stride", "");
 8004|      0|            return;
 8005|      0|        }
 8006|      0|    }
 8007|    278|    if (id == "input_attachment_index") {
  ------------------
  |  Branch (8007:9): [True: 44, False: 234]
  ------------------
 8008|     44|        requireVulkan(loc, "input_attachment_index");
 8009|     44|        if (value >= (int)TQualifier::layoutAttachmentEnd)
  ------------------
  |  Branch (8009:13): [True: 0, False: 44]
  ------------------
 8010|      0|            error(loc, "attachment index is too large", id.c_str(), "");
 8011|     44|        else
 8012|     44|            publicType.qualifier.layoutAttachment = value;
 8013|     44|        if (nonLiteral)
  ------------------
  |  Branch (8013:13): [True: 1, False: 43]
  ------------------
 8014|      1|            error(loc, "needs a literal integer", "input_attachment_index", "");
 8015|     44|        return;
 8016|     44|    }
 8017|    234|    if (id == "num_views") {
  ------------------
  |  Branch (8017:9): [True: 0, False: 234]
  ------------------
 8018|      0|        requireExtensions(loc, Num_OVR_multiview_EXTs, OVR_multiview_EXTs, "num_views");
 8019|      0|        publicType.shaderQualifiers.numViews = value;
 8020|      0|        if (nonLiteral)
  ------------------
  |  Branch (8020:13): [True: 0, False: 0]
  ------------------
 8021|      0|            error(loc, "needs a literal integer", "num_views", "");
 8022|      0|        return;
 8023|      0|    }
 8024|    234|    if (language == EShLangVertex ||
  ------------------
  |  Branch (8024:9): [True: 0, False: 234]
  ------------------
 8025|    234|        language == EShLangTessControl ||
  ------------------
  |  Branch (8025:9): [True: 0, False: 234]
  ------------------
 8026|    234|        language == EShLangTessEvaluation ||
  ------------------
  |  Branch (8026:9): [True: 0, False: 234]
  ------------------
 8027|    234|        language == EShLangGeometry) {
  ------------------
  |  Branch (8027:9): [True: 0, False: 234]
  ------------------
 8028|      0|        if (id == "secondary_view_offset") {
  ------------------
  |  Branch (8028:13): [True: 0, False: 0]
  ------------------
 8029|      0|            requireExtensions(loc, 1, &E_GL_NV_stereo_view_rendering, "stereo view rendering");
 8030|      0|            publicType.qualifier.layoutSecondaryViewportRelativeOffset = value;
 8031|      0|            if (nonLiteral)
  ------------------
  |  Branch (8031:17): [True: 0, False: 0]
  ------------------
 8032|      0|                error(loc, "needs a literal integer", "secondary_view_offset", "");
 8033|      0|            return;
 8034|      0|        }
 8035|      0|    }
 8036|       |
 8037|    234|    if (id == "buffer_reference_align") {
  ------------------
  |  Branch (8037:9): [True: 8, False: 226]
  ------------------
 8038|      8|        requireExtensions(loc, 1, &E_GL_EXT_buffer_reference, "buffer_reference_align");
 8039|      8|        if (! IsPow2(value))
  ------------------
  |  Branch (8039:13): [True: 0, False: 8]
  ------------------
 8040|      0|            error(loc, "must be a power of 2", "buffer_reference_align", "");
 8041|      8|        else
 8042|      8|            publicType.qualifier.layoutBufferReferenceAlign = IntLog2(value);
 8043|      8|        if (nonLiteral)
  ------------------
  |  Branch (8043:13): [True: 0, False: 8]
  ------------------
 8044|      0|            error(loc, "needs a literal integer", "buffer_reference_align", "");
 8045|      8|        return;
 8046|      8|    }
 8047|       |
 8048|    226|    if (id == "bank") {
  ------------------
  |  Branch (8048:9): [True: 0, False: 226]
  ------------------
 8049|      0|        requireExtensions(loc, 1, &E_GL_NV_push_constant_bank, "bank");
 8050|      0|        if (nonLiteral)
  ------------------
  |  Branch (8050:13): [True: 0, False: 0]
  ------------------
 8051|      0|            error(loc, "needs a literal integer", id.c_str(), "");
 8052|      0|        else if (value < 0 || (unsigned int)value >= TQualifier::layoutBankEnd)
  ------------------
  |  Branch (8052:18): [True: 0, False: 0]
  |  Branch (8052:31): [True: 0, False: 0]
  ------------------
 8053|      0|            error(loc, "bank out of range", id.c_str(), "");
 8054|      0|        else
 8055|      0|            publicType.qualifier.layoutBank = value;
 8056|      0|        return;
 8057|      0|    }
 8058|    226|    if (id == "member_offset") {
  ------------------
  |  Branch (8058:9): [True: 0, False: 226]
  ------------------
 8059|      0|        requireExtensions(loc, 1, &E_GL_NV_push_constant_bank, "member_offset");
 8060|      0|        if (nonLiteral)
  ------------------
  |  Branch (8060:13): [True: 0, False: 0]
  ------------------
 8061|      0|            error(loc, "needs a literal integer", id.c_str(), "");
 8062|      0|        else if (value < 0)
  ------------------
  |  Branch (8062:18): [True: 0, False: 0]
  ------------------
 8063|      0|            error(loc, "must be equal or greater than 0", id.c_str(), "");
 8064|      0|        else
 8065|      0|            publicType.qualifier.layoutMemberOffset = value;
 8066|      0|        return;
 8067|      0|    }
 8068|       |
 8069|    226|    if (id == "descriptor_stride") {
  ------------------
  |  Branch (8069:9): [True: 0, False: 226]
  ------------------
 8070|      0|        requireExtensions(loc, 1, &E_GL_EXT_descriptor_heap, "descriptor_stride");
 8071|      0|        requireVulkan(loc, "descriptor_stride");
 8072|      0|        if (!IsPow2(value))
  ------------------
  |  Branch (8072:13): [True: 0, False: 0]
  ------------------
 8073|      0|            error(loc, "must be a power of 2", "descriptor_stride", "");
 8074|      0|        else
 8075|      0|            publicType.qualifier.layoutDescriptorStride = uint32_t(value);
 8076|      0|        return;
 8077|      0|    }
 8078|       |
 8079|    226|    if (id == "descriptor_size") {
  ------------------
  |  Branch (8079:9): [True: 0, False: 226]
  ------------------
 8080|      0|        requireExtensions(loc, 1, &E_GL_EXT_descriptor_heap, "descriptor_size");
 8081|      0|        requireExtensions(loc, 1, &E_GL_EXT_structured_descriptor_heap, "descriptor_size");
 8082|      0|        requireVulkan(loc, "descriptor_size");
 8083|      0|        if (nonLiteral)
  ------------------
  |  Branch (8083:13): [True: 0, False: 0]
  ------------------
 8084|      0|            error(loc, "needs a literal integer", "descriptor_size", "");
 8085|      0|        else
 8086|      0|            publicType.qualifier.layoutDescriptorSize = uint32_t(value);
 8087|      0|        return;
 8088|      0|    }
 8089|       |
 8090|    226|    if (id == "heap_offset") {
  ------------------
  |  Branch (8090:9): [True: 0, False: 226]
  ------------------
 8091|      0|        requireExtensions(loc, 1, &E_GL_EXT_descriptor_heap, "heap_offset");
 8092|      0|        requireExtensions(loc, 1, &E_GL_EXT_structured_descriptor_heap, "heap_offset");
 8093|      0|        requireVulkan(loc, "heap_offset");
 8094|      0|        if (nonLiteral) {
  ------------------
  |  Branch (8094:13): [True: 0, False: 0]
  ------------------
 8095|      0|            if (!node->getQualifier().isConstant() && !node->getQualifier().isUniform() &&
  ------------------
  |  Branch (8095:17): [True: 0, False: 0]
  |  Branch (8095:55): [True: 0, False: 0]
  ------------------
 8096|      0|                !node->getQualifier().isReadOnly()) {
  ------------------
  |  Branch (8096:17): [True: 0, False: 0]
  ------------------
 8097|      0|                error(loc, "must be a literal or read-only variable value", "heap_offset", "");
 8098|      0|                return;
 8099|      0|            }
 8100|      0|            publicType.qualifier.layoutHeapOffsetNode = const_cast<TIntermTyped*>(node);
 8101|      0|        } else {
 8102|      0|            publicType.qualifier.layoutHeapOffset = uint32_t(value);
 8103|      0|        }
 8104|      0|        return;
 8105|      0|    }
 8106|       |
 8107|    226|    switch (language) {
 8108|      0|    case EShLangTessControl:
  ------------------
  |  Branch (8108:5): [True: 0, False: 226]
  ------------------
 8109|      0|        if (id == "vertices") {
  ------------------
  |  Branch (8109:13): [True: 0, False: 0]
  ------------------
 8110|      0|            if (value == 0)
  ------------------
  |  Branch (8110:17): [True: 0, False: 0]
  ------------------
 8111|      0|                error(loc, "must be greater than 0", "vertices", "");
 8112|      0|            else
 8113|      0|                publicType.shaderQualifiers.vertices = value;
 8114|      0|            if (nonLiteral)
  ------------------
  |  Branch (8114:17): [True: 0, False: 0]
  ------------------
 8115|      0|                error(loc, "needs a literal integer", "vertices", "");
 8116|      0|            return;
 8117|      0|        }
 8118|      0|        break;
 8119|       |
 8120|      0|    case EShLangGeometry:
  ------------------
  |  Branch (8120:5): [True: 0, False: 226]
  ------------------
 8121|      0|        if (id == "invocations") {
  ------------------
  |  Branch (8121:13): [True: 0, False: 0]
  ------------------
 8122|      0|            profileRequires(loc, ECompatibilityProfile | ECoreProfile, 400,
 8123|      0|                Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5, "invocations");
 8124|       |
 8125|      0|            if (value == 0)
  ------------------
  |  Branch (8125:17): [True: 0, False: 0]
  ------------------
 8126|      0|                error(loc, "must be at least 1", "invocations", "");
 8127|      0|            else
 8128|      0|                publicType.shaderQualifiers.invocations = value;
 8129|      0|            if (nonLiteral)
  ------------------
  |  Branch (8129:17): [True: 0, False: 0]
  ------------------
 8130|      0|                error(loc, "needs a literal integer", "invocations", "");
 8131|      0|            return;
 8132|      0|        }
 8133|      0|        if (id == "max_vertices") {
  ------------------
  |  Branch (8133:13): [True: 0, False: 0]
  ------------------
 8134|      0|            publicType.shaderQualifiers.vertices = value;
 8135|      0|            if (value > resources.maxGeometryOutputVertices)
  ------------------
  |  Branch (8135:17): [True: 0, False: 0]
  ------------------
 8136|      0|                error(loc, "too large, must be less than gl_MaxGeometryOutputVertices", "max_vertices", "");
 8137|      0|            if (nonLiteral)
  ------------------
  |  Branch (8137:17): [True: 0, False: 0]
  ------------------
 8138|      0|                error(loc, "needs a literal integer", "max_vertices", "");
 8139|      0|            return;
 8140|      0|        }
 8141|      0|        if (id == "stream") {
  ------------------
  |  Branch (8141:13): [True: 0, False: 0]
  ------------------
 8142|      0|            requireProfile(loc, ~EEsProfile, "selecting output stream");
 8143|      0|            publicType.qualifier.layoutStream = value;
 8144|      0|            if (value > 0)
  ------------------
  |  Branch (8144:17): [True: 0, False: 0]
  ------------------
 8145|      0|                intermediate.setMultiStream();
 8146|      0|            if (nonLiteral)
  ------------------
  |  Branch (8146:17): [True: 0, False: 0]
  ------------------
 8147|      0|                error(loc, "needs a literal integer", "stream", "");
 8148|      0|            return;
 8149|      0|        }
 8150|      0|        break;
 8151|       |
 8152|    226|    case EShLangFragment:
  ------------------
  |  Branch (8152:5): [True: 226, False: 0]
  ------------------
 8153|    226|        if (id == "index") {
  ------------------
  |  Branch (8153:13): [True: 151, False: 75]
  ------------------
 8154|    151|            requireProfile(loc, ECompatibilityProfile | ECoreProfile | EEsProfile, "index layout qualifier on fragment output");
 8155|    151|            const char* exts[2] = { E_GL_ARB_separate_shader_objects, E_GL_ARB_explicit_attrib_location };
 8156|    151|            profileRequires(loc, ECompatibilityProfile | ECoreProfile, 330, 2, exts, "index layout qualifier on fragment output");
 8157|    151|            profileRequires(loc, EEsProfile ,310, E_GL_EXT_blend_func_extended, "index layout qualifier on fragment output");
 8158|       |            // "It is also a compile-time error if a fragment shader sets a layout index to less than 0 or greater than 1."
 8159|    151|            if (value < 0 || value > 1) {
  ------------------
  |  Branch (8159:17): [True: 0, False: 151]
  |  Branch (8159:30): [True: 13, False: 138]
  ------------------
 8160|     13|                value = 0;
 8161|     13|                error(loc, "value must be 0 or 1", "index", "");
 8162|     13|            }
 8163|       |
 8164|    151|            publicType.qualifier.layoutIndex = value;
 8165|    151|            if (nonLiteral)
  ------------------
  |  Branch (8165:17): [True: 0, False: 151]
  ------------------
 8166|      0|                error(loc, "needs a literal integer", "index", "");
 8167|    151|            return;
 8168|    151|        }
 8169|     75|        break;
 8170|       |
 8171|     75|    case EShLangMesh:
  ------------------
  |  Branch (8171:5): [True: 0, False: 226]
  ------------------
 8172|      0|        if (id == "max_vertices") {
  ------------------
  |  Branch (8172:13): [True: 0, False: 0]
  ------------------
 8173|      0|            requireExtensions(loc, Num_AEP_mesh_shader, AEP_mesh_shader, "max_vertices");
 8174|      0|            publicType.shaderQualifiers.vertices = value;
 8175|      0|            int max = extensionTurnedOn(E_GL_EXT_mesh_shader) ? resources.maxMeshOutputVerticesEXT
  ------------------
  |  Branch (8175:23): [True: 0, False: 0]
  ------------------
 8176|      0|                                                              : resources.maxMeshOutputVerticesNV;
 8177|      0|            if (value > max) {
  ------------------
  |  Branch (8177:17): [True: 0, False: 0]
  ------------------
 8178|      0|                TString maxsErrtring = "too large, must be less than ";
 8179|      0|                maxsErrtring.append(extensionTurnedOn(E_GL_EXT_mesh_shader) ? "gl_MaxMeshOutputVerticesEXT"
  ------------------
  |  Branch (8179:37): [True: 0, False: 0]
  ------------------
 8180|      0|                                                                            : "gl_MaxMeshOutputVerticesNV");
 8181|      0|                error(loc, maxsErrtring.c_str(), "max_vertices", "");
 8182|      0|            }
 8183|      0|            if (nonLiteral)
  ------------------
  |  Branch (8183:17): [True: 0, False: 0]
  ------------------
 8184|      0|                error(loc, "needs a literal integer", "max_vertices", "");
 8185|      0|            return;
 8186|      0|        }
 8187|      0|        if (id == "max_primitives") {
  ------------------
  |  Branch (8187:13): [True: 0, False: 0]
  ------------------
 8188|      0|            requireExtensions(loc, Num_AEP_mesh_shader, AEP_mesh_shader, "max_primitives");
 8189|      0|            publicType.shaderQualifiers.primitives = value;
 8190|      0|            int max = extensionTurnedOn(E_GL_EXT_mesh_shader) ? resources.maxMeshOutputPrimitivesEXT
  ------------------
  |  Branch (8190:23): [True: 0, False: 0]
  ------------------
 8191|      0|                                                              : resources.maxMeshOutputPrimitivesNV;
 8192|      0|            if (value > max) {
  ------------------
  |  Branch (8192:17): [True: 0, False: 0]
  ------------------
 8193|      0|                TString maxsErrtring = "too large, must be less than ";
 8194|      0|                maxsErrtring.append(extensionTurnedOn(E_GL_EXT_mesh_shader) ? "gl_MaxMeshOutputPrimitivesEXT"
  ------------------
  |  Branch (8194:37): [True: 0, False: 0]
  ------------------
 8195|      0|                                                                            : "gl_MaxMeshOutputPrimitivesNV");
 8196|      0|                error(loc, maxsErrtring.c_str(), "max_primitives", "");
 8197|      0|            }
 8198|      0|            if (nonLiteral)
  ------------------
  |  Branch (8198:17): [True: 0, False: 0]
  ------------------
 8199|      0|                error(loc, "needs a literal integer", "max_primitives", "");
 8200|      0|            return;
 8201|      0|        }
 8202|      0|        [[fallthrough]];
 8203|       |
 8204|      0|    case EShLangTask:
  ------------------
  |  Branch (8204:5): [True: 0, False: 226]
  ------------------
 8205|       |        // Fall through
 8206|      0|    case EShLangCompute:
  ------------------
  |  Branch (8206:5): [True: 0, False: 226]
  ------------------
 8207|      0|        if (id.compare(0, 11, "local_size_") == 0) {
  ------------------
  |  Branch (8207:13): [True: 0, False: 0]
  ------------------
 8208|      0|            if (language == EShLangMesh || language == EShLangTask) {
  ------------------
  |  Branch (8208:17): [True: 0, False: 0]
  |  Branch (8208:44): [True: 0, False: 0]
  ------------------
 8209|      0|                requireExtensions(loc, Num_AEP_mesh_shader, AEP_mesh_shader, "gl_WorkGroupSize");
 8210|      0|            } else {
 8211|      0|                profileRequires(loc, EEsProfile, 310, nullptr, "gl_WorkGroupSize");
 8212|      0|                profileRequires(loc, ~EEsProfile, 430, E_GL_ARB_compute_shader, "gl_WorkGroupSize");
 8213|      0|            }
 8214|      0|            if (nonLiteral)
  ------------------
  |  Branch (8214:17): [True: 0, False: 0]
  ------------------
 8215|      0|                error(loc, "needs a literal integer", "local_size", "");
 8216|      0|            if (id.size() == 12 && value == 0) {
  ------------------
  |  Branch (8216:17): [True: 0, False: 0]
  |  Branch (8216:36): [True: 0, False: 0]
  ------------------
 8217|      0|                error(loc, "must be at least 1", id.c_str(), "");
 8218|      0|                return;
 8219|      0|            }
 8220|      0|            if (id == "local_size_x") {
  ------------------
  |  Branch (8220:17): [True: 0, False: 0]
  ------------------
 8221|      0|                publicType.shaderQualifiers.localSize[0] = value;
 8222|      0|                publicType.shaderQualifiers.localSizeNotDefault[0] = true;
 8223|      0|                return;
 8224|      0|            }
 8225|      0|            if (id == "local_size_y") {
  ------------------
  |  Branch (8225:17): [True: 0, False: 0]
  ------------------
 8226|      0|                publicType.shaderQualifiers.localSize[1] = value;
 8227|      0|                publicType.shaderQualifiers.localSizeNotDefault[1] = true;
 8228|      0|                return;
 8229|      0|            }
 8230|      0|            if (id == "local_size_z") {
  ------------------
  |  Branch (8230:17): [True: 0, False: 0]
  ------------------
 8231|      0|                publicType.shaderQualifiers.localSize[2] = value;
 8232|      0|                publicType.shaderQualifiers.localSizeNotDefault[2] = true;
 8233|      0|                return;
 8234|      0|            }
 8235|      0|            if (spvVersion.spv != 0) {
  ------------------
  |  Branch (8235:17): [True: 0, False: 0]
  ------------------
 8236|      0|                if (id == "local_size_x_id") {
  ------------------
  |  Branch (8236:21): [True: 0, False: 0]
  ------------------
 8237|      0|                    publicType.shaderQualifiers.localSizeSpecId[0] = value;
 8238|      0|                    return;
 8239|      0|                }
 8240|      0|                if (id == "local_size_y_id") {
  ------------------
  |  Branch (8240:21): [True: 0, False: 0]
  ------------------
 8241|      0|                    publicType.shaderQualifiers.localSizeSpecId[1] = value;
 8242|      0|                    return;
 8243|      0|                }
 8244|      0|                if (id == "local_size_z_id") {
  ------------------
  |  Branch (8244:21): [True: 0, False: 0]
  ------------------
 8245|      0|                    publicType.shaderQualifiers.localSizeSpecId[2] = value;
 8246|      0|                    return;
 8247|      0|                }
 8248|      0|            }
 8249|      0|        }
 8250|      0|        if (id.compare(0, 18, "shading_rate_xqcom") == 0 ||
  ------------------
  |  Branch (8250:13): [True: 0, False: 0]
  ------------------
 8251|      0|            id.compare(0, 18, "shading_rate_yqcom") == 0 ||
  ------------------
  |  Branch (8251:13): [True: 0, False: 0]
  ------------------
 8252|      0|            id.compare(0, 18, "shading_rate_zqcom") == 0) {
  ------------------
  |  Branch (8252:13): [True: 0, False: 0]
  ------------------
 8253|      0|            requireExtensions(loc, 1, &E_GL_QCOM_tile_shading, "tile shading QCOM");
 8254|      0|            if (nonLiteral)
  ------------------
  |  Branch (8254:17): [True: 0, False: 0]
  ------------------
 8255|      0|                error(loc, "needs a literal integer", "shading_rate_*QCOM", "");
 8256|      0|            if (id.size() == 18 && value == 0) {
  ------------------
  |  Branch (8256:17): [True: 0, False: 0]
  |  Branch (8256:36): [True: 0, False: 0]
  ------------------
 8257|      0|                error(loc, "must be at least 1", id.c_str(), "");
 8258|      0|                return;
 8259|      0|            }
 8260|      0|            if (id == "shading_rate_xqcom") {
  ------------------
  |  Branch (8260:17): [True: 0, False: 0]
  ------------------
 8261|      0|                publicType.shaderQualifiers.layoutTileShadingRateQCOM[0] = value;
 8262|      0|                publicType.shaderQualifiers.layoutTileShadingRateQCOMNotDefault[0] = true;
 8263|      0|                if (! IsPow2(value))
  ------------------
  |  Branch (8263:21): [True: 0, False: 0]
  ------------------
 8264|      0|                    error(loc, "must be a power of 2", id.c_str(), "");
 8265|      0|                return;
 8266|      0|            }
 8267|      0|            if (id == "shading_rate_yqcom") {
  ------------------
  |  Branch (8267:17): [True: 0, False: 0]
  ------------------
 8268|      0|                publicType.shaderQualifiers.layoutTileShadingRateQCOM[1] = value;
 8269|      0|                publicType.shaderQualifiers.layoutTileShadingRateQCOMNotDefault[1] = true;
 8270|      0|                if (! IsPow2(value))
  ------------------
  |  Branch (8270:21): [True: 0, False: 0]
  ------------------
 8271|      0|                    error(loc, "must be a power of 2", id.c_str(), "");
 8272|      0|                return;
 8273|      0|            }
 8274|      0|            if (id == "shading_rate_zqcom") {
  ------------------
  |  Branch (8274:17): [True: 0, False: 0]
  ------------------
 8275|      0|                publicType.shaderQualifiers.layoutTileShadingRateQCOM[2] = value;
 8276|      0|                publicType.shaderQualifiers.layoutTileShadingRateQCOMNotDefault[2] = true;
 8277|      0|                if (value <= 0)
  ------------------
  |  Branch (8277:21): [True: 0, False: 0]
  ------------------
 8278|      0|                    error(loc, "must be a positive value", id.c_str(), "");
 8279|      0|                return;
 8280|      0|            }
 8281|      0|        }
 8282|      0|        break;
 8283|       |
 8284|      0|    default:
  ------------------
  |  Branch (8284:5): [True: 0, False: 226]
  ------------------
 8285|      0|        break;
 8286|    226|    }
 8287|       |
 8288|     75|    error(loc, "there is no such layout identifier for this stage taking an assigned value", id.c_str(), "");
 8289|     75|}
_ZN7glslang13TParseContext22checkRepeatedLocalSizeERKNS_10TSourceLocERKNS_17TShaderQualifiersES6_:
 8293|  2.48k|{
 8294|  2.48k|    static const char* const localSizeNames[3] = { "local_size_x", "local_size_y", "local_size_z" };
 8295|  2.48k|    static const char* const localSizeIdNames[3] = { "local_size_x_id", "local_size_y_id", "local_size_z_id" };
 8296|  9.94k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (8296:21): [True: 7.45k, False: 2.48k]
  ------------------
 8297|  7.45k|        if (dst.localSizeNotDefault[i] && src.localSizeNotDefault[i])
  ------------------
  |  Branch (8297:13): [True: 0, False: 7.45k]
  |  Branch (8297:43): [True: 0, False: 0]
  ------------------
 8298|      0|            warn(loc, "repeated layout qualifier, only the last occurrence is used", localSizeNames[i], "");
 8299|  7.45k|        if (dst.localSizeSpecId[i] != TQualifier::layoutNotSet && src.localSizeSpecId[i] != TQualifier::layoutNotSet)
  ------------------
  |  Branch (8299:13): [True: 0, False: 7.45k]
  |  Branch (8299:67): [True: 0, False: 0]
  ------------------
 8300|      0|            warn(loc, "repeated layout qualifier, only the last occurrence is used", localSizeIdNames[i], "");
 8301|  7.45k|    }
 8302|  2.48k|}
_ZN7glslang13TParseContext27mergeObjectLayoutQualifiersERNS_10TQualifierERKS1_b:
 8319|  4.68M|{
 8320|  4.68M|    if (src.hasMatrix())
  ------------------
  |  Branch (8320:9): [True: 1.53k, False: 4.68M]
  ------------------
 8321|  1.53k|        dst.layoutMatrix = src.layoutMatrix;
 8322|  4.68M|    if (src.hasPacking())
  ------------------
  |  Branch (8322:9): [True: 2.12k, False: 4.68M]
  ------------------
 8323|  2.12k|        dst.layoutPacking = src.layoutPacking;
 8324|       |
 8325|  4.68M|    if (src.hasStream())
  ------------------
  |  Branch (8325:9): [True: 904, False: 4.68M]
  ------------------
 8326|    904|        dst.layoutStream = src.layoutStream;
 8327|  4.68M|    if (src.hasFormat())
  ------------------
  |  Branch (8327:9): [True: 2.89k, False: 4.67M]
  ------------------
 8328|  2.89k|        dst.layoutFormat = src.layoutFormat;
 8329|  4.68M|    if (src.hasXfbBuffer())
  ------------------
  |  Branch (8329:9): [True: 3.61k, False: 4.67M]
  ------------------
 8330|  3.61k|        dst.layoutXfbBuffer = src.layoutXfbBuffer;
 8331|  4.68M|    if (src.hasBufferReferenceAlign())
  ------------------
  |  Branch (8331:9): [True: 24, False: 4.68M]
  ------------------
 8332|     24|        dst.layoutBufferReferenceAlign = src.layoutBufferReferenceAlign;
 8333|       |
 8334|  4.68M|    if (src.hasAlign())
  ------------------
  |  Branch (8334:9): [True: 353, False: 4.68M]
  ------------------
 8335|    353|        dst.layoutAlign = src.layoutAlign;
 8336|       |
 8337|  4.68M|    if (! inheritOnly) {
  ------------------
  |  Branch (8337:9): [True: 4.66M, False: 16.0k]
  ------------------
 8338|  4.66M|        if (src.hasLocation())
  ------------------
  |  Branch (8338:13): [True: 2.34k, False: 4.66M]
  ------------------
 8339|  2.34k|            dst.layoutLocation = src.layoutLocation;
 8340|  4.66M|        if (src.hasOffset())
  ------------------
  |  Branch (8340:13): [True: 303, False: 4.66M]
  ------------------
 8341|    303|            dst.layoutOffset = src.layoutOffset;
 8342|  4.66M|        if (src.hasSet())
  ------------------
  |  Branch (8342:13): [True: 317, False: 4.66M]
  ------------------
 8343|    317|            dst.layoutSet = src.layoutSet;
 8344|  4.66M|        if (src.hasBinding())
  ------------------
  |  Branch (8344:13): [True: 2.86k, False: 4.66M]
  ------------------
 8345|  2.86k|            dst.layoutBinding = src.layoutBinding;
 8346|       |
 8347|  4.66M|        if (src.hasSpecConstantId())
  ------------------
  |  Branch (8347:13): [True: 336, False: 4.66M]
  ------------------
 8348|    336|            dst.layoutSpecConstantId = src.layoutSpecConstantId;
 8349|       |
 8350|  4.66M|        if (src.hasComponent())
  ------------------
  |  Branch (8350:13): [True: 651, False: 4.66M]
  ------------------
 8351|    651|            dst.layoutComponent = src.layoutComponent;
 8352|  4.66M|        if (src.hasIndex())
  ------------------
  |  Branch (8352:13): [True: 242, False: 4.66M]
  ------------------
 8353|    242|            dst.layoutIndex = src.layoutIndex;
 8354|  4.66M|        if (src.hasXfbStride())
  ------------------
  |  Branch (8354:13): [True: 0, False: 4.66M]
  ------------------
 8355|      0|            dst.layoutXfbStride = src.layoutXfbStride;
 8356|  4.66M|        if (src.hasXfbOffset())
  ------------------
  |  Branch (8356:13): [True: 0, False: 4.66M]
  ------------------
 8357|      0|            dst.layoutXfbOffset = src.layoutXfbOffset;
 8358|  4.66M|        if (src.hasAttachment())
  ------------------
  |  Branch (8358:13): [True: 50, False: 4.66M]
  ------------------
 8359|     50|            dst.layoutAttachment = src.layoutAttachment;
 8360|  4.66M|        if (src.layoutDescriptorHeap)
  ------------------
  |  Branch (8360:13): [True: 0, False: 4.66M]
  ------------------
 8361|      0|            dst.layoutDescriptorHeap = true;
 8362|  4.66M|        if (src.descriptorHeapDescriptorNode)
  ------------------
  |  Branch (8362:13): [True: 0, False: 4.66M]
  ------------------
 8363|      0|            dst.descriptorHeapDescriptorNode = true;
 8364|  4.66M|        if (src.layoutDescriptorStride != TQualifier::layoutDescriptorStrideEnd)
  ------------------
  |  Branch (8364:13): [True: 0, False: 4.66M]
  ------------------
 8365|      0|            dst.layoutDescriptorStride = src.layoutDescriptorStride;
 8366|  4.66M|        if (src.layoutDescriptorSize != TQualifier::layoutDescriptorSizeEnd)
  ------------------
  |  Branch (8366:13): [True: 0, False: 4.66M]
  ------------------
 8367|      0|            dst.layoutDescriptorSize = src.layoutDescriptorSize;
 8368|  4.66M|        if (src.layoutHeapOffset != 0)
  ------------------
  |  Branch (8368:13): [True: 0, False: 4.66M]
  ------------------
 8369|      0|            dst.layoutHeapOffset = src.layoutHeapOffset;
 8370|  4.66M|        if (src.layoutHeapOffsetNode != nullptr)
  ------------------
  |  Branch (8370:13): [True: 0, False: 4.66M]
  ------------------
 8371|      0|            dst.layoutHeapOffsetNode = src.layoutHeapOffsetNode;
 8372|  4.66M|        if (src.layoutPushConstant)
  ------------------
  |  Branch (8372:13): [True: 36, False: 4.66M]
  ------------------
 8373|     36|            dst.layoutPushConstant = true;
 8374|       |
 8375|  4.66M|        if (src.layoutBufferReference)
  ------------------
  |  Branch (8375:13): [True: 0, False: 4.66M]
  ------------------
 8376|      0|            dst.layoutBufferReference = true;
 8377|  4.66M|        if (src.layoutDescriptorBufferType)
  ------------------
  |  Branch (8377:13): [True: 0, False: 4.66M]
  ------------------
 8378|      0|            dst.layoutDescriptorBufferType = true;
 8379|       |
 8380|  4.66M|        if (src.layoutPassthrough)
  ------------------
  |  Branch (8380:13): [True: 0, False: 4.66M]
  ------------------
 8381|      0|            dst.layoutPassthrough = true;
 8382|  4.66M|        if (src.layoutViewportRelative)
  ------------------
  |  Branch (8382:13): [True: 0, False: 4.66M]
  ------------------
 8383|      0|            dst.layoutViewportRelative = true;
 8384|  4.66M|        if (src.layoutSecondaryViewportRelativeOffset != -2048)
  ------------------
  |  Branch (8384:13): [True: 0, False: 4.66M]
  ------------------
 8385|      0|            dst.layoutSecondaryViewportRelativeOffset = src.layoutSecondaryViewportRelativeOffset;
 8386|  4.66M|        if (src.layoutShaderRecord)
  ------------------
  |  Branch (8386:13): [True: 0, False: 4.66M]
  ------------------
 8387|      0|            dst.layoutShaderRecord = true;
 8388|  4.66M|        if (src.layoutFullQuads)
  ------------------
  |  Branch (8388:13): [True: 0, False: 4.66M]
  ------------------
 8389|      0|            dst.layoutFullQuads = true;
 8390|  4.66M|        if (src.layoutQuadDeriv)
  ------------------
  |  Branch (8390:13): [True: 0, False: 4.66M]
  ------------------
 8391|      0|            dst.layoutQuadDeriv = true;
 8392|  4.66M|        if (src.layoutBindlessSampler)
  ------------------
  |  Branch (8392:13): [True: 7, False: 4.66M]
  ------------------
 8393|      7|            dst.layoutBindlessSampler = true;
 8394|  4.66M|        if (src.layoutBindlessImage)
  ------------------
  |  Branch (8394:13): [True: 0, False: 4.66M]
  ------------------
 8395|      0|            dst.layoutBindlessImage = true;
 8396|  4.66M|        if (src.pervertexNV)
  ------------------
  |  Branch (8396:13): [True: 0, False: 4.66M]
  ------------------
 8397|      0|            dst.pervertexNV = true;
 8398|  4.66M|        if (src.pervertexEXT)
  ------------------
  |  Branch (8398:13): [True: 0, False: 4.66M]
  ------------------
 8399|      0|            dst.pervertexEXT = true;
 8400|  4.66M|        if (src.layoutHitObjectShaderRecordNV)
  ------------------
  |  Branch (8400:13): [True: 0, False: 4.66M]
  ------------------
 8401|      0|            dst.layoutHitObjectShaderRecordNV = true;
 8402|  4.66M|        dst.layoutTileAttachmentQCOM |= src.layoutTileAttachmentQCOM;
 8403|  4.66M|        if (src.layoutHitObjectShaderRecordEXT)
  ------------------
  |  Branch (8403:13): [True: 0, False: 4.66M]
  ------------------
 8404|      0|            dst.layoutHitObjectShaderRecordEXT = true;
 8405|  4.66M|        if (src.hasBank())
  ------------------
  |  Branch (8405:13): [True: 0, False: 4.66M]
  ------------------
 8406|      0|            dst.layoutBank = src.layoutBank;
 8407|  4.66M|        if (src.hasMemberOffset())
  ------------------
  |  Branch (8407:13): [True: 0, False: 4.66M]
  ------------------
 8408|      0|            dst.layoutMemberOffset = src.layoutMemberOffset;
 8409|  4.66M|    }
 8410|  4.68M|}
_ZN7glslang13TParseContext17layoutObjectCheckERKNS_10TSourceLocERKNS_7TSymbolE:
 8414|   674k|{
 8415|   674k|    const TType& type = symbol.getType();
 8416|   674k|    const TQualifier& qualifier = type.getQualifier();
 8417|       |
 8418|       |    // first, cross check WRT to just the type
 8419|   674k|    layoutTypeCheck(loc, type);
 8420|       |
 8421|       |    // now, any remaining error checking based on the object itself
 8422|       |
 8423|   674k|    if (qualifier.hasAnyLocation()) {
  ------------------
  |  Branch (8423:9): [True: 1.53k, False: 673k]
  ------------------
 8424|  1.53k|        switch (qualifier.storage) {
 8425|     79|        case EvqUniform:
  ------------------
  |  Branch (8425:9): [True: 79, False: 1.45k]
  ------------------
 8426|     79|        case EvqBuffer:
  ------------------
  |  Branch (8426:9): [True: 0, False: 1.53k]
  ------------------
 8427|     79|            if (symbol.getAsVariable() == nullptr)
  ------------------
  |  Branch (8427:17): [True: 0, False: 79]
  ------------------
 8428|      0|                error(loc, "can only be used on variable declaration", "location", "");
 8429|     79|            break;
 8430|  1.45k|        default:
  ------------------
  |  Branch (8430:9): [True: 1.45k, False: 79]
  ------------------
 8431|  1.45k|            break;
 8432|  1.53k|        }
 8433|  1.53k|    }
 8434|       |
 8435|       |    // user-variable location check, which are required for SPIR-V in/out:
 8436|       |    //  - variables have it directly,
 8437|       |    //  - blocks have it on each member (already enforced), so check first one
 8438|   674k|    if (spvVersion.spv > 0 && !parsingBuiltins && qualifier.builtIn == EbvNone &&
  ------------------
  |  Branch (8438:9): [True: 674k, False: 0]
  |  Branch (8438:31): [True: 127k, False: 547k]
  |  Branch (8438:51): [True: 126k, False: 329]
  ------------------
 8439|   126k|        !qualifier.hasLocation() && !intermediate.getAutoMapLocations()) {
  ------------------
  |  Branch (8439:9): [True: 125k, False: 1.51k]
  |  Branch (8439:37): [True: 125k, False: 0]
  ------------------
 8440|       |
 8441|   125k|        switch (qualifier.storage) {
 8442|  3.95k|        case EvqVaryingIn:
  ------------------
  |  Branch (8442:9): [True: 3.95k, False: 121k]
  ------------------
 8443|  5.48k|        case EvqVaryingOut:
  ------------------
  |  Branch (8443:9): [True: 1.52k, False: 123k]
  ------------------
 8444|  5.48k|            if (!type.getQualifier().isTaskMemory() && !type.getQualifier().hasSpirvDecorate() &&
  ------------------
  |  Branch (8444:17): [True: 5.48k, False: 0]
  |  Branch (8444:56): [True: 5.48k, False: 0]
  ------------------
 8445|  5.48k|                (type.getBasicType() != EbtBlock ||
  ------------------
  |  Branch (8445:18): [True: 4.93k, False: 546]
  ------------------
 8446|    546|                 (type.getStruct()->size() > 0 &&
  ------------------
  |  Branch (8446:19): [True: 546, False: 0]
  ------------------
 8447|    546|                  !(*type.getStruct())[0].type->getQualifier().hasLocation() &&
  ------------------
  |  Branch (8447:19): [True: 395, False: 151]
  ------------------
 8448|    395|                   (*type.getStruct())[0].type->getQualifier().builtIn == EbvNone)))
  ------------------
  |  Branch (8448:20): [True: 372, False: 23]
  ------------------
 8449|  5.30k|                error(loc, "SPIR-V requires location for user input/output", "location", "");
 8450|  5.48k|            break;
 8451|   119k|        default:
  ------------------
  |  Branch (8451:9): [True: 119k, False: 5.48k]
  ------------------
 8452|   119k|            break;
 8453|   125k|        }
 8454|   125k|    }
 8455|       |
 8456|       |    // Check packing and matrix
 8457|   674k|    if (qualifier.hasUniformLayout()) {
  ------------------
  |  Branch (8457:9): [True: 3.72k, False: 671k]
  ------------------
 8458|  3.72k|        switch (qualifier.storage) {
 8459|  3.23k|        case EvqUniform:
  ------------------
  |  Branch (8459:9): [True: 3.23k, False: 485]
  ------------------
 8460|  3.61k|        case EvqBuffer:
  ------------------
  |  Branch (8460:9): [True: 380, False: 3.34k]
  ------------------
 8461|  3.61k|            if (type.getBasicType() != EbtBlock) {
  ------------------
  |  Branch (8461:17): [True: 2.18k, False: 1.43k]
  ------------------
 8462|  2.18k|                if (qualifier.hasMatrix())
  ------------------
  |  Branch (8462:21): [True: 0, False: 2.18k]
  ------------------
 8463|      0|                    error(loc, "cannot specify matrix layout on a variable declaration", "layout", "");
 8464|  2.18k|                if (qualifier.hasPacking())
  ------------------
  |  Branch (8464:21): [True: 13, False: 2.17k]
  ------------------
 8465|     13|                    error(loc, "cannot specify packing on a variable declaration", "layout", "");
 8466|       |                // "The offset qualifier can only be used on block members of blocks..."
 8467|  2.18k|                if (qualifier.hasOffset() && !type.isAtomic())
  ------------------
  |  Branch (8467:21): [True: 12, False: 2.17k]
  |  Branch (8467:46): [True: 12, False: 0]
  ------------------
 8468|     12|                    error(loc, "cannot specify on a variable declaration", "offset", "");
 8469|       |                // "The align qualifier can only be used on blocks or block members..."
 8470|  2.18k|                if (qualifier.hasAlign())
  ------------------
  |  Branch (8470:21): [True: 12, False: 2.17k]
  ------------------
 8471|     12|                    error(loc, "cannot specify on a variable declaration", "align", "");
 8472|  2.18k|                if (qualifier.isPushConstant())
  ------------------
  |  Branch (8472:21): [True: 0, False: 2.18k]
  ------------------
 8473|      0|                    error(loc, "can only specify on a uniform block", "push_constant", "");
 8474|  2.18k|                if (qualifier.isShaderRecord())
  ------------------
  |  Branch (8474:21): [True: 0, False: 2.18k]
  ------------------
 8475|      0|                    error(loc, "can only specify on a buffer block", "shaderRecordNV", "");
 8476|  2.18k|                if (qualifier.hasLocation() && type.isAtomic())
  ------------------
  |  Branch (8476:21): [True: 0, False: 2.18k]
  |  Branch (8476:48): [True: 0, False: 0]
  ------------------
 8477|      0|                    error(loc, "cannot specify on atomic counter", "location", "");
 8478|  2.18k|            }
 8479|  3.61k|            break;
 8480|    105|        default:
  ------------------
  |  Branch (8480:9): [True: 105, False: 3.61k]
  ------------------
 8481|       |            // these were already filtered by layoutTypeCheck() (or its callees)
 8482|    105|            break;
 8483|  3.72k|        }
 8484|  3.72k|    }
 8485|       |
 8486|       |    // Check that an in/out variable or block doesn't contain a boolean member
 8487|       |    // Don't enforce if redeclaring a builtin, which are allowed to contain bool
 8488|   674k|    if (!parsingBuiltins && type.containsBasicType(EbtBool) && !builtInName(symbol.getName())) {
  ------------------
  |  Branch (8488:9): [True: 127k, False: 547k]
  |  Branch (8488:29): [True: 7.40k, False: 119k]
  |  Branch (8488:64): [True: 7.40k, False: 0]
  ------------------
 8489|  7.40k|        switch(qualifier.storage) {
 8490|     97|        case EvqVaryingIn:
  ------------------
  |  Branch (8490:9): [True: 97, False: 7.31k]
  ------------------
 8491|    178|        case EvqVaryingOut:
  ------------------
  |  Branch (8491:9): [True: 81, False: 7.32k]
  ------------------
 8492|    178|        {
 8493|    178|            const char *reason = type.getBasicType() == EbtBool ? "cannot be bool" : "cannot contain bool";
  ------------------
  |  Branch (8493:34): [True: 161, False: 17]
  ------------------
 8494|    178|            error(loc, reason, GetStorageQualifierString(qualifier.storage), "");
 8495|    178|            break;
 8496|     97|        }
 8497|  7.22k|        default:
  ------------------
  |  Branch (8497:9): [True: 7.22k, False: 178]
  ------------------
 8498|  7.22k|            break;
 8499|  7.40k|        }
 8500|  7.40k|    }
 8501|   674k|}
_ZN7glslang13TParseContext30layoutMemberLocationArrayCheckERKNS_10TSourceLocEbPNS_11TArraySizesE:
 8512|  8.01k|{
 8513|  8.01k|    if (memberWithLocation && arraySizes != nullptr) {
  ------------------
  |  Branch (8513:9): [True: 173, False: 7.83k]
  |  Branch (8513:31): [True: 0, False: 173]
  ------------------
 8514|      0|        if (arraySizes->getNumDims() > (currentBlockQualifier.isArrayedIo(language) ? 1 : 0))
  ------------------
  |  Branch (8514:13): [True: 0, False: 0]
  |  Branch (8514:41): [True: 0, False: 0]
  ------------------
 8515|      0|            error(loc, "cannot use in a block array where new locations are needed for each block element",
 8516|      0|                       "location", "");
 8517|      0|    }
 8518|  8.01k|}
_ZN7glslang13TParseContext15layoutTypeCheckERKNS_10TSourceLocERKNS_5TTypeE:
 8522|   708k|{
 8523|   708k|    const TQualifier& qualifier = type.getQualifier();
 8524|       |
 8525|       |    // first, intra-layout qualifier-only error checking
 8526|   708k|    layoutQualifierCheck(loc, qualifier);
 8527|       |
 8528|       |    // now, error checking combining type and qualifier
 8529|       |
 8530|   708k|    if (qualifier.hasAnyLocation()) {
  ------------------
  |  Branch (8530:9): [True: 2.09k, False: 706k]
  ------------------
 8531|  2.09k|        if (qualifier.hasLocation()) {
  ------------------
  |  Branch (8531:13): [True: 2.07k, False: 19]
  ------------------
 8532|  2.07k|            if (qualifier.storage == EvqVaryingOut && language == EShLangFragment) {
  ------------------
  |  Branch (8532:17): [True: 413, False: 1.66k]
  |  Branch (8532:55): [True: 413, False: 0]
  ------------------
 8533|    413|                if (qualifier.layoutLocation >= (unsigned int)resources.maxDrawBuffers)
  ------------------
  |  Branch (8533:21): [True: 274, False: 139]
  ------------------
 8534|    274|                    error(loc, "too large for fragment output", "location", "");
 8535|    413|            }
 8536|  2.07k|        }
 8537|  2.09k|        if (qualifier.hasComponent()) {
  ------------------
  |  Branch (8537:13): [True: 326, False: 1.76k]
  ------------------
 8538|       |            // "It is a compile-time error if this sequence of components gets larger than 3."
 8539|    326|            if (qualifier.layoutComponent + type.getVectorSize() * (type.getBasicType() == EbtDouble ? 2 : 1) > 4)
  ------------------
  |  Branch (8539:17): [True: 40, False: 286]
  |  Branch (8539:69): [True: 0, False: 326]
  ------------------
 8540|     40|                error(loc, "type overflows the available 4 components", "component", "");
 8541|       |
 8542|       |            // "It is a compile-time error to apply the component qualifier to a matrix, a structure, a block, or an array containing any of these."
 8543|    326|            if (type.isMatrix() || type.getBasicType() == EbtBlock || type.getBasicType() == EbtStruct)
  ------------------
  |  Branch (8543:17): [True: 0, False: 326]
  |  Branch (8543:36): [True: 1, False: 325]
  |  Branch (8543:71): [True: 0, False: 325]
  ------------------
 8544|      1|                error(loc, "cannot apply to a matrix, structure, or block", "component", "");
 8545|       |
 8546|       |            // " It is a compile-time error to use component 1 or 3 as the beginning of a double or dvec2."
 8547|    326|            if (type.getBasicType() == EbtDouble)
  ------------------
  |  Branch (8547:17): [True: 0, False: 326]
  ------------------
 8548|      0|                if (qualifier.layoutComponent & 1)
  ------------------
  |  Branch (8548:21): [True: 0, False: 0]
  ------------------
 8549|      0|                    error(loc, "doubles cannot start on an odd-numbered component", "component", "");
 8550|    326|        }
 8551|       |
 8552|  2.09k|        switch (qualifier.storage) {
 8553|  1.53k|        case EvqVaryingIn:
  ------------------
  |  Branch (8553:9): [True: 1.53k, False: 557]
  ------------------
 8554|  1.96k|        case EvqVaryingOut:
  ------------------
  |  Branch (8554:9): [True: 430, False: 1.66k]
  ------------------
 8555|  1.96k|            if (type.getBasicType() == EbtBlock && spvVersion.spv == 0)
  ------------------
  |  Branch (8555:17): [True: 13, False: 1.95k]
  |  Branch (8555:52): [True: 0, False: 13]
  ------------------
 8556|      0|                profileRequires(loc, ECoreProfile | ECompatibilityProfile, 440, E_GL_ARB_enhanced_layouts, "location qualifier on in/out block");
 8557|  1.96k|            if (type.getQualifier().isTaskMemory())
  ------------------
  |  Branch (8557:17): [True: 0, False: 1.96k]
  ------------------
 8558|      0|                error(loc, "cannot apply to taskNV in/out blocks", "location", "");
 8559|  1.96k|            break;
 8560|    121|        case EvqUniform:
  ------------------
  |  Branch (8560:9): [True: 121, False: 1.97k]
  ------------------
 8561|    121|        case EvqBuffer:
  ------------------
  |  Branch (8561:9): [True: 0, False: 2.09k]
  ------------------
 8562|    121|            if (type.getBasicType() == EbtBlock)
  ------------------
  |  Branch (8562:17): [True: 48, False: 73]
  ------------------
 8563|     48|                error(loc, "cannot apply to uniform or buffer block", "location", "");
 8564|     73|            else if (type.getBasicType() == EbtSampler && type.getSampler().isAttachmentEXT())
  ------------------
  |  Branch (8564:22): [True: 0, False: 73]
  |  Branch (8564:59): [True: 0, False: 0]
  ------------------
 8565|      0|                error(loc, "only applies to", "location", "%s with storage tileImageEXT", type.getBasicTypeString().c_str());
 8566|    121|            break;
 8567|      0|        case EvqtaskPayloadSharedEXT:
  ------------------
  |  Branch (8567:9): [True: 0, False: 2.09k]
  ------------------
 8568|      0|            error(loc, "cannot apply to taskPayloadSharedEXT", "location", "");
 8569|      0|            break;
 8570|      0|        case EvqPayload:
  ------------------
  |  Branch (8570:9): [True: 0, False: 2.09k]
  ------------------
 8571|      0|        case EvqPayloadIn:
  ------------------
  |  Branch (8571:9): [True: 0, False: 2.09k]
  ------------------
 8572|      0|        case EvqHitAttr:
  ------------------
  |  Branch (8572:9): [True: 0, False: 2.09k]
  ------------------
 8573|      0|        case EvqCallableData:
  ------------------
  |  Branch (8573:9): [True: 0, False: 2.09k]
  ------------------
 8574|      0|        case EvqCallableDataIn:
  ------------------
  |  Branch (8574:9): [True: 0, False: 2.09k]
  ------------------
 8575|      0|        case EvqHitObjectAttrNV:
  ------------------
  |  Branch (8575:9): [True: 0, False: 2.09k]
  ------------------
 8576|      0|        case EvqHitObjectAttrEXT:
  ------------------
  |  Branch (8576:9): [True: 0, False: 2.09k]
  ------------------
 8577|      0|        case EvqSpirvStorageClass:
  ------------------
  |  Branch (8577:9): [True: 0, False: 2.09k]
  ------------------
 8578|      0|            break;
 8579|      0|        case EvqTileImageEXT:
  ------------------
  |  Branch (8579:9): [True: 0, False: 2.09k]
  ------------------
 8580|      0|            break;
 8581|      6|        default:
  ------------------
  |  Branch (8581:9): [True: 6, False: 2.08k]
  ------------------
 8582|      6|            error(loc, "can only apply to uniform, buffer, in, or out storage qualifiers", "location", "");
 8583|      6|            break;
 8584|  2.09k|        }
 8585|       |
 8586|  2.09k|        bool typeCollision;
 8587|  2.09k|        int repeated = intermediate.addUsedLocation(qualifier, type, typeCollision);
 8588|  2.09k|        if (repeated >= 0 && ! typeCollision)
  ------------------
  |  Branch (8588:13): [True: 420, False: 1.67k]
  |  Branch (8588:30): [True: 379, False: 41]
  ------------------
 8589|    379|            error(loc, "overlapping use of location", "location", "%d", repeated);
 8590|       |        // When location aliasing, the aliases sharing the location must have the same underlying numerical type and bit width(
 8591|       |        // floating - point or integer, 32 - bit versus 64 - bit,etc.)
 8592|  2.09k|        if (typeCollision && (qualifier.isPipeInput() || qualifier.isPipeOutput() || qualifier.storage == EvqTileImageEXT))
  ------------------
  |  Branch (8592:13): [True: 41, False: 2.05k]
  |  Branch (8592:31): [True: 0, False: 41]
  |  Branch (8592:58): [True: 41, False: 0]
  |  Branch (8592:86): [True: 0, False: 0]
  ------------------
 8593|     41|            error(loc, "the aliases sharing the location", "location", "%d must be the same basic type and interpolation qualification", repeated);
 8594|  2.09k|    }
 8595|       |
 8596|   708k|    if (qualifier.hasXfbOffset() && qualifier.hasXfbBuffer()) {
  ------------------
  |  Branch (8596:9): [True: 0, False: 708k]
  |  Branch (8596:37): [True: 0, False: 0]
  ------------------
 8597|      0|        if (type.isUnsizedArray()) {
  ------------------
  |  Branch (8597:13): [True: 0, False: 0]
  ------------------
 8598|      0|            error(loc, "unsized array", "xfb_offset", "in buffer %d", qualifier.layoutXfbBuffer);
 8599|      0|        } else {
 8600|      0|            int repeated = intermediate.addXfbBufferOffset(type);
 8601|      0|            if (repeated >= 0)
  ------------------
  |  Branch (8601:17): [True: 0, False: 0]
  ------------------
 8602|      0|                error(loc, "overlapping offsets at", "xfb_offset", "offset %d in buffer %d", repeated, qualifier.layoutXfbBuffer);
 8603|      0|        }
 8604|       |
 8605|       |        // "The offset must be a multiple of the size of the first component of the first
 8606|       |        // qualified variable or block member, or a compile-time error results. Further, if applied to an aggregate
 8607|       |        // containing a double or 64-bit integer, the offset must also be a multiple of 8..."
 8608|      0|        if ((type.containsBasicType(EbtDouble) || type.containsBasicType(EbtInt64) || type.containsBasicType(EbtUint64)) &&
  ------------------
  |  Branch (8608:14): [True: 0, False: 0]
  |  Branch (8608:51): [True: 0, False: 0]
  |  Branch (8608:87): [True: 0, False: 0]
  ------------------
 8609|      0|            ! IsMultipleOfPow2(qualifier.layoutXfbOffset, 8))
  ------------------
  |  Branch (8609:13): [True: 0, False: 0]
  ------------------
 8610|      0|            error(loc, "type contains double or 64-bit integer; xfb_offset must be a multiple of 8", "xfb_offset", "");
 8611|      0|        else if ((type.containsBasicType(EbtBool) || type.containsBasicType(EbtFloat) ||
  ------------------
  |  Branch (8611:19): [True: 0, False: 0]
  |  Branch (8611:54): [True: 0, False: 0]
  ------------------
 8612|      0|                  type.containsBasicType(EbtInt) || type.containsBasicType(EbtUint)) &&
  ------------------
  |  Branch (8612:19): [True: 0, False: 0]
  |  Branch (8612:53): [True: 0, False: 0]
  ------------------
 8613|      0|                 ! IsMultipleOfPow2(qualifier.layoutXfbOffset, 4))
  ------------------
  |  Branch (8613:18): [True: 0, False: 0]
  ------------------
 8614|      0|            error(loc, "must be a multiple of size of first component", "xfb_offset", "");
 8615|       |        // ..., if applied to an aggregate containing a half float or 16-bit integer, the offset must also be a multiple of 2..."
 8616|      0|        else if ((type.contains16BitFloat() || type.containsBasicType(EbtInt16) || type.containsBasicType(EbtUint16)) &&
  ------------------
  |  Branch (8616:19): [True: 0, False: 0]
  |  Branch (8616:48): [True: 0, False: 0]
  |  Branch (8616:84): [True: 0, False: 0]
  ------------------
 8617|      0|                 !IsMultipleOfPow2(qualifier.layoutXfbOffset, 2))
  ------------------
  |  Branch (8617:18): [True: 0, False: 0]
  ------------------
 8618|      0|            error(loc, "type contains half float or 16-bit integer; xfb_offset must be a multiple of 2", "xfb_offset", "");
 8619|      0|    }
 8620|   708k|    if (qualifier.hasXfbStride() && qualifier.hasXfbBuffer()) {
  ------------------
  |  Branch (8620:9): [True: 0, False: 708k]
  |  Branch (8620:37): [True: 0, False: 0]
  ------------------
 8621|      0|        if (! intermediate.setXfbBufferStride(qualifier.layoutXfbBuffer, qualifier.layoutXfbStride))
  ------------------
  |  Branch (8621:13): [True: 0, False: 0]
  ------------------
 8622|      0|            error(loc, "all stride settings must match for xfb buffer", "xfb_stride", "%d", qualifier.layoutXfbBuffer);
 8623|      0|    }
 8624|       |
 8625|   708k|    if (qualifier.hasBinding()) {
  ------------------
  |  Branch (8625:9): [True: 2.73k, False: 705k]
  ------------------
 8626|       |        // Binding checking, from the spec:
 8627|       |        //
 8628|       |        // "If the binding point for any uniform or shader storage block instance is less than zero, or greater than or
 8629|       |        // equal to the implementation-dependent maximum number of uniform buffer bindings, a compile-time
 8630|       |        // error will occur. When the binding identifier is used with a uniform or shader storage block instanced as
 8631|       |        // an array of size N, all elements of the array from binding through binding + N - 1 must be within this
 8632|       |        // range."
 8633|       |        //
 8634|  2.73k|        if (!type.isOpaque() && type.getBasicType() != EbtBlock && type.getBasicType() != EbtSpirvType)
  ------------------
  |  Branch (8634:13): [True: 586, False: 2.14k]
  |  Branch (8634:33): [True: 88, False: 498]
  |  Branch (8634:68): [True: 88, False: 0]
  ------------------
 8635|     88|            error(loc, "requires block, or sampler/image, or atomic-counter type", "binding", "");
 8636|  2.73k|        if (type.getBasicType() == EbtSampler) {
  ------------------
  |  Branch (8636:13): [True: 2.04k, False: 683]
  ------------------
 8637|  2.04k|            int lastBinding = qualifier.layoutBinding;
 8638|  2.04k|            if (type.isArray()) {
  ------------------
  |  Branch (8638:17): [True: 0, False: 2.04k]
  ------------------
 8639|      0|                if (spvVersion.vulkan == 0) {
  ------------------
  |  Branch (8639:21): [True: 0, False: 0]
  ------------------
 8640|      0|                    if (type.isSizedArray())
  ------------------
  |  Branch (8640:25): [True: 0, False: 0]
  ------------------
 8641|      0|                        lastBinding += (type.getCumulativeArraySize() - 1);
 8642|      0|                    else {
 8643|      0|                        warn(loc, "assuming binding count of one for compile-time checking of binding numbers for unsized array", "[]", "");
 8644|      0|                    }
 8645|      0|                }
 8646|      0|            }
 8647|  2.04k|            if (spvVersion.vulkan == 0 && lastBinding >= resources.maxCombinedTextureImageUnits)
  ------------------
  |  Branch (8647:17): [True: 0, False: 2.04k]
  |  Branch (8647:43): [True: 0, False: 0]
  ------------------
 8648|      0|                error(loc, "sampler binding not less than gl_MaxCombinedTextureImageUnits", "binding", type.isArray() ? "(using array)" : "");
  ------------------
  |  Branch (8648:104): [True: 0, False: 0]
  ------------------
 8649|  2.04k|        }
 8650|  2.73k|        if (type.isAtomic() && !spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (8650:13): [True: 76, False: 2.65k]
  |  Branch (8650:32): [True: 76, False: 0]
  ------------------
 8651|     76|            if (qualifier.layoutBinding >= resources.maxAtomicCounterBindings) {
  ------------------
  |  Branch (8651:17): [True: 0, False: 76]
  ------------------
 8652|      0|                error(loc, "atomic_uint binding is too large; see gl_MaxAtomicCounterBindings", "binding", "");
 8653|      0|                return;
 8654|      0|            }
 8655|     76|        }
 8656|   705k|    } else if (!intermediate.getAutoMapBindings()) {
  ------------------
  |  Branch (8656:16): [True: 705k, False: 0]
  ------------------
 8657|       |        // some types require bindings
 8658|       |
 8659|       |        // atomic_uint
 8660|   705k|        if (type.isAtomic())
  ------------------
  |  Branch (8660:13): [True: 0, False: 705k]
  ------------------
 8661|      0|            error(loc, "layout(binding=X) is required", "atomic_uint", "");
 8662|       |
 8663|       |        // SPIR-V
 8664|   705k|        if (spvVersion.spv > 0) {
  ------------------
  |  Branch (8664:13): [True: 705k, False: 0]
  ------------------
 8665|   705k|            if (qualifier.isUniformOrBuffer() && !intermediate.IsRequestedExtension(E_GL_EXT_descriptor_heap)) {
  ------------------
  |  Branch (8665:17): [True: 13.5k, False: 691k]
  |  Branch (8665:50): [True: 13.5k, False: 0]
  ------------------
 8666|  13.5k|                if (type.getBasicType() == EbtBlock && !qualifier.isPushConstant() &&
  ------------------
  |  Branch (8666:21): [True: 939, False: 12.6k]
  |  Branch (8666:56): [True: 897, False: 42]
  ------------------
 8667|    897|                       !qualifier.isShaderRecord() &&
  ------------------
  |  Branch (8667:24): [True: 897, False: 0]
  ------------------
 8668|    897|                       !qualifier.hasAttachment() &&
  ------------------
  |  Branch (8668:24): [True: 897, False: 0]
  ------------------
 8669|    897|                       !qualifier.hasBufferReference())
  ------------------
  |  Branch (8669:24): [True: 897, False: 0]
  ------------------
 8670|    897|                    error(loc, "uniform/buffer blocks require layout(binding=X)", "binding", "");
 8671|  12.6k|                else if (spvVersion.vulkan > 0 && type.getBasicType() == EbtSampler && !type.getSampler().isAttachmentEXT())
  ------------------
  |  Branch (8671:26): [True: 12.6k, False: 0]
  |  Branch (8671:51): [True: 4.85k, False: 7.81k]
  |  Branch (8671:88): [True: 4.85k, False: 0]
  ------------------
 8672|  4.85k|                    error(loc, "sampler/texture/image requires layout(binding=X)", "binding", "");
 8673|  13.5k|            }
 8674|   705k|        }
 8675|   705k|    }
 8676|       |
 8677|       |    // some things can't have arrays of arrays
 8678|   708k|    if (type.isArrayOfArrays()) {
  ------------------
  |  Branch (8678:9): [True: 1.78k, False: 706k]
  ------------------
 8679|  1.78k|        if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (8679:13): [True: 1.78k, False: 0]
  ------------------
 8680|  1.78k|            if (type.isOpaque() || (type.getQualifier().isUniformOrBuffer() && type.getBasicType() == EbtBlock))
  ------------------
  |  Branch (8680:17): [True: 0, False: 1.78k]
  |  Branch (8680:37): [True: 33, False: 1.75k]
  |  Branch (8680:80): [True: 11, False: 22]
  ------------------
 8681|     11|                warn(loc, "Generating SPIR-V array-of-arrays, but Vulkan only supports single array level for this resource", "[][]", "");
 8682|  1.78k|        }
 8683|  1.78k|    }
 8684|       |
 8685|       |    // "The offset qualifier can only be used on block members of blocks..."
 8686|   708k|    if (qualifier.hasOffset()) {
  ------------------
  |  Branch (8686:9): [True: 1.53k, False: 706k]
  ------------------
 8687|  1.53k|        if (type.getBasicType() == EbtBlock)
  ------------------
  |  Branch (8687:13): [True: 42, False: 1.49k]
  ------------------
 8688|     42|            error(loc, "only applies to block members, not blocks", "offset", "");
 8689|  1.53k|    }
 8690|       |
 8691|       |    // Image format
 8692|   708k|    if (qualifier.hasFormat()) {
  ------------------
  |  Branch (8692:9): [True: 1.46k, False: 706k]
  ------------------
 8693|  1.46k|        if (! type.isImage() && !intermediate.getBindlessImageMode())
  ------------------
  |  Branch (8693:13): [True: 1, False: 1.46k]
  |  Branch (8693:33): [True: 1, False: 0]
  ------------------
 8694|      1|            error(loc, "only apply to images", TQualifier::getLayoutFormatString(qualifier.getFormat()), "");
 8695|  1.46k|        else {
 8696|  1.46k|            if (type.getSampler().type == EbtFloat && qualifier.getFormat() > ElfFloatGuard)
  ------------------
  |  Branch (8696:17): [True: 791, False: 674]
  |  Branch (8696:55): [True: 0, False: 791]
  ------------------
 8697|      0|                error(loc, "does not apply to floating point images", TQualifier::getLayoutFormatString(qualifier.getFormat()), "");
 8698|  1.46k|            if (type.getSampler().type == EbtInt && (qualifier.getFormat() < ElfFloatGuard || qualifier.getFormat() > ElfIntGuard))
  ------------------
  |  Branch (8698:17): [True: 109, False: 1.35k]
  |  Branch (8698:54): [True: 0, False: 109]
  |  Branch (8698:95): [True: 0, False: 109]
  ------------------
 8699|      0|                error(loc, "does not apply to signed integer images", TQualifier::getLayoutFormatString(qualifier.getFormat()), "");
 8700|  1.46k|            if (type.getSampler().type == EbtUint && qualifier.getFormat() < ElfIntGuard)
  ------------------
  |  Branch (8700:17): [True: 104, False: 1.36k]
  |  Branch (8700:54): [True: 0, False: 104]
  ------------------
 8701|      0|                error(loc, "does not apply to unsigned integer images", TQualifier::getLayoutFormatString(qualifier.getFormat()), "");
 8702|       |
 8703|  1.46k|            if (isEsProfile()) {
  ------------------
  |  Branch (8703:17): [True: 317, False: 1.14k]
  ------------------
 8704|       |                // "Except for image variables qualified with the format qualifiers r32f, r32i, and r32ui, image variables must
 8705|       |                // specify either memory qualifier readonly or the memory qualifier writeonly."
 8706|    317|                if (! (qualifier.getFormat() == ElfR32f || qualifier.getFormat() == ElfR32i || qualifier.getFormat() == ElfR32ui)) {
  ------------------
  |  Branch (8706:24): [True: 50, False: 267]
  |  Branch (8706:60): [True: 50, False: 217]
  |  Branch (8706:96): [True: 51, False: 166]
  ------------------
 8707|    166|                    if (! qualifier.isReadOnly() && ! qualifier.isWriteOnly())
  ------------------
  |  Branch (8707:25): [True: 166, False: 0]
  |  Branch (8707:53): [True: 166, False: 0]
  ------------------
 8708|    166|                        error(loc, "format requires readonly or writeonly memory qualifier", TQualifier::getLayoutFormatString(qualifier.getFormat()), "");
 8709|    166|                }
 8710|    317|            }
 8711|  1.46k|        }
 8712|   706k|    } else if (type.isImage() && ! qualifier.isWriteOnly() && !intermediate.getBindlessImageMode()) {
  ------------------
  |  Branch (8712:16): [True: 856, False: 705k]
  |  Branch (8712:34): [True: 495, False: 361]
  |  Branch (8712:63): [True: 495, False: 0]
  ------------------
 8713|    495|        const char *explanation = "image variables not declared 'writeonly' and without a format layout qualifier";
 8714|    495|        requireProfile(loc, ECoreProfile | ECompatibilityProfile, explanation);
 8715|    495|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 0, E_GL_EXT_shader_image_load_formatted, explanation);
 8716|    495|    }
 8717|       |
 8718|   708k|    if (qualifier.isPushConstant()) {
  ------------------
  |  Branch (8718:9): [True: 68, False: 708k]
  ------------------
 8719|     68|        if (type.getBasicType() != EbtBlock)
  ------------------
  |  Branch (8719:13): [True: 13, False: 55]
  ------------------
 8720|     13|            error(loc, "can only be used with a block", "push_constant", "");
 8721|     68|        if (type.isArray())
  ------------------
  |  Branch (8721:13): [True: 11, False: 57]
  ------------------
 8722|     11|            error(loc, "Push constants blocks can't be an array", "push_constant", "");
 8723|     68|    }
 8724|       |
 8725|   708k|    if (type.getBasicType() == EbtReference) {
  ------------------
  |  Branch (8725:9): [True: 0, False: 708k]
  ------------------
 8726|      0|        if (qualifier.isPipeInput())
  ------------------
  |  Branch (8726:13): [True: 0, False: 0]
  ------------------
 8727|      0|            error(loc, "cannot contain any structs with buffer_reference.", "in",
 8728|      0|                  "If you want to interface shader stages with a buffer_reference cast to a uint64 or uvec2 instead.");
 8729|      0|        if (qualifier.isPipeOutput())
  ------------------
  |  Branch (8729:13): [True: 0, False: 0]
  ------------------
 8730|      0|            error(loc, "cannot contain any structs with buffer_reference.", "out",
 8731|      0|                  "If you want to interface shader stages with a buffer_reference cast to a uint64 or uvec2 instead.");
 8732|      0|    }
 8733|       |
 8734|   708k|    if (qualifier.hasBufferReference() && type.getBasicType() != EbtBlock)
  ------------------
  |  Branch (8734:9): [True: 0, False: 708k]
  |  Branch (8734:43): [True: 0, False: 0]
  ------------------
 8735|      0|        error(loc, "can only be used with a block", "buffer_reference", "");
 8736|       |
 8737|   708k|    if (qualifier.isShaderRecord() && type.getBasicType() != EbtBlock)
  ------------------
  |  Branch (8737:9): [True: 0, False: 708k]
  |  Branch (8737:39): [True: 0, False: 0]
  ------------------
 8738|      0|        error(loc, "can only be used with a block", "shaderRecordNV", "");
 8739|       |
 8740|       |    // input attachment
 8741|   708k|    if (type.isSubpass()) {
  ------------------
  |  Branch (8741:9): [True: 29, False: 708k]
  ------------------
 8742|     29|        if (extensionTurnedOn(E_GL_EXT_shader_tile_image))
  ------------------
  |  Branch (8742:13): [True: 0, False: 29]
  ------------------
 8743|      0|            error(loc, "cannot be used with GL_EXT_shader_tile_image enabled", type.getSampler().getString().c_str(),
 8744|      0|                  "");
 8745|     29|        if (!qualifier.hasAttachment() && (type.isArray() || !extensionTurnedOn(E_GL_EXT_optional_input_attachment_index)))
  ------------------
  |  Branch (8745:13): [True: 7, False: 22]
  |  Branch (8745:44): [True: 0, False: 7]
  |  Branch (8745:62): [True: 7, False: 0]
  ------------------
 8746|      7|            error(loc, "requires an input_attachment_index layout qualifier", "subpass", "");
 8747|   708k|    } else {
 8748|   708k|        if (qualifier.hasAttachment())
  ------------------
  |  Branch (8748:13): [True: 14, False: 708k]
  ------------------
 8749|     14|            error(loc, "can only be used with a subpass", "input_attachment_index", "");
 8750|   708k|    }
 8751|       |
 8752|       |    // specialization-constant id
 8753|   708k|    if (qualifier.hasSpecConstantId()) {
  ------------------
  |  Branch (8753:9): [True: 310, False: 707k]
  ------------------
 8754|    310|        if (type.getQualifier().storage != EvqConst)
  ------------------
  |  Branch (8754:13): [True: 0, False: 310]
  ------------------
 8755|      0|            error(loc, "can only be applied to 'const'-qualified scalar", "constant_id", "");
 8756|    310|        if (! type.isScalar())
  ------------------
  |  Branch (8756:13): [True: 0, False: 310]
  ------------------
 8757|      0|            error(loc, "can only be applied to a scalar", "constant_id", "");
 8758|    310|        switch (type.getBasicType())
 8759|    310|        {
 8760|      1|        case EbtInt8:
  ------------------
  |  Branch (8760:9): [True: 1, False: 309]
  ------------------
 8761|      3|        case EbtUint8:
  ------------------
  |  Branch (8761:9): [True: 2, False: 308]
  ------------------
 8762|     33|        case EbtInt16:
  ------------------
  |  Branch (8762:9): [True: 30, False: 280]
  ------------------
 8763|     65|        case EbtUint16:
  ------------------
  |  Branch (8763:9): [True: 32, False: 278]
  ------------------
 8764|    105|        case EbtInt:
  ------------------
  |  Branch (8764:9): [True: 40, False: 270]
  ------------------
 8765|    139|        case EbtUint:
  ------------------
  |  Branch (8765:9): [True: 34, False: 276]
  ------------------
 8766|    176|        case EbtInt64:
  ------------------
  |  Branch (8766:9): [True: 37, False: 273]
  ------------------
 8767|    215|        case EbtUint64:
  ------------------
  |  Branch (8767:9): [True: 39, False: 271]
  ------------------
 8768|    249|        case EbtBool:
  ------------------
  |  Branch (8768:9): [True: 34, False: 276]
  ------------------
 8769|    270|        case EbtFloat:
  ------------------
  |  Branch (8769:9): [True: 21, False: 289]
  ------------------
 8770|    289|        case EbtDouble:
  ------------------
  |  Branch (8770:9): [True: 19, False: 291]
  ------------------
 8771|    310|        case EbtFloat16:
  ------------------
  |  Branch (8771:9): [True: 21, False: 289]
  ------------------
 8772|    310|        case EbtBFloat16:
  ------------------
  |  Branch (8772:9): [True: 0, False: 310]
  ------------------
 8773|    310|        case EbtFloatE5M2:
  ------------------
  |  Branch (8773:9): [True: 0, False: 310]
  ------------------
 8774|    310|        case EbtFloatE4M3:
  ------------------
  |  Branch (8774:9): [True: 0, False: 310]
  ------------------
 8775|    310|        case EbtFloatE2M1:
  ------------------
  |  Branch (8775:9): [True: 0, False: 310]
  ------------------
 8776|    310|        case EbtFloatE3M2:
  ------------------
  |  Branch (8776:9): [True: 0, False: 310]
  ------------------
 8777|    310|        case EbtFloatE2M3:
  ------------------
  |  Branch (8777:9): [True: 0, False: 310]
  ------------------
 8778|    310|        case EbtFloatUE8M0:
  ------------------
  |  Branch (8778:9): [True: 0, False: 310]
  ------------------
 8779|    310|        case EbtFloatMXINT8:
  ------------------
  |  Branch (8779:9): [True: 0, False: 310]
  ------------------
 8780|    310|            break;
 8781|      0|        default:
  ------------------
  |  Branch (8781:9): [True: 0, False: 310]
  ------------------
 8782|      0|            error(loc, "cannot be applied to this type", "constant_id", "");
 8783|      0|            break;
 8784|    310|        }
 8785|    310|    }
 8786|   708k|}
_ZN7glslang13TParseContext20layoutQualifierCheckERKNS_10TSourceLocERKNS_10TQualifierE:
 8805|   709k|{
 8806|   709k|    if (qualifier.storage == EvqShared && qualifier.hasLayout()) {
  ------------------
  |  Branch (8806:9): [True: 0, False: 709k]
  |  Branch (8806:43): [True: 0, False: 0]
  ------------------
 8807|      0|        if (spvVersion.spv > 0 && spvVersion.spv < EShTargetSpv_1_4) {
  ------------------
  |  Branch (8807:13): [True: 0, False: 0]
  |  Branch (8807:35): [True: 0, False: 0]
  ------------------
 8808|      0|            error(loc, "shared block requires at least SPIR-V 1.4", "shared block", "");
 8809|      0|        }
 8810|      0|        profileRequires(loc, EEsProfile | ECoreProfile | ECompatibilityProfile, 0, E_GL_EXT_shared_memory_block, "shared block");
 8811|      0|    }
 8812|       |
 8813|       |    // "It is a compile-time error to use *component* without also specifying the location qualifier (order does not matter)."
 8814|   709k|    if (qualifier.hasComponent() && ! qualifier.hasLocation())
  ------------------
  |  Branch (8814:9): [True: 326, False: 708k]
  |  Branch (8814:37): [True: 2, False: 324]
  ------------------
 8815|      2|        error(loc, "must specify 'location' to use 'component'", "component", "");
 8816|       |
 8817|   709k|    if (qualifier.hasAnyLocation()) {
  ------------------
  |  Branch (8817:9): [True: 2.12k, False: 707k]
  ------------------
 8818|       |
 8819|       |        // "As with input layout qualifiers, all shaders except compute shaders
 8820|       |        // allow *location* layout qualifiers on output variable declarations,
 8821|       |        // output block declarations, and output block member declarations."
 8822|       |
 8823|  2.12k|        switch (qualifier.storage) {
 8824|  1.55k|        case EvqVaryingIn:
  ------------------
  |  Branch (8824:9): [True: 1.55k, False: 571]
  ------------------
 8825|  1.55k|        {
 8826|  1.55k|            const char* feature = "location qualifier on input";
 8827|  1.55k|            if (isEsProfile() && version < 310)
  ------------------
  |  Branch (8827:17): [True: 444, False: 1.10k]
  |  Branch (8827:34): [True: 0, False: 444]
  ------------------
 8828|      0|                requireStage(loc, EShLangVertex, feature);
 8829|  1.55k|            else
 8830|  1.55k|                requireStage(loc, (EShLanguageMask)~EShLangComputeMask, feature);
 8831|  1.55k|            if (language == EShLangVertex) {
  ------------------
  |  Branch (8831:17): [True: 0, False: 1.55k]
  ------------------
 8832|      0|                const char* exts[2] = { E_GL_ARB_separate_shader_objects, E_GL_ARB_explicit_attrib_location };
 8833|      0|                if (spvVersion.spv == 0)
  ------------------
  |  Branch (8833:21): [True: 0, False: 0]
  ------------------
 8834|      0|                    profileRequires(loc, ~EEsProfile, 330, 2, exts, feature);
 8835|      0|                profileRequires(loc, EEsProfile, 300, nullptr, feature);
 8836|  1.55k|            } else {
 8837|  1.55k|                if (spvVersion.spv == 0)
  ------------------
  |  Branch (8837:21): [True: 0, False: 1.55k]
  ------------------
 8838|      0|                    profileRequires(loc, ~EEsProfile, 410, E_GL_ARB_separate_shader_objects, feature);
 8839|  1.55k|                profileRequires(loc, EEsProfile, 310, nullptr, feature);
 8840|  1.55k|            }
 8841|  1.55k|            break;
 8842|      0|        }
 8843|    444|        case EvqVaryingOut:
  ------------------
  |  Branch (8843:9): [True: 444, False: 1.67k]
  ------------------
 8844|    444|        {
 8845|    444|            const char* feature = "location qualifier on output";
 8846|    444|            if (isEsProfile() && version < 310)
  ------------------
  |  Branch (8846:17): [True: 176, False: 268]
  |  Branch (8846:34): [True: 0, False: 176]
  ------------------
 8847|      0|                requireStage(loc, EShLangFragment, feature);
 8848|    444|            else
 8849|    444|                requireStage(loc, (EShLanguageMask)~EShLangComputeMask, feature);
 8850|    444|            if (language == EShLangFragment) {
  ------------------
  |  Branch (8850:17): [True: 444, False: 0]
  ------------------
 8851|    444|                const char* exts[2] = { E_GL_ARB_separate_shader_objects, E_GL_ARB_explicit_attrib_location };
 8852|    444|                if (spvVersion.spv == 0)
  ------------------
  |  Branch (8852:21): [True: 0, False: 444]
  ------------------
 8853|      0|                    profileRequires(loc, ~EEsProfile, 330, 2, exts, feature);
 8854|    444|                profileRequires(loc, EEsProfile, 300, nullptr, feature);
 8855|    444|            } else {
 8856|      0|                if (spvVersion.spv == 0)
  ------------------
  |  Branch (8856:21): [True: 0, False: 0]
  ------------------
 8857|      0|                    profileRequires(loc, ~EEsProfile, 410, E_GL_ARB_separate_shader_objects, feature);
 8858|      0|                profileRequires(loc, EEsProfile, 310, nullptr, feature);
 8859|      0|            }
 8860|    444|            break;
 8861|      0|        }
 8862|    121|        case EvqUniform:
  ------------------
  |  Branch (8862:9): [True: 121, False: 2.00k]
  ------------------
 8863|    121|        case EvqBuffer:
  ------------------
  |  Branch (8863:9): [True: 0, False: 2.12k]
  ------------------
 8864|    121|        {
 8865|    121|            const char* feature = "location qualifier on uniform or buffer";
 8866|    121|            requireProfile(loc, EEsProfile | ECoreProfile | ECompatibilityProfile | ENoProfile, feature);
 8867|    121|            profileRequires(loc, ~EEsProfile, 330, E_GL_ARB_explicit_attrib_location, feature);
 8868|    121|            profileRequires(loc, ~EEsProfile, 430, E_GL_ARB_explicit_uniform_location, feature);
 8869|    121|            profileRequires(loc, EEsProfile, 310, nullptr, feature);
 8870|    121|            break;
 8871|    121|        }
 8872|      6|        default:
  ------------------
  |  Branch (8872:9): [True: 6, False: 2.11k]
  ------------------
 8873|      6|            break;
 8874|  2.12k|        }
 8875|  2.12k|        if (qualifier.hasIndex()) {
  ------------------
  |  Branch (8875:13): [True: 148, False: 1.97k]
  ------------------
 8876|    148|            if (qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (8876:17): [True: 29, False: 119]
  ------------------
 8877|     29|                error(loc, "can only be used on an output", "index", "");
 8878|    148|            if (! qualifier.hasLocation())
  ------------------
  |  Branch (8878:17): [True: 18, False: 130]
  ------------------
 8879|     18|                error(loc, "can only be used with an explicit location", "index", "");
 8880|    148|        }
 8881|  2.12k|    }
 8882|       |
 8883|   709k|    if (qualifier.hasBinding()) {
  ------------------
  |  Branch (8883:9): [True: 2.73k, False: 706k]
  ------------------
 8884|  2.73k|        if (! qualifier.isUniformOrBuffer() && !qualifier.isTaskMemory() && !qualifier.isTileAttachmentQCOM())
  ------------------
  |  Branch (8884:13): [True: 4, False: 2.72k]
  |  Branch (8884:48): [True: 4, False: 0]
  |  Branch (8884:77): [True: 4, False: 0]
  ------------------
 8885|      4|            error(loc, "requires uniform or buffer or tile image storage qualifier", "binding", "");
 8886|  2.73k|    }
 8887|   709k|    if (qualifier.hasStream()) {
  ------------------
  |  Branch (8887:9): [True: 9.48k, False: 699k]
  ------------------
 8888|  9.48k|        if (!qualifier.isPipeOutput())
  ------------------
  |  Branch (8888:13): [True: 0, False: 9.48k]
  ------------------
 8889|      0|            error(loc, "can only be used on an output", "stream", "");
 8890|  9.48k|    }
 8891|   709k|    if (qualifier.hasXfb()) {
  ------------------
  |  Branch (8891:9): [True: 36.0k, False: 673k]
  ------------------
 8892|  36.0k|        if (!qualifier.isPipeOutput())
  ------------------
  |  Branch (8892:13): [True: 0, False: 36.0k]
  ------------------
 8893|      0|            error(loc, "can only be used on an output", "xfb layout qualifier", "");
 8894|  36.0k|    }
 8895|   709k|    if (qualifier.hasUniformLayout()) {
  ------------------
  |  Branch (8895:9): [True: 6.89k, False: 702k]
  ------------------
 8896|  6.89k|        if (!storageCanHaveLayoutInBlock(qualifier.storage) && !qualifier.isTaskMemory()) {
  ------------------
  |  Branch (8896:13): [True: 201, False: 6.69k]
  |  Branch (8896:64): [True: 201, False: 0]
  ------------------
 8897|    201|            if (qualifier.hasMatrix() || qualifier.hasPacking())
  ------------------
  |  Branch (8897:17): [True: 0, False: 201]
  |  Branch (8897:42): [True: 16, False: 185]
  ------------------
 8898|     16|                error(loc, "matrix or packing qualifiers can only be used on a uniform or buffer", "layout", "");
 8899|    201|            if (qualifier.hasOffset() || qualifier.hasAlign())
  ------------------
  |  Branch (8899:17): [True: 92, False: 109]
  |  Branch (8899:42): [True: 90, False: 19]
  ------------------
 8900|    182|                error(loc, "offset/align can only be used on a uniform or buffer", "layout", "");
 8901|    201|        }
 8902|  6.89k|    }
 8903|   709k|    if (qualifier.isPushConstant()) {
  ------------------
  |  Branch (8903:9): [True: 81, False: 709k]
  ------------------
 8904|     81|        if (qualifier.storage != EvqUniform)
  ------------------
  |  Branch (8904:13): [True: 15, False: 66]
  ------------------
 8905|     15|            error(loc, "can only be used with a uniform", "push_constant", "");
 8906|     81|        if (qualifier.hasSet())
  ------------------
  |  Branch (8906:13): [True: 0, False: 81]
  ------------------
 8907|      0|            error(loc, "cannot be used with push_constant", "set", "");
 8908|     81|        if (qualifier.hasBinding())
  ------------------
  |  Branch (8908:13): [True: 12, False: 69]
  ------------------
 8909|     12|            error(loc, "cannot be used with push_constant", "binding", "");
 8910|     81|    }
 8911|   709k|    if (qualifier.hasBufferReference()) {
  ------------------
  |  Branch (8911:9): [True: 0, False: 709k]
  ------------------
 8912|      0|        if (qualifier.storage != EvqBuffer)
  ------------------
  |  Branch (8912:13): [True: 0, False: 0]
  ------------------
 8913|      0|            error(loc, "can only be used with buffer", "buffer_reference", "");
 8914|      0|    }
 8915|   709k|    if (qualifier.isBufferType()) {
  ------------------
  |  Branch (8915:9): [True: 0, False: 709k]
  ------------------
 8916|      0|        if (qualifier.storage != EvqUniform && qualifier.storage != EvqBuffer)
  ------------------
  |  Branch (8916:13): [True: 0, False: 0]
  |  Branch (8916:48): [True: 0, False: 0]
  ------------------
 8917|      0|            error(loc, "can only be used with uniform or buffer", "buffer_type", "");
 8918|      0|    }
 8919|   709k|    if (qualifier.isShaderRecord()) {
  ------------------
  |  Branch (8919:9): [True: 0, False: 709k]
  ------------------
 8920|      0|        if (qualifier.storage != EvqBuffer)
  ------------------
  |  Branch (8920:13): [True: 0, False: 0]
  ------------------
 8921|      0|            error(loc, "can only be used with a buffer", "shaderRecordNV", "");
 8922|      0|        if (qualifier.hasBinding())
  ------------------
  |  Branch (8922:13): [True: 0, False: 0]
  ------------------
 8923|      0|            error(loc, "cannot be used with shaderRecordNV", "binding", "");
 8924|      0|        if (qualifier.hasSet())
  ------------------
  |  Branch (8924:13): [True: 0, False: 0]
  ------------------
 8925|      0|            error(loc, "cannot be used with shaderRecordNV", "set", "");
 8926|       |
 8927|      0|    }
 8928|       |
 8929|   709k|    if (qualifier.storage == EvqTileImageEXT) {
  ------------------
  |  Branch (8929:9): [True: 0, False: 709k]
  ------------------
 8930|      0|        if (qualifier.hasSet())
  ------------------
  |  Branch (8930:13): [True: 0, False: 0]
  ------------------
 8931|      0|            error(loc, "cannot be used with tileImageEXT", "set", "");
 8932|      0|        if (!qualifier.hasLocation())
  ------------------
  |  Branch (8932:13): [True: 0, False: 0]
  ------------------
 8933|      0|            error(loc, "can only be used with an explicit location", "tileImageEXT", "");
 8934|      0|    }
 8935|       |
 8936|   709k|    if (qualifier.storage == EvqHitAttr && qualifier.hasLayout()) {
  ------------------
  |  Branch (8936:9): [True: 0, False: 709k]
  |  Branch (8936:44): [True: 0, False: 0]
  ------------------
 8937|      0|        error(loc, "cannot apply layout qualifiers to hitAttributeNV variable", "hitAttributeNV", "");
 8938|      0|    }
 8939|   709k|    if (qualifier.hasBank()) {
  ------------------
  |  Branch (8939:9): [True: 0, False: 709k]
  ------------------
 8940|      0|        if (!qualifier.isPushConstant())
  ------------------
  |  Branch (8940:13): [True: 0, False: 0]
  ------------------
 8941|      0|            error(loc, "can only be used with push_constant", "bank", "");
 8942|      0|    }
 8943|   709k|    if (qualifier.hasMemberOffset()) {
  ------------------
  |  Branch (8943:9): [True: 0, False: 709k]
  ------------------
 8944|      0|        if (!qualifier.isPushConstant())
  ------------------
  |  Branch (8944:13): [True: 0, False: 0]
  ------------------
 8945|      0|            error(loc, "can only be used with push_constant", "member_offset", "");
 8946|      0|    }
 8947|       |
 8948|   709k|    if (qualifier.layoutDescriptorStride != TQualifier::layoutDescriptorStrideEnd &&
  ------------------
  |  Branch (8948:9): [True: 0, False: 709k]
  ------------------
 8949|      0|        !qualifier.layoutDescriptorHeap)
  ------------------
  |  Branch (8949:9): [True: 0, False: 0]
  ------------------
 8950|      0|        error(loc, "must specify 'descriptor_heap' to use 'descriptor_stride'", "descriptor_stride", "");
 8951|   709k|    if ((qualifier.layoutHeapOffset != 0 || qualifier.layoutHeapOffsetNode != nullptr) && !qualifier.layoutDescriptorHeap &&
  ------------------
  |  Branch (8951:10): [True: 0, False: 709k]
  |  Branch (8951:45): [True: 0, False: 709k]
  |  Branch (8951:91): [True: 0, False: 0]
  ------------------
 8952|      0|        qualifier.storage != EvqSamplerHeap && qualifier.storage != EvqResourceHeap)
  ------------------
  |  Branch (8952:9): [True: 0, False: 0]
  |  Branch (8952:48): [True: 0, False: 0]
  ------------------
 8953|      0|        error(loc, "must specify 'descriptor_heap' to use 'heap_offset'", "heap_offset", "");
 8954|   709k|}
_ZN7glslang13TParseContext20checkNoShaderLayoutsERKNS_10TSourceLocERKNS_17TShaderQualifiersE:
 8958|  4.20M|{
 8959|  4.20M|    const char* message = "can only apply to a standalone qualifier";
 8960|       |
 8961|  4.20M|    if (shaderQualifiers.geometry != ElgNone)
  ------------------
  |  Branch (8961:9): [True: 0, False: 4.20M]
  ------------------
 8962|      0|        error(loc, message, TQualifier::getGeometryString(shaderQualifiers.geometry), "");
 8963|  4.20M|    if (shaderQualifiers.spacing != EvsNone)
  ------------------
  |  Branch (8963:9): [True: 0, False: 4.20M]
  ------------------
 8964|      0|        error(loc, message, TQualifier::getVertexSpacingString(shaderQualifiers.spacing), "");
 8965|  4.20M|    if (shaderQualifiers.order != EvoNone)
  ------------------
  |  Branch (8965:9): [True: 0, False: 4.20M]
  ------------------
 8966|      0|        error(loc, message, TQualifier::getVertexOrderString(shaderQualifiers.order), "");
 8967|  4.20M|    if (shaderQualifiers.pointMode)
  ------------------
  |  Branch (8967:9): [True: 0, False: 4.20M]
  ------------------
 8968|      0|        error(loc, message, "point_mode", "");
 8969|  4.20M|    if (shaderQualifiers.invocations != TQualifier::layoutNotSet)
  ------------------
  |  Branch (8969:9): [True: 0, False: 4.20M]
  ------------------
 8970|      0|        error(loc, message, "invocations", "");
 8971|  16.8M|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (8971:21): [True: 12.6M, False: 4.20M]
  ------------------
 8972|  12.6M|        if (shaderQualifiers.localSize[i] > 1)
  ------------------
  |  Branch (8972:13): [True: 0, False: 12.6M]
  ------------------
 8973|      0|            error(loc, message, "local_size", "");
 8974|  12.6M|        if (shaderQualifiers.localSizeSpecId[i] != TQualifier::layoutNotSet)
  ------------------
  |  Branch (8974:13): [True: 0, False: 12.6M]
  ------------------
 8975|      0|            error(loc, message, "local_size id", "");
 8976|  12.6M|    }
 8977|  4.20M|    if (shaderQualifiers.vertices != TQualifier::layoutNotSet) {
  ------------------
  |  Branch (8977:9): [True: 0, False: 4.20M]
  ------------------
 8978|      0|        if (language == EShLangGeometry || language == EShLangMesh)
  ------------------
  |  Branch (8978:13): [True: 0, False: 0]
  |  Branch (8978:44): [True: 0, False: 0]
  ------------------
 8979|      0|            error(loc, message, "max_vertices", "");
 8980|      0|        else if (language == EShLangTessControl)
  ------------------
  |  Branch (8980:18): [True: 0, False: 0]
  ------------------
 8981|      0|            error(loc, message, "vertices", "");
 8982|      0|        else
 8983|      0|            assert(0);
 8984|      0|    }
 8985|  4.20M|    if (shaderQualifiers.earlyFragmentTests)
  ------------------
  |  Branch (8985:9): [True: 1, False: 4.20M]
  ------------------
 8986|      1|        error(loc, message, "early_fragment_tests", "");
 8987|  4.20M|    if (shaderQualifiers.postDepthCoverage)
  ------------------
  |  Branch (8987:9): [True: 0, False: 4.20M]
  ------------------
 8988|      0|        error(loc, message, "post_depth_coverage", "");
 8989|  4.20M|    if (shaderQualifiers.nonCoherentColorAttachmentReadEXT)
  ------------------
  |  Branch (8989:9): [True: 0, False: 4.20M]
  ------------------
 8990|      0|        error(loc, message, "non_coherent_color_attachment_readEXT", "");
 8991|  4.20M|    if (shaderQualifiers.nonCoherentDepthAttachmentReadEXT)
  ------------------
  |  Branch (8991:9): [True: 0, False: 4.20M]
  ------------------
 8992|      0|        error(loc, message, "non_coherent_depth_attachment_readEXT", "");
 8993|  4.20M|    if (shaderQualifiers.nonCoherentStencilAttachmentReadEXT)
  ------------------
  |  Branch (8993:9): [True: 0, False: 4.20M]
  ------------------
 8994|      0|        error(loc, message, "non_coherent_stencil_attachment_readEXT", "");
 8995|  4.20M|    if (shaderQualifiers.primitives != TQualifier::layoutNotSet) {
  ------------------
  |  Branch (8995:9): [True: 0, False: 4.20M]
  ------------------
 8996|      0|        if (language == EShLangMesh)
  ------------------
  |  Branch (8996:13): [True: 0, False: 0]
  ------------------
 8997|      0|            error(loc, message, "max_primitives", "");
 8998|      0|        else
 8999|      0|            assert(0);
 9000|      0|    }
 9001|  4.20M|    if (shaderQualifiers.hasBlendEquation())
  ------------------
  |  Branch (9001:9): [True: 104, False: 4.20M]
  ------------------
 9002|    104|        error(loc, message, "blend equation", "");
 9003|  4.20M|    if (shaderQualifiers.numViews != TQualifier::layoutNotSet)
  ------------------
  |  Branch (9003:9): [True: 0, False: 4.20M]
  ------------------
 9004|      0|        error(loc, message, "num_views", "");
 9005|  4.20M|    if (shaderQualifiers.interlockOrdering != EioNone)
  ------------------
  |  Branch (9005:9): [True: 0, False: 4.20M]
  ------------------
 9006|      0|        error(loc, message, TQualifier::getInterlockOrderingString(shaderQualifiers.interlockOrdering), "");
 9007|  4.20M|    if (shaderQualifiers.layoutPrimitiveCulling)
  ------------------
  |  Branch (9007:9): [True: 0, False: 4.20M]
  ------------------
 9008|      0|        error(loc, "can only be applied as standalone", "primitive_culling", "");
 9009|       |
 9010|  4.20M|    if (shaderQualifiers.layoutNonCoherentTileAttachmentReadQCOM)
  ------------------
  |  Branch (9010:9): [True: 0, False: 4.20M]
  ------------------
 9011|      0|        error(loc, message, "non_coherent_attachment_readQCOM", "");
 9012|  4.20M|    if (shaderQualifiers.layoutTileShadingRateQCOM[0] >= 1)
  ------------------
  |  Branch (9012:9): [True: 0, False: 4.20M]
  ------------------
 9013|      0|        error(loc, message, "shading_rate_xQCOM", "");
 9014|  4.20M|    if (shaderQualifiers.layoutTileShadingRateQCOM[1] >= 1)
  ------------------
  |  Branch (9014:9): [True: 0, False: 4.20M]
  ------------------
 9015|      0|        error(loc, message, "shading_rate_yQCOM", "");
 9016|  4.20M|    if (shaderQualifiers.layoutTileShadingRateQCOM[2] >= 1)
  ------------------
  |  Branch (9016:9): [True: 0, False: 4.20M]
  ------------------
 9017|      0|        error(loc, message, "shading_rate_zQCOM", "");
 9018|  4.20M|}
_ZN7glslang13TParseContext9fixOffsetERKNS_10TSourceLocERNS_7TSymbolE:
 9022|   667k|{
 9023|   667k|    const TQualifier& qualifier = symbol.getType().getQualifier();
 9024|   667k|    if (symbol.getType().isAtomic()) {
  ------------------
  |  Branch (9024:9): [True: 76, False: 667k]
  ------------------
 9025|     76|        if (qualifier.hasBinding() && (int)qualifier.layoutBinding < resources.maxAtomicCounterBindings) {
  ------------------
  |  Branch (9025:13): [True: 76, False: 0]
  |  Branch (9025:39): [True: 76, False: 0]
  ------------------
 9026|       |
 9027|       |            // Set the offset
 9028|     76|            int offset;
 9029|     76|            if (qualifier.hasOffset())
  ------------------
  |  Branch (9029:17): [True: 0, False: 76]
  ------------------
 9030|      0|                offset = qualifier.layoutOffset;
 9031|     76|            else
 9032|     76|                offset = atomicUintOffsets[qualifier.layoutBinding];
 9033|       |
 9034|     76|            if (offset % 4 != 0)
  ------------------
  |  Branch (9034:17): [True: 0, False: 76]
  ------------------
 9035|      0|                error(loc, "atomic counters offset should align based on 4:", "offset", "%d", offset);
 9036|       |
 9037|     76|            symbol.getWritableType().getQualifier().layoutOffset = offset;
 9038|       |
 9039|       |            // Check for overlap
 9040|     76|            int numOffsets = 4;
 9041|     76|            if (symbol.getType().isArray()) {
  ------------------
  |  Branch (9041:17): [True: 76, False: 0]
  ------------------
 9042|     76|                if (symbol.getType().isSizedArray() && !symbol.getType().getArraySizes()->isInnerUnsized())
  ------------------
  |  Branch (9042:21): [True: 76, False: 0]
  |  Branch (9042:56): [True: 76, False: 0]
  ------------------
 9043|     76|                    numOffsets *= symbol.getType().getCumulativeArraySize();
 9044|      0|                else {
 9045|       |                    // "It is a compile-time error to declare an unsized array of atomic_uint."
 9046|      0|                    error(loc, "array must be explicitly sized", "atomic_uint", "");
 9047|      0|                }
 9048|     76|            }
 9049|     76|            int repeated = intermediate.addUsedOffsets(qualifier.layoutBinding, offset, numOffsets);
 9050|     76|            if (repeated >= 0)
  ------------------
  |  Branch (9050:17): [True: 0, False: 76]
  ------------------
 9051|      0|                error(loc, "atomic counters sharing the same offset:", "offset", "%d", repeated);
 9052|       |
 9053|       |            // Bump the default offset
 9054|     76|            atomicUintOffsets[qualifier.layoutBinding] = offset + numOffsets;
 9055|     76|        }
 9056|     76|    }
 9057|   667k|}
_ZN7glslang13TParseContext12findFunctionERKNS_10TSourceLocERKNS_9TFunctionERb:
 9065|  48.1k|{
 9066|  48.1k|    if (symbolTable.isFunctionNameVariable(call.getName())) {
  ------------------
  |  Branch (9066:9): [True: 93, False: 48.1k]
  ------------------
 9067|     93|        error(loc, "can't use function syntax on variable", call.getName().c_str(), "");
 9068|     93|        return nullptr;
 9069|     93|    }
 9070|       |
 9071|  48.1k|    const TFunction* function = nullptr;
 9072|       |
 9073|       |    // debugPrintfEXT has var args and is in the symbol table as "debugPrintfEXT()",
 9074|       |    // mangled to "debugPrintfEXT("
 9075|  48.1k|    if (call.getName() == "debugPrintfEXT") {
  ------------------
  |  Branch (9075:9): [True: 0, False: 48.1k]
  ------------------
 9076|      0|        TSymbol* symbol = symbolTable.find("debugPrintfEXT(", &builtIn);
 9077|      0|        if (symbol)
  ------------------
  |  Branch (9077:13): [True: 0, False: 0]
  ------------------
 9078|      0|            return symbol->getAsFunction();
 9079|      0|    }
 9080|       |    // abortEXT has usage (var args) as similar as debugPrintfEXT.
 9081|  48.1k|    if (call.getName() == "abortEXT") {
  ------------------
  |  Branch (9081:9): [True: 0, False: 48.1k]
  ------------------
 9082|      0|        TSymbol* symbol = symbolTable.find("abortEXT(", &builtIn);
 9083|      0|        if (symbol)
  ------------------
  |  Branch (9083:13): [True: 0, False: 0]
  ------------------
 9084|      0|            return symbol->getAsFunction();
 9085|      0|    }
 9086|       |
 9087|       |    // coopMatPerElementNV is variadic. There is some function signature error
 9088|       |    // checking in handleCoopMat2FunctionCall.
 9089|  48.1k|    if (call.getName() == "coopMatPerElementNV") {
  ------------------
  |  Branch (9089:9): [True: 0, False: 48.1k]
  ------------------
 9090|      0|        TSymbol* symbol = symbolTable.find("coopMatPerElementNV(", &builtIn);
 9091|      0|        if (symbol)
  ------------------
  |  Branch (9091:13): [True: 0, False: 0]
  ------------------
 9092|      0|            return symbol->getAsFunction();
 9093|      0|    }
 9094|  48.1k|    if (call.getName() == "coopMatPerElementEXT") {
  ------------------
  |  Branch (9094:9): [True: 0, False: 48.1k]
  ------------------
 9095|      0|        TSymbol* symbol = symbolTable.find("coopMatPerElementEXT(", &builtIn);
 9096|      0|        if (symbol)
  ------------------
  |  Branch (9096:13): [True: 0, False: 0]
  ------------------
 9097|      0|            return symbol->getAsFunction();
 9098|      0|    }
 9099|  48.1k|    if (call.getName() == "saturatedConvertEXT") {
  ------------------
  |  Branch (9099:9): [True: 0, False: 48.1k]
  ------------------
 9100|      0|        TSymbol* symbol = symbolTable.find("saturatedConvertEXT(", &builtIn);
 9101|      0|        if (symbol)
  ------------------
  |  Branch (9101:13): [True: 0, False: 0]
  ------------------
 9102|      0|            return symbol->getAsFunction();
 9103|      0|    }
 9104|       |
 9105|  48.1k|    bool explicitTypesEnabled = extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (9105:33): [True: 2.30k, False: 45.8k]
  ------------------
 9106|  45.8k|                                extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int8) ||
  ------------------
  |  Branch (9106:33): [True: 321, False: 45.4k]
  ------------------
 9107|  45.4k|                                extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int16) ||
  ------------------
  |  Branch (9107:33): [True: 0, False: 45.4k]
  ------------------
 9108|  45.4k|                                extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int32) ||
  ------------------
  |  Branch (9108:33): [True: 0, False: 45.4k]
  ------------------
 9109|  45.4k|                                extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int64) ||
  ------------------
  |  Branch (9109:33): [True: 1.76k, False: 43.7k]
  ------------------
 9110|  43.7k|                                extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float16) ||
  ------------------
  |  Branch (9110:33): [True: 1.26k, False: 42.4k]
  ------------------
 9111|  42.4k|                                extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float32) ||
  ------------------
  |  Branch (9111:33): [True: 0, False: 42.4k]
  ------------------
 9112|  42.4k|                                extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float64);
  ------------------
  |  Branch (9112:33): [True: 0, False: 42.4k]
  ------------------
 9113|       |
 9114|  48.1k|    if (isEsProfile())
  ------------------
  |  Branch (9114:9): [True: 6.98k, False: 41.1k]
  ------------------
 9115|  6.98k|        function = (explicitTypesEnabled && version >= 310)
  ------------------
  |  Branch (9115:21): [True: 336, False: 6.65k]
  |  Branch (9115:45): [True: 336, False: 0]
  ------------------
 9116|  6.98k|                   ? findFunctionExplicitTypes(loc, call, builtIn)
 9117|  6.98k|                   : ((extensionTurnedOn(E_GL_EXT_shader_implicit_conversions) && version >= 310)
  ------------------
  |  Branch (9117:24): [True: 5, False: 6.64k]
  |  Branch (9117:83): [True: 5, False: 0]
  ------------------
 9118|  6.65k|                      ? findFunction120(loc, call, builtIn)
 9119|  6.65k|                      : findFunctionExact(loc, call, builtIn));
 9120|  41.1k|    else if (version < 120)
  ------------------
  |  Branch (9120:14): [True: 0, False: 41.1k]
  ------------------
 9121|      0|        function = findFunctionExact(loc, call, builtIn);
 9122|  41.1k|    else if (version < 400) {
  ------------------
  |  Branch (9122:14): [True: 18.4k, False: 22.6k]
  ------------------
 9123|  18.4k|        bool needfindFunction400 = extensionTurnedOn(E_GL_ARB_gpu_shader_fp64)
  ------------------
  |  Branch (9123:36): [True: 13.8k, False: 4.60k]
  ------------------
 9124|  4.60k|                                  || extensionTurnedOn(E_GL_ARB_gpu_shader5)
  ------------------
  |  Branch (9124:38): [True: 711, False: 3.89k]
  ------------------
 9125|  3.89k|                                  || extensionTurnedOn(E_GL_NV_gpu_shader5);
  ------------------
  |  Branch (9125:38): [True: 171, False: 3.72k]
  ------------------
 9126|  18.4k|        function = needfindFunction400 ? findFunction400(loc, call, builtIn) : findFunction120(loc, call, builtIn);
  ------------------
  |  Branch (9126:20): [True: 14.7k, False: 3.72k]
  ------------------
 9127|  18.4k|    }
 9128|  22.6k|    else if (explicitTypesEnabled)
  ------------------
  |  Branch (9128:14): [True: 5.06k, False: 17.5k]
  ------------------
 9129|  5.06k|        function = findFunctionExplicitTypes(loc, call, builtIn);
 9130|  17.5k|    else
 9131|  17.5k|        function = findFunction400(loc, call, builtIn);
 9132|       |
 9133|  48.1k|    return function;
 9134|  48.1k|}
_ZN7glslang13TParseContext17findFunctionExactERKNS_10TSourceLocERKNS_9TFunctionERb:
 9138|  6.64k|{
 9139|  6.64k|    TSymbol* symbol = symbolTable.find(call.getMangledName(), &builtIn);
 9140|  6.64k|    if (symbol == nullptr) {
  ------------------
  |  Branch (9140:9): [True: 616, False: 6.02k]
  ------------------
 9141|    616|        error(loc, "no matching overloaded function found", call.getName().c_str(), "");
 9142|       |
 9143|    616|        return nullptr;
 9144|    616|    }
 9145|       |
 9146|  6.02k|    return symbol->getAsFunction();
 9147|  6.64k|}
_ZN7glslang13TParseContext15findFunction120ERKNS_10TSourceLocERKNS_9TFunctionERb:
 9151|  3.72k|{
 9152|       |    // first, look for an exact match
 9153|  3.72k|    TSymbol* symbol = symbolTable.find(call.getMangledName(), &builtIn);
 9154|  3.72k|    if (symbol)
  ------------------
  |  Branch (9154:9): [True: 1.82k, False: 1.90k]
  ------------------
 9155|  1.82k|        return symbol->getAsFunction();
 9156|       |
 9157|       |    // exact match not found, look through a list of overloaded functions of the same name
 9158|       |
 9159|       |    // "If no exact match is found, then [implicit conversions] will be applied to find a match. Mismatched types
 9160|       |    // on input parameters (in or inout or default) must have a conversion from the calling argument type to the
 9161|       |    // formal parameter type. Mismatched types on output parameters (out or inout) must have a conversion
 9162|       |    // from the formal parameter type to the calling argument type.  When argument conversions are used to find
 9163|       |    // a match, it is a semantic error if there are multiple ways to apply these conversions to make the call match
 9164|       |    // more than one function."
 9165|       |
 9166|  1.90k|    const TFunction* candidate = nullptr;
 9167|  1.90k|    TVector<const TFunction*> candidateList;
 9168|  1.90k|    symbolTable.findFunctionNameList(call.getMangledName(), candidateList, builtIn);
 9169|       |
 9170|  35.1k|    for (auto it = candidateList.begin(); it != candidateList.end(); ++it) {
  ------------------
  |  Branch (9170:43): [True: 33.2k, False: 1.90k]
  ------------------
 9171|  33.2k|        const TFunction& function = *(*it);
 9172|       |
 9173|       |        // to even be a potential match, number of arguments has to match
 9174|  33.2k|        if (call.getParamCount() != function.getParamCount())
  ------------------
  |  Branch (9174:13): [True: 2.72k, False: 30.5k]
  ------------------
 9175|  2.72k|            continue;
 9176|       |
 9177|  30.5k|        bool possibleMatch = true;
 9178|  33.5k|        for (int i = 0; i < function.getParamCount(); ++i) {
  ------------------
  |  Branch (9178:25): [True: 32.6k, False: 915]
  ------------------
 9179|       |            // same types is easy
 9180|  32.6k|            if (*function[i].type == *call[i].type)
  ------------------
  |  Branch (9180:17): [True: 290, False: 32.3k]
  ------------------
 9181|    290|                continue;
 9182|       |
 9183|       |            // We have a mismatch in type, see if it is implicitly convertible
 9184|       |
 9185|  32.3k|            if (function[i].type->isArray() || call[i].type->isArray() ||
  ------------------
  |  Branch (9185:17): [True: 0, False: 32.3k]
  |  Branch (9185:48): [True: 0, False: 32.3k]
  ------------------
 9186|  32.3k|                ! function[i].type->sameElementShape(*call[i].type))
  ------------------
  |  Branch (9186:17): [True: 25.2k, False: 7.12k]
  ------------------
 9187|  25.2k|                possibleMatch = false;
 9188|  7.12k|            else {
 9189|       |                // do direction-specific checks for conversion of basic type
 9190|  7.12k|                if (function[i].type->getQualifier().isParamInput()) {
  ------------------
  |  Branch (9190:21): [True: 7.12k, False: 0]
  ------------------
 9191|  7.12k|                    if (! intermediate.canImplicitlyPromote(call[i].type->getBasicType(), function[i].type->getBasicType()))
  ------------------
  |  Branch (9191:25): [True: 4.35k, False: 2.76k]
  ------------------
 9192|  4.35k|                        possibleMatch = false;
 9193|  7.12k|                }
 9194|  7.12k|                if (function[i].type->getQualifier().isParamOutput()) {
  ------------------
  |  Branch (9194:21): [True: 0, False: 7.12k]
  ------------------
 9195|      0|                    if (! intermediate.canImplicitlyPromote(function[i].type->getBasicType(), call[i].type->getBasicType()))
  ------------------
  |  Branch (9195:25): [True: 0, False: 0]
  ------------------
 9196|      0|                        possibleMatch = false;
 9197|      0|                }
 9198|  7.12k|            }
 9199|  32.3k|            if (! possibleMatch)
  ------------------
  |  Branch (9199:17): [True: 29.5k, False: 2.76k]
  ------------------
 9200|  29.5k|                break;
 9201|  32.3k|        }
 9202|  30.5k|        if (possibleMatch) {
  ------------------
  |  Branch (9202:13): [True: 915, False: 29.5k]
  ------------------
 9203|    915|            if (candidate) {
  ------------------
  |  Branch (9203:17): [True: 473, False: 442]
  ------------------
 9204|       |                // our second match, meaning ambiguity
 9205|    473|                error(loc, "ambiguous function signature match: multiple signatures match under implicit type conversion", call.getName().c_str(), "");
 9206|    473|            } else
 9207|    442|                candidate = &function;
 9208|    915|        }
 9209|  30.5k|    }
 9210|       |
 9211|  1.90k|    if (candidate == nullptr)
  ------------------
  |  Branch (9211:9): [True: 1.46k, False: 442]
  ------------------
 9212|  1.46k|        error(loc, "no matching overloaded function found", call.getName().c_str(), "");
 9213|       |
 9214|  1.90k|    return candidate;
 9215|  3.72k|}
_ZN7glslang13TParseContext15findFunction400ERKNS_10TSourceLocERKNS_9TFunctionERb:
 9259|  32.3k|{
 9260|       |    // first, look for an exact match
 9261|  32.3k|    TSymbol* symbol = symbolTable.find(call.getMangledName(), &builtIn);
 9262|  32.3k|    if (symbol)
  ------------------
  |  Branch (9262:9): [True: 23.3k, False: 8.99k]
  ------------------
 9263|  23.3k|        return symbol->getAsFunction();
 9264|       |
 9265|       |    // no exact match, use the generic selector, parameterized by the GLSL rules
 9266|       |
 9267|       |    // create list of candidates to send
 9268|  8.99k|    TVector<const TFunction*> candidateList;
 9269|  8.99k|    symbolTable.findFunctionNameList(call.getMangledName(), candidateList, builtIn);
 9270|       |
 9271|       |    // can 'from' convert to 'to'?
 9272|  8.99k|    const auto convertible = [this,builtIn](const TType& from, const TType& to, TOperator op, int param) -> bool {
 9273|  8.99k|        if (from == to)
 9274|  8.99k|            return true;
 9275|  8.99k|        if (from.coopMatParameterOK(to))
 9276|  8.99k|            return true;
 9277|  8.99k|        if (from.tensorParameterOK(to))
 9278|  8.99k|            return true;
 9279|  8.99k|        if (from.getBasicType() == EbtFunction && to.getBasicType() == EbtFunction)
 9280|  8.99k|            return true;
 9281|  8.99k|        if (from.coopVecParameterOK(to))
 9282|  8.99k|            return true;
 9283|       |        // Allow a sized array to be passed through an unsized array parameter, for coopMatLoad/Store functions
 9284|  8.99k|        if (builtIn && from.isArray() && to.isUnsizedArray()) {
 9285|  8.99k|            TType fromElementType(from, 0);
 9286|  8.99k|            TType toElementType(to, 0);
 9287|       |            // Load/store tensor functions allow any element type for the pointer
 9288|  8.99k|            if ((op == EOpCooperativeMatrixLoadTensorNV || op == EOpCooperativeMatrixStoreTensorNV) &&
 9289|  8.99k|                param == 1) {
 9290|  8.99k|                return true;
 9291|  8.99k|            }
 9292|  8.99k|            if (fromElementType == toElementType)
 9293|  8.99k|                return true;
 9294|  8.99k|        }
 9295|  8.99k|        if (TType::vectorAndLongVectorMatch(from, to))
 9296|  8.99k|            return true;
 9297|  8.99k|        if (from.isArray() || to.isArray() || ! from.sameElementShape(to))
 9298|  8.99k|            return false;
 9299|  8.99k|        if (from.isCoopMat() && to.isCoopMat())
 9300|  8.99k|            return from.sameCoopMatBaseType(to);
 9301|  8.99k|        if (from.isCoopVecNV() && to.isCoopVecNV())
 9302|  8.99k|            return from.sameCoopVecBaseType(to);
 9303|  8.99k|        if (from.isLongVector() && to.isLongVector())
 9304|  8.99k|            return from.sameLongVectorBaseType(to);
 9305|  8.99k|        if (from.isTensorARM() && to.isTensorARM())
 9306|  8.99k|            return from.sameTensorBaseTypeARM(to);
 9307|  8.99k|        return intermediate.canImplicitlyPromote(from.getBasicType(), to.getBasicType());
 9308|  8.99k|    };
 9309|       |
 9310|       |    // Is 'to2' a better conversion than 'to1'?
 9311|       |    // Ties should not be considered as better.
 9312|       |    // Assumes 'convertible' already said true.
 9313|  8.99k|    const auto better = [&](const TType& from, const TType& to1, const TType& to2) -> bool {
 9314|       |        // 1. exact match
 9315|  8.99k|        bool to2Matches = from == to2 || (from.isLongVector() && to2.getBasicType() == EbtLongVector);
 9316|  8.99k|        bool to1Matches = from == to1 || (from.isLongVector() && to1.getBasicType() == EbtLongVector);
 9317|  8.99k|        if (to2Matches)
 9318|  8.99k|            return !to1Matches;
 9319|  8.99k|        if (to1Matches)
 9320|  8.99k|            return false;
 9321|       |
 9322|  8.99k|        if (extensionTurnedOn(E_GL_NV_gpu_shader5)) {
 9323|       |            // This map refers to the conversion table mentioned under the
 9324|       |            // section "Modify Section 6.1, Function Definitions, p. 63" in NV_gpu_shader5 spec
 9325|  8.99k|            const static std::map<int, std::vector<int>> conversionTable = {
 9326|  8.99k|                {EbtInt8,   {EbtInt, EbtInt64}},
 9327|  8.99k|                {EbtInt16,  {EbtInt, EbtInt64}},
 9328|  8.99k|                {EbtInt,    {EbtInt64}},
 9329|  8.99k|                {EbtUint8,  {EbtUint, EbtUint64}},
 9330|  8.99k|                {EbtUint16, {EbtUint, EbtUint64}},
 9331|  8.99k|                {EbtUint,   {EbtUint64}},
 9332|  8.99k|            };
 9333|  8.99k|            auto source = conversionTable.find(from.getBasicType());
 9334|  8.99k|            if (source != conversionTable.end()) {
 9335|  8.99k|                for (auto destination : source->second) {
 9336|  8.99k|                    if (to2.getBasicType() == destination &&
 9337|  8.99k|                        to1.getBasicType() != destination) // to2 is better then to1
 9338|  8.99k|                        return true;
 9339|  8.99k|                    else if (to1.getBasicType() == destination &&
 9340|  8.99k|                             to2.getBasicType() != destination) // This means to1 is better then to2
 9341|  8.99k|                        return false;
 9342|  8.99k|                }
 9343|  8.99k|            }
 9344|  8.99k|        }
 9345|       |        // 2. float -> double is better
 9346|  8.99k|        if (from.getBasicType() == EbtFloat) {
 9347|  8.99k|            if (to2.getBasicType() == EbtDouble && to1.getBasicType() != EbtDouble)
 9348|  8.99k|                return true;
 9349|  8.99k|        }
 9350|       |
 9351|       |        // 3. -> float is better than -> double
 9352|  8.99k|        return to2.getBasicType() == EbtFloat && to1.getBasicType() == EbtDouble;
 9353|  8.99k|    };
 9354|       |
 9355|       |    // for ambiguity reporting
 9356|  8.99k|    bool tie = false;
 9357|       |
 9358|       |    // send to the generic selector
 9359|  8.99k|    const TFunction* bestMatch = selectFunction(candidateList, call, convertible, better, tie);
 9360|       |
 9361|  8.99k|    if (bestMatch == nullptr)
  ------------------
  |  Branch (9361:9): [True: 6.14k, False: 2.85k]
  ------------------
 9362|  6.14k|        error(loc, "no matching overloaded function found", call.getName().c_str(), "");
 9363|  2.85k|    else if (tie)
  ------------------
  |  Branch (9363:14): [True: 304, False: 2.55k]
  ------------------
 9364|    304|        error(loc, "ambiguous best function under implicit type conversion", call.getName().c_str(), "");
 9365|       |
 9366|  8.99k|    return bestMatch;
 9367|  32.3k|}
_ZN7glslang13TParseContext25findFunctionExplicitTypesERKNS_10TSourceLocERKNS_9TFunctionERb:
 9379|  5.40k|{
 9380|       |    // first, look for an exact match
 9381|  5.40k|    TSymbol* symbol = symbolTable.find(call.getMangledName(), &builtIn);
 9382|  5.40k|    if (symbol)
  ------------------
  |  Branch (9382:9): [True: 3.53k, False: 1.86k]
  ------------------
 9383|  3.53k|        return symbol->getAsFunction();
 9384|       |
 9385|       |    // no exact match, use the generic selector, parameterized by the GLSL rules
 9386|       |
 9387|       |    // create list of candidates to send
 9388|  1.86k|    TVector<const TFunction*> candidateList;
 9389|  1.86k|    symbolTable.findFunctionNameList(call.getMangledName(), candidateList, builtIn);
 9390|       |
 9391|       |    // can 'from' convert to 'to'?
 9392|  1.86k|    const auto convertible = [this,builtIn](const TType& from, const TType& to, TOperator op, int param) -> bool {
 9393|  1.86k|        if (from == to)
 9394|  1.86k|            return true;
 9395|  1.86k|        if (from.coopMatParameterOK(to))
 9396|  1.86k|            return true;
 9397|  1.86k|        if (from.tensorParameterOK(to))
 9398|  1.86k|            return true;
 9399|  1.86k|        if (from.getBasicType() == EbtFunction && to.getBasicType() == EbtFunction)
 9400|  1.86k|            return true;
 9401|  1.86k|        if (from.coopVecParameterOK(to))
 9402|  1.86k|            return true;
 9403|       |        // Allow a sized array to be passed through an unsized array parameter, for coopMatLoad/Store functions
 9404|  1.86k|        if (builtIn && from.isArray() && to.isUnsizedArray()) {
 9405|  1.86k|            TType fromElementType(from, 0);
 9406|  1.86k|            TType toElementType(to, 0);
 9407|       |            // Load/store tensor functions allow any element type for the pointer
 9408|  1.86k|            if ((op == EOpCooperativeMatrixLoadTensorNV || op == EOpCooperativeMatrixStoreTensorNV) &&
 9409|  1.86k|                param == 1) {
 9410|  1.86k|                return true;
 9411|  1.86k|            }
 9412|  1.86k|            if (fromElementType == toElementType)
 9413|  1.86k|                return true;
 9414|  1.86k|        }
 9415|  1.86k|        if (TType::vectorAndLongVectorMatch(from, to))
 9416|  1.86k|            return true;
 9417|  1.86k|        if (from.isArray() || to.isArray() || ! from.sameElementShape(to))
 9418|  1.86k|            return false;
 9419|  1.86k|        if (from.isCoopMat() && to.isCoopMat())
 9420|  1.86k|            return from.sameCoopMatBaseType(to);
 9421|  1.86k|        if (from.isCoopVecNV() && to.isCoopVecNV())
 9422|  1.86k|            return from.sameCoopVecBaseType(to);
 9423|  1.86k|        if (from.isLongVector() && to.isLongVector())
 9424|  1.86k|            return from.sameLongVectorBaseType(to);
 9425|  1.86k|        if (from.isTensorARM() && to.isTensorARM())
 9426|  1.86k|            return from.sameTensorBaseTypeARM(to);
 9427|  1.86k|        return intermediate.canImplicitlyPromote(from.getBasicType(), to.getBasicType());
 9428|  1.86k|    };
 9429|       |
 9430|       |    // Is 'to2' a better conversion than 'to1'?
 9431|       |    // Ties should not be considered as better.
 9432|       |    // Assumes 'convertible' already said true.
 9433|  1.86k|    const auto better = [this](const TType& from, const TType& to1, const TType& to2) -> bool {
 9434|       |        // 1. exact match
 9435|  1.86k|        bool to2Matches = from == to2 || (from.isLongVector() && to2.getBasicType() == EbtLongVector);
 9436|  1.86k|        bool to1Matches = from == to1 || (from.isLongVector() && to1.getBasicType() == EbtLongVector);
 9437|  1.86k|        if (to2Matches)
 9438|  1.86k|            return !to1Matches;
 9439|  1.86k|        if (to1Matches)
 9440|  1.86k|            return false;
 9441|       |
 9442|       |        // 2. Promotion (integral, floating-point) is better
 9443|  1.86k|        TBasicType from_type = from.getBasicType();
 9444|  1.86k|        TBasicType to1_type = to1.getBasicType();
 9445|  1.86k|        TBasicType to2_type = to2.getBasicType();
 9446|  1.86k|        bool isPromotion1 = (intermediate.isIntegralPromotion(from_type, to1_type) ||
 9447|  1.86k|                             intermediate.isFPPromotion(from_type, to1_type));
 9448|  1.86k|        bool isPromotion2 = (intermediate.isIntegralPromotion(from_type, to2_type) ||
 9449|  1.86k|                             intermediate.isFPPromotion(from_type, to2_type));
 9450|  1.86k|        if (isPromotion2)
 9451|  1.86k|            return !isPromotion1;
 9452|  1.86k|        if(isPromotion1)
 9453|  1.86k|            return false;
 9454|       |
 9455|       |        // 3. Conversion (integral, floating-point , floating-integral)
 9456|  1.86k|        bool isConversion1 = (intermediate.isIntegralConversion(from_type, to1_type) ||
 9457|  1.86k|                              intermediate.isFPConversion(from_type, to1_type) ||
 9458|  1.86k|                              intermediate.isFPIntegralConversion(from_type, to1_type));
 9459|  1.86k|        bool isConversion2 = (intermediate.isIntegralConversion(from_type, to2_type) ||
 9460|  1.86k|                              intermediate.isFPConversion(from_type, to2_type) ||
 9461|  1.86k|                              intermediate.isFPIntegralConversion(from_type, to2_type));
 9462|       |
 9463|  1.86k|        return isConversion2 && !isConversion1;
 9464|  1.86k|    };
 9465|       |
 9466|       |    // for ambiguity reporting
 9467|  1.86k|    bool tie = false;
 9468|       |
 9469|       |    // send to the generic selector
 9470|  1.86k|    const TFunction* bestMatch = selectFunction(candidateList, call, convertible, better, tie);
 9471|       |
 9472|  1.86k|    if (bestMatch == nullptr)
  ------------------
  |  Branch (9472:9): [True: 1.57k, False: 288]
  ------------------
 9473|  1.57k|        error(loc, "no matching overloaded function found", call.getName().c_str(), "");
 9474|    288|    else if (tie)
  ------------------
  |  Branch (9474:14): [True: 1, False: 287]
  ------------------
 9475|      1|        error(loc, "ambiguous best function under implicit type conversion", call.getName().c_str(), "");
 9476|       |
 9477|  1.86k|    return bestMatch;
 9478|  5.40k|}
_ZN7glslang13TParseContext19declareTypeDefaultsERKNS_10TSourceLocERKNS_11TPublicTypeE:
 9545|  1.44k|{
 9546|  1.44k|    if (publicType.basicType == EbtAtomicUint && publicType.qualifier.hasBinding()) {
  ------------------
  |  Branch (9546:9): [True: 0, False: 1.44k]
  |  Branch (9546:50): [True: 0, False: 0]
  ------------------
 9547|      0|        if (publicType.qualifier.layoutBinding >= resources.maxAtomicCounterBindings) {
  ------------------
  |  Branch (9547:13): [True: 0, False: 0]
  ------------------
 9548|      0|            error(loc, "atomic_uint binding is too large", "binding", "");
 9549|      0|            return;
 9550|      0|        }
 9551|      0|        if (publicType.qualifier.hasOffset())
  ------------------
  |  Branch (9551:13): [True: 0, False: 0]
  ------------------
 9552|      0|            atomicUintOffsets[publicType.qualifier.layoutBinding] = publicType.qualifier.layoutOffset;
 9553|      0|        return;
 9554|      0|    }
 9555|       |
 9556|  1.44k|    if (publicType.arraySizes) {
  ------------------
  |  Branch (9556:9): [True: 3, False: 1.44k]
  ------------------
 9557|      3|        error(loc, "expect an array name", "", "");
 9558|      3|    }
 9559|       |
 9560|       |    // A declaration without a variable name declares no payload, so the qualifier would be silently dropped
 9561|  1.44k|    if (publicType.qualifier.storage == EvqtaskPayloadSharedEXT)
  ------------------
  |  Branch (9561:9): [True: 0, False: 1.44k]
  ------------------
 9562|      0|        error(loc, "can only be used when declaring a variable", "taskPayloadSharedEXT", "");
 9563|       |
 9564|  1.44k|    if (publicType.qualifier.hasLayout() && !publicType.qualifier.hasBufferReference())
  ------------------
  |  Branch (9564:9): [True: 1, False: 1.44k]
  |  Branch (9564:45): [True: 1, False: 0]
  ------------------
 9565|      1|        warn(loc, "useless application of layout qualifier", "layout", "");
 9566|  1.44k|}
_ZN7glslang13TParseContext19typeParametersCheckERKNS_10TSourceLocERKNS_11TPublicTypeE:
 9569|  35.4M|{
 9570|  35.4M|    if (parsingBuiltins)
  ------------------
  |  Branch (9570:9): [True: 35.2M, False: 219k]
  ------------------
 9571|  35.2M|        return;
 9572|       |    // A structure type parameter only carries its basic type, not its member list, so the
 9573|       |    // parameterized type would be a structure with no members. Report it and fall back to
 9574|       |    // float so the rest of the declaration sees a well-formed type.
 9575|   219k|    if (publicType.typeParameters && publicType.typeParameters->basicType == EbtStruct) {
  ------------------
  |  Branch (9575:9): [True: 0, False: 219k]
  |  Branch (9575:38): [True: 0, False: 0]
  ------------------
 9576|      0|        error(loc, "structure type not allowed as type parameter", "", "");
 9577|      0|        publicType.typeParameters->basicType = EbtFloat;
 9578|      0|    }
 9579|   219k|    if (publicType.isCoopmatKHR()) {
  ------------------
  |  Branch (9579:9): [True: 0, False: 219k]
  ------------------
 9580|      0|        if (publicType.typeParameters == nullptr) {
  ------------------
  |  Branch (9580:13): [True: 0, False: 0]
  ------------------
 9581|      0|            error(loc, "coopmat missing type parameters", "", "");
 9582|      0|            return;
 9583|      0|        }
 9584|      0|        switch (publicType.typeParameters->basicType) {
 9585|      0|        case EbtFloat:
  ------------------
  |  Branch (9585:9): [True: 0, False: 0]
  ------------------
 9586|      0|        case EbtFloat16:
  ------------------
  |  Branch (9586:9): [True: 0, False: 0]
  ------------------
 9587|      0|        case EbtBFloat16:
  ------------------
  |  Branch (9587:9): [True: 0, False: 0]
  ------------------
 9588|      0|        case EbtFloatE5M2:
  ------------------
  |  Branch (9588:9): [True: 0, False: 0]
  ------------------
 9589|      0|        case EbtFloatE4M3:
  ------------------
  |  Branch (9589:9): [True: 0, False: 0]
  ------------------
 9590|      0|        case EbtInt:
  ------------------
  |  Branch (9590:9): [True: 0, False: 0]
  ------------------
 9591|      0|        case EbtInt8:
  ------------------
  |  Branch (9591:9): [True: 0, False: 0]
  ------------------
 9592|      0|        case EbtInt16:
  ------------------
  |  Branch (9592:9): [True: 0, False: 0]
  ------------------
 9593|      0|        case EbtUint:
  ------------------
  |  Branch (9593:9): [True: 0, False: 0]
  ------------------
 9594|      0|        case EbtUint8:
  ------------------
  |  Branch (9594:9): [True: 0, False: 0]
  ------------------
 9595|      0|        case EbtUint16:
  ------------------
  |  Branch (9595:9): [True: 0, False: 0]
  ------------------
 9596|      0|        case EbtSpirvType:
  ------------------
  |  Branch (9596:9): [True: 0, False: 0]
  ------------------
 9597|      0|            break;
 9598|      0|        default:
  ------------------
  |  Branch (9598:9): [True: 0, False: 0]
  ------------------
 9599|      0|            error(loc, "coopmat invalid basic type", TType::getBasicString(publicType.typeParameters->basicType), "");
 9600|      0|            break;
 9601|      0|        }
 9602|      0|        if (publicType.typeParameters->arraySizes->getNumDims() != 4) {
  ------------------
  |  Branch (9602:13): [True: 0, False: 0]
  ------------------
 9603|      0|            error(loc, "coopmat incorrect number of type parameters", "", "");
 9604|      0|            return;
 9605|      0|        }
 9606|      0|        int use = publicType.typeParameters->arraySizes->getDimSize(3);
 9607|      0|        if (use < 0 || use > 2) {
  ------------------
  |  Branch (9607:13): [True: 0, False: 0]
  |  Branch (9607:24): [True: 0, False: 0]
  ------------------
 9608|      0|            error(loc, "coopmat invalid matrix Use", "", "");
 9609|      0|            return;
 9610|      0|        }
 9611|      0|    }
 9612|   219k|    if (publicType.isTensorLayoutNV()) {
  ------------------
  |  Branch (9612:9): [True: 0, False: 219k]
  ------------------
 9613|      0|        if (publicType.typeParameters == nullptr) {
  ------------------
  |  Branch (9613:13): [True: 0, False: 0]
  ------------------
 9614|      0|            error(loc, "tensorLayout missing type parameters", "", "");
 9615|      0|            return;
 9616|      0|        }
 9617|      0|        if (publicType.typeParameters->arraySizes->getNumDims() > 2) {
  ------------------
  |  Branch (9617:13): [True: 0, False: 0]
  ------------------
 9618|      0|            error(loc, "tensorLayout incorrect number of type parameters", "", "");
 9619|      0|            return;
 9620|      0|        }
 9621|      0|        if (publicType.typeParameters && publicType.typeParameters->arraySizes->getNumDims() < 2) {
  ------------------
  |  Branch (9621:13): [True: 0, False: 0]
  |  Branch (9621:42): [True: 0, False: 0]
  ------------------
 9622|      0|            while (publicType.typeParameters->arraySizes->getNumDims() < 2) {
  ------------------
  |  Branch (9622:20): [True: 0, False: 0]
  ------------------
 9623|      0|                publicType.typeParameters->arraySizes->addInnerSize(0);
 9624|      0|            }
 9625|      0|        }
 9626|      0|    }
 9627|   219k|    if (publicType.isTensorViewNV()) {
  ------------------
  |  Branch (9627:9): [True: 0, False: 219k]
  ------------------
 9628|      0|        if (publicType.typeParameters == nullptr) {
  ------------------
  |  Branch (9628:13): [True: 0, False: 0]
  ------------------
 9629|      0|            error(loc, "tensorView missing type parameters", "", "");
 9630|      0|            return;
 9631|      0|        }
 9632|      0|        if (publicType.typeParameters->arraySizes->getNumDims() < 1 ||
  ------------------
  |  Branch (9632:13): [True: 0, False: 0]
  ------------------
 9633|      0|            publicType.typeParameters->arraySizes->getNumDims() > 7) {
  ------------------
  |  Branch (9633:13): [True: 0, False: 0]
  ------------------
 9634|      0|            error(loc, "tensorView incorrect number of type parameters", "", "");
 9635|      0|            return;
 9636|      0|        }
 9637|      0|        if (publicType.typeParameters && publicType.typeParameters->arraySizes->getNumDims() < 7) {
  ------------------
  |  Branch (9637:13): [True: 0, False: 0]
  |  Branch (9637:42): [True: 0, False: 0]
  ------------------
 9638|      0|            uint32_t numDims = publicType.typeParameters->arraySizes->getNumDims();
 9639|      0|            while (numDims < 7) {
  ------------------
  |  Branch (9639:20): [True: 0, False: 0]
  ------------------
 9640|      0|                uint32_t dim = (numDims == 1) ? 0u : (numDims - 2);
  ------------------
  |  Branch (9640:32): [True: 0, False: 0]
  ------------------
 9641|      0|                publicType.typeParameters->arraySizes->addInnerSize(dim);
 9642|      0|                numDims++;
 9643|      0|            }
 9644|      0|        }
 9645|      0|    }
 9646|   219k|    if (publicType.isTensorARM()) {
  ------------------
  |  Branch (9646:9): [True: 0, False: 219k]
  ------------------
 9647|      0|        if (publicType.typeParameters == nullptr) {
  ------------------
  |  Branch (9647:13): [True: 0, False: 0]
  ------------------
 9648|      0|            error(loc, "tensor type is missing type parameters", "", "");
 9649|      0|            return;
 9650|      0|        }
 9651|      0|        if (publicType.typeParameters->arraySizes == nullptr) {
  ------------------
  |  Branch (9651:13): [True: 0, False: 0]
  ------------------
 9652|      0|            error(loc, "tensor type is missing rank information", "", "");
 9653|      0|            return;
 9654|      0|        }
 9655|      0|        if (publicType.typeParameters->arraySizes->getNumDims() != 1) {
  ------------------
  |  Branch (9655:13): [True: 0, False: 0]
  ------------------
 9656|      0|            error(loc, "tensor type requires exactly 1 rank specifier", "", "");
 9657|      0|            return;
 9658|      0|        }
 9659|      0|        if (publicType.typeParameters->arraySizes->getDimSize(0) < 1) {
  ------------------
  |  Branch (9659:13): [True: 0, False: 0]
  ------------------
 9660|      0|            error(loc, "tensor rank must be greater than or equal to 1", "", "");
 9661|      0|            return;
 9662|      0|        }
 9663|      0|    }
 9664|   219k|    if (publicType.isLongVector() && !isValidLongVectorElseError(loc, publicType)) {
  ------------------
  |  Branch (9664:9): [True: 0, False: 219k]
  |  Branch (9664:38): [True: 0, False: 0]
  ------------------
 9665|      0|        return;
 9666|      0|    }
 9667|   219k|}
_ZN7glslang13TParseContext15declareVariableERKNS_10TSourceLocERNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS_11TPublicTypeEPNS_11TArraySizesEPNS_12TIntermTypedE:
10040|   675k|{
10041|       |    // Make a fresh type that combines the characteristics from the individual
10042|       |    // identifier syntax and the declaration-type syntax.
10043|   675k|    TType type(publicType);
10044|   675k|    type.transferArraySizes(arraySizes);
10045|   675k|    type.copyArrayInnerSizes(publicType.arraySizes);
10046|   675k|    arrayOfArrayVersionCheck(loc, type.getArraySizes());
10047|       |
10048|   675k|    if (initializer) {
  ------------------
  |  Branch (10048:9): [True: 392k, False: 282k]
  ------------------
10049|   392k|        if (type.getBasicType() == EbtRayQuery) {
  ------------------
  |  Branch (10049:13): [True: 0, False: 392k]
  ------------------
10050|      0|            error(loc, "ray queries can only be initialized by using the rayQueryInitializeEXT intrinsic:", "=", "%s", identifier.c_str());
10051|   392k|        } else if ((type.getBasicType() == EbtHitObjectNV) || (type.getBasicType() == EbtHitObjectEXT)) {
  ------------------
  |  Branch (10051:20): [True: 0, False: 392k]
  |  Branch (10051:63): [True: 0, False: 392k]
  ------------------
10052|      0|            error(loc, "hit objects cannot be initialized using initializers", "=", "%s", identifier.c_str());
10053|      0|        }
10054|       |
10055|   392k|    }
10056|       |
10057|   675k|    if (type.isCoopMatKHR()) {
  ------------------
  |  Branch (10057:9): [True: 0, False: 675k]
  ------------------
10058|      0|        intermediate.setUseVulkanMemoryModel();
10059|      0|        intermediate.setUseStorageBuffer();
10060|       |
10061|      0|        if (!publicType.typeParameters || !publicType.typeParameters->arraySizes ||
  ------------------
  |  Branch (10061:13): [True: 0, False: 0]
  |  Branch (10061:43): [True: 0, False: 0]
  ------------------
10062|      0|            publicType.typeParameters->arraySizes->getNumDims() != 4) {
  ------------------
  |  Branch (10062:13): [True: 0, False: 0]
  ------------------
10063|      0|            error(loc, "unexpected number type parameters", identifier.c_str(), "");
10064|      0|        }
10065|      0|        if (publicType.typeParameters) {
  ------------------
  |  Branch (10065:13): [True: 0, False: 0]
  ------------------
10066|      0|            if (!isTypeFloat(publicType.typeParameters->basicType) &&
  ------------------
  |  Branch (10066:17): [True: 0, False: 0]
  ------------------
10067|      0|                !isTypeInt(publicType.typeParameters->basicType) && publicType.typeParameters->basicType != EbtSpirvType) {
  ------------------
  |  Branch (10067:17): [True: 0, False: 0]
  |  Branch (10067:69): [True: 0, False: 0]
  ------------------
10068|      0|                error(loc, "expected 8, 16, 32, or 64 bit signed or unsigned integer or 16, 32, or 64 bit float type", identifier.c_str(), "");
10069|      0|            }
10070|      0|        }
10071|      0|    }
10072|   675k|    else if (type.isCoopMatNV()) {
  ------------------
  |  Branch (10072:14): [True: 0, False: 675k]
  ------------------
10073|      0|        intermediate.setUseVulkanMemoryModel();
10074|      0|        intermediate.setUseStorageBuffer();
10075|       |
10076|      0|        if (!publicType.typeParameters || !publicType.typeParameters->arraySizes || publicType.typeParameters->arraySizes->getNumDims() != 4) {
  ------------------
  |  Branch (10076:13): [True: 0, False: 0]
  |  Branch (10076:43): [True: 0, False: 0]
  |  Branch (10076:85): [True: 0, False: 0]
  ------------------
10077|      0|            error(loc, "expected four type parameters", identifier.c_str(), "");
10078|      0|        } else {
10079|      0|            if (isTypeFloat(publicType.basicType) &&
  ------------------
  |  Branch (10079:17): [True: 0, False: 0]
  ------------------
10080|      0|                publicType.typeParameters->arraySizes->getDimSize(0) != 16 &&
  ------------------
  |  Branch (10080:17): [True: 0, False: 0]
  ------------------
10081|      0|                publicType.typeParameters->arraySizes->getDimSize(0) != 32 &&
  ------------------
  |  Branch (10081:17): [True: 0, False: 0]
  ------------------
10082|      0|                publicType.typeParameters->arraySizes->getDimSize(0) != 64) {
  ------------------
  |  Branch (10082:17): [True: 0, False: 0]
  ------------------
10083|      0|                error(loc, "expected 16, 32, or 64 bits for first type parameter", identifier.c_str(), "");
10084|      0|            }
10085|      0|            if (isTypeInt(publicType.basicType) &&
  ------------------
  |  Branch (10085:17): [True: 0, False: 0]
  ------------------
10086|      0|                publicType.typeParameters->arraySizes->getDimSize(0) != 8 &&
  ------------------
  |  Branch (10086:17): [True: 0, False: 0]
  ------------------
10087|      0|                publicType.typeParameters->arraySizes->getDimSize(0) != 16 &&
  ------------------
  |  Branch (10087:17): [True: 0, False: 0]
  ------------------
10088|      0|                publicType.typeParameters->arraySizes->getDimSize(0) != 32) {
  ------------------
  |  Branch (10088:17): [True: 0, False: 0]
  ------------------
10089|      0|                error(loc, "expected 8, 16, or 32 bits for first type parameter", identifier.c_str(), "");
10090|      0|            }
10091|      0|        }
10092|   675k|    } else if (type.isTensorLayoutNV()) {
  ------------------
  |  Branch (10092:16): [True: 0, False: 675k]
  ------------------
10093|      0|        if (!publicType.typeParameters || publicType.typeParameters->arraySizes->getNumDims() > 2) {
  ------------------
  |  Branch (10093:13): [True: 0, False: 0]
  |  Branch (10093:43): [True: 0, False: 0]
  ------------------
10094|      0|            error(loc, "expected 1-2 type parameters", identifier.c_str(), "");
10095|      0|        }
10096|   675k|    } else if (type.isTensorViewNV()) {
  ------------------
  |  Branch (10096:16): [True: 0, False: 675k]
  ------------------
10097|      0|        if (!publicType.typeParameters || publicType.typeParameters->arraySizes->getNumDims() > 7) {
  ------------------
  |  Branch (10097:13): [True: 0, False: 0]
  |  Branch (10097:43): [True: 0, False: 0]
  ------------------
10098|      0|            error(loc, "expected 1-7 type parameters", identifier.c_str(), "");
10099|      0|        }
10100|   675k|    } else if (type.isCoopVecNV()) {
  ------------------
  |  Branch (10100:16): [True: 0, False: 675k]
  ------------------
10101|      0|        intermediate.setUseVulkanMemoryModel();
10102|      0|        intermediate.setUseStorageBuffer();
10103|       |
10104|      0|        if (!publicType.typeParameters || !publicType.typeParameters->arraySizes || publicType.typeParameters->arraySizes->getNumDims() != 1) {
  ------------------
  |  Branch (10104:13): [True: 0, False: 0]
  |  Branch (10104:43): [True: 0, False: 0]
  |  Branch (10104:85): [True: 0, False: 0]
  ------------------
10105|      0|            error(loc, "expected two type parameters", identifier.c_str(), "");
10106|      0|        } else if (publicType.typeParameters->arraySizes->getDimNode(0) == nullptr && publicType.typeParameters->arraySizes->getDimSize(0) <= 0) {
  ------------------
  |  Branch (10106:20): [True: 0, False: 0]
  |  Branch (10106:87): [True: 0, False: 0]
  ------------------
10107|      0|            error(loc, "expected positive number of components", identifier.c_str(), "");
10108|      0|        }
10109|   675k|    } else if (type.isLongVector()) {
  ------------------
  |  Branch (10109:16): [True: 0, False: 675k]
  ------------------
10110|      0|        intermediate.setUseStorageBuffer();
10111|       |
10112|      0|        if (!publicType.typeParameters || !publicType.typeParameters->arraySizes || publicType.typeParameters->arraySizes->getNumDims() != 1) {
  ------------------
  |  Branch (10112:13): [True: 0, False: 0]
  |  Branch (10112:43): [True: 0, False: 0]
  |  Branch (10112:85): [True: 0, False: 0]
  ------------------
10113|      0|            error(loc, "expected two type parameters", identifier.c_str(), "");
10114|      0|        } else if (publicType.typeParameters->arraySizes->getDimNode(0) == nullptr && publicType.typeParameters->arraySizes->getDimSize(0) <= 0) {
  ------------------
  |  Branch (10114:20): [True: 0, False: 0]
  |  Branch (10114:87): [True: 0, False: 0]
  ------------------
10115|      0|            error(loc, "expected positive number of components", identifier.c_str(), "");
10116|      0|        }
10117|   675k|    } else if (type.isTensorARM()) {
  ------------------
  |  Branch (10117:16): [True: 0, False: 675k]
  ------------------
10118|      0|        intermediate.setUseStorageBuffer();
10119|       |
10120|      0|        if (!publicType.typeParameters || publicType.typeParameters->arraySizes->getNumDims() != 1) {
  ------------------
  |  Branch (10120:13): [True: 0, False: 0]
  |  Branch (10120:43): [True: 0, False: 0]
  ------------------
10121|      0|            error(loc, "expected two type parameters", identifier.c_str(), "");
10122|      0|        }
10123|      0|        if (publicType.typeParameters) {
  ------------------
  |  Branch (10123:13): [True: 0, False: 0]
  ------------------
10124|      0|            if (publicType.typeParameters->basicType != EbtBool &&
  ------------------
  |  Branch (10124:17): [True: 0, False: 0]
  ------------------
10125|      0|                publicType.typeParameters->basicType != EbtInt8 &&
  ------------------
  |  Branch (10125:17): [True: 0, False: 0]
  ------------------
10126|      0|                publicType.typeParameters->basicType != EbtInt16 &&
  ------------------
  |  Branch (10126:17): [True: 0, False: 0]
  ------------------
10127|      0|                publicType.typeParameters->basicType != EbtInt &&
  ------------------
  |  Branch (10127:17): [True: 0, False: 0]
  ------------------
10128|      0|                publicType.typeParameters->basicType != EbtInt64 &&
  ------------------
  |  Branch (10128:17): [True: 0, False: 0]
  ------------------
10129|      0|                publicType.typeParameters->basicType != EbtUint8 &&
  ------------------
  |  Branch (10129:17): [True: 0, False: 0]
  ------------------
10130|      0|                publicType.typeParameters->basicType != EbtUint16 &&
  ------------------
  |  Branch (10130:17): [True: 0, False: 0]
  ------------------
10131|      0|                publicType.typeParameters->basicType != EbtUint &&
  ------------------
  |  Branch (10131:17): [True: 0, False: 0]
  ------------------
10132|      0|                publicType.typeParameters->basicType != EbtUint64 &&
  ------------------
  |  Branch (10132:17): [True: 0, False: 0]
  ------------------
10133|      0|                publicType.typeParameters->basicType != EbtFloat16 &&
  ------------------
  |  Branch (10133:17): [True: 0, False: 0]
  ------------------
10134|      0|                publicType.typeParameters->basicType != EbtFloat &&
  ------------------
  |  Branch (10134:17): [True: 0, False: 0]
  ------------------
10135|      0|                publicType.typeParameters->basicType != EbtDouble &&
  ------------------
  |  Branch (10135:17): [True: 0, False: 0]
  ------------------
10136|      0|                publicType.typeParameters->basicType != EbtBFloat16 &&
  ------------------
  |  Branch (10136:17): [True: 0, False: 0]
  ------------------
10137|      0|                publicType.typeParameters->basicType != EbtFloatE5M2 &&
  ------------------
  |  Branch (10137:17): [True: 0, False: 0]
  ------------------
10138|      0|                publicType.typeParameters->basicType != EbtFloatE4M3) {
  ------------------
  |  Branch (10138:17): [True: 0, False: 0]
  ------------------
10139|      0|                error(loc, "expected bool, integer or floating point type parameter", identifier.c_str(), "");
10140|      0|            }
10141|       |
10142|      0|            if (publicType.typeParameters->basicType == EbtBFloat16) {
  ------------------
  |  Branch (10142:17): [True: 0, False: 0]
  ------------------
10143|      0|                requireExtensions(loc, 1, &E_GL_ARM_tensors_bfloat16, "tensor with bfloat16_t type");
10144|      0|            }
10145|       |
10146|      0|            if (publicType.typeParameters->basicType == EbtFloatE5M2) {
  ------------------
  |  Branch (10146:17): [True: 0, False: 0]
  ------------------
10147|      0|                requireExtensions(loc, 1, &E_GL_ARM_tensors_float_e5m2, "tensor with floate5m2_t type");
10148|      0|            }
10149|       |
10150|      0|            if (publicType.typeParameters->basicType == EbtFloatE4M3) {
  ------------------
  |  Branch (10150:17): [True: 0, False: 0]
  ------------------
10151|      0|                requireExtensions(loc, 1, &E_GL_ARM_tensors_float_e4m3, "tensor with floate4m3_t type");
10152|      0|            }
10153|      0|        }
10154|   675k|    } else {
10155|   675k|        if (publicType.typeParameters && publicType.typeParameters->arraySizes->getNumDims() != 0) {
  ------------------
  |  Branch (10155:13): [True: 0, False: 675k]
  |  Branch (10155:42): [True: 0, False: 0]
  ------------------
10156|      0|            error(loc, "unexpected type parameters", identifier.c_str(), "");
10157|      0|        }
10158|   675k|    }
10159|       |
10160|   675k|    if (voidErrorCheck(loc, identifier, type.getBasicType()))
  ------------------
  |  Branch (10160:9): [True: 11, False: 675k]
  ------------------
10161|     11|        return nullptr;
10162|       |
10163|   675k|    if (initializer)
  ------------------
  |  Branch (10163:9): [True: 392k, False: 282k]
  ------------------
10164|   392k|        rValueErrorCheck(loc, "initializer", initializer);
10165|   282k|    else
10166|   282k|        nonInitConstCheck(loc, identifier, type);
10167|       |
10168|   675k|    samplerCheck(loc, type, identifier, initializer);
10169|   675k|    transparentOpaqueCheck(loc, type, identifier);
10170|   675k|    atomicUintCheck(loc, type, identifier);
10171|   675k|    accStructCheck(loc, type, identifier);
10172|   675k|    hitObjectNVCheck(loc, type, identifier);
10173|   675k|    hitObjectEXTCheck(loc, type, identifier);
10174|   675k|    checkAndResizeMeshViewDim(loc, type, /*isBlockMember*/ false);
10175|   675k|    if (type.getQualifier().storage == EvqConst && type.containsReference()) {
  ------------------
  |  Branch (10175:9): [True: 285k, False: 389k]
  |  Branch (10175:52): [True: 0, False: 285k]
  ------------------
10176|      0|        error(loc, "variables with reference type can't have qualifier 'const'", "qualifier", "");
10177|      0|    }
10178|       |
10179|   675k|    if (type.getQualifier().storage != EvqUniform && type.getQualifier().storage != EvqBuffer) {
  ------------------
  |  Branch (10179:9): [True: 663k, False: 11.8k]
  |  Branch (10179:54): [True: 663k, False: 0]
  ------------------
10180|   663k|        if (type.contains16BitFloat())
  ------------------
  |  Branch (10180:13): [True: 1.19k, False: 662k]
  ------------------
10181|  1.19k|            requireFloat16Arithmetic(loc, "qualifier", "float16 types can only be in uniform block or buffer storage");
10182|   663k|        if (type.contains16BitInt())
  ------------------
  |  Branch (10182:13): [True: 2.55k, False: 660k]
  ------------------
10183|  2.55k|            requireInt16Arithmetic(loc, "qualifier", "(u)int16 types can only be in uniform block or buffer storage");
10184|   663k|        if (type.contains8BitInt())
  ------------------
  |  Branch (10184:13): [True: 1.15k, False: 662k]
  ------------------
10185|  1.15k|            requireInt8Arithmetic(loc, "qualifier", "(u)int8 types can only be in uniform block or buffer storage");
10186|   663k|    }
10187|   675k|    if (type.getBasicType() == EbtBFloat16 &&
  ------------------
  |  Branch (10187:9): [True: 0, False: 675k]
  ------------------
10188|      0|        (type.getQualifier().storage == EvqVaryingIn || type.getQualifier().storage == EvqVaryingOut))
  ------------------
  |  Branch (10188:10): [True: 0, False: 0]
  |  Branch (10188:57): [True: 0, False: 0]
  ------------------
10189|      0|        error(loc, "qualifier", "bfloat16 types not allowed as input/output", "");
10190|       |
10191|   675k|    if ((type.getBasicType() == EbtFloatE5M2 || type.getBasicType() == EbtFloatE4M3) &&
  ------------------
  |  Branch (10191:10): [True: 0, False: 675k]
  |  Branch (10191:49): [True: 0, False: 675k]
  ------------------
10192|      0|        (type.getQualifier().storage == EvqVaryingIn || type.getQualifier().storage == EvqVaryingOut))
  ------------------
  |  Branch (10192:10): [True: 0, False: 0]
  |  Branch (10192:57): [True: 0, False: 0]
  ------------------
10193|      0|        error(loc, "qualifier", "fp8 types not allowed as input/output", "");
10194|       |
10195|   675k|    if (type.containsOcpMicroscalingFloat() &&
  ------------------
  |  Branch (10195:9): [True: 0, False: 675k]
  ------------------
10196|      0|        (type.getQualifier().storage == EvqVaryingIn || type.getQualifier().storage == EvqVaryingOut))
  ------------------
  |  Branch (10196:10): [True: 0, False: 0]
  |  Branch (10196:57): [True: 0, False: 0]
  ------------------
10197|      0|        error(loc, "qualifier", "microscaling types not allowed as input/output", "");
10198|       |
10199|   675k|    if (type.containsOcpMicroscalingNonByteFloat() &&
  ------------------
  |  Branch (10199:9): [True: 0, False: 675k]
  ------------------
10200|      0|        (type.getQualifier().storage == EvqUniform || type.getQualifier().storage == EvqBuffer || type.getQualifier().storage == EvqShared))
  ------------------
  |  Branch (10200:10): [True: 0, False: 0]
  |  Branch (10200:55): [True: 0, False: 0]
  |  Branch (10200:99): [True: 0, False: 0]
  ------------------
10201|      0|        error(loc, "qualifier", "sub-byte sized types not allowed in storage class", "");
10202|       |
10203|   675k|    if (type.getQualifier().storage == EvqtaskPayloadSharedEXT)
  ------------------
  |  Branch (10203:9): [True: 0, False: 675k]
  ------------------
10204|      0|        intermediate.addTaskPayloadEXTCount();
10205|   675k|    if (type.getQualifier().storage == EvqShared && type.containsCoopMat())
  ------------------
  |  Branch (10205:9): [True: 0, False: 675k]
  |  Branch (10205:53): [True: 0, False: 0]
  ------------------
10206|      0|        error(loc, "qualifier", "Cooperative matrix types must not be used in shared memory", "");
10207|       |
10208|   675k|    if (profile == EEsProfile) {
  ------------------
  |  Branch (10208:9): [True: 70.4k, False: 604k]
  ------------------
10209|  70.4k|        if (type.getQualifier().isPipeInput() && type.getBasicType() == EbtStruct) {
  ------------------
  |  Branch (10209:13): [True: 23.8k, False: 46.6k]
  |  Branch (10209:50): [True: 402, False: 23.4k]
  ------------------
10210|    402|            if (type.getQualifier().isArrayedIo(language)) {
  ------------------
  |  Branch (10210:17): [True: 0, False: 402]
  ------------------
10211|      0|                TType perVertexType(type, 0);
10212|      0|                if (perVertexType.containsArray() && perVertexType.containsBuiltIn() == false) {
  ------------------
  |  Branch (10212:21): [True: 0, False: 0]
  |  Branch (10212:54): [True: 0, False: 0]
  ------------------
10213|      0|                    error(loc, "A per vertex structure containing an array is not allowed as input in ES", type.getTypeName().c_str(), "");
10214|      0|                }
10215|      0|            }
10216|    402|            else if (type.containsArray() && type.containsBuiltIn() == false) {
  ------------------
  |  Branch (10216:22): [True: 230, False: 172]
  |  Branch (10216:46): [True: 230, False: 0]
  ------------------
10217|    230|                error(loc, "A structure containing an array is not allowed as input in ES", type.getTypeName().c_str(), "");
10218|    230|            }
10219|    402|            if (type.containsStructure())
  ------------------
  |  Branch (10219:17): [True: 77, False: 325]
  ------------------
10220|     77|                error(loc, "A structure containing an struct is not allowed as input in ES", type.getTypeName().c_str(), "");
10221|    402|        }
10222|  70.4k|    }
10223|       |
10224|   675k|    if (identifier != "gl_FragCoord" && (publicType.shaderQualifiers.originUpperLeft || publicType.shaderQualifiers.pixelCenterInteger))
  ------------------
  |  Branch (10224:9): [True: 673k, False: 1.74k]
  |  Branch (10224:42): [True: 3, False: 673k]
  |  Branch (10224:89): [True: 0, False: 673k]
  ------------------
10225|      3|        error(loc, "can only apply origin_upper_left and pixel_center_origin to gl_FragCoord", "layout qualifier", "");
10226|   675k|    if (identifier != "gl_FragDepth" && publicType.shaderQualifiers.getDepth() != EldNone)
  ------------------
  |  Branch (10226:9): [True: 673k, False: 1.69k]
  |  Branch (10226:41): [True: 0, False: 673k]
  ------------------
10227|      0|        error(loc, "can only apply depth layout to gl_FragDepth", "layout qualifier", "");
10228|   675k|    if (identifier != "gl_FragStencilRefARB" && publicType.shaderQualifiers.getStencil() != ElsNone)
  ------------------
  |  Branch (10228:9): [True: 673k, False: 1.27k]
  |  Branch (10228:49): [True: 0, False: 673k]
  ------------------
10229|      0|        error(loc, "can only apply depth layout to gl_FragStencilRefARB", "layout qualifier", "");
10230|       |
10231|       |    // Check for redeclaration of built-ins and/or attempting to declare a reserved name
10232|   675k|    TSymbol* symbol = redeclareBuiltinVariable(loc, identifier, type.getQualifier(), publicType.shaderQualifiers);
10233|   675k|    if (symbol == nullptr)
  ------------------
  |  Branch (10233:9): [True: 674k, False: 643]
  ------------------
10234|   674k|        reservedErrorCheck(loc, identifier);
10235|       |
10236|   675k|    if (symbol == nullptr && spvVersion.vulkan > 0 && spvVersion.vulkanRelaxed) {
  ------------------
  |  Branch (10236:9): [True: 674k, False: 643]
  |  Branch (10236:30): [True: 674k, False: 0]
  |  Branch (10236:55): [True: 0, False: 674k]
  ------------------
10237|      0|        bool remapped = vkRelaxedRemapUniformVariable(loc, identifier, publicType, arraySizes, initializer, type);
10238|       |
10239|      0|        if (remapped) {
  ------------------
  |  Branch (10239:13): [True: 0, False: 0]
  ------------------
10240|      0|            return nullptr;
10241|      0|        }
10242|      0|    }
10243|       |
10244|   675k|    inheritGlobalDefaults(type.getQualifier());
10245|       |
10246|       |    // Declare the variable
10247|   675k|    if (type.isArray()) {
  ------------------
  |  Branch (10247:9): [True: 20.3k, False: 654k]
  ------------------
10248|       |        // Check that implicit sizing is only where allowed.
10249|  20.3k|        arraySizesCheck(loc, type.getQualifier(), type.getArraySizes(), initializer, false);
10250|       |
10251|  20.3k|        if (! arrayQualifierError(loc, type.getQualifier()) && ! arrayError(loc, type))
  ------------------
  |  Branch (10251:13): [True: 20.3k, False: 0]
  |  Branch (10251:64): [True: 20.3k, False: 0]
  ------------------
10252|  20.3k|            declareArray(loc, identifier, type, symbol);
10253|       |
10254|  20.3k|        if (initializer) {
  ------------------
  |  Branch (10254:13): [True: 1.07k, False: 19.2k]
  ------------------
10255|  1.07k|            profileRequires(loc, ENoProfile, 120, E_GL_3DL_array_objects, "initializer");
10256|  1.07k|            profileRequires(loc, EEsProfile, 300, nullptr, "initializer");
10257|  1.07k|        }
10258|   654k|    } else {
10259|       |        // non-array case
10260|   654k|        if (symbol == nullptr)
  ------------------
  |  Branch (10260:13): [True: 654k, False: 588]
  ------------------
10261|   654k|            symbol = declareNonArray(loc, identifier, type);
10262|    588|        else if (type != symbol->getType())
  ------------------
  |  Branch (10262:18): [True: 130, False: 458]
  ------------------
10263|    130|            error(loc, "cannot change the type of", "redeclaration", "%s", symbol->getName().c_str());
10264|   654k|    }
10265|       |
10266|   675k|    if (symbol == nullptr)
  ------------------
  |  Branch (10266:9): [True: 8.10k, False: 667k]
  ------------------
10267|  8.10k|        return nullptr;
10268|       |
10269|       |    // Deal with initializer
10270|   667k|    TIntermNode* initNode = nullptr;
10271|   667k|    if (symbol != nullptr && initializer) {
  ------------------
  |  Branch (10271:9): [True: 667k, False: 0]
  |  Branch (10271:30): [True: 385k, False: 281k]
  ------------------
10272|   385k|        TVariable* variable = symbol->getAsVariable();
10273|   385k|        if (! variable) {
  ------------------
  |  Branch (10273:13): [True: 0, False: 385k]
  ------------------
10274|      0|            error(loc, "initializer requires a variable, not a member", identifier.c_str(), "");
10275|      0|            return nullptr;
10276|      0|        }
10277|   385k|        initNode = executeInitializer(loc, initializer, variable);
10278|       |
10279|       |        // GL_EXT_opacity_micromap_ray_query_mode: capture the value of a
10280|       |        // 'const bool gl_EnableOpacityMicromapEXT = <true|false>;' redeclaration so the back end can emit
10281|       |        // the OpacityMicromapIdKHR execution mode operand as OpConstantTrue/OpConstantFalse. The
10282|       |        // specialization-constant form goes through addQualifierToExisting instead.
10283|   385k|        if (identifier == "gl_EnableOpacityMicromapEXT" && !variable->getType().getQualifier().hasSpecConstantId()) {
  ------------------
  |  Branch (10283:13): [True: 45, False: 385k]
  |  Branch (10283:60): [True: 45, False: 0]
  ------------------
10284|     45|            const TConstUnionArray& constArray = variable->getConstArray();
10285|     45|            if (constArray.size() > 0)
  ------------------
  |  Branch (10285:17): [True: 45, False: 0]
  ------------------
10286|     45|                intermediate.setEnableOpacityMicromapDefault(constArray[0].getBConst());
10287|     45|        }
10288|   385k|    }
10289|       |
10290|       |    // EXT_descriptor_heap
10291|   667k|    if (!untypedHeapCheck(symbol, type, loc, identifier.c_str())) {
  ------------------
  |  Branch (10291:9): [True: 0, False: 667k]
  ------------------
10292|      0|        return nullptr;
10293|      0|    }
10294|       |
10295|       |    // look for errors in layout qualifier use
10296|   667k|    layoutObjectCheck(loc, *symbol);
10297|       |
10298|       |    // fix up
10299|   667k|    fixOffset(loc, *symbol);
10300|       |
10301|       |    // TODO: The decl AST is turned on based on debug info right now. We should expose it as an explicit option.
10302|   667k|    if (intermediate.getDebugInfo()) {
  ------------------
  |  Branch (10302:9): [True: 0, False: 667k]
  ------------------
10303|      0|        TVariable* variable = symbol->getAsVariable();
10304|      0|        if (variable) {
  ------------------
  |  Branch (10304:13): [True: 0, False: 0]
  ------------------
10305|      0|            auto decl = new TIntermVariableDecl(intermediate.addSymbol(*variable, loc), initNode);
10306|      0|            decl->setLoc(loc);
10307|      0|            return decl;
10308|      0|        }
10309|      0|        else {
10310|       |            // We ignore builtins redeclarations
10311|      0|            return nullptr;
10312|      0|        }
10313|      0|    }
10314|   667k|    else {
10315|   667k|        return initNode;
10316|   667k|    }
10317|   667k|}
_ZNK7glslang13TParseContext21inheritGlobalDefaultsERNS_10TQualifierE:
10321|   675k|{
10322|   675k|    if (dst.storage == EvqVaryingOut) {
  ------------------
  |  Branch (10322:9): [True: 21.7k, False: 653k]
  ------------------
10323|  21.7k|        if (! dst.hasStream() && language == EShLangGeometry)
  ------------------
  |  Branch (10323:13): [True: 21.7k, False: 0]
  |  Branch (10323:34): [True: 4.78k, False: 16.9k]
  ------------------
10324|  4.78k|            dst.layoutStream = globalOutputDefaults.layoutStream;
10325|  21.7k|        if (! dst.hasXfbBuffer())
  ------------------
  |  Branch (10325:13): [True: 21.7k, False: 0]
  ------------------
10326|  21.7k|            dst.layoutXfbBuffer = globalOutputDefaults.layoutXfbBuffer;
10327|  21.7k|    }
10328|   675k|}
_ZNK7glslang13TParseContext20makeInternalVariableEPKcRKNS_5TTypeE:
10337|      7|{
10338|      7|    TString* nameString = NewPoolTString(name);
10339|      7|    TVariable* variable = new TVariable(nameString, type);
10340|      7|    symbolTable.makeInternalVariable(*variable);
10341|       |
10342|      7|    return variable;
10343|      7|}
_ZN7glslang13TParseContext15declareNonArrayERKNS_10TSourceLocERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEERKNS_5TTypeE:
10352|   654k|{
10353|       |    // make a new variable
10354|   654k|    TVariable* variable = new TVariable(&identifier, type);
10355|       |
10356|   654k|    ioArrayCheck(loc, type, identifier);
10357|       |
10358|       |    // add variable to symbol table
10359|   654k|    if (symbolTable.insert(*variable)) {
  ------------------
  |  Branch (10359:9): [True: 646k, False: 8.09k]
  ------------------
10360|   646k|        if (symbolTable.atGlobalLevel())
  ------------------
  |  Branch (10360:13): [True: 541k, False: 105k]
  ------------------
10361|   541k|            trackLinkage(*variable);
10362|   646k|        return variable;
10363|   646k|    }
10364|       |
10365|  8.09k|    error(loc, "redefinition", variable->getName().c_str(), "");
10366|  8.09k|    return nullptr;
10367|   654k|}
_ZN7glslang13TParseContext18executeInitializerERKNS_10TSourceLocEPNS_12TIntermTypedEPNS_9TVariableE:
10376|   385k|{
10377|       |    // A null initializer is an aggregate that hasn't had an op assigned yet
10378|       |    // (still EOpNull, no relation to nullInit), and has no children.
10379|   385k|    bool nullInit = initializer->getAsAggregate() && initializer->getAsAggregate()->getOp() == EOpNull &&
  ------------------
  |  Branch (10379:21): [True: 4.43k, False: 380k]
  |  Branch (10379:54): [True: 558, False: 3.87k]
  ------------------
10380|    558|        initializer->getAsAggregate()->getSequence().size() == 0;
  ------------------
  |  Branch (10380:9): [True: 0, False: 558]
  ------------------
10381|       |
10382|       |    //
10383|       |    // Identifier must be of type constant, a global, or a temporary, and
10384|       |    // starting at version 120, desktop allows uniforms to have initializers.
10385|       |    //
10386|   385k|    TStorageQualifier qualifier = variable->getType().getQualifier().storage;
10387|   385k|    if (! (qualifier == EvqTemporary || qualifier == EvqGlobal || qualifier == EvqConst ||
  ------------------
  |  Branch (10387:12): [True: 98.3k, False: 286k]
  |  Branch (10387:41): [True: 1.36k, False: 285k]
  |  Branch (10387:67): [True: 285k, False: 14]
  ------------------
10388|     14|           (qualifier == EvqUniform && !isEsProfile() && version >= 120))) {
  ------------------
  |  Branch (10388:13): [True: 13, False: 1]
  |  Branch (10388:40): [True: 6, False: 7]
  |  Branch (10388:58): [True: 6, False: 0]
  ------------------
10389|      8|        if (qualifier == EvqShared) {
  ------------------
  |  Branch (10389:13): [True: 0, False: 8]
  ------------------
10390|       |            // GL_EXT_null_initializer allows this for shared, if it's a null initializer
10391|      0|            if (nullInit) {
  ------------------
  |  Branch (10391:17): [True: 0, False: 0]
  ------------------
10392|      0|                const char* feature = "initialization with shared qualifier";
10393|      0|                profileRequires(loc, EEsProfile, 0, E_GL_EXT_null_initializer, feature);
10394|      0|                profileRequires(loc, ~EEsProfile, 0, E_GL_EXT_null_initializer, feature);
10395|      0|            } else {
10396|      0|                error(loc, "initializer can only be a null initializer ('{}')", "shared", "");
10397|      0|            }
10398|      8|        } else {
10399|      8|            error(loc, " cannot initialize this type of qualifier ",
10400|      8|                  variable->getType().getStorageQualifierString(), "");
10401|      8|            return nullptr;
10402|      8|        }
10403|      8|    }
10404|       |
10405|   385k|    if (nullInit) {
  ------------------
  |  Branch (10405:9): [True: 0, False: 385k]
  ------------------
10406|       |        // only some types can be null initialized
10407|      0|        if (variable->getType().containsUnsizedArray()) {
  ------------------
  |  Branch (10407:13): [True: 0, False: 0]
  ------------------
10408|      0|            error(loc, "null initializers can't size unsized arrays", "{}", "");
10409|      0|            return nullptr;
10410|      0|        }
10411|      0|        if (variable->getType().containsOpaque()) {
  ------------------
  |  Branch (10411:13): [True: 0, False: 0]
  ------------------
10412|      0|            error(loc, "null initializers can't be used on opaque values", "{}", "");
10413|      0|            return nullptr;
10414|      0|        }
10415|      0|        variable->getWritableType().getQualifier().setNullInit();
10416|      0|        return nullptr;
10417|      0|    }
10418|       |
10419|   385k|    arrayObjectCheck(loc, variable->getType(), "array initializer");
10420|       |
10421|       |    //
10422|       |    // If the initializer was from braces { ... }, we convert the whole subtree to a
10423|       |    // constructor-style subtree, allowing the rest of the code to operate
10424|       |    // identically for both kinds of initializers.
10425|       |    //
10426|       |    // Type can't be deduced from the initializer list, so a skeletal type to
10427|       |    // follow has to be passed in.  Constness and specialization-constness
10428|       |    // should be deduced bottom up, not dictated by the skeletal type.
10429|       |    //
10430|   385k|    TType skeletalType;
10431|   385k|    skeletalType.shallowCopy(variable->getType());
10432|   385k|    skeletalType.getQualifier().makeTemporary();
10433|   385k|    initializer = convertInitializerList(loc, skeletalType, initializer);
10434|   385k|    if (! initializer) {
  ------------------
  |  Branch (10434:9): [True: 55, False: 385k]
  ------------------
10435|       |        // error recovery; don't leave const without constant values
10436|     55|        if (qualifier == EvqConst)
  ------------------
  |  Branch (10436:13): [True: 5, False: 50]
  ------------------
10437|      5|            variable->getWritableType().getQualifier().makeTemporary();
10438|     55|        return nullptr;
10439|     55|    }
10440|       |
10441|       |    // Fix outer arrayness if variable is unsized, getting size from the initializer
10442|   385k|    if (initializer->getType().isSizedArray() && variable->getType().isUnsizedArray())
  ------------------
  |  Branch (10442:9): [True: 984, False: 384k]
  |  Branch (10442:50): [True: 273, False: 711]
  ------------------
10443|    273|        variable->getWritableType().changeOuterArraySize(initializer->getType().getOuterArraySize());
10444|       |
10445|       |    // Inner arrayness can also get set by an initializer
10446|   385k|    if (initializer->getType().isArrayOfArrays() && variable->getType().isArrayOfArrays() &&
  ------------------
  |  Branch (10446:9): [True: 241, False: 384k]
  |  Branch (10446:53): [True: 239, False: 2]
  ------------------
10447|    239|        initializer->getType().getArraySizes()->getNumDims() ==
  ------------------
  |  Branch (10447:9): [True: 239, False: 0]
  ------------------
10448|    239|           variable->getType().getArraySizes()->getNumDims()) {
10449|       |        // adopt unsized sizes from the initializer's sizes
10450|    478|        for (int d = 1; d < variable->getType().getArraySizes()->getNumDims(); ++d) {
  ------------------
  |  Branch (10450:25): [True: 239, False: 239]
  ------------------
10451|    239|            if (variable->getType().getArraySizes()->getDimSize(d) == UnsizedArraySize) {
  ------------------
  |  Branch (10451:17): [True: 116, False: 123]
  ------------------
10452|    116|                variable->getWritableType().getArraySizes()->setDimSize(d,
10453|    116|                    initializer->getType().getArraySizes()->getDimSize(d));
10454|    116|            }
10455|    239|        }
10456|    239|    }
10457|       |
10458|       |    // Uniforms require a compile-time constant initializer
10459|   385k|    if (qualifier == EvqUniform && ! initializer->getType().getQualifier().isFrontEndConstant()) {
  ------------------
  |  Branch (10459:9): [True: 6, False: 385k]
  |  Branch (10459:36): [True: 0, False: 6]
  ------------------
10460|      0|        error(loc, "uniform initializers must be constant", "=", "'%s'",
10461|      0|              variable->getType().getCompleteString(intermediate.getEnhancedMsgs()).c_str());
10462|      0|        variable->getWritableType().getQualifier().makeTemporary();
10463|      0|        return nullptr;
10464|      0|    }
10465|       |    // Global consts require a constant initializer (specialization constant is okay)
10466|   385k|    if (qualifier == EvqConst && symbolTable.atGlobalLevel() && ! initializer->getType().getQualifier().isConstant()) {
  ------------------
  |  Branch (10466:9): [True: 285k, False: 99.7k]
  |  Branch (10466:34): [True: 284k, False: 1.06k]
  |  Branch (10466:65): [True: 20, False: 284k]
  ------------------
10467|     20|        error(loc, "global const initializers must be constant", "=", "'%s'",
10468|     20|              variable->getType().getCompleteString(intermediate.getEnhancedMsgs()).c_str());
10469|     20|        variable->getWritableType().getQualifier().makeTemporary();
10470|     20|        return nullptr;
10471|     20|    }
10472|       |
10473|       |    // Const variables require a constant initializer, depending on version
10474|   385k|    if (qualifier == EvqConst) {
  ------------------
  |  Branch (10474:9): [True: 285k, False: 99.7k]
  ------------------
10475|   285k|        if (! initializer->getType().getQualifier().isConstant()) {
  ------------------
  |  Branch (10475:13): [True: 24, False: 285k]
  ------------------
10476|     24|            const char* initFeature = "non-constant initializer";
10477|     24|            requireProfile(loc, ~EEsProfile, initFeature);
10478|     24|            profileRequires(loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, initFeature);
10479|     24|            variable->getWritableType().getQualifier().storage = EvqConstReadOnly;
10480|     24|            qualifier = EvqConstReadOnly;
10481|     24|        }
10482|   285k|    } else {
10483|       |        // Non-const global variables in ES need a const initializer.
10484|       |        //
10485|       |        // "In declarations of global variables with no storage qualifier or with a const
10486|       |        // qualifier any initializer must be a constant expression."
10487|  99.7k|        if (symbolTable.atGlobalLevel() && ! initializer->getType().getQualifier().isConstant()) {
  ------------------
  |  Branch (10487:13): [True: 1.37k, False: 98.3k]
  |  Branch (10487:44): [True: 795, False: 577]
  ------------------
10488|    795|            const char* initFeature =
10489|    795|                "non-constant global initializer (needs GL_EXT_shader_non_constant_global_initializers)";
10490|    795|            if (isEsProfile()) {
  ------------------
  |  Branch (10490:17): [True: 4, False: 791]
  ------------------
10491|      4|                if (relaxedErrors() && ! extensionTurnedOn(E_GL_EXT_shader_non_constant_global_initializers))
  ------------------
  |  Branch (10491:21): [True: 0, False: 4]
  |  Branch (10491:40): [True: 0, False: 0]
  ------------------
10492|      0|                    warn(loc, "not allowed in this version", initFeature, "");
10493|      4|                else
10494|      4|                    profileRequires(loc, EEsProfile, 0, E_GL_EXT_shader_non_constant_global_initializers, initFeature);
10495|      4|            }
10496|    795|        }
10497|  99.7k|    }
10498|       |
10499|   385k|    if (qualifier == EvqConst || qualifier == EvqUniform) {
  ------------------
  |  Branch (10499:9): [True: 285k, False: 99.7k]
  |  Branch (10499:34): [True: 6, False: 99.7k]
  ------------------
10500|       |        // Compile-time tagging of the variable with its constant value...
10501|       |
10502|   285k|        initializer = intermediate.addConversion(EOpAssign, variable->getType(), initializer);
10503|   285k|        if (! initializer || ! initializer->getType().getQualifier().isConstant() ||
  ------------------
  |  Branch (10503:13): [True: 31, False: 285k]
  |  Branch (10503:30): [True: 0, False: 285k]
  ------------------
10504|   285k|            variable->getType() != initializer->getType()) {
  ------------------
  |  Branch (10504:13): [True: 2, False: 285k]
  ------------------
10505|     33|            error(loc, "non-matching or non-convertible constant type for const initializer",
10506|     33|                  variable->getType().getStorageQualifierString(), "");
10507|     33|            variable->getWritableType().getQualifier().makeTemporary();
10508|     33|            return nullptr;
10509|     33|        }
10510|       |
10511|       |        // We either have a folded constant in getAsConstantUnion, or we have to use
10512|       |        // the initializer's subtree in the AST to represent the computation of a
10513|       |        // specialization constant.
10514|   285k|        assert(initializer->getAsConstantUnion() || initializer->getType().getQualifier().isSpecConstant());
10515|   285k|        if (initializer->getAsConstantUnion())
  ------------------
  |  Branch (10515:13): [True: 284k, False: 568]
  ------------------
10516|   284k|            variable->setConstArray(initializer->getAsConstantUnion()->getConstArray());
10517|    568|        else {
10518|       |            // It's a specialization constant.
10519|       |            // Computed from other spec constants, so it becomes an OpSpecConstantOp, which cannot carry SpecId.
10520|    568|            if (variable->getType().getQualifier().hasSpecConstantId())
  ------------------
  |  Branch (10520:17): [True: 3, False: 565]
  ------------------
10521|      3|                error(loc, "cannot be applied to a constant computed from other specialization constants",
10522|      3|                      "constant_id", "");
10523|    568|            variable->getWritableType().getQualifier().makeSpecConstant();
10524|       |
10525|       |            // Keep the subtree that computes the specialization constant with the variable.
10526|       |            // Later, a symbol node will adopt the subtree from the variable.
10527|    568|            variable->setConstSubtree(initializer);
10528|    568|        }
10529|   285k|    } else {
10530|       |        // normal assigning of a value to a variable...
10531|  99.7k|        specializationCheck(loc, initializer->getType(), "initializer");
10532|  99.7k|        TIntermSymbol* intermSymbol = intermediate.addSymbol(*variable, loc);
10533|  99.7k|        TIntermTyped* initNode = intermediate.addAssign(EOpAssign, intermSymbol, initializer, loc);
10534|  99.7k|        if (! initNode)
  ------------------
  |  Branch (10534:13): [True: 49.5k, False: 50.1k]
  ------------------
10535|  49.5k|            assignError(loc, "=", intermSymbol->getCompleteString(intermediate.getEnhancedMsgs()), initializer->getCompleteString(intermediate.getEnhancedMsgs()));
10536|       |
10537|  99.7k|        return initNode;
10538|  99.7k|    }
10539|       |
10540|   285k|    return nullptr;
10541|   385k|}
_ZN7glslang13TParseContext22convertInitializerListERKNS_10TSourceLocERKNS_5TTypeEPNS_12TIntermTypedE:
10554|   386k|{
10555|       |    // Will operate recursively.  Once a subtree is found that is constructor style,
10556|       |    // everything below it is already good: Only the "top part" of the initializer
10557|       |    // can be an initializer list, where "top part" can extend for several (or all) levels.
10558|       |
10559|       |    // see if we have bottomed out in the tree within the initializer-list part
10560|   386k|    TIntermAggregate* initList = initializer->getAsAggregate();
10561|   386k|    if (! initList || initList->getOp() != EOpNull)
  ------------------
  |  Branch (10561:9): [True: 382k, False: 4.43k]
  |  Branch (10561:23): [True: 3.87k, False: 558]
  ------------------
10562|   386k|        return initializer;
10563|       |
10564|       |    // Of the initializer-list set of nodes, need to process bottom up,
10565|       |    // so recurse deep, then process on the way up.
10566|       |
10567|       |    // Go down the tree here...
10568|    558|    if (type.isArray()) {
  ------------------
  |  Branch (10568:9): [True: 555, False: 3]
  ------------------
10569|       |        // The type's array might be unsized, which could be okay, so base sizes on the size of the aggregate.
10570|       |        // Later on, initializer execution code will deal with array size logic.
10571|    555|        TType arrayType;
10572|    555|        arrayType.shallowCopy(type);                     // sharing struct stuff is fine
10573|    555|        arrayType.copyArraySizes(*type.getArraySizes());  // but get a fresh copy of the array information, to edit below
10574|       |
10575|       |        // a nested empty initializer list ({}) has no elements to size the array or
10576|       |        // derive its element type from, so reject it before the getSequence()[0] read below
10577|    555|        if (initList->getSequence().empty()) {
  ------------------
  |  Branch (10577:13): [True: 0, False: 555]
  ------------------
10578|      0|            error(loc, "array initializer must be non-empty", "initializer list", "");
10579|      0|            return nullptr;
10580|      0|        }
10581|       |
10582|       |        // edit array sizes to fill in unsized dimensions
10583|    555|        arrayType.changeOuterArraySize((int)initList->getSequence().size());
10584|    555|        TIntermTyped* firstInit = initList->getSequence()[0]->getAsTyped();
10585|    555|        if (arrayType.isArrayOfArrays() && firstInit->getType().isArray() &&
  ------------------
  |  Branch (10585:13): [True: 174, False: 381]
  |  Branch (10585:44): [True: 171, False: 3]
  ------------------
10586|    171|            arrayType.getArraySizes()->getNumDims() == firstInit->getType().getArraySizes()->getNumDims() + 1) {
  ------------------
  |  Branch (10586:13): [True: 171, False: 0]
  ------------------
10587|    342|            for (int d = 1; d < arrayType.getArraySizes()->getNumDims(); ++d) {
  ------------------
  |  Branch (10587:29): [True: 171, False: 171]
  ------------------
10588|    171|                if (arrayType.getArraySizes()->getDimSize(d) == UnsizedArraySize)
  ------------------
  |  Branch (10588:21): [True: 108, False: 63]
  ------------------
10589|    108|                    arrayType.getArraySizes()->setDimSize(d, firstInit->getType().getArraySizes()->getDimSize(d - 1));
10590|    171|            }
10591|    171|        }
10592|       |
10593|    555|        TType elementType(arrayType, 0); // dereferenced type
10594|  2.25k|        for (size_t i = 0; i < initList->getSequence().size(); ++i) {
  ------------------
  |  Branch (10594:28): [True: 1.70k, False: 555]
  ------------------
10595|  1.70k|            initList->getSequence()[i] = convertInitializerList(loc, elementType, initList->getSequence()[i]->getAsTyped());
10596|  1.70k|            if (initList->getSequence()[i] == nullptr)
  ------------------
  |  Branch (10596:17): [True: 0, False: 1.70k]
  ------------------
10597|      0|                return nullptr;
10598|  1.70k|        }
10599|       |
10600|    555|        return addConstructor(loc, initList, arrayType);
10601|    555|    } else if (type.isStruct()) {
  ------------------
  |  Branch (10601:16): [True: 3, False: 0]
  ------------------
10602|      3|        if (type.getStruct()->size() != initList->getSequence().size()) {
  ------------------
  |  Branch (10602:13): [True: 0, False: 3]
  ------------------
10603|      0|            error(loc, "wrong number of structure members", "initializer list", "");
10604|      0|            return nullptr;
10605|      0|        }
10606|      9|        for (size_t i = 0; i < type.getStruct()->size(); ++i) {
  ------------------
  |  Branch (10606:28): [True: 6, False: 3]
  ------------------
10607|      6|            initList->getSequence()[i] = convertInitializerList(loc, *(*type.getStruct())[i].type, initList->getSequence()[i]->getAsTyped());
10608|      6|            if (initList->getSequence()[i] == nullptr)
  ------------------
  |  Branch (10608:17): [True: 0, False: 6]
  ------------------
10609|      0|                return nullptr;
10610|      6|        }
10611|      3|    } else if (type.isMatrix()) {
  ------------------
  |  Branch (10611:16): [True: 0, False: 0]
  ------------------
10612|      0|        if (type.getMatrixCols() != (int)initList->getSequence().size()) {
  ------------------
  |  Branch (10612:13): [True: 0, False: 0]
  ------------------
10613|      0|            error(loc, "wrong number of matrix columns:", "initializer list", "%s", type.getCompleteString(intermediate.getEnhancedMsgs()).c_str());
10614|      0|            return nullptr;
10615|      0|        }
10616|      0|        TType vectorType(type, 0); // dereferenced type
10617|      0|        for (int i = 0; i < type.getMatrixCols(); ++i) {
  ------------------
  |  Branch (10617:25): [True: 0, False: 0]
  ------------------
10618|      0|            initList->getSequence()[i] = convertInitializerList(loc, vectorType, initList->getSequence()[i]->getAsTyped());
10619|      0|            if (initList->getSequence()[i] == nullptr)
  ------------------
  |  Branch (10619:17): [True: 0, False: 0]
  ------------------
10620|      0|                return nullptr;
10621|      0|        }
10622|      0|    } else if (type.isVector()) {
  ------------------
  |  Branch (10622:16): [True: 0, False: 0]
  ------------------
10623|      0|        if (type.getVectorSize() != (int)initList->getSequence().size()) {
  ------------------
  |  Branch (10623:13): [True: 0, False: 0]
  ------------------
10624|      0|            error(loc, "wrong vector size (or rows in a matrix column):", "initializer list", "%s", type.getCompleteString(intermediate.getEnhancedMsgs()).c_str());
10625|      0|            return nullptr;
10626|      0|        }
10627|      0|        TBasicType destType = type.getBasicType();
10628|      0|        for (int i = 0; i < type.getVectorSize(); ++i) {
  ------------------
  |  Branch (10628:25): [True: 0, False: 0]
  ------------------
10629|      0|            TBasicType initType = initList->getSequence()[i]->getAsTyped()->getBasicType();
10630|      0|            if (destType != initType && !intermediate.canImplicitlyPromote(initType, destType)) {
  ------------------
  |  Branch (10630:17): [True: 0, False: 0]
  |  Branch (10630:41): [True: 0, False: 0]
  ------------------
10631|      0|                error(loc, "type mismatch in initializer list", "initializer list", "%s", type.getCompleteString(intermediate.getEnhancedMsgs()).c_str());
10632|      0|                return nullptr;
10633|      0|            }
10634|       |
10635|      0|        }
10636|      0|    } else {
10637|      0|        error(loc, "unexpected initializer-list type:", "initializer list", "%s", type.getCompleteString(intermediate.getEnhancedMsgs()).c_str());
10638|      0|        return nullptr;
10639|      0|    }
10640|       |
10641|       |    // Now that the subtree is processed, process this node as if the
10642|       |    // initializer list is a set of arguments to a constructor.
10643|      3|    TIntermNode* emulatedConstructorArguments;
10644|      3|    if (initList->getSequence().size() == 1)
  ------------------
  |  Branch (10644:9): [True: 0, False: 3]
  ------------------
10645|      0|        emulatedConstructorArguments = initList->getSequence()[0];
10646|      3|    else
10647|      3|        emulatedConstructorArguments = initList;
10648|      3|    return addConstructor(loc, emulatedConstructorArguments, type);
10649|    558|}
_ZN7glslang13TParseContext14addConstructorERKNS_10TSourceLocEP11TIntermNodeRKNS_5TTypeE:
10661|  76.6k|{
10662|  76.6k|    if (node == nullptr || node->getAsTyped() == nullptr)
  ------------------
  |  Branch (10662:9): [True: 0, False: 76.6k]
  |  Branch (10662:28): [True: 0, False: 76.6k]
  ------------------
10663|      0|        return nullptr;
10664|  76.6k|    rValueErrorCheck(loc, "constructor", node->getAsTyped());
10665|       |
10666|  76.6k|    TIntermAggregate* aggrNode = node->getAsAggregate();
10667|  76.6k|    TOperator op = intermediate.mapTypeToConstructorOp(type);
10668|       |
10669|       |    // Combined texture-sampler constructors are completely semantic checked
10670|       |    // in constructorTextureSamplerError()
10671|  76.6k|    if (op == EOpConstructTextureSampler) {
  ------------------
  |  Branch (10671:9): [True: 92, False: 76.5k]
  ------------------
10672|     92|        if (aggrNode != nullptr) {
  ------------------
  |  Branch (10672:13): [True: 92, False: 0]
  ------------------
10673|     92|            if (aggrNode->getSequence()[1]->getAsTyped()->getType().getSampler().shadow) {
  ------------------
  |  Branch (10673:17): [True: 30, False: 62]
  ------------------
10674|       |                // Transfer depth into the texture (SPIR-V image) type, as a hint
10675|       |                // for tools to know this texture/image is a depth image.
10676|     30|                aggrNode->getSequence()[0]->getAsTyped()->getWritableType().getSampler().shadow = true;
10677|     30|            }
10678|     92|            return intermediate.setAggregateOperator(aggrNode, op, type, loc);
10679|     92|        }
10680|     92|    }
10681|       |
10682|  76.5k|    TTypeList::const_iterator memberTypes;
10683|  76.5k|    if (op == EOpConstructStruct)
  ------------------
  |  Branch (10683:9): [True: 119, False: 76.4k]
  ------------------
10684|    119|        memberTypes = type.getStruct()->begin();
10685|       |
10686|  76.5k|    TType elementType;
10687|  76.5k|    if (type.isArray()) {
  ------------------
  |  Branch (10687:9): [True: 2.03k, False: 74.5k]
  ------------------
10688|  2.03k|        TType dereferenced(type, 0);
10689|  2.03k|        elementType.shallowCopy(dereferenced);
10690|  2.03k|    } else
10691|  74.5k|        elementType.shallowCopy(type);
10692|       |
10693|  76.5k|    bool singleArg;
10694|  76.5k|    if (aggrNode) {
  ------------------
  |  Branch (10694:9): [True: 13.4k, False: 63.1k]
  ------------------
10695|  13.4k|        if (aggrNode->getOp() != EOpNull)
  ------------------
  |  Branch (10695:13): [True: 212, False: 13.1k]
  ------------------
10696|    212|            singleArg = true;
10697|  13.1k|        else
10698|  13.1k|            singleArg = false;
10699|  13.4k|    } else
10700|  63.1k|        singleArg = true;
10701|       |
10702|  76.5k|    TIntermTyped *newNode;
10703|  76.5k|    if (singleArg) {
  ------------------
  |  Branch (10703:9): [True: 63.3k, False: 13.1k]
  ------------------
10704|       |        // If structure constructor or array constructor is being called
10705|       |        // for only one parameter inside the structure, we need to call constructAggregate function once.
10706|  63.3k|        if (type.isArray())
  ------------------
  |  Branch (10706:13): [True: 1, False: 63.3k]
  ------------------
10707|      1|            newNode = constructAggregate(node, elementType, 1, node->getLoc());
10708|  63.3k|        else if (op == EOpConstructStruct)
  ------------------
  |  Branch (10708:18): [True: 0, False: 63.3k]
  ------------------
10709|      0|            newNode = constructAggregate(node, *(*memberTypes).type, 1, node->getLoc());
10710|  63.3k|        else
10711|  63.3k|            newNode = constructBuiltIn(type, op, node->getAsTyped(), node->getLoc(), false);
10712|       |
10713|  63.3k|        if (newNode && (type.isArray() || op == EOpConstructStruct))
  ------------------
  |  Branch (10713:13): [True: 63.3k, False: 1]
  |  Branch (10713:25): [True: 0, False: 63.3k]
  |  Branch (10713:43): [True: 0, False: 63.3k]
  ------------------
10714|      0|            newNode = intermediate.setAggregateOperator(newNode, EOpConstructStruct, type, loc);
10715|       |
10716|  63.3k|        return newNode;
10717|  63.3k|    }
10718|       |
10719|       |    //
10720|       |    // Handle list of arguments.
10721|       |    //
10722|  13.1k|    TIntermSequence &sequenceVector = aggrNode->getSequence();    // Stores the information about the parameter to the constructor
10723|       |    // if the structure constructor contains more than one parameter, then construct
10724|       |    // each parameter
10725|       |
10726|  13.1k|    int paramCount = 0;  // keeps track of the constructor parameter number being checked
10727|       |
10728|       |    // We don't know "top down" whether type is a specialization constant,
10729|       |    // but a const becomes a specialization constant if any of its children are.
10730|  13.1k|    bool hasSpecConst = false;
10731|  13.1k|    bool isConstConstructor = true;
10732|       |
10733|       |    // for each parameter to the constructor call, check to see if the right type is passed or convert them
10734|       |    // to the right type if possible (and allowed).
10735|       |    // for structure constructors, just check if the right type is passed, no conversion is allowed.
10736|  13.1k|    for (TIntermSequence::iterator p = sequenceVector.begin();
10737|  51.1k|                                   p != sequenceVector.end(); p++, paramCount++) {
  ------------------
  |  Branch (10737:36): [True: 37.9k, False: 13.1k]
  ------------------
10738|  37.9k|        if (type.isArray())
  ------------------
  |  Branch (10738:13): [True: 5.55k, False: 32.4k]
  ------------------
10739|  5.55k|            newNode = constructAggregate(*p, elementType, paramCount+1, node->getLoc());
10740|  32.4k|        else if (op == EOpConstructStruct)
  ------------------
  |  Branch (10740:18): [True: 291, False: 32.1k]
  ------------------
10741|    291|            newNode = constructAggregate(*p, *(memberTypes[paramCount]).type, paramCount+1, node->getLoc());
10742|  32.1k|        else
10743|  32.1k|            newNode = constructBuiltIn(type, op, (*p)->getAsTyped(), node->getLoc(), true);
10744|       |
10745|  37.9k|        if (newNode) {
  ------------------
  |  Branch (10745:13): [True: 37.9k, False: 60]
  ------------------
10746|  37.9k|            *p = newNode;
10747|  37.9k|            if (!newNode->getType().getQualifier().isConstant())
  ------------------
  |  Branch (10747:17): [True: 681, False: 37.2k]
  ------------------
10748|    681|                isConstConstructor = false;
10749|  37.9k|            if (newNode->getType().getQualifier().isSpecConstant())
  ------------------
  |  Branch (10749:17): [True: 0, False: 37.9k]
  ------------------
10750|      0|                hasSpecConst = true;
10751|  37.9k|        } else
10752|     60|            return nullptr;
10753|  37.9k|    }
10754|       |
10755|  13.1k|    TIntermTyped* ret_node = intermediate.setAggregateOperator(aggrNode, op, type, loc);
10756|       |
10757|  13.1k|    const char *specConstantCompositeExt[] = { E_GL_EXT_spec_constant_composites };
10758|  13.1k|    if (checkExtensionsRequested(loc, 1, specConstantCompositeExt, "spec constant aggregate constructor")) {
  ------------------
  |  Branch (10758:9): [True: 0, False: 13.1k]
  ------------------
10759|      0|        if (isConstConstructor && hasSpecConst) {
  ------------------
  |  Branch (10759:13): [True: 0, False: 0]
  |  Branch (10759:35): [True: 0, False: 0]
  ------------------
10760|      0|            ret_node->getWritableType().getQualifier().makeSpecConstant();
10761|      0|        }
10762|      0|    }
10763|       |
10764|  13.1k|    TIntermAggregate *agg_node = ret_node->getAsAggregate();
10765|  13.1k|    if (agg_node && (agg_node->isVector() || agg_node->isArray() || agg_node->isMatrix()))
  ------------------
  |  Branch (10765:9): [True: 231, False: 12.9k]
  |  Branch (10765:22): [True: 129, False: 102]
  |  Branch (10765:46): [True: 102, False: 0]
  |  Branch (10765:69): [True: 0, False: 0]
  ------------------
10766|    231|        agg_node->updatePrecision();
10767|       |
10768|  13.1k|    return ret_node;
10769|  13.1k|}
_ZN7glslang13TParseContext16constructBuiltInERKNS_5TTypeENS_9TOperatorEPNS_12TIntermTypedERKNS_10TSourceLocEb:
10780|  95.5k|{
10781|       |    // If we are changing a matrix in both domain of basic type and to a non matrix,
10782|       |    // do the shape change first (by default, below, basic type is changed before shape).
10783|       |    // This avoids requesting a matrix of a new type that is going to be discarded anyway.
10784|       |    // TODO: This could be generalized to more type combinations, but that would require
10785|       |    // more extensive testing and full algorithm rework. For now, the need to do two changes makes
10786|       |    // the recursive call work, and avoids the most egregious case of creating integer matrices.
10787|  95.5k|    if (node->getType().isMatrix() && (type.isScalar() || type.isVector()) &&
  ------------------
  |  Branch (10787:9): [True: 52, False: 95.4k]
  |  Branch (10787:40): [True: 0, False: 52]
  |  Branch (10787:59): [True: 21, False: 31]
  ------------------
10788|     21|            type.isFloatingDomain() != node->getType().isFloatingDomain()) {
  ------------------
  |  Branch (10788:13): [True: 0, False: 21]
  ------------------
10789|      0|        TType transitionType(node->getBasicType(), glslang::EvqTemporary, type.getVectorSize(), 0, 0, node->isVector());
10790|      0|        TOperator transitionOp = intermediate.mapTypeToConstructorOp(transitionType);
10791|      0|        node = constructBuiltIn(transitionType, transitionOp, node, loc, false);
10792|      0|    }
10793|       |
10794|  95.5k|    TIntermTyped* newNode;
10795|  95.5k|    TOperator basicOp;
10796|       |
10797|       |    //
10798|       |    // First, convert types as needed.
10799|       |    //
10800|  95.5k|    switch (op) {
10801|  2.80k|    case EOpConstructVec2:
  ------------------
  |  Branch (10801:5): [True: 2.80k, False: 92.7k]
  ------------------
10802|  4.71k|    case EOpConstructVec3:
  ------------------
  |  Branch (10802:5): [True: 1.91k, False: 93.6k]
  ------------------
10803|  8.79k|    case EOpConstructVec4:
  ------------------
  |  Branch (10803:5): [True: 4.08k, False: 91.4k]
  ------------------
10804|  9.03k|    case EOpConstructMat2x2:
  ------------------
  |  Branch (10804:5): [True: 237, False: 95.2k]
  ------------------
10805|  9.03k|    case EOpConstructMat2x3:
  ------------------
  |  Branch (10805:5): [True: 0, False: 95.5k]
  ------------------
10806|  9.29k|    case EOpConstructMat2x4:
  ------------------
  |  Branch (10806:5): [True: 256, False: 95.2k]
  ------------------
10807|  9.42k|    case EOpConstructMat3x2:
  ------------------
  |  Branch (10807:5): [True: 132, False: 95.3k]
  ------------------
10808|  9.56k|    case EOpConstructMat3x3:
  ------------------
  |  Branch (10808:5): [True: 143, False: 95.3k]
  ------------------
10809|  9.58k|    case EOpConstructMat3x4:
  ------------------
  |  Branch (10809:5): [True: 21, False: 95.4k]
  ------------------
10810|  9.58k|    case EOpConstructMat4x2:
  ------------------
  |  Branch (10810:5): [True: 0, False: 95.5k]
  ------------------
10811|  9.58k|    case EOpConstructMat4x3:
  ------------------
  |  Branch (10811:5): [True: 0, False: 95.5k]
  ------------------
10812|  9.59k|    case EOpConstructMat4x4:
  ------------------
  |  Branch (10812:5): [True: 4, False: 95.5k]
  ------------------
10813|  10.1k|    case EOpConstructFloat:
  ------------------
  |  Branch (10813:5): [True: 571, False: 94.9k]
  ------------------
10814|  10.1k|        basicOp = EOpConstructFloat;
10815|  10.1k|        break;
10816|       |
10817|  6.18k|    case EOpConstructIVec2:
  ------------------
  |  Branch (10817:5): [True: 6.18k, False: 89.3k]
  ------------------
10818|  27.1k|    case EOpConstructIVec3:
  ------------------
  |  Branch (10818:5): [True: 21.0k, False: 74.5k]
  ------------------
10819|  29.1k|    case EOpConstructIVec4:
  ------------------
  |  Branch (10819:5): [True: 1.91k, False: 93.6k]
  ------------------
10820|  32.2k|    case EOpConstructInt:
  ------------------
  |  Branch (10820:5): [True: 3.11k, False: 92.4k]
  ------------------
10821|  32.2k|        basicOp = EOpConstructInt;
10822|  32.2k|        break;
10823|       |
10824|  1.54k|    case EOpConstructUVec2:
  ------------------
  |  Branch (10824:5): [True: 1.54k, False: 93.9k]
  ------------------
10825|  1.54k|        if (node->getType().getBasicType() == EbtReference) {
  ------------------
  |  Branch (10825:13): [True: 0, False: 1.54k]
  ------------------
10826|      0|            requireExtensions(loc, 1, &E_GL_EXT_buffer_reference_uvec2, "reference conversion to uvec2");
10827|      0|            TIntermTyped* newNode = intermediate.addBuiltInFunctionCall(node->getLoc(), EOpConvPtrToUvec2, true, node,
10828|      0|                type);
10829|      0|            return newNode;
10830|  1.54k|        } else if (node->getType().getBasicType() == EbtSampler) {
  ------------------
  |  Branch (10830:20): [True: 0, False: 1.54k]
  ------------------
10831|      0|            requireExtensions(loc, 1, &E_GL_ARB_bindless_texture, "sampler conversion to uvec2");
10832|       |            // createConversion has no sampler-to-uint op and returns null, so unpack the
10833|       |            // handle directly, mirroring the uvec2-to-handle direction below.
10834|      0|            TIntermTyped* newNode =
10835|      0|                intermediate.addBuiltInFunctionCall(node->getLoc(), EOpUnpackUint2x32, true, node, type);
10836|      0|            return newNode;
10837|      0|        }
10838|  1.54k|        [[fallthrough]];
10839|  6.51k|    case EOpConstructUVec3:
  ------------------
  |  Branch (10839:5): [True: 4.97k, False: 90.5k]
  ------------------
10840|  8.32k|    case EOpConstructUVec4:
  ------------------
  |  Branch (10840:5): [True: 1.81k, False: 93.7k]
  ------------------
10841|  9.33k|    case EOpConstructUint:
  ------------------
  |  Branch (10841:5): [True: 1.00k, False: 94.5k]
  ------------------
10842|  9.33k|        basicOp = EOpConstructUint;
10843|  9.33k|        break;
10844|       |
10845|    410|    case EOpConstructBVec2:
  ------------------
  |  Branch (10845:5): [True: 410, False: 95.1k]
  ------------------
10846|    605|    case EOpConstructBVec3:
  ------------------
  |  Branch (10846:5): [True: 195, False: 95.3k]
  ------------------
10847|  1.17k|    case EOpConstructBVec4:
  ------------------
  |  Branch (10847:5): [True: 565, False: 94.9k]
  ------------------
10848|  1.23k|    case EOpConstructBool:
  ------------------
  |  Branch (10848:5): [True: 68, False: 95.4k]
  ------------------
10849|  1.23k|        basicOp = EOpConstructBool;
10850|  1.23k|        break;
10851|      0|    case EOpConstructTextureSampler:
  ------------------
  |  Branch (10851:5): [True: 0, False: 95.5k]
  ------------------
10852|      0|        if ((node->getType().getBasicType() == EbtUint || node->getType().getBasicType() == EbtInt) &&
  ------------------
  |  Branch (10852:14): [True: 0, False: 0]
  |  Branch (10852:59): [True: 0, False: 0]
  ------------------
10853|      0|            node->getType().getVectorSize() == 2) {
  ------------------
  |  Branch (10853:13): [True: 0, False: 0]
  ------------------
10854|      0|            requireExtensions(loc, 1, &E_GL_ARB_bindless_texture, "ivec2/uvec2 convert to texture handle");
10855|       |            // No matter ivec2 or uvec2, Set EOpPackUint2x32 just to generate an opBitcast op code
10856|      0|            TIntermTyped* newNode =
10857|      0|                intermediate.addBuiltInFunctionCall(node->getLoc(), EOpPackUint2x32, true, node, type);
10858|      0|            return newNode;
10859|      0|        }
10860|      0|        [[fallthrough]];
10861|  1.08k|    case EOpConstructDVec2:
  ------------------
  |  Branch (10861:5): [True: 1.08k, False: 94.4k]
  ------------------
10862|  2.05k|    case EOpConstructDVec3:
  ------------------
  |  Branch (10862:5): [True: 970, False: 94.5k]
  ------------------
10863|  2.99k|    case EOpConstructDVec4:
  ------------------
  |  Branch (10863:5): [True: 940, False: 94.5k]
  ------------------
10864|  2.99k|    case EOpConstructDMat2x2:
  ------------------
  |  Branch (10864:5): [True: 1, False: 95.5k]
  ------------------
10865|  2.99k|    case EOpConstructDMat2x3:
  ------------------
  |  Branch (10865:5): [True: 0, False: 95.5k]
  ------------------
10866|  2.99k|    case EOpConstructDMat2x4:
  ------------------
  |  Branch (10866:5): [True: 0, False: 95.5k]
  ------------------
10867|  2.99k|    case EOpConstructDMat3x2:
  ------------------
  |  Branch (10867:5): [True: 0, False: 95.5k]
  ------------------
10868|  2.99k|    case EOpConstructDMat3x3:
  ------------------
  |  Branch (10868:5): [True: 0, False: 95.5k]
  ------------------
10869|  2.99k|    case EOpConstructDMat3x4:
  ------------------
  |  Branch (10869:5): [True: 0, False: 95.5k]
  ------------------
10870|  2.99k|    case EOpConstructDMat4x2:
  ------------------
  |  Branch (10870:5): [True: 0, False: 95.5k]
  ------------------
10871|  2.99k|    case EOpConstructDMat4x3:
  ------------------
  |  Branch (10871:5): [True: 0, False: 95.5k]
  ------------------
10872|  2.99k|    case EOpConstructDMat4x4:
  ------------------
  |  Branch (10872:5): [True: 0, False: 95.5k]
  ------------------
10873|  4.23k|    case EOpConstructDouble:
  ------------------
  |  Branch (10873:5): [True: 1.24k, False: 94.2k]
  ------------------
10874|  4.23k|        basicOp = EOpConstructDouble;
10875|  4.23k|        break;
10876|       |
10877|  1.38k|    case EOpConstructF16Vec2:
  ------------------
  |  Branch (10877:5): [True: 1.38k, False: 94.1k]
  ------------------
10878|  2.32k|    case EOpConstructF16Vec3:
  ------------------
  |  Branch (10878:5): [True: 939, False: 94.5k]
  ------------------
10879|  3.54k|    case EOpConstructF16Vec4:
  ------------------
  |  Branch (10879:5): [True: 1.22k, False: 94.2k]
  ------------------
10880|  3.54k|    case EOpConstructF16Mat2x2:
  ------------------
  |  Branch (10880:5): [True: 0, False: 95.5k]
  ------------------
10881|  3.54k|    case EOpConstructF16Mat2x3:
  ------------------
  |  Branch (10881:5): [True: 0, False: 95.5k]
  ------------------
10882|  3.54k|    case EOpConstructF16Mat2x4:
  ------------------
  |  Branch (10882:5): [True: 0, False: 95.5k]
  ------------------
10883|  3.54k|    case EOpConstructF16Mat3x2:
  ------------------
  |  Branch (10883:5): [True: 0, False: 95.5k]
  ------------------
10884|  3.54k|    case EOpConstructF16Mat3x3:
  ------------------
  |  Branch (10884:5): [True: 0, False: 95.5k]
  ------------------
10885|  3.54k|    case EOpConstructF16Mat3x4:
  ------------------
  |  Branch (10885:5): [True: 0, False: 95.5k]
  ------------------
10886|  3.54k|    case EOpConstructF16Mat4x2:
  ------------------
  |  Branch (10886:5): [True: 0, False: 95.5k]
  ------------------
10887|  3.54k|    case EOpConstructF16Mat4x3:
  ------------------
  |  Branch (10887:5): [True: 0, False: 95.5k]
  ------------------
10888|  3.54k|    case EOpConstructF16Mat4x4:
  ------------------
  |  Branch (10888:5): [True: 0, False: 95.5k]
  ------------------
10889|  4.30k|    case EOpConstructFloat16:
  ------------------
  |  Branch (10889:5): [True: 760, False: 94.7k]
  ------------------
10890|  4.30k|        basicOp = EOpConstructFloat16;
10891|       |        // 8/16-bit storage extensions don't support direct constructing composites of 8/16-bit types,
10892|       |        // so construct a 32-bit type and convert
10893|       |        // and do not generate any conversion if it is an identity conversion, i.e. float16_t(<float16_t> var)
10894|  4.30k|        if (!intermediate.getArithemeticFloat16Enabled() && (node->getBasicType() != EbtFloat16)) {
  ------------------
  |  Branch (10894:13): [True: 0, False: 4.30k]
  |  Branch (10894:61): [True: 0, False: 0]
  ------------------
10895|      0|            TType tempType(EbtFloat, EvqTemporary, type.getVectorSize());
10896|      0|            newNode = node;
10897|      0|            if (tempType != newNode->getType()) {
  ------------------
  |  Branch (10897:17): [True: 0, False: 0]
  ------------------
10898|      0|                TOperator aggregateOp;
10899|      0|                if (op == EOpConstructFloat16)
  ------------------
  |  Branch (10899:21): [True: 0, False: 0]
  ------------------
10900|      0|                    aggregateOp = EOpConstructFloat;
10901|      0|                else
10902|      0|                    aggregateOp = (TOperator)(EOpConstructVec2 + op - EOpConstructF16Vec2);
10903|      0|                newNode = constructBuiltIn(tempType, aggregateOp, newNode, loc, subset);
10904|      0|                if (newNode == nullptr)
  ------------------
  |  Branch (10904:21): [True: 0, False: 0]
  ------------------
10905|      0|                    return nullptr;
10906|      0|            }
10907|      0|            newNode = intermediate.addConversion(EbtFloat16, newNode);
10908|      0|            return newNode;
10909|      0|        }
10910|  4.30k|        break;
10911|       |
10912|  4.30k|    case EOpConstructBF16Vec2:
  ------------------
  |  Branch (10912:5): [True: 0, False: 95.5k]
  ------------------
10913|      0|    case EOpConstructBF16Vec3:
  ------------------
  |  Branch (10913:5): [True: 0, False: 95.5k]
  ------------------
10914|      0|    case EOpConstructBF16Vec4:
  ------------------
  |  Branch (10914:5): [True: 0, False: 95.5k]
  ------------------
10915|      0|    case EOpConstructBFloat16:
  ------------------
  |  Branch (10915:5): [True: 0, False: 95.5k]
  ------------------
10916|      0|        basicOp = EOpConstructBFloat16;
10917|      0|        break;
10918|       |
10919|      0|    case EOpConstructFloatE5M2Vec2:
  ------------------
  |  Branch (10919:5): [True: 0, False: 95.5k]
  ------------------
10920|      0|    case EOpConstructFloatE5M2Vec3:
  ------------------
  |  Branch (10920:5): [True: 0, False: 95.5k]
  ------------------
10921|      0|    case EOpConstructFloatE5M2Vec4:
  ------------------
  |  Branch (10921:5): [True: 0, False: 95.5k]
  ------------------
10922|      0|    case EOpConstructFloatE5M2:
  ------------------
  |  Branch (10922:5): [True: 0, False: 95.5k]
  ------------------
10923|      0|        basicOp = EOpConstructFloatE5M2;
10924|      0|        break;
10925|       |
10926|      0|    case EOpConstructFloatE4M3Vec2:
  ------------------
  |  Branch (10926:5): [True: 0, False: 95.5k]
  ------------------
10927|      0|    case EOpConstructFloatE4M3Vec3:
  ------------------
  |  Branch (10927:5): [True: 0, False: 95.5k]
  ------------------
10928|      0|    case EOpConstructFloatE4M3Vec4:
  ------------------
  |  Branch (10928:5): [True: 0, False: 95.5k]
  ------------------
10929|      0|    case EOpConstructFloatE4M3:
  ------------------
  |  Branch (10929:5): [True: 0, False: 95.5k]
  ------------------
10930|      0|        basicOp = EOpConstructFloatE4M3;
10931|      0|        break;
10932|       |
10933|      0|    case EOpConstructFloatE2M1Vec2:
  ------------------
  |  Branch (10933:5): [True: 0, False: 95.5k]
  ------------------
10934|      0|    case EOpConstructFloatE2M1Vec3:
  ------------------
  |  Branch (10934:5): [True: 0, False: 95.5k]
  ------------------
10935|      0|    case EOpConstructFloatE2M1Vec4:
  ------------------
  |  Branch (10935:5): [True: 0, False: 95.5k]
  ------------------
10936|      0|    case EOpConstructFloatE2M1:
  ------------------
  |  Branch (10936:5): [True: 0, False: 95.5k]
  ------------------
10937|      0|        basicOp = EOpConstructFloatE2M1;
10938|      0|        break;
10939|       |
10940|      0|    case EOpConstructFloatE3M2Vec2:
  ------------------
  |  Branch (10940:5): [True: 0, False: 95.5k]
  ------------------
10941|      0|    case EOpConstructFloatE3M2Vec3:
  ------------------
  |  Branch (10941:5): [True: 0, False: 95.5k]
  ------------------
10942|      0|    case EOpConstructFloatE3M2Vec4:
  ------------------
  |  Branch (10942:5): [True: 0, False: 95.5k]
  ------------------
10943|      0|    case EOpConstructFloatE3M2:
  ------------------
  |  Branch (10943:5): [True: 0, False: 95.5k]
  ------------------
10944|      0|        basicOp = EOpConstructFloatE3M2;
10945|      0|        break;
10946|       |
10947|      0|    case EOpConstructFloatE2M3Vec2:
  ------------------
  |  Branch (10947:5): [True: 0, False: 95.5k]
  ------------------
10948|      0|    case EOpConstructFloatE2M3Vec3:
  ------------------
  |  Branch (10948:5): [True: 0, False: 95.5k]
  ------------------
10949|      0|    case EOpConstructFloatE2M3Vec4:
  ------------------
  |  Branch (10949:5): [True: 0, False: 95.5k]
  ------------------
10950|      0|    case EOpConstructFloatE2M3:
  ------------------
  |  Branch (10950:5): [True: 0, False: 95.5k]
  ------------------
10951|      0|        basicOp = EOpConstructFloatE2M3;
10952|      0|        break;
10953|       |
10954|      0|    case EOpConstructFloatUE8M0Vec2:
  ------------------
  |  Branch (10954:5): [True: 0, False: 95.5k]
  ------------------
10955|      0|    case EOpConstructFloatUE8M0Vec3:
  ------------------
  |  Branch (10955:5): [True: 0, False: 95.5k]
  ------------------
10956|      0|    case EOpConstructFloatUE8M0Vec4:
  ------------------
  |  Branch (10956:5): [True: 0, False: 95.5k]
  ------------------
10957|      0|    case EOpConstructFloatUE8M0:
  ------------------
  |  Branch (10957:5): [True: 0, False: 95.5k]
  ------------------
10958|      0|        basicOp = EOpConstructFloatUE8M0;
10959|      0|        break;
10960|       |
10961|      0|    case EOpConstructFloatMXINT8Vec2:
  ------------------
  |  Branch (10961:5): [True: 0, False: 95.5k]
  ------------------
10962|      0|    case EOpConstructFloatMXINT8Vec3:
  ------------------
  |  Branch (10962:5): [True: 0, False: 95.5k]
  ------------------
10963|      0|    case EOpConstructFloatMXINT8Vec4:
  ------------------
  |  Branch (10963:5): [True: 0, False: 95.5k]
  ------------------
10964|      0|    case EOpConstructFloatMXINT8:
  ------------------
  |  Branch (10964:5): [True: 0, False: 95.5k]
  ------------------
10965|      0|        basicOp = EOpConstructFloatMXINT8;
10966|      0|        break;
10967|       |
10968|  1.84k|    case EOpConstructI8Vec2:
  ------------------
  |  Branch (10968:5): [True: 1.84k, False: 93.6k]
  ------------------
10969|  3.49k|    case EOpConstructI8Vec3:
  ------------------
  |  Branch (10969:5): [True: 1.64k, False: 93.8k]
  ------------------
10970|  5.11k|    case EOpConstructI8Vec4:
  ------------------
  |  Branch (10970:5): [True: 1.62k, False: 93.8k]
  ------------------
10971|  7.13k|    case EOpConstructInt8:
  ------------------
  |  Branch (10971:5): [True: 2.01k, False: 93.4k]
  ------------------
10972|  7.13k|        basicOp = EOpConstructInt8;
10973|       |        // 8/16-bit storage extensions don't support direct constructing composites of 8/16-bit types,
10974|       |        // so construct a 32-bit type and convert
10975|       |        // and do not generate any conversion if it is an identity conversion, i.e. int8_t(<int8_t> var)
10976|  7.13k|        if (!intermediate.getArithemeticInt8Enabled() && (node->getBasicType() != EbtInt8)) {
  ------------------
  |  Branch (10976:13): [True: 0, False: 7.13k]
  |  Branch (10976:58): [True: 0, False: 0]
  ------------------
10977|      0|            TType tempType(EbtInt, EvqTemporary, type.getVectorSize());
10978|      0|            newNode = node;
10979|      0|            if (tempType != newNode->getType()) {
  ------------------
  |  Branch (10979:17): [True: 0, False: 0]
  ------------------
10980|      0|                TOperator aggregateOp;
10981|      0|                if (op == EOpConstructInt8)
  ------------------
  |  Branch (10981:21): [True: 0, False: 0]
  ------------------
10982|      0|                    aggregateOp = EOpConstructInt;
10983|      0|                else
10984|      0|                    aggregateOp = (TOperator)(EOpConstructIVec2 + op - EOpConstructI8Vec2);
10985|      0|                newNode = constructBuiltIn(tempType, aggregateOp, newNode, loc, subset);
10986|      0|                if (newNode == nullptr)
  ------------------
  |  Branch (10986:21): [True: 0, False: 0]
  ------------------
10987|      0|                    return nullptr;
10988|      0|            }
10989|      0|            newNode = intermediate.addConversion(EbtInt8, newNode);
10990|      0|            return newNode;
10991|      0|        }
10992|  7.13k|        break;
10993|       |
10994|  7.13k|    case EOpConstructU8Vec2:
  ------------------
  |  Branch (10994:5): [True: 1.17k, False: 94.3k]
  ------------------
10995|  2.28k|    case EOpConstructU8Vec3:
  ------------------
  |  Branch (10995:5): [True: 1.11k, False: 94.4k]
  ------------------
10996|  3.35k|    case EOpConstructU8Vec4:
  ------------------
  |  Branch (10996:5): [True: 1.06k, False: 94.4k]
  ------------------
10997|  4.45k|    case EOpConstructUint8:
  ------------------
  |  Branch (10997:5): [True: 1.10k, False: 94.4k]
  ------------------
10998|  4.45k|        basicOp = EOpConstructUint8;
10999|       |        // 8/16-bit storage extensions don't support direct constructing composites of 8/16-bit types,
11000|       |        // so construct a 32-bit type and convert
11001|       |        // and do not generate any conversion if it is an identity conversion, i.e. uint8_t(<uint8_t> var)
11002|  4.45k|        if (!intermediate.getArithemeticInt8Enabled() && (node->getBasicType() != EbtUint8)) {
  ------------------
  |  Branch (11002:13): [True: 0, False: 4.45k]
  |  Branch (11002:58): [True: 0, False: 0]
  ------------------
11003|      0|            TType tempType(EbtUint, EvqTemporary, type.getVectorSize());
11004|      0|            newNode = node;
11005|      0|            if (tempType != newNode->getType()) {
  ------------------
  |  Branch (11005:17): [True: 0, False: 0]
  ------------------
11006|      0|                TOperator aggregateOp;
11007|      0|                if (op == EOpConstructUint8)
  ------------------
  |  Branch (11007:21): [True: 0, False: 0]
  ------------------
11008|      0|                    aggregateOp = EOpConstructUint;
11009|      0|                else
11010|      0|                    aggregateOp = (TOperator)(EOpConstructUVec2 + op - EOpConstructU8Vec2);
11011|      0|                newNode = constructBuiltIn(tempType, aggregateOp, newNode, loc, subset);
11012|      0|                if (newNode == nullptr)
  ------------------
  |  Branch (11012:21): [True: 0, False: 0]
  ------------------
11013|      0|                    return nullptr;
11014|      0|            }
11015|      0|            newNode = intermediate.addConversion(EbtUint8, newNode);
11016|      0|            return newNode;
11017|      0|        }
11018|  4.45k|        break;
11019|       |
11020|  4.45k|    case EOpConstructI16Vec2:
  ------------------
  |  Branch (11020:5): [True: 2.76k, False: 92.7k]
  ------------------
11021|  3.86k|    case EOpConstructI16Vec3:
  ------------------
  |  Branch (11021:5): [True: 1.10k, False: 94.4k]
  ------------------
11022|  4.96k|    case EOpConstructI16Vec4:
  ------------------
  |  Branch (11022:5): [True: 1.10k, False: 94.4k]
  ------------------
11023|  7.37k|    case EOpConstructInt16:
  ------------------
  |  Branch (11023:5): [True: 2.41k, False: 93.1k]
  ------------------
11024|  7.37k|        basicOp = EOpConstructInt16;
11025|       |        // 8/16-bit storage extensions don't support direct constructing composites of 8/16-bit types,
11026|       |        // so construct a 32-bit type and convert
11027|       |        // and do not generate any conversion if it is an identity conversion, i.e. int16_t(<int16_t> var)
11028|  7.37k|        if (!intermediate.getArithemeticInt16Enabled() && (node->getBasicType() != EbtInt16)) {
  ------------------
  |  Branch (11028:13): [True: 0, False: 7.37k]
  |  Branch (11028:59): [True: 0, False: 0]
  ------------------
11029|      0|            TType tempType(EbtInt, EvqTemporary, type.getVectorSize());
11030|      0|            newNode = node;
11031|      0|            if (tempType != newNode->getType()) {
  ------------------
  |  Branch (11031:17): [True: 0, False: 0]
  ------------------
11032|      0|                TOperator aggregateOp;
11033|      0|                if (op == EOpConstructInt16)
  ------------------
  |  Branch (11033:21): [True: 0, False: 0]
  ------------------
11034|      0|                    aggregateOp = EOpConstructInt;
11035|      0|                else
11036|      0|                    aggregateOp = (TOperator)(EOpConstructIVec2 + op - EOpConstructI16Vec2);
11037|      0|                newNode = constructBuiltIn(tempType, aggregateOp, newNode, loc, subset);
11038|      0|                if (newNode == nullptr)
  ------------------
  |  Branch (11038:21): [True: 0, False: 0]
  ------------------
11039|      0|                    return nullptr;
11040|      0|            }
11041|      0|            newNode = intermediate.addConversion(EbtInt16, newNode);
11042|      0|            return newNode;
11043|      0|        }
11044|  7.37k|        break;
11045|       |
11046|  7.37k|    case EOpConstructU16Vec2:
  ------------------
  |  Branch (11046:5): [True: 1.61k, False: 93.8k]
  ------------------
11047|  2.21k|    case EOpConstructU16Vec3:
  ------------------
  |  Branch (11047:5): [True: 593, False: 94.9k]
  ------------------
11048|  2.39k|    case EOpConstructU16Vec4:
  ------------------
  |  Branch (11048:5): [True: 178, False: 95.3k]
  ------------------
11049|  3.66k|    case EOpConstructUint16:
  ------------------
  |  Branch (11049:5): [True: 1.27k, False: 94.2k]
  ------------------
11050|  3.66k|        basicOp = EOpConstructUint16;
11051|       |        // 8/16-bit storage extensions don't support direct constructing composites of 8/16-bit types,
11052|       |        // so construct a 32-bit type and convert
11053|       |        // and do not generate any conversion if it is an identity conversion, i.e. uint16_t(<uint16_t> var)
11054|  3.66k|        if (!intermediate.getArithemeticInt16Enabled() && (node->getBasicType() != EbtUint16)) {
  ------------------
  |  Branch (11054:13): [True: 0, False: 3.66k]
  |  Branch (11054:59): [True: 0, False: 0]
  ------------------
11055|      0|            TType tempType(EbtUint, EvqTemporary, type.getVectorSize());
11056|      0|            newNode = node;
11057|      0|            if (tempType != newNode->getType()) {
  ------------------
  |  Branch (11057:17): [True: 0, False: 0]
  ------------------
11058|      0|                TOperator aggregateOp;
11059|      0|                if (op == EOpConstructUint16)
  ------------------
  |  Branch (11059:21): [True: 0, False: 0]
  ------------------
11060|      0|                    aggregateOp = EOpConstructUint;
11061|      0|                else
11062|      0|                    aggregateOp = (TOperator)(EOpConstructUVec2 + op - EOpConstructU16Vec2);
11063|      0|                newNode = constructBuiltIn(tempType, aggregateOp, newNode, loc, subset);
11064|      0|                if (newNode == nullptr)
  ------------------
  |  Branch (11064:21): [True: 0, False: 0]
  ------------------
11065|      0|                    return nullptr;
11066|      0|            }
11067|      0|            newNode = intermediate.addConversion(EbtUint16, newNode);
11068|      0|            return newNode;
11069|      0|        }
11070|  3.66k|        break;
11071|       |
11072|  3.66k|    case EOpConstructI64Vec2:
  ------------------
  |  Branch (11072:5): [True: 2.06k, False: 93.4k]
  ------------------
11073|  3.67k|    case EOpConstructI64Vec3:
  ------------------
  |  Branch (11073:5): [True: 1.61k, False: 93.9k]
  ------------------
11074|  5.31k|    case EOpConstructI64Vec4:
  ------------------
  |  Branch (11074:5): [True: 1.63k, False: 93.8k]
  ------------------
11075|  6.69k|    case EOpConstructInt64:
  ------------------
  |  Branch (11075:5): [True: 1.38k, False: 94.1k]
  ------------------
11076|  6.69k|        basicOp = EOpConstructInt64;
11077|  6.69k|        break;
11078|       |
11079|    559|    case EOpConstructUint64:
  ------------------
  |  Branch (11079:5): [True: 559, False: 94.9k]
  ------------------
11080|    559|        if (type.isScalar() && node->getType().isReference()) {
  ------------------
  |  Branch (11080:13): [True: 559, False: 0]
  |  Branch (11080:32): [True: 8, False: 551]
  ------------------
11081|      8|            TIntermTyped* newNode = intermediate.addBuiltInFunctionCall(node->getLoc(), EOpConvPtrToUint64, true, node, type);
11082|      8|            return newNode;
11083|      8|        }
11084|    551|        [[fallthrough]];
11085|  1.99k|    case EOpConstructU64Vec2:
  ------------------
  |  Branch (11085:5): [True: 1.44k, False: 94.0k]
  ------------------
11086|  3.46k|    case EOpConstructU64Vec3:
  ------------------
  |  Branch (11086:5): [True: 1.46k, False: 94.0k]
  ------------------
11087|  4.67k|    case EOpConstructU64Vec4:
  ------------------
  |  Branch (11087:5): [True: 1.21k, False: 94.3k]
  ------------------
11088|  4.67k|        basicOp = EOpConstructUint64;
11089|  4.67k|        break;
11090|       |
11091|      0|    case EOpConstructNonuniform:
  ------------------
  |  Branch (11091:5): [True: 0, False: 95.5k]
  ------------------
11092|       |        // Make a nonuniform copy of node
11093|      0|        newNode = intermediate.addBuiltInFunctionCall(node->getLoc(), EOpCopyObject, true, node, type);
11094|      0|        return newNode;
11095|       |
11096|     16|    case EOpConstructReference:
  ------------------
  |  Branch (11096:5): [True: 16, False: 95.5k]
  ------------------
11097|       |        // construct reference from reference
11098|     16|        if (node->getType().isReference()) {
  ------------------
  |  Branch (11098:13): [True: 4, False: 12]
  ------------------
11099|      4|            newNode = intermediate.addBuiltInFunctionCall(node->getLoc(), EOpConstructReference, true, node, type);
11100|      4|            return newNode;
11101|       |        // construct reference from uint64
11102|     12|        } else if (node->getType().isScalar() && node->getType().getBasicType() == EbtUint64) {
  ------------------
  |  Branch (11102:20): [True: 12, False: 0]
  |  Branch (11102:50): [True: 12, False: 0]
  ------------------
11103|     12|            TIntermTyped* newNode = intermediate.addBuiltInFunctionCall(node->getLoc(), EOpConvUint64ToPtr, true, node,
11104|     12|                type);
11105|     12|            return newNode;
11106|       |        // construct reference from uvec2
11107|     12|        } else if (node->getType().isVector() && node->getType().getBasicType() == EbtUint &&
  ------------------
  |  Branch (11107:20): [True: 0, False: 0]
  |  Branch (11107:50): [True: 0, False: 0]
  ------------------
11108|      0|                   node->getVectorSize() == 2) {
  ------------------
  |  Branch (11108:20): [True: 0, False: 0]
  ------------------
11109|      0|            requireExtensions(loc, 1, &E_GL_EXT_buffer_reference_uvec2, "uvec2 conversion to reference");
11110|      0|            TIntermTyped* newNode = intermediate.addBuiltInFunctionCall(node->getLoc(), EOpConvUvec2ToPtr, true, node,
11111|      0|                type);
11112|      0|            return newNode;
11113|      0|        } else {
11114|      0|            return nullptr;
11115|      0|        }
11116|       |
11117|      0|    case EOpConstructCooperativeVectorNV:
  ------------------
  |  Branch (11117:5): [True: 0, False: 95.5k]
  ------------------
11118|      0|        if (!node->getType().isCoopVecNV()) {
  ------------------
  |  Branch (11118:13): [True: 0, False: 0]
  ------------------
11119|      0|            if (type.getBasicType() != node->getType().getBasicType()) {
  ------------------
  |  Branch (11119:17): [True: 0, False: 0]
  ------------------
11120|      0|                node = intermediate.addConversion(type.getBasicType(), node);
11121|      0|                if (node == nullptr)
  ------------------
  |  Branch (11121:21): [True: 0, False: 0]
  ------------------
11122|      0|                    return nullptr;
11123|      0|            }
11124|      0|        }
11125|      0|        if (type.getBasicType() != node->getType().getBasicType()) {
  ------------------
  |  Branch (11125:13): [True: 0, False: 0]
  ------------------
11126|      0|            intermediate.buildConvertOp(type.getBasicType(), node->getType().getBasicType(), op);
11127|      0|            node = intermediate.addUnaryNode(op, node, node->getLoc(), type);
11128|      0|            return node;
11129|      0|        }
11130|      0|        if (subset) {
  ------------------
  |  Branch (11130:13): [True: 0, False: 0]
  ------------------
11131|      0|            return node;
11132|      0|        }
11133|       |
11134|      0|        node = intermediate.setAggregateOperator(node, op, type, node->getLoc());
11135|       |
11136|      0|        return node;
11137|       |
11138|      0|    case EOpConstructCooperativeMatrixNV:
  ------------------
  |  Branch (11138:5): [True: 0, False: 95.5k]
  ------------------
11139|      0|    case EOpConstructCooperativeMatrixKHR:
  ------------------
  |  Branch (11139:5): [True: 0, False: 95.5k]
  ------------------
11140|      0|        if (node->getType() == type) {
  ------------------
  |  Branch (11140:13): [True: 0, False: 0]
  ------------------
11141|      0|            return node;
11142|      0|        }
11143|      0|        if (!node->getType().isCoopMat()) {
  ------------------
  |  Branch (11143:13): [True: 0, False: 0]
  ------------------
11144|      0|            if (type.getBasicType() != node->getType().getBasicType()) {
  ------------------
  |  Branch (11144:17): [True: 0, False: 0]
  ------------------
11145|      0|                node = intermediate.addConversion(type.getBasicType(), node);
11146|      0|                if (node == nullptr)
  ------------------
  |  Branch (11146:21): [True: 0, False: 0]
  ------------------
11147|      0|                    return nullptr;
11148|      0|            }
11149|      0|            node = intermediate.setAggregateOperator(node, op, type, node->getLoc());
11150|      0|        } else if (type.sameCoopMatShape(node->getType()) && !type.sameCoopMatUse(node->getType()) &&
  ------------------
  |  Branch (11150:20): [True: 0, False: 0]
  |  Branch (11150:62): [True: 0, False: 0]
  ------------------
11151|      0|                   type.getBasicType() == node->getType().getBasicType()) {
  ------------------
  |  Branch (11151:20): [True: 0, False: 0]
  ------------------
11152|      0|            node = intermediate.setAggregateOperator(node, op, type, node->getLoc());
11153|      0|        } else {
11154|      0|            TOperator op = EOpConvNumeric;
11155|       |
11156|      0|            node = intermediate.addUnaryNode(op, node, node->getLoc(), type);
11157|       |            // If it's a (non-specialization) constant, it must be folded.
11158|      0|            if (node->getAsUnaryNode()->getOperand()->getAsConstantUnion())
  ------------------
  |  Branch (11158:17): [True: 0, False: 0]
  ------------------
11159|      0|                return node->getAsUnaryNode()->getOperand()->getAsConstantUnion()->fold(op, node->getType());
11160|      0|        }
11161|       |
11162|      0|        return node;
11163|       |
11164|      0|    case EOpConstructAccStruct:
  ------------------
  |  Branch (11164:5): [True: 0, False: 95.5k]
  ------------------
11165|      0|        if ((node->getType().isScalar() && node->getType().getBasicType() == EbtUint64)) {
  ------------------
  |  Branch (11165:14): [True: 0, False: 0]
  |  Branch (11165:44): [True: 0, False: 0]
  ------------------
11166|       |            // construct acceleration structure from uint64
11167|      0|            requireExtensions(loc, Num_ray_tracing_EXTs, ray_tracing_EXTs, "uint64_t conversion to acclerationStructureEXT");
11168|      0|            return intermediate.addBuiltInFunctionCall(node->getLoc(), EOpConvUint64ToAccStruct, true, node,
11169|      0|                type);
11170|      0|        } else if (node->getType().isVector() && node->getType().getBasicType() == EbtUint && node->getVectorSize() == 2) {
  ------------------
  |  Branch (11170:20): [True: 0, False: 0]
  |  Branch (11170:50): [True: 0, False: 0]
  |  Branch (11170:95): [True: 0, False: 0]
  ------------------
11171|       |            // construct acceleration structure from uint64
11172|      0|            requireExtensions(loc, Num_ray_tracing_EXTs, ray_tracing_EXTs, "uvec2 conversion to accelerationStructureEXT");
11173|      0|            return intermediate.addBuiltInFunctionCall(node->getLoc(), EOpConvUvec2ToAccStruct, true, node,
11174|      0|                type);
11175|      0|        } else
11176|      0|            return nullptr;
11177|       |
11178|      0|    default:
  ------------------
  |  Branch (11178:5): [True: 0, False: 95.5k]
  ------------------
11179|      0|        error(loc, "unsupported construction", "", "");
11180|       |
11181|      0|        return nullptr;
11182|  95.5k|    }
11183|  95.4k|    newNode = intermediate.addUnaryMath(basicOp, node, node->getLoc());
11184|  95.4k|    if (newNode == nullptr) {
  ------------------
  |  Branch (11184:9): [True: 0, False: 95.4k]
  ------------------
11185|      0|        error(loc, "can't convert", "constructor", "");
11186|      0|        return nullptr;
11187|      0|    }
11188|       |
11189|       |    //
11190|       |    // Now, if there still isn't an operation to do the construction, and we need one, add one.
11191|       |    //
11192|       |
11193|       |    // Otherwise, skip out early.
11194|  95.4k|    if (subset || (newNode != node && newNode->getType() == type))
  ------------------
  |  Branch (11194:9): [True: 32.1k, False: 63.3k]
  |  Branch (11194:20): [True: 48.4k, False: 14.8k]
  |  Branch (11194:39): [True: 16.6k, False: 31.8k]
  ------------------
11195|  48.8k|        return newNode;
11196|       |
11197|       |    // setAggregateOperator will insert a new node for the constructor, as needed.
11198|  46.6k|    return intermediate.setAggregateOperator(newNode, op, type, loc);
11199|  95.4k|}
_ZN7glslang13TParseContext12makeVariadicEPNS_9TFunctionERKNS_10TSourceLocE:
11201|  18.0k|void TParseContext::makeVariadic(TFunction *F, const TSourceLoc &loc) {
11202|  18.0k|    if (parsingBuiltins) {
  ------------------
  |  Branch (11202:9): [True: 18.0k, False: 0]
  ------------------
11203|  18.0k|        F->setVariadic();
11204|  18.0k|    } else {
11205|      0|        error(loc, "variadic argument specifier is only available for builtins", "...", "");
11206|      0|    }
11207|  18.0k|}
_ZN7glslang13TParseContext19getParamWithDefaultERKNS_11TPublicTypeEPNSt3__112basic_stringIcNS4_11char_traitsIcEENS_14pool_allocatorIcEEEEPNS_12TIntermTypedERKNS_10TSourceLocE:
11211|  18.0k|{
11212|  18.0k|    if (!parsingBuiltins) {
  ------------------
  |  Branch (11212:9): [True: 0, False: 18.0k]
  ------------------
11213|      0|        error(loc, "default argument values are only available for builtins", "=", "");
11214|      0|        initializer = nullptr;
11215|      0|    }
11216|  18.0k|    if (ty.arraySizes) {
  ------------------
  |  Branch (11216:9): [True: 0, False: 18.0k]
  ------------------
11217|      0|        error(loc, "array arguments cannot be default-initialized", identifier->c_str(), "");
11218|      0|        initializer = nullptr;
11219|      0|    }
11220|  18.0k|    if (ty.basicType == EbtVoid) {
  ------------------
  |  Branch (11220:9): [True: 0, False: 18.0k]
  ------------------
11221|      0|        error(loc, "illegal use of type 'void'", identifier->c_str(), "");
11222|      0|        initializer = nullptr;
11223|      0|    }
11224|  18.0k|    reservedErrorCheck(loc, *identifier);
11225|  18.0k|    TParameter param = {identifier, new TType(ty), initializer};
11226|  18.0k|    return param;
11227|  18.0k|}
_ZN7glslang13TParseContext18constructAggregateEP11TIntermNodeRKNS_5TTypeEiRKNS_10TSourceLocE:
11235|  5.84k|{
11236|  5.84k|    TIntermTyped* converted = intermediate.addConversion(EOpConstructStruct, type, node->getAsTyped());
11237|  5.84k|    if (! converted || converted->getType() != type) {
  ------------------
  |  Branch (11237:9): [True: 60, False: 5.78k]
  |  Branch (11237:24): [True: 1, False: 5.78k]
  ------------------
11238|     61|        bool enhanced = intermediate.getEnhancedMsgs();
11239|     61|        error(loc, "", "constructor", "cannot convert parameter %d from '%s' to '%s'", paramCount,
11240|     61|              node->getAsTyped()->getType().getCompleteString(enhanced).c_str(), type.getCompleteString(enhanced).c_str());
11241|       |
11242|     61|        return nullptr;
11243|     61|    }
11244|       |
11245|  5.78k|    return converted;
11246|  5.84k|}
_ZN7glslang13TParseContext23inheritMemoryQualifiersERKNS_10TQualifierERS1_:
11250|  39.7k|{
11251|  39.7k|    if (from.isReadOnly())
  ------------------
  |  Branch (11251:9): [True: 13, False: 39.7k]
  ------------------
11252|     13|        to.readonly = from.readonly;
11253|  39.7k|    if (from.isWriteOnly())
  ------------------
  |  Branch (11253:9): [True: 19, False: 39.6k]
  ------------------
11254|     19|        to.writeonly = from.writeonly;
11255|  39.7k|    if (from.coherent)
  ------------------
  |  Branch (11255:9): [True: 0, False: 39.7k]
  ------------------
11256|      0|        to.coherent = from.coherent;
11257|  39.7k|    if (from.volatil)
  ------------------
  |  Branch (11257:9): [True: 0, False: 39.7k]
  ------------------
11258|      0|        to.volatil = from.volatil;
11259|  39.7k|    if (from.nontemporal)
  ------------------
  |  Branch (11259:9): [True: 0, False: 39.7k]
  ------------------
11260|      0|        to.nontemporal = from.nontemporal;
11261|  39.7k|    if (from.restrict)
  ------------------
  |  Branch (11261:9): [True: 13, False: 39.7k]
  ------------------
11262|     13|        to.restrict = from.restrict;
11263|  39.7k|}
_ZN7glslang13TParseContext16untypedHeapCheckEPNS_7TSymbolERKNS_5TTypeERKNS_10TSourceLocEPKc:
11338|   674k|{
11339|       |    // EXT_descriptor_heap
11340|   674k|    bool isHeapStruct =
11341|   674k|        (type.getQualifier().storage == EvqSamplerHeap || type.getQualifier().storage == EvqResourceHeap);
  ------------------
  |  Branch (11341:10): [True: 0, False: 674k]
  |  Branch (11341:59): [True: 0, False: 674k]
  ------------------
11342|       |
11343|   674k|    if (intermediate.IsRequestedExtension(E_GL_EXT_descriptor_heap) && spvVersion.vulkan > 0 &&
  ------------------
  |  Branch (11343:9): [True: 0, False: 674k]
  |  Branch (11343:72): [True: 0, False: 0]
  ------------------
11344|      0|        !type.getQualifier().hasSet() && !type.getQualifier().hasBinding()) {
  ------------------
  |  Branch (11344:9): [True: 0, False: 0]
  |  Branch (11344:42): [True: 0, False: 0]
  ------------------
11345|      0|        if (type.getQualifier().layoutDescriptorHeap || isHeapStruct) {
  ------------------
  |  Branch (11345:13): [True: 0, False: 0]
  |  Branch (11345:57): [True: 0, False: 0]
  ------------------
11346|      0|            if ((intermediate.isEsProfile() && intermediate.getVersion() < 310) ||
  ------------------
  |  Branch (11346:18): [True: 0, False: 0]
  |  Branch (11346:48): [True: 0, False: 0]
  ------------------
11347|      0|                (!intermediate.isEsProfile() && intermediate.getVersion() < 420)) {
  ------------------
  |  Branch (11347:18): [True: 0, False: 0]
  |  Branch (11347:49): [True: 0, False: 0]
  ------------------
11348|      0|                TString warnMsg = "layout(descriptor_heap) is turned on beyond version/profile limits.";
11349|      0|                infoSink.info.message(EPrefixWarning, warnMsg.c_str());
11350|      0|            }
11351|      0|            if (IsAnonymous(symbol->getName()) &&
  ------------------
  |  Branch (11351:17): [True: 0, False: 0]
  ------------------
11352|      0|                (type.getQualifier().isUniformOrBuffer() || type.getBasicType() == EbtBlock)) {
  ------------------
  |  Branch (11352:18): [True: 0, False: 0]
  |  Branch (11352:61): [True: 0, False: 0]
  ------------------
11353|      0|                error(loc, "layout(descriptor_heap) decorated block should be explicitly "
11354|      0|                    "declared with a run-time sized array type.", name, "");
11355|      0|                return false;
11356|      0|            }
11357|      0|            if (type.getBasicType() == EbtSampler && type.getSampler().isCombined()) {
  ------------------
  |  Branch (11357:17): [True: 0, False: 0]
  |  Branch (11357:54): [True: 0, False: 0]
  ------------------
11358|      0|                error(loc, "layout(descriptor_heap) cannot be used with combined image samplers.",
11359|      0|                      name, "");
11360|      0|                return false;
11361|      0|            }
11362|      0|            if (!type.containsHeapArray() && !isHeapStruct) {
  ------------------
  |  Branch (11362:17): [True: 0, False: 0]
  |  Branch (11362:46): [True: 0, False: 0]
  ------------------
11363|      0|                error(loc, "layout(descriptor_heap) decorated variable could only be declared as an array.",
11364|      0|                      name, "");
11365|      0|                return false;
11366|      0|            }
11367|       |
11368|      0|            if (isHeapStruct && type.isArray()) {
  ------------------
  |  Branch (11368:17): [True: 0, False: 0]
  |  Branch (11368:33): [True: 0, False: 0]
  ------------------
11369|      0|                error(loc, "resourceheap / samplerheap block cannot itself be an array.", name, "");
11370|      0|                return false;
11371|      0|            }
11372|       |
11373|      0|            descHeapBuiltinRemap(&symbol->getWritableType(), true);
11374|      0|        }
11375|      0|    }
11376|   674k|    return true;
11377|   674k|}
_ZN7glslang13TParseContext12declareBlockERKNS_10TSourceLocERNS_7TVectorINS_8TTypeLocEEEPKNSt3__112basic_stringIcNS8_11char_traitsIcEENS_14pool_allocatorIcEEEEPNS_11TArraySizesE:
11389|  8.10k|{
11390|  8.10k|    if (spvVersion.vulkan > 0 && spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (11390:9): [True: 8.10k, False: 0]
  |  Branch (11390:34): [True: 0, False: 8.10k]
  ------------------
11391|      0|        blockStorageRemap(loc, blockName, currentBlockQualifier);
11392|  8.10k|    blockStageIoCheck(loc, currentBlockQualifier);
11393|  8.10k|    blockQualifierCheck(loc, currentBlockQualifier, instanceName != nullptr);
11394|  8.10k|    if (arraySizes != nullptr) {
  ------------------
  |  Branch (11394:9): [True: 3.63k, False: 4.47k]
  ------------------
11395|  3.63k|        arraySizesCheck(loc, currentBlockQualifier, arraySizes, nullptr, false);
11396|  3.63k|        arrayOfArrayVersionCheck(loc, arraySizes);
11397|  3.63k|        if (arraySizes->getNumDims() > 1)
  ------------------
  |  Branch (11397:13): [True: 11, False: 3.62k]
  ------------------
11398|     11|            requireProfile(loc, ~EEsProfile, "array-of-array of block");
11399|  3.63k|    }
11400|       |
11401|       |    // Inherit and check member storage qualifiers WRT to the block-level qualifier.
11402|  41.5k|    for (unsigned int member = 0; member < typeList.size(); ++member) {
  ------------------
  |  Branch (11402:35): [True: 33.4k, False: 8.10k]
  ------------------
11403|  33.4k|        TType& memberType = *typeList[member].type;
11404|  33.4k|        TQualifier& memberQualifier = memberType.getQualifier();
11405|  33.4k|        const TSourceLoc& memberLoc = typeList[member].loc;
11406|  33.4k|        const bool heapBufferTypeMember =
11407|  33.4k|            isResourceHeapBufferTypeMember(currentBlockQualifier, memberQualifier);
11408|  33.4k|        const bool heapBlockMember =
11409|  33.4k|            currentBlockQualifier.storage == EvqResourceHeap || currentBlockQualifier.storage == EvqSamplerHeap;
  ------------------
  |  Branch (11409:13): [True: 0, False: 33.4k]
  |  Branch (11409:65): [True: 0, False: 33.4k]
  ------------------
11410|  33.4k|        if (memberQualifier.layoutDescriptorHeap && !heapBlockMember)
  ------------------
  |  Branch (11410:13): [True: 0, False: 33.4k]
  |  Branch (11410:53): [True: 0, False: 0]
  ------------------
11411|      0|            error(memberLoc, "can only be used on resourceheap or samplerheap block members", "descriptor heap member", "");
11412|  33.4k|        if (memberQualifier.storage != EvqTemporary && memberQualifier.storage != EvqGlobal &&
  ------------------
  |  Branch (11412:13): [True: 31.3k, False: 2.10k]
  |  Branch (11412:56): [True: 402, False: 30.9k]
  ------------------
11413|    402|            memberQualifier.storage != currentBlockQualifier.storage && !heapBufferTypeMember)
  ------------------
  |  Branch (11413:13): [True: 11, False: 391]
  |  Branch (11413:73): [True: 11, False: 0]
  ------------------
11414|     11|            error(memberLoc, "member storage qualifier cannot contradict block storage qualifier", memberType.getFieldName().c_str(), "");
11415|  33.4k|        if (!heapBufferTypeMember)
  ------------------
  |  Branch (11415:13): [True: 33.4k, False: 0]
  ------------------
11416|  33.4k|            memberQualifier.storage = currentBlockQualifier.storage;
11417|  33.4k|        globalQualifierFixCheck(memberLoc, memberQualifier);
11418|  33.4k|        inheritMemoryQualifiers(currentBlockQualifier, memberQualifier);
11419|  33.4k|        if (currentBlockQualifier.perPrimitiveNV)
  ------------------
  |  Branch (11419:13): [True: 3.38k, False: 30.0k]
  ------------------
11420|  3.38k|            memberQualifier.perPrimitiveNV = currentBlockQualifier.perPrimitiveNV;
11421|  33.4k|        if (currentBlockQualifier.perViewNV)
  ------------------
  |  Branch (11421:13): [True: 0, False: 33.4k]
  ------------------
11422|      0|            memberQualifier.perViewNV = currentBlockQualifier.perViewNV;
11423|  33.4k|        if (currentBlockQualifier.perTaskNV)
  ------------------
  |  Branch (11423:13): [True: 0, False: 33.4k]
  ------------------
11424|      0|            memberQualifier.perTaskNV = currentBlockQualifier.perTaskNV;
11425|  33.4k|        if (currentBlockQualifier.storage == EvqtaskPayloadSharedEXT)
  ------------------
  |  Branch (11425:13): [True: 0, False: 33.4k]
  ------------------
11426|      0|            memberQualifier.storage = EvqtaskPayloadSharedEXT;
11427|  33.4k|        if (memberQualifier.storage == EvqSpirvStorageClass)
  ------------------
  |  Branch (11427:13): [True: 0, False: 33.4k]
  ------------------
11428|      0|            error(memberLoc, "member cannot have a spirv_storage_class qualifier", memberType.getFieldName().c_str(), "");
11429|  33.4k|        if (memberQualifier.hasSpirvDecorate() && !memberQualifier.getSpirvDecorate().decorateIds.empty())
  ------------------
  |  Branch (11429:13): [True: 0, False: 33.4k]
  |  Branch (11429:51): [True: 0, False: 0]
  ------------------
11430|      0|            error(memberLoc, "member cannot have a spirv_decorate_id qualifier", memberType.getFieldName().c_str(), "");
11431|  33.4k|        if ((currentBlockQualifier.storage == EvqUniform || currentBlockQualifier.storage == EvqBuffer) && (memberQualifier.isInterpolation() || memberQualifier.isAuxiliary()))
  ------------------
  |  Branch (11431:14): [True: 2.03k, False: 31.4k]
  |  Branch (11431:61): [True: 997, False: 30.4k]
  |  Branch (11431:109): [True: 0, False: 3.03k]
  |  Branch (11431:146): [True: 0, False: 3.03k]
  ------------------
11432|      0|            error(memberLoc, "member of uniform or buffer block cannot have an auxiliary or interpolation qualifier", memberType.getFieldName().c_str(), "");
11433|  33.4k|        if (memberType.isArray())
  ------------------
  |  Branch (11433:13): [True: 14.4k, False: 19.0k]
  ------------------
11434|  14.4k|            arraySizesCheck(memberLoc, currentBlockQualifier, memberType.getArraySizes(), nullptr, member == typeList.size() - 1);
11435|  33.4k|        if (memberQualifier.hasOffset()) {
  ------------------
  |  Branch (11435:13): [True: 131, False: 33.3k]
  ------------------
11436|    131|            if (spvVersion.spv == 0) {
  ------------------
  |  Branch (11436:17): [True: 0, False: 131]
  ------------------
11437|      0|                profileRequires(memberLoc, ~EEsProfile, 440, E_GL_ARB_enhanced_layouts, "\"offset\" on block member");
11438|      0|                profileRequires(memberLoc, EEsProfile, 300, E_GL_ARB_enhanced_layouts, "\"offset\" on block member");
11439|      0|            }
11440|    131|        }
11441|       |
11442|  33.4k|        if (memberQualifier.layoutDescriptorSize != TQualifier::layoutDescriptorSizeEnd && !heapBlockMember)
  ------------------
  |  Branch (11442:13): [True: 0, False: 33.4k]
  |  Branch (11442:92): [True: 0, False: 0]
  ------------------
11443|      0|            error(memberLoc, "can only be used on resourceheap or samplerheap block members", "descriptor_size", "");
11444|       |
11445|       |        // For bindless texture, sampler can be declared as uniform/storage block member,
11446|  33.4k|        if (memberType.containsOpaque() && !extensionTurnedOn(E_GL_EXT_structured_descriptor_heap)) {
  ------------------
  |  Branch (11446:13): [True: 1, False: 33.4k]
  |  Branch (11446:44): [True: 1, False: 0]
  ------------------
11447|      1|            if (memberType.containsSampler() && extensionTurnedOn(E_GL_ARB_bindless_texture))
  ------------------
  |  Branch (11447:17): [True: 1, False: 0]
  |  Branch (11447:49): [True: 0, False: 1]
  ------------------
11448|      0|                updateBindlessQualifier(memberType);
11449|      1|            else
11450|      1|                error(memberLoc, "member of block cannot be or contain a sampler, image, or atomic_uint type", typeList[member].type->getFieldName().c_str(), "");
11451|      1|        }
11452|       |
11453|  33.4k|        if (memberType.containsCoopMat())
  ------------------
  |  Branch (11453:13): [True: 0, False: 33.4k]
  ------------------
11454|      0|            error(memberLoc, "member of block cannot be or contain a cooperative matrix type", typeList[member].type->getFieldName().c_str(), "");
11455|       |
11456|  33.4k|        if (memberType.containsCoopVec())
  ------------------
  |  Branch (11456:13): [True: 0, False: 33.4k]
  ------------------
11457|      0|            error(memberLoc, "member of block cannot be or contain a cooperative vector type", typeList[member].type->getFieldName().c_str(), "");
11458|       |
11459|  33.4k|        if (memberType.containsOcpMicroscalingNonByteFloat())
  ------------------
  |  Branch (11459:13): [True: 0, False: 33.4k]
  ------------------
11460|      0|            error(memberLoc, "member of block cannot be or contain a sub-byte type", typeList[member].type->getFieldName().c_str(), "");
11461|  33.4k|    }
11462|       |
11463|       |    // This might be a redeclaration of a built-in block.  If so, redeclareBuiltinBlock() will
11464|       |    // do all the rest.
11465|  8.10k|    if (! symbolTable.atBuiltInLevel() && builtInName(*blockName)) {
  ------------------
  |  Branch (11465:9): [True: 2.30k, False: 5.80k]
  |  Branch (11465:43): [True: 98, False: 2.20k]
  ------------------
11466|     98|        redeclareBuiltinBlock(loc, typeList, *blockName, instanceName, arraySizes);
11467|     98|        return nullptr;
11468|     98|    }
11469|       |
11470|       |    // Not a redeclaration of a built-in; check that all names are user names.
11471|  8.01k|    reservedErrorCheck(loc, *blockName);
11472|  8.01k|    if (instanceName)
  ------------------
  |  Branch (11472:9): [True: 4.57k, False: 3.43k]
  ------------------
11473|  4.57k|        reservedErrorCheck(loc, *instanceName);
11474|  41.3k|    for (unsigned int member = 0; member < typeList.size(); ++member)
  ------------------
  |  Branch (11474:35): [True: 33.3k, False: 8.01k]
  ------------------
11475|  33.3k|        reservedErrorCheck(typeList[member].loc, typeList[member].type->getFieldName());
11476|       |
11477|       |    // Make default block qualification, and adjust the member qualifications
11478|       |
11479|  8.01k|    TQualifier defaultQualification;
11480|  8.01k|    switch (currentBlockQualifier.storage) {
11481|  1.08k|    case EvqUniform:    defaultQualification = globalUniformDefaults;    break;
  ------------------
  |  Branch (11481:5): [True: 1.08k, False: 6.93k]
  ------------------
11482|    407|    case EvqBuffer:     defaultQualification = globalBufferDefaults;     break;
  ------------------
  |  Branch (11482:5): [True: 407, False: 7.60k]
  ------------------
11483|  1.54k|    case EvqVaryingIn:  defaultQualification = globalInputDefaults;      break;
  ------------------
  |  Branch (11483:5): [True: 1.54k, False: 6.46k]
  ------------------
11484|  4.96k|    case EvqVaryingOut: defaultQualification = globalOutputDefaults;     break;
  ------------------
  |  Branch (11484:5): [True: 4.96k, False: 3.04k]
  ------------------
11485|      0|    case EvqShared:     defaultQualification = globalSharedDefaults;     break;
  ------------------
  |  Branch (11485:5): [True: 0, False: 8.01k]
  ------------------
11486|      0|    case EvqResourceHeap:
  ------------------
  |  Branch (11486:5): [True: 0, False: 8.01k]
  ------------------
11487|      0|    case EvqSamplerHeap:
  ------------------
  |  Branch (11487:5): [True: 0, False: 8.01k]
  ------------------
11488|       |        // Heap data uses scalar packing even without an explicit layout qualifier.
11489|      0|        defaultQualification.clear();
11490|      0|        defaultQualification.layoutPacking = ElpScalar;
11491|      0|        break;
11492|      9|    default:            defaultQualification.clear();                    break;
  ------------------
  |  Branch (11492:5): [True: 9, False: 8.00k]
  ------------------
11493|  8.01k|    }
11494|       |
11495|       |    // Special case for "push_constant uniform", which has a default of std430,
11496|       |    // contrary to normal uniform defaults, and can't have a default tracked for it.
11497|  8.01k|    if ((currentBlockQualifier.isPushConstant() && !currentBlockQualifier.hasPacking()) ||
  ------------------
  |  Branch (11497:10): [True: 56, False: 7.95k]
  |  Branch (11497:52): [True: 46, False: 10]
  ------------------
11498|  7.96k|        (currentBlockQualifier.isShaderRecord() && !currentBlockQualifier.hasPacking()))
  ------------------
  |  Branch (11498:10): [True: 0, False: 7.96k]
  |  Branch (11498:52): [True: 0, False: 0]
  ------------------
11499|     46|        currentBlockQualifier.layoutPacking = ElpStd430;
11500|       |
11501|       |    // Special case for "taskNV in/out", which has a default of std430,
11502|  8.01k|    if (currentBlockQualifier.isTaskMemory() && !currentBlockQualifier.hasPacking())
  ------------------
  |  Branch (11502:9): [True: 0, False: 8.01k]
  |  Branch (11502:49): [True: 0, False: 0]
  ------------------
11503|      0|        currentBlockQualifier.layoutPacking = ElpStd430;
11504|       |
11505|       |    // fix and check for member layout qualifiers
11506|       |
11507|  8.01k|    mergeObjectLayoutQualifiers(defaultQualification, currentBlockQualifier, true);
11508|       |
11509|       |    // "The align qualifier can only be used on blocks or block members, and only for blocks declared with std140 or std430 layouts."
11510|  8.01k|    if (currentBlockQualifier.hasAlign()) {
  ------------------
  |  Branch (11510:9): [True: 64, False: 7.94k]
  ------------------
11511|     64|        if (defaultQualification.layoutPacking != ElpStd140 &&
  ------------------
  |  Branch (11511:13): [True: 40, False: 24]
  ------------------
11512|     40|            defaultQualification.layoutPacking != ElpStd430 &&
  ------------------
  |  Branch (11512:13): [True: 25, False: 15]
  ------------------
11513|     25|            defaultQualification.layoutPacking != ElpScalar) {
  ------------------
  |  Branch (11513:13): [True: 25, False: 0]
  ------------------
11514|     25|            error(loc, "can only be used with std140, std430, or scalar layout packing", "align", "");
11515|     25|            defaultQualification.layoutAlign = -1;
11516|     25|        }
11517|     64|    }
11518|       |
11519|  8.01k|    bool memberWithLocation = false;
11520|  8.01k|    bool memberWithoutLocation = false;
11521|  8.01k|    bool memberWithPerViewQualifier = false;
11522|  41.3k|    for (unsigned int member = 0; member < typeList.size(); ++member) {
  ------------------
  |  Branch (11522:35): [True: 33.3k, False: 8.01k]
  ------------------
11523|  33.3k|        TQualifier& memberQualifier = typeList[member].type->getQualifier();
11524|  33.3k|        const TSourceLoc& memberLoc = typeList[member].loc;
11525|  33.3k|        const bool heapBufferTypeMember =
11526|  33.3k|            isResourceHeapBufferTypeMember(currentBlockQualifier, memberQualifier);
11527|  33.3k|        if (memberQualifier.hasStream()) {
  ------------------
  |  Branch (11527:13): [True: 0, False: 33.3k]
  ------------------
11528|      0|            if (defaultQualification.layoutStream != memberQualifier.layoutStream)
  ------------------
  |  Branch (11528:17): [True: 0, False: 0]
  ------------------
11529|      0|                error(memberLoc, "member cannot contradict block", "stream", "");
11530|      0|        }
11531|       |
11532|       |        // "This includes a block's inheritance of the
11533|       |        // current global default buffer, a block member's inheritance of the block's
11534|       |        // buffer, and the requirement that any *xfb_buffer* declared on a block
11535|       |        // member must match the buffer inherited from the block."
11536|  33.3k|        if (memberQualifier.hasXfbBuffer()) {
  ------------------
  |  Branch (11536:13): [True: 0, False: 33.3k]
  ------------------
11537|      0|            if (defaultQualification.layoutXfbBuffer != memberQualifier.layoutXfbBuffer)
  ------------------
  |  Branch (11537:17): [True: 0, False: 0]
  ------------------
11538|      0|                error(memberLoc, "member cannot contradict block (or what block inherited from global)", "xfb_buffer", "");
11539|      0|        }
11540|       |
11541|  33.3k|        if (memberQualifier.hasPacking() && !heapBufferTypeMember)
  ------------------
  |  Branch (11541:13): [True: 0, False: 33.3k]
  |  Branch (11541:45): [True: 0, False: 0]
  ------------------
11542|      0|            error(memberLoc, "member of block cannot have a packing layout qualifier", typeList[member].type->getFieldName().c_str(), "");
11543|  33.3k|        if (memberQualifier.hasLocation()) {
  ------------------
  |  Branch (11543:13): [True: 350, False: 33.0k]
  ------------------
11544|    350|            const char* feature = "location on block member";
11545|    350|            switch (currentBlockQualifier.storage) {
11546|    305|            case EvqVaryingIn:
  ------------------
  |  Branch (11546:13): [True: 305, False: 45]
  ------------------
11547|    305|            case EvqVaryingOut:
  ------------------
  |  Branch (11547:13): [True: 0, False: 350]
  ------------------
11548|    305|                requireProfile(memberLoc, ECoreProfile | ECompatibilityProfile | EEsProfile, feature);
11549|    305|                if (spvVersion.spv == 0)
  ------------------
  |  Branch (11549:21): [True: 0, False: 305]
  ------------------
11550|      0|                    profileRequires(memberLoc, ECoreProfile | ECompatibilityProfile, 440, E_GL_ARB_enhanced_layouts,
11551|      0|                                    feature);
11552|    305|                profileRequires(memberLoc, EEsProfile, 320, Num_AEP_shader_io_blocks, AEP_shader_io_blocks, feature);
11553|    305|                memberWithLocation = true;
11554|    305|                break;
11555|     45|            default:
  ------------------
  |  Branch (11555:13): [True: 45, False: 305]
  ------------------
11556|     45|                error(memberLoc, "can only use in an in/out block", feature, "");
11557|     45|                break;
11558|    350|            }
11559|    350|        } else
11560|  33.0k|            memberWithoutLocation = true;
11561|       |
11562|       |        // "The offset qualifier can only be used on block members of blocks declared with std140 or std430 layouts."
11563|       |        // "The align qualifier can only be used on blocks or block members, and only for blocks declared with std140 or std430 layouts."
11564|  33.3k|        if (memberQualifier.hasAlign() || memberQualifier.hasOffset()) {
  ------------------
  |  Branch (11564:13): [True: 81, False: 33.2k]
  |  Branch (11564:43): [True: 91, False: 33.1k]
  ------------------
11565|    172|            if (defaultQualification.layoutPacking != ElpStd140 &&
  ------------------
  |  Branch (11565:17): [True: 86, False: 86]
  ------------------
11566|     86|                defaultQualification.layoutPacking != ElpStd430 &&
  ------------------
  |  Branch (11566:17): [True: 21, False: 65]
  ------------------
11567|     21|                defaultQualification.layoutPacking != ElpScalar)
  ------------------
  |  Branch (11567:17): [True: 21, False: 0]
  ------------------
11568|     21|                error(memberLoc, "can only be used with std140, std430, or scalar layout packing", "offset/align", "");
11569|    172|        }
11570|       |
11571|  33.3k|        if (memberQualifier.isPerView()) {
  ------------------
  |  Branch (11571:13): [True: 1.54k, False: 31.8k]
  ------------------
11572|  1.54k|            memberWithPerViewQualifier = true;
11573|  1.54k|        }
11574|       |
11575|  33.3k|        TQualifier newMemberQualification = defaultQualification;
11576|  33.3k|        mergeQualifiers(memberLoc, newMemberQualification, memberQualifier, false);
11577|  33.3k|        memberQualifier = newMemberQualification;
11578|  33.3k|    }
11579|       |
11580|  8.01k|    layoutMemberLocationArrayCheck(loc, memberWithLocation, arraySizes);
11581|       |
11582|       |    // Ensure that the block has an XfbBuffer assigned. This is needed
11583|       |    // because if the block has a XfbOffset assigned, then it is
11584|       |    // assumed that it has implicitly assigned the current global
11585|       |    // XfbBuffer, and because it's members need to be assigned a
11586|       |    // XfbOffset if they lack it.
11587|  8.01k|    if (currentBlockQualifier.storage == EvqVaryingOut && globalOutputDefaults.hasXfbBuffer()) {
  ------------------
  |  Branch (11587:9): [True: 4.96k, False: 3.04k]
  |  Branch (11587:59): [True: 3.61k, False: 1.35k]
  ------------------
11588|  3.61k|       if (!currentBlockQualifier.hasXfbBuffer() && currentBlockQualifier.hasXfbOffset())
  ------------------
  |  Branch (11588:12): [True: 3.61k, False: 0]
  |  Branch (11588:53): [True: 0, False: 3.61k]
  ------------------
11589|      0|          currentBlockQualifier.layoutXfbBuffer = globalOutputDefaults.layoutXfbBuffer;
11590|  3.61k|    }
11591|       |
11592|       |    // Process the members
11593|  8.01k|    fixBlockLocations(loc, currentBlockQualifier, typeList, memberWithLocation, memberWithoutLocation);
11594|  8.01k|    fixXfbOffsets(currentBlockQualifier, typeList);
11595|  8.01k|    fixBlockUniformOffsets(currentBlockQualifier, typeList);
11596|  8.01k|    fixBlockUniformLayoutMatrix(currentBlockQualifier, &typeList, nullptr);
11597|  8.01k|    fixBlockUniformLayoutPacking(currentBlockQualifier, &typeList, nullptr);
11598|  41.3k|    for (unsigned int member = 0; member < typeList.size(); ++member)
  ------------------
  |  Branch (11598:35): [True: 33.3k, False: 8.01k]
  ------------------
11599|  33.3k|        layoutTypeCheck(typeList[member].loc, *typeList[member].type);
11600|       |
11601|  8.01k|    if (memberWithPerViewQualifier) {
  ------------------
  |  Branch (11601:9): [True: 616, False: 7.39k]
  ------------------
11602|  4.62k|        for (unsigned int member = 0; member < typeList.size(); ++member) {
  ------------------
  |  Branch (11602:39): [True: 4.00k, False: 616]
  ------------------
11603|  4.00k|            checkAndResizeMeshViewDim(typeList[member].loc, *typeList[member].type, /*isBlockMember*/ true);
11604|  4.00k|        }
11605|    616|    }
11606|       |
11607|       |    // reverse merge, so that currentBlockQualifier now has all layout information
11608|       |    // (can't use defaultQualification directly, it's missing other non-layout-default-class qualifiers)
11609|  8.01k|    mergeObjectLayoutQualifiers(currentBlockQualifier, defaultQualification, true);
11610|       |
11611|       |    //
11612|       |    // Build and add the interface block as a new type named 'blockName'
11613|       |    //
11614|       |
11615|  8.01k|    TType blockType(&typeList, *blockName, currentBlockQualifier);
11616|  8.01k|    if (arraySizes != nullptr)
  ------------------
  |  Branch (11616:9): [True: 3.61k, False: 4.40k]
  ------------------
11617|  3.61k|        blockType.transferArraySizes(arraySizes);
11618|       |
11619|  8.01k|    if (arraySizes == nullptr)
  ------------------
  |  Branch (11619:9): [True: 4.40k, False: 3.61k]
  ------------------
11620|  4.40k|        ioArrayCheck(loc, blockType, instanceName ? *instanceName : *blockName);
  ------------------
  |  Branch (11620:38): [True: 969, False: 3.43k]
  ------------------
11621|  8.01k|    if (currentBlockQualifier.hasBufferReference()) {
  ------------------
  |  Branch (11621:9): [True: 8, False: 8.00k]
  ------------------
11622|       |
11623|      8|        if (currentBlockQualifier.storage != EvqBuffer)
  ------------------
  |  Branch (11623:13): [True: 0, False: 8]
  ------------------
11624|      0|            error(loc, "can only be used with buffer", "buffer_reference", "");
11625|       |
11626|      8|        if (currentBlockQualifier.bufferReferenceNeedsVulkanMemoryModel())
  ------------------
  |  Branch (11626:13): [True: 0, False: 8]
  ------------------
11627|      0|            intermediate.setUseVulkanMemoryModel();
11628|      8|        for (const auto& member : typeList)
  ------------------
  |  Branch (11628:33): [True: 12, False: 8]
  ------------------
11629|     12|            if (member.type->getQualifier().bufferReferenceNeedsVulkanMemoryModel())
  ------------------
  |  Branch (11629:17): [True: 0, False: 12]
  ------------------
11630|      0|                intermediate.setUseVulkanMemoryModel();
11631|       |
11632|       |
11633|       |        // Create the block reference type. If it was forward-declared, detect that
11634|       |        // as a referent struct type with no members. Replace the referent type with
11635|       |        // blockType.
11636|      8|        TType blockNameType(EbtReference, blockType, *blockName);
11637|      8|        intermediate.recordStructSource(blockNameType.getReferentType()->getStruct(), blockType.getStruct());
11638|      8|        TVariable* blockNameVar = new TVariable(blockName, blockNameType, true);
11639|      8|        if (! symbolTable.insert(*blockNameVar)) {
  ------------------
  |  Branch (11639:13): [True: 0, False: 8]
  ------------------
11640|      0|            TSymbol* existingName = symbolTable.find(*blockName);
11641|      0|            if (existingName->getType().isReference() &&
  ------------------
  |  Branch (11641:17): [True: 0, False: 0]
  ------------------
11642|      0|                existingName->getType().getReferentType()->getStruct() &&
  ------------------
  |  Branch (11642:17): [True: 0, False: 0]
  ------------------
11643|      0|                existingName->getType().getReferentType()->getStruct()->size() == 0 &&
  ------------------
  |  Branch (11643:17): [True: 0, False: 0]
  ------------------
11644|      0|                existingName->getType().getQualifier().storage == blockType.getQualifier().storage) {
  ------------------
  |  Branch (11644:17): [True: 0, False: 0]
  ------------------
11645|      0|                existingName->getType().getReferentType()->deepCopy(blockType);
11646|      0|                intermediate.recordStructSource(existingName->getType().getReferentType()->getStruct(),
11647|      0|                                                blockType.getStruct());
11648|      0|            } else {
11649|      0|                error(loc, "block name cannot be redefined", blockName->c_str(), "");
11650|      0|            }
11651|      0|        }
11652|      8|        if (!instanceName) {
  ------------------
  |  Branch (11652:13): [True: 8, False: 0]
  ------------------
11653|      8|            return nullptr;
11654|      8|        }
11655|  8.00k|    } else if (currentBlockQualifier.isBufferType()) {
  ------------------
  |  Branch (11655:16): [True: 0, False: 8.00k]
  ------------------
11656|       |        // buffer_type creates an opaque type named by the block, not a global block instance.
11657|      0|        TVariable* blockNameVar = new TVariable(blockName, blockType, true);
11658|      0|        if (! symbolTable.insert(*blockNameVar)) {
  ------------------
  |  Branch (11658:13): [True: 0, False: 0]
  ------------------
11659|      0|            error(loc, "block name cannot be redefined", blockName->c_str(), "");
11660|      0|            return nullptr;
11661|      0|        }
11662|      0|        if (!instanceName)
  ------------------
  |  Branch (11662:13): [True: 0, False: 0]
  ------------------
11663|      0|            return nullptr;
11664|  8.00k|    } else {
11665|       |        //
11666|       |        // Don't make a user-defined type out of block name; that will cause an error
11667|       |        // if the same block name gets reused in a different interface.
11668|       |        //
11669|       |        // "Block names have no other use within a shader
11670|       |        // beyond interface matching; it is a compile-time error to use a block name at global scope for anything
11671|       |        // other than as a block name (e.g., use of a block name for a global variable name or function name is
11672|       |        // currently reserved)."
11673|       |        //
11674|       |        // Use the symbol table to prevent normal reuse of the block's name, as a variable entry,
11675|       |        // whose type is EbtBlock, but without all the structure; that will come from the type
11676|       |        // the instances point to.
11677|       |        //
11678|  8.00k|        TType blockNameType(EbtBlock, blockType.getQualifier().storage);
11679|  8.00k|        TVariable* blockNameVar = new TVariable(blockName, blockNameType);
11680|  8.00k|        if (! symbolTable.insert(*blockNameVar)) {
  ------------------
  |  Branch (11680:13): [True: 1.03k, False: 6.97k]
  ------------------
11681|  1.03k|            TSymbol* existingName = symbolTable.find(*blockName);
11682|  1.03k|            if (existingName->getType().getBasicType() == EbtBlock) {
  ------------------
  |  Branch (11682:17): [True: 1.03k, False: 1]
  ------------------
11683|  1.03k|                if (existingName->getType().getQualifier().storage == blockType.getQualifier().storage) {
  ------------------
  |  Branch (11683:21): [True: 125, False: 907]
  ------------------
11684|    125|                    error(loc, "Cannot reuse block name within the same interface:", blockName->c_str(), "%s", blockType.getStorageQualifierString());
11685|    125|                    return nullptr;
11686|    125|                }
11687|  1.03k|            } else {
11688|      1|                error(loc, "block name cannot redefine a non-block name", blockName->c_str(), "");
11689|      1|                return nullptr;
11690|      1|            }
11691|  1.03k|        }
11692|  8.00k|    }
11693|       |
11694|       |    // Add the variable, as anonymous or named instanceName.
11695|       |    // Make an anonymous variable if no name was provided.
11696|  7.87k|    if (! instanceName)
  ------------------
  |  Branch (11696:9): [True: 3.32k, False: 4.55k]
  ------------------
11697|  3.32k|        instanceName = NewPoolTString("");
11698|       |
11699|  7.87k|    TVariable& variable = *new TVariable(instanceName, blockType);
11700|  7.87k|    if (! symbolTable.insert(variable)) {
  ------------------
  |  Branch (11700:9): [True: 93, False: 7.78k]
  ------------------
11701|     93|        if (*instanceName == "")
  ------------------
  |  Branch (11701:13): [True: 90, False: 3]
  ------------------
11702|     90|            error(loc, "nameless block contains a member that already has a name at global scope", blockName->c_str(), "");
11703|      3|        else
11704|      3|            error(loc, "block instance name redefinition", variable.getName().c_str(), "");
11705|       |
11706|     93|        return nullptr;
11707|     93|    }
11708|       |
11709|       |    // EXT_descriptor_heap
11710|  7.78k|    if (!untypedHeapCheck(&variable, blockType, loc, blockName->c_str())) {
  ------------------
  |  Branch (11710:9): [True: 0, False: 7.78k]
  ------------------
11711|      0|        return nullptr;
11712|      0|    }
11713|       |
11714|       |    // Check for general layout qualifier errors
11715|  7.78k|    layoutObjectCheck(loc, variable);
11716|       |
11717|       |    // fix up
11718|  7.78k|    if (isIoResizeArray(blockType)) {
  ------------------
  |  Branch (11718:9): [True: 3.04k, False: 4.74k]
  ------------------
11719|  3.04k|        ioArraySymbolResizeList.push_back(&variable);
11720|  3.04k|        checkIoArraysConsistency(loc, true);
11721|  3.04k|    } else
11722|  4.74k|        fixIoArraySize(loc, variable.getWritableType());
11723|       |
11724|       |    // Save it in the AST for linker use.
11725|  7.78k|    trackLinkage(variable);
11726|       |
11727|  7.78k|    TIntermAggregate* declNode = nullptr;
11728|  7.78k|    if (intermediate.getDebugInfo()) {
  ------------------
  |  Branch (11728:9): [True: 0, False: 7.78k]
  ------------------
11729|      0|        auto blockDeclNode = new TIntermVariableDecl(intermediate.addSymbol(variable, loc), nullptr);
11730|      0|        blockDeclNode->setLoc(loc);
11731|       |
11732|       |        // We have to wrap the declaration with a sequence to fit the same processing logic with variables.
11733|      0|        declNode = new TIntermAggregate(EOpSequence);
11734|      0|        declNode->getSequence().push_back(blockDeclNode);
11735|      0|    }
11736|  7.78k|    return declNode;
11737|  7.78k|}
_ZN7glslang13TParseContext17blockStageIoCheckERKNS_10TSourceLocERKNS_10TQualifierE:
11753|  8.10k|{
11754|  8.10k|    const char *extsrt[2] = { E_GL_NV_ray_tracing, E_GL_EXT_ray_tracing };
11755|  8.10k|    switch (qualifier.storage) {
11756|  1.08k|    case EvqUniform:
  ------------------
  |  Branch (11756:5): [True: 1.08k, False: 7.02k]
  ------------------
11757|  1.08k|        profileRequires(loc, EEsProfile, 300, nullptr, "uniform block");
11758|  1.08k|        profileRequires(loc, ENoProfile, 140, E_GL_ARB_uniform_buffer_object, "uniform block");
11759|  1.08k|        if (currentBlockQualifier.layoutPacking == ElpStd430 && ! currentBlockQualifier.isPushConstant())
  ------------------
  |  Branch (11759:13): [True: 9, False: 1.07k]
  |  Branch (11759:65): [True: 0, False: 9]
  ------------------
11760|      0|            requireExtensions(loc, 1, &E_GL_EXT_scalar_block_layout, "std430 requires the buffer storage qualifier");
11761|  1.08k|        break;
11762|    407|    case EvqBuffer:
  ------------------
  |  Branch (11762:5): [True: 407, False: 7.70k]
  ------------------
11763|    407|        requireProfile(loc, EEsProfile | ECoreProfile | ECompatibilityProfile, "buffer block");
11764|    407|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 430, E_GL_ARB_shader_storage_buffer_object, "buffer block");
11765|    407|        profileRequires(loc, EEsProfile, 310, nullptr, "buffer block");
11766|    407|        break;
11767|  1.64k|    case EvqVaryingIn:
  ------------------
  |  Branch (11767:5): [True: 1.64k, False: 6.46k]
  ------------------
11768|  1.64k|        profileRequires(loc, ~EEsProfile, 150, E_GL_ARB_separate_shader_objects, "input block");
11769|       |        // It is a compile-time error to have an input block in a vertex shader or an output block in a fragment shader
11770|       |        // "Compute shaders do not permit user-defined input variables..."
11771|  1.64k|        requireStage(loc, (EShLanguageMask)(EShLangTessControlMask|EShLangTessEvaluationMask|EShLangGeometryMask|
11772|  1.64k|            EShLangFragmentMask|EShLangMeshMask), "input block");
11773|  1.64k|        if (language == EShLangFragment) {
  ------------------
  |  Branch (11773:13): [True: 741, False: 904]
  ------------------
11774|    741|            profileRequires(loc, EEsProfile, 320, Num_AEP_shader_io_blocks, AEP_shader_io_blocks, "fragment input block");
11775|    904|        } else if (language == EShLangMesh && ! qualifier.isTaskMemory()) {
  ------------------
  |  Branch (11775:20): [True: 0, False: 904]
  |  Branch (11775:47): [True: 0, False: 0]
  ------------------
11776|      0|            error(loc, "input blocks cannot be used in a mesh shader", "out", "");
11777|      0|        }
11778|  1.64k|        break;
11779|  4.96k|    case EvqVaryingOut:
  ------------------
  |  Branch (11779:5): [True: 4.96k, False: 3.14k]
  ------------------
11780|  4.96k|        profileRequires(loc, ~EEsProfile, 150, E_GL_ARB_separate_shader_objects, "output block");
11781|  4.96k|        requireStage(loc, (EShLanguageMask)(EShLangVertexMask|EShLangTessControlMask|EShLangTessEvaluationMask|
11782|  4.96k|            EShLangGeometryMask|EShLangMeshMask|EShLangTaskMask), "output block");
11783|       |        // ES 310 can have a block before shader_io is turned on, so skip this test for built-ins
11784|  4.96k|        if (language == EShLangVertex && ! parsingBuiltins) {
  ------------------
  |  Branch (11784:13): [True: 904, False: 4.06k]
  |  Branch (11784:42): [True: 0, False: 904]
  ------------------
11785|      0|            profileRequires(loc, EEsProfile, 320, Num_AEP_shader_io_blocks, AEP_shader_io_blocks, "vertex output block");
11786|  4.96k|        } else if (language == EShLangMesh && qualifier.isTaskMemory()) {
  ------------------
  |  Branch (11786:20): [True: 1.23k, False: 3.73k]
  |  Branch (11786:47): [True: 0, False: 1.23k]
  ------------------
11787|      0|            error(loc, "can only use on input blocks in mesh shader", "taskNV", "");
11788|  4.96k|        } else if (language == EShLangTask && ! qualifier.isTaskMemory()) {
  ------------------
  |  Branch (11788:20): [True: 0, False: 4.96k]
  |  Branch (11788:47): [True: 0, False: 0]
  ------------------
11789|      0|            error(loc, "output blocks cannot be used in a task shader", "out", "");
11790|      0|        }
11791|  4.96k|        break;
11792|      0|    case EvqShared:
  ------------------
  |  Branch (11792:5): [True: 0, False: 8.10k]
  ------------------
11793|      0|        if (spvVersion.spv > 0 && spvVersion.spv < EShTargetSpv_1_4) {
  ------------------
  |  Branch (11793:13): [True: 0, False: 0]
  |  Branch (11793:35): [True: 0, False: 0]
  ------------------
11794|      0|            error(loc, "shared block requires at least SPIR-V 1.4", "shared block", "");
11795|      0|        }
11796|      0|        profileRequires(loc, EEsProfile | ECoreProfile | ECompatibilityProfile, 0, E_GL_EXT_shared_memory_block, "shared block");
11797|      0|        break;
11798|      0|    case EvqPayload:
  ------------------
  |  Branch (11798:5): [True: 0, False: 8.10k]
  ------------------
11799|      0|        profileRequires(loc, ~EEsProfile, 460, 2, extsrt, "rayPayloadNV block");
11800|      0|        requireStage(loc, (EShLanguageMask)(EShLangRayGenMask | EShLangAnyHitMask | EShLangClosestHitMask | EShLangMissMask),
11801|      0|            "rayPayloadNV block");
11802|      0|        break;
11803|      0|    case EvqPayloadIn:
  ------------------
  |  Branch (11803:5): [True: 0, False: 8.10k]
  ------------------
11804|      0|        profileRequires(loc, ~EEsProfile, 460, 2, extsrt, "rayPayloadInNV block");
11805|      0|        requireStage(loc, (EShLanguageMask)(EShLangAnyHitMask | EShLangClosestHitMask | EShLangMissMask),
11806|      0|            "rayPayloadInNV block");
11807|      0|        break;
11808|      0|    case EvqHitAttr:
  ------------------
  |  Branch (11808:5): [True: 0, False: 8.10k]
  ------------------
11809|      0|        profileRequires(loc, ~EEsProfile, 460, 2, extsrt, "hitAttributeNV block");
11810|      0|        requireStage(loc, (EShLanguageMask)(EShLangIntersectMask | EShLangAnyHitMask | EShLangClosestHitMask), "hitAttributeNV block");
11811|      0|        break;
11812|      0|    case EvqCallableData:
  ------------------
  |  Branch (11812:5): [True: 0, False: 8.10k]
  ------------------
11813|      0|        profileRequires(loc, ~EEsProfile, 460, 2, extsrt, "callableDataNV block");
11814|      0|        requireStage(loc, (EShLanguageMask)(EShLangRayGenMask | EShLangClosestHitMask | EShLangMissMask | EShLangCallableMask),
11815|      0|            "callableDataNV block");
11816|      0|        break;
11817|      0|    case EvqCallableDataIn:
  ------------------
  |  Branch (11817:5): [True: 0, False: 8.10k]
  ------------------
11818|      0|        profileRequires(loc, ~EEsProfile, 460, 2, extsrt, "callableDataInNV block");
11819|      0|        requireStage(loc, (EShLanguageMask)(EShLangCallableMask), "callableDataInNV block");
11820|      0|        break;
11821|      0|    case EvqHitObjectAttrNV:
  ------------------
  |  Branch (11821:5): [True: 0, False: 8.10k]
  ------------------
11822|      0|        profileRequires(loc, ~EEsProfile, 460, E_GL_NV_shader_invocation_reorder, "hitObjectAttributeNV block");
11823|      0|        requireStage(loc, (EShLanguageMask)(EShLangRayGenMask | EShLangClosestHitMask | EShLangMissMask), "hitObjectAttributeNV block");
11824|      0|        break;
11825|      0|    case EvqHitObjectAttrEXT:
  ------------------
  |  Branch (11825:5): [True: 0, False: 8.10k]
  ------------------
11826|      0|        profileRequires(loc, ~EEsProfile, 460, E_GL_EXT_shader_invocation_reorder, "hitObjectAttributeEXT block");
11827|      0|        requireStage(loc, (EShLanguageMask)(EShLangRayGenMask | EShLangClosestHitMask | EShLangMissMask), "hitObjectAttributeEXT block");
11828|      0|        break;
11829|      0|    case EvqResourceHeap:
  ------------------
  |  Branch (11829:5): [True: 0, False: 8.10k]
  ------------------
11830|      0|        profileRequires(loc, ~EEsProfile, 460, E_GL_EXT_structured_descriptor_heap, "resourceheap block");
11831|      0|        profileRequires(loc, ~EEsProfile, 460, E_GL_EXT_descriptor_heap, "resourceheap block");
11832|      0|        break;
11833|      0|    case EvqSamplerHeap:
  ------------------
  |  Branch (11833:5): [True: 0, False: 8.10k]
  ------------------
11834|      0|        profileRequires(loc, ~EEsProfile, 460, E_GL_EXT_structured_descriptor_heap, "samplerheap block");
11835|      0|        profileRequires(loc, ~EEsProfile, 460, E_GL_EXT_descriptor_heap, "samplerheap block");
11836|      0|        break;
11837|      9|    default:
  ------------------
  |  Branch (11837:5): [True: 9, False: 8.10k]
  ------------------
11838|      9|        error(loc, "only uniform, buffer, in, or out blocks are supported", blockName->c_str(), "");
11839|      9|        break;
11840|  8.10k|    }
11841|  8.10k|}
_ZN7glslang13TParseContext19blockQualifierCheckERKNS_10TSourceLocERKNS_10TQualifierEb:
11845|  8.10k|{
11846|       |    // The 4.5 specification says:
11847|       |    //
11848|       |    // interface-block :
11849|       |    //    layout-qualifieropt interface-qualifier  block-name { member-list } instance-nameopt ;
11850|       |    //
11851|       |    // interface-qualifier :
11852|       |    //    in
11853|       |    //    out
11854|       |    //    patch in
11855|       |    //    patch out
11856|       |    //    uniform
11857|       |    //    buffer
11858|       |    //
11859|       |    // Note however memory qualifiers aren't included, yet the specification also says
11860|       |    //
11861|       |    // "...memory qualifiers may also be used in the declaration of shader storage blocks..."
11862|       |
11863|  8.10k|    if (qualifier.isInterpolation())
  ------------------
  |  Branch (11863:9): [True: 1, False: 8.10k]
  ------------------
11864|      1|        error(loc, "cannot use interpolation qualifiers on an interface block", "flat/smooth/noperspective", "");
11865|  8.10k|    if (qualifier.centroid)
  ------------------
  |  Branch (11865:9): [True: 0, False: 8.10k]
  ------------------
11866|      0|        error(loc, "cannot use centroid qualifier on an interface block", "centroid", "");
11867|  8.10k|    if (qualifier.isSample())
  ------------------
  |  Branch (11867:9): [True: 0, False: 8.10k]
  ------------------
11868|      0|        error(loc, "cannot use sample qualifier on an interface block", "sample", "");
11869|  8.10k|    if (qualifier.invariant)
  ------------------
  |  Branch (11869:9): [True: 0, False: 8.10k]
  ------------------
11870|      0|        error(loc, "cannot use invariant qualifier on an interface block", "invariant", "");
11871|  8.10k|    if (qualifier.isPushConstant())
  ------------------
  |  Branch (11871:9): [True: 56, False: 8.05k]
  ------------------
11872|     56|        intermediate.addPushConstantCount();
11873|  8.10k|    if (qualifier.isShaderRecord())
  ------------------
  |  Branch (11873:9): [True: 0, False: 8.10k]
  ------------------
11874|      0|        intermediate.addShaderRecordCount();
11875|  8.10k|    if (qualifier.isTaskMemory())
  ------------------
  |  Branch (11875:9): [True: 0, False: 8.10k]
  ------------------
11876|      0|        intermediate.addTaskNVCount();
11877|  8.10k|    if (qualifier.isBufferType()) {
  ------------------
  |  Branch (11877:9): [True: 0, False: 8.10k]
  ------------------
11878|      0|        if (qualifier.storage != EvqUniform && qualifier.storage != EvqBuffer)
  ------------------
  |  Branch (11878:13): [True: 0, False: 0]
  |  Branch (11878:48): [True: 0, False: 0]
  ------------------
11879|      0|            error(loc, "can only be used with uniform or buffer", "buffer_type", "");
11880|      0|        if (instanceName)
  ------------------
  |  Branch (11880:13): [True: 0, False: 0]
  ------------------
11881|      0|            error(loc, "cannot have an instance name", "buffer_type", "");
11882|      0|        if (qualifier.hasSet())
  ------------------
  |  Branch (11882:13): [True: 0, False: 0]
  ------------------
11883|      0|            error(loc, "cannot be used with buffer_type", "set", "");
11884|      0|        if (qualifier.hasBinding())
  ------------------
  |  Branch (11884:13): [True: 0, False: 0]
  ------------------
11885|      0|            error(loc, "cannot be used with buffer_type", "binding", "");
11886|      0|    }
11887|  8.10k|}
_ZN7glslang13TParseContext17fixBlockLocationsERKNS_10TSourceLocERNS_10TQualifierERNS_7TVectorINS_8TTypeLocEEEbb:
11897|  8.01k|{
11898|       |    // "If a block has no block-level location layout qualifier, it is required that either all or none of its members
11899|       |    // have a location layout qualifier, or a compile-time error results."
11900|  8.01k|    if (! qualifier.hasLocation() && memberWithLocation && memberWithoutLocation)
  ------------------
  |  Branch (11900:9): [True: 7.88k, False: 124]
  |  Branch (11900:38): [True: 115, False: 7.77k]
  |  Branch (11900:60): [True: 17, False: 98]
  ------------------
11901|     17|        error(loc, "either the block needs a location, or all members need a location, or no members have a location", "location", "");
11902|  7.99k|    else {
11903|  7.99k|        if (memberWithLocation) {
  ------------------
  |  Branch (11903:13): [True: 156, False: 7.83k]
  ------------------
11904|       |            // remove any block-level location and make it per *every* member
11905|    156|            int nextLocation = 0;  // by the rule above, initial value is not relevant
11906|    156|            if (qualifier.hasAnyLocation()) {
  ------------------
  |  Branch (11906:17): [True: 58, False: 98]
  ------------------
11907|     58|                nextLocation = qualifier.layoutLocation;
11908|     58|                qualifier.layoutLocation = TQualifier::layoutLocationEnd;
11909|     58|                if (qualifier.hasComponent()) {
  ------------------
  |  Branch (11909:21): [True: 0, False: 58]
  ------------------
11910|       |                    // "It is a compile-time error to apply the *component* qualifier to a ... block"
11911|      0|                    error(loc, "cannot apply to a block", "component", "");
11912|      0|                }
11913|     58|                if (qualifier.hasIndex()) {
  ------------------
  |  Branch (11913:21): [True: 0, False: 58]
  ------------------
11914|      0|                    error(loc, "cannot apply to a block", "index", "");
11915|      0|                }
11916|     58|            }
11917|    657|            for (unsigned int member = 0; member < typeList.size(); ++member) {
  ------------------
  |  Branch (11917:43): [True: 501, False: 156]
  ------------------
11918|    501|                TQualifier& memberQualifier = typeList[member].type->getQualifier();
11919|    501|                const TSourceLoc& memberLoc = typeList[member].loc;
11920|    501|                if (! memberQualifier.hasLocation()) {
  ------------------
  |  Branch (11920:21): [True: 213, False: 288]
  ------------------
11921|    213|                    if (nextLocation >= (int)TQualifier::layoutLocationEnd)
  ------------------
  |  Branch (11921:25): [True: 0, False: 213]
  ------------------
11922|      0|                        error(memberLoc, "location is too large", "location", "");
11923|    213|                    memberQualifier.layoutLocation = nextLocation;
11924|    213|                    memberQualifier.layoutComponent = TQualifier::layoutComponentEnd;
11925|    213|                }
11926|    501|                nextLocation = memberQualifier.layoutLocation + intermediate.computeTypeLocationSize(
11927|    501|                                    *typeList[member].type, language);
11928|    501|            }
11929|    156|        }
11930|  7.99k|    }
11931|  8.01k|}
_ZN7glslang13TParseContext13fixXfbOffsetsERNS_10TQualifierERNS_7TVectorINS_8TTypeLocEEE:
11934|  8.01k|{
11935|       |    // "If a block is qualified with xfb_offset, all its
11936|       |    // members are assigned transform feedback buffer offsets. If a block is not qualified with xfb_offset, any
11937|       |    // members of that block not qualified with an xfb_offset will not be assigned transform feedback buffer
11938|       |    // offsets."
11939|       |
11940|  8.01k|    if (! qualifier.hasXfbBuffer() || ! qualifier.hasXfbOffset())
  ------------------
  |  Branch (11940:9): [True: 8.01k, False: 0]
  |  Branch (11940:39): [True: 0, False: 0]
  ------------------
11941|  8.01k|        return;
11942|       |
11943|      0|    int nextOffset = qualifier.layoutXfbOffset;
11944|      0|    for (unsigned int member = 0; member < typeList.size(); ++member) {
  ------------------
  |  Branch (11944:35): [True: 0, False: 0]
  ------------------
11945|      0|        TQualifier& memberQualifier = typeList[member].type->getQualifier();
11946|      0|        bool contains64BitType = false;
11947|      0|        bool contains32BitType = false;
11948|      0|        bool contains16BitType = false;
11949|      0|        int memberSize = intermediate.computeTypeXfbSize(*typeList[member].type, contains64BitType, contains32BitType, contains16BitType);
11950|       |        // see if we need to auto-assign an offset to this member
11951|      0|        if (! memberQualifier.hasXfbOffset()) {
  ------------------
  |  Branch (11951:13): [True: 0, False: 0]
  ------------------
11952|       |            // "if applied to an aggregate containing a double or 64-bit integer, the offset must also be a multiple of 8"
11953|      0|            if (contains64BitType)
  ------------------
  |  Branch (11953:17): [True: 0, False: 0]
  ------------------
11954|      0|                RoundToPow2(nextOffset, 8);
11955|      0|            else if (contains32BitType)
  ------------------
  |  Branch (11955:22): [True: 0, False: 0]
  ------------------
11956|      0|                RoundToPow2(nextOffset, 4);
11957|      0|            else if (contains16BitType)
  ------------------
  |  Branch (11957:22): [True: 0, False: 0]
  ------------------
11958|      0|                RoundToPow2(nextOffset, 2);
11959|      0|            memberQualifier.layoutXfbOffset = nextOffset;
11960|      0|        } else
11961|      0|            nextOffset = memberQualifier.layoutXfbOffset;
11962|      0|        nextOffset += memberSize;
11963|      0|    }
11964|       |
11965|       |    // The above gave all block members an offset, so we can take it off the block now,
11966|       |    // which will avoid double counting the offset usage.
11967|      0|    qualifier.layoutXfbOffset = TQualifier::layoutXfbOffsetEnd;
11968|      0|}
_ZN7glslang13TParseContext22fixBlockUniformOffsetsERNS_10TQualifierERNS_7TVectorINS_8TTypeLocEEE:
12002|  8.01k|{
12003|  8.01k|    if (!storageCanHaveLayoutInBlock(qualifier.storage) && !qualifier.isTaskMemory())
  ------------------
  |  Branch (12003:9): [True: 6.52k, False: 1.48k]
  |  Branch (12003:60): [True: 6.52k, False: 0]
  ------------------
12004|  6.52k|        return;
12005|       |
12006|  1.48k|    if (qualifier.storage == EvqResourceHeap || qualifier.storage == EvqSamplerHeap) {
  ------------------
  |  Branch (12006:9): [True: 0, False: 1.48k]
  |  Branch (12006:49): [True: 0, False: 1.48k]
  ------------------
12007|       |        // Keep only user-specified offsets. Descriptor sizes and alignments can
12008|       |        // require specialization-constant expressions, which are emitted later.
12009|      0|        for (const auto& member : typeList) {
  ------------------
  |  Branch (12009:33): [True: 0, False: 0]
  ------------------
12010|      0|            const TQualifier& memberQualifier = member.type->getQualifier();
12011|      0|            if (!memberQualifier.hasOffset())
  ------------------
  |  Branch (12011:17): [True: 0, False: 0]
  ------------------
12012|      0|                continue;
12013|       |
12014|      0|            const unsigned int alignment = getKnownHeapMemberAlignment(*member.type);
12015|      0|            if (alignment != 0 && static_cast<unsigned int>(memberQualifier.layoutOffset) % alignment != 0)
  ------------------
  |  Branch (12015:17): [True: 0, False: 0]
  |  Branch (12015:35): [True: 0, False: 0]
  ------------------
12016|      0|                error(member.loc, "must be a multiple of the member's alignment", "offset",
12017|      0|                      "(layout offset = %d | member alignment = %u)", memberQualifier.layoutOffset, alignment);
12018|      0|        }
12019|      0|        return;
12020|      0|    }
12021|       |
12022|  1.48k|    if (qualifier.layoutPacking != ElpStd140 && qualifier.layoutPacking != ElpStd430 && qualifier.layoutPacking != ElpScalar)
  ------------------
  |  Branch (12022:9): [True: 1.23k, False: 256]
  |  Branch (12022:49): [True: 1.01k, False: 222]
  |  Branch (12022:89): [True: 1.01k, False: 0]
  ------------------
12023|  1.01k|        return;
12024|       |
12025|    478|    int offset = 0;
12026|    478|    int memberSize;
12027|  1.88k|    for (unsigned int member = 0; member < typeList.size(); ++member) {
  ------------------
  |  Branch (12027:35): [True: 1.40k, False: 478]
  ------------------
12028|  1.40k|        TQualifier& memberQualifier = typeList[member].type->getQualifier();
12029|  1.40k|        const TSourceLoc& memberLoc = typeList[member].loc;
12030|       |
12031|       |        // "When align is applied to an array, it effects only the start of the array, not the array's internal stride."
12032|       |
12033|       |        // modify just the children's view of matrix layout, if there is one for this member
12034|  1.40k|        TLayoutMatrix subMatrixLayout = typeList[member].type->getQualifier().layoutMatrix;
12035|  1.40k|        int dummyStride;
12036|  1.40k|        int memberAlignment = intermediate.getMemberAlignment(*typeList[member].type, memberSize, dummyStride, qualifier.layoutPacking,
12037|  1.40k|                                                              subMatrixLayout != ElmNone ? subMatrixLayout == ElmRowMajor : qualifier.layoutMatrix == ElmRowMajor);
  ------------------
  |  Branch (12037:63): [True: 1.40k, False: 0]
  ------------------
12038|  1.40k|        if (memberQualifier.hasOffset()) {
  ------------------
  |  Branch (12038:13): [True: 80, False: 1.32k]
  ------------------
12039|       |            // "The specified offset must be a multiple
12040|       |            // of the base alignment of the type of the block member it qualifies, or a compile-time error results."
12041|     80|            if (! IsMultipleOfPow2(memberQualifier.layoutOffset, memberAlignment))
  ------------------
  |  Branch (12041:17): [True: 15, False: 65]
  ------------------
12042|     15|                error(memberLoc, "must be a multiple of the member's alignment", "offset",
12043|     15|                    "(layout offset = %d | member alignment = %d)", memberQualifier.layoutOffset, memberAlignment);
12044|       |
12045|       |            // GLSL: "It is a compile-time error to specify an offset that is smaller than the offset of the previous
12046|       |            // member in the block or that lies within the previous member of the block"
12047|     80|            if (spvVersion.spv == 0) {
  ------------------
  |  Branch (12047:17): [True: 0, False: 80]
  ------------------
12048|      0|                if (memberQualifier.layoutOffset < offset)
  ------------------
  |  Branch (12048:21): [True: 0, False: 0]
  ------------------
12049|      0|                    error(memberLoc, "cannot lie in previous members", "offset", "");
12050|       |
12051|       |                // "The offset qualifier forces the qualified member to start at or after the specified
12052|       |                // integral-constant expression, which will be its byte offset from the beginning of the buffer.
12053|       |                // "The actual offset of a member is computed as
12054|       |                // follows: If offset was declared, start with that offset, otherwise start with the next available offset."
12055|      0|                offset = std::max(offset, memberQualifier.layoutOffset);
12056|     80|            } else {
12057|       |                // TODO: Vulkan: "It is a compile-time error to have any offset, explicit or assigned,
12058|       |                // that lies within another member of the block."
12059|       |
12060|     80|                offset = memberQualifier.layoutOffset;
12061|     80|            }
12062|     80|        }
12063|       |
12064|       |        // "The actual alignment of a member will be the greater of the specified align alignment and the standard
12065|       |        // (e.g., std140) base alignment for the member's type."
12066|  1.40k|        if (memberQualifier.hasAlign())
  ------------------
  |  Branch (12066:13): [True: 90, False: 1.31k]
  ------------------
12067|     90|            memberAlignment = std::max(memberAlignment, memberQualifier.layoutAlign);
12068|       |
12069|       |        // "If the resulting offset is not a multiple of the actual alignment,
12070|       |        // increase it to the first offset that is a multiple of
12071|       |        // the actual alignment."
12072|  1.40k|        RoundToPow2(offset, memberAlignment);
12073|  1.40k|        typeList[member].type->getQualifier().layoutOffset = offset;
12074|  1.40k|        offset += memberSize;
12075|  1.40k|    }
12076|    478|}
_ZN7glslang13TParseContext27fixBlockUniformLayoutMatrixERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_:
12084|  8.28k|{
12085|  8.28k|    assert(tmpTypeList == nullptr || originTypeList->size() == tmpTypeList->size());
12086|  42.6k|    for (unsigned int member = 0; member < originTypeList->size(); ++member) {
  ------------------
  |  Branch (12086:35): [True: 34.3k, False: 8.28k]
  ------------------
12087|  34.3k|        if (qualifier.layoutPacking != ElpNone) {
  ------------------
  |  Branch (12087:13): [True: 2.35k, False: 31.9k]
  ------------------
12088|  2.35k|            if (tmpTypeList == nullptr) {
  ------------------
  |  Branch (12088:17): [True: 1.49k, False: 866]
  ------------------
12089|  1.49k|                if (((*originTypeList)[member].type->isMatrix() ||
  ------------------
  |  Branch (12089:22): [True: 67, False: 1.42k]
  ------------------
12090|  1.42k|                     (*originTypeList)[member].type->getBasicType() == EbtStruct) &&
  ------------------
  |  Branch (12090:22): [True: 166, False: 1.25k]
  ------------------
12091|    233|                    (*originTypeList)[member].type->getQualifier().layoutMatrix == ElmNone) {
  ------------------
  |  Branch (12091:21): [True: 0, False: 233]
  ------------------
12092|      0|                    (*originTypeList)[member].type->getQualifier().layoutMatrix = qualifier.layoutMatrix;
12093|      0|                }
12094|  1.49k|            } else {
12095|    866|                if (((*tmpTypeList)[member].type->isMatrix() ||
  ------------------
  |  Branch (12095:22): [True: 285, False: 581]
  ------------------
12096|    581|                     (*tmpTypeList)[member].type->getBasicType() == EbtStruct) &&
  ------------------
  |  Branch (12096:22): [True: 0, False: 581]
  ------------------
12097|    285|                    (*tmpTypeList)[member].type->getQualifier().layoutMatrix == ElmNone) {
  ------------------
  |  Branch (12097:21): [True: 285, False: 0]
  ------------------
12098|    285|                    (*tmpTypeList)[member].type->getQualifier().layoutMatrix = qualifier.layoutMatrix;
12099|    285|                }
12100|    866|            }
12101|  2.35k|        }
12102|       |
12103|  34.3k|        if ((*originTypeList)[member].type->getBasicType() == EbtStruct) {
  ------------------
  |  Branch (12103:13): [True: 270, False: 34.0k]
  ------------------
12104|    270|            TQualifier* memberQualifier = nullptr;
12105|       |            // block member can be declare a matrix style, so it should be update to the member's style
12106|    270|            if ((*originTypeList)[member].type->getQualifier().layoutMatrix == ElmNone) {
  ------------------
  |  Branch (12106:17): [True: 99, False: 171]
  ------------------
12107|     99|                memberQualifier = &qualifier;
12108|    171|            } else {
12109|    171|                memberQualifier = &((*originTypeList)[member].type->getQualifier());
12110|    171|            }
12111|       |
12112|    270|            const TType* tmpType = tmpTypeList == nullptr ?
  ------------------
  |  Branch (12112:36): [True: 270, False: 0]
  ------------------
12113|    270|                (*originTypeList)[member].type->clone() : (*tmpTypeList)[member].type;
12114|       |
12115|    270|            fixBlockUniformLayoutMatrix(*memberQualifier, (*originTypeList)[member].type->getWritableStruct(),
12116|    270|                                        tmpType->getWritableStruct());
12117|       |
12118|    270|            const TTypeList* structure = recordStructCopy(matrixFixRecord, (*originTypeList)[member].type, tmpType);
12119|       |
12120|    270|            if (tmpTypeList == nullptr) {
  ------------------
  |  Branch (12120:17): [True: 270, False: 0]
  ------------------
12121|    270|                (*originTypeList)[member].type->setStruct(const_cast<TTypeList*>(structure));
12122|    270|            }
12123|    270|            if (tmpTypeList != nullptr) {
  ------------------
  |  Branch (12123:17): [True: 0, False: 270]
  ------------------
12124|      0|                (*tmpTypeList)[member].type->setStruct(const_cast<TTypeList*>(structure));
12125|      0|            }
12126|    270|        }
12127|  34.3k|    }
12128|  8.28k|}
_ZN7glslang13TParseContext28fixBlockUniformLayoutPackingERNS_10TQualifierEPNS_7TVectorINS_8TTypeLocEEES6_:
12136|  8.28k|{
12137|  8.28k|    assert(tmpTypeList == nullptr || originTypeList->size() == tmpTypeList->size());
12138|  42.6k|    for (unsigned int member = 0; member < originTypeList->size(); ++member) {
  ------------------
  |  Branch (12138:35): [True: 34.3k, False: 8.28k]
  ------------------
12139|  34.3k|        if (qualifier.layoutPacking != ElpNone) {
  ------------------
  |  Branch (12139:13): [True: 2.34k, False: 32.0k]
  ------------------
12140|  2.34k|            if (tmpTypeList == nullptr) {
  ------------------
  |  Branch (12140:17): [True: 1.49k, False: 850]
  ------------------
12141|  1.49k|                if ((*originTypeList)[member].type->getQualifier().layoutPacking == ElpNone &&
  ------------------
  |  Branch (12141:21): [True: 0, False: 1.49k]
  ------------------
12142|      0|                    !(*originTypeList)[member].type->isScalarOrVector()) {
  ------------------
  |  Branch (12142:21): [True: 0, False: 0]
  ------------------
12143|      0|                    (*originTypeList)[member].type->getQualifier().layoutPacking = qualifier.layoutPacking;
12144|      0|                }
12145|  1.49k|            } else {
12146|    850|                if ((*tmpTypeList)[member].type->getQualifier().layoutPacking == ElpNone &&
  ------------------
  |  Branch (12146:21): [True: 850, False: 0]
  ------------------
12147|    850|                    !(*tmpTypeList)[member].type->isScalarOrVector()) {
  ------------------
  |  Branch (12147:21): [True: 280, False: 570]
  ------------------
12148|    280|                    (*tmpTypeList)[member].type->getQualifier().layoutPacking = qualifier.layoutPacking;
12149|    280|                }
12150|    850|            }
12151|  2.34k|        }
12152|       |
12153|  34.3k|        if ((*originTypeList)[member].type->getBasicType() == EbtStruct) {
  ------------------
  |  Branch (12153:13): [True: 270, False: 34.0k]
  ------------------
12154|       |            // Deep copy the type in pool.
12155|       |            // Because, struct use in different block may have different layout qualifier.
12156|       |            // We have to new a object to distinguish between them.
12157|    270|            const TType* tmpType = tmpTypeList == nullptr ?
  ------------------
  |  Branch (12157:36): [True: 270, False: 0]
  ------------------
12158|    270|                (*originTypeList)[member].type->clone() : (*tmpTypeList)[member].type;
12159|       |
12160|    270|            fixBlockUniformLayoutPacking(qualifier, (*originTypeList)[member].type->getWritableStruct(),
12161|    270|                                         tmpType->getWritableStruct());
12162|       |
12163|    270|            const TTypeList* structure = recordStructCopy(packingFixRecord, (*originTypeList)[member].type, tmpType);
12164|       |
12165|    270|            if (tmpTypeList == nullptr) {
  ------------------
  |  Branch (12165:17): [True: 270, False: 0]
  ------------------
12166|    270|                (*originTypeList)[member].type->setStruct(const_cast<TTypeList*>(structure));
12167|    270|            }
12168|    270|            if (tmpTypeList != nullptr) {
  ------------------
  |  Branch (12168:17): [True: 0, False: 270]
  ------------------
12169|      0|                (*tmpTypeList)[member].type->setStruct(const_cast<TTypeList*>(structure));
12170|      0|            }
12171|    270|        }
12172|  34.3k|    }
12173|  8.28k|}
_ZN7glslang13TParseContext22addQualifierToExistingERKNS_10TSourceLocENS_10TQualifierERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS_14pool_allocatorIcEEEE:
12177|     32|{
12178|     32|    TSymbol* symbol = symbolTable.find(identifier);
12179|       |
12180|       |    // A forward declaration of a block reference looks to the grammar like adding
12181|       |    // a qualifier to an existing symbol. Detect this and create the block reference
12182|       |    // type with an empty type list, which will be filled in later in
12183|       |    // TParseContext::declareBlock.
12184|     32|    if (!symbol && qualifier.hasBufferReference()) {
  ------------------
  |  Branch (12184:9): [True: 21, False: 11]
  |  Branch (12184:20): [True: 0, False: 21]
  ------------------
12185|       |        // The layout qualifiers are ignored in forward declaration, give warning for the most probable to be seen
12186|      0|        if (qualifier.hasBufferReferenceAlign()) {
  ------------------
  |  Branch (12186:13): [True: 0, False: 0]
  ------------------
12187|      0|            warn(loc, "the buffer_reference_align layout is ignored when defined in forward declaration",
12188|      0|                 identifier.c_str(), "");
12189|      0|        }
12190|      0|        if (qualifier.hasPacking()) {
  ------------------
  |  Branch (12190:13): [True: 0, False: 0]
  ------------------
12191|      0|            warn(loc, "the packing layout (scalar, std430, etc) is ignored when defined in forward declaration",
12192|      0|                 identifier.c_str(), "");
12193|      0|        }
12194|      0|        TTypeList typeList;
12195|      0|        TType blockType(&typeList, identifier, qualifier);
12196|      0|        TType blockNameType(EbtReference, blockType, identifier);
12197|      0|        TVariable* blockNameVar = new TVariable(&identifier, blockNameType, true);
12198|      0|        if (! symbolTable.insert(*blockNameVar)) {
  ------------------
  |  Branch (12198:13): [True: 0, False: 0]
  ------------------
12199|      0|            error(loc, "block name cannot redefine a non-block name", blockName->c_str(), "");
12200|      0|        }
12201|      0|        return;
12202|      0|    }
12203|       |
12204|     32|    if (! symbol) {
  ------------------
  |  Branch (12204:9): [True: 21, False: 11]
  ------------------
12205|     21|        error(loc, "identifier not previously declared", identifier.c_str(), "");
12206|     21|        return;
12207|     21|    }
12208|     11|    if (symbol->getAsFunction()) {
  ------------------
  |  Branch (12208:9): [True: 0, False: 11]
  ------------------
12209|      0|        error(loc, "cannot re-qualify a function name", identifier.c_str(), "");
12210|      0|        return;
12211|      0|    }
12212|       |
12213|     11|    if (qualifier.isAuxiliary() ||
  ------------------
  |  Branch (12213:9): [True: 0, False: 11]
  ------------------
12214|     11|        qualifier.isMemory() ||
  ------------------
  |  Branch (12214:9): [True: 0, False: 11]
  ------------------
12215|     11|        qualifier.isInterpolation() ||
  ------------------
  |  Branch (12215:9): [True: 0, False: 11]
  ------------------
12216|     11|        qualifier.hasLayout() ||
  ------------------
  |  Branch (12216:9): [True: 0, False: 11]
  ------------------
12217|     11|        qualifier.storage != EvqTemporary ||
  ------------------
  |  Branch (12217:9): [True: 0, False: 11]
  ------------------
12218|     11|        qualifier.precision != EpqNone) {
  ------------------
  |  Branch (12218:9): [True: 0, False: 11]
  ------------------
12219|      0|        error(loc, "cannot add storage, auxiliary, memory, interpolation, layout, or precision qualifier to an existing variable", identifier.c_str(), "");
12220|      0|        return;
12221|      0|    }
12222|       |
12223|       |    // For read-only built-ins, add a new symbol for holding the modified qualifier.
12224|       |    // This will bring up an entire block, if a block type has to be modified (e.g., gl_Position inside a block)
12225|     11|    if (symbol->isReadOnly()) {
  ------------------
  |  Branch (12225:9): [True: 0, False: 11]
  ------------------
12226|      0|        symbol = symbolTable.copyUp(symbol);
12227|      0|        if (symbol == nullptr) {
  ------------------
  |  Branch (12227:13): [True: 0, False: 0]
  ------------------
12228|      0|            error(loc, "cannot change qualification after another member of its block was declared",
12229|      0|                  identifier.c_str(), "");
12230|      0|            return;
12231|      0|        }
12232|      0|    }
12233|       |
12234|     11|    if (qualifier.invariant) {
  ------------------
  |  Branch (12234:9): [True: 10, False: 1]
  ------------------
12235|     10|        if (intermediate.inIoAccessed(identifier))
  ------------------
  |  Branch (12235:13): [True: 0, False: 10]
  ------------------
12236|      0|            error(loc, "cannot change qualification after use", "invariant", "");
12237|     10|        symbol->getWritableType().getQualifier().invariant = true;
12238|     10|        invariantCheck(loc, symbol->getType().getQualifier());
12239|     10|    } else if (qualifier.isNoContraction()) {
  ------------------
  |  Branch (12239:16): [True: 0, False: 1]
  ------------------
12240|      0|        if (intermediate.inIoAccessed(identifier))
  ------------------
  |  Branch (12240:13): [True: 0, False: 0]
  ------------------
12241|      0|            error(loc, "cannot change qualification after use", "precise", "");
12242|      0|        symbol->getWritableType().getQualifier().setNoContraction();
12243|      1|    } else if (qualifier.specConstant) {
  ------------------
  |  Branch (12243:16): [True: 0, False: 1]
  ------------------
12244|      0|        symbol->getWritableType().getQualifier().makeSpecConstant();
12245|      0|        if (qualifier.hasSpecConstantId())
  ------------------
  |  Branch (12245:13): [True: 0, False: 0]
  ------------------
12246|      0|            symbol->getWritableType().getQualifier().layoutSpecConstantId = qualifier.layoutSpecConstantId;
12247|       |        // GL_EXT_opacity_micromap_ray_query_mode: gl_EnableOpacityMicromapEXT may be turned into a
12248|       |        // specialization constant with the bare form "layout(constant_id = N) gl_EnableOpacityMicromapEXT;".
12249|       |        // Record the SpecId so the back end emits the OpacityMicromapIdKHR execution mode.
12250|      0|        if (identifier == "gl_EnableOpacityMicromapEXT" && qualifier.hasSpecConstantId()) {
  ------------------
  |  Branch (12250:13): [True: 0, False: 0]
  |  Branch (12250:60): [True: 0, False: 0]
  ------------------
12251|      0|            requireExtensions(loc, 1, &E_GL_EXT_opacity_micromap_ray_query_mode, "gl_EnableOpacityMicromapEXT");
12252|       |            // Bare "layout(constant_id = N) gl_EnableOpacityMicromapEXT;": the default value of false is
12253|       |            // retained (OpSpecConstantFalse); the API may override it. Record the SpecId for the back end.
12254|      0|            intermediate.setEnableOpacityMicromapSpecId(qualifier.layoutSpecConstantId);
12255|      0|        }
12256|      0|    } else
12257|      1|        warn(loc, "unknown requalification", "", "");
12258|     11|}
_ZN7glslang13TParseContext22addQualifierToExistingERKNS_10TSourceLocENS_10TQualifierERNS_7TVectorIPNSt3__112basic_stringIcNS6_11char_traitsIcEENS_14pool_allocatorIcEEEEEE:
12261|     32|{
12262|     64|    for (unsigned int i = 0; i < identifiers.size(); ++i)
  ------------------
  |  Branch (12262:30): [True: 32, False: 32]
  ------------------
12263|     32|        addQualifierToExisting(loc, qualifier, *identifiers[i]);
12264|     32|}
_ZN7glslang13TParseContext14invariantCheckERKNS_10TSourceLocERKNS_10TQualifierE:
12268|  1.40M|{
12269|  1.40M|    if (! qualifier.invariant)
  ------------------
  |  Branch (12269:9): [True: 1.40M, False: 30]
  ------------------
12270|  1.40M|        return;
12271|       |
12272|     30|    bool pipeOut = qualifier.isPipeOutput();
12273|     30|    bool pipeIn = qualifier.isPipeInput();
12274|     30|    if ((version >= 300 && isEsProfile()) || (!isEsProfile() && version >= 420)) {
  ------------------
  |  Branch (12274:10): [True: 30, False: 0]
  |  Branch (12274:28): [True: 25, False: 5]
  |  Branch (12274:47): [True: 5, False: 0]
  |  Branch (12274:65): [True: 5, False: 0]
  ------------------
12275|     30|        if (! pipeOut)
  ------------------
  |  Branch (12275:13): [True: 30, False: 0]
  ------------------
12276|     30|            error(loc, "can only apply to an output", "invariant", "");
12277|     30|    } else {
12278|      0|        if ((language == EShLangVertex && pipeIn) || (! pipeOut && ! pipeIn))
  ------------------
  |  Branch (12278:14): [True: 0, False: 0]
  |  Branch (12278:43): [True: 0, False: 0]
  |  Branch (12278:55): [True: 0, False: 0]
  |  Branch (12278:68): [True: 0, False: 0]
  ------------------
12279|      0|            error(loc, "can only apply to an output, or to an input in a non-vertex stage\n", "invariant", "");
12280|      0|    }
12281|     30|}
_ZN7glslang13TParseContext33updateStandaloneQualifierDefaultsERKNS_10TSourceLocERKNS_11TPublicTypeE:
12288|    965|{
12289|    965|    if (publicType.shaderQualifiers.vertices != TQualifier::layoutNotSet) {
  ------------------
  |  Branch (12289:9): [True: 0, False: 965]
  ------------------
12290|      0|        assert(language == EShLangTessControl || language == EShLangGeometry || language == EShLangMesh);
12291|      0|        const char* id = (language == EShLangTessControl) ? "vertices" : "max_vertices";
  ------------------
  |  Branch (12291:26): [True: 0, False: 0]
  ------------------
12292|       |
12293|      0|        if (publicType.qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (12293:13): [True: 0, False: 0]
  ------------------
12294|      0|            error(loc, "can only apply to 'out'", id, "");
12295|      0|        if (! intermediate.setVertices(publicType.shaderQualifiers.vertices))
  ------------------
  |  Branch (12295:13): [True: 0, False: 0]
  ------------------
12296|      0|            error(loc, "cannot change previously set layout value", id, "");
12297|       |
12298|      0|        if (language == EShLangTessControl)
  ------------------
  |  Branch (12298:13): [True: 0, False: 0]
  ------------------
12299|      0|            checkIoArraysConsistency(loc);
12300|      0|    }
12301|    965|    if (publicType.shaderQualifiers.primitives != TQualifier::layoutNotSet) {
  ------------------
  |  Branch (12301:9): [True: 0, False: 965]
  ------------------
12302|      0|        assert(language == EShLangMesh);
12303|      0|        const char* id = "max_primitives";
12304|       |
12305|      0|        if (publicType.qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (12305:13): [True: 0, False: 0]
  ------------------
12306|      0|            error(loc, "can only apply to 'out'", id, "");
12307|      0|        if (! intermediate.setPrimitives(publicType.shaderQualifiers.primitives))
  ------------------
  |  Branch (12307:13): [True: 0, False: 0]
  ------------------
12308|      0|            error(loc, "cannot change previously set layout value", id, "");
12309|      0|    }
12310|    965|    if (publicType.shaderQualifiers.invocations != TQualifier::layoutNotSet) {
  ------------------
  |  Branch (12310:9): [True: 0, False: 965]
  ------------------
12311|      0|        if (publicType.qualifier.storage != EvqVaryingIn)
  ------------------
  |  Branch (12311:13): [True: 0, False: 0]
  ------------------
12312|      0|            error(loc, "can only apply to 'in'", "invocations", "");
12313|      0|        if (! intermediate.setInvocations(publicType.shaderQualifiers.invocations))
  ------------------
  |  Branch (12313:13): [True: 0, False: 0]
  ------------------
12314|      0|            error(loc, "cannot change previously set layout value", "invocations", "");
12315|      0|    }
12316|    965|    if (publicType.shaderQualifiers.geometry != ElgNone) {
  ------------------
  |  Branch (12316:9): [True: 0, False: 965]
  ------------------
12317|      0|        if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12317:13): [True: 0, False: 0]
  ------------------
12318|      0|            switch (publicType.shaderQualifiers.geometry) {
12319|      0|            case ElgPoints:
  ------------------
  |  Branch (12319:13): [True: 0, False: 0]
  ------------------
12320|      0|            case ElgLines:
  ------------------
  |  Branch (12320:13): [True: 0, False: 0]
  ------------------
12321|      0|            case ElgLinesAdjacency:
  ------------------
  |  Branch (12321:13): [True: 0, False: 0]
  ------------------
12322|      0|            case ElgTriangles:
  ------------------
  |  Branch (12322:13): [True: 0, False: 0]
  ------------------
12323|      0|            case ElgTrianglesAdjacency:
  ------------------
  |  Branch (12323:13): [True: 0, False: 0]
  ------------------
12324|      0|            case ElgQuads:
  ------------------
  |  Branch (12324:13): [True: 0, False: 0]
  ------------------
12325|      0|            case ElgIsolines:
  ------------------
  |  Branch (12325:13): [True: 0, False: 0]
  ------------------
12326|      0|                if (language == EShLangMesh) {
  ------------------
  |  Branch (12326:21): [True: 0, False: 0]
  ------------------
12327|      0|                    error(loc, "cannot apply to input", TQualifier::getGeometryString(publicType.shaderQualifiers.geometry), "");
12328|      0|                    break;
12329|      0|                }
12330|      0|                if (intermediate.setInputPrimitive(publicType.shaderQualifiers.geometry)) {
  ------------------
  |  Branch (12330:21): [True: 0, False: 0]
  ------------------
12331|      0|                    if (language == EShLangGeometry)
  ------------------
  |  Branch (12331:25): [True: 0, False: 0]
  ------------------
12332|      0|                        checkIoArraysConsistency(loc);
12333|      0|                } else
12334|      0|                    error(loc, "cannot change previously set input primitive", TQualifier::getGeometryString(publicType.shaderQualifiers.geometry), "");
12335|      0|                break;
12336|      0|            default:
  ------------------
  |  Branch (12336:13): [True: 0, False: 0]
  ------------------
12337|      0|                error(loc, "cannot apply to input", TQualifier::getGeometryString(publicType.shaderQualifiers.geometry), "");
12338|      0|            }
12339|      0|        } else if (publicType.qualifier.storage == EvqVaryingOut) {
  ------------------
  |  Branch (12339:20): [True: 0, False: 0]
  ------------------
12340|      0|            switch (publicType.shaderQualifiers.geometry) {
12341|      0|            case ElgLines:
  ------------------
  |  Branch (12341:13): [True: 0, False: 0]
  ------------------
12342|      0|            case ElgTriangles:
  ------------------
  |  Branch (12342:13): [True: 0, False: 0]
  ------------------
12343|      0|                if (language != EShLangMesh) {
  ------------------
  |  Branch (12343:21): [True: 0, False: 0]
  ------------------
12344|      0|                    error(loc, "cannot apply to 'out'", TQualifier::getGeometryString(publicType.shaderQualifiers.geometry), "");
12345|      0|                    break;
12346|      0|                }
12347|      0|                [[fallthrough]];
12348|      0|            case ElgPoints:
  ------------------
  |  Branch (12348:13): [True: 0, False: 0]
  ------------------
12349|      0|            case ElgLineStrip:
  ------------------
  |  Branch (12349:13): [True: 0, False: 0]
  ------------------
12350|      0|            case ElgTriangleStrip:
  ------------------
  |  Branch (12350:13): [True: 0, False: 0]
  ------------------
12351|      0|                if (! intermediate.setOutputPrimitive(publicType.shaderQualifiers.geometry))
  ------------------
  |  Branch (12351:21): [True: 0, False: 0]
  ------------------
12352|      0|                    error(loc, "cannot change previously set output primitive", TQualifier::getGeometryString(publicType.shaderQualifiers.geometry), "");
12353|      0|                break;
12354|      0|            default:
  ------------------
  |  Branch (12354:13): [True: 0, False: 0]
  ------------------
12355|      0|                error(loc, "cannot apply to 'out'", TQualifier::getGeometryString(publicType.shaderQualifiers.geometry), "");
12356|      0|            }
12357|      0|        } else
12358|      0|            error(loc, "cannot apply to:", TQualifier::getGeometryString(publicType.shaderQualifiers.geometry), "%s", GetStorageQualifierString(publicType.qualifier.storage));
12359|      0|    }
12360|    965|    if (publicType.shaderQualifiers.spacing != EvsNone) {
  ------------------
  |  Branch (12360:9): [True: 0, False: 965]
  ------------------
12361|      0|        if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12361:13): [True: 0, False: 0]
  ------------------
12362|      0|            if (! intermediate.setVertexSpacing(publicType.shaderQualifiers.spacing))
  ------------------
  |  Branch (12362:17): [True: 0, False: 0]
  ------------------
12363|      0|                error(loc, "cannot change previously set vertex spacing", TQualifier::getVertexSpacingString(publicType.shaderQualifiers.spacing), "");
12364|      0|        } else
12365|      0|            error(loc, "can only apply to 'in'", TQualifier::getVertexSpacingString(publicType.shaderQualifiers.spacing), "");
12366|      0|    }
12367|    965|    if (publicType.shaderQualifiers.order != EvoNone) {
  ------------------
  |  Branch (12367:9): [True: 0, False: 965]
  ------------------
12368|      0|        if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12368:13): [True: 0, False: 0]
  ------------------
12369|      0|            if (! intermediate.setVertexOrder(publicType.shaderQualifiers.order))
  ------------------
  |  Branch (12369:17): [True: 0, False: 0]
  ------------------
12370|      0|                error(loc, "cannot change previously set vertex order", TQualifier::getVertexOrderString(publicType.shaderQualifiers.order), "");
12371|      0|        } else
12372|      0|            error(loc, "can only apply to 'in'", TQualifier::getVertexOrderString(publicType.shaderQualifiers.order), "");
12373|      0|    }
12374|    965|    if (publicType.shaderQualifiers.pointMode) {
  ------------------
  |  Branch (12374:9): [True: 0, False: 965]
  ------------------
12375|      0|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12375:13): [True: 0, False: 0]
  ------------------
12376|      0|            intermediate.setPointMode();
12377|      0|        else
12378|      0|            error(loc, "can only apply to 'in'", "point_mode", "");
12379|      0|    }
12380|       |
12381|  3.86k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (12381:21): [True: 2.89k, False: 965]
  ------------------
12382|  2.89k|        if (publicType.shaderQualifiers.localSizeNotDefault[i]) {
  ------------------
  |  Branch (12382:13): [True: 0, False: 2.89k]
  ------------------
12383|      0|            if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12383:17): [True: 0, False: 0]
  ------------------
12384|      0|                if (! intermediate.setLocalSize(i, publicType.shaderQualifiers.localSize[i]))
  ------------------
  |  Branch (12384:21): [True: 0, False: 0]
  ------------------
12385|      0|                    error(loc, "cannot change previously set size", "local_size", "");
12386|      0|                else {
12387|      0|                    int max = 0;
12388|      0|                    if (language == EShLangCompute) {
  ------------------
  |  Branch (12388:25): [True: 0, False: 0]
  ------------------
12389|      0|                        switch (i) {
12390|      0|                        case 0: max = resources.maxComputeWorkGroupSizeX; break;
  ------------------
  |  Branch (12390:25): [True: 0, False: 0]
  ------------------
12391|      0|                        case 1: max = resources.maxComputeWorkGroupSizeY; break;
  ------------------
  |  Branch (12391:25): [True: 0, False: 0]
  ------------------
12392|      0|                        case 2: max = resources.maxComputeWorkGroupSizeZ; break;
  ------------------
  |  Branch (12392:25): [True: 0, False: 0]
  ------------------
12393|      0|                        default: break;
  ------------------
  |  Branch (12393:25): [True: 0, False: 0]
  ------------------
12394|      0|                        }
12395|      0|                        if (intermediate.getLocalSize(i) > (unsigned int)max)
  ------------------
  |  Branch (12395:29): [True: 0, False: 0]
  ------------------
12396|      0|                            error(loc, "too large; see gl_MaxComputeWorkGroupSize", "local_size", "");
12397|      0|                    } else if (language == EShLangMesh) {
  ------------------
  |  Branch (12397:32): [True: 0, False: 0]
  ------------------
12398|      0|                        switch (i) {
12399|      0|                        case 0:
  ------------------
  |  Branch (12399:25): [True: 0, False: 0]
  ------------------
12400|      0|                            max = extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12400:35): [True: 0, False: 0]
  ------------------
12401|      0|                                    resources.maxMeshWorkGroupSizeX_EXT :
12402|      0|                                    resources.maxMeshWorkGroupSizeX_NV;
12403|      0|                            break;
12404|      0|                        case 1:
  ------------------
  |  Branch (12404:25): [True: 0, False: 0]
  ------------------
12405|      0|                            max = extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12405:35): [True: 0, False: 0]
  ------------------
12406|      0|                                    resources.maxMeshWorkGroupSizeY_EXT :
12407|      0|                                    resources.maxMeshWorkGroupSizeY_NV ;
12408|      0|                            break;
12409|      0|                        case 2:
  ------------------
  |  Branch (12409:25): [True: 0, False: 0]
  ------------------
12410|      0|                            max = extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12410:35): [True: 0, False: 0]
  ------------------
12411|      0|                                    resources.maxMeshWorkGroupSizeZ_EXT :
12412|      0|                                    resources.maxMeshWorkGroupSizeZ_NV ;
12413|      0|                            break;
12414|      0|                        default: break;
  ------------------
  |  Branch (12414:25): [True: 0, False: 0]
  ------------------
12415|      0|                        }
12416|      0|                        if (intermediate.getLocalSize(i) > (unsigned int)max) {
  ------------------
  |  Branch (12416:29): [True: 0, False: 0]
  ------------------
12417|      0|                            TString maxsErrtring = "too large, see ";
12418|      0|                            maxsErrtring.append(extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12418:49): [True: 0, False: 0]
  ------------------
12419|      0|                                                    "gl_MaxMeshWorkGroupSizeEXT" : "gl_MaxMeshWorkGroupSizeNV");
12420|      0|                            error(loc, maxsErrtring.c_str(), "local_size", "");
12421|      0|                        }
12422|      0|                    } else if (language == EShLangTask) {
  ------------------
  |  Branch (12422:32): [True: 0, False: 0]
  ------------------
12423|      0|                        switch (i) {
12424|      0|                        case 0:
  ------------------
  |  Branch (12424:25): [True: 0, False: 0]
  ------------------
12425|      0|                            max = extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12425:35): [True: 0, False: 0]
  ------------------
12426|      0|                                    resources.maxTaskWorkGroupSizeX_EXT :
12427|      0|                                    resources.maxTaskWorkGroupSizeX_NV;
12428|      0|                            break;
12429|      0|                        case 1:
  ------------------
  |  Branch (12429:25): [True: 0, False: 0]
  ------------------
12430|      0|                            max = extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12430:35): [True: 0, False: 0]
  ------------------
12431|      0|                                    resources.maxTaskWorkGroupSizeY_EXT:
12432|      0|                                    resources.maxTaskWorkGroupSizeY_NV;
12433|      0|                            break;
12434|      0|                        case 2:
  ------------------
  |  Branch (12434:25): [True: 0, False: 0]
  ------------------
12435|      0|                            max = extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12435:35): [True: 0, False: 0]
  ------------------
12436|      0|                                    resources.maxTaskWorkGroupSizeZ_EXT:
12437|      0|                                    resources.maxTaskWorkGroupSizeZ_NV;
12438|      0|                            break;
12439|      0|                        default: break;
  ------------------
  |  Branch (12439:25): [True: 0, False: 0]
  ------------------
12440|      0|                        }
12441|      0|                        if (intermediate.getLocalSize(i) > (unsigned int)max) {
  ------------------
  |  Branch (12441:29): [True: 0, False: 0]
  ------------------
12442|      0|                            TString maxsErrtring = "too large, see ";
12443|      0|                            maxsErrtring.append(extensionTurnedOn(E_GL_EXT_mesh_shader) ?
  ------------------
  |  Branch (12443:49): [True: 0, False: 0]
  ------------------
12444|      0|                                                    "gl_MaxTaskWorkGroupSizeEXT" : "gl_MaxTaskWorkGroupSizeNV");
12445|      0|                            error(loc, maxsErrtring.c_str(), "local_size", "");
12446|      0|                        }
12447|      0|                    } else {
12448|      0|                        assert(0);
12449|      0|                    }
12450|       |
12451|       |                    // Fix the existing constant gl_WorkGroupSize with this new information.
12452|      0|                    TVariable* workGroupSize = getEditableVariable("gl_WorkGroupSize");
12453|      0|                    if (workGroupSize != nullptr)
  ------------------
  |  Branch (12453:25): [True: 0, False: 0]
  ------------------
12454|      0|                        workGroupSize->getWritableConstArray()[i].setUConst(intermediate.getLocalSize(i));
12455|      0|                }
12456|      0|            } else
12457|      0|                error(loc, "can only apply to 'in'", "local_size", "");
12458|      0|        }
12459|  2.89k|        if (publicType.shaderQualifiers.localSizeSpecId[i] != TQualifier::layoutNotSet) {
  ------------------
  |  Branch (12459:13): [True: 0, False: 2.89k]
  ------------------
12460|      0|            if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12460:17): [True: 0, False: 0]
  ------------------
12461|      0|                if (! intermediate.setLocalSizeSpecId(i, publicType.shaderQualifiers.localSizeSpecId[i]))
  ------------------
  |  Branch (12461:21): [True: 0, False: 0]
  ------------------
12462|      0|                    error(loc, "cannot change previously set size", "local_size", "");
12463|      0|            } else
12464|      0|                error(loc, "can only apply to 'in'", "local_size id", "");
12465|       |            // Set the workgroup built-in variable as a specialization constant
12466|      0|            TVariable* workGroupSize = getEditableVariable("gl_WorkGroupSize");
12467|      0|            if (workGroupSize != nullptr)
  ------------------
  |  Branch (12467:17): [True: 0, False: 0]
  ------------------
12468|      0|                workGroupSize->getWritableType().getQualifier().specConstant = true;
12469|      0|        }
12470|  2.89k|    }
12471|       |
12472|    965|    if (publicType.shaderQualifiers.earlyFragmentTests) {
  ------------------
  |  Branch (12472:9): [True: 179, False: 786]
  ------------------
12473|    179|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12473:13): [True: 178, False: 1]
  ------------------
12474|    178|            intermediate.setEarlyFragmentTests();
12475|      1|        else
12476|      1|            error(loc, "can only apply to 'in'", "early_fragment_tests", "");
12477|    179|    }
12478|    965|    if (publicType.shaderQualifiers.earlyAndLateFragmentTestsAMD) {
  ------------------
  |  Branch (12478:9): [True: 0, False: 965]
  ------------------
12479|      0|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12479:13): [True: 0, False: 0]
  ------------------
12480|      0|            intermediate.setEarlyAndLateFragmentTestsAMD();
12481|      0|        else
12482|      0|            error(loc, "can only apply to 'in'", "early_and_late_fragment_tests_amd", "");
12483|      0|    }
12484|    965|    if (publicType.shaderQualifiers.postDepthCoverage) {
  ------------------
  |  Branch (12484:9): [True: 0, False: 965]
  ------------------
12485|      0|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12485:13): [True: 0, False: 0]
  ------------------
12486|      0|            intermediate.setPostDepthCoverage();
12487|      0|        else
12488|      0|            error(loc, "can only apply to 'in'", "post_coverage_coverage", "");
12489|      0|    }
12490|    965|    if (publicType.shaderQualifiers.nonCoherentColorAttachmentReadEXT) {
  ------------------
  |  Branch (12490:9): [True: 0, False: 965]
  ------------------
12491|      0|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12491:13): [True: 0, False: 0]
  ------------------
12492|      0|            intermediate.setNonCoherentColorAttachmentReadEXT();
12493|      0|        else
12494|      0|            error(loc, "can only apply to 'in'", "non_coherent_color_attachment_readEXT", "");
12495|      0|    }
12496|    965|    if (publicType.shaderQualifiers.nonCoherentDepthAttachmentReadEXT) {
  ------------------
  |  Branch (12496:9): [True: 0, False: 965]
  ------------------
12497|      0|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12497:13): [True: 0, False: 0]
  ------------------
12498|      0|            intermediate.setNonCoherentDepthAttachmentReadEXT();
12499|      0|        else
12500|      0|            error(loc, "can only apply to 'in'", "non_coherent_depth_attachment_readEXT", "");
12501|      0|    }
12502|    965|    if (publicType.shaderQualifiers.nonCoherentStencilAttachmentReadEXT) {
  ------------------
  |  Branch (12502:9): [True: 0, False: 965]
  ------------------
12503|      0|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12503:13): [True: 0, False: 0]
  ------------------
12504|      0|            intermediate.setNonCoherentStencilAttachmentReadEXT();
12505|      0|        else
12506|      0|            error(loc, "can only apply to 'in'", "non_coherent_stencil_attachment_readEXT", "");
12507|      0|    }
12508|    965|    if (publicType.shaderQualifiers.layoutNonCoherentTileAttachmentReadQCOM) {
  ------------------
  |  Branch (12508:9): [True: 0, False: 965]
  ------------------
12509|      0|        if (publicType.qualifier.storage == EvqVaryingIn)
  ------------------
  |  Branch (12509:13): [True: 0, False: 0]
  ------------------
12510|      0|            intermediate.setNonCoherentTileAttachmentReadQCOM();
12511|      0|        else
12512|      0|            error(loc, "can only apply to 'in'", "non_coherent_attachment_readQCOM", "");
12513|      0|    }
12514|    965|    if (publicType.shaderQualifiers.hasBlendEquation()) {
  ------------------
  |  Branch (12514:9): [True: 523, False: 442]
  ------------------
12515|    523|        if (publicType.qualifier.storage != EvqVaryingOut)
  ------------------
  |  Branch (12515:13): [True: 27, False: 496]
  ------------------
12516|     27|            error(loc, "can only apply to 'out'", "blend equation", "");
12517|    523|    }
12518|    965|    if (publicType.shaderQualifiers.interlockOrdering) {
  ------------------
  |  Branch (12518:9): [True: 0, False: 965]
  ------------------
12519|      0|        if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12519:13): [True: 0, False: 0]
  ------------------
12520|      0|            if (!intermediate.setInterlockOrdering(publicType.shaderQualifiers.interlockOrdering))
  ------------------
  |  Branch (12520:17): [True: 0, False: 0]
  ------------------
12521|      0|                error(loc, "cannot change previously set fragment shader interlock ordering", TQualifier::getInterlockOrderingString(publicType.shaderQualifiers.interlockOrdering), "");
12522|      0|        }
12523|      0|        else
12524|      0|            error(loc, "can only apply to 'in'", TQualifier::getInterlockOrderingString(publicType.shaderQualifiers.interlockOrdering), "");
12525|      0|    }
12526|       |
12527|    965|    if (publicType.shaderQualifiers.layoutDerivativeGroupQuads &&
  ------------------
  |  Branch (12527:9): [True: 0, False: 965]
  ------------------
12528|      0|        publicType.shaderQualifiers.layoutDerivativeGroupLinear) {
  ------------------
  |  Branch (12528:9): [True: 0, False: 0]
  ------------------
12529|      0|        error(loc, "cannot be both specified", "derivative_group_quads* and derivative_group_linear*", "");
12530|    965|    } else if (publicType.shaderQualifiers.layoutDerivativeGroupQuads ||
  ------------------
  |  Branch (12530:16): [True: 0, False: 965]
  ------------------
12531|    965|               publicType.shaderQualifiers.layoutDerivativeGroupLinear) {
  ------------------
  |  Branch (12531:16): [True: 0, False: 965]
  ------------------
12532|      0|        const auto derivativeMode = publicType.shaderQualifiers.layoutDerivativeGroupQuads ?
  ------------------
  |  Branch (12532:37): [True: 0, False: 0]
  ------------------
12533|      0|            LayoutDerivativeGroupQuads :
12534|      0|            LayoutDerivativeGroupLinear;
12535|      0|        const char* derivativeModeName = publicType.shaderQualifiers.layoutDerivativeGroupQuads ?
  ------------------
  |  Branch (12535:42): [True: 0, False: 0]
  ------------------
12536|      0|            "derivative_group_quads" :
12537|      0|            "derivative_group_linear";
12538|       |
12539|      0|        if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12539:13): [True: 0, False: 0]
  ------------------
12540|      0|            if (intermediate.hasLayoutDerivativeModeNone() &&
  ------------------
  |  Branch (12540:17): [True: 0, False: 0]
  ------------------
12541|      0|                intermediate.getLayoutDerivativeModeNone() != derivativeMode)
  ------------------
  |  Branch (12541:17): [True: 0, False: 0]
  ------------------
12542|      0|                error(loc, "cannot be both specified", "derivative_group_quads* and derivative_group_linear*", "");
12543|      0|            else
12544|      0|                intermediate.setLayoutDerivativeMode(derivativeMode,
12545|      0|                                                     publicType.shaderQualifiers.derivativeGroupExtension);
12546|      0|        } else {
12547|      0|            error(loc, "can only apply to 'in'", derivativeModeName, "");
12548|      0|        }
12549|      0|    }
12550|       |    // Check mesh out array sizes, once all the necessary out qualifiers are defined.
12551|    965|    if ((language == EShLangMesh) &&
  ------------------
  |  Branch (12551:9): [True: 0, False: 965]
  ------------------
12552|      0|        (intermediate.getVertices() != TQualifier::layoutNotSet) &&
  ------------------
  |  Branch (12552:9): [True: 0, False: 0]
  ------------------
12553|      0|        (intermediate.getPrimitives() != TQualifier::layoutNotSet) &&
  ------------------
  |  Branch (12553:9): [True: 0, False: 0]
  ------------------
12554|      0|        (intermediate.getOutputPrimitive() != ElgNone))
  ------------------
  |  Branch (12554:9): [True: 0, False: 0]
  ------------------
12555|      0|    {
12556|      0|        checkIoArraysConsistency(loc);
12557|      0|    }
12558|       |
12559|    965|    if (publicType.shaderQualifiers.layoutPrimitiveCulling) {
  ------------------
  |  Branch (12559:9): [True: 0, False: 965]
  ------------------
12560|      0|        if (publicType.qualifier.storage != EvqTemporary)
  ------------------
  |  Branch (12560:13): [True: 0, False: 0]
  ------------------
12561|      0|            error(loc, "layout qualifier cannot have storage qualifiers", "primitive_culling", "");
12562|      0|        else {
12563|      0|            intermediate.setLayoutPrimitiveCulling();
12564|      0|        }
12565|       |        // Exit early as further checks are not valid
12566|      0|        return;
12567|      0|    }
12568|       |
12569|  3.86k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (12569:21): [True: 2.89k, False: 965]
  ------------------
12570|  2.89k|        if (publicType.shaderQualifiers.layoutTileShadingRateQCOMNotDefault[i]) {
  ------------------
  |  Branch (12570:13): [True: 0, False: 2.89k]
  ------------------
12571|      0|            if (publicType.qualifier.storage == EvqVaryingIn) {
  ------------------
  |  Branch (12571:17): [True: 0, False: 0]
  ------------------
12572|      0|                if (! intermediate.setTileShadingRateQCOM(i, publicType.shaderQualifiers.layoutTileShadingRateQCOM[i]))
  ------------------
  |  Branch (12572:21): [True: 0, False: 0]
  ------------------
12573|      0|                    error(loc, "cannot change previously set size", (i==0?"shading_rate_xQCOM":(i==1?"shading_rate_yQCOM":"shading_rate_zQCOM")), "");
  ------------------
  |  Branch (12573:70): [True: 0, False: 0]
  |  Branch (12573:97): [True: 0, False: 0]
  ------------------
12574|      0|            } else
12575|      0|                error(loc, "can only apply to 'in'", (i==0?"shading_rate_xQCOM":(i==1?"shading_rate_yQCOM":"shading_rate_zQCOM")), "");
  ------------------
  |  Branch (12575:55): [True: 0, False: 0]
  |  Branch (12575:82): [True: 0, False: 0]
  ------------------
12576|      0|        }
12577|  2.89k|    }
12578|       |
12579|    965|    const TQualifier& qualifier = publicType.qualifier;
12580|       |
12581|    965|    if (qualifier.isAuxiliary() ||
  ------------------
  |  Branch (12581:9): [True: 0, False: 965]
  ------------------
12582|    965|        qualifier.isMemory() ||
  ------------------
  |  Branch (12582:9): [True: 38, False: 927]
  ------------------
12583|    927|        qualifier.isInterpolation() ||
  ------------------
  |  Branch (12583:9): [True: 16, False: 911]
  ------------------
12584|    911|        qualifier.precision != EpqNone)
  ------------------
  |  Branch (12584:9): [True: 19, False: 892]
  ------------------
12585|     73|        error(loc, "cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)", "qualifier", "");
12586|       |
12587|       |    // "The offset qualifier can only be used on block members of blocks..."
12588|       |    // "The align qualifier can only be used on blocks or block members..."
12589|    965|    if (qualifier.hasOffset() ||
  ------------------
  |  Branch (12589:9): [True: 48, False: 917]
  ------------------
12590|    917|        qualifier.hasAlign())
  ------------------
  |  Branch (12590:9): [True: 46, False: 871]
  ------------------
12591|     94|        error(loc, "cannot use offset or align qualifiers in a default qualifier declaration (declaration with no type)", "layout qualifier", "");
12592|       |
12593|    965|    layoutQualifierCheck(loc, qualifier);
12594|       |
12595|    965|    switch (qualifier.storage) {
12596|     97|    case EvqUniform:
  ------------------
  |  Branch (12596:5): [True: 97, False: 868]
  ------------------
12597|     97|        if (qualifier.hasMatrix())
  ------------------
  |  Branch (12597:13): [True: 0, False: 97]
  ------------------
12598|      0|            globalUniformDefaults.layoutMatrix = qualifier.layoutMatrix;
12599|     97|        if (qualifier.hasPacking())
  ------------------
  |  Branch (12599:13): [True: 11, False: 86]
  ------------------
12600|     11|            globalUniformDefaults.layoutPacking = qualifier.layoutPacking;
12601|     97|        break;
12602|      0|    case EvqBuffer:
  ------------------
  |  Branch (12602:5): [True: 0, False: 965]
  ------------------
12603|      0|        if (qualifier.hasMatrix())
  ------------------
  |  Branch (12603:13): [True: 0, False: 0]
  ------------------
12604|      0|            globalBufferDefaults.layoutMatrix = qualifier.layoutMatrix;
12605|      0|        if (qualifier.hasPacking())
  ------------------
  |  Branch (12605:13): [True: 0, False: 0]
  ------------------
12606|      0|            globalBufferDefaults.layoutPacking = qualifier.layoutPacking;
12607|      0|        break;
12608|    299|    case EvqVaryingIn:
  ------------------
  |  Branch (12608:5): [True: 299, False: 666]
  ------------------
12609|    299|        break;
12610|    566|    case EvqVaryingOut:
  ------------------
  |  Branch (12610:5): [True: 566, False: 399]
  ------------------
12611|    566|        if (qualifier.hasStream())
  ------------------
  |  Branch (12611:13): [True: 0, False: 566]
  ------------------
12612|      0|            globalOutputDefaults.layoutStream = qualifier.layoutStream;
12613|    566|        if (qualifier.hasXfbBuffer())
  ------------------
  |  Branch (12613:13): [True: 0, False: 566]
  ------------------
12614|      0|            globalOutputDefaults.layoutXfbBuffer = qualifier.layoutXfbBuffer;
12615|    566|        if (globalOutputDefaults.hasXfbBuffer() && qualifier.hasXfbStride()) {
  ------------------
  |  Branch (12615:13): [True: 0, False: 566]
  |  Branch (12615:52): [True: 0, False: 0]
  ------------------
12616|      0|            if (! intermediate.setXfbBufferStride(globalOutputDefaults.layoutXfbBuffer, qualifier.layoutXfbStride))
  ------------------
  |  Branch (12616:17): [True: 0, False: 0]
  ------------------
12617|      0|                error(loc, "all stride settings must match for xfb buffer", "xfb_stride", "%d", qualifier.layoutXfbBuffer);
12618|      0|        }
12619|    566|        break;
12620|      0|    case EvqShared:
  ------------------
  |  Branch (12620:5): [True: 0, False: 965]
  ------------------
12621|      0|        if (qualifier.hasMatrix())
  ------------------
  |  Branch (12621:13): [True: 0, False: 0]
  ------------------
12622|      0|            globalSharedDefaults.layoutMatrix = qualifier.layoutMatrix;
12623|      0|        if (qualifier.hasPacking())
  ------------------
  |  Branch (12623:13): [True: 0, False: 0]
  ------------------
12624|      0|            globalSharedDefaults.layoutPacking = qualifier.layoutPacking;
12625|      0|        break;
12626|      3|    default:
  ------------------
  |  Branch (12626:5): [True: 3, False: 962]
  ------------------
12627|      3|        error(loc, "default qualifier requires 'uniform', 'buffer', 'in', 'out' or 'shared' storage qualification", "", "");
12628|      3|        return;
12629|    965|    }
12630|       |
12631|    962|    if (qualifier.hasBinding())
  ------------------
  |  Branch (12631:9): [True: 0, False: 962]
  ------------------
12632|      0|        error(loc, "cannot declare a default, include a type or full declaration", "binding", "");
12633|    962|    if (qualifier.hasAnyLocation())
  ------------------
  |  Branch (12633:9): [True: 28, False: 934]
  ------------------
12634|     28|        error(loc, "cannot declare a default, use a full declaration", "location/component/index", "");
12635|    962|    if (qualifier.hasXfbOffset())
  ------------------
  |  Branch (12635:9): [True: 0, False: 962]
  ------------------
12636|      0|        error(loc, "cannot declare a default, use a full declaration", "xfb_offset", "");
12637|    962|    if (qualifier.isPushConstant())
  ------------------
  |  Branch (12637:9): [True: 13, False: 949]
  ------------------
12638|     13|        error(loc, "cannot declare a default, can only be used on a block", "push_constant", "");
12639|    962|    if (qualifier.hasBufferReference())
  ------------------
  |  Branch (12639:9): [True: 0, False: 962]
  ------------------
12640|      0|        error(loc, "cannot declare a default, can only be used on a block", "buffer_reference", "");
12641|    962|    if (qualifier.isBufferType())
  ------------------
  |  Branch (12641:9): [True: 0, False: 962]
  ------------------
12642|      0|        error(loc, "cannot declare a default, can only be used on a block", "buffer_type", "");
12643|    962|    if (qualifier.hasSpecConstantId())
  ------------------
  |  Branch (12643:9): [True: 0, False: 962]
  ------------------
12644|      0|        error(loc, "cannot declare a default, can only be used on a scalar", "constant_id", "");
12645|    962|    if (qualifier.isShaderRecord())
  ------------------
  |  Branch (12645:9): [True: 0, False: 962]
  ------------------
12646|      0|        error(loc, "cannot declare a default, can only be used on a block", "shaderRecordNV", "");
12647|    962|}
_ZN7glslang13TParseContext23wrapupSwitchSubsequenceEPNS_16TIntermAggregateEP11TIntermNode:
12656|    265|{
12657|    265|    TIntermSequence* switchSequence = switchSequenceStack.back();
12658|       |
12659|    265|    if (statements) {
  ------------------
  |  Branch (12659:9): [True: 162, False: 103]
  ------------------
12660|    162|        if (switchSequence->size() == 0)
  ------------------
  |  Branch (12660:13): [True: 1, False: 161]
  ------------------
12661|      1|            error(statements->getLoc(), "cannot have statements before first case/default label", "switch", "");
12662|    162|        statements->setOperator(EOpSequence);
12663|    162|        switchSequence->push_back(statements);
12664|    162|    }
12665|    265|    if (branchNode) {
  ------------------
  |  Branch (12665:9): [True: 178, False: 87]
  ------------------
12666|       |        // check all previous cases for the same label (or both are 'default')
12667|    455|        for (unsigned int s = 0; s < switchSequence->size(); ++s) {
  ------------------
  |  Branch (12667:34): [True: 277, False: 178]
  ------------------
12668|    277|            TIntermBranch* prevBranch = (*switchSequence)[s]->getAsBranchNode();
12669|    277|            if (prevBranch) {
  ------------------
  |  Branch (12669:17): [True: 139, False: 138]
  ------------------
12670|    139|                TIntermTyped* prevExpression = prevBranch->getExpression();
12671|    139|                TIntermTyped* newExpression = branchNode->getAsBranchNode()->getExpression();
12672|    139|                if (prevExpression == nullptr && newExpression == nullptr)
  ------------------
  |  Branch (12672:21): [True: 8, False: 131]
  |  Branch (12672:50): [True: 1, False: 7]
  ------------------
12673|      1|                    error(branchNode->getLoc(), "duplicate label", "default", "");
12674|    138|                else if (prevExpression != nullptr &&
  ------------------
  |  Branch (12674:26): [True: 131, False: 7]
  ------------------
12675|    131|                          newExpression != nullptr &&
  ------------------
  |  Branch (12675:27): [True: 125, False: 6]
  ------------------
12676|    125|                         prevExpression->getAsConstantUnion() &&
  ------------------
  |  Branch (12676:26): [True: 124, False: 1]
  ------------------
12677|    124|                          newExpression->getAsConstantUnion() &&
  ------------------
  |  Branch (12677:27): [True: 117, False: 7]
  ------------------
12678|    117|                         prevExpression->getAsConstantUnion()->getConstArray()[0].getIConst() ==
  ------------------
  |  Branch (12678:26): [True: 1, False: 116]
  ------------------
12679|    117|                          newExpression->getAsConstantUnion()->getConstArray()[0].getIConst())
12680|      1|                    error(branchNode->getLoc(), "duplicated value", "case", "");
12681|    139|            }
12682|    277|        }
12683|    178|        switchSequence->push_back(branchNode);
12684|    178|    }
12685|    265|}
_ZN7glslang13TParseContext9addSwitchERKNS_10TSourceLocEPNS_12TIntermTypedEPNS_16TIntermAggregateE:
12692|     87|{
12693|     87|    profileRequires(loc, EEsProfile, 300, nullptr, "switch statements");
12694|     87|    profileRequires(loc, ENoProfile, 130, nullptr, "switch statements");
12695|       |
12696|     87|    wrapupSwitchSubsequence(lastStatements, nullptr);
12697|       |
12698|     87|    if (expression == nullptr ||
  ------------------
  |  Branch (12698:9): [True: 0, False: 87]
  ------------------
12699|     87|        (expression->getBasicType() != EbtInt && expression->getBasicType() != EbtUint) ||
  ------------------
  |  Branch (12699:10): [True: 31, False: 56]
  |  Branch (12699:50): [True: 2, False: 29]
  ------------------
12700|     85|        expression->getType().isArray() || expression->getType().isMatrix() || expression->getType().isVector())
  ------------------
  |  Branch (12700:9): [True: 1, False: 84]
  |  Branch (12700:44): [True: 0, False: 84]
  |  Branch (12700:80): [True: 0, False: 84]
  ------------------
12701|      3|            error(loc, "condition must be a scalar integer expression", "switch", "");
12702|       |
12703|       |    // If there is nothing to do, drop the switch but still execute the expression
12704|     87|    TIntermSequence* switchSequence = switchSequenceStack.back();
12705|     87|    if (switchSequence->size() == 0)
  ------------------
  |  Branch (12705:9): [True: 5, False: 82]
  ------------------
12706|      5|        return expression;
12707|       |
12708|     82|    if (lastStatements == nullptr) {
  ------------------
  |  Branch (12708:9): [True: 3, False: 79]
  ------------------
12709|       |        // This was originally an ERRROR, because early versions of the specification said
12710|       |        // "it is an error to have no statement between a label and the end of the switch statement."
12711|       |        // The specifications were updated to remove this (being ill-defined what a "statement" was),
12712|       |        // so, this became a warning.  However, 3.0 tests still check for the error.
12713|      3|        if (isEsProfile() && (version <= 300 || version >= 320) && ! relaxedErrors())
  ------------------
  |  Branch (12713:13): [True: 0, False: 3]
  |  Branch (12713:31): [True: 0, False: 0]
  |  Branch (12713:49): [True: 0, False: 0]
  |  Branch (12713:68): [True: 0, False: 0]
  ------------------
12714|      0|            error(loc, "last case/default label not followed by statements", "switch", "");
12715|      3|        else if (!isEsProfile() && (version <= 430 || version >= 460))
  ------------------
  |  Branch (12715:18): [True: 3, False: 0]
  |  Branch (12715:37): [True: 0, False: 3]
  |  Branch (12715:55): [True: 0, False: 3]
  ------------------
12716|      0|            error(loc, "last case/default label not followed by statements", "switch", "");
12717|      3|        else
12718|      3|            warn(loc, "last case/default label not followed by statements", "switch", "");
12719|       |
12720|       |
12721|       |        // emulate a break for error recovery
12722|      3|        lastStatements = intermediate.makeAggregate(intermediate.addBranch(EOpBreak, loc));
12723|      3|        lastStatements->setOperator(EOpSequence);
12724|      3|        switchSequence->push_back(lastStatements);
12725|      3|    }
12726|       |
12727|     82|    TIntermAggregate* body = new TIntermAggregate(EOpSequence);
12728|     82|    body->getSequence() = *switchSequenceStack.back();
12729|     82|    body->setLoc(loc);
12730|       |
12731|     82|    TIntermSwitch* switchNode = new TIntermSwitch(expression, body);
12732|     82|    switchNode->setLoc(loc);
12733|       |
12734|     82|    return switchNode;
12735|     87|}
_ZN7glslang13TParseContext16recordStructCopyERNSt3__13mapIPKNS_7TVectorINS_8TTypeLocEEENS2_ImS7_NS1_4lessImEENS1_9allocatorINS1_4pairIKmS7_EEEEEENS8_IS7_EENSA_INSB_IKS7_SF_EEEEEEPKNS_5TTypeESO_:
12742|    540|{
12743|    540|    size_t memberCount = tmpType->getStruct()->size();
12744|    540|    size_t originHash = 0, tmpHash = 0;
12745|    540|    std::hash<size_t> hasher;
12746|  2.50k|    for (size_t i = 0; i < memberCount; i++) {
  ------------------
  |  Branch (12746:24): [True: 1.96k, False: 540]
  ------------------
12747|  1.96k|        size_t originMemberHash = hasher((size_t)originType->getStruct()->at(i).type->getQualifier().layoutPacking +
12748|  1.96k|                                         (size_t)originType->getStruct()->at(i).type->getQualifier().layoutMatrix);
12749|  1.96k|        size_t tmpMemberHash = hasher((size_t)tmpType->getStruct()->at(i).type->getQualifier().layoutPacking +
12750|  1.96k|                                     (size_t)tmpType->getStruct()->at(i).type->getQualifier().layoutMatrix);
12751|  1.96k|        originHash = hasher((originHash ^ originMemberHash) << 1);
12752|  1.96k|        tmpHash = hasher((tmpHash ^ tmpMemberHash) << 1);
12753|  1.96k|    }
12754|    540|    const TTypeList* originStruct = originType->getStruct();
12755|    540|    const TTypeList* tmpStruct = tmpType->getStruct();
12756|    540|    if (originHash != tmpHash) {
  ------------------
  |  Branch (12756:9): [True: 93, False: 447]
  ------------------
12757|     93|        intermediate.recordStructSource(tmpStruct, originStruct);
12758|     93|        auto fixRecords = record.find(originStruct);
12759|     93|        if (fixRecords != record.end()) {
  ------------------
  |  Branch (12759:13): [True: 14, False: 79]
  ------------------
12760|     14|            auto fixRecord = fixRecords->second.find(tmpHash);
12761|     14|            if (fixRecord != fixRecords->second.end()) {
  ------------------
  |  Branch (12761:17): [True: 12, False: 2]
  ------------------
12762|     12|                return fixRecord->second;
12763|     12|            } else {
12764|      2|                record[originStruct][tmpHash] = tmpStruct;
12765|      2|                return tmpStruct;
12766|      2|            }
12767|     79|        } else {
12768|     79|            record[originStruct] = std::map<size_t, const TTypeList*>();
12769|     79|            record[originStruct][tmpHash] = tmpStruct;
12770|     79|            return tmpStruct;
12771|     79|        }
12772|     93|    }
12773|    447|    return originStruct;
12774|    540|}
ParseHelper.cpp:_ZN7glslangL27storageCanHaveLayoutInBlockENS_17TStorageQualifierE:
 8789|  14.9k|{
 8790|  14.9k|    switch (storage) {
 8791|  6.39k|    case EvqUniform:
  ------------------
  |  Branch (8791:5): [True: 6.39k, False: 8.50k]
  ------------------
 8792|  8.18k|    case EvqBuffer:
  ------------------
  |  Branch (8792:5): [True: 1.78k, False: 13.1k]
  ------------------
 8793|  8.18k|    case EvqShared:
  ------------------
  |  Branch (8793:5): [True: 0, False: 14.9k]
  ------------------
 8794|  8.18k|    case EvqSamplerHeap:
  ------------------
  |  Branch (8794:5): [True: 0, False: 14.9k]
  ------------------
 8795|  8.18k|    case EvqResourceHeap:
  ------------------
  |  Branch (8795:5): [True: 0, False: 14.9k]
  ------------------
 8796|  8.18k|        return true;
 8797|  6.72k|    default:
  ------------------
  |  Branch (8797:5): [True: 6.72k, False: 8.18k]
  ------------------
 8798|  6.72k|        return false;
 8799|  14.9k|    }
 8800|  14.9k|}
ParseHelper.cpp:_ZN7glslangL30isResourceHeapBufferTypeMemberERKNS_10TQualifierES2_:
11380|  66.8k|{
11381|  66.8k|    return blockQualifier.storage == EvqResourceHeap && memberQualifier.isBufferType();
  ------------------
  |  Branch (11381:12): [True: 0, False: 66.8k]
  |  Branch (11381:57): [True: 0, False: 0]
  ------------------
11382|  66.8k|}
ParseHelper.cpp:_ZZN7glslang13TParseContext14builtInOpCheckERKNS_10TSourceLocERKNS_9TFunctionERNS_15TIntermOperatorEENK3$_0clERK11TIntermNode:
 3870|    379|                [&isValid, &isIn, &interpolantErrorMsg, esProfile, &structAccessOp](const TIntermNode& n) -> bool {
 3871|    379|                    auto* type = n.getAsTyped();
 3872|    379|                    if (type) {
  ------------------
  |  Branch (3872:25): [True: 379, False: 0]
  ------------------
 3873|    379|                        if (type->getType().getQualifier().storage == EvqVaryingIn) {
  ------------------
  |  Branch (3873:29): [True: 139, False: 240]
  ------------------
 3874|    139|                            isIn = true;
 3875|    139|                        }
 3876|       |                        // If a field accessor was used, it can only be used to access a field with an input block, not a struct.
 3877|    379|                        if (structAccessOp && (type->getType().getBasicType() != EbtBlock)) {
  ------------------
  |  Branch (3877:29): [True: 2, False: 377]
  |  Branch (3877:47): [True: 2, False: 0]
  ------------------
 3878|      2|                            interpolantErrorMsg +=
 3879|      2|                                ". Using the field of a named struct as an interpolant argument is not "
 3880|      2|                                "allowed (ES-only).";
 3881|      2|                            isValid = false;
 3882|      2|                        }
 3883|    379|                    }
 3884|       |
 3885|       |                    // ES has different requirements for interpolants than GL
 3886|    379|                    if (esProfile) {
  ------------------
  |  Branch (3886:25): [True: 297, False: 82]
  ------------------
 3887|       |                        // Swizzling will be taken care of by the 'swizzleOkay' argument passsed to traverseLValueBase,
 3888|       |                        // so we only ned to check whether or not a field accessor has been used with a named struct.
 3889|    297|                        auto* binary = n.getAsBinaryNode();
 3890|    297|                        if (binary && (binary->getOp() == EOpIndexDirectStruct)) {
  ------------------
  |  Branch (3890:29): [True: 108, False: 189]
  |  Branch (3890:39): [True: 2, False: 106]
  ------------------
 3891|      2|                            structAccessOp = true;
 3892|      2|                        }
 3893|    297|                    }
 3894|       |                    // Don't continue traversing if we know we have an invalid interpolant at this point.
 3895|    379|                    return isValid;
 3896|    379|                });
ParseHelper.cpp:_ZZN7glslang13TParseContext15findFunction400ERKNS_10TSourceLocERKNS_9TFunctionERbENK3$_0clERKNS_5TTypeESB_NS_9TOperatorEi:
 9272|   177k|    const auto convertible = [this,builtIn](const TType& from, const TType& to, TOperator op, int param) -> bool {
 9273|   177k|        if (from == to)
  ------------------
  |  Branch (9273:13): [True: 1.51k, False: 175k]
  ------------------
 9274|  1.51k|            return true;
 9275|   175k|        if (from.coopMatParameterOK(to))
  ------------------
  |  Branch (9275:13): [True: 0, False: 175k]
  ------------------
 9276|      0|            return true;
 9277|   175k|        if (from.tensorParameterOK(to))
  ------------------
  |  Branch (9277:13): [True: 0, False: 175k]
  ------------------
 9278|      0|            return true;
 9279|   175k|        if (from.getBasicType() == EbtFunction && to.getBasicType() == EbtFunction)
  ------------------
  |  Branch (9279:13): [True: 0, False: 175k]
  |  Branch (9279:51): [True: 0, False: 0]
  ------------------
 9280|      0|            return true;
 9281|   175k|        if (from.coopVecParameterOK(to))
  ------------------
  |  Branch (9281:13): [True: 0, False: 175k]
  ------------------
 9282|      0|            return true;
 9283|       |        // Allow a sized array to be passed through an unsized array parameter, for coopMatLoad/Store functions
 9284|   175k|        if (builtIn && from.isArray() && to.isUnsizedArray()) {
  ------------------
  |  Branch (9284:13): [True: 170k, False: 5.17k]
  |  Branch (9284:24): [True: 64, False: 170k]
  |  Branch (9284:42): [True: 0, False: 64]
  ------------------
 9285|      0|            TType fromElementType(from, 0);
 9286|      0|            TType toElementType(to, 0);
 9287|       |            // Load/store tensor functions allow any element type for the pointer
 9288|      0|            if ((op == EOpCooperativeMatrixLoadTensorNV || op == EOpCooperativeMatrixStoreTensorNV) &&
  ------------------
  |  Branch (9288:18): [True: 0, False: 0]
  |  Branch (9288:60): [True: 0, False: 0]
  ------------------
 9289|      0|                param == 1) {
  ------------------
  |  Branch (9289:17): [True: 0, False: 0]
  ------------------
 9290|      0|                return true;
 9291|      0|            }
 9292|      0|            if (fromElementType == toElementType)
  ------------------
  |  Branch (9292:17): [True: 0, False: 0]
  ------------------
 9293|      0|                return true;
 9294|      0|        }
 9295|   175k|        if (TType::vectorAndLongVectorMatch(from, to))
  ------------------
  |  Branch (9295:13): [True: 0, False: 175k]
  ------------------
 9296|      0|            return true;
 9297|   175k|        if (from.isArray() || to.isArray() || ! from.sameElementShape(to))
  ------------------
  |  Branch (9297:13): [True: 90, False: 175k]
  |  Branch (9297:31): [True: 7, False: 175k]
  |  Branch (9297:47): [True: 145k, False: 30.0k]
  ------------------
 9298|   145k|            return false;
 9299|  30.0k|        if (from.isCoopMat() && to.isCoopMat())
  ------------------
  |  Branch (9299:13): [True: 0, False: 30.0k]
  |  Branch (9299:33): [True: 0, False: 0]
  ------------------
 9300|      0|            return from.sameCoopMatBaseType(to);
 9301|  30.0k|        if (from.isCoopVecNV() && to.isCoopVecNV())
  ------------------
  |  Branch (9301:13): [True: 0, False: 30.0k]
  |  Branch (9301:35): [True: 0, False: 0]
  ------------------
 9302|      0|            return from.sameCoopVecBaseType(to);
 9303|  30.0k|        if (from.isLongVector() && to.isLongVector())
  ------------------
  |  Branch (9303:13): [True: 0, False: 30.0k]
  |  Branch (9303:36): [True: 0, False: 0]
  ------------------
 9304|      0|            return from.sameLongVectorBaseType(to);
 9305|  30.0k|        if (from.isTensorARM() && to.isTensorARM())
  ------------------
  |  Branch (9305:13): [True: 0, False: 30.0k]
  |  Branch (9305:35): [True: 0, False: 0]
  ------------------
 9306|      0|            return from.sameTensorBaseTypeARM(to);
 9307|  30.0k|        return intermediate.canImplicitlyPromote(from.getBasicType(), to.getBasicType());
 9308|  30.0k|    };
ParseHelper.cpp:_ZZN7glslang13TParseContext15findFunction400ERKNS_10TSourceLocERKNS_9TFunctionERbENK3$_1clERKNS_5TTypeESB_SB_:
 9313|  22.0k|    const auto better = [&](const TType& from, const TType& to1, const TType& to2) -> bool {
 9314|       |        // 1. exact match
 9315|  22.0k|        bool to2Matches = from == to2 || (from.isLongVector() && to2.getBasicType() == EbtLongVector);
  ------------------
  |  Branch (9315:27): [True: 1.64k, False: 20.4k]
  |  Branch (9315:43): [True: 0, False: 20.4k]
  |  Branch (9315:66): [True: 0, False: 0]
  ------------------
 9316|  22.0k|        bool to1Matches = from == to1 || (from.isLongVector() && to1.getBasicType() == EbtLongVector);
  ------------------
  |  Branch (9316:27): [True: 2.43k, False: 19.6k]
  |  Branch (9316:43): [True: 0, False: 19.6k]
  |  Branch (9316:66): [True: 0, False: 0]
  ------------------
 9317|  22.0k|        if (to2Matches)
  ------------------
  |  Branch (9317:13): [True: 1.64k, False: 20.4k]
  ------------------
 9318|  1.64k|            return !to1Matches;
 9319|  20.4k|        if (to1Matches)
  ------------------
  |  Branch (9319:13): [True: 2.07k, False: 18.3k]
  ------------------
 9320|  2.07k|            return false;
 9321|       |
 9322|  18.3k|        if (extensionTurnedOn(E_GL_NV_gpu_shader5)) {
  ------------------
  |  Branch (9322:13): [True: 10.4k, False: 7.89k]
  ------------------
 9323|       |            // This map refers to the conversion table mentioned under the
 9324|       |            // section "Modify Section 6.1, Function Definitions, p. 63" in NV_gpu_shader5 spec
 9325|  10.4k|            const static std::map<int, std::vector<int>> conversionTable = {
 9326|  10.4k|                {EbtInt8,   {EbtInt, EbtInt64}},
 9327|  10.4k|                {EbtInt16,  {EbtInt, EbtInt64}},
 9328|  10.4k|                {EbtInt,    {EbtInt64}},
 9329|  10.4k|                {EbtUint8,  {EbtUint, EbtUint64}},
 9330|  10.4k|                {EbtUint16, {EbtUint, EbtUint64}},
 9331|  10.4k|                {EbtUint,   {EbtUint64}},
 9332|  10.4k|            };
 9333|  10.4k|            auto source = conversionTable.find(from.getBasicType());
 9334|  10.4k|            if (source != conversionTable.end()) {
  ------------------
  |  Branch (9334:17): [True: 10.4k, False: 7]
  ------------------
 9335|  13.5k|                for (auto destination : source->second) {
  ------------------
  |  Branch (9335:39): [True: 13.5k, False: 100]
  ------------------
 9336|  13.5k|                    if (to2.getBasicType() == destination &&
  ------------------
  |  Branch (9336:25): [True: 3.41k, False: 10.0k]
  ------------------
 9337|  3.41k|                        to1.getBasicType() != destination) // to2 is better then to1
  ------------------
  |  Branch (9337:25): [True: 3.41k, False: 0]
  ------------------
 9338|  3.41k|                        return true;
 9339|  10.0k|                    else if (to1.getBasicType() == destination &&
  ------------------
  |  Branch (9339:30): [True: 6.94k, False: 3.14k]
  ------------------
 9340|  6.94k|                             to2.getBasicType() != destination) // This means to1 is better then to2
  ------------------
  |  Branch (9340:30): [True: 6.94k, False: 0]
  ------------------
 9341|  6.94k|                        return false;
 9342|  13.5k|                }
 9343|  10.4k|            }
 9344|  10.4k|        }
 9345|       |        // 2. float -> double is better
 9346|  8.00k|        if (from.getBasicType() == EbtFloat) {
  ------------------
  |  Branch (9346:13): [True: 2, False: 8.00k]
  ------------------
 9347|      2|            if (to2.getBasicType() == EbtDouble && to1.getBasicType() != EbtDouble)
  ------------------
  |  Branch (9347:17): [True: 0, False: 2]
  |  Branch (9347:52): [True: 0, False: 0]
  ------------------
 9348|      0|                return true;
 9349|      2|        }
 9350|       |
 9351|       |        // 3. -> float is better than -> double
 9352|  8.00k|        return to2.getBasicType() == EbtFloat && to1.getBasicType() == EbtDouble;
  ------------------
  |  Branch (9352:16): [True: 1.72k, False: 6.27k]
  |  Branch (9352:50): [True: 688, False: 1.03k]
  ------------------
 9353|  8.00k|    };
ParseHelper.cpp:_ZZN7glslang13TParseContext25findFunctionExplicitTypesERKNS_10TSourceLocERKNS_9TFunctionERbENK3$_0clERKNS_5TTypeESB_NS_9TOperatorEi:
 9392|  31.6k|    const auto convertible = [this,builtIn](const TType& from, const TType& to, TOperator op, int param) -> bool {
 9393|  31.6k|        if (from == to)
  ------------------
  |  Branch (9393:13): [True: 567, False: 31.0k]
  ------------------
 9394|    567|            return true;
 9395|  31.0k|        if (from.coopMatParameterOK(to))
  ------------------
  |  Branch (9395:13): [True: 0, False: 31.0k]
  ------------------
 9396|      0|            return true;
 9397|  31.0k|        if (from.tensorParameterOK(to))
  ------------------
  |  Branch (9397:13): [True: 0, False: 31.0k]
  ------------------
 9398|      0|            return true;
 9399|  31.0k|        if (from.getBasicType() == EbtFunction && to.getBasicType() == EbtFunction)
  ------------------
  |  Branch (9399:13): [True: 0, False: 31.0k]
  |  Branch (9399:51): [True: 0, False: 0]
  ------------------
 9400|      0|            return true;
 9401|  31.0k|        if (from.coopVecParameterOK(to))
  ------------------
  |  Branch (9401:13): [True: 0, False: 31.0k]
  ------------------
 9402|      0|            return true;
 9403|       |        // Allow a sized array to be passed through an unsized array parameter, for coopMatLoad/Store functions
 9404|  31.0k|        if (builtIn && from.isArray() && to.isUnsizedArray()) {
  ------------------
  |  Branch (9404:13): [True: 31.0k, False: 0]
  |  Branch (9404:24): [True: 0, False: 31.0k]
  |  Branch (9404:42): [True: 0, False: 0]
  ------------------
 9405|      0|            TType fromElementType(from, 0);
 9406|      0|            TType toElementType(to, 0);
 9407|       |            // Load/store tensor functions allow any element type for the pointer
 9408|      0|            if ((op == EOpCooperativeMatrixLoadTensorNV || op == EOpCooperativeMatrixStoreTensorNV) &&
  ------------------
  |  Branch (9408:18): [True: 0, False: 0]
  |  Branch (9408:60): [True: 0, False: 0]
  ------------------
 9409|      0|                param == 1) {
  ------------------
  |  Branch (9409:17): [True: 0, False: 0]
  ------------------
 9410|      0|                return true;
 9411|      0|            }
 9412|      0|            if (fromElementType == toElementType)
  ------------------
  |  Branch (9412:17): [True: 0, False: 0]
  ------------------
 9413|      0|                return true;
 9414|      0|        }
 9415|  31.0k|        if (TType::vectorAndLongVectorMatch(from, to))
  ------------------
  |  Branch (9415:13): [True: 0, False: 31.0k]
  ------------------
 9416|      0|            return true;
 9417|  31.0k|        if (from.isArray() || to.isArray() || ! from.sameElementShape(to))
  ------------------
  |  Branch (9417:13): [True: 0, False: 31.0k]
  |  Branch (9417:31): [True: 0, False: 31.0k]
  |  Branch (9417:47): [True: 23.8k, False: 7.24k]
  ------------------
 9418|  23.8k|            return false;
 9419|  7.24k|        if (from.isCoopMat() && to.isCoopMat())
  ------------------
  |  Branch (9419:13): [True: 0, False: 7.24k]
  |  Branch (9419:33): [True: 0, False: 0]
  ------------------
 9420|      0|            return from.sameCoopMatBaseType(to);
 9421|  7.24k|        if (from.isCoopVecNV() && to.isCoopVecNV())
  ------------------
  |  Branch (9421:13): [True: 0, False: 7.24k]
  |  Branch (9421:35): [True: 0, False: 0]
  ------------------
 9422|      0|            return from.sameCoopVecBaseType(to);
 9423|  7.24k|        if (from.isLongVector() && to.isLongVector())
  ------------------
  |  Branch (9423:13): [True: 0, False: 7.24k]
  |  Branch (9423:36): [True: 0, False: 0]
  ------------------
 9424|      0|            return from.sameLongVectorBaseType(to);
 9425|  7.24k|        if (from.isTensorARM() && to.isTensorARM())
  ------------------
  |  Branch (9425:13): [True: 0, False: 7.24k]
  |  Branch (9425:35): [True: 0, False: 0]
  ------------------
 9426|      0|            return from.sameTensorBaseTypeARM(to);
 9427|  7.24k|        return intermediate.canImplicitlyPromote(from.getBasicType(), to.getBasicType());
 9428|  7.24k|    };
ParseHelper.cpp:_ZZN7glslang13TParseContext25findFunctionExplicitTypesERKNS_10TSourceLocERKNS_9TFunctionERbENK3$_1clERKNS_5TTypeESB_SB_:
 9433|  2.94k|    const auto better = [this](const TType& from, const TType& to1, const TType& to2) -> bool {
 9434|       |        // 1. exact match
 9435|  2.94k|        bool to2Matches = from == to2 || (from.isLongVector() && to2.getBasicType() == EbtLongVector);
  ------------------
  |  Branch (9435:27): [True: 518, False: 2.43k]
  |  Branch (9435:43): [True: 0, False: 2.43k]
  |  Branch (9435:66): [True: 0, False: 0]
  ------------------
 9436|  2.94k|        bool to1Matches = from == to1 || (from.isLongVector() && to1.getBasicType() == EbtLongVector);
  ------------------
  |  Branch (9436:27): [True: 819, False: 2.12k]
  |  Branch (9436:43): [True: 0, False: 2.12k]
  |  Branch (9436:66): [True: 0, False: 0]
  ------------------
 9437|  2.94k|        if (to2Matches)
  ------------------
  |  Branch (9437:13): [True: 518, False: 2.43k]
  ------------------
 9438|    518|            return !to1Matches;
 9439|  2.43k|        if (to1Matches)
  ------------------
  |  Branch (9439:13): [True: 793, False: 1.63k]
  ------------------
 9440|    793|            return false;
 9441|       |
 9442|       |        // 2. Promotion (integral, floating-point) is better
 9443|  1.63k|        TBasicType from_type = from.getBasicType();
 9444|  1.63k|        TBasicType to1_type = to1.getBasicType();
 9445|  1.63k|        TBasicType to2_type = to2.getBasicType();
 9446|  1.63k|        bool isPromotion1 = (intermediate.isIntegralPromotion(from_type, to1_type) ||
  ------------------
  |  Branch (9446:30): [True: 715, False: 922]
  ------------------
 9447|    922|                             intermediate.isFPPromotion(from_type, to1_type));
  ------------------
  |  Branch (9447:30): [True: 0, False: 922]
  ------------------
 9448|  1.63k|        bool isPromotion2 = (intermediate.isIntegralPromotion(from_type, to2_type) ||
  ------------------
  |  Branch (9448:30): [True: 204, False: 1.43k]
  ------------------
 9449|  1.43k|                             intermediate.isFPPromotion(from_type, to2_type));
  ------------------
  |  Branch (9449:30): [True: 0, False: 1.43k]
  ------------------
 9450|  1.63k|        if (isPromotion2)
  ------------------
  |  Branch (9450:13): [True: 204, False: 1.43k]
  ------------------
 9451|    204|            return !isPromotion1;
 9452|  1.43k|        if(isPromotion1)
  ------------------
  |  Branch (9452:12): [True: 715, False: 718]
  ------------------
 9453|    715|            return false;
 9454|       |
 9455|       |        // 3. Conversion (integral, floating-point , floating-integral)
 9456|    718|        bool isConversion1 = (intermediate.isIntegralConversion(from_type, to1_type) ||
  ------------------
  |  Branch (9456:31): [True: 468, False: 250]
  ------------------
 9457|    250|                              intermediate.isFPConversion(from_type, to1_type) ||
  ------------------
  |  Branch (9457:31): [True: 0, False: 250]
  ------------------
 9458|    250|                              intermediate.isFPIntegralConversion(from_type, to1_type));
  ------------------
  |  Branch (9458:31): [True: 250, False: 0]
  ------------------
 9459|    718|        bool isConversion2 = (intermediate.isIntegralConversion(from_type, to2_type) ||
  ------------------
  |  Branch (9459:31): [True: 468, False: 250]
  ------------------
 9460|    250|                              intermediate.isFPConversion(from_type, to2_type) ||
  ------------------
  |  Branch (9460:31): [True: 0, False: 250]
  ------------------
 9461|    250|                              intermediate.isFPIntegralConversion(from_type, to2_type));
  ------------------
  |  Branch (9461:31): [True: 250, False: 0]
  ------------------
 9462|       |
 9463|    718|        return isConversion2 && !isConversion1;
  ------------------
  |  Branch (9463:16): [True: 718, False: 0]
  |  Branch (9463:33): [True: 0, False: 718]
  ------------------
 9464|  1.43k|    };

_ZN7glslang22GetThreadPoolAllocatorEv:
   59|   431M|{
   60|   431M|    return *(threadPoolAllocator ? threadPoolAllocator : GetDefaultThreadPoolAllocator());
  ------------------
  |  Branch (60:14): [True: 431M, False: 0]
  ------------------
   61|   431M|}
_ZN7glslang22SetThreadPoolAllocatorEPNS_14TPoolAllocatorE:
   65|  8.60k|{
   66|  8.60k|    threadPoolAllocator = poolAllocator;
   67|  8.60k|}
_ZN7glslang14TPoolAllocatorC2Eii:
   74|  11.4k|    pageSize(growthIncrement),
   75|  11.4k|    alignment(allocationAlignment),
   76|  11.4k|    freeList(nullptr),
   77|  11.4k|    inUseList(nullptr),
   78|  11.4k|    numCalls(0)
   79|  11.4k|{
   80|       |    //
   81|       |    // Don't allow page sizes we know are smaller than all common
   82|       |    // OS page sizes.
   83|       |    //
   84|  11.4k|    if (pageSize < 4*1024)
  ------------------
  |  Branch (84:9): [True: 0, False: 11.4k]
  ------------------
   85|      0|        pageSize = 4*1024;
   86|       |
   87|       |    //
   88|       |    // A large currentPageOffset indicates a new page needs to
   89|       |    // be obtained to allocate memory.
   90|       |    //
   91|  11.4k|    currentPageOffset = pageSize;
   92|       |
   93|       |    //
   94|       |    // Adjust alignment to be at least pointer aligned and
   95|       |    // power of 2.
   96|       |    //
   97|  11.4k|    size_t minAlign = sizeof(void*);
   98|  11.4k|    alignment &= ~(minAlign - 1);
   99|  11.4k|    if (alignment < minAlign)
  ------------------
  |  Branch (99:9): [True: 0, False: 11.4k]
  ------------------
  100|      0|        alignment = minAlign;
  101|  11.4k|    size_t a = 1;
  102|  57.0k|    while (a < alignment)
  ------------------
  |  Branch (102:12): [True: 45.6k, False: 11.4k]
  ------------------
  103|  45.6k|        a <<= 1;
  104|  11.4k|    alignment = a;
  105|  11.4k|    alignmentMask = a - 1;
  106|       |
  107|       |    //
  108|       |    // Align header skip
  109|       |    //
  110|  11.4k|    headerSkip = minAlign;
  111|  11.4k|    if (headerSkip < sizeof(tHeader)) {
  ------------------
  |  Branch (111:9): [True: 11.4k, False: 0]
  ------------------
  112|  11.4k|        headerSkip = (sizeof(tHeader) + alignmentMask) & ~alignmentMask;
  113|  11.4k|    }
  114|       |
  115|  11.4k|    push();
  116|  11.4k|}
_ZN7glslang14TPoolAllocatorD2Ev:
  119|  11.4k|{
  120|  3.56M|    while (inUseList) {
  ------------------
  |  Branch (120:12): [True: 3.55M, False: 11.4k]
  ------------------
  121|  3.55M|        tHeader* next = inUseList->nextPage;
  122|  3.55M|        inUseList->~tHeader();
  123|  3.55M|        delete [] reinterpret_cast<char*>(inUseList);
  124|  3.55M|        inUseList = next;
  125|  3.55M|    }
  126|       |
  127|       |    //
  128|       |    // Always delete the free list memory - it can't be being
  129|       |    // (correctly) referenced, whether the pool allocator was
  130|       |    // global or not.  We should not check the guard blocks
  131|       |    // here, because we did it already when the block was
  132|       |    // placed into the free list.
  133|       |    //
  134|  11.4k|    while (freeList) {
  ------------------
  |  Branch (134:12): [True: 42, False: 11.4k]
  ------------------
  135|     42|        tHeader* next = freeList->nextPage;
  136|     42|        delete [] reinterpret_cast<char*>(freeList);
  137|     42|        freeList = next;
  138|     42|    }
  139|  11.4k|}
_ZN7glslang14TPoolAllocator4pushEv:
  168|  15.7k|{
  169|  15.7k|    tAllocState state = { currentPageOffset, inUseList };
  170|       |
  171|  15.7k|    stack.push_back(state);
  172|       |
  173|       |    //
  174|       |    // Indicate there is no current page to allocate from.
  175|       |    //
  176|  15.7k|    currentPageOffset = pageSize;
  177|  15.7k|}
_ZN7glslang14TPoolAllocator3popEv:
  187|     42|{
  188|     42|    if (stack.size() < 1)
  ------------------
  |  Branch (188:9): [True: 0, False: 42]
  ------------------
  189|      0|        return;
  190|       |
  191|     42|    tHeader* page = stack.back().page;
  192|     42|    currentPageOffset = stack.back().offset;
  193|       |
  194|     84|    while (inUseList != page) {
  ------------------
  |  Branch (194:12): [True: 42, False: 42]
  ------------------
  195|     42|        tHeader* nextInUse = inUseList->nextPage;
  196|     42|        size_t pageCount = inUseList->pageCount;
  197|       |
  198|       |        // This technically ends the lifetime of the header as C++ object,
  199|       |        // but we will still control the memory and reuse it.
  200|     42|        inUseList->~tHeader(); // currently, just a debug allocation checker
  201|       |
  202|     42|        if (pageCount > 1) {
  ------------------
  |  Branch (202:13): [True: 0, False: 42]
  ------------------
  203|      0|            delete [] reinterpret_cast<char*>(inUseList);
  204|     42|        } else {
  205|     42|            inUseList->nextPage = freeList;
  206|     42|            freeList = inUseList;
  207|     42|        }
  208|     42|        inUseList = nextInUse;
  209|     42|    }
  210|       |
  211|     42|    stack.pop_back();
  212|     42|}
_ZN7glslang14TPoolAllocator8allocateEm:
  225|   278M|{
  226|       |    // If we are using guard blocks, all allocations are bracketed by
  227|       |    // them: [guardblock][allocation][guardblock].  numBytes is how
  228|       |    // much memory the caller asked for.  allocationSize is the total
  229|       |    // size including guard blocks.  In release build,
  230|       |    // guardBlockSize=0 and this all gets optimized away.
  231|   278M|    size_t allocationSize = TAllocation::allocationSize(numBytes);
  232|       |
  233|       |    //
  234|       |    // Just keep some interesting statistics.
  235|       |    //
  236|   278M|    ++numCalls;
  237|   278M|    totalBytes += numBytes;
  238|       |
  239|       |    //
  240|       |    // Do the allocation, most likely case first, for efficiency.
  241|       |    // This step could be moved to be inline sometime.
  242|       |    //
  243|   278M|    if (currentPageOffset + allocationSize <= pageSize) {
  ------------------
  |  Branch (243:9): [True: 274M, False: 3.55M]
  ------------------
  244|       |        //
  245|       |        // Safe to allocate from currentPageOffset.
  246|       |        //
  247|   274M|        unsigned char* memory = reinterpret_cast<unsigned char*>(inUseList) + currentPageOffset;
  248|   274M|        currentPageOffset += allocationSize;
  249|   274M|        currentPageOffset = (currentPageOffset + alignmentMask) & ~alignmentMask;
  250|       |
  251|   274M|        return initializeAllocation(inUseList, memory, numBytes);
  252|   274M|    }
  253|       |
  254|  3.55M|    if (allocationSize + headerSkip > pageSize) {
  ------------------
  |  Branch (254:9): [True: 12.9k, False: 3.54M]
  ------------------
  255|       |        //
  256|       |        // Do a multi-page allocation.  Don't mix these with the others.
  257|       |        // The OS is efficient and allocating and free-ing multiple pages.
  258|       |        //
  259|  12.9k|        size_t numBytesToAlloc = allocationSize + headerSkip;
  260|  12.9k|        tHeader* memory = reinterpret_cast<tHeader*>(::new char[numBytesToAlloc]);
  261|  12.9k|        if (memory == nullptr)
  ------------------
  |  Branch (261:13): [True: 0, False: 12.9k]
  ------------------
  262|      0|            return nullptr;
  263|       |
  264|       |        // Use placement-new to initialize header
  265|  12.9k|        new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize);
  266|  12.9k|        inUseList = memory;
  267|       |
  268|  12.9k|        currentPageOffset = pageSize;  // make next allocation come from a new page
  269|       |
  270|       |        // No guard blocks for multi-page allocations (yet)
  271|  12.9k|        return reinterpret_cast<void*>(reinterpret_cast<UINT_PTR>(memory) + headerSkip);
  272|  12.9k|    }
  273|       |
  274|       |    //
  275|       |    // Need a simple page to allocate from.
  276|       |    //
  277|  3.54M|    tHeader* memory;
  278|  3.54M|    if (freeList) {
  ------------------
  |  Branch (278:9): [True: 0, False: 3.54M]
  ------------------
  279|      0|        memory = freeList;
  280|      0|        freeList = freeList->nextPage;
  281|  3.54M|    } else {
  282|  3.54M|        memory = reinterpret_cast<tHeader*>(::new char[pageSize]);
  283|  3.54M|        if (memory == nullptr)
  ------------------
  |  Branch (283:13): [True: 0, False: 3.54M]
  ------------------
  284|      0|            return nullptr;
  285|  3.54M|    }
  286|       |
  287|       |    // Use placement-new to initialize header
  288|  3.54M|    new(memory) tHeader(inUseList, 1);
  289|  3.54M|    inUseList = memory;
  290|       |
  291|  3.54M|    unsigned char* ret = reinterpret_cast<unsigned char*>(inUseList) + headerSkip;
  292|  3.54M|    currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask;
  293|       |
  294|  3.54M|    return initializeAllocation(inUseList, ret, numBytes);
  295|  3.54M|}

_ZN7glslang13TInputScanner17consumeWhiteSpaceERb:
   69|  4.85M|{
   70|  4.85M|    int c = peek();  // don't accidentally consume anything other than whitespace
   71|  17.6M|    while (c == ' ' || c == '\t' || c == '\r' || c == '\n') {
  ------------------
  |  Branch (71:12): [True: 12.2M, False: 5.40M]
  |  Branch (71:24): [True: 99.4k, False: 5.30M]
  |  Branch (71:37): [True: 23.8k, False: 5.28M]
  |  Branch (71:50): [True: 432k, False: 4.85M]
  ------------------
   72|  12.7M|        if (c == '\r' || c == '\n')
  ------------------
  |  Branch (72:13): [True: 23.8k, False: 12.7M]
  |  Branch (72:26): [True: 432k, False: 12.3M]
  ------------------
   73|   456k|            foundNonSpaceTab = true;
   74|  12.7M|        get();
   75|  12.7M|        c = peek();
   76|  12.7M|    }
   77|  4.85M|}
_ZN7glslang13TInputScanner14consumeCommentEv:
   81|  65.2k|{
   82|  65.2k|    if (peek() != '/')
  ------------------
  |  Branch (82:9): [True: 0, False: 65.2k]
  ------------------
   83|      0|        return false;
   84|       |
   85|  65.2k|    get();  // consume the '/'
   86|  65.2k|    int c = peek();
   87|  65.2k|    if (c == '/') {
  ------------------
  |  Branch (87:9): [True: 44.5k, False: 20.7k]
  ------------------
   88|       |
   89|       |        // a '//' style comment
   90|  44.5k|        get();  // consume the second '/'
   91|  44.5k|        c = get();
   92|  83.9k|        do {
   93|  2.02M|            while (c != EndOfInput && c != '\\' && c != '\r' && c != '\n')
  ------------------
  |  Branch (93:20): [True: 2.02M, False: 21]
  |  Branch (93:39): [True: 1.98M, False: 39.4k]
  |  Branch (93:52): [True: 1.94M, False: 38.0k]
  |  Branch (93:65): [True: 1.93M, False: 6.49k]
  ------------------
   94|  1.93M|                c = get();
   95|       |
   96|  83.9k|            if (c == EndOfInput || c == '\r' || c == '\n') {
  ------------------
  |  Branch (96:17): [True: 21, False: 83.9k]
  |  Branch (96:36): [True: 38.0k, False: 45.9k]
  |  Branch (96:49): [True: 6.49k, False: 39.4k]
  ------------------
   97|   129k|                while (c == '\r' || c == '\n')
  ------------------
  |  Branch (97:24): [True: 38.4k, False: 90.8k]
  |  Branch (97:37): [True: 46.3k, False: 44.5k]
  ------------------
   98|  84.8k|                    c = get();
   99|       |
  100|       |                // we reached the end of the comment
  101|  44.5k|                break;
  102|  44.5k|            } else {
  103|       |                // it's a '\', so we need to keep going, after skipping what's escaped
  104|       |
  105|       |                // read the skipped character
  106|  39.4k|                c = get();
  107|       |
  108|       |                // if it's a two-character newline, skip both characters
  109|  39.4k|                if (c == '\r' && peek() == '\n')
  ------------------
  |  Branch (109:21): [True: 174, False: 39.2k]
  |  Branch (109:34): [True: 0, False: 174]
  ------------------
  110|      0|                    get();
  111|  39.4k|                c = get();
  112|  39.4k|            }
  113|  83.9k|        } while (true);
  ------------------
  |  Branch (113:18): [True: 39.4k, Folded]
  ------------------
  114|       |
  115|       |        // put back the last non-comment character
  116|  44.5k|        if (c != EndOfInput)
  ------------------
  |  Branch (116:13): [True: 44.5k, False: 30]
  ------------------
  117|  44.5k|            unget();
  118|       |
  119|  44.5k|        return true;
  120|  44.5k|    } else if (c == '*') {
  ------------------
  |  Branch (120:16): [True: 2.25k, False: 18.4k]
  ------------------
  121|       |
  122|       |        // a '/*' style comment
  123|  2.25k|        get();  // consume the '*'
  124|  2.25k|        c = get();
  125|  5.44k|        do {
  126|   808k|            while (c != EndOfInput && c != '*')
  ------------------
  |  Branch (126:20): [True: 808k, False: 12]
  |  Branch (126:39): [True: 803k, False: 5.43k]
  ------------------
  127|   803k|                c = get();
  128|  5.44k|            if (c == '*') {
  ------------------
  |  Branch (128:17): [True: 5.43k, False: 12]
  ------------------
  129|  5.43k|                c = get();
  130|  5.43k|                if (c == '/')
  ------------------
  |  Branch (130:21): [True: 2.24k, False: 3.19k]
  ------------------
  131|  2.24k|                    break;  // end of comment
  132|       |                // not end of comment
  133|  5.43k|            } else // end of input
  134|     12|                break;
  135|  5.44k|        } while (true);
  ------------------
  |  Branch (135:18): [True: 3.19k, Folded]
  ------------------
  136|       |
  137|  2.25k|        return true;
  138|  18.4k|    } else {
  139|       |        // it's not a comment, put the '/' back
  140|  18.4k|        unget();
  141|       |
  142|  18.4k|        return false;
  143|  18.4k|    }
  144|  65.2k|}
_ZN7glslang13TInputScanner24consumeWhitespaceCommentERb:
  148|  4.80M|{
  149|  4.85M|    do {
  150|  4.85M|        consumeWhiteSpace(foundNonSpaceTab);
  151|       |
  152|       |        // if not starting a comment now, then done
  153|  4.85M|        int c = peek();
  154|  4.85M|        if (c != '/' || c == EndOfInput)
  ------------------
  |  Branch (154:13): [True: 4.78M, False: 65.2k]
  |  Branch (154:25): [True: 0, False: 65.2k]
  ------------------
  155|  4.78M|            return;
  156|       |
  157|       |        // skip potential comment
  158|  65.2k|        foundNonSpaceTab = true;
  159|  65.2k|        if (! consumeComment())
  ------------------
  |  Branch (159:13): [True: 18.4k, False: 46.8k]
  ------------------
  160|  18.4k|            return;
  161|       |
  162|  65.2k|    } while (true);
  ------------------
  |  Branch (162:14): [True: 46.8k, Folded]
  ------------------
  163|  4.80M|}
_ZN7glslang13TInputScanner11scanVersionERiR8EProfileRb:
  177|  4.26k|{
  178|       |    // This function doesn't have to get all the semantics correct,
  179|       |    // just find the #version if there is a correct one present.
  180|       |    // The preprocessor will have the responsibility of getting all the semantics right.
  181|       |
  182|  4.26k|    bool versionNotFirst = false;  // means not first WRT comments and white space, nothing more
  183|  4.26k|    notFirstToken = false;         // means not first WRT to real tokens
  184|  4.26k|    version = 0;                   // means not found
  185|  4.26k|    profile = ENoProfile;
  186|       |
  187|  4.26k|    bool foundNonSpaceTab = false;
  188|  4.26k|    bool lookingInMiddle = false;
  189|  4.26k|    int c;
  190|  4.80M|    do {
  191|  4.80M|        if (lookingInMiddle) {
  ------------------
  |  Branch (191:13): [True: 4.80M, False: 4.26k]
  ------------------
  192|  4.80M|            notFirstToken = true;
  193|       |            // make forward progress by finishing off the current line plus extra new lines
  194|  4.80M|            if (peek() != '\n' && peek() != '\r') {
  ------------------
  |  Branch (194:17): [True: 2.90M, False: 1.89M]
  |  Branch (194:35): [True: 2.77M, False: 130k]
  ------------------
  195|   162M|                do {
  196|   162M|                    c = get();
  197|   162M|                } while (c != EndOfInput && c != '\n' && c != '\r');
  ------------------
  |  Branch (197:26): [True: 162M, False: 1.06k]
  |  Branch (197:45): [True: 161M, False: 1.50M]
  |  Branch (197:58): [True: 160M, False: 1.26M]
  ------------------
  198|  2.77M|            }
  199|  17.8M|            while (peek() == '\n' || peek() == '\r')
  ------------------
  |  Branch (199:20): [True: 6.27M, False: 11.5M]
  |  Branch (199:38): [True: 6.76M, False: 4.80M]
  ------------------
  200|  13.0M|                get();
  201|  4.80M|            if (peek() == EndOfInput)
  ------------------
  |  Branch (201:17): [True: 1.41k, False: 4.80M]
  ------------------
  202|  1.41k|                return true;
  203|  4.80M|        }
  204|  4.80M|        lookingInMiddle = true;
  205|       |
  206|       |        // Nominal start, skipping the desktop allowed comments and white space, but tracking if
  207|       |        // something else was found for ES:
  208|  4.80M|        consumeWhitespaceComment(foundNonSpaceTab);
  209|  4.80M|        if (foundNonSpaceTab)
  ------------------
  |  Branch (209:13): [True: 1.93M, False: 2.86M]
  ------------------
  210|  1.93M|            versionNotFirst = true;
  211|       |
  212|       |        // "#"
  213|  4.80M|        if (get() != '#') {
  ------------------
  |  Branch (213:13): [True: 4.71M, False: 85.6k]
  ------------------
  214|  4.71M|            versionNotFirst = true;
  215|  4.71M|            continue;
  216|  4.71M|        }
  217|       |
  218|       |        // whitespace
  219|  99.7k|        do {
  220|  99.7k|            c = get();
  221|  99.7k|        } while (c == ' ' || c == '\t');
  ------------------
  |  Branch (221:18): [True: 14.0k, False: 85.6k]
  |  Branch (221:30): [True: 6, False: 85.6k]
  ------------------
  222|       |
  223|       |        // "version"
  224|  85.6k|        if (    c != 'v' ||
  ------------------
  |  Branch (224:17): [True: 82.5k, False: 3.07k]
  ------------------
  225|  3.07k|            get() != 'e' ||
  ------------------
  |  Branch (225:13): [True: 45, False: 3.02k]
  ------------------
  226|  3.02k|            get() != 'r' ||
  ------------------
  |  Branch (226:13): [True: 33, False: 2.99k]
  ------------------
  227|  2.99k|            get() != 's' ||
  ------------------
  |  Branch (227:13): [True: 27, False: 2.96k]
  ------------------
  228|  2.96k|            get() != 'i' ||
  ------------------
  |  Branch (228:13): [True: 24, False: 2.94k]
  ------------------
  229|  2.94k|            get() != 'o' ||
  ------------------
  |  Branch (229:13): [True: 9, False: 2.93k]
  ------------------
  230|  82.7k|            get() != 'n') {
  ------------------
  |  Branch (230:13): [True: 21, False: 2.91k]
  ------------------
  231|  82.7k|            versionNotFirst = true;
  232|  82.7k|            continue;
  233|  82.7k|        }
  234|       |
  235|       |        // whitespace
  236|  5.81k|        do {
  237|  5.81k|            c = get();
  238|  5.81k|        } while (c == ' ' || c == '\t');
  ------------------
  |  Branch (238:18): [True: 2.90k, False: 2.91k]
  |  Branch (238:30): [True: 0, False: 2.91k]
  ------------------
  239|       |
  240|       |        // version number
  241|       |        //
  242|       |        // A number too big for an int is not a version, but overflowing the int
  243|       |        // while reading it is undefined, so accumulate wider and saturate.
  244|       |        // DeduceVersionProfile() rejects the saturated value like any other
  245|       |        // unsupported version.
  246|  2.91k|        long long versionNumber = 0;
  247|  11.4k|        while (c >= '0' && c <= '9') {
  ------------------
  |  Branch (247:16): [True: 8.61k, False: 2.85k]
  |  Branch (247:28): [True: 8.55k, False: 57]
  ------------------
  248|  8.55k|            if (versionNumber <= INT_MAX)
  ------------------
  |  Branch (248:17): [True: 8.55k, False: 0]
  ------------------
  249|  8.55k|                versionNumber = 10 * versionNumber + (c - '0');
  250|  8.55k|            c = get();
  251|  8.55k|        }
  252|  2.91k|        version = versionNumber > INT_MAX ? INT_MAX : (int)versionNumber;
  ------------------
  |  Branch (252:19): [True: 0, False: 2.91k]
  ------------------
  253|  2.91k|        if (version == 0) {
  ------------------
  |  Branch (253:13): [True: 27, False: 2.88k]
  ------------------
  254|     27|            versionNotFirst = true;
  255|     27|            continue;
  256|     27|        }
  257|       |
  258|       |        // whitespace
  259|  3.96k|        while (c == ' ' || c == '\t')
  ------------------
  |  Branch (259:16): [True: 1.08k, False: 2.88k]
  |  Branch (259:28): [True: 0, False: 2.88k]
  ------------------
  260|  1.08k|            c = get();
  261|       |
  262|       |        // profile
  263|  2.88k|        const int maxProfileLength = 13;  // not including any 0
  264|  2.88k|        char profileString[maxProfileLength];
  265|  2.88k|        int profileLength;
  266|  8.67k|        for (profileLength = 0; profileLength < maxProfileLength; ++profileLength) {
  ------------------
  |  Branch (266:33): [True: 8.46k, False: 213]
  ------------------
  267|  8.46k|            if (c == EndOfInput || c == ' ' || c == '\t' || c == '\n' || c == '\r')
  ------------------
  |  Branch (267:17): [True: 0, False: 8.46k]
  |  Branch (267:36): [True: 78, False: 8.38k]
  |  Branch (267:48): [True: 0, False: 8.38k]
  |  Branch (267:61): [True: 732, False: 7.65k]
  |  Branch (267:74): [True: 1.86k, False: 5.78k]
  ------------------
  268|  2.67k|                break;
  269|  5.78k|            profileString[profileLength] = (char)c;
  270|  5.78k|            c = get();
  271|  5.78k|        }
  272|  2.88k|        if (c != EndOfInput && c != ' ' && c != '\t' && c != '\n' && c != '\r') {
  ------------------
  |  Branch (272:13): [True: 2.88k, False: 0]
  |  Branch (272:32): [True: 2.80k, False: 78]
  |  Branch (272:44): [True: 2.80k, False: 0]
  |  Branch (272:57): [True: 1.90k, False: 900]
  |  Branch (272:70): [True: 45, False: 1.86k]
  ------------------
  273|     45|            versionNotFirst = true;
  274|     45|            continue;
  275|     45|        }
  276|       |
  277|  2.84k|        if (profileLength == 2 && strncmp(profileString, "es", profileLength) == 0)
  ------------------
  |  Branch (277:13): [True: 408, False: 2.43k]
  |  Branch (277:35): [True: 384, False: 24]
  ------------------
  278|    384|            profile = EEsProfile;
  279|  2.45k|        else if (profileLength == 4 && strncmp(profileString, "core", profileLength) == 0)
  ------------------
  |  Branch (279:18): [True: 414, False: 2.04k]
  |  Branch (279:40): [True: 399, False: 15]
  ------------------
  280|    399|            profile = ECoreProfile;
  281|  2.05k|        else if (profileLength == 13 && strncmp(profileString, "compatibility", profileLength) == 0)
  ------------------
  |  Branch (281:18): [True: 168, False: 1.89k]
  |  Branch (281:41): [True: 165, False: 3]
  ------------------
  282|    165|            profile = ECompatibilityProfile;
  283|       |
  284|  2.84k|        return versionNotFirst;
  285|  4.80M|    } while (true);
  ------------------
  |  Branch (285:14): [True: 4.80M, Folded]
  ------------------
  286|  4.26k|}
_Z5yylexP7YYSTYPERN7glslang13TParseContextE:
  303|   105M|{
  304|   105M|    glslang::TParserToken token(*glslangTokenDesc);
  305|       |
  306|   105M|    return parseContext.getScanContext()->tokenize(parseContext.getPpContext(), token);
  307|   105M|}
_ZN7glslang12TScanContext8tokenizeEPNS_10TPpContextERNS_12TParserTokenE:
  868|   105M|{
  869|   107M|    do {
  870|   107M|        parserToken = &token;
  871|   107M|        TPpToken ppToken;
  872|   107M|        int token = pp->tokenize(ppToken);
  873|   107M|        if (token == EndOfInput)
  ------------------
  |  Branch (873:13): [True: 14.7k, False: 107M]
  ------------------
  874|  14.7k|            return 0;
  875|       |
  876|   107M|        tokenText = ppToken.name;
  877|   107M|        loc = ppToken.loc;
  878|   107M|        parserToken->sType.lex.loc = loc;
  879|   107M|        switch (token) {
  880|  10.7M|        case ';':  afterType = false; afterBuffer = false; inDeclaratorList = false; afterDeclarator = false; angleBracketDepth = 0; squareBracketDepth = 0; parenDepth = 0; return SEMICOLON;
  ------------------
  |  Branch (880:9): [True: 10.7M, False: 96.5M]
  ------------------
  881|  14.8M|        case ',':
  ------------------
  |  Branch (881:9): [True: 14.8M, False: 92.4M]
  ------------------
  882|       |            // If we just processed a declarator (identifier after a type), this comma
  883|       |            // indicates that we're in a declarator list. Note that 'afterDeclarator' is
  884|       |            // only set when we are not inside a template parameter list, array expression,
  885|       |            // or function parameter list.
  886|  14.8M|            if (afterDeclarator) {
  ------------------
  |  Branch (886:17): [True: 314, False: 14.8M]
  ------------------
  887|    314|                inDeclaratorList = true;
  888|    314|            }
  889|  14.8M|            afterType = false;
  890|  14.8M|            afterDeclarator = false;
  891|  14.8M|            return COMMA;
  892|    292|        case ':':                       return COLON;
  ------------------
  |  Branch (892:9): [True: 292, False: 107M]
  ------------------
  893|   440k|        case '=':  afterType = false; inDeclaratorList = false; afterDeclarator = false; return EQUAL;
  ------------------
  |  Branch (893:9): [True: 440k, False: 106M]
  ------------------
  894|  10.1M|        case '(':  afterType = false; inDeclaratorList = false; afterDeclarator = false; parenDepth++; return LEFT_PAREN;
  ------------------
  |  Branch (894:9): [True: 10.1M, False: 97.1M]
  ------------------
  895|  10.1M|        case ')':  afterType = false; inDeclaratorList = false; afterDeclarator = false; if (parenDepth > 0) parenDepth--; return RIGHT_PAREN;
  ------------------
  |  Branch (895:9): [True: 10.1M, False: 97.1M]
  |  Branch (895:94): [True: 10.1M, False: 58]
  ------------------
  896|  63.6k|        case '.':  field = true;        return DOT;
  ------------------
  |  Branch (896:9): [True: 63.6k, False: 107M]
  ------------------
  897|     14|        case '!':                       return BANG;
  ------------------
  |  Branch (897:9): [True: 14, False: 107M]
  ------------------
  898|  26.5k|        case '-':                       return DASH;
  ------------------
  |  Branch (898:9): [True: 26.5k, False: 107M]
  ------------------
  899|    153|        case '~':                       return TILDE;
  ------------------
  |  Branch (899:9): [True: 153, False: 107M]
  ------------------
  900|  3.64k|        case '+':                       return PLUS;
  ------------------
  |  Branch (900:9): [True: 3.64k, False: 107M]
  ------------------
  901|  2.75k|        case '*':                       return STAR;
  ------------------
  |  Branch (901:9): [True: 2.75k, False: 107M]
  ------------------
  902|    479|        case '/':                       return SLASH;
  ------------------
  |  Branch (902:9): [True: 479, False: 107M]
  ------------------
  903|    982|        case '%':                       return PERCENT;
  ------------------
  |  Branch (903:9): [True: 982, False: 107M]
  ------------------
  904|  7.53k|        case '<':                       angleBracketDepth++; return LEFT_ANGLE;
  ------------------
  |  Branch (904:9): [True: 7.53k, False: 107M]
  ------------------
  905|  8.35k|        case '>':                       if (angleBracketDepth > 0) angleBracketDepth--; return RIGHT_ANGLE;
  ------------------
  |  Branch (905:9): [True: 8.35k, False: 107M]
  |  Branch (905:45): [True: 7.16k, False: 1.18k]
  ------------------
  906|    190|        case '|':                       return VERTICAL_BAR;
  ------------------
  |  Branch (906:9): [True: 190, False: 107M]
  ------------------
  907|    144|        case '^':                       return CARET;
  ------------------
  |  Branch (907:9): [True: 144, False: 107M]
  ------------------
  908|    235|        case '&':                       return AMPERSAND;
  ------------------
  |  Branch (908:9): [True: 235, False: 107M]
  ------------------
  909|     91|        case '?':                       return QUESTION;
  ------------------
  |  Branch (909:9): [True: 91, False: 107M]
  ------------------
  910|   476k|        case '[':                       squareBracketDepth++; return LEFT_BRACKET;
  ------------------
  |  Branch (910:9): [True: 476k, False: 106M]
  ------------------
  911|   476k|        case ']':                       if (squareBracketDepth > 0) squareBracketDepth--; return RIGHT_BRACKET;
  ------------------
  |  Branch (911:9): [True: 476k, False: 106M]
  |  Branch (911:45): [True: 476k, False: 6]
  ------------------
  912|  16.6k|        case '{':  afterStruct = false; afterBuffer = false; inDeclaratorList = false; afterDeclarator = false; angleBracketDepth = 0; squareBracketDepth = 0; parenDepth = 0; return LEFT_BRACE;
  ------------------
  |  Branch (912:9): [True: 16.6k, False: 107M]
  ------------------
  913|  15.9k|        case '}':  inDeclaratorList = false; afterDeclarator = false; angleBracketDepth = 0; squareBracketDepth = 0; parenDepth = 0; return RIGHT_BRACE;
  ------------------
  |  Branch (913:9): [True: 15.9k, False: 107M]
  ------------------
  914|   188k|        case '\\':
  ------------------
  |  Branch (914:9): [True: 188k, False: 107M]
  ------------------
  915|   188k|            parseContext.error(loc, "illegal use of escape character", "\\", "");
  916|   188k|            break;
  917|       |
  918|  7.04k|        case PPAtomAddAssign:          return ADD_ASSIGN;
  ------------------
  |  Branch (918:9): [True: 7.04k, False: 107M]
  ------------------
  919|    162|        case PPAtomSubAssign:          return SUB_ASSIGN;
  ------------------
  |  Branch (919:9): [True: 162, False: 107M]
  ------------------
  920|    305|        case PPAtomMulAssign:          return MUL_ASSIGN;
  ------------------
  |  Branch (920:9): [True: 305, False: 107M]
  ------------------
  921|    147|        case PPAtomDivAssign:          return DIV_ASSIGN;
  ------------------
  |  Branch (921:9): [True: 147, False: 107M]
  ------------------
  922|    110|        case PPAtomModAssign:          return MOD_ASSIGN;
  ------------------
  |  Branch (922:9): [True: 110, False: 107M]
  ------------------
  923|       |
  924|     84|        case PpAtomRight:              return RIGHT_OP;
  ------------------
  |  Branch (924:9): [True: 84, False: 107M]
  ------------------
  925|    374|        case PpAtomLeft:               return LEFT_OP;
  ------------------
  |  Branch (925:9): [True: 374, False: 107M]
  ------------------
  926|       |
  927|    110|        case PpAtomRightAssign:        return RIGHT_ASSIGN;
  ------------------
  |  Branch (927:9): [True: 110, False: 107M]
  ------------------
  928|    110|        case PpAtomLeftAssign:         return LEFT_ASSIGN;
  ------------------
  |  Branch (928:9): [True: 110, False: 107M]
  ------------------
  929|    102|        case PpAtomAndAssign:          return AND_ASSIGN;
  ------------------
  |  Branch (929:9): [True: 102, False: 107M]
  ------------------
  930|    169|        case PpAtomOrAssign:           return OR_ASSIGN;
  ------------------
  |  Branch (930:9): [True: 169, False: 107M]
  ------------------
  931|    100|        case PpAtomXorAssign:          return XOR_ASSIGN;
  ------------------
  |  Branch (931:9): [True: 100, False: 107M]
  ------------------
  932|       |
  933|     82|        case PpAtomAnd:                return AND_OP;
  ------------------
  |  Branch (933:9): [True: 82, False: 107M]
  ------------------
  934|     31|        case PpAtomOr:                 return OR_OP;
  ------------------
  |  Branch (934:9): [True: 31, False: 107M]
  ------------------
  935|      7|        case PpAtomXor:                return XOR_OP;
  ------------------
  |  Branch (935:9): [True: 7, False: 107M]
  ------------------
  936|       |
  937|  1.45k|        case PpAtomEQ:                 return EQ_OP;
  ------------------
  |  Branch (937:9): [True: 1.45k, False: 107M]
  ------------------
  938|    143|        case PpAtomGE:                 return GE_OP;
  ------------------
  |  Branch (938:9): [True: 143, False: 107M]
  ------------------
  939|    921|        case PpAtomNE:                 return NE_OP;
  ------------------
  |  Branch (939:9): [True: 921, False: 107M]
  ------------------
  940|    163|        case PpAtomLE:                 return LE_OP;
  ------------------
  |  Branch (940:9): [True: 163, False: 107M]
  ------------------
  941|       |
  942|  17.7k|        case PpAtomDecrement:          return DEC_OP;
  ------------------
  |  Branch (942:9): [True: 17.7k, False: 107M]
  ------------------
  943|  19.7k|        case PpAtomIncrement:          return INC_OP;
  ------------------
  |  Branch (943:9): [True: 19.7k, False: 107M]
  ------------------
  944|       |
  945|      0|        case PpAtomColonColon:
  ------------------
  |  Branch (945:9): [True: 0, False: 107M]
  ------------------
  946|      0|            parseContext.error(loc, "not supported", "::", "");
  947|      0|            break;
  948|       |
  949|      2|        case PpAtomConstString:        parserToken->sType.lex.string = NewPoolTString(tokenText);     return STRING_LITERAL;
  ------------------
  |  Branch (949:9): [True: 2, False: 107M]
  ------------------
  950|   452k|        case PpAtomConstInt:           parserToken->sType.lex.i    = ppToken.ival;       return INTCONSTANT;
  ------------------
  |  Branch (950:9): [True: 452k, False: 106M]
  ------------------
  951|  24.2k|        case PpAtomConstUint:          parserToken->sType.lex.i    = ppToken.ival;       return UINTCONSTANT;
  ------------------
  |  Branch (951:9): [True: 24.2k, False: 107M]
  ------------------
  952|  9.77k|        case PpAtomConstFloat:         parserToken->sType.lex.d    = ppToken.dval;       return FLOATCONSTANT;
  ------------------
  |  Branch (952:9): [True: 9.77k, False: 107M]
  ------------------
  953|    369|        case PpAtomConstInt16:         parserToken->sType.lex.i    = ppToken.ival;       return INT16CONSTANT;
  ------------------
  |  Branch (953:9): [True: 369, False: 107M]
  ------------------
  954|    368|        case PpAtomConstUint16:        parserToken->sType.lex.i    = ppToken.ival;       return UINT16CONSTANT;
  ------------------
  |  Branch (954:9): [True: 368, False: 107M]
  ------------------
  955|    120|        case PpAtomConstInt64:         parserToken->sType.lex.i64  = ppToken.i64val;     return INT64CONSTANT;
  ------------------
  |  Branch (955:9): [True: 120, False: 107M]
  ------------------
  956|    121|        case PpAtomConstUint64:        parserToken->sType.lex.i64  = ppToken.i64val;     return UINT64CONSTANT;
  ------------------
  |  Branch (956:9): [True: 121, False: 107M]
  ------------------
  957|     57|        case PpAtomConstDouble:        parserToken->sType.lex.d    = ppToken.dval;       return DOUBLECONSTANT;
  ------------------
  |  Branch (957:9): [True: 57, False: 107M]
  ------------------
  958|    197|        case PpAtomConstFloat16:       parserToken->sType.lex.d    = ppToken.dval;       return FLOAT16CONSTANT;
  ------------------
  |  Branch (958:9): [True: 197, False: 107M]
  ------------------
  959|      0|        case PpAtomConstFloatE2M1:     parserToken->sType.lex.d    = ppToken.dval;       return FLOATE2M1CONSTANT;
  ------------------
  |  Branch (959:9): [True: 0, False: 107M]
  ------------------
  960|      0|        case PpAtomConstFloatE3M2:     parserToken->sType.lex.d    = ppToken.dval;       return FLOATE3M2CONSTANT;
  ------------------
  |  Branch (960:9): [True: 0, False: 107M]
  ------------------
  961|      0|        case PpAtomConstFloatE2M3:     parserToken->sType.lex.d    = ppToken.dval;       return FLOATE2M3CONSTANT;
  ------------------
  |  Branch (961:9): [True: 0, False: 107M]
  ------------------
  962|      0|        case PpAtomConstFloatUE8M0:    parserToken->sType.lex.d    = ppToken.dval;       return FLOATUE8M0CONSTANT;
  ------------------
  |  Branch (962:9): [True: 0, False: 107M]
  ------------------
  963|      0|        case PpAtomConstFloatMXINT8:   parserToken->sType.lex.d    = ppToken.dval;       return FLOATMXINT8CONSTANT;
  ------------------
  |  Branch (963:9): [True: 0, False: 107M]
  ------------------
  964|  57.7M|        case PpAtomIdentifier:
  ------------------
  |  Branch (964:9): [True: 57.7M, False: 49.5M]
  ------------------
  965|  57.7M|        {
  966|  57.7M|            int token = tokenizeIdentifier();
  967|  57.7M|            field = false;
  968|  57.7M|            return token;
  969|      0|        }
  970|       |
  971|      0|        case EndOfInput:               return 0;
  ------------------
  |  Branch (971:9): [True: 0, False: 107M]
  ------------------
  972|       |
  973|  1.43M|        default:
  ------------------
  |  Branch (973:9): [True: 1.43M, False: 105M]
  ------------------
  974|  1.43M|            char buf[2];
  975|  1.43M|            buf[0] = (char)token;
  976|  1.43M|            buf[1] = 0;
  977|  1.43M|            parseContext.error(loc, "unexpected token", buf, "");
  978|  1.43M|            break;
  979|   107M|        }
  980|   107M|    } while (true);
  ------------------
  |  Branch (980:14): [True: 1.62M, Folded]
  ------------------
  981|   105M|}
_ZN7glslang12TScanContext18tokenizeIdentifierEv:
  984|  57.7M|{
  985|  57.7M|    if (ReservedSet.find(tokenText) != ReservedSet.end())
  ------------------
  |  Branch (985:9): [True: 7, False: 57.7M]
  ------------------
  986|      7|        return reservedWord();
  987|       |
  988|  57.7M|    auto it = KeywordMap.find(tokenText);
  989|  57.7M|    if (it == KeywordMap.end()) {
  ------------------
  |  Branch (989:9): [True: 14.8M, False: 42.9M]
  ------------------
  990|       |        // Should have an identifier of some sort
  991|  14.8M|        return identifierOrType();
  992|  14.8M|    }
  993|  42.9M|    keyword = it->second;
  994|       |
  995|  42.9M|    switch (keyword) {
  996|   285k|    case CONST:
  ------------------
  |  Branch (996:5): [True: 285k, False: 42.6M]
  ------------------
  997|   298k|    case UNIFORM:
  ------------------
  |  Branch (997:5): [True: 13.1k, False: 42.9M]
  ------------------
  998|   298k|    case TILEIMAGEEXT:
  ------------------
  |  Branch (998:5): [True: 0, False: 42.9M]
  ------------------
  999|   538k|    case IN:
  ------------------
  |  Branch (999:5): [True: 240k, False: 42.6M]
  ------------------
 1000|  1.10M|    case OUT:
  ------------------
  |  Branch (1000:5): [True: 562k, False: 42.3M]
  ------------------
 1001|  1.15M|    case INOUT:
  ------------------
  |  Branch (1001:5): [True: 56.2k, False: 42.8M]
  ------------------
 1002|  1.15M|    case BREAK:
  ------------------
  |  Branch (1002:5): [True: 193, False: 42.9M]
  ------------------
 1003|  1.15M|    case CONTINUE:
  ------------------
  |  Branch (1003:5): [True: 7, False: 42.9M]
  ------------------
 1004|  1.15M|    case DO:
  ------------------
  |  Branch (1004:5): [True: 12, False: 42.9M]
  ------------------
 1005|  1.15M|    case FOR:
  ------------------
  |  Branch (1005:5): [True: 26, False: 42.9M]
  ------------------
 1006|  1.15M|    case WHILE:
  ------------------
  |  Branch (1006:5): [True: 57, False: 42.9M]
  ------------------
 1007|  1.15M|    case IF:
  ------------------
  |  Branch (1007:5): [True: 628, False: 42.9M]
  ------------------
 1008|  1.15M|    case ELSE:
  ------------------
  |  Branch (1008:5): [True: 16, False: 42.9M]
  ------------------
 1009|  1.15M|    case DISCARD:
  ------------------
  |  Branch (1009:5): [True: 1, False: 42.9M]
  ------------------
 1010|  1.15M|    case RETURN:
  ------------------
  |  Branch (1010:5): [True: 757, False: 42.9M]
  ------------------
 1011|  1.15M|    case CASE:
  ------------------
  |  Branch (1011:5): [True: 148, False: 42.9M]
  ------------------
 1012|  1.15M|        return keyword;
 1013|       |
 1014|      0|    case TERMINATE_INVOCATION:
  ------------------
  |  Branch (1014:5): [True: 0, False: 42.9M]
  ------------------
 1015|      0|        if (!parseContext.extensionTurnedOn(E_GL_EXT_terminate_invocation))
  ------------------
  |  Branch (1015:13): [True: 0, False: 0]
  ------------------
 1016|      0|            return identifierOrType();
 1017|      0|        return keyword;
 1018|       |
 1019|      0|    case TERMINATE_RAY:
  ------------------
  |  Branch (1019:5): [True: 0, False: 42.9M]
  ------------------
 1020|      0|    case IGNORE_INTERSECTION:
  ------------------
  |  Branch (1020:5): [True: 0, False: 42.9M]
  ------------------
 1021|      0|        if (!parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing))
  ------------------
  |  Branch (1021:13): [True: 0, False: 0]
  ------------------
 1022|      0|            return identifierOrType();
 1023|      0|        return keyword;
 1024|       |
 1025|    441|    case BUFFER:
  ------------------
  |  Branch (1025:5): [True: 441, False: 42.9M]
  ------------------
 1026|    441|        afterBuffer = true;
 1027|    441|        if ((parseContext.isEsProfile() && parseContext.version < 310) ||
  ------------------
  |  Branch (1027:14): [True: 164, False: 277]
  |  Branch (1027:44): [True: 0, False: 164]
  ------------------
 1028|    441|            (!parseContext.isEsProfile() && (parseContext.version < 430 &&
  ------------------
  |  Branch (1028:14): [True: 277, False: 164]
  |  Branch (1028:46): [True: 45, False: 232]
  ------------------
 1029|     45|            !parseContext.extensionTurnedOn(E_GL_ARB_shader_storage_buffer_object))))
  ------------------
  |  Branch (1029:13): [True: 27, False: 18]
  ------------------
 1030|     27|            return identifierOrType();
 1031|    414|        return keyword;
 1032|       |
 1033|  1.33k|    case STRUCT:
  ------------------
  |  Branch (1033:5): [True: 1.33k, False: 42.9M]
  ------------------
 1034|  1.33k|        afterStruct = true;
 1035|  1.33k|        return keyword;
 1036|       |
 1037|     99|    case SWITCH:
  ------------------
  |  Branch (1037:5): [True: 99, False: 42.9M]
  ------------------
 1038|    145|    case DEFAULT:
  ------------------
  |  Branch (1038:5): [True: 46, False: 42.9M]
  ------------------
 1039|    145|        if ((parseContext.isEsProfile() && parseContext.version < 300) ||
  ------------------
  |  Branch (1039:14): [True: 2, False: 143]
  |  Branch (1039:44): [True: 0, False: 2]
  ------------------
 1040|    145|            (!parseContext.isEsProfile() && parseContext.version < 130))
  ------------------
  |  Branch (1040:14): [True: 143, False: 2]
  |  Branch (1040:45): [True: 0, False: 143]
  ------------------
 1041|      0|            reservedWord();
 1042|    145|        return keyword;
 1043|       |
 1044|   448k|    case VOID:
  ------------------
  |  Branch (1044:5): [True: 448k, False: 42.4M]
  ------------------
 1045|   825k|    case BOOL:
  ------------------
  |  Branch (1045:5): [True: 377k, False: 42.5M]
  ------------------
 1046|  2.58M|    case FLOAT:
  ------------------
  |  Branch (1046:5): [True: 1.75M, False: 41.1M]
  ------------------
 1047|  7.61M|    case INT:
  ------------------
  |  Branch (1047:5): [True: 5.02M, False: 37.9M]
  ------------------
 1048|  7.82M|    case BVEC2:
  ------------------
  |  Branch (1048:5): [True: 217k, False: 42.7M]
  ------------------
 1049|  8.04M|    case BVEC3:
  ------------------
  |  Branch (1049:5): [True: 216k, False: 42.7M]
  ------------------
 1050|  8.26M|    case BVEC4:
  ------------------
  |  Branch (1050:5): [True: 216k, False: 42.7M]
  ------------------
 1051|  9.45M|    case VEC2:
  ------------------
  |  Branch (1051:5): [True: 1.19M, False: 41.7M]
  ------------------
 1052|  10.6M|    case VEC3:
  ------------------
  |  Branch (1052:5): [True: 1.15M, False: 41.7M]
  ------------------
 1053|  11.8M|    case VEC4:
  ------------------
  |  Branch (1053:5): [True: 1.21M, False: 41.7M]
  ------------------
 1054|  13.0M|    case IVEC2:
  ------------------
  |  Branch (1054:5): [True: 1.26M, False: 41.6M]
  ------------------
 1055|  14.2M|    case IVEC3:
  ------------------
  |  Branch (1055:5): [True: 1.19M, False: 41.7M]
  ------------------
 1056|  15.0M|    case IVEC4:
  ------------------
  |  Branch (1056:5): [True: 771k, False: 42.1M]
  ------------------
 1057|  15.0M|    case MAT2:
  ------------------
  |  Branch (1057:5): [True: 12.7k, False: 42.9M]
  ------------------
 1058|  15.0M|    case MAT3:
  ------------------
  |  Branch (1058:5): [True: 12.7k, False: 42.9M]
  ------------------
 1059|  15.1M|    case MAT4:
  ------------------
  |  Branch (1059:5): [True: 12.9k, False: 42.9M]
  ------------------
 1060|  15.2M|    case SAMPLER2D:
  ------------------
  |  Branch (1060:5): [True: 146k, False: 42.7M]
  ------------------
 1061|  15.2M|    case SAMPLERCUBE:
  ------------------
  |  Branch (1061:5): [True: 24.7k, False: 42.9M]
  ------------------
 1062|  15.2M|        afterType = true;
 1063|  15.2M|        return keyword;
 1064|       |
 1065|  1.80k|    case BOOLCONSTANT:
  ------------------
  |  Branch (1065:5): [True: 1.80k, False: 42.9M]
  ------------------
 1066|  1.80k|        if (strcmp("true", tokenText) == 0)
  ------------------
  |  Branch (1066:13): [True: 966, False: 836]
  ------------------
 1067|    966|            parserToken->sType.lex.b = true;
 1068|    836|        else
 1069|    836|            parserToken->sType.lex.b = false;
 1070|  1.80k|        return keyword;
 1071|       |
 1072|    214|    case SMOOTH:
  ------------------
  |  Branch (1072:5): [True: 214, False: 42.9M]
  ------------------
 1073|    214|        if ((parseContext.isEsProfile() && parseContext.version < 300) ||
  ------------------
  |  Branch (1073:14): [True: 141, False: 73]
  |  Branch (1073:44): [True: 0, False: 141]
  ------------------
 1074|    214|            (!parseContext.isEsProfile() && parseContext.version < 130))
  ------------------
  |  Branch (1074:14): [True: 73, False: 141]
  |  Branch (1074:45): [True: 0, False: 73]
  ------------------
 1075|      0|            return identifierOrType();
 1076|    214|        return keyword;
 1077|  36.1k|    case FLAT:
  ------------------
  |  Branch (1077:5): [True: 36.1k, False: 42.9M]
  ------------------
 1078|  36.1k|        if (parseContext.isEsProfile() && parseContext.version < 300)
  ------------------
  |  Branch (1078:13): [True: 4.56k, False: 31.6k]
  |  Branch (1078:43): [True: 0, False: 4.56k]
  ------------------
 1079|      0|            reservedWord();
 1080|  36.1k|        else if (!parseContext.isEsProfile() && parseContext.version < 130)
  ------------------
  |  Branch (1080:18): [True: 31.6k, False: 4.56k]
  |  Branch (1080:49): [True: 0, False: 31.6k]
  ------------------
 1081|      0|            return identifierOrType();
 1082|  36.1k|        return keyword;
 1083|    368|    case CENTROID:
  ------------------
  |  Branch (1083:5): [True: 368, False: 42.9M]
  ------------------
 1084|    368|        if (parseContext.version < 120)
  ------------------
  |  Branch (1084:13): [True: 0, False: 368]
  ------------------
 1085|      0|            return identifierOrType();
 1086|    368|        return keyword;
 1087|     32|    case INVARIANT:
  ------------------
  |  Branch (1087:5): [True: 32, False: 42.9M]
  ------------------
 1088|     32|        if (!parseContext.isEsProfile() && parseContext.version < 120)
  ------------------
  |  Branch (1088:13): [True: 5, False: 27]
  |  Branch (1088:44): [True: 0, False: 5]
  ------------------
 1089|      0|            return identifierOrType();
 1090|     32|        return keyword;
 1091|      0|    case PACKED:
  ------------------
  |  Branch (1091:5): [True: 0, False: 42.9M]
  ------------------
 1092|      0|        if ((parseContext.isEsProfile() && parseContext.version < 300) ||
  ------------------
  |  Branch (1092:14): [True: 0, False: 0]
  |  Branch (1092:44): [True: 0, False: 0]
  ------------------
 1093|      0|            (!parseContext.isEsProfile() && parseContext.version < 140))
  ------------------
  |  Branch (1093:14): [True: 0, False: 0]
  |  Branch (1093:45): [True: 0, False: 0]
  ------------------
 1094|      0|            return reservedWord();
 1095|      0|        return identifierOrType();
 1096|       |
 1097|      0|    case RESOURCE:
  ------------------
  |  Branch (1097:5): [True: 0, False: 42.9M]
  ------------------
 1098|      0|    {
 1099|      0|        bool reserved = (parseContext.isEsProfile() && parseContext.version >= 300) ||
  ------------------
  |  Branch (1099:26): [True: 0, False: 0]
  |  Branch (1099:56): [True: 0, False: 0]
  ------------------
 1100|      0|                        (!parseContext.isEsProfile() && parseContext.version >= 420);
  ------------------
  |  Branch (1100:26): [True: 0, False: 0]
  |  Branch (1100:57): [True: 0, False: 0]
  ------------------
 1101|      0|        return identifierOrReserved(reserved);
 1102|      0|    }
 1103|      0|    case SUPERP:
  ------------------
  |  Branch (1103:5): [True: 0, False: 42.9M]
  ------------------
 1104|      0|    {
 1105|      0|        bool reserved = parseContext.isEsProfile() || parseContext.version >= 130;
  ------------------
  |  Branch (1105:25): [True: 0, False: 0]
  |  Branch (1105:55): [True: 0, False: 0]
  ------------------
 1106|      0|        return identifierOrReserved(reserved);
 1107|      0|    }
 1108|       |
 1109|    137|    case NOPERSPECTIVE:
  ------------------
  |  Branch (1109:5): [True: 137, False: 42.9M]
  ------------------
 1110|    137|        if (parseContext.extensionTurnedOn(E_GL_NV_shader_noperspective_interpolation))
  ------------------
  |  Branch (1110:13): [True: 0, False: 137]
  ------------------
 1111|      0|            return keyword;
 1112|    137|        return es30ReservedFromGLSL(130);
 1113|       |
 1114|      0|    case NONUNIFORM:
  ------------------
  |  Branch (1114:5): [True: 0, False: 42.9M]
  ------------------
 1115|      0|        if (parseContext.extensionTurnedOn(E_GL_EXT_nonuniform_qualifier))
  ------------------
  |  Branch (1115:13): [True: 0, False: 0]
  ------------------
 1116|      0|            return keyword;
 1117|      0|        else
 1118|      0|            return identifierOrType();
 1119|      4|    case ATTRIBUTE:
  ------------------
  |  Branch (1119:5): [True: 4, False: 42.9M]
  ------------------
 1120|     57|    case VARYING:
  ------------------
  |  Branch (1120:5): [True: 53, False: 42.9M]
  ------------------
 1121|     57|        if (parseContext.isEsProfile() && parseContext.version >= 300)
  ------------------
  |  Branch (1121:13): [True: 10, False: 47]
  |  Branch (1121:43): [True: 10, False: 0]
  ------------------
 1122|     10|            reservedWord();
 1123|     57|        return keyword;
 1124|      0|    case PAYLOADNV:
  ------------------
  |  Branch (1124:5): [True: 0, False: 42.9M]
  ------------------
 1125|      0|    case PAYLOADINNV:
  ------------------
  |  Branch (1125:5): [True: 0, False: 42.9M]
  ------------------
 1126|      0|    case HITATTRNV:
  ------------------
  |  Branch (1126:5): [True: 0, False: 42.9M]
  ------------------
 1127|      0|    case CALLDATANV:
  ------------------
  |  Branch (1127:5): [True: 0, False: 42.9M]
  ------------------
 1128|      0|    case CALLDATAINNV:
  ------------------
  |  Branch (1128:5): [True: 0, False: 42.9M]
  ------------------
 1129|    270|    case ACCSTRUCTNV:
  ------------------
  |  Branch (1129:5): [True: 270, False: 42.9M]
  ------------------
 1130|    270|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1130:13): [True: 270, False: 0]
  ------------------
 1131|      0|            parseContext.extensionTurnedOn(E_GL_NV_ray_tracing))
  ------------------
  |  Branch (1131:13): [True: 0, False: 0]
  ------------------
 1132|    270|            return keyword;
 1133|      0|        return identifierOrType();
 1134|  1.75k|    case ACCSTRUCTEXT:
  ------------------
  |  Branch (1134:5): [True: 1.75k, False: 42.9M]
  ------------------
 1135|  1.75k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1135:13): [True: 1.73k, False: 21]
  ------------------
 1136|     21|            parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing) ||
  ------------------
  |  Branch (1136:13): [True: 0, False: 21]
  ------------------
 1137|     21|            parseContext.extensionTurnedOn(E_GL_EXT_ray_query) ||
  ------------------
  |  Branch (1137:13): [True: 21, False: 0]
  ------------------
 1138|      0|            parseContext.extensionTurnedOn(E_GL_NV_displacement_micromap))
  ------------------
  |  Branch (1138:13): [True: 0, False: 0]
  ------------------
 1139|  1.75k|            return keyword;
 1140|      0|        return identifierOrType();
 1141|      0|    case PAYLOADEXT:
  ------------------
  |  Branch (1141:5): [True: 0, False: 42.9M]
  ------------------
 1142|      0|    case PAYLOADINEXT:
  ------------------
  |  Branch (1142:5): [True: 0, False: 42.9M]
  ------------------
 1143|      0|    case HITATTREXT:
  ------------------
  |  Branch (1143:5): [True: 0, False: 42.9M]
  ------------------
 1144|      0|    case CALLDATAEXT:
  ------------------
  |  Branch (1144:5): [True: 0, False: 42.9M]
  ------------------
 1145|      0|    case CALLDATAINEXT:
  ------------------
  |  Branch (1145:5): [True: 0, False: 42.9M]
  ------------------
 1146|      0|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1146:13): [True: 0, False: 0]
  ------------------
 1147|      0|            parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing) ||
  ------------------
  |  Branch (1147:13): [True: 0, False: 0]
  ------------------
 1148|      0|            parseContext.extensionTurnedOn(E_GL_EXT_ray_query))
  ------------------
  |  Branch (1148:13): [True: 0, False: 0]
  ------------------
 1149|      0|            return keyword;
 1150|      0|        return identifierOrType();
 1151|  1.73k|    case RAYQUERYEXT:
  ------------------
  |  Branch (1151:5): [True: 1.73k, False: 42.9M]
  ------------------
 1152|  1.73k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1152:13): [True: 1.71k, False: 20]
  ------------------
 1153|     20|            (!parseContext.isEsProfile() && parseContext.version >= 460
  ------------------
  |  Branch (1153:14): [True: 20, False: 0]
  |  Branch (1153:45): [True: 19, False: 1]
  ------------------
 1154|     19|                 && parseContext.extensionTurnedOn(E_GL_EXT_ray_query)))
  ------------------
  |  Branch (1154:21): [True: 19, False: 0]
  ------------------
 1155|  1.72k|            return keyword;
 1156|      1|        return identifierOrType();
 1157|     76|    case ATOMIC_UINT:
  ------------------
  |  Branch (1157:5): [True: 76, False: 42.9M]
  ------------------
 1158|     76|        if ((parseContext.isEsProfile() && parseContext.version >= 310) ||
  ------------------
  |  Branch (1158:14): [True: 73, False: 3]
  |  Branch (1158:44): [True: 73, False: 0]
  ------------------
 1159|      3|            parseContext.extensionTurnedOn(E_GL_ARB_shader_atomic_counters))
  ------------------
  |  Branch (1159:13): [True: 0, False: 3]
  ------------------
 1160|     73|            return keyword;
 1161|      3|        return es30ReservedFromGLSL(420);
 1162|       |
 1163|  1.33M|    case COHERENT:
  ------------------
  |  Branch (1163:5): [True: 1.33M, False: 41.6M]
  ------------------
 1164|  1.33M|    case DEVICECOHERENT:
  ------------------
  |  Branch (1164:5): [True: 0, False: 42.9M]
  ------------------
 1165|  1.33M|    case QUEUEFAMILYCOHERENT:
  ------------------
  |  Branch (1165:5): [True: 0, False: 42.9M]
  ------------------
 1166|  1.33M|    case WORKGROUPCOHERENT:
  ------------------
  |  Branch (1166:5): [True: 0, False: 42.9M]
  ------------------
 1167|  1.33M|    case SUBGROUPCOHERENT:
  ------------------
  |  Branch (1167:5): [True: 0, False: 42.9M]
  ------------------
 1168|  1.33M|    case SHADERCALLCOHERENT:
  ------------------
  |  Branch (1168:5): [True: 0, False: 42.9M]
  ------------------
 1169|  1.33M|    case NONPRIVATE:
  ------------------
  |  Branch (1169:5): [True: 0, False: 42.9M]
  ------------------
 1170|  1.33M|    case RESTRICT:
  ------------------
  |  Branch (1170:5): [True: 100, False: 42.9M]
  ------------------
 1171|  1.49M|    case READONLY:
  ------------------
  |  Branch (1171:5): [True: 157k, False: 42.7M]
  ------------------
 1172|  1.62M|    case WRITEONLY:
  ------------------
  |  Branch (1172:5): [True: 136k, False: 42.8M]
  ------------------
 1173|  1.62M|        if (parseContext.isEsProfile() && parseContext.version >= 310)
  ------------------
  |  Branch (1173:13): [True: 232k, False: 1.39M]
  |  Branch (1173:43): [True: 232k, False: 0]
  ------------------
 1174|   232k|            return keyword;
 1175|  1.39M|        return es30ReservedFromGLSL(parseContext.extensionTurnedOn(E_GL_ARB_shader_image_load_store) ? 130 : 420);
  ------------------
  |  Branch (1175:37): [True: 0, False: 1.39M]
  ------------------
 1176|  1.35M|    case VOLATILE:
  ------------------
  |  Branch (1176:5): [True: 1.35M, False: 41.5M]
  ------------------
 1177|  1.35M|        if (parseContext.isEsProfile() && parseContext.version >= 310)
  ------------------
  |  Branch (1177:13): [True: 191k, False: 1.16M]
  |  Branch (1177:43): [True: 191k, False: 0]
  ------------------
 1178|   191k|            return keyword;
 1179|  1.16M|        if (! parseContext.symbolTable.atBuiltInLevel() && (parseContext.isEsProfile() ||
  ------------------
  |  Branch (1179:13): [True: 649, False: 1.16M]
  |  Branch (1179:61): [True: 0, False: 649]
  ------------------
 1180|    649|            (parseContext.version < 420 && ! parseContext.extensionTurnedOn(E_GL_ARB_shader_image_load_store))))
  ------------------
  |  Branch (1180:14): [True: 0, False: 649]
  |  Branch (1180:44): [True: 0, False: 0]
  ------------------
 1181|      0|            reservedWord();
 1182|  1.16M|        return keyword;
 1183|  1.28M|    case NONTEMPORAL:
  ------------------
  |  Branch (1183:5): [True: 1.28M, False: 41.6M]
  ------------------
 1184|  1.28M|        if (parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  Branch (1184:13): [True: 1.28M, False: 0]
  ------------------
 1185|  1.28M|            return keyword;
 1186|      0|        if (parseContext.extensionTurnedOn(E_GL_EXT_nontemporal_keyword)) {
  ------------------
  |  Branch (1186:13): [True: 0, False: 0]
  ------------------
 1187|      0|            if (!parseContext.intermediate.usingVulkanMemoryModel())
  ------------------
  |  Branch (1187:17): [True: 0, False: 0]
  ------------------
 1188|      0|                parseContext.warn(loc, "Nontemporal without the Vulkan Memory Model is ignored", tokenText, "");
 1189|      0|            return keyword;
 1190|      0|        }
 1191|      0|        return identifierOrType();
 1192|  3.93k|    case PATCH:
  ------------------
  |  Branch (1192:5): [True: 3.93k, False: 42.9M]
  ------------------
 1193|  3.93k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1193:13): [True: 3.91k, False: 15]
  ------------------
 1194|     15|            (parseContext.isEsProfile() &&
  ------------------
  |  Branch (1194:14): [True: 4, False: 11]
  ------------------
 1195|      4|             (parseContext.version >= 320 ||
  ------------------
  |  Branch (1195:15): [True: 0, False: 4]
  ------------------
 1196|      4|              parseContext.extensionsTurnedOn(Num_AEP_tessellation_shader, AEP_tessellation_shader))) ||
  ------------------
  |  Branch (1196:15): [True: 0, False: 4]
  ------------------
 1197|     15|            (!parseContext.isEsProfile() && parseContext.extensionTurnedOn(E_GL_ARB_tessellation_shader)))
  ------------------
  |  Branch (1197:14): [True: 11, False: 4]
  |  Branch (1197:45): [True: 0, False: 11]
  ------------------
 1198|  3.91k|            return keyword;
 1199|       |
 1200|     15|        return es30ReservedFromGLSL(400);
 1201|       |
 1202|    256|    case SAMPLE:
  ------------------
  |  Branch (1202:5): [True: 256, False: 42.9M]
  ------------------
 1203|    256|    {
 1204|    256|        const int numLayoutExts = 3;
 1205|    256|        const char* layoutExts[numLayoutExts] = {E_GL_OES_shader_multisample_interpolation, E_GL_ARB_gpu_shader5,
 1206|    256|                                                 E_GL_NV_gpu_shader5};
 1207|    256|        if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1207:14): [True: 205, False: 51]
  |  Branch (1207:44): [True: 21, False: 184]
  ------------------
 1208|    235|            parseContext.extensionsTurnedOn(numLayoutExts, layoutExts))
  ------------------
  |  Branch (1208:13): [True: 161, False: 74]
  ------------------
 1209|    182|            return keyword;
 1210|     74|        return es30ReservedFromGLSL(400);
 1211|    256|    }
 1212|     15|    case SUBROUTINE:
  ------------------
  |  Branch (1212:5): [True: 15, False: 42.9M]
  ------------------
 1213|     15|        return es30ReservedFromGLSL(400);
 1214|       |
 1215|     85|    case SHARED:
  ------------------
  |  Branch (1215:5): [True: 85, False: 42.9M]
  ------------------
 1216|     85|        if ((parseContext.isEsProfile() && parseContext.version < 300) ||
  ------------------
  |  Branch (1216:14): [True: 82, False: 3]
  |  Branch (1216:44): [True: 0, False: 82]
  ------------------
 1217|     85|            (!parseContext.isEsProfile() && parseContext.version < 140))
  ------------------
  |  Branch (1217:14): [True: 3, False: 82]
  |  Branch (1217:45): [True: 0, False: 3]
  ------------------
 1218|      0|            return identifierOrType();
 1219|     85|        return keyword;
 1220|  8.14k|    case LAYOUT:
  ------------------
  |  Branch (1220:5): [True: 8.14k, False: 42.9M]
  ------------------
 1221|  8.14k|    {
 1222|  8.14k|        const int numLayoutExts = 2;
 1223|  8.14k|        const char* layoutExts[numLayoutExts] = { E_GL_ARB_shading_language_420pack,
 1224|  8.14k|                                                  E_GL_ARB_explicit_attrib_location };
 1225|  8.14k|        if ((parseContext.isEsProfile() && parseContext.version < 300) ||
  ------------------
  |  Branch (1225:14): [True: 3.30k, False: 4.83k]
  |  Branch (1225:44): [True: 0, False: 3.30k]
  ------------------
 1226|  8.14k|            (!parseContext.isEsProfile() && parseContext.version < 140 &&
  ------------------
  |  Branch (1226:14): [True: 4.83k, False: 3.30k]
  |  Branch (1226:45): [True: 0, False: 4.83k]
  ------------------
 1227|      0|            ! parseContext.extensionsTurnedOn(numLayoutExts, layoutExts)))
  ------------------
  |  Branch (1227:13): [True: 0, False: 0]
  ------------------
 1228|      0|            return identifierOrType();
 1229|  8.14k|        return keyword;
 1230|  8.14k|    }
 1231|       |
 1232|  1.94M|    case HIGH_PRECISION:
  ------------------
  |  Branch (1232:5): [True: 1.94M, False: 40.9M]
  ------------------
 1233|  1.97M|    case MEDIUM_PRECISION:
  ------------------
  |  Branch (1233:5): [True: 33.5k, False: 42.9M]
  ------------------
 1234|  1.99M|    case LOW_PRECISION:
  ------------------
  |  Branch (1234:5): [True: 19.4k, False: 42.9M]
  ------------------
 1235|  1.99M|    case PRECISION:
  ------------------
  |  Branch (1235:5): [True: 982, False: 42.9M]
  ------------------
 1236|  1.99M|        return precisionKeyword();
 1237|       |
 1238|      0|    case MAT2X2:
  ------------------
  |  Branch (1238:5): [True: 0, False: 42.9M]
  ------------------
 1239|  9.49k|    case MAT2X3:
  ------------------
  |  Branch (1239:5): [True: 9.49k, False: 42.9M]
  ------------------
 1240|  18.9k|    case MAT2X4:
  ------------------
  |  Branch (1240:5): [True: 9.47k, False: 42.9M]
  ------------------
 1241|  28.4k|    case MAT3X2:
  ------------------
  |  Branch (1241:5): [True: 9.49k, False: 42.9M]
  ------------------
 1242|  28.4k|    case MAT3X3:
  ------------------
  |  Branch (1242:5): [True: 0, False: 42.9M]
  ------------------
 1243|  38.1k|    case MAT3X4:
  ------------------
  |  Branch (1243:5): [True: 9.74k, False: 42.9M]
  ------------------
 1244|  47.6k|    case MAT4X2:
  ------------------
  |  Branch (1244:5): [True: 9.40k, False: 42.9M]
  ------------------
 1245|  58.2k|    case MAT4X3:
  ------------------
  |  Branch (1245:5): [True: 10.6k, False: 42.9M]
  ------------------
 1246|  58.2k|    case MAT4X4:
  ------------------
  |  Branch (1246:5): [True: 14, False: 42.9M]
  ------------------
 1247|  58.2k|        return matNxM();
 1248|       |
 1249|  6.80k|    case DMAT2:
  ------------------
  |  Branch (1249:5): [True: 6.80k, False: 42.9M]
  ------------------
 1250|  13.6k|    case DMAT3:
  ------------------
  |  Branch (1250:5): [True: 6.80k, False: 42.9M]
  ------------------
 1251|  20.4k|    case DMAT4:
  ------------------
  |  Branch (1251:5): [True: 6.81k, False: 42.9M]
  ------------------
 1252|  20.4k|    case DMAT2X2:
  ------------------
  |  Branch (1252:5): [True: 0, False: 42.9M]
  ------------------
 1253|  24.9k|    case DMAT2X3:
  ------------------
  |  Branch (1253:5): [True: 4.53k, False: 42.9M]
  ------------------
 1254|  29.5k|    case DMAT2X4:
  ------------------
  |  Branch (1254:5): [True: 4.54k, False: 42.9M]
  ------------------
 1255|  34.0k|    case DMAT3X2:
  ------------------
  |  Branch (1255:5): [True: 4.53k, False: 42.9M]
  ------------------
 1256|  34.0k|    case DMAT3X3:
  ------------------
  |  Branch (1256:5): [True: 0, False: 42.9M]
  ------------------
 1257|  38.5k|    case DMAT3X4:
  ------------------
  |  Branch (1257:5): [True: 4.53k, False: 42.9M]
  ------------------
 1258|  43.1k|    case DMAT4X2:
  ------------------
  |  Branch (1258:5): [True: 4.53k, False: 42.9M]
  ------------------
 1259|  47.6k|    case DMAT4X3:
  ------------------
  |  Branch (1259:5): [True: 4.53k, False: 42.9M]
  ------------------
 1260|  47.6k|    case DMAT4X4:
  ------------------
  |  Branch (1260:5): [True: 0, False: 42.9M]
  ------------------
 1261|  47.6k|        return dMat();
 1262|       |
 1263|      5|    case IMAGE2DRECT:
  ------------------
  |  Branch (1263:5): [True: 5, False: 42.9M]
  ------------------
 1264|      5|    case IIMAGE2DRECT:
  ------------------
  |  Branch (1264:5): [True: 0, False: 42.9M]
  ------------------
 1265|      5|    case UIMAGE2DRECT:
  ------------------
  |  Branch (1265:5): [True: 0, False: 42.9M]
  ------------------
 1266|      5|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1266:13): [True: 5, False: 0]
  ------------------
 1267|      5|            reservedWord();
 1268|      5|        [[fallthrough]];
 1269|  11.0k|    case IMAGE1D:
  ------------------
  |  Branch (1269:5): [True: 11.0k, False: 42.9M]
  ------------------
 1270|  37.6k|    case IIMAGE1D:
  ------------------
  |  Branch (1270:5): [True: 26.5k, False: 42.9M]
  ------------------
 1271|  64.2k|    case UIMAGE1D:
  ------------------
  |  Branch (1271:5): [True: 26.5k, False: 42.9M]
  ------------------
 1272|  75.3k|    case IMAGE1DARRAY:
  ------------------
  |  Branch (1272:5): [True: 11.0k, False: 42.9M]
  ------------------
 1273|   101k|    case IIMAGE1DARRAY:
  ------------------
  |  Branch (1273:5): [True: 26.5k, False: 42.9M]
  ------------------
 1274|   128k|    case UIMAGE1DARRAY:
  ------------------
  |  Branch (1274:5): [True: 26.5k, False: 42.9M]
  ------------------
 1275|   128k|        afterType = true;
 1276|   128k|        return firstGenerationImage(false);
 1277|       |
 1278|      0|    case I64IMAGE2DRECT:
  ------------------
  |  Branch (1278:5): [True: 0, False: 42.9M]
  ------------------
 1279|      0|    case U64IMAGE2DRECT:
  ------------------
  |  Branch (1279:5): [True: 0, False: 42.9M]
  ------------------
 1280|      0|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1280:13): [True: 0, False: 0]
  ------------------
 1281|      0|            return reservedWord();
 1282|      0|        [[fallthrough]];
 1283|  11.9k|    case I64IMAGE1D:
  ------------------
  |  Branch (1283:5): [True: 11.9k, False: 42.9M]
  ------------------
 1284|  23.8k|    case U64IMAGE1D:
  ------------------
  |  Branch (1284:5): [True: 11.8k, False: 42.9M]
  ------------------
 1285|  35.6k|    case I64IMAGE1DARRAY:
  ------------------
  |  Branch (1285:5): [True: 11.8k, False: 42.9M]
  ------------------
 1286|  47.6k|    case U64IMAGE1DARRAY:
  ------------------
  |  Branch (1286:5): [True: 11.9k, False: 42.9M]
  ------------------
 1287|  47.6k|        afterType = true;
 1288|  47.6k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1288:13): [True: 47.5k, False: 95]
  ------------------
 1289|  47.6k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_image_int64)) {
  ------------------
  |  Branch (1289:13): [True: 94, False: 1]
  ------------------
 1290|  47.6k|            return firstGenerationImage(false);
 1291|  47.6k|        }
 1292|      1|        return identifierOrType();
 1293|       |
 1294|  11.5k|    case IMAGEBUFFER:
  ------------------
  |  Branch (1294:5): [True: 11.5k, False: 42.9M]
  ------------------
 1295|  43.7k|    case IIMAGEBUFFER:
  ------------------
  |  Branch (1295:5): [True: 32.1k, False: 42.9M]
  ------------------
 1296|  75.9k|    case UIMAGEBUFFER:
  ------------------
  |  Branch (1296:5): [True: 32.1k, False: 42.9M]
  ------------------
 1297|  75.9k|        afterType = true;
 1298|  75.9k|        if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1298:14): [True: 13.6k, False: 62.3k]
  |  Branch (1298:44): [True: 644, False: 12.9k]
  ------------------
 1299|  75.3k|            parseContext.extensionsTurnedOn(Num_AEP_texture_buffer, AEP_texture_buffer))
  ------------------
  |  Branch (1299:13): [True: 0, False: 75.3k]
  ------------------
 1300|    644|            return keyword;
 1301|  75.3k|        return firstGenerationImage(false);
 1302|       |
 1303|  17.5k|    case I64IMAGEBUFFER:
  ------------------
  |  Branch (1303:5): [True: 17.5k, False: 42.9M]
  ------------------
 1304|  35.0k|    case U64IMAGEBUFFER:
  ------------------
  |  Branch (1304:5): [True: 17.4k, False: 42.9M]
  ------------------
 1305|  35.0k|        afterType = true;
 1306|  35.0k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1306:13): [True: 34.9k, False: 46]
  ------------------
 1307|  35.0k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_image_int64)) {
  ------------------
  |  Branch (1307:13): [True: 46, False: 0]
  ------------------
 1308|  35.0k|            if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1308:18): [True: 12.4k, False: 22.6k]
  |  Branch (1308:48): [True: 588, False: 11.8k]
  ------------------
 1309|  34.4k|                parseContext.extensionsTurnedOn(Num_AEP_texture_buffer, AEP_texture_buffer))
  ------------------
  |  Branch (1309:17): [True: 0, False: 34.4k]
  ------------------
 1310|    588|                return keyword;
 1311|  34.4k|            return firstGenerationImage(false);
 1312|  35.0k|        }
 1313|      0|        return identifierOrType();
 1314|       |
 1315|  13.3k|    case IMAGE2D:
  ------------------
  |  Branch (1315:5): [True: 13.3k, False: 42.9M]
  ------------------
 1316|  46.8k|    case IIMAGE2D:
  ------------------
  |  Branch (1316:5): [True: 33.5k, False: 42.9M]
  ------------------
 1317|  80.3k|    case UIMAGE2D:
  ------------------
  |  Branch (1317:5): [True: 33.5k, False: 42.9M]
  ------------------
 1318|  93.2k|    case IMAGE3D:
  ------------------
  |  Branch (1318:5): [True: 12.9k, False: 42.9M]
  ------------------
 1319|   126k|    case IIMAGE3D:
  ------------------
  |  Branch (1319:5): [True: 33.3k, False: 42.9M]
  ------------------
 1320|   160k|    case UIMAGE3D:
  ------------------
  |  Branch (1320:5): [True: 33.3k, False: 42.9M]
  ------------------
 1321|   173k|    case IMAGECUBE:
  ------------------
  |  Branch (1321:5): [True: 12.9k, False: 42.9M]
  ------------------
 1322|   206k|    case IIMAGECUBE:
  ------------------
  |  Branch (1322:5): [True: 33.3k, False: 42.9M]
  ------------------
 1323|   239k|    case UIMAGECUBE:
  ------------------
  |  Branch (1323:5): [True: 33.3k, False: 42.9M]
  ------------------
 1324|   252k|    case IMAGE2DARRAY:
  ------------------
  |  Branch (1324:5): [True: 12.9k, False: 42.9M]
  ------------------
 1325|   286k|    case IIMAGE2DARRAY:
  ------------------
  |  Branch (1325:5): [True: 33.3k, False: 42.9M]
  ------------------
 1326|   319k|    case UIMAGE2DARRAY:
  ------------------
  |  Branch (1326:5): [True: 33.3k, False: 42.9M]
  ------------------
 1327|   319k|        afterType = true;
 1328|   319k|        return firstGenerationImage(true);
 1329|       |
 1330|  18.6k|    case I64IMAGE2D:
  ------------------
  |  Branch (1330:5): [True: 18.6k, False: 42.9M]
  ------------------
 1331|  37.4k|    case U64IMAGE2D:
  ------------------
  |  Branch (1331:5): [True: 18.7k, False: 42.9M]
  ------------------
 1332|  56.1k|    case I64IMAGE3D:
  ------------------
  |  Branch (1332:5): [True: 18.7k, False: 42.9M]
  ------------------
 1333|  74.8k|    case U64IMAGE3D:
  ------------------
  |  Branch (1333:5): [True: 18.6k, False: 42.9M]
  ------------------
 1334|  93.5k|    case I64IMAGECUBE:
  ------------------
  |  Branch (1334:5): [True: 18.6k, False: 42.9M]
  ------------------
 1335|   112k|    case U64IMAGECUBE:
  ------------------
  |  Branch (1335:5): [True: 18.7k, False: 42.9M]
  ------------------
 1336|   131k|    case I64IMAGE2DARRAY:
  ------------------
  |  Branch (1336:5): [True: 18.7k, False: 42.9M]
  ------------------
 1337|   149k|    case U64IMAGE2DARRAY:
  ------------------
  |  Branch (1337:5): [True: 18.6k, False: 42.9M]
  ------------------
 1338|   149k|        afterType = true;
 1339|   149k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1339:13): [True: 149k, False: 188]
  ------------------
 1340|    188|            parseContext.extensionTurnedOn(E_GL_EXT_shader_image_int64))
  ------------------
  |  Branch (1340:13): [True: 188, False: 0]
  ------------------
 1341|   149k|            return firstGenerationImage(true);
 1342|      0|        return identifierOrType();
 1343|       |
 1344|  12.9k|    case IMAGECUBEARRAY:
  ------------------
  |  Branch (1344:5): [True: 12.9k, False: 42.9M]
  ------------------
 1345|  46.5k|    case IIMAGECUBEARRAY:
  ------------------
  |  Branch (1345:5): [True: 33.5k, False: 42.9M]
  ------------------
 1346|  80.0k|    case UIMAGECUBEARRAY:
  ------------------
  |  Branch (1346:5): [True: 33.5k, False: 42.9M]
  ------------------
 1347|  80.0k|        afterType = true;
 1348|  80.0k|        if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1348:14): [True: 13.9k, False: 66.0k]
  |  Branch (1348:44): [True: 686, False: 13.2k]
  ------------------
 1349|  79.3k|            parseContext.extensionsTurnedOn(Num_AEP_texture_cube_map_array, AEP_texture_cube_map_array))
  ------------------
  |  Branch (1349:13): [True: 322, False: 79.0k]
  ------------------
 1350|  1.00k|            return keyword;
 1351|  79.0k|        return secondGenerationImage();
 1352|       |
 1353|  18.6k|    case I64IMAGECUBEARRAY:
  ------------------
  |  Branch (1353:5): [True: 18.6k, False: 42.9M]
  ------------------
 1354|  37.4k|    case U64IMAGECUBEARRAY:
  ------------------
  |  Branch (1354:5): [True: 18.7k, False: 42.9M]
  ------------------
 1355|  37.4k|        afterType = true;
 1356|  37.4k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1356:13): [True: 37.3k, False: 45]
  ------------------
 1357|  37.4k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_image_int64)) {
  ------------------
  |  Branch (1357:13): [True: 45, False: 0]
  ------------------
 1358|  37.4k|            if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1358:18): [True: 12.4k, False: 25.0k]
  |  Branch (1358:48): [True: 588, False: 11.8k]
  ------------------
 1359|  36.8k|                parseContext.extensionsTurnedOn(Num_AEP_texture_cube_map_array, AEP_texture_cube_map_array))
  ------------------
  |  Branch (1359:17): [True: 0, False: 36.8k]
  ------------------
 1360|    588|                return keyword;
 1361|  36.8k|            return secondGenerationImage();
 1362|  37.4k|        }
 1363|      0|        return identifierOrType();
 1364|       |
 1365|  11.2k|    case IMAGE2DMS:
  ------------------
  |  Branch (1365:5): [True: 11.2k, False: 42.9M]
  ------------------
 1366|  38.0k|    case IIMAGE2DMS:
  ------------------
  |  Branch (1366:5): [True: 26.8k, False: 42.9M]
  ------------------
 1367|  64.8k|    case UIMAGE2DMS:
  ------------------
  |  Branch (1367:5): [True: 26.8k, False: 42.9M]
  ------------------
 1368|  76.0k|    case IMAGE2DMSARRAY:
  ------------------
  |  Branch (1368:5): [True: 11.2k, False: 42.9M]
  ------------------
 1369|   102k|    case IIMAGE2DMSARRAY:
  ------------------
  |  Branch (1369:5): [True: 26.8k, False: 42.9M]
  ------------------
 1370|   129k|    case UIMAGE2DMSARRAY:
  ------------------
  |  Branch (1370:5): [True: 26.8k, False: 42.9M]
  ------------------
 1371|   129k|        afterType = true;
 1372|   129k|        return secondGenerationImage();
 1373|       |
 1374|  18.3k|    case I64IMAGE2DMS:
  ------------------
  |  Branch (1374:5): [True: 18.3k, False: 42.9M]
  ------------------
 1375|  36.7k|    case U64IMAGE2DMS:
  ------------------
  |  Branch (1375:5): [True: 18.3k, False: 42.9M]
  ------------------
 1376|  55.0k|    case I64IMAGE2DMSARRAY:
  ------------------
  |  Branch (1376:5): [True: 18.3k, False: 42.9M]
  ------------------
 1377|  73.4k|    case U64IMAGE2DMSARRAY:
  ------------------
  |  Branch (1377:5): [True: 18.3k, False: 42.9M]
  ------------------
 1378|  73.4k|        afterType = true;
 1379|  73.4k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1379:13): [True: 73.3k, False: 90]
  ------------------
 1380|  73.4k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_image_int64)) {
  ------------------
  |  Branch (1380:13): [True: 90, False: 0]
  ------------------
 1381|  73.4k|            return secondGenerationImage();
 1382|  73.4k|        }
 1383|      0|        return identifierOrType();
 1384|       |
 1385|   176k|    case DOUBLE:
  ------------------
  |  Branch (1385:5): [True: 176k, False: 42.7M]
  ------------------
 1386|   334k|    case DVEC2:
  ------------------
  |  Branch (1386:5): [True: 157k, False: 42.7M]
  ------------------
 1387|   491k|    case DVEC3:
  ------------------
  |  Branch (1387:5): [True: 157k, False: 42.7M]
  ------------------
 1388|   647k|    case DVEC4:
  ------------------
  |  Branch (1388:5): [True: 156k, False: 42.7M]
  ------------------
 1389|   647k|        afterType = true;
 1390|   647k|        if (parseContext.isEsProfile() || parseContext.version < 150 ||
  ------------------
  |  Branch (1390:13): [True: 307, False: 647k]
  |  Branch (1390:43): [True: 8.20k, False: 639k]
  ------------------
 1391|   639k|            (!parseContext.symbolTable.atBuiltInLevel() &&
  ------------------
  |  Branch (1391:14): [True: 22.2k, False: 617k]
  ------------------
 1392|  22.2k|              (parseContext.version < 400 && !parseContext.extensionTurnedOn(E_GL_ARB_gpu_shader_fp64) &&
  ------------------
  |  Branch (1392:16): [True: 20.4k, False: 1.86k]
  |  Branch (1392:46): [True: 223, False: 20.1k]
  ------------------
 1393|    223|              (parseContext.version < 410 && !parseContext.extensionTurnedOn(E_GL_ARB_vertex_attrib_64bit)))))
  ------------------
  |  Branch (1393:16): [True: 223, False: 0]
  |  Branch (1393:46): [True: 223, False: 0]
  ------------------
 1394|  8.73k|            reservedWord();
 1395|   647k|        return keyword;
 1396|       |
 1397|   600k|    case INT64_T:
  ------------------
  |  Branch (1397:5): [True: 600k, False: 42.3M]
  ------------------
 1398|  1.34M|    case UINT64_T:
  ------------------
  |  Branch (1398:5): [True: 749k, False: 42.1M]
  ------------------
 1399|  1.62M|    case I64VEC2:
  ------------------
  |  Branch (1399:5): [True: 274k, False: 42.6M]
  ------------------
 1400|  1.89M|    case I64VEC3:
  ------------------
  |  Branch (1400:5): [True: 272k, False: 42.6M]
  ------------------
 1401|  2.19M|    case I64VEC4:
  ------------------
  |  Branch (1401:5): [True: 296k, False: 42.6M]
  ------------------
 1402|  2.46M|    case U64VEC2:
  ------------------
  |  Branch (1402:5): [True: 274k, False: 42.6M]
  ------------------
 1403|  2.73M|    case U64VEC3:
  ------------------
  |  Branch (1403:5): [True: 272k, False: 42.6M]
  ------------------
 1404|  3.03M|    case U64VEC4:
  ------------------
  |  Branch (1404:5): [True: 296k, False: 42.6M]
  ------------------
 1405|  3.03M|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1405:13): [True: 2.99M, False: 40.9k]
  ------------------
 1406|  40.9k|            parseContext.extensionTurnedOn(E_GL_ARB_gpu_shader_int64) ||
  ------------------
  |  Branch (1406:13): [True: 1.32k, False: 39.5k]
  ------------------
 1407|  39.5k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1407:13): [True: 677, False: 38.9k]
  ------------------
 1408|  38.9k|            parseContext.extensionTurnedOn(E_GL_NV_gpu_shader5) ||
  ------------------
  |  Branch (1408:13): [True: 38.7k, False: 134]
  ------------------
 1409|  3.03M|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int64)) {
  ------------------
  |  Branch (1409:13): [True: 133, False: 1]
  ------------------
 1410|  3.03M|            afterType = true;
 1411|  3.03M|            return keyword;
 1412|  3.03M|        }
 1413|      1|        return identifierOrType();
 1414|       |
 1415|   271k|    case INT8_T:
  ------------------
  |  Branch (1415:5): [True: 271k, False: 42.6M]
  ------------------
 1416|   524k|    case UINT8_T:
  ------------------
  |  Branch (1416:5): [True: 253k, False: 42.6M]
  ------------------
 1417|   766k|    case I8VEC2:
  ------------------
  |  Branch (1417:5): [True: 241k, False: 42.6M]
  ------------------
 1418|  1.00M|    case I8VEC3:
  ------------------
  |  Branch (1418:5): [True: 239k, False: 42.6M]
  ------------------
 1419|  1.24M|    case I8VEC4:
  ------------------
  |  Branch (1419:5): [True: 241k, False: 42.6M]
  ------------------
 1420|  1.48M|    case U8VEC2:
  ------------------
  |  Branch (1420:5): [True: 236k, False: 42.7M]
  ------------------
 1421|  1.72M|    case U8VEC3:
  ------------------
  |  Branch (1421:5): [True: 236k, False: 42.7M]
  ------------------
 1422|  1.95M|    case U8VEC4:
  ------------------
  |  Branch (1422:5): [True: 236k, False: 42.7M]
  ------------------
 1423|  1.95M|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1423:13): [True: 1.94M, False: 12.8k]
  ------------------
 1424|  12.8k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1424:13): [True: 1.85k, False: 11.0k]
  ------------------
 1425|  11.0k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_8bit_storage) ||
  ------------------
  |  Branch (1425:13): [True: 0, False: 11.0k]
  ------------------
 1426|  11.0k|            parseContext.extensionTurnedOn(E_GL_NV_gpu_shader5) ||
  ------------------
  |  Branch (1426:13): [True: 10.7k, False: 221]
  ------------------
 1427|  1.95M|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int8)) {
  ------------------
  |  Branch (1427:13): [True: 221, False: 0]
  ------------------
 1428|  1.95M|            afterType = true;
 1429|  1.95M|            return keyword;
 1430|  1.95M|        }
 1431|      0|        return identifierOrType();
 1432|       |
 1433|   312k|    case INT16_T:
  ------------------
  |  Branch (1433:5): [True: 312k, False: 42.6M]
  ------------------
 1434|   601k|    case UINT16_T:
  ------------------
  |  Branch (1434:5): [True: 289k, False: 42.6M]
  ------------------
 1435|   884k|    case I16VEC2:
  ------------------
  |  Branch (1435:5): [True: 283k, False: 42.6M]
  ------------------
 1436|  1.16M|    case I16VEC3:
  ------------------
  |  Branch (1436:5): [True: 277k, False: 42.6M]
  ------------------
 1437|  1.44M|    case I16VEC4:
  ------------------
  |  Branch (1437:5): [True: 281k, False: 42.6M]
  ------------------
 1438|  1.72M|    case U16VEC2:
  ------------------
  |  Branch (1438:5): [True: 278k, False: 42.6M]
  ------------------
 1439|  1.99M|    case U16VEC3:
  ------------------
  |  Branch (1439:5): [True: 275k, False: 42.6M]
  ------------------
 1440|  2.27M|    case U16VEC4:
  ------------------
  |  Branch (1440:5): [True: 276k, False: 42.6M]
  ------------------
 1441|  2.27M|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1441:13): [True: 2.26M, False: 14.0k]
  ------------------
 1442|  14.0k|            parseContext.extensionTurnedOn(E_GL_AMD_gpu_shader_int16) ||
  ------------------
  |  Branch (1442:13): [True: 3.77k, False: 10.2k]
  ------------------
 1443|  10.2k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_16bit_storage) ||
  ------------------
  |  Branch (1443:13): [True: 82, False: 10.1k]
  ------------------
 1444|  10.1k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1444:13): [True: 1.80k, False: 8.35k]
  ------------------
 1445|  8.35k|            parseContext.extensionTurnedOn(E_GL_NV_gpu_shader5) ||
  ------------------
  |  Branch (1445:13): [True: 8.09k, False: 254]
  ------------------
 1446|  2.27M|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int16)) {
  ------------------
  |  Branch (1446:13): [True: 253, False: 1]
  ------------------
 1447|  2.27M|            afterType = true;
 1448|  2.27M|            return keyword;
 1449|  2.27M|        }
 1450|      1|        return identifierOrType();
 1451|  26.2k|    case INT32_T:
  ------------------
  |  Branch (1451:5): [True: 26.2k, False: 42.9M]
  ------------------
 1452|  52.8k|    case UINT32_T:
  ------------------
  |  Branch (1452:5): [True: 26.5k, False: 42.9M]
  ------------------
 1453|  55.5k|    case I32VEC2:
  ------------------
  |  Branch (1453:5): [True: 2.71k, False: 42.9M]
  ------------------
 1454|  56.9k|    case I32VEC3:
  ------------------
  |  Branch (1454:5): [True: 1.33k, False: 42.9M]
  ------------------
 1455|  58.2k|    case I32VEC4:
  ------------------
  |  Branch (1455:5): [True: 1.33k, False: 42.9M]
  ------------------
 1456|  62.0k|    case U32VEC2:
  ------------------
  |  Branch (1456:5): [True: 3.85k, False: 42.9M]
  ------------------
 1457|  65.8k|    case U32VEC3:
  ------------------
  |  Branch (1457:5): [True: 3.74k, False: 42.9M]
  ------------------
 1458|  67.1k|    case U32VEC4:
  ------------------
  |  Branch (1458:5): [True: 1.32k, False: 42.9M]
  ------------------
 1459|  67.1k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1459:13): [True: 64.9k, False: 2.25k]
  ------------------
 1460|  2.25k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1460:13): [True: 1.16k, False: 1.08k]
  ------------------
 1461|  1.08k|            parseContext.extensionTurnedOn(E_GL_NV_gpu_shader5) ||
  ------------------
  |  Branch (1461:13): [True: 954, False: 130]
  ------------------
 1462|  67.1k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_int32)) {
  ------------------
  |  Branch (1462:13): [True: 130, False: 0]
  ------------------
 1463|  67.1k|            afterType = true;
 1464|  67.1k|            return keyword;
 1465|  67.1k|        }
 1466|      0|        return identifierOrType();
 1467|  22.9k|    case FLOAT32_T:
  ------------------
  |  Branch (1467:5): [True: 22.9k, False: 42.9M]
  ------------------
 1468|  24.3k|    case F32VEC2:
  ------------------
  |  Branch (1468:5): [True: 1.44k, False: 42.9M]
  ------------------
 1469|  25.6k|    case F32VEC3:
  ------------------
  |  Branch (1469:5): [True: 1.27k, False: 42.9M]
  ------------------
 1470|  26.8k|    case F32VEC4:
  ------------------
  |  Branch (1470:5): [True: 1.21k, False: 42.9M]
  ------------------
 1471|  26.8k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1471:13): [True: 26.4k, False: 391]
  ------------------
 1472|    391|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1472:13): [True: 262, False: 129]
  ------------------
 1473|    129|            parseContext.extensionTurnedOn(E_GL_NV_gpu_shader5) ||
  ------------------
  |  Branch (1473:13): [True: 40, False: 89]
  ------------------
 1474|  26.8k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float32)) {
  ------------------
  |  Branch (1474:13): [True: 89, False: 0]
  ------------------
 1475|  26.8k|            afterType = true;
 1476|  26.8k|            return keyword;
 1477|  26.8k|        }
 1478|      0|        return identifierOrType();
 1479|      0|    case F32MAT2:
  ------------------
  |  Branch (1479:5): [True: 0, False: 42.9M]
  ------------------
 1480|      2|    case F32MAT3:
  ------------------
  |  Branch (1480:5): [True: 2, False: 42.9M]
  ------------------
 1481|      4|    case F32MAT4:
  ------------------
  |  Branch (1481:5): [True: 2, False: 42.9M]
  ------------------
 1482|     13|    case F32MAT2X2:
  ------------------
  |  Branch (1482:5): [True: 9, False: 42.9M]
  ------------------
 1483|     33|    case F32MAT2X3:
  ------------------
  |  Branch (1483:5): [True: 20, False: 42.9M]
  ------------------
 1484|     33|    case F32MAT2X4:
  ------------------
  |  Branch (1484:5): [True: 0, False: 42.9M]
  ------------------
 1485|     35|    case F32MAT3X2:
  ------------------
  |  Branch (1485:5): [True: 2, False: 42.9M]
  ------------------
 1486|     35|    case F32MAT3X3:
  ------------------
  |  Branch (1486:5): [True: 0, False: 42.9M]
  ------------------
 1487|     35|    case F32MAT3X4:
  ------------------
  |  Branch (1487:5): [True: 0, False: 42.9M]
  ------------------
 1488|     35|    case F32MAT4X2:
  ------------------
  |  Branch (1488:5): [True: 0, False: 42.9M]
  ------------------
 1489|     35|    case F32MAT4X3:
  ------------------
  |  Branch (1489:5): [True: 0, False: 42.9M]
  ------------------
 1490|     35|    case F32MAT4X4:
  ------------------
  |  Branch (1490:5): [True: 0, False: 42.9M]
  ------------------
 1491|     35|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1491:13): [True: 0, False: 35]
  ------------------
 1492|     35|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1492:13): [True: 25, False: 10]
  ------------------
 1493|     35|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float32)) {
  ------------------
  |  Branch (1493:13): [True: 10, False: 0]
  ------------------
 1494|     35|            afterType = true;
 1495|     35|            return keyword;
 1496|     35|        }
 1497|      0|        return identifierOrType();
 1498|       |
 1499|  80.1k|    case FLOAT64_T:
  ------------------
  |  Branch (1499:5): [True: 80.1k, False: 42.8M]
  ------------------
 1500|   137k|    case F64VEC2:
  ------------------
  |  Branch (1500:5): [True: 56.9k, False: 42.8M]
  ------------------
 1501|   193k|    case F64VEC3:
  ------------------
  |  Branch (1501:5): [True: 56.4k, False: 42.8M]
  ------------------
 1502|   249k|    case F64VEC4:
  ------------------
  |  Branch (1502:5): [True: 55.4k, False: 42.8M]
  ------------------
 1503|   249k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1503:13): [True: 247k, False: 1.03k]
  ------------------
 1504|  1.03k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1504:13): [True: 288, False: 748]
  ------------------
 1505|    748|            (parseContext.extensionTurnedOn(E_GL_NV_gpu_shader5) &&
  ------------------
  |  Branch (1505:14): [True: 672, False: 76]
  ------------------
 1506|    672|             parseContext.extensionTurnedOn(E_GL_ARB_gpu_shader_fp64)) ||
  ------------------
  |  Branch (1506:14): [True: 669, False: 3]
  ------------------
 1507|   249k|             parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float64)) {
  ------------------
  |  Branch (1507:14): [True: 75, False: 4]
  ------------------
 1508|   249k|            afterType = true;
 1509|   249k|            return keyword;
 1510|   249k|        }
 1511|      4|        return identifierOrType();
 1512|  2.66k|    case F64MAT2:
  ------------------
  |  Branch (1512:5): [True: 2.66k, False: 42.9M]
  ------------------
 1513|  5.33k|    case F64MAT3:
  ------------------
  |  Branch (1513:5): [True: 2.66k, False: 42.9M]
  ------------------
 1514|  8.00k|    case F64MAT4:
  ------------------
  |  Branch (1514:5): [True: 2.66k, False: 42.9M]
  ------------------
 1515|  8.00k|    case F64MAT2X2:
  ------------------
  |  Branch (1515:5): [True: 5, False: 42.9M]
  ------------------
 1516|  9.79k|    case F64MAT2X3:
  ------------------
  |  Branch (1516:5): [True: 1.79k, False: 42.9M]
  ------------------
 1517|  11.5k|    case F64MAT2X4:
  ------------------
  |  Branch (1517:5): [True: 1.77k, False: 42.9M]
  ------------------
 1518|  13.3k|    case F64MAT3X2:
  ------------------
  |  Branch (1518:5): [True: 1.78k, False: 42.9M]
  ------------------
 1519|  13.3k|    case F64MAT3X3:
  ------------------
  |  Branch (1519:5): [True: 0, False: 42.9M]
  ------------------
 1520|  15.1k|    case F64MAT3X4:
  ------------------
  |  Branch (1520:5): [True: 1.77k, False: 42.9M]
  ------------------
 1521|  16.9k|    case F64MAT4X2:
  ------------------
  |  Branch (1521:5): [True: 1.77k, False: 42.9M]
  ------------------
 1522|  18.6k|    case F64MAT4X3:
  ------------------
  |  Branch (1522:5): [True: 1.77k, False: 42.9M]
  ------------------
 1523|  18.6k|    case F64MAT4X4:
  ------------------
  |  Branch (1523:5): [True: 0, False: 42.9M]
  ------------------
 1524|  18.6k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1524:13): [True: 18.6k, False: 35]
  ------------------
 1525|     35|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1525:13): [True: 28, False: 7]
  ------------------
 1526|  18.6k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float64)) {
  ------------------
  |  Branch (1526:13): [True: 7, False: 0]
  ------------------
 1527|  18.6k|            afterType = true;
 1528|  18.6k|            return keyword;
 1529|  18.6k|        }
 1530|      0|        return identifierOrType();
 1531|       |
 1532|   566k|    case FLOAT16_T:
  ------------------
  |  Branch (1532:5): [True: 566k, False: 42.3M]
  ------------------
 1533|  1.01M|    case F16VEC2:
  ------------------
  |  Branch (1533:5): [True: 446k, False: 42.4M]
  ------------------
 1534|  1.38M|    case F16VEC3:
  ------------------
  |  Branch (1534:5): [True: 371k, False: 42.5M]
  ------------------
 1535|  2.05M|    case F16VEC4:
  ------------------
  |  Branch (1535:5): [True: 671k, False: 42.2M]
  ------------------
 1536|  2.05M|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1536:13): [True: 2.05M, False: 5.89k]
  ------------------
 1537|  5.89k|            parseContext.extensionTurnedOn(E_GL_AMD_gpu_shader_half_float) ||
  ------------------
  |  Branch (1537:13): [True: 853, False: 5.04k]
  ------------------
 1538|  5.04k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_16bit_storage) ||
  ------------------
  |  Branch (1538:13): [True: 8, False: 5.03k]
  ------------------
 1539|  5.03k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1539:13): [True: 218, False: 4.81k]
  ------------------
 1540|  4.81k|            parseContext.extensionTurnedOn(E_GL_NV_gpu_shader5) ||
  ------------------
  |  Branch (1540:13): [True: 4.10k, False: 715]
  ------------------
 1541|  2.05M|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float16)) {
  ------------------
  |  Branch (1541:13): [True: 710, False: 5]
  ------------------
 1542|  2.05M|            afterType = true;
 1543|  2.05M|            return keyword;
 1544|  2.05M|        }
 1545|      5|        return identifierOrType();
 1546|       |
 1547|  5.37k|    case F16MAT2:
  ------------------
  |  Branch (1547:5): [True: 5.37k, False: 42.9M]
  ------------------
 1548|  10.7k|    case F16MAT3:
  ------------------
  |  Branch (1548:5): [True: 5.37k, False: 42.9M]
  ------------------
 1549|  16.1k|    case F16MAT4:
  ------------------
  |  Branch (1549:5): [True: 5.37k, False: 42.9M]
  ------------------
 1550|  16.1k|    case F16MAT2X2:
  ------------------
  |  Branch (1550:5): [True: 7, False: 42.9M]
  ------------------
 1551|  19.7k|    case F16MAT2X3:
  ------------------
  |  Branch (1551:5): [True: 3.62k, False: 42.9M]
  ------------------
 1552|  23.3k|    case F16MAT2X4:
  ------------------
  |  Branch (1552:5): [True: 3.58k, False: 42.9M]
  ------------------
 1553|  26.9k|    case F16MAT3X2:
  ------------------
  |  Branch (1553:5): [True: 3.58k, False: 42.9M]
  ------------------
 1554|  26.9k|    case F16MAT3X3:
  ------------------
  |  Branch (1554:5): [True: 0, False: 42.9M]
  ------------------
 1555|  30.4k|    case F16MAT3X4:
  ------------------
  |  Branch (1555:5): [True: 3.58k, False: 42.9M]
  ------------------
 1556|  34.0k|    case F16MAT4X2:
  ------------------
  |  Branch (1556:5): [True: 3.58k, False: 42.9M]
  ------------------
 1557|  37.6k|    case F16MAT4X3:
  ------------------
  |  Branch (1557:5): [True: 3.58k, False: 42.9M]
  ------------------
 1558|  37.6k|    case F16MAT4X4:
  ------------------
  |  Branch (1558:5): [True: 0, False: 42.9M]
  ------------------
 1559|  37.6k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1559:13): [True: 37.6k, False: 52]
  ------------------
 1560|     52|            parseContext.extensionTurnedOn(E_GL_AMD_gpu_shader_half_float) ||
  ------------------
  |  Branch (1560:13): [True: 52, False: 0]
  ------------------
 1561|      0|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types) ||
  ------------------
  |  Branch (1561:13): [True: 0, False: 0]
  ------------------
 1562|  37.6k|            parseContext.extensionTurnedOn(E_GL_EXT_shader_explicit_arithmetic_types_float16)) {
  ------------------
  |  Branch (1562:13): [True: 0, False: 0]
  ------------------
 1563|  37.6k|            afterType = true;
 1564|  37.6k|            return keyword;
 1565|  37.6k|        }
 1566|       |
 1567|      0|        return identifierOrType();
 1568|       |
 1569|  8.37k|    case BFLOAT16_T:
  ------------------
  |  Branch (1569:5): [True: 8.37k, False: 42.9M]
  ------------------
 1570|  13.1k|    case BF16VEC2:
  ------------------
  |  Branch (1570:5): [True: 4.78k, False: 42.9M]
  ------------------
 1571|  16.7k|    case BF16VEC3:
  ------------------
  |  Branch (1571:5): [True: 3.58k, False: 42.9M]
  ------------------
 1572|  21.5k|    case BF16VEC4:
  ------------------
  |  Branch (1572:5): [True: 4.78k, False: 42.9M]
  ------------------
 1573|  21.5k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1573:13): [True: 21.5k, False: 1]
  ------------------
 1574|  21.5k|            parseContext.extensionTurnedOn(E_GL_EXT_bfloat16)) {
  ------------------
  |  Branch (1574:13): [True: 0, False: 1]
  ------------------
 1575|  21.5k|            afterType = true;
 1576|  21.5k|            return keyword;
 1577|  21.5k|        }
 1578|       |
 1579|      1|        return identifierOrType();
 1580|       |
 1581|  4.79k|    case FLOATE5M2_T:
  ------------------
  |  Branch (1581:5): [True: 4.79k, False: 42.9M]
  ------------------
 1582|  8.38k|    case FE5M2VEC2:
  ------------------
  |  Branch (1582:5): [True: 3.59k, False: 42.9M]
  ------------------
 1583|  10.7k|    case FE5M2VEC3:
  ------------------
  |  Branch (1583:5): [True: 2.38k, False: 42.9M]
  ------------------
 1584|  14.3k|    case FE5M2VEC4:
  ------------------
  |  Branch (1584:5): [True: 3.59k, False: 42.9M]
  ------------------
 1585|  14.3k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1585:13): [True: 14.3k, False: 0]
  ------------------
 1586|  14.3k|            parseContext.extensionTurnedOn(E_GL_EXT_float_e5m2)) {
  ------------------
  |  Branch (1586:13): [True: 0, False: 0]
  ------------------
 1587|  14.3k|            afterType = true;
 1588|  14.3k|            return keyword;
 1589|  14.3k|        }
 1590|       |
 1591|      0|        return identifierOrType();
 1592|       |
 1593|  4.79k|    case FLOATE4M3_T:
  ------------------
  |  Branch (1593:5): [True: 4.79k, False: 42.9M]
  ------------------
 1594|  8.38k|    case FE4M3VEC2:
  ------------------
  |  Branch (1594:5): [True: 3.59k, False: 42.9M]
  ------------------
 1595|  10.7k|    case FE4M3VEC3:
  ------------------
  |  Branch (1595:5): [True: 2.38k, False: 42.9M]
  ------------------
 1596|  14.3k|    case FE4M3VEC4:
  ------------------
  |  Branch (1596:5): [True: 3.59k, False: 42.9M]
  ------------------
 1597|  14.3k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1597:13): [True: 14.3k, False: 0]
  ------------------
 1598|  14.3k|            parseContext.extensionTurnedOn(E_GL_EXT_float_e4m3)) {
  ------------------
  |  Branch (1598:13): [True: 0, False: 0]
  ------------------
 1599|  14.3k|            afterType = true;
 1600|  14.3k|            return keyword;
 1601|  14.3k|        }
 1602|       |
 1603|      0|        return identifierOrType();
 1604|       |
 1605|  2.98k|    case FLOATE2M1_T:
  ------------------
  |  Branch (1605:5): [True: 2.98k, False: 42.9M]
  ------------------
 1606|  4.77k|    case FE2M1VEC2:
  ------------------
  |  Branch (1606:5): [True: 1.79k, False: 42.9M]
  ------------------
 1607|  5.37k|    case FE2M1VEC3:
  ------------------
  |  Branch (1607:5): [True: 597, False: 42.9M]
  ------------------
 1608|  7.16k|    case FE2M1VEC4:
  ------------------
  |  Branch (1608:5): [True: 1.79k, False: 42.9M]
  ------------------
 1609|  7.16k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1609:13): [True: 7.16k, False: 0]
  ------------------
 1610|  7.16k|            parseContext.extensionTurnedOn(E_GL_EXT_float_e2m1)) {
  ------------------
  |  Branch (1610:13): [True: 0, False: 0]
  ------------------
 1611|  7.16k|            afterType = true;
 1612|  7.16k|            return keyword;
 1613|  7.16k|        }
 1614|       |
 1615|      0|        return identifierOrType();
 1616|       |
 1617|  2.98k|    case FLOATE3M2_T:
  ------------------
  |  Branch (1617:5): [True: 2.98k, False: 42.9M]
  ------------------
 1618|  3.58k|    case FE3M2VEC2:
  ------------------
  |  Branch (1618:5): [True: 597, False: 42.9M]
  ------------------
 1619|  4.17k|    case FE3M2VEC3:
  ------------------
  |  Branch (1619:5): [True: 597, False: 42.9M]
  ------------------
 1620|  5.97k|    case FE3M2VEC4:
  ------------------
  |  Branch (1620:5): [True: 1.79k, False: 42.9M]
  ------------------
 1621|  5.97k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1621:13): [True: 5.97k, False: 0]
  ------------------
 1622|  5.97k|            parseContext.extensionTurnedOn(E_GL_EXT_float_e3m2)) {
  ------------------
  |  Branch (1622:13): [True: 0, False: 0]
  ------------------
 1623|  5.97k|            afterType = true;
 1624|  5.97k|            return keyword;
 1625|  5.97k|        }
 1626|       |
 1627|      0|        return identifierOrType();
 1628|       |
 1629|  2.98k|    case FLOATE2M3_T:
  ------------------
  |  Branch (1629:5): [True: 2.98k, False: 42.9M]
  ------------------
 1630|  3.58k|    case FE2M3VEC2:
  ------------------
  |  Branch (1630:5): [True: 597, False: 42.9M]
  ------------------
 1631|  4.17k|    case FE2M3VEC3:
  ------------------
  |  Branch (1631:5): [True: 597, False: 42.9M]
  ------------------
 1632|  5.97k|    case FE2M3VEC4:
  ------------------
  |  Branch (1632:5): [True: 1.79k, False: 42.9M]
  ------------------
 1633|  5.97k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1633:13): [True: 5.97k, False: 0]
  ------------------
 1634|  5.97k|            parseContext.extensionTurnedOn(E_GL_EXT_float_e2m3)) {
  ------------------
  |  Branch (1634:13): [True: 0, False: 0]
  ------------------
 1635|  5.97k|            afterType = true;
 1636|  5.97k|            return keyword;
 1637|  5.97k|        }
 1638|       |
 1639|      0|        return identifierOrType();
 1640|       |
 1641|  2.38k|    case FLOATUE8M0_T:
  ------------------
  |  Branch (1641:5): [True: 2.38k, False: 42.9M]
  ------------------
 1642|  4.77k|    case FUE8M0VEC2:
  ------------------
  |  Branch (1642:5): [True: 2.38k, False: 42.9M]
  ------------------
 1643|  7.16k|    case FUE8M0VEC3:
  ------------------
  |  Branch (1643:5): [True: 2.38k, False: 42.9M]
  ------------------
 1644|  9.55k|    case FUE8M0VEC4:
  ------------------
  |  Branch (1644:5): [True: 2.38k, False: 42.9M]
  ------------------
 1645|  9.55k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1645:13): [True: 9.55k, False: 0]
  ------------------
 1646|  9.55k|            parseContext.extensionTurnedOn(E_GL_EXT_float_ue8m0)) {
  ------------------
  |  Branch (1646:13): [True: 0, False: 0]
  ------------------
 1647|  9.55k|            afterType = true;
 1648|  9.55k|            return keyword;
 1649|  9.55k|        }
 1650|       |
 1651|      0|        return identifierOrType();
 1652|       |
 1653|  2.38k|    case FLOATMXINT8_T:
  ------------------
  |  Branch (1653:5): [True: 2.38k, False: 42.9M]
  ------------------
 1654|  4.77k|    case FMXINT8VEC2:
  ------------------
  |  Branch (1654:5): [True: 2.38k, False: 42.9M]
  ------------------
 1655|  7.16k|    case FMXINT8VEC3:
  ------------------
  |  Branch (1655:5): [True: 2.38k, False: 42.9M]
  ------------------
 1656|  9.55k|    case FMXINT8VEC4:
  ------------------
  |  Branch (1656:5): [True: 2.38k, False: 42.9M]
  ------------------
 1657|  9.55k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1657:13): [True: 9.55k, False: 0]
  ------------------
 1658|  9.55k|            parseContext.extensionTurnedOn(E_GL_EXT_float_mxint8)) {
  ------------------
  |  Branch (1658:13): [True: 0, False: 0]
  ------------------
 1659|  9.55k|            afterType = true;
 1660|  9.55k|            return keyword;
 1661|  9.55k|        }
 1662|       |
 1663|      0|        return identifierOrType();
 1664|       |
 1665|  24.7k|    case SAMPLERCUBEARRAY:
  ------------------
  |  Branch (1665:5): [True: 24.7k, False: 42.9M]
  ------------------
 1666|  41.4k|    case SAMPLERCUBEARRAYSHADOW:
  ------------------
  |  Branch (1666:5): [True: 16.6k, False: 42.9M]
  ------------------
 1667|  66.2k|    case ISAMPLERCUBEARRAY:
  ------------------
  |  Branch (1667:5): [True: 24.7k, False: 42.9M]
  ------------------
 1668|  91.0k|    case USAMPLERCUBEARRAY:
  ------------------
  |  Branch (1668:5): [True: 24.7k, False: 42.9M]
  ------------------
 1669|  91.0k|        afterType = true;
 1670|  91.0k|        if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1670:14): [True: 8.46k, False: 82.5k]
  |  Branch (1670:44): [True: 434, False: 8.03k]
  ------------------
 1671|  90.5k|            parseContext.extensionsTurnedOn(Num_AEP_texture_cube_map_array, AEP_texture_cube_map_array))
  ------------------
  |  Branch (1671:13): [True: 403, False: 90.1k]
  ------------------
 1672|    837|            return keyword;
 1673|  90.1k|        if (parseContext.isEsProfile() || (parseContext.version < 400 &&
  ------------------
  |  Branch (1673:13): [True: 7.63k, False: 82.5k]
  |  Branch (1673:44): [True: 20.7k, False: 61.7k]
  ------------------
 1674|  20.7k|            ! parseContext.extensionTurnedOn(E_GL_ARB_texture_cube_map_array)
  ------------------
  |  Branch (1674:13): [True: 20.7k, False: 19]
  ------------------
 1675|  20.7k|            && ! parseContext.extensionsTurnedOn(Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5)))
  ------------------
  |  Branch (1675:16): [True: 20.4k, False: 278]
  ------------------
 1676|  28.1k|            reservedWord();
 1677|  90.1k|        return keyword;
 1678|       |
 1679|  2.10k|    case TEXTURECUBEARRAY:
  ------------------
  |  Branch (1679:5): [True: 2.10k, False: 42.9M]
  ------------------
 1680|  4.21k|    case ITEXTURECUBEARRAY:
  ------------------
  |  Branch (1680:5): [True: 2.10k, False: 42.9M]
  ------------------
 1681|  6.31k|    case UTEXTURECUBEARRAY:
  ------------------
  |  Branch (1681:5): [True: 2.10k, False: 42.9M]
  ------------------
 1682|  6.31k|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1682:13): [True: 6.31k, False: 0]
  ------------------
 1683|  6.31k|            return keyword;
 1684|      0|        else
 1685|      0|            return identifierOrType();
 1686|       |
 1687|  2.75M|    case UINT:
  ------------------
  |  Branch (1687:5): [True: 2.75M, False: 40.1M]
  ------------------
 1688|  3.13M|    case UVEC2:
  ------------------
  |  Branch (1688:5): [True: 376k, False: 42.5M]
  ------------------
 1689|  3.48M|    case UVEC3:
  ------------------
  |  Branch (1689:5): [True: 351k, False: 42.5M]
  ------------------
 1690|  5.69M|    case UVEC4:
  ------------------
  |  Branch (1690:5): [True: 2.21M, False: 40.7M]
  ------------------
 1691|  5.71M|    case SAMPLERCUBESHADOW:
  ------------------
  |  Branch (1691:5): [True: 18.9k, False: 42.9M]
  ------------------
 1692|  5.80M|    case SAMPLER2DARRAY:
  ------------------
  |  Branch (1692:5): [True: 84.8k, False: 42.8M]
  ------------------
 1693|  5.83M|    case SAMPLER2DARRAYSHADOW:
  ------------------
  |  Branch (1693:5): [True: 28.9k, False: 42.9M]
  ------------------
 1694|  5.95M|    case ISAMPLER2D:
  ------------------
  |  Branch (1694:5): [True: 122k, False: 42.8M]
  ------------------
 1695|  6.01M|    case ISAMPLER3D:
  ------------------
  |  Branch (1695:5): [True: 55.9k, False: 42.8M]
  ------------------
 1696|  6.03M|    case ISAMPLERCUBE:
  ------------------
  |  Branch (1696:5): [True: 24.6k, False: 42.9M]
  ------------------
 1697|  6.11M|    case ISAMPLER2DARRAY:
  ------------------
  |  Branch (1697:5): [True: 83.5k, False: 42.8M]
  ------------------
 1698|  6.24M|    case USAMPLER2D:
  ------------------
  |  Branch (1698:5): [True: 122k, False: 42.8M]
  ------------------
 1699|  6.29M|    case USAMPLER3D:
  ------------------
  |  Branch (1699:5): [True: 55.9k, False: 42.8M]
  ------------------
 1700|  6.32M|    case USAMPLERCUBE:
  ------------------
  |  Branch (1700:5): [True: 24.6k, False: 42.9M]
  ------------------
 1701|  6.40M|    case USAMPLER2DARRAY:
  ------------------
  |  Branch (1701:5): [True: 83.2k, False: 42.8M]
  ------------------
 1702|  6.40M|        afterType = true;
 1703|  6.40M|        if (keyword == SAMPLER2DARRAY || keyword == SAMPLER2DARRAYSHADOW) {
  ------------------
  |  Branch (1703:13): [True: 84.8k, False: 6.31M]
  |  Branch (1703:42): [True: 28.9k, False: 6.29M]
  ------------------
 1704|   113k|            if (!parseContext.isEsProfile() &&
  ------------------
  |  Branch (1704:17): [True: 99.6k, False: 14.2k]
  ------------------
 1705|  99.6k|                (parseContext.extensionTurnedOn(E_GL_EXT_texture_array) || parseContext.symbolTable.atBuiltInLevel())) {
  ------------------
  |  Branch (1705:18): [True: 0, False: 99.6k]
  |  Branch (1705:76): [True: 99.3k, False: 252]
  ------------------
 1706|  99.3k|                return keyword;
 1707|  99.3k|            }
 1708|   113k|        }
 1709|  6.30M|        return nonreservedKeyword(300, 130);
 1710|       |
 1711|  56.0k|    case SAMPLER3D:
  ------------------
  |  Branch (1711:5): [True: 56.0k, False: 42.8M]
  ------------------
 1712|  56.0k|        afterType = true;
 1713|  56.0k|        if (parseContext.isEsProfile() && parseContext.version < 300) {
  ------------------
  |  Branch (1713:13): [True: 7.18k, False: 48.8k]
  |  Branch (1713:43): [True: 0, False: 7.18k]
  ------------------
 1714|      0|            if (!parseContext.extensionTurnedOn(E_GL_OES_texture_3D))
  ------------------
  |  Branch (1714:17): [True: 0, False: 0]
  ------------------
 1715|      0|                reservedWord();
 1716|      0|        }
 1717|  56.0k|        return keyword;
 1718|       |
 1719|  47.9k|    case SAMPLER2DSHADOW:
  ------------------
  |  Branch (1719:5): [True: 47.9k, False: 42.8M]
  ------------------
 1720|  47.9k|        afterType = true;
 1721|  47.9k|        if (parseContext.isEsProfile() && parseContext.version < 300) {
  ------------------
  |  Branch (1721:13): [True: 5.92k, False: 42.0k]
  |  Branch (1721:43): [True: 0, False: 5.92k]
  ------------------
 1722|      0|            if (!parseContext.extensionTurnedOn(E_GL_EXT_shadow_samplers))
  ------------------
  |  Branch (1722:17): [True: 0, False: 0]
  ------------------
 1723|      0|                reservedWord();
 1724|      0|        }
 1725|  47.9k|        return keyword;
 1726|       |
 1727|  5.88k|    case TEXTURE2D:
  ------------------
  |  Branch (1727:5): [True: 5.88k, False: 42.9M]
  ------------------
 1728|  7.99k|    case TEXTURECUBE:
  ------------------
  |  Branch (1728:5): [True: 2.11k, False: 42.9M]
  ------------------
 1729|  13.8k|    case TEXTURE2DARRAY:
  ------------------
  |  Branch (1729:5): [True: 5.84k, False: 42.9M]
  ------------------
 1730|  19.6k|    case ITEXTURE2D:
  ------------------
  |  Branch (1730:5): [True: 5.84k, False: 42.9M]
  ------------------
 1731|  25.5k|    case ITEXTURE3D:
  ------------------
  |  Branch (1731:5): [True: 5.84k, False: 42.9M]
  ------------------
 1732|  27.6k|    case ITEXTURECUBE:
  ------------------
  |  Branch (1732:5): [True: 2.10k, False: 42.9M]
  ------------------
 1733|  33.4k|    case ITEXTURE2DARRAY:
  ------------------
  |  Branch (1733:5): [True: 5.84k, False: 42.9M]
  ------------------
 1734|  39.3k|    case UTEXTURE2D:
  ------------------
  |  Branch (1734:5): [True: 5.84k, False: 42.9M]
  ------------------
 1735|  45.1k|    case UTEXTURE3D:
  ------------------
  |  Branch (1735:5): [True: 5.84k, False: 42.9M]
  ------------------
 1736|  47.2k|    case UTEXTURECUBE:
  ------------------
  |  Branch (1736:5): [True: 2.10k, False: 42.9M]
  ------------------
 1737|  53.1k|    case UTEXTURE2DARRAY:
  ------------------
  |  Branch (1737:5): [True: 5.84k, False: 42.9M]
  ------------------
 1738|  59.0k|    case TEXTURE3D:
  ------------------
  |  Branch (1738:5): [True: 5.88k, False: 42.9M]
  ------------------
 1739|  59.0k|    case SAMPLER:
  ------------------
  |  Branch (1739:5): [True: 36, False: 42.9M]
  ------------------
 1740|  59.0k|    case SAMPLERSHADOW:
  ------------------
  |  Branch (1740:5): [True: 19, False: 42.9M]
  ------------------
 1741|  59.0k|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1741:13): [True: 59.0k, False: 0]
  ------------------
 1742|  59.0k|            return keyword;
 1743|      0|        else
 1744|      0|            return identifierOrType();
 1745|       |
 1746|  55.1k|    case ISAMPLER1D:
  ------------------
  |  Branch (1746:5): [True: 55.1k, False: 42.8M]
  ------------------
 1747|  80.1k|    case ISAMPLER1DARRAY:
  ------------------
  |  Branch (1747:5): [True: 25.0k, False: 42.9M]
  ------------------
 1748|   100k|    case SAMPLER1DARRAYSHADOW:
  ------------------
  |  Branch (1748:5): [True: 19.9k, False: 42.9M]
  ------------------
 1749|   155k|    case USAMPLER1D:
  ------------------
  |  Branch (1749:5): [True: 55.1k, False: 42.8M]
  ------------------
 1750|   180k|    case USAMPLER1DARRAY:
  ------------------
  |  Branch (1750:5): [True: 24.9k, False: 42.9M]
  ------------------
 1751|   180k|        afterType = true;
 1752|   180k|        if (keyword == SAMPLER1DARRAYSHADOW) {
  ------------------
  |  Branch (1752:13): [True: 19.9k, False: 160k]
  ------------------
 1753|  19.9k|            if (!parseContext.isEsProfile() &&
  ------------------
  |  Branch (1753:17): [True: 19.9k, False: 3]
  ------------------
 1754|  19.9k|                (parseContext.extensionTurnedOn(E_GL_EXT_texture_array) || parseContext.symbolTable.atBuiltInLevel())) {
  ------------------
  |  Branch (1754:18): [True: 0, False: 19.9k]
  |  Branch (1754:76): [True: 19.8k, False: 63]
  ------------------
 1755|  19.8k|                return keyword;
 1756|  19.8k|            }
 1757|  19.9k|        }
 1758|   160k|        return es30ReservedFromGLSL(130);
 1759|     84|    case ISAMPLER2DRECT:
  ------------------
  |  Branch (1759:5): [True: 84, False: 42.9M]
  ------------------
 1760|    297|    case USAMPLER2DRECT:
  ------------------
  |  Branch (1760:5): [True: 213, False: 42.9M]
  ------------------
 1761|    297|        afterType = true;
 1762|    297|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1762:13): [True: 297, False: 0]
  ------------------
 1763|    297|            reservedWord();
 1764|    297|        return es30ReservedFromGLSL(140);
 1765|       |
 1766|  3.18k|    case SAMPLERBUFFER:
  ------------------
  |  Branch (1766:5): [True: 3.18k, False: 42.9M]
  ------------------
 1767|  3.18k|        afterType = true;
 1768|  3.18k|        if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1768:14): [True: 594, False: 2.58k]
  |  Branch (1768:44): [True: 28, False: 566]
  ------------------
 1769|  3.15k|            parseContext.extensionsTurnedOn(Num_AEP_texture_buffer, AEP_texture_buffer))
  ------------------
  |  Branch (1769:13): [True: 0, False: 3.15k]
  ------------------
 1770|     28|            return keyword;
 1771|  3.15k|        return es30ReservedFromGLSL(130);
 1772|       |
 1773|  3.13k|    case ISAMPLERBUFFER:
  ------------------
  |  Branch (1773:5): [True: 3.13k, False: 42.9M]
  ------------------
 1774|  6.27k|    case USAMPLERBUFFER:
  ------------------
  |  Branch (1774:5): [True: 3.13k, False: 42.9M]
  ------------------
 1775|  6.27k|        afterType = true;
 1776|  6.27k|        if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1776:14): [True: 1.18k, False: 5.08k]
  |  Branch (1776:44): [True: 56, False: 1.12k]
  ------------------
 1777|  6.21k|            parseContext.extensionsTurnedOn(Num_AEP_texture_buffer, AEP_texture_buffer))
  ------------------
  |  Branch (1777:13): [True: 0, False: 6.21k]
  ------------------
 1778|     56|            return keyword;
 1779|  6.21k|        return es30ReservedFromGLSL(140);
 1780|       |
 1781|  4.67k|    case SAMPLER2DMS:
  ------------------
  |  Branch (1781:5): [True: 4.67k, False: 42.9M]
  ------------------
 1782|  9.25k|    case ISAMPLER2DMS:
  ------------------
  |  Branch (1782:5): [True: 4.57k, False: 42.9M]
  ------------------
 1783|  13.8k|    case USAMPLER2DMS:
  ------------------
  |  Branch (1783:5): [True: 4.57k, False: 42.9M]
  ------------------
 1784|  13.8k|        afterType = true;
 1785|  13.8k|        if (parseContext.isEsProfile() && parseContext.version >= 310)
  ------------------
  |  Branch (1785:13): [True: 1.85k, False: 11.9k]
  |  Branch (1785:43): [True: 1.85k, False: 0]
  ------------------
 1786|  1.85k|            return keyword;
 1787|  11.9k|        if (!parseContext.isEsProfile() && (parseContext.version > 140 ||
  ------------------
  |  Branch (1787:13): [True: 11.9k, False: 0]
  |  Branch (1787:45): [True: 8.87k, False: 3.09k]
  ------------------
 1788|  3.09k|            (parseContext.version == 140 && parseContext.extensionsTurnedOn(1, &E_GL_ARB_texture_multisample))))
  ------------------
  |  Branch (1788:14): [True: 3.09k, False: 0]
  |  Branch (1788:45): [True: 0, False: 3.09k]
  ------------------
 1789|  8.87k|            return keyword;
 1790|  3.09k|        return es30ReservedFromGLSL(150);
 1791|       |
 1792|  4.58k|    case SAMPLER2DMSARRAY:
  ------------------
  |  Branch (1792:5): [True: 4.58k, False: 42.9M]
  ------------------
 1793|  9.16k|    case ISAMPLER2DMSARRAY:
  ------------------
  |  Branch (1793:5): [True: 4.58k, False: 42.9M]
  ------------------
 1794|  13.7k|    case USAMPLER2DMSARRAY:
  ------------------
  |  Branch (1794:5): [True: 4.57k, False: 42.9M]
  ------------------
 1795|  13.7k|        afterType = true;
 1796|  13.7k|        if ((parseContext.isEsProfile() && parseContext.version >= 320) ||
  ------------------
  |  Branch (1796:14): [True: 1.77k, False: 11.9k]
  |  Branch (1796:44): [True: 84, False: 1.69k]
  ------------------
 1797|  13.6k|            parseContext.extensionsTurnedOn(1, &E_GL_OES_texture_storage_multisample_2d_array))
  ------------------
  |  Branch (1797:13): [True: 0, False: 13.6k]
  ------------------
 1798|     84|            return keyword;
 1799|  13.6k|        if (!parseContext.isEsProfile() && (parseContext.version > 140 ||
  ------------------
  |  Branch (1799:13): [True: 11.9k, False: 1.69k]
  |  Branch (1799:45): [True: 8.86k, False: 3.09k]
  ------------------
 1800|  3.09k|            (parseContext.version == 140 && parseContext.extensionsTurnedOn(1, &E_GL_ARB_texture_multisample))))
  ------------------
  |  Branch (1800:14): [True: 3.09k, False: 0]
  |  Branch (1800:45): [True: 0, False: 3.09k]
  ------------------
 1801|  8.86k|            return keyword;
 1802|  4.78k|        return es30ReservedFromGLSL(150);
 1803|       |
 1804|  55.1k|    case SAMPLER1D:
  ------------------
  |  Branch (1804:5): [True: 55.1k, False: 42.8M]
  ------------------
 1805|  86.3k|    case SAMPLER1DSHADOW:
  ------------------
  |  Branch (1805:5): [True: 31.1k, False: 42.9M]
  ------------------
 1806|  86.3k|        afterType = true;
 1807|  86.3k|        if (parseContext.isEsProfile())
  ------------------
  |  Branch (1807:13): [True: 6, False: 86.3k]
  ------------------
 1808|      6|            reservedWord();
 1809|  86.3k|        return keyword;
 1810|       |
 1811|    118|    case SAMPLER2DRECT:
  ------------------
  |  Branch (1811:5): [True: 118, False: 42.9M]
  ------------------
 1812|    233|    case SAMPLER2DRECTSHADOW:
  ------------------
  |  Branch (1812:5): [True: 115, False: 42.9M]
  ------------------
 1813|    233|        afterType = true;
 1814|    233|        if (parseContext.isEsProfile() || parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1814:13): [True: 7, False: 226]
  |  Branch (1814:43): [True: 226, False: 0]
  ------------------
 1815|    233|            reservedWord();
 1816|      0|        else if (parseContext.version < 140 && ! parseContext.symbolTable.atBuiltInLevel() && ! parseContext.extensionTurnedOn(E_GL_ARB_texture_rectangle)) {
  ------------------
  |  Branch (1816:18): [True: 0, False: 0]
  |  Branch (1816:48): [True: 0, False: 0]
  |  Branch (1816:95): [True: 0, False: 0]
  ------------------
 1817|      0|            if (parseContext.relaxedErrors())
  ------------------
  |  Branch (1817:17): [True: 0, False: 0]
  ------------------
 1818|      0|                parseContext.requireExtensions(loc, 1, &E_GL_ARB_texture_rectangle, "texture-rectangle sampler keyword");
 1819|      0|            else
 1820|      0|                reservedWord();
 1821|      0|        }
 1822|    233|        return keyword;
 1823|       |
 1824|  26.5k|    case SAMPLER1DARRAY:
  ------------------
  |  Branch (1824:5): [True: 26.5k, False: 42.9M]
  ------------------
 1825|  26.5k|        afterType = true;
 1826|  26.5k|        if (parseContext.isEsProfile() && parseContext.version == 300)
  ------------------
  |  Branch (1826:13): [True: 298, False: 26.2k]
  |  Branch (1826:43): [True: 0, False: 298]
  ------------------
 1827|      0|            reservedWord();
 1828|  26.5k|        else if ((parseContext.isEsProfile() && parseContext.version < 300) ||
  ------------------
  |  Branch (1828:19): [True: 298, False: 26.2k]
  |  Branch (1828:49): [True: 0, False: 298]
  ------------------
 1829|  26.5k|                 ((!parseContext.isEsProfile() && parseContext.version < 130) &&
  ------------------
  |  Branch (1829:20): [True: 26.2k, False: 298]
  |  Branch (1829:51): [True: 0, False: 26.2k]
  ------------------
 1830|      0|                   !parseContext.symbolTable.atBuiltInLevel() &&
  ------------------
  |  Branch (1830:20): [True: 0, False: 0]
  ------------------
 1831|      0|                   !parseContext.extensionTurnedOn(E_GL_EXT_texture_array)))
  ------------------
  |  Branch (1831:20): [True: 0, False: 0]
  ------------------
 1832|      0|            return identifierOrType();
 1833|  26.5k|        return keyword;
 1834|       |
 1835|     21|    case SAMPLEREXTERNALOES:
  ------------------
  |  Branch (1835:5): [True: 21, False: 42.9M]
  ------------------
 1836|     21|        afterType = true;
 1837|     21|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1837:13): [True: 0, False: 21]
  ------------------
 1838|     21|            parseContext.extensionTurnedOn(E_GL_OES_EGL_image_external) ||
  ------------------
  |  Branch (1838:13): [True: 8, False: 13]
  ------------------
 1839|     13|            parseContext.extensionTurnedOn(E_GL_OES_EGL_image_external_essl3))
  ------------------
  |  Branch (1839:13): [True: 12, False: 1]
  ------------------
 1840|     20|            return keyword;
 1841|      1|        return identifierOrType();
 1842|       |
 1843|      0|    case SAMPLEREXTERNAL2DY2YEXT:
  ------------------
  |  Branch (1843:5): [True: 0, False: 42.9M]
  ------------------
 1844|      0|        afterType = true;
 1845|      0|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1845:13): [True: 0, False: 0]
  ------------------
 1846|      0|            parseContext.extensionTurnedOn(E_GL_EXT_YUV_target))
  ------------------
  |  Branch (1846:13): [True: 0, False: 0]
  ------------------
 1847|      0|            return keyword;
 1848|      0|        return identifierOrType();
 1849|       |
 1850|      1|    case ITEXTURE2DRECT:
  ------------------
  |  Branch (1850:5): [True: 1, False: 42.9M]
  ------------------
 1851|      1|    case UTEXTURE2DRECT:
  ------------------
  |  Branch (1851:5): [True: 0, False: 42.9M]
  ------------------
 1852|      4|    case TEXTURE2DRECT:
  ------------------
  |  Branch (1852:5): [True: 3, False: 42.9M]
  ------------------
 1853|      4|        return identifierOrType();
 1854|       |
 1855|  4.35k|    case ITEXTURE1DARRAY:
  ------------------
  |  Branch (1855:5): [True: 4.35k, False: 42.9M]
  ------------------
 1856|  8.70k|    case UTEXTURE1D:
  ------------------
  |  Branch (1856:5): [True: 4.35k, False: 42.9M]
  ------------------
 1857|  13.0k|    case ITEXTURE1D:
  ------------------
  |  Branch (1857:5): [True: 4.35k, False: 42.9M]
  ------------------
 1858|  17.4k|    case UTEXTURE1DARRAY:
  ------------------
  |  Branch (1858:5): [True: 4.35k, False: 42.9M]
  ------------------
 1859|  20.5k|    case TEXTUREBUFFER:
  ------------------
  |  Branch (1859:5): [True: 3.14k, False: 42.9M]
  ------------------
 1860|  23.6k|    case ITEXTUREBUFFER:
  ------------------
  |  Branch (1860:5): [True: 3.13k, False: 42.9M]
  ------------------
 1861|  26.8k|    case UTEXTUREBUFFER:
  ------------------
  |  Branch (1861:5): [True: 3.13k, False: 42.9M]
  ------------------
 1862|  30.8k|    case TEXTURE2DMS:
  ------------------
  |  Branch (1862:5): [True: 3.97k, False: 42.9M]
  ------------------
 1863|  34.7k|    case ITEXTURE2DMS:
  ------------------
  |  Branch (1863:5): [True: 3.97k, False: 42.9M]
  ------------------
 1864|  38.7k|    case UTEXTURE2DMS:
  ------------------
  |  Branch (1864:5): [True: 3.97k, False: 42.9M]
  ------------------
 1865|  42.7k|    case TEXTURE2DMSARRAY:
  ------------------
  |  Branch (1865:5): [True: 3.97k, False: 42.9M]
  ------------------
 1866|  46.6k|    case ITEXTURE2DMSARRAY:
  ------------------
  |  Branch (1866:5): [True: 3.97k, False: 42.9M]
  ------------------
 1867|  50.6k|    case UTEXTURE2DMSARRAY:
  ------------------
  |  Branch (1867:5): [True: 3.97k, False: 42.9M]
  ------------------
 1868|  55.0k|    case TEXTURE1D:
  ------------------
  |  Branch (1868:5): [True: 4.35k, False: 42.9M]
  ------------------
 1869|  59.3k|    case TEXTURE1DARRAY:
  ------------------
  |  Branch (1869:5): [True: 4.35k, False: 42.9M]
  ------------------
 1870|  59.3k|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1870:13): [True: 59.3k, False: 0]
  ------------------
 1871|  59.3k|            return keyword;
 1872|      0|        else
 1873|      0|            return identifierOrType();
 1874|       |
 1875|  1.43k|    case SUBPASSINPUT:
  ------------------
  |  Branch (1875:5): [True: 1.43k, False: 42.9M]
  ------------------
 1876|  3.46k|    case SUBPASSINPUTMS:
  ------------------
  |  Branch (1876:5): [True: 2.03k, False: 42.9M]
  ------------------
 1877|  4.88k|    case ISUBPASSINPUT:
  ------------------
  |  Branch (1877:5): [True: 1.42k, False: 42.9M]
  ------------------
 1878|  6.91k|    case ISUBPASSINPUTMS:
  ------------------
  |  Branch (1878:5): [True: 2.02k, False: 42.9M]
  ------------------
 1879|  8.33k|    case USUBPASSINPUT:
  ------------------
  |  Branch (1879:5): [True: 1.42k, False: 42.9M]
  ------------------
 1880|  10.3k|    case USUBPASSINPUTMS:
  ------------------
  |  Branch (1880:5): [True: 2.02k, False: 42.9M]
  ------------------
 1881|  13.1k|    case ATTACHMENTEXT:
  ------------------
  |  Branch (1881:5): [True: 2.84k, False: 42.9M]
  ------------------
 1882|  16.0k|    case IATTACHMENTEXT:
  ------------------
  |  Branch (1882:5): [True: 2.84k, False: 42.9M]
  ------------------
 1883|  18.8k|    case UATTACHMENTEXT:
  ------------------
  |  Branch (1883:5): [True: 2.84k, False: 42.9M]
  ------------------
 1884|  18.8k|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1884:13): [True: 18.8k, False: 0]
  ------------------
 1885|  18.8k|            return keyword;
 1886|      0|        else
 1887|      0|            return identifierOrType();
 1888|       |
 1889|      2|    case F16SAMPLER2DRECT:
  ------------------
  |  Branch (1889:5): [True: 2, False: 42.9M]
  ------------------
 1890|      2|    case F16SAMPLER2DRECTSHADOW:
  ------------------
  |  Branch (1890:5): [True: 0, False: 42.9M]
  ------------------
 1891|      2|    case F16IMAGE2DRECT:
  ------------------
  |  Branch (1891:5): [True: 0, False: 42.9M]
  ------------------
 1892|      2|    case F16TEXTURE2DRECT:
  ------------------
  |  Branch (1892:5): [True: 0, False: 42.9M]
  ------------------
 1893|      2|        if (parseContext.spvVersion.vulkan > 0)
  ------------------
  |  Branch (1893:13): [True: 2, False: 0]
  ------------------
 1894|      2|            return identifierOrType();
 1895|      0|        [[fallthrough]];
 1896|  33.7k|    case F16SAMPLER1D:
  ------------------
  |  Branch (1896:5): [True: 33.7k, False: 42.9M]
  ------------------
 1897|   110k|    case F16SAMPLER2D:
  ------------------
  |  Branch (1897:5): [True: 77.0k, False: 42.8M]
  ------------------
 1898|   151k|    case F16SAMPLER3D:
  ------------------
  |  Branch (1898:5): [True: 40.3k, False: 42.8M]
  ------------------
 1899|   176k|    case F16SAMPLERCUBE:
  ------------------
  |  Branch (1899:5): [True: 25.2k, False: 42.9M]
  ------------------
 1900|   194k|    case F16SAMPLER1DARRAY:
  ------------------
  |  Branch (1900:5): [True: 18.0k, False: 42.9M]
  ------------------
 1901|   255k|    case F16SAMPLER2DARRAY:
  ------------------
  |  Branch (1901:5): [True: 61.4k, False: 42.8M]
  ------------------
 1902|   281k|    case F16SAMPLERCUBEARRAY:
  ------------------
  |  Branch (1902:5): [True: 25.2k, False: 42.9M]
  ------------------
 1903|   282k|    case F16SAMPLERBUFFER:
  ------------------
  |  Branch (1903:5): [True: 904, False: 42.9M]
  ------------------
 1904|   283k|    case F16SAMPLER2DMS:
  ------------------
  |  Branch (1904:5): [True: 1.80k, False: 42.9M]
  ------------------
 1905|   285k|    case F16SAMPLER2DMSARRAY:
  ------------------
  |  Branch (1905:5): [True: 1.80k, False: 42.9M]
  ------------------
 1906|   307k|    case F16SAMPLER1DSHADOW:
  ------------------
  |  Branch (1906:5): [True: 21.6k, False: 42.9M]
  ------------------
 1907|   344k|    case F16SAMPLER2DSHADOW:
  ------------------
  |  Branch (1907:5): [True: 37.3k, False: 42.9M]
  ------------------
 1908|   360k|    case F16SAMPLER1DARRAYSHADOW:
  ------------------
  |  Branch (1908:5): [True: 15.6k, False: 42.9M]
  ------------------
 1909|   379k|    case F16SAMPLER2DARRAYSHADOW:
  ------------------
  |  Branch (1909:5): [True: 19.2k, False: 42.9M]
  ------------------
 1910|   395k|    case F16SAMPLERCUBESHADOW:
  ------------------
  |  Branch (1910:5): [True: 15.6k, False: 42.9M]
  ------------------
 1911|   406k|    case F16SAMPLERCUBEARRAYSHADOW:
  ------------------
  |  Branch (1911:5): [True: 10.8k, False: 42.9M]
  ------------------
 1912|       |
 1913|   413k|    case F16IMAGE1D:
  ------------------
  |  Branch (1913:5): [True: 6.92k, False: 42.9M]
  ------------------
 1914|   420k|    case F16IMAGE2D:
  ------------------
  |  Branch (1914:5): [True: 7.52k, False: 42.9M]
  ------------------
 1915|   428k|    case F16IMAGE3D:
  ------------------
  |  Branch (1915:5): [True: 7.52k, False: 42.9M]
  ------------------
 1916|   435k|    case F16IMAGECUBE:
  ------------------
  |  Branch (1916:5): [True: 7.52k, False: 42.9M]
  ------------------
 1917|   442k|    case F16IMAGE1DARRAY:
  ------------------
  |  Branch (1917:5): [True: 6.92k, False: 42.9M]
  ------------------
 1918|   450k|    case F16IMAGE2DARRAY:
  ------------------
  |  Branch (1918:5): [True: 7.52k, False: 42.9M]
  ------------------
 1919|   457k|    case F16IMAGECUBEARRAY:
  ------------------
  |  Branch (1919:5): [True: 7.52k, False: 42.9M]
  ------------------
 1920|   463k|    case F16IMAGEBUFFER:
  ------------------
  |  Branch (1920:5): [True: 6.32k, False: 42.9M]
  ------------------
 1921|   470k|    case F16IMAGE2DMS:
  ------------------
  |  Branch (1921:5): [True: 6.92k, False: 42.9M]
  ------------------
 1922|   477k|    case F16IMAGE2DMSARRAY:
  ------------------
  |  Branch (1922:5): [True: 6.92k, False: 42.9M]
  ------------------
 1923|       |
 1924|   479k|    case F16TEXTURE1D:
  ------------------
  |  Branch (1924:5): [True: 1.80k, False: 42.9M]
  ------------------
 1925|   482k|    case F16TEXTURE2D:
  ------------------
  |  Branch (1925:5): [True: 3.01k, False: 42.9M]
  ------------------
 1926|   485k|    case F16TEXTURE3D:
  ------------------
  |  Branch (1926:5): [True: 3.01k, False: 42.9M]
  ------------------
 1927|   486k|    case F16TEXTURECUBE:
  ------------------
  |  Branch (1927:5): [True: 603, False: 42.9M]
  ------------------
 1928|   487k|    case F16TEXTURE1DARRAY:
  ------------------
  |  Branch (1928:5): [True: 1.80k, False: 42.9M]
  ------------------
 1929|   490k|    case F16TEXTURE2DARRAY:
  ------------------
  |  Branch (1929:5): [True: 3.01k, False: 42.9M]
  ------------------
 1930|   491k|    case F16TEXTURECUBEARRAY:
  ------------------
  |  Branch (1930:5): [True: 603, False: 42.9M]
  ------------------
 1931|   492k|    case F16TEXTUREBUFFER:
  ------------------
  |  Branch (1931:5): [True: 904, False: 42.9M]
  ------------------
 1932|   494k|    case F16TEXTURE2DMS:
  ------------------
  |  Branch (1932:5): [True: 1.80k, False: 42.9M]
  ------------------
 1933|   496k|    case F16TEXTURE2DMSARRAY:
  ------------------
  |  Branch (1933:5): [True: 1.80k, False: 42.9M]
  ------------------
 1934|       |
 1935|   496k|    case F16SUBPASSINPUT:
  ------------------
  |  Branch (1935:5): [True: 302, False: 42.9M]
  ------------------
 1936|   496k|    case F16SUBPASSINPUTMS:
  ------------------
  |  Branch (1936:5): [True: 302, False: 42.9M]
  ------------------
 1937|   496k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1937:13): [True: 496k, False: 71]
  ------------------
 1938|   496k|            parseContext.extensionTurnedOn(E_GL_AMD_gpu_shader_half_float_fetch)) {
  ------------------
  |  Branch (1938:13): [True: 70, False: 1]
  ------------------
 1939|   496k|            afterType = true;
 1940|   496k|            return keyword;
 1941|   496k|        }
 1942|      1|        return identifierOrType();
 1943|       |
 1944|      0|    case EXPLICITINTERPAMD:
  ------------------
  |  Branch (1944:5): [True: 0, False: 42.9M]
  ------------------
 1945|      0|        if (parseContext.extensionTurnedOn(E_GL_AMD_shader_explicit_vertex_parameter))
  ------------------
  |  Branch (1945:13): [True: 0, False: 0]
  ------------------
 1946|      0|            return keyword;
 1947|      0|        return identifierOrType();
 1948|       |
 1949|      0|    case PERVERTEXNV:
  ------------------
  |  Branch (1949:5): [True: 0, False: 42.9M]
  ------------------
 1950|      0|        if ((!parseContext.isEsProfile() && parseContext.version >= 450) ||
  ------------------
  |  Branch (1950:14): [True: 0, False: 0]
  |  Branch (1950:45): [True: 0, False: 0]
  ------------------
 1951|      0|            parseContext.extensionTurnedOn(E_GL_NV_fragment_shader_barycentric))
  ------------------
  |  Branch (1951:13): [True: 0, False: 0]
  ------------------
 1952|      0|            return keyword;
 1953|      0|        return identifierOrType();
 1954|       |
 1955|      0|    case PERVERTEXEXT:
  ------------------
  |  Branch (1955:5): [True: 0, False: 42.9M]
  ------------------
 1956|      0|        if ((!parseContext.isEsProfile() && parseContext.version >= 450) ||
  ------------------
  |  Branch (1956:14): [True: 0, False: 0]
  |  Branch (1956:45): [True: 0, False: 0]
  ------------------
 1957|      0|            parseContext.extensionTurnedOn(E_GL_EXT_fragment_shader_barycentric))
  ------------------
  |  Branch (1957:13): [True: 0, False: 0]
  ------------------
 1958|      0|            return keyword;
 1959|      0|        return identifierOrType();
 1960|       |
 1961|    178|    case PRECISE:
  ------------------
  |  Branch (1961:5): [True: 178, False: 42.9M]
  ------------------
 1962|    178|        if ((parseContext.isEsProfile() &&
  ------------------
  |  Branch (1962:14): [True: 133, False: 45]
  ------------------
 1963|    133|             (parseContext.version >= 320 || parseContext.extensionsTurnedOn(Num_AEP_gpu_shader5, AEP_gpu_shader5))) ||
  ------------------
  |  Branch (1963:15): [True: 9, False: 124]
  |  Branch (1963:46): [True: 58, False: 66]
  ------------------
 1964|    111|            (!parseContext.isEsProfile() &&
  ------------------
  |  Branch (1964:14): [True: 45, False: 66]
  ------------------
 1965|     45|             (parseContext.version >= 400
  ------------------
  |  Branch (1965:15): [True: 7, False: 38]
  ------------------
 1966|     38|             || parseContext.extensionsTurnedOn(Num_AEP_core_gpu_shader5, AEP_core_gpu_shader5))))
  ------------------
  |  Branch (1966:17): [True: 0, False: 38]
  ------------------
 1967|     74|            return keyword;
 1968|    104|        if (parseContext.isEsProfile() && parseContext.version == 310) {
  ------------------
  |  Branch (1968:13): [True: 66, False: 38]
  |  Branch (1968:43): [True: 66, False: 0]
  ------------------
 1969|     66|            reservedWord();
 1970|     66|            return keyword;
 1971|     66|        }
 1972|     38|        return identifierOrType();
 1973|       |
 1974|    308|    case PERPRIMITIVENV:
  ------------------
  |  Branch (1974:5): [True: 308, False: 42.9M]
  ------------------
 1975|  1.84k|    case PERVIEWNV:
  ------------------
  |  Branch (1975:5): [True: 1.54k, False: 42.9M]
  ------------------
 1976|  1.84k|    case PERTASKNV:
  ------------------
  |  Branch (1976:5): [True: 0, False: 42.9M]
  ------------------
 1977|  1.84k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1977:13): [True: 1.84k, False: 0]
  ------------------
 1978|      0|            parseContext.extensionTurnedOn(E_GL_NV_mesh_shader))
  ------------------
  |  Branch (1978:13): [True: 0, False: 0]
  ------------------
 1979|  1.84k|            return keyword;
 1980|      0|        return identifierOrType();
 1981|       |
 1982|    308|    case PERPRIMITIVEEXT:
  ------------------
  |  Branch (1982:5): [True: 308, False: 42.9M]
  ------------------
 1983|    308|    case TASKPAYLOADWORKGROUPEXT:
  ------------------
  |  Branch (1983:5): [True: 0, False: 42.9M]
  ------------------
 1984|    308|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1984:13): [True: 308, False: 0]
  ------------------
 1985|      0|            parseContext.extensionTurnedOn(E_GL_EXT_mesh_shader))
  ------------------
  |  Branch (1985:13): [True: 0, False: 0]
  ------------------
 1986|    308|            return keyword;
 1987|      0|        return identifierOrType();
 1988|       |
 1989|  6.32k|    case FCOOPMATNV:
  ------------------
  |  Branch (1989:5): [True: 6.32k, False: 42.9M]
  ------------------
 1990|  6.32k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1990:13): [True: 6.32k, False: 0]
  ------------------
 1991|  6.32k|            parseContext.extensionTurnedOn(E_GL_NV_cooperative_matrix)) {
  ------------------
  |  Branch (1991:13): [True: 0, False: 0]
  ------------------
 1992|  6.32k|            afterType = true;
 1993|  6.32k|            return keyword;
 1994|  6.32k|        }
 1995|      0|        return identifierOrType();
 1996|       |
 1997|  8.42k|    case UCOOPMATNV:
  ------------------
  |  Branch (1997:5): [True: 8.42k, False: 42.9M]
  ------------------
 1998|  16.8k|    case ICOOPMATNV:
  ------------------
  |  Branch (1998:5): [True: 8.42k, False: 42.9M]
  ------------------
 1999|  16.8k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (1999:13): [True: 16.8k, False: 0]
  ------------------
 2000|  16.8k|            parseContext.extensionTurnedOn(E_GL_NV_integer_cooperative_matrix)) {
  ------------------
  |  Branch (2000:13): [True: 0, False: 0]
  ------------------
 2001|  16.8k|            afterType = true;
 2002|  16.8k|            return keyword;
 2003|  16.8k|        }
 2004|      0|        return identifierOrType();
 2005|  18.3k|    case TENSORARM:
  ------------------
  |  Branch (2005:5): [True: 18.3k, False: 42.9M]
  ------------------
 2006|  18.3k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2006:13): [True: 18.3k, False: 1]
  ------------------
 2007|  18.3k|            parseContext.extensionTurnedOn(E_GL_ARM_tensors)) {
  ------------------
  |  Branch (2007:13): [True: 0, False: 1]
  ------------------
 2008|  18.3k|            afterType = true;
 2009|  18.3k|            return keyword;
 2010|  18.3k|        }
 2011|      1|        return identifierOrType();
 2012|       |
 2013|  65.3k|    case COOPMAT:
  ------------------
  |  Branch (2013:5): [True: 65.3k, False: 42.8M]
  ------------------
 2014|  65.3k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2014:13): [True: 65.3k, False: 0]
  ------------------
 2015|  65.3k|            parseContext.extensionTurnedOn(E_GL_KHR_cooperative_matrix)) {
  ------------------
  |  Branch (2015:13): [True: 0, False: 0]
  ------------------
 2016|  65.3k|            afterType = true;
 2017|  65.3k|            return keyword;
 2018|  65.3k|        }
 2019|      0|        return identifierOrType();
 2020|       |
 2021|   239k|    case COOPVECNV:
  ------------------
  |  Branch (2021:5): [True: 239k, False: 42.6M]
  ------------------
 2022|   239k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2022:13): [True: 239k, False: 0]
  ------------------
 2023|   239k|            parseContext.extensionTurnedOn(E_GL_NV_cooperative_vector)) {
  ------------------
  |  Branch (2023:13): [True: 0, False: 0]
  ------------------
 2024|   239k|            afterType = true;
 2025|   239k|            return keyword;
 2026|   239k|        }
 2027|      0|        return identifierOrType();
 2028|       |
 2029|   576k|    case VECTOR:
  ------------------
  |  Branch (2029:5): [True: 576k, False: 42.3M]
  ------------------
 2030|   576k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2030:13): [True: 576k, False: 0]
  ------------------
 2031|   576k|            parseContext.extensionTurnedOn(E_GL_EXT_long_vector)) {
  ------------------
  |  Branch (2031:13): [True: 0, False: 0]
  ------------------
 2032|   576k|            afterType = true;
 2033|   576k|            return keyword;
 2034|   576k|        }
 2035|      0|        return identifierOrType();
 2036|       |
 2037|      0|    case DEMOTE:
  ------------------
  |  Branch (2037:5): [True: 0, False: 42.9M]
  ------------------
 2038|      0|        if (parseContext.extensionTurnedOn(E_GL_EXT_demote_to_helper_invocation))
  ------------------
  |  Branch (2038:13): [True: 0, False: 0]
  ------------------
 2039|      0|            return keyword;
 2040|      0|        else
 2041|      0|            return identifierOrType();
 2042|       |
 2043|      0|    case SPIRV_INSTRUCTION:
  ------------------
  |  Branch (2043:5): [True: 0, False: 42.9M]
  ------------------
 2044|      0|    case SPIRV_EXECUTION_MODE:
  ------------------
  |  Branch (2044:5): [True: 0, False: 42.9M]
  ------------------
 2045|      0|    case SPIRV_EXECUTION_MODE_ID:
  ------------------
  |  Branch (2045:5): [True: 0, False: 42.9M]
  ------------------
 2046|      0|    case SPIRV_DECORATE:
  ------------------
  |  Branch (2046:5): [True: 0, False: 42.9M]
  ------------------
 2047|      0|    case SPIRV_DECORATE_ID:
  ------------------
  |  Branch (2047:5): [True: 0, False: 42.9M]
  ------------------
 2048|      0|    case SPIRV_DECORATE_STRING:
  ------------------
  |  Branch (2048:5): [True: 0, False: 42.9M]
  ------------------
 2049|      0|    case SPIRV_TYPE:
  ------------------
  |  Branch (2049:5): [True: 0, False: 42.9M]
  ------------------
 2050|      0|    case SPIRV_STORAGE_CLASS:
  ------------------
  |  Branch (2050:5): [True: 0, False: 42.9M]
  ------------------
 2051|      0|    case SPIRV_BY_REFERENCE:
  ------------------
  |  Branch (2051:5): [True: 0, False: 42.9M]
  ------------------
 2052|      0|    case SPIRV_LITERAL:
  ------------------
  |  Branch (2052:5): [True: 0, False: 42.9M]
  ------------------
 2053|      0|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2053:13): [True: 0, False: 0]
  ------------------
 2054|      0|            parseContext.extensionTurnedOn(E_GL_EXT_spirv_intrinsics))
  ------------------
  |  Branch (2054:13): [True: 0, False: 0]
  ------------------
 2055|      0|            return keyword;
 2056|      0|        return identifierOrType();
 2057|       |
 2058|  5.08k|    case HITOBJECTNV:
  ------------------
  |  Branch (2058:5): [True: 5.08k, False: 42.9M]
  ------------------
 2059|  5.08k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2059:13): [True: 5.08k, False: 0]
  ------------------
 2060|      0|            (!parseContext.isEsProfile() && parseContext.version >= 460
  ------------------
  |  Branch (2060:14): [True: 0, False: 0]
  |  Branch (2060:45): [True: 0, False: 0]
  ------------------
 2061|      0|                 && parseContext.extensionTurnedOn(E_GL_NV_shader_invocation_reorder)))
  ------------------
  |  Branch (2061:21): [True: 0, False: 0]
  ------------------
 2062|  5.08k|            return keyword;
 2063|      0|        return identifierOrType();
 2064|       |
 2065|  4.54k|    case HITOBJECTEXT:
  ------------------
  |  Branch (2065:5): [True: 4.54k, False: 42.9M]
  ------------------
 2066|  4.54k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2066:13): [True: 4.54k, False: 0]
  ------------------
 2067|      0|            (!parseContext.isEsProfile() && parseContext.version >= 460
  ------------------
  |  Branch (2067:14): [True: 0, False: 0]
  |  Branch (2067:45): [True: 0, False: 0]
  ------------------
 2068|      0|                 && parseContext.extensionTurnedOn(E_GL_EXT_shader_invocation_reorder)))
  ------------------
  |  Branch (2068:21): [True: 0, False: 0]
  ------------------
 2069|  4.54k|            return keyword;
 2070|      0|        return identifierOrType();
 2071|       |
 2072|      0|    case HITOBJECTATTRNV:
  ------------------
  |  Branch (2072:5): [True: 0, False: 42.9M]
  ------------------
 2073|      0|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2073:13): [True: 0, False: 0]
  ------------------
 2074|      0|            (!parseContext.isEsProfile() && parseContext.version >= 460
  ------------------
  |  Branch (2074:14): [True: 0, False: 0]
  |  Branch (2074:45): [True: 0, False: 0]
  ------------------
 2075|      0|                 && parseContext.extensionTurnedOn(E_GL_NV_shader_invocation_reorder)))
  ------------------
  |  Branch (2075:21): [True: 0, False: 0]
  ------------------
 2076|      0|            return keyword;
 2077|      0|        return identifierOrType();
 2078|       |
 2079|      0|    case HITOBJECTATTREXT:
  ------------------
  |  Branch (2079:5): [True: 0, False: 42.9M]
  ------------------
 2080|      0|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2080:13): [True: 0, False: 0]
  ------------------
 2081|      0|            (!parseContext.isEsProfile() && parseContext.version >= 460
  ------------------
  |  Branch (2081:14): [True: 0, False: 0]
  |  Branch (2081:45): [True: 0, False: 0]
  ------------------
 2082|      0|                 && parseContext.extensionTurnedOn(E_GL_EXT_shader_invocation_reorder)))
  ------------------
  |  Branch (2082:21): [True: 0, False: 0]
  ------------------
 2083|      0|            return keyword;
 2084|      0|        return identifierOrType();
 2085|       |
 2086|  4.21k|    case FUNCTION:
  ------------------
  |  Branch (2086:5): [True: 4.21k, False: 42.9M]
  ------------------
 2087|  22.2k|    case TENSORLAYOUTNV:
  ------------------
  |  Branch (2087:5): [True: 18.0k, False: 42.9M]
  ------------------
 2088|  33.4k|    case TENSORVIEWNV:
  ------------------
  |  Branch (2088:5): [True: 11.1k, False: 42.9M]
  ------------------
 2089|  33.4k|        if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2089:13): [True: 33.4k, False: 0]
  ------------------
 2090|  33.4k|            parseContext.extensionTurnedOn(E_GL_NV_cooperative_matrix2)) {
  ------------------
  |  Branch (2090:13): [True: 0, False: 0]
  ------------------
 2091|  33.4k|            afterType = true;
 2092|  33.4k|            return keyword;
 2093|  33.4k|        }
 2094|      0|        return identifierOrType();
 2095|       |
 2096|      0|    case RESOURCEHEAP:
  ------------------
  |  Branch (2096:5): [True: 0, False: 42.9M]
  ------------------
 2097|      0|    case SAMPLERHEAP:
  ------------------
  |  Branch (2097:5): [True: 0, False: 42.9M]
  ------------------
 2098|      0|        if (parseContext.extensionTurnedOn(E_GL_EXT_structured_descriptor_heap) &&
  ------------------
  |  Branch (2098:13): [True: 0, False: 0]
  ------------------
 2099|      0|            parseContext.extensionTurnedOn(E_GL_EXT_descriptor_heap))
  ------------------
  |  Branch (2099:13): [True: 0, False: 0]
  ------------------
 2100|      0|            return keyword;
 2101|      0|        return identifierOrType();
 2102|       |
 2103|      0|    case INLINE:
  ------------------
  |  Branch (2103:5): [True: 0, False: 42.9M]
  ------------------
 2104|      0|    case NOINLINE:
  ------------------
  |  Branch (2104:5): [True: 0, False: 42.9M]
  ------------------
 2105|      0|        if (!parseContext.extensionTurnedOn(E_GL_EXT_function_control_attributes))
  ------------------
  |  Branch (2105:13): [True: 0, False: 0]
  ------------------
 2106|      0|            return reservedWord();
 2107|      0|        return keyword;
 2108|       |
 2109|      0|    default:
  ------------------
  |  Branch (2109:5): [True: 0, False: 42.9M]
  ------------------
 2110|      0|        parseContext.infoSink.info.message(EPrefixInternalError, "Unknown glslang keyword", loc);
 2111|      0|        return 0;
 2112|  42.9M|    }
 2113|  42.9M|}
_ZN7glslang12TScanContext16identifierOrTypeEv:
 2116|  14.8M|{
 2117|  14.8M|    parserToken->sType.lex.string = NewPoolTString(tokenText);
 2118|  14.8M|    if (field)
  ------------------
  |  Branch (2118:9): [True: 9.49k, False: 14.8M]
  ------------------
 2119|  9.49k|        return IDENTIFIER;
 2120|       |
 2121|       |    // If we see an identifier right after a type, this might be a declarator.
 2122|       |    // But not in template parameters (inside angle brackets), array expressions (inside square brackets),
 2123|       |    // or function parameters (inside parentheses)
 2124|  14.8M|    if (afterType && angleBracketDepth == 0 && squareBracketDepth == 0 && parenDepth == 0) {
  ------------------
  |  Branch (2124:9): [True: 14.5M, False: 298k]
  |  Branch (2124:22): [True: 14.5M, False: 1]
  |  Branch (2124:48): [True: 14.5M, False: 19]
  |  Branch (2124:75): [True: 10.6M, False: 3.82M]
  ------------------
 2125|  10.6M|        afterDeclarator = true;
 2126|  10.6M|        afterType = false;
 2127|  10.6M|        return IDENTIFIER;
 2128|  10.6M|    }
 2129|       |
 2130|  4.12M|    parserToken->sType.lex.symbol = parseContext.symbolTable.find(*parserToken->sType.lex.string);
 2131|  4.12M|    if ((afterType == false && afterStruct == false) && parserToken->sType.lex.symbol != nullptr) {
  ------------------
  |  Branch (2131:10): [True: 298k, False: 3.82M]
  |  Branch (2131:32): [True: 297k, False: 1.25k]
  |  Branch (2131:57): [True: 214k, False: 82.8k]
  ------------------
 2132|   214k|        if (const TVariable* variable = parserToken->sType.lex.symbol->getAsVariable()) {
  ------------------
  |  Branch (2132:30): [True: 209k, False: 4.71k]
  ------------------
 2133|   209k|            if (variable->isUserType() &&
  ------------------
  |  Branch (2133:17): [True: 12.4k, False: 197k]
  ------------------
 2134|       |                // treat redeclaration of forward-declared buffer/uniform reference as an identifier
 2135|  12.4k|                !(variable->getType().isReference() && afterBuffer)) {
  ------------------
  |  Branch (2135:19): [True: 16, False: 12.3k]
  |  Branch (2135:56): [True: 0, False: 16]
  ------------------
 2136|       |
 2137|       |                // If we're in a declarator list (like "float a, B;"), treat struct names as IDENTIFIER
 2138|       |                // to fix GitHub issue #3931
 2139|  12.4k|                if (inDeclaratorList) {
  ------------------
  |  Branch (2139:21): [True: 0, False: 12.4k]
  ------------------
 2140|      0|                    return IDENTIFIER;
 2141|      0|                }
 2142|       |
 2143|  12.4k|                afterType = true;
 2144|  12.4k|                return TYPE_NAME;
 2145|  12.4k|            }
 2146|   209k|        }
 2147|   214k|    }
 2148|       |
 2149|  4.10M|    return IDENTIFIER;
 2150|  4.12M|}
_ZN7glslang12TScanContext12reservedWordEv:
 2156|  87.4k|{
 2157|  87.4k|    if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  Branch (2157:9): [True: 9.65k, False: 77.7k]
  ------------------
 2158|  9.65k|        parseContext.error(loc, "Reserved word.", tokenText, "");
 2159|       |
 2160|  87.4k|    return 0;
 2161|  87.4k|}
_ZN7glslang12TScanContext20es30ReservedFromGLSLEi:
 2180|  1.57M|{
 2181|  1.57M|    if (parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  Branch (2181:9): [True: 1.57M, False: 1.63k]
  ------------------
 2182|  1.57M|        return keyword;
 2183|       |
 2184|  1.63k|    if ((parseContext.isEsProfile() && parseContext.version < 300) ||
  ------------------
  |  Branch (2184:10): [True: 227, False: 1.41k]
  |  Branch (2184:40): [True: 0, False: 227]
  ------------------
 2185|  1.63k|        (!parseContext.isEsProfile() && parseContext.version < version)) {
  ------------------
  |  Branch (2185:10): [True: 1.41k, False: 227]
  |  Branch (2185:41): [True: 5, False: 1.40k]
  ------------------
 2186|      5|            if (parseContext.isForwardCompatible())
  ------------------
  |  Branch (2186:17): [True: 0, False: 5]
  ------------------
 2187|      0|                parseContext.warn(loc, "future reserved word in ES 300 and keyword in GLSL", tokenText, "");
 2188|       |
 2189|      5|            return identifierOrType();
 2190|  1.63k|    } else if (parseContext.isEsProfile() && parseContext.version >= 300)
  ------------------
  |  Branch (2190:16): [True: 227, False: 1.40k]
  |  Branch (2190:46): [True: 227, False: 0]
  ------------------
 2191|    227|        reservedWord();
 2192|       |
 2193|  1.63k|    return keyword;
 2194|  1.63k|}
_ZN7glslang12TScanContext18nonreservedKeywordEii:
 2199|  6.30M|{
 2200|  6.30M|    if ((parseContext.isEsProfile() && parseContext.version < esVersion) ||
  ------------------
  |  Branch (2200:10): [True: 969k, False: 5.33M]
  |  Branch (2200:40): [True: 0, False: 969k]
  ------------------
 2201|  6.30M|        (!parseContext.isEsProfile() && parseContext.version < nonEsVersion)) {
  ------------------
  |  Branch (2201:10): [True: 5.33M, False: 969k]
  |  Branch (2201:41): [True: 0, False: 5.33M]
  ------------------
 2202|      0|        if (parseContext.isForwardCompatible())
  ------------------
  |  Branch (2202:13): [True: 0, False: 0]
  ------------------
 2203|      0|            parseContext.warn(loc, "using future keyword", tokenText, "");
 2204|       |
 2205|      0|        return identifierOrType();
 2206|      0|    }
 2207|       |
 2208|  6.30M|    return keyword;
 2209|  6.30M|}
_ZN7glslang12TScanContext16precisionKeywordEv:
 2212|  1.99M|{
 2213|  1.99M|    if (parseContext.isEsProfile() || parseContext.version >= 130)
  ------------------
  |  Branch (2213:9): [True: 421k, False: 1.57M]
  |  Branch (2213:39): [True: 1.57M, False: 0]
  ------------------
 2214|  1.99M|        return keyword;
 2215|       |
 2216|      0|    if (parseContext.isForwardCompatible())
  ------------------
  |  Branch (2216:9): [True: 0, False: 0]
  ------------------
 2217|      0|        parseContext.warn(loc, "using ES precision qualifier keyword", tokenText, "");
 2218|       |
 2219|      0|    return identifierOrType();
 2220|  1.99M|}
_ZN7glslang12TScanContext6matNxMEv:
 2223|  58.2k|{
 2224|  58.2k|    afterType = true;
 2225|       |
 2226|  58.2k|    if (parseContext.version > 110)
  ------------------
  |  Branch (2226:9): [True: 58.2k, False: 0]
  ------------------
 2227|  58.2k|        return keyword;
 2228|       |
 2229|      0|    if (parseContext.isForwardCompatible())
  ------------------
  |  Branch (2229:9): [True: 0, False: 0]
  ------------------
 2230|      0|        parseContext.warn(loc, "using future non-square matrix type keyword", tokenText, "");
 2231|       |
 2232|      0|    return identifierOrType();
 2233|  58.2k|}
_ZN7glslang12TScanContext4dMatEv:
 2236|  47.6k|{
 2237|  47.6k|    afterType = true;
 2238|       |
 2239|  47.6k|    if (parseContext.isEsProfile() && parseContext.version >= 300) {
  ------------------
  |  Branch (2239:9): [True: 10, False: 47.6k]
  |  Branch (2239:39): [True: 10, False: 0]
  ------------------
 2240|     10|        reservedWord();
 2241|       |
 2242|     10|        return keyword;
 2243|     10|    }
 2244|       |
 2245|  47.6k|    if (!parseContext.isEsProfile() && (parseContext.version >= 400 ||
  ------------------
  |  Branch (2245:9): [True: 47.6k, False: 0]
  |  Branch (2245:41): [True: 35.8k, False: 11.7k]
  ------------------
 2246|  11.7k|        parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2246:9): [True: 11.7k, False: 1]
  ------------------
 2247|      1|        (parseContext.version >= 150 && parseContext.extensionTurnedOn(E_GL_ARB_gpu_shader_fp64)) ||
  ------------------
  |  Branch (2247:10): [True: 0, False: 1]
  |  Branch (2247:41): [True: 0, False: 0]
  ------------------
 2248|      1|        (parseContext.version >= 150 && parseContext.extensionTurnedOn(E_GL_ARB_vertex_attrib_64bit)
  ------------------
  |  Branch (2248:10): [True: 0, False: 1]
  |  Branch (2248:41): [True: 0, False: 0]
  ------------------
 2249|      0|         && parseContext.language == EShLangVertex)))
  ------------------
  |  Branch (2249:13): [True: 0, False: 0]
  ------------------
 2250|  47.6k|        return keyword;
 2251|       |
 2252|      1|    if (parseContext.isForwardCompatible())
  ------------------
  |  Branch (2252:9): [True: 0, False: 1]
  ------------------
 2253|      0|        parseContext.warn(loc, "using future type keyword", tokenText, "");
 2254|       |
 2255|      1|    return identifierOrType();
 2256|  47.6k|}
_ZN7glslang12TScanContext20firstGenerationImageEb:
 2259|   755k|{
 2260|   755k|    if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2260:9): [True: 753k, False: 1.88k]
  ------------------
 2261|  1.88k|        (!parseContext.isEsProfile() && (parseContext.version >= 420 ||
  ------------------
  |  Branch (2261:10): [True: 1.00k, False: 883]
  |  Branch (2261:42): [True: 988, False: 15]
  ------------------
 2262|     15|         parseContext.extensionTurnedOn(E_GL_ARB_shader_image_load_store))) ||
  ------------------
  |  Branch (2262:10): [True: 1, False: 14]
  ------------------
 2263|    897|        (inEs310 && parseContext.isEsProfile() && parseContext.version >= 310))
  ------------------
  |  Branch (2263:10): [True: 885, False: 12]
  |  Branch (2263:21): [True: 875, False: 10]
  |  Branch (2263:51): [True: 875, False: 0]
  ------------------
 2264|   755k|        return keyword;
 2265|       |
 2266|     22|    if ((parseContext.isEsProfile() && parseContext.version >= 300) ||
  ------------------
  |  Branch (2266:10): [True: 8, False: 14]
  |  Branch (2266:40): [True: 8, False: 0]
  ------------------
 2267|     22|        (!parseContext.isEsProfile() && parseContext.version >= 130)) {
  ------------------
  |  Branch (2267:10): [True: 14, False: 0]
  |  Branch (2267:41): [True: 14, False: 0]
  ------------------
 2268|     22|        reservedWord();
 2269|       |
 2270|     22|        return keyword;
 2271|     22|    }
 2272|       |
 2273|      0|    if (parseContext.isForwardCompatible())
  ------------------
  |  Branch (2273:9): [True: 0, False: 0]
  ------------------
 2274|      0|        parseContext.warn(loc, "using future type keyword", tokenText, "");
 2275|       |
 2276|      0|    return identifierOrType();
 2277|     22|}
_ZN7glslang12TScanContext21secondGenerationImageEv:
 2280|   319k|{
 2281|   319k|    if (parseContext.isEsProfile() && parseContext.version >= 310) {
  ------------------
  |  Branch (2281:9): [True: 49.6k, False: 269k]
  |  Branch (2281:39): [True: 49.6k, False: 0]
  ------------------
 2282|  49.6k|        reservedWord();
 2283|  49.6k|        return keyword;
 2284|  49.6k|    }
 2285|       |
 2286|   269k|    if (parseContext.symbolTable.atBuiltInLevel() ||
  ------------------
  |  Branch (2286:9): [True: 269k, False: 259]
  ------------------
 2287|    259|        (!parseContext.isEsProfile() &&
  ------------------
  |  Branch (2287:10): [True: 259, False: 0]
  ------------------
 2288|    259|         (parseContext.version >= 420 || parseContext.extensionTurnedOn(E_GL_ARB_shader_image_load_store))))
  ------------------
  |  Branch (2288:11): [True: 258, False: 1]
  |  Branch (2288:42): [True: 0, False: 1]
  ------------------
 2289|   269k|        return keyword;
 2290|       |
 2291|      1|    if (parseContext.isForwardCompatible())
  ------------------
  |  Branch (2291:9): [True: 0, False: 1]
  ------------------
 2292|      0|        parseContext.warn(loc, "using future type keyword", tokenText, "");
 2293|       |
 2294|      1|    return identifierOrType();
 2295|   269k|}
_ZN7glslang12TParserTokenC2ER7YYSTYPE:
  291|   105M|    explicit TParserToken(YYSTYPE& b) : sType(b) { }
Scan.cpp:_ZNK12_GLOBAL__N_18str_hashclEPKc:
  322|   115M|    {
  323|       |        // djb2
  324|   115M|        unsigned long hash = 5381;
  325|   115M|        int c;
  326|       |
  327|  1.05G|        while ((c = *str++) != 0)
  ------------------
  |  Branch (327:16): [True: 937M, False: 115M]
  ------------------
  328|   937M|            hash = ((hash << 5) + hash) + c;
  329|       |
  330|   115M|        return hash;
  331|   115M|    }
Scan.cpp:_ZNK12_GLOBAL__N_16str_eqclEPKcS2_:
  314|  42.9M|    {
  315|  42.9M|        return strcmp(lhs, rhs) == 0;
  316|  42.9M|    }

ShInitialize:
 1361|  1.42k|{
 1362|  1.42k|#ifndef DISABLE_THREAD_SUPPORT
 1363|  1.42k|    const std::lock_guard<std::mutex> lock(init_lock);
 1364|  1.42k|#endif
 1365|  1.42k|    ++NumberOfClients;
 1366|       |
 1367|  1.42k|    if (PerProcessGPA == nullptr)
  ------------------
  |  Branch (1367:9): [True: 1.42k, False: 0]
  ------------------
 1368|  1.42k|        PerProcessGPA = new TPoolAllocator();
 1369|       |
 1370|  1.42k|    return 1;
 1371|  1.42k|}
ShFinalize:
 1418|  1.42k|{
 1419|  1.42k|#ifndef DISABLE_THREAD_SUPPORT
 1420|  1.42k|    const std::lock_guard<std::mutex> lock(init_lock);
 1421|  1.42k|#endif
 1422|  1.42k|    --NumberOfClients;
 1423|  1.42k|    assert(NumberOfClients >= 0);
 1424|  1.42k|    if (NumberOfClients > 0)
  ------------------
  |  Branch (1424:9): [True: 0, False: 1.42k]
  ------------------
 1425|      0|        return 1;
 1426|       |
 1427|  25.5k|    for (int version = 0; version < VersionCount; ++version) {
  ------------------
  |  Branch (1427:27): [True: 24.1k, False: 1.42k]
  ------------------
 1428|   120k|        for (int spvVersion = 0; spvVersion < SpvVersionCount; ++spvVersion) {
  ------------------
  |  Branch (1428:34): [True: 96.5k, False: 24.1k]
  ------------------
 1429|   482k|            for (int p = 0; p < ProfileCount; ++p) {
  ------------------
  |  Branch (1429:29): [True: 386k, False: 96.5k]
  ------------------
 1430|  1.15M|                for (int source = 0; source < SourceCount; ++source) {
  ------------------
  |  Branch (1430:38): [True: 772k, False: 386k]
  ------------------
 1431|  11.5M|                    for (int stage = 0; stage < EShLangCount; ++stage) {
  ------------------
  |  Branch (1431:41): [True: 10.8M, False: 772k]
  ------------------
 1432|  10.8M|                        delete SharedSymbolTables[version][spvVersion][p][source][stage];
 1433|  10.8M|                        SharedSymbolTables[version][spvVersion][p][source][stage] = nullptr;
 1434|  10.8M|                    }
 1435|   772k|                }
 1436|   386k|            }
 1437|  96.5k|        }
 1438|  24.1k|    }
 1439|       |
 1440|  25.5k|    for (int version = 0; version < VersionCount; ++version) {
  ------------------
  |  Branch (1440:27): [True: 24.1k, False: 1.42k]
  ------------------
 1441|   120k|        for (int spvVersion = 0; spvVersion < SpvVersionCount; ++spvVersion) {
  ------------------
  |  Branch (1441:34): [True: 96.5k, False: 24.1k]
  ------------------
 1442|   482k|            for (int p = 0; p < ProfileCount; ++p) {
  ------------------
  |  Branch (1442:29): [True: 386k, False: 96.5k]
  ------------------
 1443|  1.15M|                for (int source = 0; source < SourceCount; ++source) {
  ------------------
  |  Branch (1443:38): [True: 772k, False: 386k]
  ------------------
 1444|  2.31M|                    for (int pc = 0; pc < EPcCount; ++pc) {
  ------------------
  |  Branch (1444:38): [True: 1.54M, False: 772k]
  ------------------
 1445|  1.54M|                        delete CommonSymbolTable[version][spvVersion][p][source][pc];
 1446|  1.54M|                        CommonSymbolTable[version][spvVersion][p][source][pc] = nullptr;
 1447|  1.54M|                    }
 1448|   772k|                }
 1449|   386k|            }
 1450|  96.5k|        }
 1451|  24.1k|    }
 1452|       |
 1453|  1.42k|    if (PerProcessGPA != nullptr) {
  ------------------
  |  Branch (1453:9): [True: 1.42k, False: 0]
  ------------------
 1454|  1.42k|        delete PerProcessGPA;
 1455|  1.42k|        PerProcessGPA = nullptr;
 1456|  1.42k|    }
 1457|       |
 1458|  1.42k|    return 1;
 1459|  1.42k|}
_ZN7glslang16GetKhronosToolIdEv:
 1742|     42|{
 1743|     42|    return 8;
 1744|     42|}
_ZN7glslang17InitializeProcessEv:
 1747|  1.42k|{
 1748|  1.42k|    return ShInitialize() != 0;
 1749|  1.42k|}
_ZN7glslang15FinalizeProcessEv:
 1752|  1.42k|{
 1753|  1.42k|    ShFinalize();
 1754|  1.42k|}
_ZN7glslang7TShaderC2E11EShLanguage:
 1767|  4.26k|    : stage(s), lengths(nullptr), stringNames(nullptr), preamble(""), overrideVersion(0)
 1768|  4.26k|{
 1769|  4.26k|    pool = new TPoolAllocator;
 1770|  4.26k|    infoSink = new TInfoSink;
 1771|  4.26k|    compiler = new TDeferredCompiler(stage, *infoSink);
 1772|  4.26k|    intermediate = new TIntermediate(s);
 1773|       |
 1774|       |    // clear environment (avoid constructors in them for use in a C interface)
 1775|  4.26k|    environment.input.languageFamily = EShSourceNone;
 1776|  4.26k|    environment.input.dialect = EShClientNone;
 1777|  4.26k|    environment.input.vulkanRulesRelaxed = false;
 1778|  4.26k|    environment.client.client = EShClientNone;
 1779|  4.26k|    environment.target.language = EShTargetNone;
 1780|  4.26k|    environment.target.hlslFunctionality1 = false;
 1781|  4.26k|}
_ZN7glslang7TShaderD2Ev:
 1784|  4.26k|{
 1785|  4.26k|    delete infoSink;
 1786|  4.26k|    delete compiler;
 1787|  4.26k|    delete intermediate;
 1788|  4.26k|    delete pool;
 1789|  4.26k|}
_ZN7glslang7TShader29setStringsWithLengthsAndNamesEPKPKcPKiS4_i:
 1807|  4.26k|{
 1808|  4.26k|    strings = s;
 1809|  4.26k|    numStrings = n;
 1810|  4.26k|    lengths = l;
 1811|  4.26k|    stringNames = names;
 1812|  4.26k|}
_ZN7glslang7TShader13setEntryPointEPKc:
 1815|  1.42k|{
 1816|  1.42k|    intermediate->setEntryPointName(entryPoint);
 1817|  1.42k|}
_ZN7glslang7TShader10setInvertYEb:
 1842|  4.26k|void TShader::setInvertY(bool invert)                   { intermediate->setInvertY(invert); }
_ZN7glslang7TShader17setNanMinMaxClampEb:
 1845|  4.26k|void TShader::setNanMinMaxClamp(bool useNonNan)         { intermediate->setNanMinMaxClamp(useNonNan); }
_ZN7glslang7TShader15setShiftBindingENS_13TResourceTypeEj:
 1849|  8.52k|void TShader::setShiftBinding(TResourceType res, unsigned int base) {
 1850|  8.52k|    intermediate->setShiftBinding(res, base);
 1851|  8.52k|}
_ZN7glslang7TShader22setShiftSamplerBindingEj:
 1859|  1.42k|void TShader::setShiftSamplerBinding(unsigned int base) { setShiftBinding(EResSampler, base); }
_ZN7glslang7TShader22setShiftTextureBindingEj:
 1861|  1.42k|void TShader::setShiftTextureBinding(unsigned int base) { setShiftBinding(EResTexture, base); }
_ZN7glslang7TShader20setShiftImageBindingEj:
 1863|  1.42k|void TShader::setShiftImageBinding(unsigned int base)   { setShiftBinding(EResImage, base); }
_ZN7glslang7TShader18setShiftUboBindingEj:
 1865|  1.42k|void TShader::setShiftUboBinding(unsigned int base)     { setShiftBinding(EResUbo, base); }
_ZN7glslang7TShader18setShiftUavBindingEj:
 1869|  1.42k|void TShader::setShiftUavBinding(unsigned int base)     { setShiftBinding(EResUav, base); }
_ZN7glslang7TShader19setShiftSsboBindingEj:
 1871|  1.42k|void TShader::setShiftSsboBinding(unsigned int base)    { setShiftBinding(EResSsbo, base); }
_ZN7glslang7TShader18setAutoMapBindingsEb:
 1873|  1.42k|void TShader::setAutoMapBindings(bool map)              { intermediate->setAutoMapBindings(map); }
_ZN7glslang7TShader19setAutoMapLocationsEb:
 1877|  1.42k|void TShader::setAutoMapLocations(bool map)             { intermediate->setAutoMapLocations(map); }
_ZN7glslang7TShader21setResourceSetBindingERKNSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEE:
 1888|  1.42k|void TShader::setResourceSetBinding(const std::vector<std::string>& base)   { intermediate->setResourceSetBinding(base); }
_ZN7glslang7TShader16setHlslIoMappingEb:
 1905|  1.42k|void TShader::setHlslIoMapping(bool hlslIoMap)          { intermediate->setHlslIoMapping(hlslIoMap); }
_ZN7glslang7TShader5parseEPK16TBuiltInResourcei8EProfilebb11EShMessagesRNS0_8IncluderE:
 1916|  1.42k|{
 1917|  1.42k|    SetThreadPoolAllocator(pool);
 1918|       |
 1919|  1.42k|    if (! preamble)
  ------------------
  |  Branch (1919:9): [True: 0, False: 1.42k]
  ------------------
 1920|      0|        preamble = "";
 1921|       |
 1922|  1.42k|    return CompileDeferred(compiler, strings, numStrings, lengths, stringNames,
 1923|  1.42k|                           preamble, EShOptNone, builtInResources, defaultVersion,
 1924|  1.42k|                           defaultProfile, forceDefaultVersionAndProfile, overrideVersion,
 1925|  1.42k|                           forwardCompatible, messages, *intermediate, includer, sourceEntryPointName,
 1926|  1.42k|                           &environment, compileOnly);
 1927|  1.42k|}
_ZN7glslang7TShader10preprocessEPK16TBuiltInResourcei8EProfilebb11EShMessagesPNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEERNS0_8IncluderE:
 1940|  2.84k|{
 1941|  2.84k|    SetThreadPoolAllocator(pool);
 1942|       |
 1943|  2.84k|    if (! preamble)
  ------------------
  |  Branch (1943:9): [True: 0, False: 2.84k]
  ------------------
 1944|      0|        preamble = "";
 1945|       |
 1946|  2.84k|    return PreprocessDeferred(compiler, strings, numStrings, lengths, stringNames, preamble,
 1947|  2.84k|                              EShOptNone, builtInResources, defaultVersion,
 1948|  2.84k|                              defaultProfile, forceDefaultVersionAndProfile, overrideVersion,
 1949|  2.84k|                              forwardCompatible, message, includer, *intermediate, output_string,
 1950|  2.84k|                              &environment);
 1951|  2.84k|}
_ZN7glslang7TShader10getInfoLogEv:
 1954|  4.26k|{
 1955|  4.26k|    return infoSink->info.c_str();
 1956|  4.26k|}
_ZN7glslang8TProgramC2Ev:
 1963|     43|TProgram::TProgram() : reflection(nullptr), linked(false)
 1964|     43|{
 1965|     43|    pool = new TPoolAllocator;
 1966|     43|    infoSink = new TInfoSink;
 1967|    645|    for (int s = 0; s < EShLangCount; ++s) {
  ------------------
  |  Branch (1967:21): [True: 602, False: 43]
  ------------------
 1968|    602|        intermediate[s] = nullptr;
 1969|    602|        newedIntermediate[s] = false;
 1970|    602|    }
 1971|     43|}
_ZN7glslang8TProgramD2Ev:
 1974|     43|{
 1975|     43|    delete infoSink;
 1976|     43|    delete reflection;
 1977|       |
 1978|    645|    for (int s = 0; s < EShLangCount; ++s)
  ------------------
  |  Branch (1978:21): [True: 602, False: 43]
  ------------------
 1979|    602|        if (newedIntermediate[s])
  ------------------
  |  Branch (1979:13): [True: 0, False: 602]
  ------------------
 1980|      0|            delete intermediate[s];
 1981|       |
 1982|     43|    delete pool;
 1983|     43|}
_ZN7glslang8TProgram4linkE11EShMessages:
 1992|     43|{
 1993|     43|    if (linked)
  ------------------
  |  Branch (1993:9): [True: 0, False: 43]
  ------------------
 1994|      0|        return false;
 1995|     43|    linked = true;
 1996|       |
 1997|     43|    bool error = false;
 1998|       |
 1999|     43|    SetThreadPoolAllocator(pool);
 2000|       |
 2001|    645|    for (int s = 0; s < EShLangCount; ++s) {
  ------------------
  |  Branch (2001:21): [True: 602, False: 43]
  ------------------
 2002|    602|        if (! linkStage((EShLanguage)s, messages))
  ------------------
  |  Branch (2002:13): [True: 1, False: 601]
  ------------------
 2003|      1|            error = true;
 2004|    602|    }
 2005|       |
 2006|     43|    if (!error) {
  ------------------
  |  Branch (2006:9): [True: 42, False: 1]
  ------------------
 2007|     42|        if (! crossStageCheck(messages))
  ------------------
  |  Branch (2007:13): [True: 0, False: 42]
  ------------------
 2008|      0|            error = true;
 2009|     42|    }
 2010|       |
 2011|     43|    if (messages & EShMsgAST) {
  ------------------
  |  Branch (2011:9): [True: 0, False: 43]
  ------------------
 2012|      0|        for (int s = 0; s < EShLangCount; ++s) {
  ------------------
  |  Branch (2012:25): [True: 0, False: 0]
  ------------------
 2013|      0|            if (intermediate[s] == nullptr)
  ------------------
  |  Branch (2013:17): [True: 0, False: 0]
  ------------------
 2014|      0|                continue;
 2015|      0|            intermediate[s]->output(*infoSink, true);
 2016|      0|        }
 2017|      0|    }
 2018|       |
 2019|     43|    return ! error;
 2020|     43|}
_ZN7glslang8TProgram9linkStageE11EShLanguage11EShMessages:
 2028|    602|{
 2029|    602|    if (stages[stage].size() == 0)
  ------------------
  |  Branch (2029:9): [True: 559, False: 43]
  ------------------
 2030|    559|        return true;
 2031|       |
 2032|     43|    int numEsShaders = 0, numNonEsShaders = 0;
 2033|     86|    for (auto it = stages[stage].begin(); it != stages[stage].end(); ++it) {
  ------------------
  |  Branch (2033:43): [True: 43, False: 43]
  ------------------
 2034|     43|        if ((*it)->intermediate->getProfile() == EEsProfile) {
  ------------------
  |  Branch (2034:13): [True: 2, False: 41]
  ------------------
 2035|      2|            numEsShaders++;
 2036|     41|        } else {
 2037|     41|            numNonEsShaders++;
 2038|     41|        }
 2039|     43|    }
 2040|       |
 2041|     43|    if (numEsShaders > 0 && numNonEsShaders > 0) {
  ------------------
  |  Branch (2041:9): [True: 2, False: 41]
  |  Branch (2041:29): [True: 0, False: 2]
  ------------------
 2042|      0|        infoSink->info.message(EPrefixError, "Cannot mix ES profile with non-ES profile shaders");
 2043|      0|        return false;
 2044|     43|    } else if (numEsShaders > 1) {
  ------------------
  |  Branch (2044:16): [True: 0, False: 43]
  ------------------
 2045|      0|        infoSink->info.message(EPrefixError, "Cannot attach multiple ES shaders of the same type to a single program");
 2046|      0|        return false;
 2047|      0|    }
 2048|       |
 2049|       |    //
 2050|       |    // Be efficient for the common single compilation unit per stage case,
 2051|       |    // reusing it's TIntermediate instead of merging into a new one.
 2052|       |    //
 2053|     43|    TIntermediate *firstIntermediate = stages[stage].front()->intermediate;
 2054|     43|    if (stages[stage].size() == 1)
  ------------------
  |  Branch (2054:9): [True: 43, False: 0]
  ------------------
 2055|     43|        intermediate[stage] = firstIntermediate;
 2056|      0|    else {
 2057|      0|        intermediate[stage] = new TIntermediate(stage,
 2058|      0|                                                firstIntermediate->getVersion(),
 2059|      0|                                                firstIntermediate->getProfile());
 2060|      0|        intermediate[stage]->setLimits(firstIntermediate->getLimits());
 2061|      0|        if (firstIntermediate->getEnhancedMsgs())
  ------------------
  |  Branch (2061:13): [True: 0, False: 0]
  ------------------
 2062|      0|            intermediate[stage]->setEnhancedMsgs();
 2063|       |
 2064|       |        // The new TIntermediate must use the same origin as the original TIntermediates.
 2065|       |        // Otherwise linking will fail due to different coordinate systems.
 2066|      0|        if (firstIntermediate->getOriginUpperLeft()) {
  ------------------
  |  Branch (2066:13): [True: 0, False: 0]
  ------------------
 2067|      0|            intermediate[stage]->setOriginUpperLeft();
 2068|      0|        }
 2069|      0|        intermediate[stage]->setSpv(firstIntermediate->getSpv());
 2070|       |
 2071|      0|        newedIntermediate[stage] = true;
 2072|      0|    }
 2073|       |
 2074|     43|    if (messages & EShMsgAST)
  ------------------
  |  Branch (2074:9): [True: 0, False: 43]
  ------------------
 2075|      0|        infoSink->info << "\nLinked " << StageName(stage) << " stage:\n\n";
 2076|       |
 2077|     43|    if (stages[stage].size() > 1) {
  ------------------
  |  Branch (2077:9): [True: 0, False: 43]
  ------------------
 2078|      0|        std::list<TShader*>::const_iterator it;
 2079|      0|        for (it = stages[stage].begin(); it != stages[stage].end(); ++it)
  ------------------
  |  Branch (2079:42): [True: 0, False: 0]
  ------------------
 2080|      0|            intermediate[stage]->merge(*infoSink, *(*it)->intermediate);
 2081|      0|    }
 2082|     43|    intermediate[stage]->finalCheck(*infoSink, (messages & EShMsgKeepUncalled) != 0);
 2083|       |
 2084|     43|    return intermediate[stage]->getNumErrors() == 0;
 2085|     43|}
_ZN7glslang8TProgram15crossStageCheckE11EShMessages:
 2092|     42|bool TProgram::crossStageCheck(EShMessages messages) {
 2093|       |
 2094|       |    // make temporary intermediates to hold the linkage symbols for each linking interface
 2095|       |    // while we do the checks
 2096|       |    // Independent interfaces are:
 2097|       |    //                  all uniform variables and blocks
 2098|       |    //                  all buffer blocks
 2099|       |    //                  all in/out on a stage boundary
 2100|       |
 2101|     42|    TVector<TIntermediate*> activeStages;
 2102|    630|    for (int s = 0; s < EShLangCount; ++s) {
  ------------------
  |  Branch (2102:21): [True: 588, False: 42]
  ------------------
 2103|    588|        if (intermediate[s])
  ------------------
  |  Branch (2103:13): [True: 42, False: 546]
  ------------------
 2104|     42|            activeStages.push_back(intermediate[s]);
 2105|    588|    }
 2106|       |
 2107|     42|    class TFinalLinkTraverser : public TIntermTraverser {
 2108|     42|    public:
 2109|     42|        TFinalLinkTraverser() { }
 2110|     42|        virtual ~TFinalLinkTraverser() { }
 2111|       |
 2112|     42|        virtual void visitSymbol(TIntermSymbol* symbol)
 2113|     42|        {
 2114|       |            // Implicitly size arrays.
 2115|       |            // If an unsized array is left as unsized, it effectively
 2116|       |            // becomes run-time sized.
 2117|     42|            symbol->getWritableType().adoptImplicitArraySizes(false);
 2118|     42|        }
 2119|     42|    } finalLinkTraverser;
 2120|       |
 2121|       |    // no extra linking if there is only one stage
 2122|     42|    if (! (activeStages.size() > 1)) {
  ------------------
  |  Branch (2122:9): [True: 42, False: 0]
  ------------------
 2123|     42|        if (activeStages.size() == 1 && activeStages[0]->getTreeRoot()) {
  ------------------
  |  Branch (2123:13): [True: 42, False: 0]
  |  Branch (2123:41): [True: 42, False: 0]
  ------------------
 2124|     42|            activeStages[0]->getTreeRoot()->traverse(&finalLinkTraverser);
 2125|     42|        }
 2126|     42|        return true;
 2127|     42|    }
 2128|       |
 2129|       |    // setup temporary tree to hold unfirom objects from different stages
 2130|      0|    TIntermediate* firstIntermediate = activeStages.front();
 2131|      0|    TIntermediate uniforms(EShLangCount,
 2132|      0|                           firstIntermediate->getVersion(),
 2133|      0|                           firstIntermediate->getProfile());
 2134|      0|    uniforms.setSpv(firstIntermediate->getSpv());
 2135|       |
 2136|      0|    TIntermAggregate uniformObjects(EOpLinkerObjects);
 2137|      0|    TIntermAggregate root(EOpSequence);
 2138|      0|    root.getSequence().push_back(&uniformObjects);
 2139|      0|    uniforms.setTreeRoot(&root);
 2140|       |
 2141|      0|    bool error = false;
 2142|       |
 2143|       |    // merge uniforms from all stages into a single intermediate
 2144|      0|    for (unsigned int i = 0; i < activeStages.size(); ++i) {
  ------------------
  |  Branch (2144:30): [True: 0, False: 0]
  ------------------
 2145|      0|        uniforms.mergeUniformObjects(*infoSink, *activeStages[i]);
 2146|      0|    }
 2147|      0|    error |= uniforms.getNumErrors() != 0;
 2148|       |
 2149|       |    // update implicit array sizes across shader stages
 2150|      0|    for (unsigned int i = 0; i < activeStages.size(); ++i) {
  ------------------
  |  Branch (2150:30): [True: 0, False: 0]
  ------------------
 2151|      0|        activeStages[i]->mergeImplicitArraySizes(*infoSink, uniforms);
 2152|      0|        activeStages[i]->getTreeRoot()->traverse(&finalLinkTraverser);
 2153|      0|    }
 2154|       |
 2155|       |    // copy final definition of global block back into each stage
 2156|      0|    for (unsigned int i = 0; i < activeStages.size(); ++i) {
  ------------------
  |  Branch (2156:30): [True: 0, False: 0]
  ------------------
 2157|       |        // We only want to merge into already existing global uniform blocks.
 2158|       |        // A stage that doesn't already know about the global doesn't care about it's content.
 2159|       |        // Otherwise we end up pointing to the same object between different stages
 2160|       |        // and that will break binding/set remappings
 2161|      0|        bool mergeExistingOnly = true;
 2162|      0|        activeStages[i]->mergeGlobalUniformBlocks(*infoSink, uniforms, mergeExistingOnly);
 2163|      0|    }
 2164|       |
 2165|       |    // compare cross stage symbols for each stage boundary
 2166|      0|    for (unsigned int i = 1; i < activeStages.size(); ++i) {
  ------------------
  |  Branch (2166:30): [True: 0, False: 0]
  ------------------
 2167|      0|        activeStages[i - 1]->checkStageIO(*infoSink, *activeStages[i], messages);
 2168|      0|        error |= (activeStages[i - 1]->getNumErrors() != 0 || activeStages[i]->getNumErrors() != 0);
  ------------------
  |  Branch (2168:19): [True: 0, False: 0]
  |  Branch (2168:63): [True: 0, False: 0]
  ------------------
 2169|      0|    }
 2170|       |
 2171|       |    // if requested, optimize cross stage IO
 2172|      0|    if (messages & EShMsgLinkTimeOptimization) {
  ------------------
  |  Branch (2172:9): [True: 0, False: 0]
  ------------------
 2173|      0|        for (unsigned int i = 1; i < activeStages.size(); ++i) {
  ------------------
  |  Branch (2173:34): [True: 0, False: 0]
  ------------------
 2174|      0|            activeStages[i - 1]->optimizeStageIO(*infoSink, *activeStages[i]);
 2175|      0|        }
 2176|      0|    }
 2177|       |
 2178|      0|    return !error;
 2179|     42|}
_ZN7glslang8TProgram10getInfoLogEv:
 2182|     43|{
 2183|     43|    return infoSink->info.c_str();
 2184|     43|}
_ZN7glslang8TProgram5mapIOEPNS_14TIoMapResolverEPNS_9TIoMapperE:
 2263|     42|{
 2264|     42|    if (! linked)
  ------------------
  |  Branch (2264:9): [True: 0, False: 42]
  ------------------
 2265|      0|        return false;
 2266|       |
 2267|     42|    SetThreadPoolAllocator(pool);
 2268|       |
 2269|     42|    TIoMapper* ioMapper = nullptr;
 2270|     42|    TIoMapper defaultIOMapper;
 2271|     42|    if (pIoMapper == nullptr)
  ------------------
  |  Branch (2271:9): [True: 42, False: 0]
  ------------------
 2272|     42|        ioMapper = &defaultIOMapper;
 2273|      0|    else
 2274|      0|        ioMapper = pIoMapper;
 2275|    630|    for (int s = 0; s < EShLangCount; ++s) {
  ------------------
  |  Branch (2275:21): [True: 588, False: 42]
  ------------------
 2276|    588|        if (intermediate[s]) {
  ------------------
  |  Branch (2276:13): [True: 42, False: 546]
  ------------------
 2277|     42|            if (! ioMapper->addStage((EShLanguage)s, *intermediate[s], *infoSink, pResolver))
  ------------------
  |  Branch (2277:17): [True: 0, False: 42]
  ------------------
 2278|      0|                return false;
 2279|     42|        }
 2280|    588|    }
 2281|       |
 2282|     42|    return ioMapper->doMap(pResolver, *infoSink);
 2283|     42|}
ShaderLang.cpp:_ZN12_GLOBAL__N_115CompileDeferredEP9TCompilerPKPKciPKiS5_S3_20EShOptimizationLevelPK16TBuiltInResourcei8EProfilebib11EShMessagesRN7glslang13TIntermediateERNSE_7TShader8IncluderENSt3__112basic_stringIcNSK_11char_traitsIcEENSK_9allocatorIcEEEEPNSE_12TEnvironmentEb:
 1346|  1.42k|{
 1347|  1.42k|    DoFullParse parser;
 1348|  1.42k|    return ProcessDeferred(compiler, shaderStrings, numStrings, inputLengths, stringNames,
 1349|  1.42k|                           preamble, optLevel, resources, defaultVersion,
 1350|  1.42k|                           defaultProfile, forceDefaultVersionAndProfile, overrideVersion,
 1351|  1.42k|                           forwardCompatible, messages, intermediate, parser,
 1352|  1.42k|                           true, includer, sourceEntryPointName, environment, compileOnly);
 1353|  1.42k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_115ProcessDeferredINS_11DoFullParseEEEbP9TCompilerPKPKciPKiS7_S5_20EShOptimizationLevelPK16TBuiltInResourcei8EProfilebib11EShMessagesRN7glslang13TIntermediateERT_bRNSG_7TShader8IncluderENSt3__112basic_stringIcNSO_11char_traitsIcEENSO_9allocatorIcEEEEPKNSG_12TEnvironmentEb:
  822|  1.42k|{
  823|       |    // This must be undone (.pop()) by the caller, after it finishes consuming the created tree.
  824|  1.42k|    GetThreadPoolAllocator().push();
  825|       |
  826|  1.42k|    if (numStrings == 0)
  ------------------
  |  Branch (826:9): [True: 0, False: 1.42k]
  ------------------
  827|      0|        return true;
  828|       |
  829|       |    // Move to length-based strings, rather than null-terminated strings.
  830|       |    // Also, add strings to include the preamble and to ensure the shader is not null,
  831|       |    // which lets the grammar accept what was a null (post preprocessing) shader.
  832|       |    //
  833|       |    // Shader will look like
  834|       |    //   string 0:                system preamble
  835|       |    //   string 1:                custom preamble
  836|       |    //   string 2...numStrings+1: user's shader
  837|       |    //   string numStrings+2:     "int;"
  838|  1.42k|    const int numPre = 2;
  839|  1.42k|    const int numPost = requireNonempty? 1 : 0;
  ------------------
  |  Branch (839:25): [True: 1.42k, False: 0]
  ------------------
  840|  1.42k|    const int numTotal = numPre + numStrings + numPost;
  841|  1.42k|    std::unique_ptr<size_t[]> lengths(new size_t[numTotal]);
  842|  1.42k|    std::unique_ptr<const char*[]> strings(new const char*[numTotal]);
  843|  1.42k|    std::unique_ptr<const char*[]> names(new const char*[numTotal]);
  844|  2.84k|    for (int s = 0; s < numStrings; ++s) {
  ------------------
  |  Branch (844:21): [True: 1.42k, False: 1.42k]
  ------------------
  845|  1.42k|        strings[s + numPre] = shaderStrings[s];
  846|  1.42k|        if (inputLengths == nullptr || inputLengths[s] < 0)
  ------------------
  |  Branch (846:13): [True: 0, False: 1.42k]
  |  Branch (846:40): [True: 0, False: 1.42k]
  ------------------
  847|      0|            lengths[s + numPre] = strlen(shaderStrings[s]);
  848|  1.42k|        else
  849|  1.42k|            lengths[s + numPre] = inputLengths[s];
  850|  1.42k|    }
  851|  1.42k|    if (stringNames != nullptr) {
  ------------------
  |  Branch (851:9): [True: 1.42k, False: 0]
  ------------------
  852|  2.84k|        for (int s = 0; s < numStrings; ++s)
  ------------------
  |  Branch (852:25): [True: 1.42k, False: 1.42k]
  ------------------
  853|  1.42k|            names[s + numPre] = stringNames[s];
  854|  1.42k|    } else {
  855|      0|        for (int s = 0; s < numStrings; ++s)
  ------------------
  |  Branch (855:25): [True: 0, False: 0]
  ------------------
  856|      0|            names[s + numPre] = nullptr;
  857|      0|    }
  858|       |
  859|       |    // Get all the stages, languages, clients, and other environment
  860|       |    // stuff sorted out.
  861|  1.42k|    EShSource sourceGuess = (messages & EShMsgReadHlsl) != 0 ? EShSourceHlsl : EShSourceGlsl;
  ------------------
  |  Branch (861:29): [True: 0, False: 1.42k]
  ------------------
  862|  1.42k|    SpvVersion spvVersion;
  863|  1.42k|    EShLanguage stage = compiler->getLanguage();
  864|  1.42k|    TranslateEnvironment(environment, messages, sourceGuess, stage, spvVersion);
  865|  1.42k|#ifdef ENABLE_HLSL
  866|  1.42k|    EShSource source = sourceGuess;
  867|  1.42k|    if (environment != nullptr && environment->target.hlslFunctionality1)
  ------------------
  |  Branch (867:9): [True: 1.42k, False: 0]
  |  Branch (867:35): [True: 0, False: 1.42k]
  ------------------
  868|      0|        intermediate.setHlslFunctionality1();
  869|       |#else
  870|       |    const EShSource source = EShSourceGlsl;
  871|       |#endif
  872|       |    // First, without using the preprocessor or parser, find the #version, so we know what
  873|       |    // symbol tables, processing rules, etc. to set up.  This does not need the extra strings
  874|       |    // outlined above, just the user shader, after the system and user preambles.
  875|  1.42k|    glslang::TInputScanner userInput(numStrings, &strings[numPre], &lengths[numPre]);
  876|  1.42k|    int version = 0;
  877|  1.42k|    EProfile profile = ENoProfile;
  878|  1.42k|    bool versionNotFirstToken = false;
  879|  1.42k|    bool versionNotFirst = (source == EShSourceHlsl)
  ------------------
  |  Branch (879:28): [True: 0, False: 1.42k]
  ------------------
  880|  1.42k|                                ? true
  881|  1.42k|                                : userInput.scanVersion(version, profile, versionNotFirstToken);
  882|  1.42k|    bool versionNotFound = version == 0;
  883|  1.42k|    if (forceDefaultVersionAndProfile && source == EShSourceGlsl) {
  ------------------
  |  Branch (883:9): [True: 0, False: 1.42k]
  |  Branch (883:42): [True: 0, False: 0]
  ------------------
  884|      0|        if (! (messages & EShMsgSuppressWarnings) && ! versionNotFound &&
  ------------------
  |  Branch (884:13): [True: 0, False: 0]
  |  Branch (884:54): [True: 0, False: 0]
  ------------------
  885|      0|            (version != defaultVersion || profile != defaultProfile)) {
  ------------------
  |  Branch (885:14): [True: 0, False: 0]
  |  Branch (885:43): [True: 0, False: 0]
  ------------------
  886|      0|            compiler->infoSink.info << "Warning, (version, profile) forced to be ("
  887|      0|                                    << defaultVersion << ", " << ProfileName(defaultProfile)
  888|      0|                                    << "), while in source code it is ("
  889|      0|                                    << version << ", " << ProfileName(profile) << ")\n";
  890|      0|        }
  891|       |
  892|      0|        if (versionNotFound) {
  ------------------
  |  Branch (892:13): [True: 0, False: 0]
  ------------------
  893|      0|            versionNotFirstToken = false;
  894|      0|            versionNotFirst = false;
  895|      0|            versionNotFound = false;
  896|      0|        }
  897|      0|        version = defaultVersion;
  898|      0|        profile = defaultProfile;
  899|      0|    }
  900|  1.42k|    if (source == EShSourceGlsl && overrideVersion != 0) {
  ------------------
  |  Branch (900:9): [True: 1.42k, False: 0]
  |  Branch (900:36): [True: 0, False: 1.42k]
  ------------------
  901|      0|        version = overrideVersion;
  902|      0|    }
  903|       |
  904|  1.42k|    bool goodVersion = DeduceVersionProfile(compiler->infoSink, stage,
  905|  1.42k|                                            versionNotFirst, defaultVersion, source, version, profile, spvVersion);
  906|  1.42k|    bool versionWillBeError = (versionNotFound || (profile == EEsProfile && version >= 300 && versionNotFirst));
  ------------------
  |  Branch (906:32): [True: 460, False: 960]
  |  Branch (906:52): [True: 148, False: 812]
  |  Branch (906:77): [True: 148, False: 0]
  |  Branch (906:95): [True: 16, False: 132]
  ------------------
  907|  1.42k|    bool warnVersionNotFirst = false;
  908|  1.42k|    if (! versionWillBeError && versionNotFirstToken) {
  ------------------
  |  Branch (908:9): [True: 944, False: 476]
  |  Branch (908:33): [True: 26, False: 918]
  ------------------
  909|     26|        if (messages & EShMsgRelaxedErrors)
  ------------------
  |  Branch (909:13): [True: 0, False: 26]
  ------------------
  910|      0|            warnVersionNotFirst = true;
  911|     26|        else
  912|     26|            versionWillBeError = true;
  913|     26|    }
  914|       |
  915|  1.42k|    intermediate.setSource(source);
  916|  1.42k|    intermediate.setVersion(version);
  917|  1.42k|    intermediate.setProfile(profile);
  918|  1.42k|    intermediate.setSpv(spvVersion);
  919|  1.42k|    RecordProcesses(intermediate, messages, sourceEntryPointName);
  920|  1.42k|    if (spvVersion.vulkan > 0)
  ------------------
  |  Branch (920:9): [True: 1.42k, False: 0]
  ------------------
  921|  1.42k|        intermediate.setOriginUpperLeft();
  922|  1.42k|#ifdef ENABLE_HLSL
  923|  1.42k|    if ((messages & EShMsgHlslOffsets) || source == EShSourceHlsl)
  ------------------
  |  Branch (923:9): [True: 0, False: 1.42k]
  |  Branch (923:43): [True: 0, False: 1.42k]
  ------------------
  924|      0|        intermediate.setHlslOffsets();
  925|  1.42k|#endif
  926|  1.42k|    if (messages & EShMsgDebugInfo) {
  ------------------
  |  Branch (926:9): [True: 0, False: 1.42k]
  ------------------
  927|      0|        intermediate.setSourceFile(names[numPre]);
  928|      0|        for (int s = 0; s < numStrings; ++s) {
  ------------------
  |  Branch (928:25): [True: 0, False: 0]
  ------------------
  929|       |            // The string may not be null-terminated, so make sure we provide
  930|       |            // the length along with the string.
  931|      0|            intermediate.addSourceText(strings[numPre + s], lengths[numPre + s]);
  932|      0|        }
  933|      0|    }
  934|  1.42k|    if (!SetupBuiltinSymbolTable(version, profile, spvVersion, source)) {
  ------------------
  |  Branch (934:9): [True: 0, False: 1.42k]
  ------------------
  935|      0|        return false;
  936|      0|    }
  937|       |
  938|  1.42k|    TSymbolTable* cachedTable = SharedSymbolTables[MapVersionToIndex(version)]
  939|  1.42k|                                                  [MapSpvVersionToIndex(spvVersion)]
  940|  1.42k|                                                  [MapProfileToIndex(profile)]
  941|  1.42k|                                                  [MapSourceToIndex(source)]
  942|  1.42k|                                                  [stage];
  943|       |
  944|       |    // Dynamically allocate the symbol table so we can control when it is deallocated WRT the pool.
  945|  1.42k|    std::unique_ptr<TSymbolTable> symbolTable(new TSymbolTable);
  946|  1.42k|    if (cachedTable)
  ------------------
  |  Branch (946:9): [True: 1.42k, False: 0]
  ------------------
  947|  1.42k|        symbolTable->adoptLevels(*cachedTable);
  948|       |
  949|  1.42k|    if (intermediate.getUniqueId() != 0)
  ------------------
  |  Branch (949:9): [True: 0, False: 1.42k]
  ------------------
  950|      0|        symbolTable->overwriteUniqueId(intermediate.getUniqueId());
  951|       |
  952|       |    // Add built-in symbols that are potentially context dependent;
  953|       |    // they get popped again further down.
  954|  1.42k|    if (! AddContextSpecificSymbols(resources, compiler->infoSink, *symbolTable, version, profile, spvVersion,
  ------------------
  |  Branch (954:9): [True: 0, False: 1.42k]
  ------------------
  955|  1.42k|                                    stage, source)) {
  956|      0|        return false;
  957|      0|    }
  958|       |
  959|  1.42k|    if (messages & EShMsgBuiltinSymbolTable)
  ------------------
  |  Branch (959:9): [True: 0, False: 1.42k]
  ------------------
  960|      0|        DumpBuiltinSymbolTable(compiler->infoSink, *symbolTable);
  961|       |
  962|       |    //
  963|       |    // Now we can process the full shader under proper symbols and rules.
  964|       |    //
  965|       |
  966|  1.42k|    std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, version, profile, source,
  967|  1.42k|                                                    stage, compiler->infoSink,
  968|  1.42k|                                                    spvVersion, forwardCompatible, messages, false, sourceEntryPointName));
  969|  1.42k|    parseContext->compileOnly = compileOnly;
  970|  1.42k|    TPpContext ppContext(*parseContext, names[numPre] ? names[numPre] : "", includer);
  ------------------
  |  Branch (970:41): [True: 1.42k, False: 0]
  ------------------
  971|       |
  972|       |    // only GLSL (bison triggered, really) needs an externally set scan context
  973|  1.42k|    glslang::TScanContext scanContext(*parseContext);
  974|  1.42k|    if (source == EShSourceGlsl)
  ------------------
  |  Branch (974:9): [True: 1.42k, False: 0]
  ------------------
  975|  1.42k|        parseContext->setScanContext(&scanContext);
  976|       |
  977|  1.42k|    parseContext->setPpContext(&ppContext);
  978|  1.42k|    parseContext->setLimits(*resources);
  979|  1.42k|    if (! goodVersion)
  ------------------
  |  Branch (979:9): [True: 566, False: 854]
  ------------------
  980|    566|        parseContext->addError();
  981|  1.42k|    if (warnVersionNotFirst) {
  ------------------
  |  Branch (981:9): [True: 0, False: 1.42k]
  ------------------
  982|      0|        TSourceLoc loc;
  983|      0|        loc.init();
  984|      0|        parseContext->warn(loc, "Illegal to have non-comment, non-whitespace tokens before #version", "#version", "");
  985|      0|    }
  986|       |
  987|  1.42k|    parseContext->initializeExtensionBehavior();
  988|       |
  989|       |    // Fill in the strings as outlined above.
  990|  1.42k|    std::string preamble;
  991|  1.42k|    parseContext->getPreamble(preamble);
  992|  1.42k|    strings[0] = preamble.c_str();
  993|  1.42k|    lengths[0] = strlen(strings[0]);
  994|  1.42k|    names[0] = nullptr;
  995|  1.42k|    strings[1] = customPreamble;
  996|  1.42k|    lengths[1] = strlen(strings[1]);
  997|  1.42k|    names[1] = nullptr;
  998|  1.42k|    assert(2 == numPre);
  999|  1.42k|    if (requireNonempty) {
  ------------------
  |  Branch (999:9): [True: 1.42k, False: 0]
  ------------------
 1000|  1.42k|        const int postIndex = numStrings + numPre;
 1001|  1.42k|        strings[postIndex] = "\n int;";
 1002|  1.42k|        lengths[postIndex] = strlen(strings[numStrings + numPre]);
 1003|  1.42k|        names[postIndex] = nullptr;
 1004|  1.42k|    }
 1005|  1.42k|    TInputScanner fullInput(numStrings + numPre + numPost, strings.get(), lengths.get(), names.get(), numPre, numPost);
 1006|       |
 1007|       |    // Push a new symbol allocation scope that will get used for the shader's globals.
 1008|  1.42k|    symbolTable->push();
 1009|       |
 1010|  1.42k|    bool success = processingContext(*parseContext, ppContext, fullInput,
 1011|  1.42k|                                     versionWillBeError, *symbolTable,
 1012|  1.42k|                                     intermediate, optLevel, messages);
 1013|  1.42k|    intermediate.setUniqueId(symbolTable->getMaxSymbolId());
 1014|  1.42k|    return success;
 1015|  1.42k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_120TranslateEnvironmentEPKN7glslang12TEnvironmentER11EShMessagesRNS0_9EShSourceER11EShLanguageRNS0_10SpvVersionE:
  702|  4.26k|{
  703|       |    // Set up environmental defaults, first ignoring 'environment'.
  704|  4.26k|    if (messages & EShMsgSpvRules)
  ------------------
  |  Branch (704:9): [True: 4.26k, False: 0]
  ------------------
  705|  4.26k|        spvVersion.spv = EShTargetSpv_1_0;
  706|  4.26k|    if (messages & EShMsgVulkanRules) {
  ------------------
  |  Branch (706:9): [True: 4.26k, False: 0]
  ------------------
  707|  4.26k|        spvVersion.vulkan = EShTargetVulkan_1_0;
  708|  4.26k|        spvVersion.vulkanGlsl = 100;
  709|  4.26k|    } else if (spvVersion.spv != 0)
  ------------------
  |  Branch (709:16): [True: 0, False: 0]
  ------------------
  710|      0|        spvVersion.openGl = 100;
  711|       |
  712|       |    // Now, override, based on any content set in 'environment'.
  713|       |    // 'environment' must be cleared to ESh*None settings when items
  714|       |    // are not being set.
  715|  4.26k|    if (environment != nullptr) {
  ------------------
  |  Branch (715:9): [True: 4.26k, False: 0]
  ------------------
  716|       |        // input language
  717|  4.26k|        if (environment->input.languageFamily != EShSourceNone) {
  ------------------
  |  Branch (717:13): [True: 0, False: 4.26k]
  ------------------
  718|      0|            stage = environment->input.stage;
  719|      0|            switch (environment->input.dialect) {
  ------------------
  |  Branch (719:21): [True: 0, False: 0]
  ------------------
  720|      0|            case EShClientNone:
  ------------------
  |  Branch (720:13): [True: 0, False: 0]
  ------------------
  721|      0|                break;
  722|      0|            case EShClientVulkan:
  ------------------
  |  Branch (722:13): [True: 0, False: 0]
  ------------------
  723|      0|                spvVersion.vulkanGlsl = environment->input.dialectVersion;
  724|      0|                spvVersion.vulkanRelaxed = environment->input.vulkanRulesRelaxed;
  725|      0|                break;
  726|      0|            case EShClientOpenGL:
  ------------------
  |  Branch (726:13): [True: 0, False: 0]
  ------------------
  727|      0|                spvVersion.openGl = environment->input.dialectVersion;
  728|      0|                break;
  729|      0|            case EShClientCount:
  ------------------
  |  Branch (729:13): [True: 0, False: 0]
  ------------------
  730|      0|                assert(0);
  731|      0|                break;
  732|      0|            }
  733|      0|            switch (environment->input.languageFamily) {
  ------------------
  |  Branch (733:21): [True: 0, False: 0]
  ------------------
  734|      0|            case EShSourceNone:
  ------------------
  |  Branch (734:13): [True: 0, False: 0]
  ------------------
  735|      0|                break;
  736|      0|            case EShSourceGlsl:
  ------------------
  |  Branch (736:13): [True: 0, False: 0]
  ------------------
  737|      0|                source = EShSourceGlsl;
  738|      0|                messages = static_cast<EShMessages>(messages & ~EShMsgReadHlsl);
  739|      0|                break;
  740|      0|            case EShSourceHlsl:
  ------------------
  |  Branch (740:13): [True: 0, False: 0]
  ------------------
  741|      0|                source = EShSourceHlsl;
  742|      0|                messages = static_cast<EShMessages>(messages | EShMsgReadHlsl);
  743|      0|                break;
  744|      0|            case EShSourceCount:
  ------------------
  |  Branch (744:13): [True: 0, False: 0]
  ------------------
  745|      0|                assert(0);
  746|      0|                break;
  747|      0|            }
  748|      0|        }
  749|       |
  750|       |        // client
  751|  4.26k|        switch (environment->client.client) {
  752|  4.26k|        case EShClientVulkan:
  ------------------
  |  Branch (752:9): [True: 4.26k, False: 0]
  ------------------
  753|  4.26k|            spvVersion.vulkan = environment->client.version;
  754|  4.26k|            break;
  755|      0|        default:
  ------------------
  |  Branch (755:9): [True: 0, False: 4.26k]
  ------------------
  756|      0|            break;
  757|  4.26k|        }
  758|       |
  759|       |        // generated code
  760|  4.26k|        switch (environment->target.language) {
  761|  1.42k|        case EshTargetSpv:
  ------------------
  |  Branch (761:9): [True: 1.42k, False: 2.84k]
  ------------------
  762|  1.42k|            spvVersion.spv = environment->target.version;
  763|  1.42k|            break;
  764|  2.84k|        default:
  ------------------
  |  Branch (764:9): [True: 2.84k, False: 1.42k]
  ------------------
  765|  2.84k|            break;
  766|  4.26k|        }
  767|  4.26k|    }
  768|  4.26k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_120DeduceVersionProfileER9TInfoSink11EShLanguagebiN7glslang9EShSourceERiR8EProfileRKNS3_10SpvVersionE:
  512|  4.26k|{
  513|  4.26k|    const int FirstProfileVersion = 150;
  514|  4.26k|    bool correct = true;
  515|       |
  516|  4.26k|    if (source == EShSourceHlsl) {
  ------------------
  |  Branch (516:9): [True: 0, False: 4.26k]
  ------------------
  517|      0|        version = 500;          // shader model; currently a characteristic of glslang, not the input
  518|      0|        profile = ECoreProfile; // allow doubles in prototype parsing
  519|      0|        return correct;
  520|      0|    }
  521|       |
  522|       |    // Get a version...
  523|  4.26k|    if (version == 0) {
  ------------------
  |  Branch (523:9): [True: 1.38k, False: 2.88k]
  ------------------
  524|  1.38k|        version = defaultVersion;
  525|       |        // infoSink.info.message(EPrefixWarning, "#version: statement missing; use #version on first line of shader");
  526|  1.38k|    }
  527|       |
  528|       |    // Get a good profile...
  529|  4.26k|    if (profile == ENoProfile) {
  ------------------
  |  Branch (529:9): [True: 3.31k, False: 948]
  ------------------
  530|  3.31k|        if (version == 300 || version == 310 || version == 320) {
  ------------------
  |  Branch (530:13): [True: 9, False: 3.30k]
  |  Branch (530:31): [True: 3, False: 3.30k]
  |  Branch (530:49): [True: 0, False: 3.30k]
  ------------------
  531|     12|            correct = false;
  532|     12|            infoSink.info.message(EPrefixError, "#version: versions 300, 310, and 320 require specifying the 'es' profile");
  533|     12|            profile = EEsProfile;
  534|  3.30k|        } else if (version == 100)
  ------------------
  |  Branch (534:20): [True: 48, False: 3.25k]
  ------------------
  535|     48|            profile = EEsProfile;
  536|  3.25k|        else if (version >= FirstProfileVersion)
  ------------------
  |  Branch (536:18): [True: 1.63k, False: 1.62k]
  ------------------
  537|  1.63k|            profile = ECoreProfile;
  538|  1.62k|        else
  539|  1.62k|            profile = ENoProfile;
  540|  3.31k|    } else {
  541|       |        // a profile was provided...
  542|    948|        if (version < 150) {
  ------------------
  |  Branch (542:13): [True: 0, False: 948]
  ------------------
  543|      0|            correct = false;
  544|      0|            infoSink.info.message(EPrefixError, "#version: versions before 150 do not allow a profile token");
  545|      0|            if (version == 100)
  ------------------
  |  Branch (545:17): [True: 0, False: 0]
  ------------------
  546|      0|                profile = EEsProfile;
  547|      0|            else
  548|      0|                profile = ENoProfile;
  549|    948|        } else if (version == 300 || version == 310 || version == 320) {
  ------------------
  |  Branch (549:20): [True: 57, False: 891]
  |  Branch (549:38): [True: 306, False: 585]
  |  Branch (549:56): [True: 21, False: 564]
  ------------------
  550|    384|            if (profile != EEsProfile) {
  ------------------
  |  Branch (550:17): [True: 0, False: 384]
  ------------------
  551|      0|                correct = false;
  552|      0|                infoSink.info.message(EPrefixError, "#version: versions 300, 310, and 320 support only the es profile");
  553|      0|            }
  554|    384|            profile = EEsProfile;
  555|    564|        } else {
  556|    564|            if (profile == EEsProfile) {
  ------------------
  |  Branch (556:17): [True: 0, False: 564]
  ------------------
  557|      0|                correct = false;
  558|      0|                infoSink.info.message(EPrefixError, "#version: only version 300, 310, and 320 support the es profile");
  559|      0|                if (version >= FirstProfileVersion)
  ------------------
  |  Branch (559:21): [True: 0, False: 0]
  ------------------
  560|      0|                    profile = ECoreProfile;
  561|      0|                else
  562|      0|                    profile = ENoProfile;
  563|      0|            }
  564|       |            // else: typical desktop case... e.g., "#version 410 core"
  565|    564|        }
  566|    948|    }
  567|       |
  568|       |    // Fix version...
  569|  4.26k|    switch (version) {
  570|       |    // ES versions
  571|     48|    case 100: break;
  ------------------
  |  Branch (571:5): [True: 48, False: 4.21k]
  ------------------
  572|     66|    case 300: break;
  ------------------
  |  Branch (572:5): [True: 66, False: 4.19k]
  ------------------
  573|    309|    case 310: break;
  ------------------
  |  Branch (573:5): [True: 309, False: 3.95k]
  ------------------
  574|     21|    case 320: break;
  ------------------
  |  Branch (574:5): [True: 21, False: 4.23k]
  ------------------
  575|       |
  576|       |    // desktop versions
  577|  1.38k|    case 110: break;
  ------------------
  |  Branch (577:5): [True: 1.38k, False: 2.88k]
  ------------------
  578|      0|    case 120: break;
  ------------------
  |  Branch (578:5): [True: 0, False: 4.26k]
  ------------------
  579|    126|    case 130: break;
  ------------------
  |  Branch (579:5): [True: 126, False: 4.13k]
  ------------------
  580|     42|    case 140: break;
  ------------------
  |  Branch (580:5): [True: 42, False: 4.21k]
  ------------------
  581|    468|    case 150: break;
  ------------------
  |  Branch (581:5): [True: 468, False: 3.79k]
  ------------------
  582|     93|    case 330: break;
  ------------------
  |  Branch (582:5): [True: 93, False: 4.16k]
  ------------------
  583|     90|    case 400: break;
  ------------------
  |  Branch (583:5): [True: 90, False: 4.17k]
  ------------------
  584|      6|    case 410: break;
  ------------------
  |  Branch (584:5): [True: 6, False: 4.25k]
  ------------------
  585|      3|    case 420: break;
  ------------------
  |  Branch (585:5): [True: 3, False: 4.25k]
  ------------------
  586|    480|    case 430: break;
  ------------------
  |  Branch (586:5): [True: 480, False: 3.78k]
  ------------------
  587|    225|    case 440: break;
  ------------------
  |  Branch (587:5): [True: 225, False: 4.03k]
  ------------------
  588|    696|    case 450: break;
  ------------------
  |  Branch (588:5): [True: 696, False: 3.56k]
  ------------------
  589|    135|    case 460: break;
  ------------------
  |  Branch (589:5): [True: 135, False: 4.12k]
  ------------------
  590|       |
  591|       |    // unknown version
  592|     72|    default:
  ------------------
  |  Branch (592:5): [True: 72, False: 4.18k]
  ------------------
  593|     72|        correct = false;
  594|     72|        infoSink.info.message(EPrefixError, "version not supported");
  595|     72|        if (profile == EEsProfile)
  ------------------
  |  Branch (595:13): [True: 0, False: 72]
  ------------------
  596|      0|            version = 310;
  597|     72|        else {
  598|     72|            version = 450;
  599|     72|            profile = ECoreProfile;
  600|     72|        }
  601|     72|        break;
  602|  4.26k|    }
  603|       |
  604|       |    // Correct for stage type...
  605|  4.26k|    switch (stage) {
  606|      0|    case EShLangGeometry:
  ------------------
  |  Branch (606:5): [True: 0, False: 4.26k]
  ------------------
  607|      0|        if ((profile == EEsProfile && version < 310) ||
  ------------------
  |  Branch (607:14): [True: 0, False: 0]
  |  Branch (607:39): [True: 0, False: 0]
  ------------------
  608|      0|            (profile != EEsProfile && version < 150)) {
  ------------------
  |  Branch (608:14): [True: 0, False: 0]
  |  Branch (608:39): [True: 0, False: 0]
  ------------------
  609|      0|            correct = false;
  610|      0|            infoSink.info.message(EPrefixError, "#version: geometry shaders require es profile with version 310 or non-es profile with version 150 or above");
  611|      0|            version = (profile == EEsProfile) ? 310 : 150;
  ------------------
  |  Branch (611:23): [True: 0, False: 0]
  ------------------
  612|      0|            if (profile == EEsProfile || profile == ENoProfile)
  ------------------
  |  Branch (612:17): [True: 0, False: 0]
  |  Branch (612:42): [True: 0, False: 0]
  ------------------
  613|      0|                profile = ECoreProfile;
  614|      0|        }
  615|      0|        break;
  616|      0|    case EShLangTessControl:
  ------------------
  |  Branch (616:5): [True: 0, False: 4.26k]
  ------------------
  617|      0|    case EShLangTessEvaluation:
  ------------------
  |  Branch (617:5): [True: 0, False: 4.26k]
  ------------------
  618|      0|        if ((profile == EEsProfile && version < 310) ||
  ------------------
  |  Branch (618:14): [True: 0, False: 0]
  |  Branch (618:39): [True: 0, False: 0]
  ------------------
  619|      0|            (profile != EEsProfile && version < 150)) {
  ------------------
  |  Branch (619:14): [True: 0, False: 0]
  |  Branch (619:39): [True: 0, False: 0]
  ------------------
  620|      0|            correct = false;
  621|      0|            infoSink.info.message(EPrefixError, "#version: tessellation shaders require es profile with version 310 or non-es profile with version 150 or above");
  622|      0|            version = (profile == EEsProfile) ? 310 : 400; // 150 supports the extension, correction is to 400 which does not
  ------------------
  |  Branch (622:23): [True: 0, False: 0]
  ------------------
  623|      0|            if (profile == EEsProfile || profile == ENoProfile)
  ------------------
  |  Branch (623:17): [True: 0, False: 0]
  |  Branch (623:42): [True: 0, False: 0]
  ------------------
  624|      0|                profile = ECoreProfile;
  625|      0|        }
  626|      0|        break;
  627|      0|    case EShLangCompute:
  ------------------
  |  Branch (627:5): [True: 0, False: 4.26k]
  ------------------
  628|      0|        if ((profile == EEsProfile && version < 310) ||
  ------------------
  |  Branch (628:14): [True: 0, False: 0]
  |  Branch (628:39): [True: 0, False: 0]
  ------------------
  629|      0|            (profile != EEsProfile && version < 420)) {
  ------------------
  |  Branch (629:14): [True: 0, False: 0]
  |  Branch (629:39): [True: 0, False: 0]
  ------------------
  630|      0|            correct = false;
  631|      0|            infoSink.info.message(EPrefixError, "#version: compute shaders require es profile with version 310 or above, or non-es profile with version 420 or above");
  632|      0|            version = profile == EEsProfile ? 310 : 420;
  ------------------
  |  Branch (632:23): [True: 0, False: 0]
  ------------------
  633|      0|        }
  634|      0|        break;
  635|      0|    case EShLangRayGen:
  ------------------
  |  Branch (635:5): [True: 0, False: 4.26k]
  ------------------
  636|      0|    case EShLangIntersect:
  ------------------
  |  Branch (636:5): [True: 0, False: 4.26k]
  ------------------
  637|      0|    case EShLangAnyHit:
  ------------------
  |  Branch (637:5): [True: 0, False: 4.26k]
  ------------------
  638|      0|    case EShLangClosestHit:
  ------------------
  |  Branch (638:5): [True: 0, False: 4.26k]
  ------------------
  639|      0|    case EShLangMiss:
  ------------------
  |  Branch (639:5): [True: 0, False: 4.26k]
  ------------------
  640|      0|    case EShLangCallable:
  ------------------
  |  Branch (640:5): [True: 0, False: 4.26k]
  ------------------
  641|      0|        if (profile == EEsProfile || version < 460) {
  ------------------
  |  Branch (641:13): [True: 0, False: 0]
  |  Branch (641:38): [True: 0, False: 0]
  ------------------
  642|      0|            correct = false;
  643|      0|            infoSink.info.message(EPrefixError, "#version: ray tracing shaders require non-es profile with version 460 or above");
  644|      0|            version = 460;
  645|      0|        }
  646|      0|        break;
  647|      0|    case EShLangMesh:
  ------------------
  |  Branch (647:5): [True: 0, False: 4.26k]
  ------------------
  648|      0|    case EShLangTask:
  ------------------
  |  Branch (648:5): [True: 0, False: 4.26k]
  ------------------
  649|      0|        if ((profile == EEsProfile && version < 320) ||
  ------------------
  |  Branch (649:14): [True: 0, False: 0]
  |  Branch (649:39): [True: 0, False: 0]
  ------------------
  650|      0|            (profile != EEsProfile && version < 450)) {
  ------------------
  |  Branch (650:14): [True: 0, False: 0]
  |  Branch (650:39): [True: 0, False: 0]
  ------------------
  651|      0|            correct = false;
  652|      0|            infoSink.info.message(EPrefixError, "#version: mesh/task shaders require es profile with version 320 or above, or non-es profile with version 450 or above");
  653|      0|            version = profile == EEsProfile ? 320 : 450;
  ------------------
  |  Branch (653:23): [True: 0, False: 0]
  ------------------
  654|      0|        }
  655|      0|        break;
  656|  4.26k|    default:
  ------------------
  |  Branch (656:5): [True: 4.26k, False: 0]
  ------------------
  657|  4.26k|        break;
  658|  4.26k|    }
  659|       |
  660|  4.26k|    if (profile == EEsProfile && version >= 300 && versionNotFirst) {
  ------------------
  |  Branch (660:9): [True: 444, False: 3.81k]
  |  Branch (660:34): [True: 396, False: 48]
  |  Branch (660:52): [True: 3, False: 393]
  ------------------
  661|      3|        correct = false;
  662|      3|        infoSink.info.message(EPrefixError, "#version: statement must appear first in es-profile shader; before comments or newlines");
  663|      3|    }
  664|       |
  665|       |    // Check for SPIR-V compatibility
  666|  4.26k|    if (spvVersion.spv != 0) {
  ------------------
  |  Branch (666:9): [True: 4.26k, False: 0]
  ------------------
  667|  4.26k|        switch (profile) {
  668|    444|        case EEsProfile:
  ------------------
  |  Branch (668:9): [True: 444, False: 3.81k]
  ------------------
  669|    444|            if (version < 310) {
  ------------------
  |  Branch (669:17): [True: 114, False: 330]
  ------------------
  670|    114|                correct = false;
  671|    114|                infoSink.info.message(EPrefixError, "#version: ES shaders for SPIR-V require version 310 or higher");
  672|    114|                version = 310;
  673|    114|            }
  674|    444|            break;
  675|    165|        case ECompatibilityProfile:
  ------------------
  |  Branch (675:9): [True: 165, False: 4.09k]
  ------------------
  676|    165|            infoSink.info.message(EPrefixError, "#version: compilation for SPIR-V does not support the compatibility profile");
  677|    165|            break;
  678|  3.65k|        default:
  ------------------
  |  Branch (678:9): [True: 3.65k, False: 609]
  ------------------
  679|  3.65k|            if (spvVersion.vulkan > 0 && version < 140) {
  ------------------
  |  Branch (679:17): [True: 3.65k, False: 0]
  |  Branch (679:42): [True: 1.50k, False: 2.14k]
  ------------------
  680|  1.50k|                correct = false;
  681|  1.50k|                infoSink.info.message(EPrefixError, "#version: Desktop shaders for Vulkan SPIR-V require version 140 or higher");
  682|  1.50k|                version = 140;
  683|  1.50k|            }
  684|  3.65k|            if (spvVersion.openGl >= 100 && version < 330) {
  ------------------
  |  Branch (684:17): [True: 0, False: 3.65k]
  |  Branch (684:45): [True: 0, False: 0]
  ------------------
  685|      0|                correct = false;
  686|      0|                infoSink.info.message(EPrefixError, "#version: Desktop shaders for OpenGL SPIR-V require version 330 or higher");
  687|      0|                version = 330;
  688|      0|            }
  689|  3.65k|            break;
  690|  4.26k|        }
  691|  4.26k|    }
  692|       |
  693|  4.26k|    return correct;
  694|  4.26k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_115RecordProcessesERN7glslang13TIntermediateE11EShMessagesRKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  773|  4.26k|{
  774|  4.26k|    if ((messages & EShMsgRelaxedErrors) != 0)
  ------------------
  |  Branch (774:9): [True: 0, False: 4.26k]
  ------------------
  775|      0|        intermediate.addProcess("relaxed-errors");
  776|  4.26k|    if ((messages & EShMsgSuppressWarnings) != 0)
  ------------------
  |  Branch (776:9): [True: 0, False: 4.26k]
  ------------------
  777|      0|        intermediate.addProcess("suppress-warnings");
  778|  4.26k|    if ((messages & EShMsgKeepUncalled) != 0)
  ------------------
  |  Branch (778:9): [True: 0, False: 4.26k]
  ------------------
  779|      0|        intermediate.addProcess("keep-uncalled");
  780|  4.26k|    if ((messages & EShMsgRelaxSetBindingLimits) != 0)
  ------------------
  |  Branch (780:9): [True: 0, False: 4.26k]
  ------------------
  781|      0|        intermediate.setRelaxSetBindingLimits(true);
  782|  4.26k|    if (sourceEntryPointName.size() > 0) {
  ------------------
  |  Branch (782:9): [True: 0, False: 4.26k]
  ------------------
  783|      0|        intermediate.addProcess("source-entrypoint");
  784|      0|        intermediate.addProcessArgument(sourceEntryPointName);
  785|      0|    }
  786|  4.26k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_123SetupBuiltinSymbolTableEi8EProfileRKN7glslang10SpvVersionENS1_9EShSourceE:
  427|  4.26k|{
  428|  4.26k|    TInfoSink infoSink;
  429|  4.26k|    bool success;
  430|       |
  431|       |    // Make sure only one thread tries to do this at a time
  432|  4.26k|#ifndef DISABLE_THREAD_SUPPORT
  433|  4.26k|    const std::lock_guard<std::mutex> lock(init_lock);
  434|  4.26k|#endif
  435|       |
  436|       |    // See if it's already been done for this version/profile combination
  437|  4.26k|    int versionIndex = MapVersionToIndex(version);
  438|  4.26k|    int spvVersionIndex = MapSpvVersionToIndex(spvVersion);
  439|  4.26k|    int profileIndex = MapProfileToIndex(profile);
  440|  4.26k|    int sourceIndex = MapSourceToIndex(source);
  441|  4.26k|    if (CommonSymbolTable[versionIndex][spvVersionIndex][profileIndex][sourceIndex][EPcGeneral]) {
  ------------------
  |  Branch (441:9): [True: 2.84k, False: 1.42k]
  ------------------
  442|  2.84k|        return true;
  443|  2.84k|    }
  444|       |
  445|       |    // Switch to a new pool
  446|  1.42k|    TPoolAllocator& previousAllocator = GetThreadPoolAllocator();
  447|  1.42k|    TPoolAllocator* builtInPoolAllocator = new TPoolAllocator;
  448|  1.42k|    SetThreadPoolAllocator(builtInPoolAllocator);
  449|       |
  450|       |    // Dynamically allocate the local symbol tables so we can control when they are deallocated WRT when the pool is popped.
  451|  1.42k|    TSymbolTable* commonTable[EPcCount];
  452|  1.42k|    TSymbolTable* stageTables[EShLangCount];
  453|  4.26k|    for (int precClass = 0; precClass < EPcCount; ++precClass)
  ------------------
  |  Branch (453:29): [True: 2.84k, False: 1.42k]
  ------------------
  454|  2.84k|        commonTable[precClass] = new TSymbolTable;
  455|  21.3k|    for (int stage = 0; stage < EShLangCount; ++stage)
  ------------------
  |  Branch (455:25): [True: 19.8k, False: 1.42k]
  ------------------
  456|  19.8k|        stageTables[stage] = new TSymbolTable;
  457|       |
  458|       |    // Generate the local symbol tables using the new pool
  459|  1.42k|    if (!InitializeSymbolTables(infoSink, commonTable, stageTables, version, profile, spvVersion, source)) {
  ------------------
  |  Branch (459:9): [True: 0, False: 1.42k]
  ------------------
  460|      0|        success = false;
  461|      0|        goto cleanup;
  462|      0|    }
  463|       |
  464|       |    // Switch to the process-global pool
  465|  1.42k|    SetThreadPoolAllocator(PerProcessGPA);
  466|       |
  467|       |    // Copy the local symbol tables from the new pool to the global tables using the process-global pool
  468|  4.26k|    for (int precClass = 0; precClass < EPcCount; ++precClass) {
  ------------------
  |  Branch (468:29): [True: 2.84k, False: 1.42k]
  ------------------
  469|  2.84k|        if (! commonTable[precClass]->isEmpty()) {
  ------------------
  |  Branch (469:13): [True: 1.56k, False: 1.27k]
  ------------------
  470|  1.56k|            CommonSymbolTable[versionIndex][spvVersionIndex][profileIndex][sourceIndex][precClass] = new TSymbolTable;
  471|  1.56k|            CommonSymbolTable[versionIndex][spvVersionIndex][profileIndex][sourceIndex][precClass]->copyTable(*commonTable[precClass]);
  472|  1.56k|            CommonSymbolTable[versionIndex][spvVersionIndex][profileIndex][sourceIndex][precClass]->readOnly();
  473|  1.56k|        }
  474|  2.84k|    }
  475|  21.3k|    for (int stage = 0; stage < EShLangCount; ++stage) {
  ------------------
  |  Branch (475:25): [True: 19.8k, False: 1.42k]
  ------------------
  476|  19.8k|        if (! stageTables[stage]->isEmpty()) {
  ------------------
  |  Branch (476:13): [True: 8.65k, False: 11.2k]
  ------------------
  477|  8.65k|            SharedSymbolTables[versionIndex][spvVersionIndex][profileIndex][sourceIndex][stage] = new TSymbolTable;
  478|  8.65k|            SharedSymbolTables[versionIndex][spvVersionIndex][profileIndex][sourceIndex][stage]->adoptLevels(*CommonSymbolTable
  479|  8.65k|                              [versionIndex][spvVersionIndex][profileIndex][sourceIndex][CommonIndex(profile, (EShLanguage)stage)]);
  480|  8.65k|            SharedSymbolTables[versionIndex][spvVersionIndex][profileIndex][sourceIndex][stage]->copyTable(*stageTables[stage]);
  481|  8.65k|            SharedSymbolTables[versionIndex][spvVersionIndex][profileIndex][sourceIndex][stage]->readOnly();
  482|  8.65k|        }
  483|  19.8k|    }
  484|  1.42k|    success = true;
  485|       |
  486|  1.42k|cleanup:
  487|       |    // Clean up the local tables before deleting the pool they used.
  488|  4.26k|    for (int precClass = 0; precClass < EPcCount; ++precClass)
  ------------------
  |  Branch (488:29): [True: 2.84k, False: 1.42k]
  ------------------
  489|  2.84k|        delete commonTable[precClass];
  490|  21.3k|    for (int stage = 0; stage < EShLangCount; ++stage)
  ------------------
  |  Branch (490:25): [True: 19.8k, False: 1.42k]
  ------------------
  491|  19.8k|        delete stageTables[stage];
  492|       |
  493|  1.42k|    delete builtInPoolAllocator;
  494|  1.42k|    SetThreadPoolAllocator(&previousAllocator);
  495|       |
  496|  1.42k|    return success;
  497|  1.42k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_122InitializeSymbolTablesER9TInfoSinkPPN7glslang12TSymbolTableES5_i8EProfileRKNS2_10SpvVersionENS2_9EShSourceE:
  322|  1.42k|{
  323|  1.42k|    bool success = true;
  324|  1.42k|    std::unique_ptr<TBuiltInParseables> builtInParseables(CreateBuiltInParseables(infoSink, source));
  325|       |
  326|  1.42k|    if (builtInParseables == nullptr)
  ------------------
  |  Branch (326:9): [True: 0, False: 1.42k]
  ------------------
  327|      0|        return false;
  328|       |
  329|  1.42k|    builtInParseables->initialize(version, profile, spvVersion);
  330|       |
  331|       |    // do the common tables
  332|  1.42k|    success &= InitializeSymbolTable(builtInParseables->getCommonString(), version, profile, spvVersion, EShLangVertex, source,
  333|  1.42k|                          infoSink, *commonTable[EPcGeneral]);
  334|  1.42k|    if (profile == EEsProfile)
  ------------------
  |  Branch (334:9): [True: 148, False: 1.27k]
  ------------------
  335|    148|        success &= InitializeSymbolTable(builtInParseables->getCommonString(), version, profile, spvVersion, EShLangFragment, source,
  336|    148|                              infoSink, *commonTable[EPcFragment]);
  337|       |
  338|       |    // do the per-stage tables
  339|       |
  340|       |    // always have vertex and fragment
  341|  1.42k|    success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangVertex, source,
  342|  1.42k|                               infoSink, commonTable, symbolTables);
  343|  1.42k|    success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangFragment, source,
  344|  1.42k|                               infoSink, commonTable, symbolTables);
  345|       |
  346|       |    // check for tessellation
  347|  1.42k|    if ((profile != EEsProfile && version >= 150) ||
  ------------------
  |  Branch (347:10): [True: 1.27k, False: 148]
  |  Branch (347:35): [True: 756, False: 516]
  ------------------
  348|    904|        (profile == EEsProfile && version >= 310)) {
  ------------------
  |  Branch (348:10): [True: 148, False: 516]
  |  Branch (348:35): [True: 148, False: 0]
  ------------------
  349|    904|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangTessControl, source,
  350|    904|                                   infoSink, commonTable, symbolTables);
  351|    904|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangTessEvaluation, source,
  352|    904|                                   infoSink, commonTable, symbolTables);
  353|    904|    }
  354|       |
  355|       |    // check for geometry
  356|  1.42k|    if ((profile != EEsProfile && version >= 150) ||
  ------------------
  |  Branch (356:10): [True: 1.27k, False: 148]
  |  Branch (356:35): [True: 756, False: 516]
  ------------------
  357|    664|        (profile == EEsProfile && version >= 310))
  ------------------
  |  Branch (357:10): [True: 148, False: 516]
  |  Branch (357:35): [True: 148, False: 0]
  ------------------
  358|    904|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangGeometry, source,
  359|    904|                                   infoSink, commonTable, symbolTables);
  360|       |
  361|       |    // check for compute
  362|  1.42k|    if ((profile != EEsProfile && version >= 420) ||
  ------------------
  |  Branch (362:10): [True: 1.27k, False: 148]
  |  Branch (362:35): [True: 537, False: 735]
  ------------------
  363|    883|        (profile == EEsProfile && version >= 310))
  ------------------
  |  Branch (363:10): [True: 148, False: 735]
  |  Branch (363:35): [True: 148, False: 0]
  ------------------
  364|    685|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangCompute, source,
  365|    685|                                   infoSink, commonTable, symbolTables);
  366|       |
  367|       |    // check for ray tracing stages
  368|  1.42k|    if (profile != EEsProfile && version >= 450) {
  ------------------
  |  Branch (368:9): [True: 1.27k, False: 148]
  |  Branch (368:34): [True: 301, False: 971]
  ------------------
  369|    301|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangRayGen, source,
  370|    301|            infoSink, commonTable, symbolTables);
  371|    301|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangIntersect, source,
  372|    301|            infoSink, commonTable, symbolTables);
  373|    301|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangAnyHit, source,
  374|    301|            infoSink, commonTable, symbolTables);
  375|    301|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangClosestHit, source,
  376|    301|            infoSink, commonTable, symbolTables);
  377|    301|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangMiss, source,
  378|    301|            infoSink, commonTable, symbolTables);
  379|    301|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangCallable, source,
  380|    301|            infoSink, commonTable, symbolTables);
  381|    301|    }
  382|       |
  383|       |    // check for mesh
  384|  1.42k|    if ((profile != EEsProfile && version >= 450) ||
  ------------------
  |  Branch (384:10): [True: 1.27k, False: 148]
  |  Branch (384:35): [True: 301, False: 971]
  ------------------
  385|  1.11k|        (profile == EEsProfile && version >= 320))
  ------------------
  |  Branch (385:10): [True: 148, False: 971]
  |  Branch (385:35): [True: 7, False: 141]
  ------------------
  386|    308|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangMesh, source,
  387|    308|                                   infoSink, commonTable, symbolTables);
  388|       |
  389|       |    // check for task
  390|  1.42k|    if ((profile != EEsProfile && version >= 450) ||
  ------------------
  |  Branch (390:10): [True: 1.27k, False: 148]
  |  Branch (390:35): [True: 301, False: 971]
  ------------------
  391|  1.11k|        (profile == EEsProfile && version >= 320))
  ------------------
  |  Branch (391:10): [True: 148, False: 971]
  |  Branch (391:35): [True: 7, False: 141]
  ------------------
  392|    308|        success &= InitializeStageSymbolTable(*builtInParseables, version, profile, spvVersion, EShLangTask, source,
  393|    308|                                   infoSink, commonTable, symbolTables);
  394|       |
  395|  1.42k|    return success;
  396|  1.42k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_123CreateBuiltInParseablesER9TInfoSinkN7glslang9EShSourceE:
   94|  5.68k|{
   95|  5.68k|    switch (source) {
   96|  5.68k|    case EShSourceGlsl: return new TBuiltIns();              // GLSL builtIns
  ------------------
  |  Branch (96:5): [True: 5.68k, False: 0]
  ------------------
   97|      0|#ifdef ENABLE_HLSL
   98|      0|    case EShSourceHlsl: return new TBuiltInParseablesHlsl(); // HLSL intrinsics
  ------------------
  |  Branch (98:5): [True: 0, False: 5.68k]
  ------------------
   99|      0|#endif
  100|       |
  101|      0|    default:
  ------------------
  |  Branch (101:5): [True: 0, False: 5.68k]
  ------------------
  102|      0|        infoSink.info.message(EPrefixInternalError, "Unable to determine source language");
  103|      0|        return nullptr;
  104|  5.68k|    }
  105|  5.68k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_121InitializeSymbolTableERKNSt3__112basic_stringIcNS0_11char_traitsIcEEN7glslang14pool_allocatorIcEEEEi8EProfileRKNS4_10SpvVersionE11EShLanguageNS4_9EShSourceER9TInfoSinkRNS4_12TSymbolTableE:
  249|  14.4k|{
  250|  14.4k|    TIntermediate intermediate(language, version, profile);
  251|       |
  252|  14.4k|    intermediate.setSource(source);
  253|       |
  254|  14.4k|    std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(symbolTable, intermediate, version, profile, source,
  255|  14.4k|                                                                       language, infoSink, spvVersion, true, EShMsgDefault,
  256|  14.4k|                                                                       true));
  257|       |
  258|  14.4k|    TShader::ForbidIncluder includer;
  259|  14.4k|    TPpContext ppContext(*parseContext, "", includer);
  260|  14.4k|    TScanContext scanContext(*parseContext);
  261|  14.4k|    parseContext->setScanContext(&scanContext);
  262|  14.4k|    parseContext->setPpContext(&ppContext);
  263|       |
  264|       |    //
  265|       |    // Push the symbol table to give it an initial scope.  This
  266|       |    // push should not have a corresponding pop, so that built-ins
  267|       |    // are preserved, and the test for an empty table fails.
  268|       |    //
  269|       |
  270|  14.4k|    symbolTable.push();
  271|       |
  272|  14.4k|    const char* builtInShaders[2];
  273|  14.4k|    size_t builtInLengths[2];
  274|  14.4k|    builtInShaders[0] = builtIns.c_str();
  275|  14.4k|    builtInLengths[0] = builtIns.size();
  276|       |
  277|  14.4k|    if (builtInLengths[0] == 0)
  ------------------
  |  Branch (277:9): [True: 0, False: 14.4k]
  ------------------
  278|      0|        return true;
  279|       |
  280|  14.4k|    TInputScanner input(1, builtInShaders, builtInLengths);
  281|  14.4k|    if (! parseContext->parseShaderStrings(ppContext, input) != 0) {
  ------------------
  |  Branch (281:9): [True: 0, False: 14.4k]
  ------------------
  282|      0|        infoSink.info.message(EPrefixInternalError, "Unable to parse built-ins");
  283|      0|        printf("Unable to parse built-ins\n%s\n", infoSink.info.c_str());
  284|      0|        printf("%s\n", builtInShaders[0]);
  285|       |
  286|      0|        return false;
  287|      0|    }
  288|       |
  289|  14.4k|    return true;
  290|  14.4k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_126InitializeStageSymbolTableERN7glslang18TBuiltInParseablesEi8EProfileRKNS0_10SpvVersionE11EShLanguageNS0_9EShSourceER9TInfoSinkPPNS0_12TSymbolTableESD_:
  303|  8.65k|{
  304|  8.65k|    (*symbolTables[language]).adoptLevels(*commonTable[CommonIndex(profile, language)]);
  305|  8.65k|    if (!InitializeSymbolTable(builtInParseables.getStageString(language), version, profile, spvVersion, language, source,
  ------------------
  |  Branch (305:9): [True: 0, False: 8.65k]
  ------------------
  306|  8.65k|                          infoSink, *symbolTables[language]))
  307|      0|        return false;
  308|  8.65k|    builtInParseables.identifyBuiltIns(version, profile, spvVersion, language, *symbolTables[language]);
  309|  8.65k|    if (profile == EEsProfile && version >= 300)
  ------------------
  |  Branch (309:9): [True: 902, False: 7.75k]
  |  Branch (309:34): [True: 902, False: 0]
  ------------------
  310|    902|        (*symbolTables[language]).setNoBuiltInRedeclarations();
  311|  8.65k|    if (version == 110)
  ------------------
  |  Branch (311:9): [True: 0, False: 8.65k]
  ------------------
  312|      0|        (*symbolTables[language]).setSeparateNameSpaces();
  313|       |
  314|  8.65k|    return true;
  315|  8.65k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_111CommonIndexE8EProfile11EShLanguage:
  293|  17.3k|{
  294|  17.3k|    return (profile == EEsProfile && language == EShLangFragment) ? EPcFragment : EPcGeneral;
  ------------------
  |  Branch (294:13): [True: 1.80k, False: 15.5k]
  |  Branch (294:38): [True: 296, False: 1.50k]
  ------------------
  295|  17.3k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_117MapVersionToIndexEi:
  138|  8.52k|{
  139|  8.52k|    int index = 0;
  140|       |
  141|  8.52k|    switch (version) {
  142|      0|    case 100: index =  0; break;
  ------------------
  |  Branch (142:5): [True: 0, False: 8.52k]
  ------------------
  143|      0|    case 110: index =  1; break;
  ------------------
  |  Branch (143:5): [True: 0, False: 8.52k]
  ------------------
  144|      0|    case 120: index =  2; break;
  ------------------
  |  Branch (144:5): [True: 0, False: 8.52k]
  ------------------
  145|      0|    case 130: index =  3; break;
  ------------------
  |  Branch (145:5): [True: 0, False: 8.52k]
  ------------------
  146|  3.09k|    case 140: index =  4; break;
  ------------------
  |  Branch (146:5): [True: 3.09k, False: 5.42k]
  ------------------
  147|    936|    case 150: index =  5; break;
  ------------------
  |  Branch (147:5): [True: 936, False: 7.58k]
  ------------------
  148|      0|    case 300: index =  6; break;
  ------------------
  |  Branch (148:5): [True: 0, False: 8.52k]
  ------------------
  149|    186|    case 330: index =  7; break;
  ------------------
  |  Branch (149:5): [True: 186, False: 8.33k]
  ------------------
  150|    180|    case 400: index =  8; break;
  ------------------
  |  Branch (150:5): [True: 180, False: 8.34k]
  ------------------
  151|     12|    case 410: index =  9; break;
  ------------------
  |  Branch (151:5): [True: 12, False: 8.50k]
  ------------------
  152|      6|    case 420: index = 10; break;
  ------------------
  |  Branch (152:5): [True: 6, False: 8.51k]
  ------------------
  153|    960|    case 430: index = 11; break;
  ------------------
  |  Branch (153:5): [True: 960, False: 7.56k]
  ------------------
  154|    450|    case 440: index = 12; break;
  ------------------
  |  Branch (154:5): [True: 450, False: 8.07k]
  ------------------
  155|    846|    case 310: index = 13; break;
  ------------------
  |  Branch (155:5): [True: 846, False: 7.67k]
  ------------------
  156|  1.53k|    case 450: index = 14; break;
  ------------------
  |  Branch (156:5): [True: 1.53k, False: 6.98k]
  ------------------
  157|      0|    case 500: index =  0; break; // HLSL
  ------------------
  |  Branch (157:5): [True: 0, False: 8.52k]
  ------------------
  158|     42|    case 320: index = 15; break;
  ------------------
  |  Branch (158:5): [True: 42, False: 8.47k]
  ------------------
  159|    270|    case 460: index = 16; break;
  ------------------
  |  Branch (159:5): [True: 270, False: 8.25k]
  ------------------
  160|      0|    default:  assert(0);  break;
  ------------------
  |  Branch (160:5): [True: 0, False: 8.52k]
  ------------------
  161|  8.52k|    }
  162|       |
  163|  8.52k|    assert(index < VersionCount);
  164|       |
  165|  8.52k|    return index;
  166|  8.52k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_120MapSpvVersionToIndexERKN7glslang10SpvVersionE:
  171|  8.52k|{
  172|  8.52k|    int index = 0;
  173|       |
  174|  8.52k|    if (spvVersion.openGl > 0)
  ------------------
  |  Branch (174:9): [True: 0, False: 8.52k]
  ------------------
  175|      0|        index = 1;
  176|  8.52k|    else if (spvVersion.vulkan > 0) {
  ------------------
  |  Branch (176:14): [True: 8.52k, False: 0]
  ------------------
  177|  8.52k|        if (!spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (177:13): [True: 8.52k, False: 0]
  ------------------
  178|  8.52k|            index = 2;
  179|      0|        else
  180|      0|            index = 3;
  181|  8.52k|    }
  182|       |
  183|  8.52k|    assert(index < SpvVersionCount);
  184|       |
  185|  8.52k|    return index;
  186|  8.52k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_117MapProfileToIndexE8EProfile:
  191|  8.52k|{
  192|  8.52k|    int index = 0;
  193|       |
  194|  8.52k|    switch (profile) {
  195|  3.09k|    case ENoProfile:            index = 0; break;
  ------------------
  |  Branch (195:5): [True: 3.09k, False: 5.42k]
  ------------------
  196|  4.20k|    case ECoreProfile:          index = 1; break;
  ------------------
  |  Branch (196:5): [True: 4.20k, False: 4.31k]
  ------------------
  197|    330|    case ECompatibilityProfile: index = 2; break;
  ------------------
  |  Branch (197:5): [True: 330, False: 8.19k]
  ------------------
  198|    888|    case EEsProfile:            index = 3; break;
  ------------------
  |  Branch (198:5): [True: 888, False: 7.63k]
  ------------------
  199|      0|    default:                               break;
  ------------------
  |  Branch (199:5): [True: 0, False: 8.52k]
  ------------------
  200|  8.52k|    }
  201|       |
  202|  8.52k|    assert(index < ProfileCount);
  203|       |
  204|  8.52k|    return index;
  205|  8.52k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_116MapSourceToIndexEN7glslang9EShSourceE:
  210|  8.52k|{
  211|  8.52k|    int index = 0;
  212|       |
  213|  8.52k|    switch (source) {
  214|  8.52k|    case EShSourceGlsl: index = 0; break;
  ------------------
  |  Branch (214:5): [True: 8.52k, False: 0]
  ------------------
  215|      0|    case EShSourceHlsl: index = 1; break;
  ------------------
  |  Branch (215:5): [True: 0, False: 8.52k]
  ------------------
  216|      0|    default:                       break;
  ------------------
  |  Branch (216:5): [True: 0, False: 8.52k]
  ------------------
  217|  8.52k|    }
  218|       |
  219|  8.52k|    assert(index < SourceCount);
  220|       |
  221|  8.52k|    return index;
  222|  8.52k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_125AddContextSpecificSymbolsEPK16TBuiltInResourceR9TInfoSinkRN7glslang12TSymbolTableEi8EProfileRKNS5_10SpvVersionE11EShLanguageNS5_9EShSourceE:
  400|  4.26k|{
  401|  4.26k|    std::unique_ptr<TBuiltInParseables> builtInParseables(CreateBuiltInParseables(infoSink, source));
  402|       |
  403|  4.26k|    if (builtInParseables == nullptr)
  ------------------
  |  Branch (403:9): [True: 0, False: 4.26k]
  ------------------
  404|      0|        return false;
  405|       |
  406|  4.26k|    builtInParseables->initialize(*resources, version, profile, spvVersion, language);
  407|  4.26k|    if (!InitializeSymbolTable(builtInParseables->getCommonString(), version, profile, spvVersion, language, source, infoSink, symbolTable))
  ------------------
  |  Branch (407:9): [True: 0, False: 4.26k]
  ------------------
  408|      0|        return false;
  409|  4.26k|    builtInParseables->identifyBuiltIns(version, profile, spvVersion, language, symbolTable, *resources);
  410|       |
  411|  4.26k|    return true;
  412|  4.26k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_118CreateParseContextERN7glslang12TSymbolTableERNS0_13TIntermediateEi8EProfileNS0_9EShSourceE11EShLanguageR9TInfoSinkNS0_10SpvVersionEb11EShMessagesbNSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEE:
  113|  18.7k|{
  114|  18.7k|    switch (source) {
  115|  18.7k|    case EShSourceGlsl: {
  ------------------
  |  Branch (115:5): [True: 18.7k, False: 0]
  ------------------
  116|  18.7k|        if (sourceEntryPointName.size() == 0)
  ------------------
  |  Branch (116:13): [True: 18.7k, False: 0]
  ------------------
  117|  18.7k|            intermediate.setEntryPointName("main");
  118|  18.7k|        TString entryPoint = sourceEntryPointName.c_str();
  119|  18.7k|        return new TParseContext(symbolTable, intermediate, parsingBuiltIns, version, profile, spvVersion,
  120|  18.7k|                                 language, infoSink, forwardCompatible, messages, &entryPoint);
  121|      0|    }
  122|      0|#ifdef ENABLE_HLSL
  123|      0|    case EShSourceHlsl:
  ------------------
  |  Branch (123:5): [True: 0, False: 18.7k]
  ------------------
  124|      0|        return new HlslParseContext(symbolTable, intermediate, parsingBuiltIns, version, profile, spvVersion,
  125|      0|                                    language, infoSink, sourceEntryPointName.c_str(), forwardCompatible, messages);
  126|      0|#endif
  127|      0|    default:
  ------------------
  |  Branch (127:5): [True: 0, False: 18.7k]
  ------------------
  128|      0|        infoSink.info.message(EPrefixInternalError, "Unable to determine source language");
  129|      0|        return nullptr;
  130|  18.7k|    }
  131|  18.7k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_111DoFullParseclERN7glslang17TParseContextBaseERNS1_10TPpContextERNS1_13TInputScannerEbRNS1_12TSymbolTableERNS1_13TIntermediateE20EShOptimizationLevel11EShMessages:
 1257|  1.42k|    {
 1258|  1.42k|        bool success = true;
 1259|       |        // Parse the full shader.
 1260|  1.42k|        if (! parseContext.parseShaderStrings(ppContext, fullInput, versionWillBeError))
  ------------------
  |  Branch (1260:13): [True: 1.37k, False: 43]
  ------------------
 1261|  1.37k|            success = false;
 1262|       |
 1263|  1.42k|        if (success && intermediate.getTreeRoot()) {
  ------------------
  |  Branch (1263:13): [True: 43, False: 1.37k]
  |  Branch (1263:24): [True: 43, False: 0]
  ------------------
 1264|     43|            if (optLevel == EShOptNoGeneration)
  ------------------
  |  Branch (1264:17): [True: 0, False: 43]
  ------------------
 1265|      0|                parseContext.infoSink.info.message(EPrefixNone, "No errors.  No code generation or linking was requested.");
 1266|     43|            else
 1267|     43|                success = intermediate.postProcess(intermediate.getTreeRoot(), parseContext.getLanguage());
 1268|  1.37k|        } else if (! success) {
  ------------------
  |  Branch (1268:20): [True: 1.37k, False: 0]
  ------------------
 1269|  1.37k|            parseContext.infoSink.info.prefix(EPrefixError);
 1270|  1.37k|            parseContext.infoSink.info << parseContext.getNumErrors() << " compilation errors.  No code generated.\n\n";
 1271|  1.37k|        }
 1272|       |
 1273|  1.42k|        if (messages & EShMsgAST)
  ------------------
  |  Branch (1273:13): [True: 0, False: 1.42k]
  ------------------
 1274|      0|            intermediate.output(parseContext.infoSink, true);
 1275|       |
 1276|  1.42k|        return success;
 1277|  1.42k|    }
_ZN7glslang17TDeferredCompilerC2E11EShLanguageR9TInfoSink:
 1758|  4.26k|    TDeferredCompiler(EShLanguage s, TInfoSink& i) : TCompiler(s, i) { }
ShaderLang.cpp:_ZN12_GLOBAL__N_118PreprocessDeferredEP9TCompilerPKPKciPKiS5_S3_20EShOptimizationLevelPK16TBuiltInResourcei8EProfilebib11EShMessagesRN7glslang7TShader8IncluderERNSE_13TIntermediateEPNSt3__112basic_stringIcNSK_11char_traitsIcEENSK_9allocatorIcEEEEPNSE_12TEnvironmentE:
 1306|  2.84k|{
 1307|  2.84k|    DoPreprocessing parser(outputString);
 1308|  2.84k|    return ProcessDeferred(compiler, shaderStrings, numStrings, inputLengths, stringNames,
 1309|  2.84k|                           preamble, optLevel, resources, defaultVersion,
 1310|  2.84k|                           defaultProfile, forceDefaultVersionAndProfile, overrideVersion,
 1311|  2.84k|                           forwardCompatible, messages, intermediate, parser,
 1312|  2.84k|                           false, includer, "", environment);
 1313|  2.84k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_115DoPreprocessingC2EPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1109|  2.84k|    explicit DoPreprocessing(std::string* string): outputString(string) {}
ShaderLang.cpp:_ZN12_GLOBAL__N_115ProcessDeferredINS_15DoPreprocessingEEEbP9TCompilerPKPKciPKiS7_S5_20EShOptimizationLevelPK16TBuiltInResourcei8EProfilebib11EShMessagesRN7glslang13TIntermediateERT_bRNSG_7TShader8IncluderENSt3__112basic_stringIcNSO_11char_traitsIcEENSO_9allocatorIcEEEEPKNSG_12TEnvironmentEb:
  822|  2.84k|{
  823|       |    // This must be undone (.pop()) by the caller, after it finishes consuming the created tree.
  824|  2.84k|    GetThreadPoolAllocator().push();
  825|       |
  826|  2.84k|    if (numStrings == 0)
  ------------------
  |  Branch (826:9): [True: 0, False: 2.84k]
  ------------------
  827|      0|        return true;
  828|       |
  829|       |    // Move to length-based strings, rather than null-terminated strings.
  830|       |    // Also, add strings to include the preamble and to ensure the shader is not null,
  831|       |    // which lets the grammar accept what was a null (post preprocessing) shader.
  832|       |    //
  833|       |    // Shader will look like
  834|       |    //   string 0:                system preamble
  835|       |    //   string 1:                custom preamble
  836|       |    //   string 2...numStrings+1: user's shader
  837|       |    //   string numStrings+2:     "int;"
  838|  2.84k|    const int numPre = 2;
  839|  2.84k|    const int numPost = requireNonempty? 1 : 0;
  ------------------
  |  Branch (839:25): [True: 0, False: 2.84k]
  ------------------
  840|  2.84k|    const int numTotal = numPre + numStrings + numPost;
  841|  2.84k|    std::unique_ptr<size_t[]> lengths(new size_t[numTotal]);
  842|  2.84k|    std::unique_ptr<const char*[]> strings(new const char*[numTotal]);
  843|  2.84k|    std::unique_ptr<const char*[]> names(new const char*[numTotal]);
  844|  5.68k|    for (int s = 0; s < numStrings; ++s) {
  ------------------
  |  Branch (844:21): [True: 2.84k, False: 2.84k]
  ------------------
  845|  2.84k|        strings[s + numPre] = shaderStrings[s];
  846|  2.84k|        if (inputLengths == nullptr || inputLengths[s] < 0)
  ------------------
  |  Branch (846:13): [True: 0, False: 2.84k]
  |  Branch (846:40): [True: 0, False: 2.84k]
  ------------------
  847|      0|            lengths[s + numPre] = strlen(shaderStrings[s]);
  848|  2.84k|        else
  849|  2.84k|            lengths[s + numPre] = inputLengths[s];
  850|  2.84k|    }
  851|  2.84k|    if (stringNames != nullptr) {
  ------------------
  |  Branch (851:9): [True: 2.84k, False: 0]
  ------------------
  852|  5.68k|        for (int s = 0; s < numStrings; ++s)
  ------------------
  |  Branch (852:25): [True: 2.84k, False: 2.84k]
  ------------------
  853|  2.84k|            names[s + numPre] = stringNames[s];
  854|  2.84k|    } else {
  855|      0|        for (int s = 0; s < numStrings; ++s)
  ------------------
  |  Branch (855:25): [True: 0, False: 0]
  ------------------
  856|      0|            names[s + numPre] = nullptr;
  857|      0|    }
  858|       |
  859|       |    // Get all the stages, languages, clients, and other environment
  860|       |    // stuff sorted out.
  861|  2.84k|    EShSource sourceGuess = (messages & EShMsgReadHlsl) != 0 ? EShSourceHlsl : EShSourceGlsl;
  ------------------
  |  Branch (861:29): [True: 0, False: 2.84k]
  ------------------
  862|  2.84k|    SpvVersion spvVersion;
  863|  2.84k|    EShLanguage stage = compiler->getLanguage();
  864|  2.84k|    TranslateEnvironment(environment, messages, sourceGuess, stage, spvVersion);
  865|  2.84k|#ifdef ENABLE_HLSL
  866|  2.84k|    EShSource source = sourceGuess;
  867|  2.84k|    if (environment != nullptr && environment->target.hlslFunctionality1)
  ------------------
  |  Branch (867:9): [True: 2.84k, False: 0]
  |  Branch (867:35): [True: 0, False: 2.84k]
  ------------------
  868|      0|        intermediate.setHlslFunctionality1();
  869|       |#else
  870|       |    const EShSource source = EShSourceGlsl;
  871|       |#endif
  872|       |    // First, without using the preprocessor or parser, find the #version, so we know what
  873|       |    // symbol tables, processing rules, etc. to set up.  This does not need the extra strings
  874|       |    // outlined above, just the user shader, after the system and user preambles.
  875|  2.84k|    glslang::TInputScanner userInput(numStrings, &strings[numPre], &lengths[numPre]);
  876|  2.84k|    int version = 0;
  877|  2.84k|    EProfile profile = ENoProfile;
  878|  2.84k|    bool versionNotFirstToken = false;
  879|  2.84k|    bool versionNotFirst = (source == EShSourceHlsl)
  ------------------
  |  Branch (879:28): [True: 0, False: 2.84k]
  ------------------
  880|  2.84k|                                ? true
  881|  2.84k|                                : userInput.scanVersion(version, profile, versionNotFirstToken);
  882|  2.84k|    bool versionNotFound = version == 0;
  883|  2.84k|    if (forceDefaultVersionAndProfile && source == EShSourceGlsl) {
  ------------------
  |  Branch (883:9): [True: 0, False: 2.84k]
  |  Branch (883:42): [True: 0, False: 0]
  ------------------
  884|      0|        if (! (messages & EShMsgSuppressWarnings) && ! versionNotFound &&
  ------------------
  |  Branch (884:13): [True: 0, False: 0]
  |  Branch (884:54): [True: 0, False: 0]
  ------------------
  885|      0|            (version != defaultVersion || profile != defaultProfile)) {
  ------------------
  |  Branch (885:14): [True: 0, False: 0]
  |  Branch (885:43): [True: 0, False: 0]
  ------------------
  886|      0|            compiler->infoSink.info << "Warning, (version, profile) forced to be ("
  887|      0|                                    << defaultVersion << ", " << ProfileName(defaultProfile)
  888|      0|                                    << "), while in source code it is ("
  889|      0|                                    << version << ", " << ProfileName(profile) << ")\n";
  890|      0|        }
  891|       |
  892|      0|        if (versionNotFound) {
  ------------------
  |  Branch (892:13): [True: 0, False: 0]
  ------------------
  893|      0|            versionNotFirstToken = false;
  894|      0|            versionNotFirst = false;
  895|      0|            versionNotFound = false;
  896|      0|        }
  897|      0|        version = defaultVersion;
  898|      0|        profile = defaultProfile;
  899|      0|    }
  900|  2.84k|    if (source == EShSourceGlsl && overrideVersion != 0) {
  ------------------
  |  Branch (900:9): [True: 2.84k, False: 0]
  |  Branch (900:36): [True: 0, False: 2.84k]
  ------------------
  901|      0|        version = overrideVersion;
  902|      0|    }
  903|       |
  904|  2.84k|    bool goodVersion = DeduceVersionProfile(compiler->infoSink, stage,
  905|  2.84k|                                            versionNotFirst, defaultVersion, source, version, profile, spvVersion);
  906|  2.84k|    bool versionWillBeError = (versionNotFound || (profile == EEsProfile && version >= 300 && versionNotFirst));
  ------------------
  |  Branch (906:32): [True: 920, False: 1.92k]
  |  Branch (906:52): [True: 296, False: 1.62k]
  |  Branch (906:77): [True: 296, False: 0]
  |  Branch (906:95): [True: 32, False: 264]
  ------------------
  907|  2.84k|    bool warnVersionNotFirst = false;
  908|  2.84k|    if (! versionWillBeError && versionNotFirstToken) {
  ------------------
  |  Branch (908:9): [True: 1.88k, False: 952]
  |  Branch (908:33): [True: 52, False: 1.83k]
  ------------------
  909|     52|        if (messages & EShMsgRelaxedErrors)
  ------------------
  |  Branch (909:13): [True: 0, False: 52]
  ------------------
  910|      0|            warnVersionNotFirst = true;
  911|     52|        else
  912|     52|            versionWillBeError = true;
  913|     52|    }
  914|       |
  915|  2.84k|    intermediate.setSource(source);
  916|  2.84k|    intermediate.setVersion(version);
  917|  2.84k|    intermediate.setProfile(profile);
  918|  2.84k|    intermediate.setSpv(spvVersion);
  919|  2.84k|    RecordProcesses(intermediate, messages, sourceEntryPointName);
  920|  2.84k|    if (spvVersion.vulkan > 0)
  ------------------
  |  Branch (920:9): [True: 2.84k, False: 0]
  ------------------
  921|  2.84k|        intermediate.setOriginUpperLeft();
  922|  2.84k|#ifdef ENABLE_HLSL
  923|  2.84k|    if ((messages & EShMsgHlslOffsets) || source == EShSourceHlsl)
  ------------------
  |  Branch (923:9): [True: 0, False: 2.84k]
  |  Branch (923:43): [True: 0, False: 2.84k]
  ------------------
  924|      0|        intermediate.setHlslOffsets();
  925|  2.84k|#endif
  926|  2.84k|    if (messages & EShMsgDebugInfo) {
  ------------------
  |  Branch (926:9): [True: 0, False: 2.84k]
  ------------------
  927|      0|        intermediate.setSourceFile(names[numPre]);
  928|      0|        for (int s = 0; s < numStrings; ++s) {
  ------------------
  |  Branch (928:25): [True: 0, False: 0]
  ------------------
  929|       |            // The string may not be null-terminated, so make sure we provide
  930|       |            // the length along with the string.
  931|      0|            intermediate.addSourceText(strings[numPre + s], lengths[numPre + s]);
  932|      0|        }
  933|      0|    }
  934|  2.84k|    if (!SetupBuiltinSymbolTable(version, profile, spvVersion, source)) {
  ------------------
  |  Branch (934:9): [True: 0, False: 2.84k]
  ------------------
  935|      0|        return false;
  936|      0|    }
  937|       |
  938|  2.84k|    TSymbolTable* cachedTable = SharedSymbolTables[MapVersionToIndex(version)]
  939|  2.84k|                                                  [MapSpvVersionToIndex(spvVersion)]
  940|  2.84k|                                                  [MapProfileToIndex(profile)]
  941|  2.84k|                                                  [MapSourceToIndex(source)]
  942|  2.84k|                                                  [stage];
  943|       |
  944|       |    // Dynamically allocate the symbol table so we can control when it is deallocated WRT the pool.
  945|  2.84k|    std::unique_ptr<TSymbolTable> symbolTable(new TSymbolTable);
  946|  2.84k|    if (cachedTable)
  ------------------
  |  Branch (946:9): [True: 2.84k, False: 0]
  ------------------
  947|  2.84k|        symbolTable->adoptLevels(*cachedTable);
  948|       |
  949|  2.84k|    if (intermediate.getUniqueId() != 0)
  ------------------
  |  Branch (949:9): [True: 0, False: 2.84k]
  ------------------
  950|      0|        symbolTable->overwriteUniqueId(intermediate.getUniqueId());
  951|       |
  952|       |    // Add built-in symbols that are potentially context dependent;
  953|       |    // they get popped again further down.
  954|  2.84k|    if (! AddContextSpecificSymbols(resources, compiler->infoSink, *symbolTable, version, profile, spvVersion,
  ------------------
  |  Branch (954:9): [True: 0, False: 2.84k]
  ------------------
  955|  2.84k|                                    stage, source)) {
  956|      0|        return false;
  957|      0|    }
  958|       |
  959|  2.84k|    if (messages & EShMsgBuiltinSymbolTable)
  ------------------
  |  Branch (959:9): [True: 0, False: 2.84k]
  ------------------
  960|      0|        DumpBuiltinSymbolTable(compiler->infoSink, *symbolTable);
  961|       |
  962|       |    //
  963|       |    // Now we can process the full shader under proper symbols and rules.
  964|       |    //
  965|       |
  966|  2.84k|    std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, version, profile, source,
  967|  2.84k|                                                    stage, compiler->infoSink,
  968|  2.84k|                                                    spvVersion, forwardCompatible, messages, false, sourceEntryPointName));
  969|  2.84k|    parseContext->compileOnly = compileOnly;
  970|  2.84k|    TPpContext ppContext(*parseContext, names[numPre] ? names[numPre] : "", includer);
  ------------------
  |  Branch (970:41): [True: 2.84k, False: 0]
  ------------------
  971|       |
  972|       |    // only GLSL (bison triggered, really) needs an externally set scan context
  973|  2.84k|    glslang::TScanContext scanContext(*parseContext);
  974|  2.84k|    if (source == EShSourceGlsl)
  ------------------
  |  Branch (974:9): [True: 2.84k, False: 0]
  ------------------
  975|  2.84k|        parseContext->setScanContext(&scanContext);
  976|       |
  977|  2.84k|    parseContext->setPpContext(&ppContext);
  978|  2.84k|    parseContext->setLimits(*resources);
  979|  2.84k|    if (! goodVersion)
  ------------------
  |  Branch (979:9): [True: 1.13k, False: 1.70k]
  ------------------
  980|  1.13k|        parseContext->addError();
  981|  2.84k|    if (warnVersionNotFirst) {
  ------------------
  |  Branch (981:9): [True: 0, False: 2.84k]
  ------------------
  982|      0|        TSourceLoc loc;
  983|      0|        loc.init();
  984|      0|        parseContext->warn(loc, "Illegal to have non-comment, non-whitespace tokens before #version", "#version", "");
  985|      0|    }
  986|       |
  987|  2.84k|    parseContext->initializeExtensionBehavior();
  988|       |
  989|       |    // Fill in the strings as outlined above.
  990|  2.84k|    std::string preamble;
  991|  2.84k|    parseContext->getPreamble(preamble);
  992|  2.84k|    strings[0] = preamble.c_str();
  993|  2.84k|    lengths[0] = strlen(strings[0]);
  994|  2.84k|    names[0] = nullptr;
  995|  2.84k|    strings[1] = customPreamble;
  996|  2.84k|    lengths[1] = strlen(strings[1]);
  997|  2.84k|    names[1] = nullptr;
  998|  2.84k|    assert(2 == numPre);
  999|  2.84k|    if (requireNonempty) {
  ------------------
  |  Branch (999:9): [True: 0, False: 2.84k]
  ------------------
 1000|      0|        const int postIndex = numStrings + numPre;
 1001|      0|        strings[postIndex] = "\n int;";
 1002|      0|        lengths[postIndex] = strlen(strings[numStrings + numPre]);
 1003|      0|        names[postIndex] = nullptr;
 1004|      0|    }
 1005|  2.84k|    TInputScanner fullInput(numStrings + numPre + numPost, strings.get(), lengths.get(), names.get(), numPre, numPost);
 1006|       |
 1007|       |    // Push a new symbol allocation scope that will get used for the shader's globals.
 1008|  2.84k|    symbolTable->push();
 1009|       |
 1010|  2.84k|    bool success = processingContext(*parseContext, ppContext, fullInput,
 1011|  2.84k|                                     versionWillBeError, *symbolTable,
 1012|  2.84k|                                     intermediate, optLevel, messages);
 1013|  2.84k|    intermediate.setUniqueId(symbolTable->getMaxSymbolId());
 1014|  2.84k|    return success;
 1015|  2.84k|}
ShaderLang.cpp:_ZN12_GLOBAL__N_115DoPreprocessingclERN7glslang17TParseContextBaseERNS1_10TPpContextERNS1_13TInputScannerEbRNS1_12TSymbolTableERNS1_13TIntermediateE20EShOptimizationLevel11EShMessages:
 1114|  2.84k|    {
 1115|       |        // This is a list of tokens that do not require a space before or after.
 1116|  2.84k|        static const std::string noNeededSpaceBeforeTokens = ";)[].,";
 1117|  2.84k|        static const std::string noNeededSpaceAfterTokens = ".([";
 1118|  2.84k|        glslang::TPpToken ppToken;
 1119|       |
 1120|  2.84k|        parseContext.setScanner(&input);
 1121|  2.84k|        ppContext.setInput(input, versionWillBeError);
 1122|       |
 1123|  2.84k|        std::string outputBuffer;
 1124|  2.84k|        SourceLineSynchronizer lineSync(
 1125|  2.84k|            std::bind(&TInputScanner::getLastValidSourceIndex, &input), &outputBuffer);
 1126|       |
 1127|  2.84k|        parseContext.setExtensionCallback([&lineSync, &outputBuffer](
 1128|  2.84k|            int line, const char* extension, const char* behavior) {
 1129|  2.84k|                lineSync.syncToLine(line);
 1130|  2.84k|                outputBuffer += "#extension ";
 1131|  2.84k|                outputBuffer += extension;
 1132|  2.84k|                outputBuffer += " : ";
 1133|  2.84k|                outputBuffer += behavior;
 1134|  2.84k|        });
 1135|       |
 1136|  2.84k|        parseContext.setLineCallback([&lineSync, &outputBuffer, &parseContext](
 1137|  2.84k|            int curLineNum, int newLineNum, bool hasSource, int sourceNum, const char* sourceName) {
 1138|       |            // SourceNum is the number of the source-string that is being parsed.
 1139|  2.84k|            lineSync.syncToLine(curLineNum);
 1140|  2.84k|            outputBuffer += "#line ";
 1141|  2.84k|            outputBuffer += std::to_string(newLineNum);
 1142|  2.84k|            if (hasSource) {
 1143|  2.84k|                outputBuffer += ' ';
 1144|  2.84k|                if (sourceName != nullptr) {
 1145|  2.84k|                    outputBuffer += '\"';
 1146|  2.84k|                    outputBuffer += sourceName;
 1147|  2.84k|                    outputBuffer += '\"';
 1148|  2.84k|                } else {
 1149|  2.84k|                    outputBuffer += std::to_string(sourceNum);
 1150|  2.84k|                }
 1151|  2.84k|            }
 1152|  2.84k|            if (parseContext.lineDirectiveShouldSetNextLine()) {
 1153|       |                // newLineNum is the new line number for the line following the #line
 1154|       |                // directive. So the new line number for the current line is
 1155|  2.84k|                newLineNum -= 1;
 1156|  2.84k|            }
 1157|  2.84k|            outputBuffer += '\n';
 1158|       |            // And we are at the next line of the #line directive now.
 1159|  2.84k|            lineSync.setLineNum(newLineNum + 1);
 1160|  2.84k|        });
 1161|       |
 1162|  2.84k|        parseContext.setVersionCallback(
 1163|  2.84k|            [&lineSync, &outputBuffer](int line, int version, const char* str) {
 1164|  2.84k|                lineSync.syncToLine(line);
 1165|  2.84k|                outputBuffer += "#version ";
 1166|  2.84k|                outputBuffer += std::to_string(version);
 1167|  2.84k|                if (str) {
 1168|  2.84k|                    outputBuffer += ' ';
 1169|  2.84k|                    outputBuffer += str;
 1170|  2.84k|                }
 1171|  2.84k|            });
 1172|       |
 1173|  2.84k|        parseContext.setPragmaCallback([&lineSync, &outputBuffer](
 1174|  2.84k|            int line, const glslang::TVector<glslang::TString>& ops) {
 1175|  2.84k|                lineSync.syncToLine(line);
 1176|  2.84k|                outputBuffer += "#pragma ";
 1177|  2.84k|                for(size_t i = 0; i < ops.size(); ++i) {
 1178|  2.84k|                    outputBuffer += ops[i].c_str();
 1179|  2.84k|                }
 1180|  2.84k|        });
 1181|       |
 1182|  2.84k|        parseContext.setErrorCallback([&lineSync, &outputBuffer](
 1183|  2.84k|            int line, const char* errorMessage) {
 1184|  2.84k|                lineSync.syncToLine(line);
 1185|  2.84k|                outputBuffer += "#error ";
 1186|  2.84k|                outputBuffer += errorMessage;
 1187|  2.84k|        });
 1188|       |
 1189|  2.84k|        int lastToken = EndOfInput; // lastToken records the last token processed.
 1190|  2.84k|        std::string lastTokenName;
 1191|  36.7M|        do {
 1192|  36.7M|            int token = ppContext.tokenize(ppToken);
 1193|  36.7M|            if (token == EndOfInput)
  ------------------
  |  Branch (1193:17): [True: 2.84k, False: 36.7M]
  ------------------
 1194|  2.84k|                break;
 1195|       |
 1196|  36.7M|            bool isNewString = lineSync.syncToMostRecentString();
 1197|  36.7M|            bool isNewLine = lineSync.syncToLine(ppToken.loc.line);
 1198|       |
 1199|  36.7M|            if (isNewLine) {
  ------------------
  |  Branch (1199:17): [True: 2.51M, False: 34.2M]
  ------------------
 1200|       |                // Don't emit whitespace onto empty lines.
 1201|       |                // Copy any whitespace characters at the start of a line
 1202|       |                // from the input to the output.
 1203|  2.51M|                if (ppToken.loc.column > 0)
  ------------------
  |  Branch (1203:21): [True: 2.51M, False: 0]
  ------------------
 1204|  2.51M|                    outputBuffer += std::string(ppToken.loc.column - 1, ' ');
 1205|  2.51M|            }
 1206|       |
 1207|       |            // Output a space in between tokens, but not at the start of a line,
 1208|       |            // and also not around special tokens. This helps with readability
 1209|       |            // and consistency.
 1210|  36.7M|            if (!isNewString && !isNewLine && lastToken != EndOfInput) {
  ------------------
  |  Branch (1210:17): [True: 36.7M, False: 700]
  |  Branch (1210:33): [True: 34.2M, False: 2.51M]
  |  Branch (1210:47): [True: 34.2M, False: 2]
  ------------------
 1211|       |                // left parenthesis need a leading space, except it is in a function-call-like context.
 1212|       |                // examples: `for (xxx)`, `a * (b + c)`, `vec(2.0)`, `foo(x, y, z)`
 1213|  34.2M|                if (token == '(') {
  ------------------
  |  Branch (1213:21): [True: 685k, False: 33.5M]
  ------------------
 1214|   685k|                    if (lastToken != PpAtomIdentifier ||
  ------------------
  |  Branch (1214:25): [True: 214k, False: 471k]
  ------------------
 1215|   471k|                        lastTokenName == "if" ||
  ------------------
  |  Branch (1215:25): [True: 2.55k, False: 469k]
  ------------------
 1216|   469k|                        lastTokenName == "for" ||
  ------------------
  |  Branch (1216:25): [True: 70, False: 468k]
  ------------------
 1217|   468k|                        lastTokenName == "while" ||
  ------------------
  |  Branch (1217:25): [True: 162, False: 468k]
  ------------------
 1218|   468k|                        lastTokenName == "switch")
  ------------------
  |  Branch (1218:25): [True: 278, False: 468k]
  ------------------
 1219|   217k|                        outputBuffer += ' ';
 1220|  33.5M|                } else if ((noNeededSpaceBeforeTokens.find((char)token) == std::string::npos) &&
  ------------------
  |  Branch (1220:28): [True: 31.5M, False: 1.97M]
  ------------------
 1221|  31.5M|                    (noNeededSpaceAfterTokens.find((char)lastToken) == std::string::npos)) {
  ------------------
  |  Branch (1221:21): [True: 30.7M, False: 812k]
  ------------------
 1222|  30.7M|                    outputBuffer += ' ';
 1223|  30.7M|                }
 1224|  34.2M|            }
 1225|  36.7M|            if (token == PpAtomIdentifier)
  ------------------
  |  Branch (1225:17): [True: 4.44M, False: 32.3M]
  ------------------
 1226|  4.44M|                lastTokenName = ppToken.name;
 1227|  36.7M|            lastToken = token;
 1228|  36.7M|            if (token == PpAtomConstString) {
  ------------------
  |  Branch (1228:17): [True: 846, False: 36.7M]
  ------------------
 1229|    846|                outputBuffer += "\"";
 1230|    846|                appendEscapedString(outputBuffer, ppToken.name);
 1231|    846|                outputBuffer += "\"";
 1232|  36.7M|            } else {
 1233|  36.7M|                outputBuffer += ppToken.name;
 1234|  36.7M|            }
 1235|  36.7M|        } while (true);
  ------------------
  |  Branch (1235:18): [True: 36.7M, Folded]
  ------------------
 1236|  2.84k|        outputBuffer += '\n';
 1237|  2.84k|        *outputString = std::move(outputBuffer);
 1238|       |
 1239|  2.84k|        bool success = true;
 1240|  2.84k|        if (parseContext.getNumErrors() > 0) {
  ------------------
  |  Branch (1240:13): [True: 1.76k, False: 1.07k]
  ------------------
 1241|  1.76k|            success = false;
 1242|  1.76k|            parseContext.infoSink.info.prefix(EPrefixError);
 1243|  1.76k|            parseContext.infoSink.info << parseContext.getNumErrors() << " compilation errors.  No code generated.\n\n";
 1244|  1.76k|        }
 1245|  2.84k|        return success;
 1246|  2.84k|    }
ShaderLang.cpp:_ZN12_GLOBAL__N_122SourceLineSynchronizerC2ERKNSt3__18functionIFivEEEPNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 1024|  2.84k|      : getLastSourceIndex(lastSourceIndex), output(output), lastSource(-1), lastLine(0) {}
ShaderLang.cpp:_ZZN12_GLOBAL__N_115DoPreprocessingclERN7glslang17TParseContextBaseERNS1_10TPpContextERNS1_13TInputScannerEbRNS1_12TSymbolTableERNS1_13TIntermediateE20EShOptimizationLevel11EShMessagesENKUliPKcSF_E_clEiSF_SF_:
 1128|  11.1k|            int line, const char* extension, const char* behavior) {
 1129|  11.1k|                lineSync.syncToLine(line);
 1130|  11.1k|                outputBuffer += "#extension ";
 1131|  11.1k|                outputBuffer += extension;
 1132|  11.1k|                outputBuffer += " : ";
 1133|  11.1k|                outputBuffer += behavior;
 1134|  11.1k|        });
ShaderLang.cpp:_ZZN12_GLOBAL__N_115DoPreprocessingclERN7glslang17TParseContextBaseERNS1_10TPpContextERNS1_13TInputScannerEbRNS1_12TSymbolTableERNS1_13TIntermediateE20EShOptimizationLevel11EShMessagesENKUliibiPKcE_clEiibiSF_:
 1137|     84|            int curLineNum, int newLineNum, bool hasSource, int sourceNum, const char* sourceName) {
 1138|       |            // SourceNum is the number of the source-string that is being parsed.
 1139|     84|            lineSync.syncToLine(curLineNum);
 1140|     84|            outputBuffer += "#line ";
 1141|     84|            outputBuffer += std::to_string(newLineNum);
 1142|     84|            if (hasSource) {
  ------------------
  |  Branch (1142:17): [True: 40, False: 44]
  ------------------
 1143|     40|                outputBuffer += ' ';
 1144|     40|                if (sourceName != nullptr) {
  ------------------
  |  Branch (1144:21): [True: 36, False: 4]
  ------------------
 1145|     36|                    outputBuffer += '\"';
 1146|     36|                    outputBuffer += sourceName;
 1147|     36|                    outputBuffer += '\"';
 1148|     36|                } else {
 1149|      4|                    outputBuffer += std::to_string(sourceNum);
 1150|      4|                }
 1151|     40|            }
 1152|     84|            if (parseContext.lineDirectiveShouldSetNextLine()) {
  ------------------
  |  Branch (1152:17): [True: 10, False: 74]
  ------------------
 1153|       |                // newLineNum is the new line number for the line following the #line
 1154|       |                // directive. So the new line number for the current line is
 1155|     10|                newLineNum -= 1;
 1156|     10|            }
 1157|     84|            outputBuffer += '\n';
 1158|       |            // And we are at the next line of the #line directive now.
 1159|     84|            lineSync.setLineNum(newLineNum + 1);
 1160|     84|        });
ShaderLang.cpp:_ZN12_GLOBAL__N_122SourceLineSynchronizer10setLineNumEi:
 1059|     84|    void setLineNum(int newLineNum) { lastLine = newLineNum; }
ShaderLang.cpp:_ZZN12_GLOBAL__N_115DoPreprocessingclERN7glslang17TParseContextBaseERNS1_10TPpContextERNS1_13TInputScannerEbRNS1_12TSymbolTableERNS1_13TIntermediateE20EShOptimizationLevel11EShMessagesENKUliiPKcE_clEiiSF_:
 1163|  2.13k|            [&lineSync, &outputBuffer](int line, int version, const char* str) {
 1164|  2.13k|                lineSync.syncToLine(line);
 1165|  2.13k|                outputBuffer += "#version ";
 1166|  2.13k|                outputBuffer += std::to_string(version);
 1167|  2.13k|                if (str) {
  ------------------
  |  Branch (1167:21): [True: 844, False: 1.29k]
  ------------------
 1168|    844|                    outputBuffer += ' ';
 1169|    844|                    outputBuffer += str;
 1170|    844|                }
 1171|  2.13k|            });
ShaderLang.cpp:_ZZN12_GLOBAL__N_115DoPreprocessingclERN7glslang17TParseContextBaseERNS1_10TPpContextERNS1_13TInputScannerEbRNS1_12TSymbolTableERNS1_13TIntermediateE20EShOptimizationLevel11EShMessagesENKUliRKNS1_7TVectorINSt3__112basic_stringIcNSF_11char_traitsIcEENS1_14pool_allocatorIcEEEEEEE_clEiSO_:
 1174|     36|            int line, const glslang::TVector<glslang::TString>& ops) {
 1175|     36|                lineSync.syncToLine(line);
 1176|     36|                outputBuffer += "#pragma ";
 1177|    360|                for(size_t i = 0; i < ops.size(); ++i) {
  ------------------
  |  Branch (1177:35): [True: 324, False: 36]
  ------------------
 1178|    324|                    outputBuffer += ops[i].c_str();
 1179|    324|                }
 1180|     36|        });
ShaderLang.cpp:_ZZN12_GLOBAL__N_115DoPreprocessingclERN7glslang17TParseContextBaseERNS1_10TPpContextERNS1_13TInputScannerEbRNS1_12TSymbolTableERNS1_13TIntermediateE20EShOptimizationLevel11EShMessagesENKUliPKcE_clEiSF_:
 1183|    332|            int line, const char* errorMessage) {
 1184|    332|                lineSync.syncToLine(line);
 1185|    332|                outputBuffer += "#error ";
 1186|    332|                outputBuffer += errorMessage;
 1187|    332|        });
ShaderLang.cpp:_ZN12_GLOBAL__N_122SourceLineSynchronizer22syncToMostRecentStringEv:
 1031|  73.5M|    bool syncToMostRecentString() {
 1032|  73.5M|        if (getLastSourceIndex() != lastSource) {
  ------------------
  |  Branch (1032:13): [True: 5.67k, False: 73.5M]
  ------------------
 1033|       |            // After switching to a new source string, we need to reset lastLine
 1034|       |            // because line number resets every time a new source string is
 1035|       |            // used. We also need to output a newline to separate the output
 1036|       |            // from the previous source string (if there is one).
 1037|  5.67k|            if (lastSource != -1 || lastLine != 0)
  ------------------
  |  Branch (1037:17): [True: 2.83k, False: 2.84k]
  |  Branch (1037:37): [True: 0, False: 2.84k]
  ------------------
 1038|  2.83k|                *output += '\n';
 1039|  5.67k|            lastSource = getLastSourceIndex();
 1040|  5.67k|            lastLine = -1;
 1041|  5.67k|            return true;
 1042|  5.67k|        }
 1043|  73.5M|        return false;
 1044|  73.5M|    }
ShaderLang.cpp:_ZN12_GLOBAL__N_122SourceLineSynchronizer10syncToLineEi:
 1049|  36.7M|    bool syncToLine(int tokenLine) {
 1050|  36.7M|        syncToMostRecentString();
 1051|  36.7M|        const bool newLineStarted = lastLine < tokenLine;
 1052|  42.4M|        for (; lastLine < tokenLine; ++lastLine) {
  ------------------
  |  Branch (1052:16): [True: 5.69M, False: 36.7M]
  ------------------
 1053|  5.69M|            if (lastLine > 0) *output += '\n';
  ------------------
  |  Branch (1053:17): [True: 5.68M, False: 11.3k]
  ------------------
 1054|  5.69M|        }
 1055|  36.7M|        return newLineStarted;
 1056|  36.7M|    }
ShaderLang.cpp:_ZN12_GLOBAL__N_119appendEscapedStringERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKc:
 1083|    846|static void appendEscapedString(std::string& output, const char* string) {
 1084|       |
 1085|  5.41k|    for (const char* p = string; *p != '\0'; ++p) {
  ------------------
  |  Branch (1085:34): [True: 4.56k, False: 846]
  ------------------
 1086|  4.56k|        switch (*p) {
 1087|      8|        case '"': output += "\\\""; break;
  ------------------
  |  Branch (1087:9): [True: 8, False: 4.56k]
  ------------------
 1088|      8|        case '\\': output += "\\\\"; break;
  ------------------
  |  Branch (1088:9): [True: 8, False: 4.56k]
  ------------------
 1089|     16|        case '\a': output += "\\a"; break;
  ------------------
  |  Branch (1089:9): [True: 16, False: 4.55k]
  ------------------
 1090|      0|        case '\b': output += "\\b"; break;
  ------------------
  |  Branch (1090:9): [True: 0, False: 4.56k]
  ------------------
 1091|      8|        case '\f': output += "\\f"; break;
  ------------------
  |  Branch (1091:9): [True: 8, False: 4.56k]
  ------------------
 1092|     14|        case '\n': output += "\\n"; break;
  ------------------
  |  Branch (1092:9): [True: 14, False: 4.55k]
  ------------------
 1093|      0|        case '\r': output += "\\r"; break;
  ------------------
  |  Branch (1093:9): [True: 0, False: 4.56k]
  ------------------
 1094|      0|        case '\t': output += "\\t"; break;
  ------------------
  |  Branch (1094:9): [True: 0, False: 4.56k]
  ------------------
 1095|      0|        case '\v': output += "\\v"; break;
  ------------------
  |  Branch (1095:9): [True: 0, False: 4.56k]
  ------------------
 1096|  4.51k|        default:
  ------------------
  |  Branch (1096:9): [True: 4.51k, False: 54]
  ------------------
 1097|  4.51k|            output += *p;
 1098|  4.51k|            break;
 1099|  4.56k|        }
 1100|  4.56k|    }
 1101|    846|}
ShaderLang.cpp:_ZZN7glslang8TProgram15crossStageCheckE11EShMessagesEN19TFinalLinkTraverserC2Ev:
 2109|     42|        TFinalLinkTraverser() { }
ShaderLang.cpp:_ZZN7glslang8TProgram15crossStageCheckE11EShMessagesEN19TFinalLinkTraverser11visitSymbolEPNS_13TIntermSymbolE:
 2113|  10.4k|        {
 2114|       |            // Implicitly size arrays.
 2115|       |            // If an unsized array is left as unsized, it effectively
 2116|       |            // becomes run-time sized.
 2117|  10.4k|            symbol->getWritableType().adoptImplicitArraySizes(false);
 2118|  10.4k|        }

_ZN7glslang5TTypeD2Ev:
   53|  82.8M|TType::~TType() {}
_ZNK7glslang5TType16buildMangledNameERNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEE:
   59|  24.9M|{
   60|  24.9M|    if (isTensorARM())
  ------------------
  |  Branch (60:9): [True: 18.3k, False: 24.9M]
  ------------------
   61|  18.3k|        mangledName += 'T';
   62|  24.9M|    else if (isMatrix())
  ------------------
  |  Branch (62:14): [True: 103k, False: 24.8M]
  ------------------
   63|   103k|        mangledName += 'm';
   64|  24.8M|    else if (isVector())
  ------------------
  |  Branch (64:14): [True: 11.1M, False: 13.7M]
  ------------------
   65|  11.1M|        mangledName += 'v';
   66|       |
   67|  24.9M|    if (isCoopVecNV())
  ------------------
  |  Branch (67:9): [True: 236k, False: 24.7M]
  ------------------
   68|   236k|        mangledName += "coopvec";
   69|       |
   70|  24.9M|    switch (basicType) {
   71|  3.95M|    case EbtFloat:              mangledName += 'f';      break;
  ------------------
  |  Branch (71:5): [True: 3.95M, False: 20.9M]
  ------------------
   72|  6.35M|    case EbtInt:                mangledName += 'i';      break;
  ------------------
  |  Branch (72:5): [True: 6.35M, False: 18.6M]
  ------------------
   73|  4.34M|    case EbtUint:               mangledName += 'u';      break;
  ------------------
  |  Branch (73:5): [True: 4.34M, False: 20.6M]
  ------------------
   74|   445k|    case EbtBool:               mangledName += 'b';      break;
  ------------------
  |  Branch (74:5): [True: 445k, False: 24.5M]
  ------------------
   75|   584k|    case EbtDouble:             mangledName += 'd';      break;
  ------------------
  |  Branch (75:5): [True: 584k, False: 24.3M]
  ------------------
   76|  1.28M|    case EbtFloat16:            mangledName += "f16";    break;
  ------------------
  |  Branch (76:5): [True: 1.28M, False: 23.6M]
  ------------------
   77|  14.3k|    case EbtBFloat16:           mangledName += "bf16";   break;
  ------------------
  |  Branch (77:5): [True: 14.3k, False: 24.9M]
  ------------------
   78|  9.59k|    case EbtFloatE5M2:          mangledName += "fe5m2";  break;
  ------------------
  |  Branch (78:5): [True: 9.59k, False: 24.9M]
  ------------------
   79|  9.59k|    case EbtFloatE4M3:          mangledName += "fe4m3";  break;
  ------------------
  |  Branch (79:5): [True: 9.59k, False: 24.9M]
  ------------------
   80|  2.38k|    case EbtFloatE2M1:          mangledName += "fe2m1";  break;
  ------------------
  |  Branch (80:5): [True: 2.38k, False: 24.9M]
  ------------------
   81|  1.79k|    case EbtFloatE3M2:          mangledName += "fe3m2";  break;
  ------------------
  |  Branch (81:5): [True: 1.79k, False: 24.9M]
  ------------------
   82|  1.79k|    case EbtFloatE2M3:          mangledName += "fe2m3";  break;
  ------------------
  |  Branch (82:5): [True: 1.79k, False: 24.9M]
  ------------------
   83|  4.77k|    case EbtFloatUE8M0:         mangledName += "fue8m0";  break;
  ------------------
  |  Branch (83:5): [True: 4.77k, False: 24.9M]
  ------------------
   84|  4.77k|    case EbtFloatMXINT8:        mangledName += "fmxint8";break;
  ------------------
  |  Branch (84:5): [True: 4.77k, False: 24.9M]
  ------------------
   85|   550k|    case EbtInt8:               mangledName += "i8";     break;
  ------------------
  |  Branch (85:5): [True: 550k, False: 24.4M]
  ------------------
   86|   540k|    case EbtUint8:              mangledName += "u8";     break;
  ------------------
  |  Branch (86:5): [True: 540k, False: 24.4M]
  ------------------
   87|   659k|    case EbtInt16:              mangledName += "i16";    break;
  ------------------
  |  Branch (87:5): [True: 659k, False: 24.2M]
  ------------------
   88|   633k|    case EbtUint16:             mangledName += "u16";    break;
  ------------------
  |  Branch (88:5): [True: 633k, False: 24.3M]
  ------------------
   89|   802k|    case EbtInt64:              mangledName += "i64";    break;
  ------------------
  |  Branch (89:5): [True: 802k, False: 24.1M]
  ------------------
   90|   931k|    case EbtUint64:             mangledName += "u64";    break;
  ------------------
  |  Branch (90:5): [True: 931k, False: 24.0M]
  ------------------
   91|      0|    case EbtAtomicUint:         mangledName += "au";     break;
  ------------------
  |  Branch (91:5): [True: 0, False: 24.9M]
  ------------------
   92|  2.02k|    case EbtAccStruct:          mangledName += "as";     break;
  ------------------
  |  Branch (92:5): [True: 2.02k, False: 24.9M]
  ------------------
   93|  2.22k|    case EbtRayQuery:           mangledName += "rq";     break;
  ------------------
  |  Branch (93:5): [True: 2.22k, False: 24.9M]
  ------------------
   94|      0|    case EbtSpirvType:          mangledName += "spv-t";  break;
  ------------------
  |  Branch (94:5): [True: 0, False: 24.9M]
  ------------------
   95|  5.08k|    case EbtHitObjectNV:        mangledName += "ho";     break;
  ------------------
  |  Branch (95:5): [True: 5.08k, False: 24.9M]
  ------------------
   96|  4.54k|    case EbtHitObjectEXT:       mangledName += "ho";     break;
  ------------------
  |  Branch (96:5): [True: 4.54k, False: 24.9M]
  ------------------
   97|  11.1k|    case EbtTensorLayoutNV:     mangledName += "tl";     break;
  ------------------
  |  Branch (97:5): [True: 11.1k, False: 24.9M]
  ------------------
   98|  5.71k|    case EbtTensorViewNV:       mangledName += "tv";     break;
  ------------------
  |  Branch (98:5): [True: 5.71k, False: 24.9M]
  ------------------
   99|  3.12M|    case EbtSampler:
  ------------------
  |  Branch (99:5): [True: 3.12M, False: 21.8M]
  ------------------
  100|  3.12M|        switch (sampler.type) {
  101|   497k|        case EbtFloat16: mangledName += "f16"; break;
  ------------------
  |  Branch (101:9): [True: 497k, False: 2.62M]
  ------------------
  102|   759k|        case EbtInt:   mangledName += "i"; break;
  ------------------
  |  Branch (102:9): [True: 759k, False: 2.36M]
  ------------------
  103|   758k|        case EbtUint:  mangledName += "u"; break;
  ------------------
  |  Branch (103:9): [True: 758k, False: 2.36M]
  ------------------
  104|   172k|        case EbtInt64:   mangledName += "i64"; break;
  ------------------
  |  Branch (104:9): [True: 172k, False: 2.95M]
  ------------------
  105|   172k|        case EbtUint64:  mangledName += "u64"; break;
  ------------------
  |  Branch (105:9): [True: 172k, False: 2.95M]
  ------------------
  106|   766k|        default: break; // some compilers want this
  ------------------
  |  Branch (106:9): [True: 766k, False: 2.35M]
  ------------------
  107|  3.12M|        }
  108|  3.12M|        if (sampler.isImageClass())
  ------------------
  |  Branch (108:13): [True: 1.17M, False: 1.95M]
  ------------------
  109|  1.17M|            mangledName += "I";  // a normal image or subpass
  110|  1.95M|        else if (sampler.isPureSampler())
  ------------------
  |  Branch (110:18): [True: 194, False: 1.95M]
  ------------------
  111|    194|            mangledName += "p";  // a "pure" sampler
  112|  1.95M|        else if (!sampler.isCombined())
  ------------------
  |  Branch (112:18): [True: 143k, False: 1.81M]
  ------------------
  113|   143k|            mangledName += "t";  // a "pure" texture
  114|  1.81M|        else
  115|  1.81M|            mangledName += "s";  // traditional combined sampler
  116|  3.12M|        if (sampler.isArrayed())
  ------------------
  |  Branch (116:13): [True: 1.14M, False: 1.98M]
  ------------------
  117|  1.14M|            mangledName += "A";
  118|  3.12M|        if (sampler.isShadow())
  ------------------
  |  Branch (118:13): [True: 284k, False: 2.84M]
  ------------------
  119|   284k|            mangledName += "S";
  120|  3.12M|        if (sampler.isExternal())
  ------------------
  |  Branch (120:13): [True: 65, False: 3.12M]
  ------------------
  121|     65|            mangledName += "E";
  122|  3.12M|        if (sampler.isYuv())
  ------------------
  |  Branch (122:13): [True: 0, False: 3.12M]
  ------------------
  123|      0|            mangledName += "Y";
  124|  3.12M|        switch (sampler.dim) {
  125|  1.48M|        case Esd2D:       mangledName += "2";  break;
  ------------------
  |  Branch (125:9): [True: 1.48M, False: 1.64M]
  ------------------
  126|   354k|        case Esd3D:       mangledName += "3";  break;
  ------------------
  |  Branch (126:9): [True: 354k, False: 2.77M]
  ------------------
  127|   523k|        case EsdCube:     mangledName += "C";  break;
  ------------------
  |  Branch (127:9): [True: 523k, False: 2.60M]
  ------------------
  128|   603k|        case Esd1D:       mangledName += "1";  break;
  ------------------
  |  Branch (128:9): [True: 603k, False: 2.52M]
  ------------------
  129|    928|        case EsdRect:     mangledName += "R2"; break;
  ------------------
  |  Branch (129:9): [True: 928, False: 3.12M]
  ------------------
  130|   138k|        case EsdBuffer:   mangledName += "B";  break;
  ------------------
  |  Branch (130:9): [True: 138k, False: 2.98M]
  ------------------
  131|  10.9k|        case EsdSubpass:  mangledName += "P";  break;
  ------------------
  |  Branch (131:9): [True: 10.9k, False: 3.11M]
  ------------------
  132|  8.71k|        default: break; // some compilers want this
  ------------------
  |  Branch (132:9): [True: 8.71k, False: 3.11M]
  ------------------
  133|  3.12M|        }
  134|       |
  135|  3.12M|#ifdef ENABLE_HLSL
  136|  3.12M|        if (sampler.hasReturnStruct()) {
  ------------------
  |  Branch (136:13): [True: 0, False: 3.12M]
  ------------------
  137|       |            // Name mangle for sampler return struct uses struct table index.
  138|      0|            mangledName += "-tx-struct";
  139|       |
  140|      0|            char text[16]; // plenty enough space for the small integers.
  141|      0|            snprintf(text, sizeof(text), "%u-", sampler.getStructReturnIndex());
  142|      0|            mangledName += text;
  143|  3.12M|        } else {
  144|  3.12M|            switch (sampler.getVectorSize()) {
  ------------------
  |  Branch (144:21): [True: 3.12M, False: 0]
  ------------------
  145|      0|            case 1: mangledName += "1"; break;
  ------------------
  |  Branch (145:13): [True: 0, False: 3.12M]
  ------------------
  146|      0|            case 2: mangledName += "2"; break;
  ------------------
  |  Branch (146:13): [True: 0, False: 3.12M]
  ------------------
  147|      0|            case 3: mangledName += "3"; break;
  ------------------
  |  Branch (147:13): [True: 0, False: 3.12M]
  ------------------
  148|  3.12M|            case 4: break; // default to prior name mangle behavior
  ------------------
  |  Branch (148:13): [True: 3.12M, False: 0]
  ------------------
  149|  3.12M|            }
  150|  3.12M|        }
  151|  3.12M|#endif
  152|       |
  153|  3.12M|        if (sampler.isMultiSample())
  ------------------
  |  Branch (153:13): [True: 282k, False: 2.84M]
  ------------------
  154|   282k|            mangledName += "M";
  155|  3.12M|        break;
  156|     12|    case EbtReference:
  ------------------
  |  Branch (156:5): [True: 12, False: 24.9M]
  ------------------
  157|       |        // Mangle by the block name alone, not by the referent's members. The parser rejects a
  158|       |        // second block with the same name, so the name already identifies the type. Recursing
  159|       |        // into the referent the way the struct case does would not terminate: a buffer reference
  160|       |        // block may legally name itself or another block that refers back to it, which a struct
  161|       |        // cannot do.
  162|     12|        mangledName += "bref-";
  163|     12|        if (typeName)
  ------------------
  |  Branch (163:13): [True: 12, False: 0]
  ------------------
  164|     12|            mangledName += *typeName;
  165|     12|        break;
  166|  11.4k|    case EbtStruct:
  ------------------
  |  Branch (166:5): [True: 11.4k, False: 24.9M]
  ------------------
  167|  11.4k|    case EbtBlock:
  ------------------
  |  Branch (167:5): [True: 5, False: 24.9M]
  ------------------
  168|  11.4k|        if (basicType == EbtStruct)
  ------------------
  |  Branch (168:13): [True: 11.4k, False: 5]
  ------------------
  169|  11.4k|            mangledName += "struct-";
  170|      5|        else
  171|      5|            mangledName += "block-";
  172|  11.4k|        if (typeName)
  ------------------
  |  Branch (172:13): [True: 11.4k, False: 0]
  ------------------
  173|  11.4k|            mangledName += *typeName;
  174|  68.5k|        for (unsigned int i = 0; i < structure->size(); ++i) {
  ------------------
  |  Branch (174:34): [True: 57.1k, False: 11.4k]
  ------------------
  175|  57.1k|            if ((*structure)[i].type->getBasicType() == EbtVoid)
  ------------------
  |  Branch (175:17): [True: 0, False: 57.1k]
  ------------------
  176|      0|                continue;
  177|  57.1k|            mangledName += '-';
  178|  57.1k|            (*structure)[i].type->buildMangledName(mangledName);
  179|  57.1k|        }
  180|  11.4k|        break;
  181|   650k|    default:
  ------------------
  |  Branch (181:5): [True: 650k, False: 24.3M]
  ------------------
  182|   650k|        break;
  183|  24.9M|    }
  184|       |
  185|  24.9M|    if (getVectorSize() > 0)
  ------------------
  |  Branch (185:9): [True: 24.8M, False: 103k]
  ------------------
  186|  24.8M|        mangledName += static_cast<char>('0' + getVectorSize());
  187|   103k|    else {
  188|   103k|        mangledName += static_cast<char>('0' + getMatrixCols());
  189|   103k|        mangledName += static_cast<char>('0' + getMatrixRows());
  190|   103k|    }
  191|       |
  192|  24.9M|    if (typeParameters) {
  ------------------
  |  Branch (192:9): [True: 3.58k, False: 24.9M]
  ------------------
  193|  3.58k|        const int maxSize = 11;
  194|  3.58k|        char buf[maxSize];
  195|  7.16k|        for (int i = 0; i < typeParameters->arraySizes->getNumDims(); ++i) {
  ------------------
  |  Branch (195:25): [True: 3.58k, False: 3.58k]
  ------------------
  196|  3.58k|            if (typeParameters->arraySizes->getDimNode(i)) {
  ------------------
  |  Branch (196:17): [True: 0, False: 3.58k]
  ------------------
  197|      0|                if (typeParameters->arraySizes->getDimNode(i)->getAsSymbolNode())
  ------------------
  |  Branch (197:21): [True: 0, False: 0]
  ------------------
  198|      0|                    snprintf(buf, maxSize, "s%lld", typeParameters->arraySizes->getDimNode(i)->getAsSymbolNode()->getId());
  199|      0|                else
  200|      0|                    snprintf(buf, maxSize, "s%p", typeParameters->arraySizes->getDimNode(i));
  201|      0|            } else
  202|  3.58k|                snprintf(buf, maxSize, "%d", typeParameters->arraySizes->getDimSize(i));
  203|  3.58k|            mangledName += '<';
  204|  3.58k|            mangledName += buf;
  205|  3.58k|            mangledName += '>';
  206|  3.58k|        }
  207|  3.58k|    }
  208|       |
  209|  24.9M|    if (arraySizes) {
  ------------------
  |  Branch (209:9): [True: 431k, False: 24.5M]
  ------------------
  210|   431k|        const int maxSize = 11;
  211|   431k|        char buf[maxSize];
  212|   862k|        for (int i = 0; i < arraySizes->getNumDims(); ++i) {
  ------------------
  |  Branch (212:25): [True: 431k, False: 431k]
  ------------------
  213|   431k|            if (arraySizes->getDimNode(i)) {
  ------------------
  |  Branch (213:17): [True: 0, False: 431k]
  ------------------
  214|      0|                if (arraySizes->getDimNode(i)->getAsSymbolNode())
  ------------------
  |  Branch (214:21): [True: 0, False: 0]
  ------------------
  215|      0|                    snprintf(buf, maxSize, "s%lld", arraySizes->getDimNode(i)->getAsSymbolNode()->getId());
  216|      0|                else
  217|      0|                    snprintf(buf, maxSize, "s%p", (void*)(arraySizes->getDimNode(i)));
  218|      0|            } else
  219|   431k|                snprintf(buf, maxSize, "%d", arraySizes->getDimSize(i));
  220|   431k|            mangledName += '[';
  221|   431k|            mangledName += buf;
  222|   431k|            mangledName += ']';
  223|   431k|        }
  224|   431k|    }
  225|  24.9M|}
_ZNK7glslang5TType17getCompleteStringEbbbbNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEES7_:
  229|   112k|{
  230|   112k|    TString typeString;
  231|       |
  232|   112k|    const auto appendStr  = [&](const char* s)  { typeString.append(s); };
  233|   112k|    const auto appendUint = [&](unsigned int u) { typeString.append(std::to_string(u).c_str()); };
  234|   112k|    const auto appendInt  = [&](int i)          { typeString.append(std::to_string(i).c_str()); };
  235|       |
  236|   112k|    if (getQualifiers) {
  ------------------
  |  Branch (236:9): [True: 112k, False: 0]
  ------------------
  237|   112k|      if (qualifier.hasSpirvDecorate())
  ------------------
  |  Branch (237:11): [True: 0, False: 112k]
  ------------------
  238|      0|        appendStr(qualifier.getSpirvDecorateQualifierString().c_str());
  239|       |
  240|   112k|      if (qualifier.hasLayout()) {
  ------------------
  |  Branch (240:11): [True: 630, False: 111k]
  ------------------
  241|       |        // To reduce noise, skip this if the only layout is an xfb_buffer
  242|       |        // with no triggering xfb_offset.
  243|    630|        TQualifier noXfbBuffer = qualifier;
  244|    630|        noXfbBuffer.layoutXfbBuffer = TQualifier::layoutXfbBufferEnd;
  245|    630|        if (noXfbBuffer.hasLayout()) {
  ------------------
  |  Branch (245:13): [True: 630, False: 0]
  ------------------
  246|    630|          appendStr("layout(");
  247|    630|          if (qualifier.hasAnyLocation()) {
  ------------------
  |  Branch (247:15): [True: 10, False: 620]
  ------------------
  248|     10|            appendStr(" location=");
  249|     10|            appendUint(qualifier.layoutLocation);
  250|     10|            if (qualifier.hasComponent()) {
  ------------------
  |  Branch (250:17): [True: 0, False: 10]
  ------------------
  251|      0|              appendStr(" component=");
  252|      0|              appendUint(qualifier.layoutComponent);
  253|      0|            }
  254|     10|            if (qualifier.hasIndex()) {
  ------------------
  |  Branch (254:17): [True: 1, False: 9]
  ------------------
  255|      1|              appendStr(" index=");
  256|      1|              appendUint(qualifier.layoutIndex);
  257|      1|            }
  258|     10|          }
  259|    630|          if (qualifier.hasSet()) {
  ------------------
  |  Branch (259:15): [True: 0, False: 630]
  ------------------
  260|      0|            appendStr(" set=");
  261|      0|            appendUint(qualifier.layoutSet);
  262|      0|          }
  263|    630|          if (qualifier.hasBinding()) {
  ------------------
  |  Branch (263:15): [True: 98, False: 532]
  ------------------
  264|     98|            appendStr(" binding=");
  265|     98|            appendUint(qualifier.layoutBinding);
  266|     98|          }
  267|    630|          if (qualifier.hasStream()) {
  ------------------
  |  Branch (267:15): [True: 0, False: 630]
  ------------------
  268|      0|            appendStr(" stream=");
  269|      0|            appendUint(qualifier.layoutStream);
  270|      0|          }
  271|    630|          if (qualifier.hasMatrix()) {
  ------------------
  |  Branch (271:15): [True: 609, False: 21]
  ------------------
  272|    609|            appendStr(" ");
  273|    609|            appendStr(TQualifier::getLayoutMatrixString(qualifier.layoutMatrix));
  274|    609|          }
  275|    630|          if (qualifier.hasPacking()) {
  ------------------
  |  Branch (275:15): [True: 604, False: 26]
  ------------------
  276|    604|            appendStr(" ");
  277|    604|            appendStr(TQualifier::getLayoutPackingString(qualifier.layoutPacking));
  278|    604|          }
  279|    630|          if (qualifier.hasOffset()) {
  ------------------
  |  Branch (279:15): [True: 0, False: 630]
  ------------------
  280|      0|            appendStr(" offset=");
  281|      0|            appendInt(qualifier.layoutOffset);
  282|      0|          }
  283|    630|          if (qualifier.hasAlign()) {
  ------------------
  |  Branch (283:15): [True: 0, False: 630]
  ------------------
  284|      0|            appendStr(" align=");
  285|      0|            appendInt(qualifier.layoutAlign);
  286|      0|          }
  287|    630|          if (qualifier.hasFormat()) {
  ------------------
  |  Branch (287:15): [True: 11, False: 619]
  ------------------
  288|     11|            appendStr(" ");
  289|     11|            appendStr(TQualifier::getLayoutFormatString(qualifier.layoutFormat));
  290|     11|          }
  291|    630|          if (qualifier.hasXfbBuffer() && qualifier.hasXfbOffset()) {
  ------------------
  |  Branch (291:15): [True: 0, False: 630]
  |  Branch (291:43): [True: 0, False: 0]
  ------------------
  292|      0|            appendStr(" xfb_buffer=");
  293|      0|            appendUint(qualifier.layoutXfbBuffer);
  294|      0|          }
  295|    630|          if (qualifier.hasXfbOffset()) {
  ------------------
  |  Branch (295:15): [True: 0, False: 630]
  ------------------
  296|      0|            appendStr(" xfb_offset=");
  297|      0|            appendUint(qualifier.layoutXfbOffset);
  298|      0|          }
  299|    630|          if (qualifier.hasXfbStride()) {
  ------------------
  |  Branch (299:15): [True: 0, False: 630]
  ------------------
  300|      0|            appendStr(" xfb_stride=");
  301|      0|            appendUint(qualifier.layoutXfbStride);
  302|      0|          }
  303|    630|          if (qualifier.hasAttachment()) {
  ------------------
  |  Branch (303:15): [True: 0, False: 630]
  ------------------
  304|      0|            appendStr(" input_attachment_index=");
  305|      0|            appendUint(qualifier.layoutAttachment);
  306|      0|          }
  307|    630|          if (qualifier.hasSpecConstantId()) {
  ------------------
  |  Branch (307:15): [True: 0, False: 630]
  ------------------
  308|      0|            appendStr(" constant_id=");
  309|      0|            appendUint(qualifier.layoutSpecConstantId);
  310|      0|          }
  311|    630|          if (qualifier.layoutPushConstant)
  ------------------
  |  Branch (311:15): [True: 0, False: 630]
  ------------------
  312|      0|            appendStr(" push_constant");
  313|    630|          if (qualifier.layoutBufferReference)
  ------------------
  |  Branch (313:15): [True: 0, False: 630]
  ------------------
  314|      0|            appendStr(" buffer_reference");
  315|    630|          if (qualifier.layoutDescriptorBufferType)
  ------------------
  |  Branch (315:15): [True: 0, False: 630]
  ------------------
  316|      0|            appendStr(" buffer_type");
  317|    630|          if (qualifier.hasBufferReferenceAlign()) {
  ------------------
  |  Branch (317:15): [True: 0, False: 630]
  ------------------
  318|      0|            appendStr(" buffer_reference_align=");
  319|      0|            appendUint(1u << qualifier.layoutBufferReferenceAlign);
  320|      0|          }
  321|       |
  322|    630|          if (qualifier.layoutPassthrough)
  ------------------
  |  Branch (322:15): [True: 0, False: 630]
  ------------------
  323|      0|            appendStr(" passthrough");
  324|    630|          if (qualifier.layoutViewportRelative)
  ------------------
  |  Branch (324:15): [True: 0, False: 630]
  ------------------
  325|      0|            appendStr(" layoutViewportRelative");
  326|    630|          if (qualifier.layoutSecondaryViewportRelativeOffset != -2048) {
  ------------------
  |  Branch (326:15): [True: 0, False: 630]
  ------------------
  327|      0|            appendStr(" layoutSecondaryViewportRelativeOffset=");
  328|      0|            appendInt(qualifier.layoutSecondaryViewportRelativeOffset);
  329|      0|          }
  330|       |
  331|    630|          if (qualifier.layoutShaderRecord)
  ------------------
  |  Branch (331:15): [True: 0, False: 630]
  ------------------
  332|      0|            appendStr(" shaderRecordNV");
  333|    630|          if (qualifier.layoutFullQuads)
  ------------------
  |  Branch (333:15): [True: 0, False: 630]
  ------------------
  334|      0|            appendStr(" full_quads");
  335|    630|          if (qualifier.layoutQuadDeriv)
  ------------------
  |  Branch (335:15): [True: 0, False: 630]
  ------------------
  336|      0|            appendStr(" quad_derivatives");
  337|    630|          if (qualifier.layoutHitObjectShaderRecordNV)
  ------------------
  |  Branch (337:15): [True: 0, False: 630]
  ------------------
  338|      0|            appendStr(" hitobjectshaderrecordnv");
  339|    630|          if (qualifier.layoutHitObjectShaderRecordEXT)
  ------------------
  |  Branch (339:15): [True: 0, False: 630]
  ------------------
  340|      0|            appendStr(" hitobjectshaderrecordext");
  341|       |
  342|    630|          if (qualifier.hasBank()) {
  ------------------
  |  Branch (342:15): [True: 0, False: 630]
  ------------------
  343|      0|            appendStr(" bank=");
  344|      0|            appendUint(qualifier.layoutBank);
  345|      0|          }
  346|    630|          if (qualifier.hasMemberOffset()) {
  ------------------
  |  Branch (346:15): [True: 0, False: 630]
  ------------------
  347|      0|            appendStr(" member_offset=");
  348|      0|            appendInt(qualifier.layoutMemberOffset);
  349|      0|          }
  350|       |
  351|    630|          if (qualifier.layoutBindlessSampler)
  ------------------
  |  Branch (351:15): [True: 0, False: 630]
  ------------------
  352|      0|              appendStr(" layoutBindlessSampler");
  353|    630|          if (qualifier.layoutBindlessImage)
  ------------------
  |  Branch (353:15): [True: 0, False: 630]
  ------------------
  354|      0|              appendStr(" layoutBindlessImage");
  355|       |
  356|    630|          if (qualifier.layoutDescriptorHeap)
  ------------------
  |  Branch (356:15): [True: 0, False: 630]
  ------------------
  357|      0|              appendStr(" descriptor_heap");
  358|    630|          if (qualifier.layoutDescriptorStride != TQualifier::layoutDescriptorStrideEnd) {
  ------------------
  |  Branch (358:15): [True: 0, False: 630]
  ------------------
  359|      0|              appendStr(" descriptor_stride=");
  360|      0|              appendInt(qualifier.layoutDescriptorStride);
  361|      0|          }
  362|    630|          if (qualifier.layoutDescriptorSize != TQualifier::layoutDescriptorSizeEnd) {
  ------------------
  |  Branch (362:15): [True: 0, False: 630]
  ------------------
  363|      0|              appendStr(" descriptor_size=");
  364|      0|              appendInt(qualifier.layoutDescriptorSize);
  365|      0|          }
  366|    630|          if (qualifier.layoutHeapOffset || qualifier.layoutHeapOffsetNode) {
  ------------------
  |  Branch (366:15): [True: 0, False: 630]
  |  Branch (366:45): [True: 0, False: 630]
  ------------------
  367|      0|              appendStr(" heap_offset=");
  368|      0|              if (qualifier.layoutHeapOffsetNode)
  ------------------
  |  Branch (368:19): [True: 0, False: 0]
  ------------------
  369|      0|                  appendStr("<constant-expression>");
  370|      0|              else
  371|      0|                  appendInt(qualifier.layoutHeapOffset);
  372|      0|          }
  373|       |
  374|    630|          appendStr(")");
  375|    630|        }
  376|    630|      }
  377|       |
  378|   112k|      if (qualifier.invariant)
  ------------------
  |  Branch (378:11): [True: 0, False: 112k]
  ------------------
  379|      0|        appendStr(" invariant");
  380|   112k|      if (qualifier.noContraction)
  ------------------
  |  Branch (380:11): [True: 3, False: 112k]
  ------------------
  381|      3|        appendStr(" noContraction");
  382|   112k|      if (qualifier.centroid)
  ------------------
  |  Branch (382:11): [True: 6, False: 112k]
  ------------------
  383|      6|        appendStr(" centroid");
  384|   112k|      if (qualifier.smooth)
  ------------------
  |  Branch (384:11): [True: 12, False: 112k]
  ------------------
  385|     12|        appendStr(" smooth");
  386|   112k|      if (qualifier.flat)
  ------------------
  |  Branch (386:11): [True: 5, False: 112k]
  ------------------
  387|      5|        appendStr(" flat");
  388|   112k|      if (qualifier.nopersp)
  ------------------
  |  Branch (388:11): [True: 0, False: 112k]
  ------------------
  389|      0|        appendStr(" noperspective");
  390|   112k|      if (qualifier.explicitInterp)
  ------------------
  |  Branch (390:11): [True: 0, False: 112k]
  ------------------
  391|      0|        appendStr(" __explicitInterpAMD");
  392|   112k|      if (qualifier.pervertexNV)
  ------------------
  |  Branch (392:11): [True: 0, False: 112k]
  ------------------
  393|      0|        appendStr(" pervertexNV");
  394|   112k|      if (qualifier.pervertexEXT)
  ------------------
  |  Branch (394:11): [True: 0, False: 112k]
  ------------------
  395|      0|          appendStr(" pervertexEXT");
  396|   112k|      if (qualifier.perPrimitiveNV)
  ------------------
  |  Branch (396:11): [True: 0, False: 112k]
  ------------------
  397|      0|        appendStr(" perprimitiveNV");
  398|   112k|      if (qualifier.perViewNV)
  ------------------
  |  Branch (398:11): [True: 0, False: 112k]
  ------------------
  399|      0|        appendStr(" perviewNV");
  400|   112k|      if (qualifier.perTaskNV)
  ------------------
  |  Branch (400:11): [True: 0, False: 112k]
  ------------------
  401|      0|        appendStr(" taskNV");
  402|   112k|      if (qualifier.patch)
  ------------------
  |  Branch (402:11): [True: 0, False: 112k]
  ------------------
  403|      0|        appendStr(" patch");
  404|   112k|      if (qualifier.sample)
  ------------------
  |  Branch (404:11): [True: 0, False: 112k]
  ------------------
  405|      0|        appendStr(" sample");
  406|   112k|      if (qualifier.coherent)
  ------------------
  |  Branch (406:11): [True: 10, False: 112k]
  ------------------
  407|     10|        appendStr(" coherent");
  408|   112k|      if (qualifier.devicecoherent)
  ------------------
  |  Branch (408:11): [True: 0, False: 112k]
  ------------------
  409|      0|        appendStr(" devicecoherent");
  410|   112k|      if (qualifier.queuefamilycoherent)
  ------------------
  |  Branch (410:11): [True: 0, False: 112k]
  ------------------
  411|      0|        appendStr(" queuefamilycoherent");
  412|   112k|      if (qualifier.workgroupcoherent)
  ------------------
  |  Branch (412:11): [True: 0, False: 112k]
  ------------------
  413|      0|        appendStr(" workgroupcoherent");
  414|   112k|      if (qualifier.subgroupcoherent)
  ------------------
  |  Branch (414:11): [True: 0, False: 112k]
  ------------------
  415|      0|        appendStr(" subgroupcoherent");
  416|   112k|      if (qualifier.shadercallcoherent)
  ------------------
  |  Branch (416:11): [True: 0, False: 112k]
  ------------------
  417|      0|        appendStr(" shadercallcoherent");
  418|   112k|      if (qualifier.nonprivate)
  ------------------
  |  Branch (418:11): [True: 0, False: 112k]
  ------------------
  419|      0|        appendStr(" nonprivate");
  420|   112k|      if (qualifier.volatil)
  ------------------
  |  Branch (420:11): [True: 10, False: 112k]
  ------------------
  421|     10|        appendStr(" volatile");
  422|   112k|      if (qualifier.nontemporal)
  ------------------
  |  Branch (422:11): [True: 0, False: 112k]
  ------------------
  423|      0|        appendStr(" nontemporal");
  424|   112k|      if (qualifier.restrict)
  ------------------
  |  Branch (424:11): [True: 0, False: 112k]
  ------------------
  425|      0|        appendStr(" restrict");
  426|   112k|      if (qualifier.readonly)
  ------------------
  |  Branch (426:11): [True: 0, False: 112k]
  ------------------
  427|      0|        appendStr(" readonly");
  428|   112k|      if (qualifier.writeonly)
  ------------------
  |  Branch (428:11): [True: 2, False: 112k]
  ------------------
  429|      2|        appendStr(" writeonly");
  430|   112k|      if (qualifier.specConstant)
  ------------------
  |  Branch (430:11): [True: 0, False: 112k]
  ------------------
  431|      0|        appendStr(" specialization-constant");
  432|   112k|      if (qualifier.nonUniform)
  ------------------
  |  Branch (432:11): [True: 0, False: 112k]
  ------------------
  433|      0|        appendStr(" nonuniform");
  434|   112k|      if (qualifier.isNullInit())
  ------------------
  |  Branch (434:11): [True: 0, False: 112k]
  ------------------
  435|      0|        appendStr(" null-init");
  436|   112k|      if (qualifier.isSpirvByReference())
  ------------------
  |  Branch (436:11): [True: 0, False: 112k]
  ------------------
  437|      0|        appendStr(" spirv_by_reference");
  438|   112k|      if (qualifier.isSpirvLiteral())
  ------------------
  |  Branch (438:11): [True: 0, False: 112k]
  ------------------
  439|      0|        appendStr(" spirv_literal");
  440|   112k|      appendStr(" ");
  441|   112k|      appendStr(getStorageQualifierString());
  442|   112k|    }
  443|   112k|    if (getType) {
  ------------------
  |  Branch (443:9): [True: 112k, False: 0]
  ------------------
  444|   112k|      if (syntactic) {
  ------------------
  |  Branch (444:11): [True: 0, False: 112k]
  ------------------
  445|      0|        if (getPrecision && qualifier.precision != EpqNone) {
  ------------------
  |  Branch (445:13): [True: 0, False: 0]
  |  Branch (445:29): [True: 0, False: 0]
  ------------------
  446|      0|          appendStr(" ");
  447|      0|          appendStr(getPrecisionQualifierString());
  448|      0|        }
  449|      0|        if (isVector() || isMatrix()) {
  ------------------
  |  Branch (449:13): [True: 0, False: 0]
  |  Branch (449:27): [True: 0, False: 0]
  ------------------
  450|      0|          appendStr(" ");
  451|      0|          switch (basicType) {
  452|      0|          case EbtDouble:
  ------------------
  |  Branch (452:11): [True: 0, False: 0]
  ------------------
  453|      0|            appendStr("d");
  454|      0|            break;
  455|      0|          case EbtInt:
  ------------------
  |  Branch (455:11): [True: 0, False: 0]
  ------------------
  456|      0|            appendStr("i");
  457|      0|            break;
  458|      0|          case EbtUint:
  ------------------
  |  Branch (458:11): [True: 0, False: 0]
  ------------------
  459|      0|            appendStr("u");
  460|      0|            break;
  461|      0|          case EbtBool:
  ------------------
  |  Branch (461:11): [True: 0, False: 0]
  ------------------
  462|      0|            appendStr("b");
  463|      0|            break;
  464|      0|          case EbtFloat:
  ------------------
  |  Branch (464:11): [True: 0, False: 0]
  ------------------
  465|      0|          default:
  ------------------
  |  Branch (465:11): [True: 0, False: 0]
  ------------------
  466|      0|            break;
  467|      0|          }
  468|      0|          if (isVector()) {
  ------------------
  |  Branch (468:15): [True: 0, False: 0]
  ------------------
  469|      0|            appendStr("vec");
  470|      0|            appendInt(vectorSize);
  471|      0|          } else {
  472|      0|            appendStr("mat");
  473|      0|            appendInt(matrixCols);
  474|      0|            appendStr("x");
  475|      0|            appendInt(matrixRows);
  476|      0|          }
  477|      0|        } else if (isStruct() && structure) {
  ------------------
  |  Branch (477:20): [True: 0, False: 0]
  |  Branch (477:34): [True: 0, False: 0]
  ------------------
  478|      0|            appendStr(" ");
  479|      0|            appendStr(structName.c_str());
  480|      0|            appendStr("{");
  481|      0|            bool hasHiddenMember = true;
  482|      0|            for (size_t i = 0; i < structure->size(); ++i) {
  ------------------
  |  Branch (482:32): [True: 0, False: 0]
  ------------------
  483|      0|              if (!(*structure)[i].type->hiddenMember()) {
  ------------------
  |  Branch (483:19): [True: 0, False: 0]
  ------------------
  484|      0|                if (!hasHiddenMember)
  ------------------
  |  Branch (484:21): [True: 0, False: 0]
  ------------------
  485|      0|                  appendStr(", ");
  486|      0|                typeString.append((*structure)[i].type->getCompleteString(syntactic, getQualifiers, getPrecision, getType, (*structure)[i].type->getFieldName()));
  487|      0|                hasHiddenMember = false;
  488|      0|              }
  489|      0|            }
  490|      0|            appendStr("}");
  491|      0|        } else {
  492|      0|            appendStr(" ");
  493|      0|            switch (basicType) {
  494|      0|            case EbtDouble:
  ------------------
  |  Branch (494:13): [True: 0, False: 0]
  ------------------
  495|      0|              appendStr("double");
  496|      0|              break;
  497|      0|            case EbtInt:
  ------------------
  |  Branch (497:13): [True: 0, False: 0]
  ------------------
  498|      0|              appendStr("int");
  499|      0|              break;
  500|      0|            case EbtUint:
  ------------------
  |  Branch (500:13): [True: 0, False: 0]
  ------------------
  501|      0|              appendStr("uint");
  502|      0|              break;
  503|      0|            case EbtBool:
  ------------------
  |  Branch (503:13): [True: 0, False: 0]
  ------------------
  504|      0|              appendStr("bool");
  505|      0|              break;
  506|      0|            case EbtFloat:
  ------------------
  |  Branch (506:13): [True: 0, False: 0]
  ------------------
  507|      0|              appendStr("float");
  508|      0|              break;
  509|      0|            default:
  ------------------
  |  Branch (509:13): [True: 0, False: 0]
  ------------------
  510|      0|              appendStr("unexpected");
  511|      0|              break;
  512|      0|            }
  513|      0|        }
  514|      0|        if (name.length() > 0) {
  ------------------
  |  Branch (514:13): [True: 0, False: 0]
  ------------------
  515|      0|          appendStr(" ");
  516|      0|          appendStr(name.c_str());
  517|      0|        }
  518|      0|        if (isArray()) {
  ------------------
  |  Branch (518:13): [True: 0, False: 0]
  ------------------
  519|      0|          for (int i = 0; i < (int)arraySizes->getNumDims(); ++i) {
  ------------------
  |  Branch (519:27): [True: 0, False: 0]
  ------------------
  520|      0|            int size = arraySizes->getDimSize(i);
  521|      0|            if (size == UnsizedArraySize && i == 0 && arraySizes->isVariablyIndexed())
  ------------------
  |  Branch (521:17): [True: 0, False: 0]
  |  Branch (521:45): [True: 0, False: 0]
  |  Branch (521:55): [True: 0, False: 0]
  ------------------
  522|      0|              appendStr("[]");
  523|      0|            else {
  524|      0|              if (size == UnsizedArraySize) {
  ------------------
  |  Branch (524:19): [True: 0, False: 0]
  ------------------
  525|      0|                appendStr("[");
  526|      0|                if (i == 0)
  ------------------
  |  Branch (526:21): [True: 0, False: 0]
  ------------------
  527|      0|                  appendInt(arraySizes->getImplicitSize());
  528|      0|                appendStr("]");
  529|      0|              }
  530|      0|              else {
  531|      0|                appendStr("[");
  532|      0|                appendInt(arraySizes->getDimSize(i));
  533|      0|                appendStr("]");
  534|      0|              }
  535|      0|            }
  536|      0|          }
  537|      0|        }
  538|      0|      }
  539|   112k|      else {
  540|   112k|        if (isArray()) {
  ------------------
  |  Branch (540:13): [True: 344, False: 111k]
  ------------------
  541|    906|          for (int i = 0; i < (int)arraySizes->getNumDims(); ++i) {
  ------------------
  |  Branch (541:27): [True: 562, False: 344]
  ------------------
  542|    562|            int size = arraySizes->getDimSize(i);
  543|    562|            if (size == UnsizedArraySize && i == 0 && arraySizes->isVariablyIndexed())
  ------------------
  |  Branch (543:17): [True: 39, False: 523]
  |  Branch (543:45): [True: 32, False: 7]
  |  Branch (543:55): [True: 0, False: 32]
  ------------------
  544|      0|              appendStr(" runtime-sized array of");
  545|    562|            else {
  546|    562|              if (size == UnsizedArraySize) {
  ------------------
  |  Branch (546:19): [True: 39, False: 523]
  ------------------
  547|     39|                appendStr(" unsized");
  548|     39|                if (i == 0) {
  ------------------
  |  Branch (548:21): [True: 32, False: 7]
  ------------------
  549|     32|                  appendStr(" ");
  550|     32|                  appendInt(arraySizes->getImplicitSize());
  551|     32|                }
  552|     39|              }
  553|    523|              else {
  554|    523|                appendStr(" ");
  555|    523|                appendInt(arraySizes->getDimSize(i));
  556|    523|              }
  557|    562|              appendStr("-element array of");
  558|    562|            }
  559|    562|          }
  560|    344|        }
  561|   112k|        if (isParameterized()) {
  ------------------
  |  Branch (561:13): [True: 0, False: 112k]
  ------------------
  562|      0|          if (isCoopMatKHR()) {
  ------------------
  |  Branch (562:15): [True: 0, False: 0]
  ------------------
  563|      0|            appendStr(" ");
  564|      0|            appendStr("coopmat");
  565|      0|          }
  566|      0|          if (isTensorLayoutNV()) {
  ------------------
  |  Branch (566:15): [True: 0, False: 0]
  ------------------
  567|      0|            appendStr(" ");
  568|      0|            appendStr("tensorLayoutNV");
  569|      0|          }
  570|      0|          if (isTensorViewNV()) {
  ------------------
  |  Branch (570:15): [True: 0, False: 0]
  ------------------
  571|      0|            appendStr(" ");
  572|      0|            appendStr("tensorViewNV");
  573|      0|          }
  574|      0|          if (isCoopVecNV()) {
  ------------------
  |  Branch (574:15): [True: 0, False: 0]
  ------------------
  575|      0|            appendStr(" ");
  576|      0|            appendStr("coopvecNV");
  577|      0|          }
  578|      0|          if (isLongVector()) {
  ------------------
  |  Branch (578:15): [True: 0, False: 0]
  ------------------
  579|      0|            appendStr(" ");
  580|      0|            appendStr("vector");
  581|      0|          }
  582|       |
  583|      0|          appendStr("<");
  584|      0|          for (int i = 0; i < (int)typeParameters->arraySizes->getNumDims(); ++i) {
  ------------------
  |  Branch (584:27): [True: 0, False: 0]
  ------------------
  585|      0|            appendInt(typeParameters->arraySizes->getDimSize(i));
  586|      0|            if (i != (int)typeParameters->arraySizes->getNumDims() - 1)
  ------------------
  |  Branch (586:17): [True: 0, False: 0]
  ------------------
  587|      0|              appendStr(", ");
  588|      0|          }
  589|      0|          appendStr(">");
  590|      0|        }
  591|   112k|        if (getPrecision && qualifier.precision != EpqNone) {
  ------------------
  |  Branch (591:13): [True: 112k, False: 0]
  |  Branch (591:29): [True: 39.1k, False: 73.0k]
  ------------------
  592|  39.1k|          appendStr(" ");
  593|  39.1k|          appendStr(getPrecisionQualifierString());
  594|  39.1k|        }
  595|   112k|        if (isMatrix()) {
  ------------------
  |  Branch (595:13): [True: 60, False: 112k]
  ------------------
  596|     60|          appendStr(" ");
  597|     60|          appendInt(matrixCols);
  598|     60|          appendStr("X");
  599|     60|          appendInt(matrixRows);
  600|     60|          appendStr(" matrix of");
  601|     60|        }
  602|   112k|        else if (isVector()) {
  ------------------
  |  Branch (602:18): [True: 71.8k, False: 40.3k]
  ------------------
  603|  71.8k|          appendStr(" ");
  604|  71.8k|          appendInt(vectorSize);
  605|  71.8k|          appendStr("-component vector of");
  606|  71.8k|        }
  607|       |
  608|   112k|        appendStr(" ");
  609|   112k|        typeString.append(getBasicTypeString());
  610|       |
  611|   112k|        if (qualifier.builtIn != EbvNone) {
  ------------------
  |  Branch (611:13): [True: 2, False: 112k]
  ------------------
  612|      2|          appendStr(" ");
  613|      2|          appendStr(getBuiltInVariableString());
  614|      2|        }
  615|       |
  616|       |        // Add struct/block members
  617|   112k|        if (isStruct() && structure) {
  ------------------
  |  Branch (617:13): [True: 133, False: 112k]
  |  Branch (617:27): [True: 133, False: 0]
  ------------------
  618|    133|          appendStr("{");
  619|    133|          bool hasHiddenMember = true;
  620|    583|          for (size_t i = 0; i < structure->size(); ++i) {
  ------------------
  |  Branch (620:30): [True: 450, False: 133]
  ------------------
  621|    450|            if (!(*structure)[i].type->hiddenMember()) {
  ------------------
  |  Branch (621:17): [True: 450, False: 0]
  ------------------
  622|    450|              if (!hasHiddenMember)
  ------------------
  |  Branch (622:19): [True: 317, False: 133]
  ------------------
  623|    317|                appendStr(", ");
  624|    450|              typeString.append((*structure)[i].type->getCompleteString());
  625|    450|              typeString.append(" ");
  626|    450|              typeString.append((*structure)[i].type->getFieldName());
  627|    450|              hasHiddenMember = false;
  628|    450|            }
  629|    450|          }
  630|    133|          appendStr("}");
  631|    133|        }
  632|   112k|      }
  633|   112k|    }
  634|       |
  635|   112k|    return typeString;
  636|   112k|}
_ZN7glslang5TTypeC2ERKS0_ib:
  639|  8.26k|{
  640|  8.26k|                            if (type.isArray()) {
  ------------------
  |  Branch (640:33): [True: 6.72k, False: 1.53k]
  ------------------
  641|  6.72k|                                shallowCopy(type);
  642|  6.72k|                                if (type.getArraySizes()->getNumDims() == 1) {
  ------------------
  |  Branch (642:37): [True: 5.30k, False: 1.42k]
  ------------------
  643|  5.30k|                                    arraySizes = nullptr;
  644|  5.30k|                                } else {
  645|       |                                    // want our own copy of the array, so we can edit it
  646|  1.42k|                                    arraySizes = new TArraySizes;
  647|  1.42k|                                    arraySizes->copyDereferenced(*type.arraySizes);
  648|  1.42k|                                }
  649|  6.72k|                            } else if (type.basicType == EbtStruct || type.basicType == EbtBlock) {
  ------------------
  |  Branch (649:40): [True: 217, False: 1.31k]
  |  Branch (649:71): [True: 13, False: 1.30k]
  ------------------
  650|       |                                // do a structure dereference
  651|    230|                                const TTypeList& memberList = *type.getStruct();
  652|    230|                                shallowCopy(*memberList[derefIndex].type);
  653|    230|                                return;
  654|  1.30k|                            } else {
  655|       |                                // do a vector/matrix dereference
  656|  1.30k|                                shallowCopy(type);
  657|  1.30k|                                if (matrixCols > 0) {
  ------------------
  |  Branch (657:37): [True: 852, False: 451]
  ------------------
  658|       |                                    // dereference from matrix to vector
  659|    852|                                    if (rowMajor)
  ------------------
  |  Branch (659:41): [True: 19, False: 833]
  ------------------
  660|     19|                                        vectorSize = matrixCols;
  661|    833|                                    else
  662|    833|                                        vectorSize = matrixRows;
  663|    852|                                    matrixCols = 0;
  664|    852|                                    matrixRows = 0;
  665|    852|                                    if (vectorSize == 1)
  ------------------
  |  Branch (665:41): [True: 0, False: 852]
  ------------------
  666|      0|                                        vector1 = true;
  667|    852|                                } else if (isVector()) {
  ------------------
  |  Branch (667:44): [True: 451, False: 0]
  ------------------
  668|       |                                    // dereference from vector to scalar
  669|    451|                                    vectorSize = 1;
  670|    451|                                    vector1 = false;
  671|    451|                                } else if (isCoopMat() || isCoopVecNV() || isLongVector()) {
  ------------------
  |  Branch (671:44): [True: 0, False: 0]
  |  Branch (671:59): [True: 0, False: 0]
  |  Branch (671:76): [True: 0, False: 0]
  ------------------
  672|      0|                                    coopmatNV = false;
  673|      0|                                    coopmatKHR = false;
  674|      0|                                    coopmatKHRuse = 0;
  675|      0|                                    coopmatKHRUseValid = false;
  676|      0|                                    coopvecNV = false;
  677|      0|                                    longVector = false;
  678|      0|                                    typeParameters = nullptr;
  679|      0|                                } else if (isTileAttachmentQCOM()) {
  ------------------
  |  Branch (679:44): [True: 0, False: 0]
  ------------------
  680|      0|                                    tileAttachmentQCOM = false;
  681|      0|                                    typeParameters = nullptr;
  682|      0|                                }
  683|  1.30k|                            }
  684|  8.26k|                        }
_ZN7glslang5TType11shallowCopyERKS0_:
  687|  48.4M|{
  688|  48.4M|    basicType = copyOf.basicType;
  689|  48.4M|    sampler = copyOf.sampler;
  690|  48.4M|    qualifier = copyOf.qualifier;
  691|  48.4M|    vectorSize = copyOf.vectorSize;
  692|  48.4M|    matrixCols = copyOf.matrixCols;
  693|  48.4M|    matrixRows = copyOf.matrixRows;
  694|  48.4M|    vector1 = copyOf.vector1;
  695|  48.4M|    arraySizes = copyOf.arraySizes;  // copying the pointer only, not the contents
  696|  48.4M|    fieldName = copyOf.fieldName;
  697|  48.4M|    typeName = copyOf.typeName;
  698|  48.4M|    if (isStruct()) {
  ------------------
  |  Branch (698:9): [True: 53.9k, False: 48.3M]
  ------------------
  699|  53.9k|        structure = copyOf.structure;
  700|  48.3M|    } else {
  701|  48.3M|        referentType = copyOf.referentType;
  702|  48.3M|    }
  703|  48.4M|    typeParameters = copyOf.typeParameters;
  704|  48.4M|    spirvType = copyOf.spirvType;
  705|  48.4M|    coopmatNV = copyOf.isCoopMatNV();
  706|  48.4M|    coopmatKHR = copyOf.isCoopMatKHR();
  707|  48.4M|    coopmatKHRuse = copyOf.coopmatKHRuse;
  708|  48.4M|    coopmatKHRUseValid = copyOf.coopmatKHRUseValid;
  709|  48.4M|    coopvecNV = copyOf.isCoopVecNV();
  710|  48.4M|    longVector = copyOf.isLongVector();
  711|  48.4M|    tileAttachmentQCOM = copyOf.tileAttachmentQCOM;
  712|  48.4M|    tensorRankARM = copyOf.tensorRankARM;
  713|  48.4M|}
_ZNK7glslang5TType14sameStructTypeERKS0_PiS3_:
  716|  1.18M|{
  717|       |    // Initialize error to general type mismatch.
  718|  1.18M|    if (lpidx != nullptr) {
  ------------------
  |  Branch (718:9): [True: 0, False: 1.18M]
  ------------------
  719|      0|        *lpidx = -1;
  720|      0|        *rpidx = -1;
  721|      0|    }
  722|       |
  723|       |    // Most commonly, they are both nullptr, or the same pointer to the same actual structure
  724|       |    // TODO: Why return true when neither types are structures?
  725|  1.18M|    if ((!isStruct() && !right.isStruct()) ||
  ------------------
  |  Branch (725:10): [True: 1.18M, False: 522]
  |  Branch (725:25): [True: 1.18M, False: 0]
  ------------------
  726|    522|        (isStruct() && right.isStruct() && structure == right.structure))
  ------------------
  |  Branch (726:10): [True: 522, False: 0]
  |  Branch (726:24): [True: 509, False: 13]
  |  Branch (726:44): [True: 435, False: 74]
  ------------------
  727|  1.18M|        return true;
  728|       |
  729|     87|    if (!isStruct() || !right.isStruct())
  ------------------
  |  Branch (729:9): [True: 0, False: 87]
  |  Branch (729:24): [True: 13, False: 74]
  ------------------
  730|     13|        return false;
  731|       |
  732|       |    // Structure names have to match
  733|     74|    if (*typeName != *right.typeName)
  ------------------
  |  Branch (733:9): [True: 0, False: 74]
  ------------------
  734|      0|        return false;
  735|       |
  736|       |    // There are inconsistencies with how gl_PerVertex is setup. For now ignore those as errors if they
  737|       |    // are known inconsistencies.
  738|     74|    bool isGLPerVertex = *typeName == "gl_PerVertex";
  739|       |
  740|       |    // Both being nullptr was caught above, now they both have to be structures of the same number of elements
  741|     74|    if (lpidx == nullptr &&
  ------------------
  |  Branch (741:9): [True: 74, False: 0]
  ------------------
  742|     74|        (structure->size() != right.structure->size() && !isGLPerVertex)) {
  ------------------
  |  Branch (742:10): [True: 0, False: 74]
  |  Branch (742:58): [True: 0, False: 0]
  ------------------
  743|      0|        return false;
  744|      0|    }
  745|       |
  746|       |    // Compare the names and types of all the members, which have to match
  747|    444|    for (size_t li = 0, ri = 0; li < structure->size() || ri < right.structure->size(); ++li, ++ri) {
  ------------------
  |  Branch (747:33): [True: 370, False: 74]
  |  Branch (747:59): [True: 0, False: 74]
  ------------------
  748|    370|        if (lpidx != nullptr) {
  ------------------
  |  Branch (748:13): [True: 0, False: 370]
  ------------------
  749|      0|            *lpidx = static_cast<int>(li);
  750|      0|            *rpidx = static_cast<int>(ri);
  751|      0|        }
  752|    370|        if (li < structure->size() && ri < right.structure->size()) {
  ------------------
  |  Branch (752:13): [True: 370, False: 0]
  |  Branch (752:39): [True: 370, False: 0]
  ------------------
  753|    370|            if ((*structure)[li].type->getFieldName() == (*right.structure)[ri].type->getFieldName()) {
  ------------------
  |  Branch (753:17): [True: 370, False: 0]
  ------------------
  754|    370|                if (*(*structure)[li].type != *(*right.structure)[ri].type)
  ------------------
  |  Branch (754:21): [True: 0, False: 370]
  ------------------
  755|      0|                    return false;
  756|    370|            } else {
  757|       |                // Skip hidden members
  758|      0|                if ((*structure)[li].type->hiddenMember()) {
  ------------------
  |  Branch (758:21): [True: 0, False: 0]
  ------------------
  759|      0|                    ri--;
  760|      0|                    continue;
  761|      0|                } else if ((*right.structure)[ri].type->hiddenMember()) {
  ------------------
  |  Branch (761:28): [True: 0, False: 0]
  ------------------
  762|      0|                    li--;
  763|      0|                    continue;
  764|      0|                }
  765|       |                // If one of the members is something that's inconsistently declared, skip over it
  766|       |                // for now.
  767|      0|                if (isGLPerVertex) {
  ------------------
  |  Branch (767:21): [True: 0, False: 0]
  ------------------
  768|      0|                    if (isInconsistentGLPerVertexMember((*structure)[li].type->getFieldName())) {
  ------------------
  |  Branch (768:25): [True: 0, False: 0]
  ------------------
  769|      0|                        ri--;
  770|      0|                        continue;
  771|      0|                    } else if (isInconsistentGLPerVertexMember((*right.structure)[ri].type->getFieldName())) {
  ------------------
  |  Branch (771:32): [True: 0, False: 0]
  ------------------
  772|      0|                        li--;
  773|      0|                        continue;
  774|      0|                    }
  775|      0|                } else {
  776|      0|                    return false;
  777|      0|                }
  778|      0|            }
  779|       |        // If we get here, then there should only be inconsistently declared members left
  780|    370|        } else if (li < structure->size()) {
  ------------------
  |  Branch (780:20): [True: 0, False: 0]
  ------------------
  781|      0|            if (!(*structure)[li].type->hiddenMember() && !isInconsistentGLPerVertexMember((*structure)[li].type->getFieldName())) {
  ------------------
  |  Branch (781:17): [True: 0, False: 0]
  |  Branch (781:59): [True: 0, False: 0]
  ------------------
  782|      0|                if (lpidx != nullptr) {
  ------------------
  |  Branch (782:21): [True: 0, False: 0]
  ------------------
  783|      0|                    *rpidx = -1;
  784|      0|                }
  785|      0|                return false;
  786|      0|            }
  787|      0|        } else {
  788|      0|            if (!(*right.structure)[ri].type->hiddenMember() && !isInconsistentGLPerVertexMember((*right.structure)[ri].type->getFieldName())) {
  ------------------
  |  Branch (788:17): [True: 0, False: 0]
  |  Branch (788:65): [True: 0, False: 0]
  ------------------
  789|      0|                if (lpidx != nullptr) {
  ------------------
  |  Branch (789:21): [True: 0, False: 0]
  ------------------
  790|      0|                    *lpidx = -1;
  791|      0|                }
  792|      0|                return false;
  793|      0|            }
  794|      0|        }
  795|    370|    }
  796|       |
  797|     74|    return true;
  798|     74|}
_ZN7glslang5TType8deepCopyERKS0_RNS_4TMapIPNS_7TVectorINS_8TTypeLocEEES7_NSt3__14lessIS7_EEEE:
  801|  34.8M|{
  802|  34.8M|    shallowCopy(copyOf);
  803|       |
  804|       |    // GL_EXT_spirv_intrinsics
  805|  34.8M|    if (copyOf.qualifier.spirvDecorate) {
  ------------------
  |  Branch (805:9): [True: 0, False: 34.8M]
  ------------------
  806|      0|        qualifier.spirvDecorate = new TSpirvDecorate;
  807|      0|        *qualifier.spirvDecorate = *copyOf.qualifier.spirvDecorate;
  808|      0|    }
  809|       |
  810|  34.8M|    if (copyOf.spirvType) {
  ------------------
  |  Branch (810:9): [True: 0, False: 34.8M]
  ------------------
  811|      0|        spirvType = new TSpirvType;
  812|      0|        *spirvType = *copyOf.spirvType;
  813|      0|    }
  814|       |
  815|  34.8M|    if (copyOf.arraySizes) {
  ------------------
  |  Branch (815:9): [True: 440k, False: 34.4M]
  ------------------
  816|   440k|        arraySizes = new TArraySizes;
  817|   440k|        *arraySizes = *copyOf.arraySizes;
  818|   440k|    }
  819|       |
  820|  34.8M|    if (copyOf.typeParameters) {
  ------------------
  |  Branch (820:9): [True: 7.16k, False: 34.8M]
  ------------------
  821|  7.16k|        typeParameters = new TTypeParameters;
  822|  7.16k|        typeParameters->arraySizes = new TArraySizes;
  823|  7.16k|        *typeParameters->arraySizes = *copyOf.typeParameters->arraySizes;
  824|  7.16k|        if (copyOf.typeParameters->spirvType) {
  ------------------
  |  Branch (824:13): [True: 0, False: 7.16k]
  ------------------
  825|      0|            typeParameters->spirvType = new TSpirvType;
  826|      0|            *typeParameters->spirvType = *copyOf.typeParameters->spirvType;
  827|      0|        }
  828|  7.16k|        typeParameters->basicType = copyOf.typeParameters->basicType;
  829|  7.16k|    }
  830|       |
  831|  34.8M|    if (copyOf.isStruct() && copyOf.structure) {
  ------------------
  |  Branch (831:9): [True: 23.2k, False: 34.8M]
  |  Branch (831:30): [True: 18.3k, False: 4.90k]
  ------------------
  832|  18.3k|        auto prevCopy = copiedMap.find(copyOf.structure);
  833|  18.3k|        if (prevCopy != copiedMap.end())
  ------------------
  |  Branch (833:13): [True: 0, False: 18.3k]
  ------------------
  834|      0|            structure = prevCopy->second;
  835|  18.3k|        else {
  836|  18.3k|            structure = new TTypeList;
  837|  18.3k|            copiedMap[copyOf.structure] = structure;
  838|   109k|            for (unsigned int i = 0; i < copyOf.structure->size(); ++i) {
  ------------------
  |  Branch (838:38): [True: 90.9k, False: 18.3k]
  ------------------
  839|  90.9k|                TTypeLoc typeLoc;
  840|  90.9k|                typeLoc.loc = (*copyOf.structure)[i].loc;
  841|  90.9k|                typeLoc.type = new TType();
  842|  90.9k|                typeLoc.type->deepCopy(*(*copyOf.structure)[i].type, copiedMap);
  843|  90.9k|                structure->push_back(typeLoc);
  844|  90.9k|            }
  845|  18.3k|        }
  846|  18.3k|    }
  847|       |
  848|  34.8M|    if (copyOf.fieldName)
  ------------------
  |  Branch (848:9): [True: 91.5k, False: 34.7M]
  ------------------
  849|  91.5k|        fieldName = NewPoolTString(copyOf.fieldName->c_str());
  850|  34.8M|    if (copyOf.typeName)
  ------------------
  |  Branch (850:9): [True: 18.3k, False: 34.8M]
  ------------------
  851|  18.3k|        typeName = NewPoolTString(copyOf.typeName->c_str());
  852|  34.8M|}
_ZN7glslang9TFunctionD2Ev:
  936|  19.9M|{
  937|  69.2M|    for (TParamList::iterator i = parameters.begin(); i != parameters.end(); ++i)
  ------------------
  |  Branch (937:55): [True: 49.2M, False: 19.9M]
  ------------------
  938|  49.2M|        delete (*i).type;
  939|  19.9M|}
_ZN7glslang17TSymbolTableLevelD2Ev:
  945|  35.8k|{
  946|  20.8M|    for (tLevel::iterator it = level.begin(); it != level.end(); ++it) {
  ------------------
  |  Branch (946:47): [True: 20.8M, False: 35.8k]
  ------------------
  947|  20.8M|        const TString& name = it->first;
  948|  20.8M|        auto retargetIter = std::find_if(retargetedSymbols.begin(), retargetedSymbols.end(),
  949|  20.8M|                                      [&name](const std::pair<TString, TString>& i) { return i.first == name; });
  950|  20.8M|        if (retargetIter == retargetedSymbols.end())
  ------------------
  |  Branch (950:13): [True: 20.8M, False: 360]
  ------------------
  951|  20.8M|            delete (*it).second;
  952|  20.8M|    }
  953|       |
  954|       |
  955|  35.8k|    delete [] defaultPrecision;
  956|  35.8k|}
_ZN7glslang17TSymbolTableLevel16relateToOperatorEPKcNS_9TOperatorE:
  963|  7.38M|{
  964|  7.38M|    tLevel::const_iterator candidate = level.lower_bound(name);
  965|  74.0M|    while (candidate != level.end()) {
  ------------------
  |  Branch (965:12): [True: 72.1M, False: 1.91M]
  ------------------
  966|  72.1M|        const TString& candidateName = (*candidate).first;
  967|  72.1M|        TString::size_type parenAt = candidateName.find_first_of('(');
  968|  72.1M|        if (parenAt != candidateName.npos && candidateName.compare(0, parenAt, name) == 0) {
  ------------------
  |  Branch (968:13): [True: 71.4M, False: 642k]
  |  Branch (968:46): [True: 66.6M, False: 4.82M]
  ------------------
  969|  66.6M|            TFunction* function = (*candidate).second->getAsFunction();
  970|  66.6M|            function->relateToOperator(op);
  971|  66.6M|        } else
  972|  5.47M|            break;
  973|  66.6M|        ++candidate;
  974|  66.6M|    }
  975|  7.38M|}
_ZN7glslang17TSymbolTableLevel21setFunctionExtensionsEPKciPKS2_:
  980|   783k|{
  981|   783k|    tLevel::const_iterator candidate = level.lower_bound(name);
  982|  5.94M|    while (candidate != level.end()) {
  ------------------
  |  Branch (982:12): [True: 5.86M, False: 75.7k]
  ------------------
  983|  5.86M|        const TString& candidateName = (*candidate).first;
  984|  5.86M|        TString::size_type parenAt = candidateName.find_first_of('(');
  985|  5.86M|        if (parenAt != candidateName.npos && candidateName.compare(0, parenAt, name) == 0) {
  ------------------
  |  Branch (985:13): [True: 5.82M, False: 42.1k]
  |  Branch (985:46): [True: 5.15M, False: 665k]
  ------------------
  986|  5.15M|            TSymbol* symbol = candidate->second;
  987|  5.15M|            symbol->setExtensions(num, extensions);
  988|  5.15M|        } else
  989|   708k|            break;
  990|  5.15M|        ++candidate;
  991|  5.15M|    }
  992|   783k|}
_ZN7glslang17TSymbolTableLevel29setFunctionExtensionsCallbackEPKcRKNSt3__18functionIFNS3_6vectorIS2_NS3_9allocatorIS2_EEEES2_EEE:
  996|  13.7k|{
  997|  13.7k|    tLevel::const_iterator candidate = level.lower_bound(name);
  998|   214k|    while (candidate != level.end()) {
  ------------------
  |  Branch (998:12): [True: 214k, False: 0]
  ------------------
  999|   214k|        const TString& candidateName = (*candidate).first;
 1000|   214k|        TString::size_type parenAt = candidateName.find_first_of('(');
 1001|   214k|        if (parenAt != candidateName.npos && candidateName.compare(0, parenAt, name) == 0) {
  ------------------
  |  Branch (1001:13): [True: 210k, False: 3.77k]
  |  Branch (1001:46): [True: 201k, False: 9.93k]
  ------------------
 1002|   201k|            TSymbol* symbol = candidate->second;
 1003|       |
 1004|   201k|            auto exts = func(candidateName.c_str());
 1005|   201k|            symbol->setExtensions(exts.size(), exts.data());
 1006|   201k|        } else
 1007|  13.7k|            break;
 1008|   201k|        ++candidate;
 1009|   201k|    }
 1010|  13.7k|}
_ZN7glslang17TSymbolTableLevel8readOnlyEv:
 1026|  18.8k|{
 1027|  73.5M|    for (tLevel::iterator it = level.begin(); it != level.end(); ++it)
  ------------------
  |  Branch (1027:47): [True: 73.5M, False: 18.8k]
  ------------------
 1028|  73.5M|        (*it).second->makeReadOnly();
 1029|  18.8k|}
_ZN7glslang7TSymbolC2ERKS0_:
 1035|  10.2M|{
 1036|  10.2M|    name = NewPoolTString(copyOf.name->c_str());
 1037|  10.2M|    mangledName = NewPoolTString(copyOf.mangledName->c_str());
 1038|  10.2M|    uniqueId = copyOf.uniqueId;
 1039|  10.2M|    writable = true;
 1040|  10.2M|}
_ZN7glslang9TVariableC2ERKS0_:
 1042|   320k|TVariable::TVariable(const TVariable& copyOf) : TSymbol(copyOf)
 1043|   320k|{
 1044|   320k|    type.deepCopy(copyOf.type);
 1045|   320k|    userType = copyOf.userType;
 1046|       |
 1047|       |    // we don't support specialization-constant subtrees in cloned tables, only extensions
 1048|   320k|    constSubtree = nullptr;
 1049|   320k|    extensions = nullptr;
 1050|   320k|    memberExtensions = nullptr;
 1051|   320k|    if (copyOf.getNumExtensions() > 0)
  ------------------
  |  Branch (1051:9): [True: 209k, False: 110k]
  ------------------
 1052|   209k|        setExtensions(copyOf.getNumExtensions(), copyOf.getExtensions());
 1053|   320k|    if (copyOf.hasMemberExtensions()) {
  ------------------
  |  Branch (1053:9): [True: 4.85k, False: 316k]
  ------------------
 1054|  29.9k|        for (int m = 0; m < (int)copyOf.type.getStruct()->size(); ++m) {
  ------------------
  |  Branch (1054:25): [True: 25.1k, False: 4.85k]
  ------------------
 1055|  25.1k|            if (copyOf.getNumMemberExtensions(m) > 0)
  ------------------
  |  Branch (1055:17): [True: 13.4k, False: 11.6k]
  ------------------
 1056|  13.4k|                setMemberExtensions(m, copyOf.getNumMemberExtensions(m), copyOf.getMemberExtensions(m));
 1057|  25.1k|        }
 1058|  4.85k|    }
 1059|       |
 1060|   320k|    if (! copyOf.constArray.empty()) {
  ------------------
  |  Branch (1060:9): [True: 50.2k, False: 270k]
  ------------------
 1061|       |        assert(! copyOf.type.isStruct());
 1062|  50.2k|        TConstUnionArray newArray(copyOf.constArray, 0, copyOf.constArray.size());
 1063|  50.2k|        constArray = newArray;
 1064|  50.2k|    }
 1065|   320k|}
_ZNK7glslang9TVariable5cloneEv:
 1068|   320k|{
 1069|   320k|    TVariable *variable = new TVariable(*this);
 1070|       |
 1071|   320k|    return variable;
 1072|   320k|}
_ZN7glslang9TFunctionC2ERKS0_:
 1074|  9.90M|TFunction::TFunction(const TFunction& copyOf) : TSymbol(copyOf)
 1075|  9.90M|{
 1076|  34.4M|    for (unsigned int i = 0; i < copyOf.parameters.size(); ++i) {
  ------------------
  |  Branch (1076:30): [True: 24.5M, False: 9.90M]
  ------------------
 1077|  24.5M|        TParameter param{};
 1078|  24.5M|        parameters.push_back(param);
 1079|  24.5M|        (void)parameters.back().copyParam(copyOf.parameters[i]);
 1080|  24.5M|    }
 1081|       |
 1082|  9.90M|    extensions = nullptr;
 1083|  9.90M|    if (copyOf.getNumExtensions() > 0)
  ------------------
  |  Branch (1083:9): [True: 5.36M, False: 4.54M]
  ------------------
 1084|  5.36M|        setExtensions(copyOf.getNumExtensions(), copyOf.getExtensions());
 1085|  9.90M|    returnType.deepCopy(copyOf.returnType);
 1086|  9.90M|    mangledName = copyOf.mangledName;
 1087|  9.90M|    op = copyOf.op;
 1088|  9.90M|    defined = copyOf.defined;
 1089|  9.90M|    prototyped = copyOf.prototyped;
 1090|  9.90M|    implicitThis = copyOf.implicitThis;
 1091|  9.90M|    variadic = copyOf.variadic;
 1092|  9.90M|    illegalImplicitThis = copyOf.illegalImplicitThis;
 1093|  9.90M|    defaultParamCount = copyOf.defaultParamCount;
 1094|  9.90M|    spirvInst = copyOf.spirvInst;
 1095|  9.90M|    functionControl = copyOf.functionControl;
 1096|  9.90M|}
_ZNK7glslang9TFunction5cloneEv:
 1099|  9.90M|{
 1100|  9.90M|    TFunction *function = new TFunction(*this);
 1101|       |
 1102|  9.90M|    return function;
 1103|  9.90M|}
_ZNK7glslang17TSymbolTableLevel5cloneEv:
 1116|  10.2k|{
 1117|  10.2k|    TSymbolTableLevel *symTableLevel = new TSymbolTableLevel();
 1118|  10.2k|    symTableLevel->anonId = anonId;
 1119|  10.2k|    symTableLevel->thisLevel = thisLevel;
 1120|  10.2k|    symTableLevel->retargetedSymbols.clear();
 1121|  10.2k|    for (auto &s : retargetedSymbols) {
  ------------------
  |  Branch (1121:18): [True: 180, False: 10.2k]
  ------------------
 1122|    180|        symTableLevel->retargetedSymbols.push_back({s.first, s.second});
 1123|    180|    }
 1124|  10.2k|    std::vector<bool> containerCopied(anonId, false);
 1125|  10.2k|    tLevel::const_iterator iter;
 1126|  10.2M|    for (iter = level.begin(); iter != level.end(); ++iter) {
  ------------------
  |  Branch (1126:32): [True: 10.2M, False: 10.2k]
  ------------------
 1127|  10.2M|        const TAnonMember* anon = iter->second->getAsAnonMember();
 1128|  10.2M|        if (anon) {
  ------------------
  |  Branch (1128:13): [True: 11.8k, False: 10.2M]
  ------------------
 1129|       |            // Insert all the anonymous members of this same container at once,
 1130|       |            // avoid inserting the remaining members in the future, once this has been done,
 1131|       |            // allowing them to all be part of the same new container.
 1132|  11.8k|            if (! containerCopied[anon->getAnonId()]) {
  ------------------
  |  Branch (1132:17): [True: 2.76k, False: 9.05k]
  ------------------
 1133|  2.76k|                TVariable* container = anon->getAnonContainer().clone();
 1134|  2.76k|                container->changeName(NewPoolTString(""));
 1135|       |                // insert the container and all its members
 1136|  2.76k|                symTableLevel->insert(*container, false);
 1137|  2.76k|                containerCopied[anon->getAnonId()] = true;
 1138|  2.76k|            }
 1139|  10.2M|        } else {
 1140|  10.2M|            const TString& name = iter->first;
 1141|  10.2M|            auto retargetIter = std::find_if(retargetedSymbols.begin(), retargetedSymbols.end(),
 1142|  10.2M|                                          [&name](const std::pair<TString, TString>& i) { return i.first == name; });
 1143|  10.2M|            if (retargetIter != retargetedSymbols.end())
  ------------------
  |  Branch (1143:17): [True: 180, False: 10.2M]
  ------------------
 1144|    180|                continue;
 1145|  10.2M|            symTableLevel->insert(*iter->second->clone(), false);
 1146|  10.2M|        }
 1147|  10.2M|    }
 1148|       |    // Now point retargeted symbols to the newly created versions of them
 1149|  10.2k|    for (auto &s : retargetedSymbols) {
  ------------------
  |  Branch (1149:18): [True: 180, False: 10.2k]
  ------------------
 1150|    180|        TSymbol* sym = symTableLevel->find(s.second);
 1151|    180|        if (!sym)
  ------------------
  |  Branch (1151:13): [True: 0, False: 180]
  ------------------
 1152|      0|            continue;
 1153|    180|        symTableLevel->insert(s.first, sym);
 1154|    180|    }
 1155|       |
 1156|  10.2k|    return symTableLevel;
 1157|  10.2k|}
_ZN7glslang12TSymbolTable9copyTableERKS0_:
 1160|  10.2k|{
 1161|  10.2k|    assert(adoptedLevels == copyOf.adoptedLevels);
 1162|       |
 1163|  10.2k|    uniqueId = copyOf.uniqueId;
 1164|  10.2k|    noBuiltInRedeclarations = copyOf.noBuiltInRedeclarations;
 1165|  10.2k|    separateNameSpaces = copyOf.separateNameSpaces;
 1166|  20.4k|    for (unsigned int i = copyOf.adoptedLevels; i < copyOf.table.size(); ++i)
  ------------------
  |  Branch (1166:49): [True: 10.2k, False: 10.2k]
  ------------------
 1167|  10.2k|        table.push_back(copyOf.table[i]->clone());
 1168|  10.2k|}
_ZN7glslang12TSymbolTable16relateToOperatorEPKcNS_9TOperatorE:
 1171|  3.69M|{
 1172|  11.0M|    for (unsigned int level = 0; level < table.size(); ++level)
  ------------------
  |  Branch (1172:34): [True: 7.38M, False: 3.69M]
  ------------------
 1173|  7.38M|        table[level]->relateToOperator(name, op);
 1174|  3.69M|}
_ZN7glslang12TSymbolTable21setFunctionExtensionsEPKciPKS2_:
 1177|   391k|{
 1178|  1.17M|    for (unsigned int level = 0; level < table.size(); ++level)
  ------------------
  |  Branch (1178:34): [True: 783k, False: 391k]
  ------------------
 1179|   783k|        table[level]->setFunctionExtensions(name, num, extensions);
 1180|   391k|}
_ZN7glslang12TSymbolTable29setFunctionExtensionsCallbackEPKcRKNSt3__18functionIFNS3_6vectorIS2_NS3_9allocatorIS2_EEEES2_EEE:
 1184|  6.85k|{
 1185|  20.5k|    for (unsigned int level = 0; level < table.size(); ++level)
  ------------------
  |  Branch (1185:34): [True: 13.7k, False: 6.85k]
  ------------------
 1186|  13.7k|        table[level]->setFunctionExtensionsCallback(name, func);
 1187|  6.85k|}
_ZN7glslang12TSymbolTable21setVariableExtensionsEPKciPKS2_:
 1196|   294k|{
 1197|   294k|    TSymbol* symbol = find(TString(name));
 1198|   294k|    if (symbol == nullptr)
  ------------------
  |  Branch (1198:9): [True: 67.8k, False: 226k]
  ------------------
 1199|  67.8k|        return;
 1200|       |
 1201|   226k|    symbol->setExtensions(numExts, extensions);
 1202|   226k|}
_ZN7glslang12TSymbolTable21setVariableExtensionsEPKcS2_iPKS2_:
 1206|  47.7k|{
 1207|  47.7k|    TSymbol* symbol = find(TString(blockName));
 1208|  47.7k|    if (symbol == nullptr)
  ------------------
  |  Branch (1208:9): [True: 31.1k, False: 16.6k]
  ------------------
 1209|  31.1k|        return;
 1210|  16.6k|    TVariable* variable = symbol->getAsVariable();
 1211|  16.6k|    assert(variable != nullptr);
 1212|       |
 1213|  16.6k|    const TTypeList& structure = *variable->getAsVariable()->getType().getStruct();
 1214|  80.7k|    for (int member = 0; member < (int)structure.size(); ++member) {
  ------------------
  |  Branch (1214:26): [True: 75.0k, False: 5.79k]
  ------------------
 1215|  75.0k|        if (structure[member].type->getFieldName().compare(name) == 0) {
  ------------------
  |  Branch (1215:13): [True: 10.8k, False: 64.1k]
  ------------------
 1216|  10.8k|            variable->setMemberExtensions(member, numExts, extensions);
 1217|  10.8k|            return;
 1218|  10.8k|        }
 1219|  75.0k|    }
 1220|  16.6k|}
SymbolTable.cpp:_ZZNK7glslang5TType17getCompleteStringEbbbbNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEES7_ENK3$_0clEPKc:
  232|   564k|    const auto appendStr  = [&](const char* s)  { typeString.append(s); };
SymbolTable.cpp:_ZZNK7glslang5TType17getCompleteStringEbbbbNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEES7_ENK3$_1clEj:
  233|    109|    const auto appendUint = [&](unsigned int u) { typeString.append(std::to_string(u).c_str()); };
SymbolTable.cpp:_ZZNK7glslang5TType17getCompleteStringEbbbbNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEES7_ENK3$_2clEi:
  234|  72.4k|    const auto appendInt  = [&](int i)          { typeString.append(std::to_string(i).c_str()); };
SymbolTable.cpp:_ZZN7glslang17TSymbolTableLevelD1EvENK3$_0clERKNSt3__14pairINS2_12basic_stringIcNS2_11char_traitsIcEENS_14pool_allocatorIcEEEES9_EE:
  949|  39.6k|                                      [&name](const std::pair<TString, TString>& i) { return i.first == name; });
SymbolTable.cpp:_ZZNK7glslang17TSymbolTableLevel5cloneEvENK3$_0clERKNSt3__14pairINS2_12basic_stringIcNS2_11char_traitsIcEENS_14pool_allocatorIcEEEES9_EE:
 1142|  19.8k|                                          [&name](const std::pair<TString, TString>& i) { return i.first == name; });

_ZN7glslang14TParseVersions27initializeExtensionBehaviorEv:
  163|  4.26k|{
  164|  4.26k|    typedef struct {
  165|  4.26k|        const char *const extensionName;
  166|  4.26k|        EShTargetLanguageVersion minSpvVersion;
  167|  4.26k|    } extensionData;
  168|       |
  169|  4.26k|    const extensionData exts[] = { {E_GL_EXT_ray_tracing, EShTargetSpv_1_4},
  170|  4.26k|                                   {E_GL_NV_ray_tracing_motion_blur, EShTargetSpv_1_4},
  171|  4.26k|                                   {E_GL_EXT_mesh_shader, EShTargetSpv_1_4},
  172|  4.26k|                                   {E_GL_NV_cooperative_matrix2, EShTargetSpv_1_6},
  173|  4.26k|                                   {E_GL_NV_cooperative_matrix_decode_vector, EShTargetSpv_1_6},
  174|  4.26k|                                   {E_GL_EXT_cooperative_matrix_maintenance1, EShTargetSpv_1_3},
  175|  4.26k|                                 };
  176|       |
  177|  29.8k|    for (size_t ii = 0; ii < sizeof(exts) / sizeof(exts[0]); ii++) {
  ------------------
  |  Branch (177:25): [True: 25.5k, False: 4.26k]
  ------------------
  178|       |        // Add only extensions which require > spv1.0 to save space in map
  179|  25.5k|        if (exts[ii].minSpvVersion > EShTargetSpv_1_0) {
  ------------------
  |  Branch (179:13): [True: 25.5k, False: 0]
  ------------------
  180|  25.5k|            extensionMinSpv[exts[ii].extensionName] = exts[ii].minSpvVersion;
  181|  25.5k|        }
  182|  25.5k|    }
  183|       |
  184|  4.26k|    extensionBehavior[E_GL_OES_texture_3D]                   = EBhDisable;
  185|  4.26k|    extensionBehavior[E_GL_OES_standard_derivatives]         = EBhDisable;
  186|  4.26k|    extensionBehavior[E_GL_EXT_frag_depth]                   = EBhDisable;
  187|  4.26k|    extensionBehavior[E_GL_OES_EGL_image_external]           = EBhDisable;
  188|  4.26k|    extensionBehavior[E_GL_OES_EGL_image_external_essl3]     = EBhDisable;
  189|  4.26k|    extensionBehavior[E_GL_EXT_YUV_target]                   = EBhDisable;
  190|  4.26k|    extensionBehavior[E_GL_EXT_shader_texture_lod]           = EBhDisable;
  191|  4.26k|    extensionBehavior[E_GL_EXT_shadow_samplers]              = EBhDisable;
  192|  4.26k|    extensionBehavior[E_GL_ARB_texture_rectangle]            = EBhDisable;
  193|  4.26k|    extensionBehavior[E_GL_3DL_array_objects]                = EBhDisable;
  194|  4.26k|    extensionBehavior[E_GL_ARB_shading_language_420pack]     = EBhDisable;
  195|  4.26k|    extensionBehavior[E_GL_ARB_texture_gather]               = EBhDisable;
  196|  4.26k|    extensionBehavior[E_GL_ARB_gpu_shader5]                  = EBhDisable;
  197|  4.26k|    extensionBehavior[E_GL_ARB_separate_shader_objects]      = EBhDisable;
  198|  4.26k|    extensionBehavior[E_GL_ARB_compute_shader]               = EBhDisable;
  199|  4.26k|    extensionBehavior[E_GL_ARB_tessellation_shader]          = EBhDisable;
  200|  4.26k|    extensionBehavior[E_GL_ARB_enhanced_layouts]             = EBhDisable;
  201|  4.26k|    extensionBehavior[E_GL_ARB_texture_cube_map_array]       = EBhDisable;
  202|  4.26k|    extensionBehavior[E_GL_ARB_texture_multisample]          = EBhDisable;
  203|  4.26k|    extensionBehavior[E_GL_ARB_shader_texture_lod]           = EBhDisable;
  204|  4.26k|    extensionBehavior[E_GL_ARB_explicit_attrib_location]     = EBhDisable;
  205|  4.26k|    extensionBehavior[E_GL_ARB_explicit_uniform_location]    = EBhDisable;
  206|  4.26k|    extensionBehavior[E_GL_ARB_shader_image_load_store]      = EBhDisable;
  207|  4.26k|    extensionBehavior[E_GL_ARB_shader_atomic_counters]       = EBhDisable;
  208|  4.26k|    extensionBehavior[E_GL_ARB_shader_atomic_counter_ops]    = EBhDisable;
  209|  4.26k|    extensionBehavior[E_GL_ARB_shader_draw_parameters]       = EBhDisable;
  210|  4.26k|    extensionBehavior[E_GL_ARB_shader_group_vote]            = EBhDisable;
  211|  4.26k|    extensionBehavior[E_GL_ARB_derivative_control]           = EBhDisable;
  212|  4.26k|    extensionBehavior[E_GL_ARB_shader_texture_image_samples] = EBhDisable;
  213|  4.26k|    extensionBehavior[E_GL_ARB_viewport_array]               = EBhDisable;
  214|  4.26k|    extensionBehavior[E_GL_ARB_gpu_shader_int64]             = EBhDisable;
  215|  4.26k|    extensionBehavior[E_GL_ARB_gpu_shader_fp64]              = EBhDisable;
  216|  4.26k|    extensionBehavior[E_GL_ARB_shader_ballot]                = EBhDisable;
  217|  4.26k|    extensionBehavior[E_GL_ARB_sparse_texture2]              = EBhDisable;
  218|  4.26k|    extensionBehavior[E_GL_ARB_sparse_texture_clamp]         = EBhDisable;
  219|  4.26k|    extensionBehavior[E_GL_ARB_shader_stencil_export]        = EBhDisable;
  220|  4.26k|    extensionBehavior[E_GL_ARB_cull_distance]                = EBhDisable;
  221|  4.26k|    extensionBehavior[E_GL_ARB_post_depth_coverage]          = EBhDisable;
  222|  4.26k|    extensionBehavior[E_GL_ARB_shader_viewport_layer_array]  = EBhDisable;
  223|  4.26k|    extensionBehavior[E_GL_ARB_fragment_shader_interlock]    = EBhDisable;
  224|  4.26k|    extensionBehavior[E_GL_ARB_shader_clock]                 = EBhDisable;
  225|  4.26k|    extensionBehavior[E_GL_ARB_uniform_buffer_object]        = EBhDisable;
  226|  4.26k|    extensionBehavior[E_GL_ARB_sample_shading]               = EBhDisable;
  227|  4.26k|    extensionBehavior[E_GL_ARB_shader_bit_encoding]          = EBhDisable;
  228|  4.26k|    extensionBehavior[E_GL_ARB_shader_image_size]            = EBhDisable;
  229|  4.26k|    extensionBehavior[E_GL_ARB_shader_storage_buffer_object] = EBhDisable;
  230|  4.26k|    extensionBehavior[E_GL_ARB_shading_language_packing]     = EBhDisable;
  231|  4.26k|    extensionBehavior[E_GL_ARB_texture_query_lod]            = EBhDisable;
  232|  4.26k|    extensionBehavior[E_GL_ARB_vertex_attrib_64bit]          = EBhDisable;
  233|  4.26k|    extensionBehavior[E_GL_NV_gpu_shader5]                   = EBhDisable;
  234|  4.26k|    extensionBehavior[E_GL_ARB_draw_instanced]               = EBhDisable;
  235|  4.26k|    extensionBehavior[E_GL_ARB_bindless_texture]             = EBhDisable;
  236|  4.26k|    extensionBehavior[E_GL_ARB_fragment_coord_conventions]   = EBhDisable;
  237|  4.26k|    extensionBehavior[E_GL_ARB_conservative_depth]           = EBhDisable;
  238|       |
  239|       |
  240|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_basic]            = EBhDisable;
  241|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_vote]             = EBhDisable;
  242|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_arithmetic]       = EBhDisable;
  243|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_ballot]           = EBhDisable;
  244|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_shuffle]          = EBhDisable;
  245|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_shuffle_relative] = EBhDisable;
  246|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_rotate]           = EBhDisable;
  247|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_clustered]        = EBhDisable;
  248|  4.26k|    extensionBehavior[E_GL_KHR_shader_subgroup_quad]             = EBhDisable;
  249|  4.26k|    extensionBehavior[E_GL_KHR_memory_scope_semantics]           = EBhDisable;
  250|       |
  251|  4.26k|    extensionBehavior[E_GL_EXT_shader_atomic_int64]              = EBhDisable;
  252|       |
  253|  4.26k|    extensionBehavior[E_GL_EXT_shader_non_constant_global_initializers] = EBhDisable;
  254|  4.26k|    extensionBehavior[E_GL_EXT_shader_image_load_formatted]             = EBhDisable;
  255|  4.26k|    extensionBehavior[E_GL_EXT_post_depth_coverage]                     = EBhDisable;
  256|  4.26k|    extensionBehavior[E_GL_EXT_control_flow_attributes]                 = EBhDisable;
  257|  4.26k|    extensionBehavior[E_GL_EXT_nonuniform_qualifier]                    = EBhDisable;
  258|  4.26k|    extensionBehavior[E_GL_EXT_samplerless_texture_functions]           = EBhDisable;
  259|  4.26k|    extensionBehavior[E_GL_EXT_scalar_block_layout]                     = EBhDisable;
  260|  4.26k|    extensionBehavior[E_GL_EXT_fragment_invocation_density]             = EBhDisable;
  261|  4.26k|    extensionBehavior[E_GL_EXT_buffer_reference]                        = EBhDisable;
  262|  4.26k|    extensionBehavior[E_GL_EXT_buffer_reference2]                       = EBhDisable;
  263|  4.26k|    extensionBehavior[E_GL_EXT_buffer_reference_uvec2]                  = EBhDisable;
  264|  4.26k|    extensionBehavior[E_GL_EXT_demote_to_helper_invocation]             = EBhDisable;
  265|  4.26k|    extensionBehavior[E_GL_EXT_debug_printf]                            = EBhDisable;
  266|       |
  267|  4.26k|    extensionBehavior[E_GL_EXT_shader_16bit_storage]                    = EBhDisable;
  268|  4.26k|    extensionBehavior[E_GL_EXT_shader_8bit_storage]                     = EBhDisable;
  269|  4.26k|    extensionBehavior[E_GL_EXT_subgroup_uniform_control_flow]           = EBhDisable;
  270|  4.26k|    extensionBehavior[E_GL_EXT_maximal_reconvergence]                   = EBhDisable;
  271|       |
  272|  4.26k|    extensionBehavior[E_GL_EXT_fragment_shader_barycentric]             = EBhDisable;
  273|  4.26k|    extensionBehavior[E_GL_EXT_expect_assume]                           = EBhDisable;
  274|       |
  275|  4.26k|    extensionBehavior[E_GL_EXT_control_flow_attributes2]                = EBhDisable;
  276|  4.26k|    extensionBehavior[E_GL_EXT_function_control_attributes]             = EBhDisable;
  277|  4.26k|    extensionBehavior[E_GL_EXT_spec_constant_composites]                = EBhDisable;
  278|  4.26k|    extensionBehavior[E_GL_EXT_abort]                                   = EBhDisable;
  279|  4.26k|    extensionBehavior[E_GL_EXT_split_barrier]                           = EBhDisable;
  280|       |
  281|  4.26k|    extensionBehavior[E_GL_KHR_cooperative_matrix]                      = EBhDisable;
  282|  4.26k|    extensionBehavior[E_GL_NV_cooperative_vector]                       = EBhDisable;
  283|       |
  284|       |    // #line and #include
  285|  4.26k|    extensionBehavior[E_GL_GOOGLE_cpp_style_line_directive]          = EBhDisable;
  286|  4.26k|    extensionBehavior[E_GL_GOOGLE_include_directive]                 = EBhDisable;
  287|  4.26k|    extensionBehavior[E_GL_ARB_shading_language_include]             = EBhDisable;
  288|       |
  289|  4.26k|    extensionBehavior[E_GL_AMD_shader_ballot]                        = EBhDisable;
  290|  4.26k|    extensionBehavior[E_GL_AMD_shader_trinary_minmax]                = EBhDisable;
  291|  4.26k|    extensionBehavior[E_GL_AMD_shader_explicit_vertex_parameter]     = EBhDisable;
  292|  4.26k|    extensionBehavior[E_GL_AMD_gcn_shader]                           = EBhDisable;
  293|  4.26k|    extensionBehavior[E_GL_AMD_gpu_shader_half_float]                = EBhDisable;
  294|  4.26k|    extensionBehavior[E_GL_AMD_texture_gather_bias_lod]              = EBhDisable;
  295|  4.26k|    extensionBehavior[E_GL_AMD_gpu_shader_int16]                     = EBhDisable;
  296|  4.26k|    extensionBehavior[E_GL_AMD_shader_image_load_store_lod]          = EBhDisable;
  297|  4.26k|    extensionBehavior[E_GL_AMD_shader_fragment_mask]                 = EBhDisable;
  298|  4.26k|    extensionBehavior[E_GL_AMD_gpu_shader_half_float_fetch]          = EBhDisable;
  299|  4.26k|    extensionBehavior[E_GL_AMD_shader_early_and_late_fragment_tests] = EBhDisable;
  300|       |
  301|  4.26k|    extensionBehavior[E_GL_INTEL_shader_integer_functions2]          = EBhDisable;
  302|       |
  303|  4.26k|    extensionBehavior[E_GL_NV_sample_mask_override_coverage]         = EBhDisable;
  304|  4.26k|    extensionBehavior[E_SPV_NV_geometry_shader_passthrough]          = EBhDisable;
  305|  4.26k|    extensionBehavior[E_GL_NV_viewport_array2]                       = EBhDisable;
  306|  4.26k|    extensionBehavior[E_GL_NV_stereo_view_rendering]                 = EBhDisable;
  307|  4.26k|    extensionBehavior[E_GL_NVX_multiview_per_view_attributes]        = EBhDisable;
  308|  4.26k|    extensionBehavior[E_GL_NV_shader_atomic_int64]                   = EBhDisable;
  309|  4.26k|    extensionBehavior[E_GL_NV_conservative_raster_underestimation]   = EBhDisable;
  310|  4.26k|    extensionBehavior[E_GL_NV_shader_noperspective_interpolation]    = EBhDisable;
  311|  4.26k|    extensionBehavior[E_GL_NV_shader_subgroup_partitioned]           = EBhDisable;
  312|  4.26k|    extensionBehavior[E_GL_NV_shading_rate_image]                    = EBhDisable;
  313|  4.26k|    extensionBehavior[E_GL_NV_ray_tracing]                           = EBhDisable;
  314|  4.26k|    extensionBehavior[E_GL_NV_ray_tracing_motion_blur]               = EBhDisable;
  315|  4.26k|    extensionBehavior[E_GL_NV_fragment_shader_barycentric]           = EBhDisable;
  316|  4.26k|    extensionBehavior[E_GL_KHR_compute_shader_derivatives]           = EBhDisable;
  317|  4.26k|    extensionBehavior[E_GL_NV_compute_shader_derivatives]            = EBhDisable;
  318|  4.26k|    extensionBehavior[E_GL_NV_shader_texture_footprint]              = EBhDisable;
  319|  4.26k|    extensionBehavior[E_GL_NV_mesh_shader]                           = EBhDisable;
  320|  4.26k|    extensionBehavior[E_GL_NV_cooperative_matrix]                    = EBhDisable;
  321|  4.26k|    extensionBehavior[E_GL_NV_shader_sm_builtins]                    = EBhDisable;
  322|  4.26k|    extensionBehavior[E_GL_NV_integer_cooperative_matrix]            = EBhDisable;
  323|  4.26k|    extensionBehavior[E_GL_NV_shader_invocation_reorder]             = EBhDisable;
  324|  4.26k|    extensionBehavior[E_GL_NV_displacement_micromap]                 = EBhDisable;
  325|  4.26k|    extensionBehavior[E_GL_NV_shader_atomic_fp16_vector]             = EBhDisable;
  326|  4.26k|    extensionBehavior[E_GL_NV_cooperative_matrix2]                   = EBhDisable;
  327|  4.26k|    extensionBehavior[E_GL_NV_cooperative_matrix_decode_vector]      = EBhDisable;
  328|  4.26k|    extensionBehavior[E_GL_NV_cluster_acceleration_structure]        = EBhDisable;
  329|  4.26k|    extensionBehavior[E_GL_NV_linear_swept_spheres]                  = EBhDisable;
  330|  4.26k|    extensionBehavior[E_GL_NV_desktop_lowp_mediump]                  = EBhDisable;
  331|  4.26k|    extensionBehavior[E_GL_NV_push_constant_bank]                    = EBhDisable;
  332|  4.26k|    extensionBehavior[E_GL_NV_explicit_typecast]                     = EBhDisable;
  333|       |
  334|       |    // ARM
  335|  4.26k|    extensionBehavior[E_GL_ARM_shader_core_builtins]                 = EBhDisable;
  336|  4.26k|    extensionBehavior[E_GL_ARM_tensors]                              = EBhDisable;
  337|  4.26k|    extensionBehavior[E_GL_ARM_tensors_bfloat16]                     = EBhDisable;
  338|  4.26k|    extensionBehavior[E_GL_ARM_tensors_float_e5m2]                   = EBhDisable;
  339|  4.26k|    extensionBehavior[E_GL_ARM_tensors_float_e4m3]                   = EBhDisable;
  340|       |
  341|       |    // QCOM
  342|  4.26k|    extensionBehavior[E_GL_QCOM_image_processing]                    = EBhDisable;
  343|  4.26k|    extensionBehavior[E_GL_QCOM_image_processing2]                   = EBhDisable;
  344|  4.26k|    extensionBehavior[E_GL_QCOM_image_processing3]                   = EBhDisable;
  345|  4.26k|    extensionBehavior[E_GL_QCOM_tile_shading]                        = EBhDisable;
  346|  4.26k|    extensionBehavior[E_GL_QCOM_cooperative_matrix_conversion]       = EBhDisable;
  347|  4.26k|    extensionBehavior[E_GL_QCOM_multiple_wait_queues]                = EBhDisable;
  348|       |
  349|       |    // AEP
  350|  4.26k|    extensionBehavior[E_GL_ANDROID_extension_pack_es31a]             = EBhDisable;
  351|  4.26k|    extensionBehavior[E_GL_KHR_blend_equation_advanced]              = EBhDisable;
  352|  4.26k|    extensionBehavior[E_GL_OES_sample_variables]                     = EBhDisable;
  353|  4.26k|    extensionBehavior[E_GL_OES_shader_image_atomic]                  = EBhDisable;
  354|  4.26k|    extensionBehavior[E_GL_OES_shader_multisample_interpolation]     = EBhDisable;
  355|  4.26k|    extensionBehavior[E_GL_OES_texture_storage_multisample_2d_array] = EBhDisable;
  356|  4.26k|    extensionBehavior[E_GL_EXT_clip_cull_distance]                   = EBhDisable;
  357|  4.26k|    extensionBehavior[E_GL_EXT_geometry_shader]                      = EBhDisable;
  358|  4.26k|    extensionBehavior[E_GL_EXT_geometry_point_size]                  = EBhDisable;
  359|  4.26k|    extensionBehavior[E_GL_EXT_gpu_shader5]                          = EBhDisable;
  360|  4.26k|    extensionBehavior[E_GL_EXT_primitive_bounding_box]               = EBhDisable;
  361|  4.26k|    extensionBehavior[E_GL_EXT_shader_io_blocks]                     = EBhDisable;
  362|  4.26k|    extensionBehavior[E_GL_EXT_tessellation_shader]                  = EBhDisable;
  363|  4.26k|    extensionBehavior[E_GL_EXT_tessellation_point_size]              = EBhDisable;
  364|  4.26k|    extensionBehavior[E_GL_EXT_texture_buffer]                       = EBhDisable;
  365|  4.26k|    extensionBehavior[E_GL_EXT_texture_cube_map_array]               = EBhDisable;
  366|  4.26k|    extensionBehavior[E_GL_EXT_null_initializer]                     = EBhDisable;
  367|  4.26k|    extensionBehavior[E_GL_EXT_descriptor_heap]                      = EBhDisable;
  368|  4.26k|    extensionBehavior[E_GL_EXT_structured_descriptor_heap]           = EBhDisable;
  369|       |
  370|       |    // OES matching AEP
  371|  4.26k|    extensionBehavior[E_GL_OES_geometry_shader]          = EBhDisable;
  372|  4.26k|    extensionBehavior[E_GL_OES_geometry_point_size]      = EBhDisable;
  373|  4.26k|    extensionBehavior[E_GL_OES_gpu_shader5]              = EBhDisable;
  374|  4.26k|    extensionBehavior[E_GL_OES_primitive_bounding_box]   = EBhDisable;
  375|  4.26k|    extensionBehavior[E_GL_OES_shader_io_blocks]         = EBhDisable;
  376|  4.26k|    extensionBehavior[E_GL_OES_tessellation_shader]      = EBhDisable;
  377|  4.26k|    extensionBehavior[E_GL_OES_tessellation_point_size]  = EBhDisable;
  378|  4.26k|    extensionBehavior[E_GL_OES_texture_buffer]           = EBhDisable;
  379|  4.26k|    extensionBehavior[E_GL_OES_texture_cube_map_array]   = EBhDisable;
  380|  4.26k|    extensionBehavior[E_GL_EXT_shader_integer_mix]       = EBhDisable;
  381|       |
  382|       |    // EXT extensions
  383|  4.26k|    extensionBehavior[E_GL_EXT_device_group]                = EBhDisable;
  384|  4.26k|    extensionBehavior[E_GL_EXT_multiview]                   = EBhDisable;
  385|  4.26k|    extensionBehavior[E_GL_EXT_shader_realtime_clock]       = EBhDisable;
  386|  4.26k|    extensionBehavior[E_GL_EXT_ray_tracing]                 = EBhDisable;
  387|  4.26k|    extensionBehavior[E_GL_EXT_ray_query]                   = EBhDisable;
  388|  4.26k|    extensionBehavior[E_GL_EXT_ray_flags_primitive_culling] = EBhDisable;
  389|  4.26k|    extensionBehavior[E_GL_EXT_ray_cull_mask]               = EBhDisable;
  390|  4.26k|    extensionBehavior[E_GL_EXT_blend_func_extended]         = EBhDisable;
  391|  4.26k|    extensionBehavior[E_GL_EXT_shader_implicit_conversions] = EBhDisable;
  392|  4.26k|    extensionBehavior[E_GL_EXT_fragment_shading_rate]       = EBhDisable;
  393|  4.26k|    extensionBehavior[E_GL_EXT_shader_image_int64]          = EBhDisable;
  394|  4.26k|    extensionBehavior[E_GL_EXT_terminate_invocation]        = EBhDisable;
  395|  4.26k|    extensionBehavior[E_GL_EXT_shared_memory_block]         = EBhDisable;
  396|  4.26k|    extensionBehavior[E_GL_EXT_spirv_intrinsics]            = EBhDisable;
  397|  4.26k|    extensionBehavior[E_GL_EXT_mesh_shader]                 = EBhDisable;
  398|  4.26k|    extensionBehavior[E_GL_EXT_opacity_micromap]            = EBhDisable;
  399|  4.26k|    extensionBehavior[E_GL_EXT_opacity_micromap_ray_query_mode] = EBhDisable;
  400|  4.26k|    extensionBehavior[E_GL_EXT_shader_quad_control]         = EBhDisable;
  401|  4.26k|    extensionBehavior[E_GL_EXT_ray_tracing_position_fetch]  = EBhDisable;
  402|  4.26k|    extensionBehavior[E_GL_EXT_shader_tile_image]           = EBhDisable;
  403|  4.26k|    extensionBehavior[E_GL_EXT_texture_shadow_lod]          = EBhDisable;
  404|  4.26k|    extensionBehavior[E_GL_EXT_draw_instanced]              = EBhDisable;
  405|  4.26k|    extensionBehavior[E_GL_EXT_texture_array]               = EBhDisable;
  406|  4.26k|    extensionBehavior[E_GL_EXT_texture_offset_non_const]    = EBhDisable;
  407|  4.26k|    extensionBehavior[E_GL_EXT_nontemporal_keyword]         = EBhDisable;
  408|  4.26k|    extensionBehavior[E_GL_EXT_bfloat16]                    = EBhDisable;
  409|  4.26k|    extensionBehavior[E_GL_EXT_float_e4m3]                  = EBhDisable;
  410|  4.26k|    extensionBehavior[E_GL_EXT_float_e5m2]                  = EBhDisable;
  411|  4.26k|    extensionBehavior[E_GL_EXT_uniform_buffer_unsized_array] = EBhDisable;
  412|  4.26k|    extensionBehavior[E_GL_EXT_shader_64bit_indexing]       = EBhDisable;
  413|  4.26k|    extensionBehavior[E_GL_EXT_conservative_depth]          = EBhDisable;
  414|  4.26k|    extensionBehavior[E_GL_EXT_long_vector]                 = EBhDisable;
  415|  4.26k|    extensionBehavior[E_GL_EXT_float_e2m1]                  = EBhDisable;
  416|  4.26k|    extensionBehavior[E_GL_EXT_float_e3m2]                  = EBhDisable;
  417|  4.26k|    extensionBehavior[E_GL_EXT_float_e2m3]                  = EBhDisable;
  418|  4.26k|    extensionBehavior[E_GL_EXT_float_ue8m0]                 = EBhDisable;
  419|  4.26k|    extensionBehavior[E_GL_EXT_float_mxint8]                = EBhDisable;
  420|  4.26k|    extensionBehavior[E_GL_EXT_optional_input_attachment_index] = EBhDisable;
  421|  4.26k|    extensionBehavior[E_GL_EXT_cooperative_matrix_maintenance1] = EBhDisable;
  422|       |
  423|       |    // OVR extensions
  424|  4.26k|    extensionBehavior[E_GL_OVR_multiview]                = EBhDisable;
  425|  4.26k|    extensionBehavior[E_GL_OVR_multiview2]               = EBhDisable;
  426|       |
  427|       |    // explicit types
  428|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types]         = EBhDisable;
  429|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types_int8]    = EBhDisable;
  430|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types_int16]   = EBhDisable;
  431|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types_int32]   = EBhDisable;
  432|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types_int64]   = EBhDisable;
  433|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types_float16] = EBhDisable;
  434|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types_float32] = EBhDisable;
  435|  4.26k|    extensionBehavior[E_GL_EXT_shader_explicit_arithmetic_types_float64] = EBhDisable;
  436|       |
  437|       |    // subgroup extended types
  438|  4.26k|    extensionBehavior[E_GL_EXT_shader_subgroup_extended_types_int8]    = EBhDisable;
  439|  4.26k|    extensionBehavior[E_GL_EXT_shader_subgroup_extended_types_int16]   = EBhDisable;
  440|  4.26k|    extensionBehavior[E_GL_EXT_shader_subgroup_extended_types_int64]   = EBhDisable;
  441|  4.26k|    extensionBehavior[E_GL_EXT_shader_subgroup_extended_types_float16] = EBhDisable;
  442|  4.26k|    extensionBehavior[E_GL_EXT_shader_atomic_float]                    = EBhDisable;
  443|  4.26k|    extensionBehavior[E_GL_EXT_shader_atomic_float2]                   = EBhDisable;
  444|       |
  445|  4.26k|    extensionBehavior[E_GL_EXT_integer_dot_product]                    = EBhDisable;
  446|       |
  447|  4.26k|    extensionBehavior[E_GL_EXT_shader_invocation_reorder]              = EBhDisable;
  448|       |
  449|       |    // Record extensions not for spv.
  450|  4.26k|    spvUnsupportedExt.push_back(E_GL_ARB_bindless_texture);
  451|  4.26k|}
_ZN7glslang14TParseVersions11getPreambleERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  456|  4.26k|{
  457|  4.26k|    if (isEsProfile()) {
  ------------------
  |  Branch (457:9): [True: 444, False: 3.81k]
  ------------------
  458|    444|        preamble =
  459|    444|            "#define GL_ES 1\n"
  460|    444|            "#define GL_FRAGMENT_PRECISION_HIGH 1\n"
  461|    444|            "#define GL_OES_texture_3D 1\n"
  462|    444|            "#define GL_OES_standard_derivatives 1\n"
  463|    444|            "#define GL_EXT_frag_depth 1\n"
  464|    444|            "#define GL_OES_EGL_image_external 1\n"
  465|    444|            "#define GL_OES_EGL_image_external_essl3 1\n"
  466|    444|            "#define GL_EXT_YUV_target 1\n"
  467|    444|            "#define GL_EXT_shader_texture_lod 1\n"
  468|    444|            "#define GL_EXT_shadow_samplers 1\n"
  469|    444|            "#define GL_EXT_fragment_shading_rate 1\n"
  470|    444|            "#define GL_EXT_conservative_depth 1\n"
  471|       |
  472|       |            // AEP
  473|    444|            "#define GL_ANDROID_extension_pack_es31a 1\n"
  474|    444|            "#define GL_OES_sample_variables 1\n"
  475|    444|            "#define GL_OES_shader_image_atomic 1\n"
  476|    444|            "#define GL_OES_shader_multisample_interpolation 1\n"
  477|    444|            "#define GL_OES_texture_storage_multisample_2d_array 1\n"
  478|    444|            "#define GL_EXT_geometry_shader 1\n"
  479|    444|            "#define GL_EXT_geometry_point_size 1\n"
  480|    444|            "#define GL_EXT_gpu_shader5 1\n"
  481|    444|            "#define GL_EXT_primitive_bounding_box 1\n"
  482|    444|            "#define GL_EXT_shader_io_blocks 1\n"
  483|    444|            "#define GL_EXT_tessellation_shader 1\n"
  484|    444|            "#define GL_EXT_tessellation_point_size 1\n"
  485|    444|            "#define GL_EXT_texture_buffer 1\n"
  486|    444|            "#define GL_EXT_texture_cube_map_array 1\n"
  487|    444|            "#define GL_EXT_shader_implicit_conversions 1\n"
  488|    444|            "#define GL_EXT_shader_integer_mix 1\n"
  489|    444|            "#define GL_EXT_blend_func_extended 1\n"
  490|    444|            "#define GL_EXT_descriptor_heap 1\n"
  491|    444|            "#define GL_EXT_structured_descriptor_heap 1\n"
  492|    444|            "#define GL_EXT_split_barrier 1\n"
  493|       |
  494|       |            // OES matching AEP
  495|    444|            "#define GL_OES_geometry_shader 1\n"
  496|    444|            "#define GL_OES_geometry_point_size 1\n"
  497|    444|            "#define GL_OES_gpu_shader5 1\n"
  498|    444|            "#define GL_OES_primitive_bounding_box 1\n"
  499|    444|            "#define GL_OES_shader_io_blocks 1\n"
  500|    444|            "#define GL_OES_tessellation_shader 1\n"
  501|    444|            "#define GL_OES_tessellation_point_size 1\n"
  502|    444|            "#define GL_OES_texture_buffer 1\n"
  503|    444|            "#define GL_OES_texture_cube_map_array 1\n"
  504|    444|            "#define GL_EXT_shader_non_constant_global_initializers 1\n"
  505|       |
  506|    444|            "#define GL_QCOM_image_processing 1\n"
  507|    444|            "#define GL_QCOM_image_processing2 1\n"
  508|    444|            "#define GL_QCOM_image_processing3 1\n"
  509|    444|            "#define GL_QCOM_tile_shading 1\n"
  510|    444|            "#define GL_QCOM_cooperative_matrix_conversion 1\n"
  511|    444|            "#define GL_QCOM_multiple_wait_queues 1\n"
  512|    444|            ;
  513|       |
  514|    444|            if (version >= 300) {
  ------------------
  |  Branch (514:17): [True: 444, False: 0]
  ------------------
  515|    444|                preamble += "#define GL_NV_shader_noperspective_interpolation 1\n";
  516|    444|                preamble += "#define GL_EXT_clip_cull_distance 1\n";
  517|    444|            }
  518|    444|            if (version >= 310) {
  ------------------
  |  Branch (518:17): [True: 444, False: 0]
  ------------------
  519|    444|                preamble += "#define GL_EXT_null_initializer 1\n";
  520|    444|                preamble += "#define GL_EXT_subgroup_uniform_control_flow 1\n";
  521|    444|                preamble += "#define GL_EXT_maximal_reconvergence 1\n";
  522|    444|            }
  523|       |
  524|  3.81k|    } else { // !isEsProfile()
  525|  3.81k|        preamble =
  526|  3.81k|            "#define GL_ARB_texture_rectangle 1\n"
  527|  3.81k|            "#define GL_ARB_shading_language_420pack 1\n"
  528|  3.81k|            "#define GL_ARB_texture_gather 1\n"
  529|  3.81k|            "#define GL_ARB_gpu_shader5 1\n"
  530|  3.81k|            "#define GL_ARB_separate_shader_objects 1\n"
  531|  3.81k|            "#define GL_ARB_compute_shader 1\n"
  532|  3.81k|            "#define GL_ARB_tessellation_shader 1\n"
  533|  3.81k|            "#define GL_ARB_enhanced_layouts 1\n"
  534|  3.81k|            "#define GL_ARB_texture_cube_map_array 1\n"
  535|  3.81k|            "#define GL_ARB_texture_multisample 1\n"
  536|  3.81k|            "#define GL_ARB_shader_texture_lod 1\n"
  537|  3.81k|            "#define GL_ARB_explicit_attrib_location 1\n"
  538|  3.81k|            "#define GL_ARB_explicit_uniform_location 1\n"
  539|  3.81k|            "#define GL_ARB_shader_image_load_store 1\n"
  540|  3.81k|            "#define GL_ARB_shader_atomic_counters 1\n"
  541|  3.81k|            "#define GL_ARB_shader_draw_parameters 1\n"
  542|  3.81k|            "#define GL_ARB_shader_group_vote 1\n"
  543|  3.81k|            "#define GL_ARB_derivative_control 1\n"
  544|  3.81k|            "#define GL_ARB_shader_texture_image_samples 1\n"
  545|  3.81k|            "#define GL_ARB_viewport_array 1\n"
  546|  3.81k|            "#define GL_ARB_gpu_shader_int64 1\n"
  547|  3.81k|            "#define GL_ARB_gpu_shader_fp64 1\n"
  548|  3.81k|            "#define GL_ARB_shader_ballot 1\n"
  549|  3.81k|            "#define GL_ARB_sparse_texture2 1\n"
  550|  3.81k|            "#define GL_ARB_sparse_texture_clamp 1\n"
  551|  3.81k|            "#define GL_ARB_shader_stencil_export 1\n"
  552|  3.81k|            "#define GL_ARB_sample_shading 1\n"
  553|  3.81k|            "#define GL_ARB_shader_image_size 1\n"
  554|  3.81k|            "#define GL_ARB_shading_language_packing 1\n"
  555|  3.81k|            "#define GL_ARB_cull_distance 1\n"
  556|  3.81k|            "#define GL_ARB_post_depth_coverage 1\n"
  557|  3.81k|            "#define GL_ARB_fragment_shader_interlock 1\n"
  558|  3.81k|            "#define GL_ARB_uniform_buffer_object 1\n"
  559|  3.81k|            "#define GL_ARB_shader_bit_encoding 1\n"
  560|  3.81k|            "#define GL_ARB_shader_storage_buffer_object 1\n"
  561|  3.81k|            "#define GL_ARB_texture_query_lod 1\n"
  562|  3.81k|            "#define GL_ARB_vertex_attrib_64bit 1\n"
  563|  3.81k|            "#define GL_NV_gpu_shader5 1\n"
  564|  3.81k|            "#define GL_ARB_draw_instanced 1\n"
  565|  3.81k|            "#define GL_ARB_fragment_coord_conventions 1\n"
  566|  3.81k|            "#define GL_ARB_conservative_depth 1\n"
  567|       |
  568|  3.81k|            "#define GL_EXT_shader_non_constant_global_initializers 1\n"
  569|  3.81k|            "#define GL_EXT_shader_image_load_formatted 1\n"
  570|  3.81k|            "#define GL_EXT_post_depth_coverage 1\n"
  571|  3.81k|            "#define GL_EXT_control_flow_attributes 1\n"
  572|  3.81k|            "#define GL_EXT_nonuniform_qualifier 1\n"
  573|  3.81k|            "#define GL_EXT_shader_16bit_storage 1\n"
  574|  3.81k|            "#define GL_EXT_shader_8bit_storage 1\n"
  575|  3.81k|            "#define GL_EXT_samplerless_texture_functions 1\n"
  576|  3.81k|            "#define GL_EXT_scalar_block_layout 1\n"
  577|  3.81k|            "#define GL_EXT_fragment_invocation_density 1\n"
  578|  3.81k|            "#define GL_EXT_buffer_reference 1\n"
  579|  3.81k|            "#define GL_EXT_buffer_reference2 1\n"
  580|  3.81k|            "#define GL_EXT_buffer_reference_uvec2 1\n"
  581|  3.81k|            "#define GL_EXT_demote_to_helper_invocation 1\n"
  582|  3.81k|            "#define GL_EXT_debug_printf 1\n"
  583|  3.81k|            "#define GL_EXT_fragment_shading_rate 1\n"
  584|  3.81k|            "#define GL_EXT_shared_memory_block 1\n"
  585|  3.81k|            "#define GL_EXT_shader_integer_mix 1\n"
  586|  3.81k|            "#define GL_EXT_spec_constant_composites 1\n"
  587|  3.81k|            "#define GL_EXT_abort 1\n"
  588|  3.81k|            "#define GL_EXT_split_barrier 1\n"
  589|  3.81k|            "#define GL_EXT_cooperative_matrix_maintenance1 1\n"
  590|       |
  591|       |            // GL_KHR_shader_subgroup
  592|  3.81k|            "#define GL_KHR_shader_subgroup_basic 1\n"
  593|  3.81k|            "#define GL_KHR_shader_subgroup_vote 1\n"
  594|  3.81k|            "#define GL_KHR_shader_subgroup_arithmetic 1\n"
  595|  3.81k|            "#define GL_KHR_shader_subgroup_ballot 1\n"
  596|  3.81k|            "#define GL_KHR_shader_subgroup_shuffle 1\n"
  597|  3.81k|            "#define GL_KHR_shader_subgroup_shuffle_relative 1\n"
  598|  3.81k|            "#define GL_KHR_shader_subgroup_clustered 1\n"
  599|  3.81k|            "#define GL_KHR_shader_subgroup_quad 1\n"
  600|       |
  601|  3.81k|            "#define GL_KHR_cooperative_matrix 1\n"
  602|       |
  603|  3.81k|            "#define GL_EXT_shader_image_int64 1\n"
  604|  3.81k|            "#define GL_EXT_shader_atomic_int64 1\n"
  605|  3.81k|            "#define GL_EXT_shader_realtime_clock 1\n"
  606|  3.81k|            "#define GL_EXT_ray_tracing 1\n"
  607|  3.81k|            "#define GL_EXT_ray_query 1\n"
  608|  3.81k|            "#define GL_EXT_ray_flags_primitive_culling 1\n"
  609|  3.81k|            "#define GL_EXT_ray_cull_mask 1\n"
  610|  3.81k|            "#define GL_EXT_ray_tracing_position_fetch 1\n"
  611|  3.81k|            "#define GL_EXT_spirv_intrinsics 1\n"
  612|  3.81k|            "#define GL_EXT_mesh_shader 1\n"
  613|       |
  614|  3.81k|            "#define GL_AMD_shader_ballot 1\n"
  615|  3.81k|            "#define GL_AMD_shader_trinary_minmax 1\n"
  616|  3.81k|            "#define GL_AMD_shader_explicit_vertex_parameter 1\n"
  617|  3.81k|            "#define GL_AMD_gcn_shader 1\n"
  618|  3.81k|            "#define GL_AMD_gpu_shader_half_float 1\n"
  619|  3.81k|            "#define GL_AMD_texture_gather_bias_lod 1\n"
  620|  3.81k|            "#define GL_AMD_gpu_shader_int16 1\n"
  621|  3.81k|            "#define GL_AMD_shader_image_load_store_lod 1\n"
  622|  3.81k|            "#define GL_AMD_shader_fragment_mask 1\n"
  623|  3.81k|            "#define GL_AMD_gpu_shader_half_float_fetch 1\n"
  624|       |
  625|  3.81k|            "#define GL_INTEL_shader_integer_functions2 1\n"
  626|       |
  627|  3.81k|            "#define GL_NV_sample_mask_override_coverage 1\n"
  628|  3.81k|            "#define GL_NV_geometry_shader_passthrough 1\n"
  629|  3.81k|            "#define GL_NV_viewport_array2 1\n"
  630|  3.81k|            "#define GL_NV_shader_atomic_int64 1\n"
  631|  3.81k|            "#define GL_NV_conservative_raster_underestimation 1\n"
  632|  3.81k|            "#define GL_NV_shader_subgroup_partitioned 1\n"
  633|  3.81k|            "#define GL_NV_shading_rate_image 1\n"
  634|  3.81k|            "#define GL_NV_ray_tracing 1\n"
  635|  3.81k|            "#define GL_NV_ray_tracing_motion_blur 1\n"
  636|  3.81k|            "#define GL_NV_fragment_shader_barycentric 1\n"
  637|  3.81k|            "#define GL_KHR_compute_shader_derivatives 1\n"
  638|  3.81k|            "#define GL_NV_compute_shader_derivatives 1\n"
  639|  3.81k|            "#define GL_NV_shader_texture_footprint 1\n"
  640|  3.81k|            "#define GL_NV_mesh_shader 1\n"
  641|  3.81k|            "#define GL_NV_cooperative_matrix 1\n"
  642|  3.81k|            "#define GL_NV_integer_cooperative_matrix 1\n"
  643|  3.81k|            "#define GL_NV_shader_invocation_reorder 1\n"
  644|  3.81k|            "#define GL_NV_cooperative_matrix2 1\n"
  645|  3.81k|            "#define GL_NV_cooperative_matrix_decode_vector 1\n"
  646|  3.81k|            "#define GL_NV_desktop_lowp_mediump 1\n"
  647|  3.81k|            "#define GL_NV_explicit_typecast 1\n"
  648|       |
  649|  3.81k|            "#define GL_QCOM_image_processing 1\n"
  650|  3.81k|            "#define GL_QCOM_image_processing2 1\n"
  651|  3.81k|            "#define GL_QCOM_image_processing3 1\n"
  652|  3.81k|            "#define GL_QCOM_tile_shading 1\n"
  653|  3.81k|            "#define GL_QCOM_cooperative_matrix_conversion 1\n"
  654|  3.81k|            "#define GL_QCOM_multiple_wait_queues 1\n"
  655|       |
  656|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types 1\n"
  657|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types_int8 1\n"
  658|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types_int16 1\n"
  659|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types_int32 1\n"
  660|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types_int64 1\n"
  661|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types_float16 1\n"
  662|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types_float32 1\n"
  663|  3.81k|            "#define GL_EXT_shader_explicit_arithmetic_types_float64 1\n"
  664|       |
  665|  3.81k|            "#define GL_EXT_shader_subgroup_extended_types_int8 1\n"
  666|  3.81k|            "#define GL_EXT_shader_subgroup_extended_types_int16 1\n"
  667|  3.81k|            "#define GL_EXT_shader_subgroup_extended_types_int64 1\n"
  668|  3.81k|            "#define GL_EXT_shader_subgroup_extended_types_float16 1\n"
  669|       |
  670|  3.81k|            "#define GL_EXT_shader_atomic_float 1\n"
  671|  3.81k|            "#define GL_EXT_shader_atomic_float2 1\n"
  672|       |
  673|  3.81k|            "#define GL_EXT_fragment_shader_barycentric 1\n"
  674|  3.81k|            "#define GL_EXT_shader_quad_control 1\n"
  675|  3.81k|            "#define GL_EXT_texture_array 1\n"
  676|       |
  677|  3.81k|            "#define GL_EXT_control_flow_attributes2 1\n"
  678|  3.81k|            "#define GL_EXT_function_control_attributes 1\n"
  679|       |
  680|  3.81k|            "#define GL_EXT_integer_dot_product 1\n"
  681|  3.81k|            "#define GL_EXT_bfloat16 1\n"
  682|  3.81k|            "#define GL_EXT_float_e5m2 1\n"
  683|  3.81k|            "#define GL_EXT_float_e4m3 1\n"
  684|  3.81k|            "#define GL_EXT_uniform_buffer_unsized_array 1\n"
  685|  3.81k|            "#define GL_EXT_shader_64bit_indexing 1\n"
  686|  3.81k|            "#define GL_EXT_float_e2m1 1\n"
  687|  3.81k|            "#define GL_EXT_float_e3m2 1\n"
  688|  3.81k|            "#define GL_EXT_float_e2m3 1\n"
  689|  3.81k|            "#define GL_EXT_float_ue8m0 1\n"
  690|  3.81k|            "#define GL_EXT_float_mxint8 1\n"
  691|       |
  692|  3.81k|            "#define GL_EXT_shader_invocation_reorder 1\n"
  693|  3.81k|            "#define GL_EXT_descriptor_heap 1\n"
  694|  3.81k|            "#define GL_EXT_structured_descriptor_heap 1\n"
  695|  3.81k|            ;
  696|       |
  697|  3.81k|        if (spvVersion.spv == 0) {
  ------------------
  |  Branch (697:13): [True: 0, False: 3.81k]
  ------------------
  698|      0|            preamble += "#define GL_ARB_bindless_texture 1\n";
  699|      0|        }
  700|       |
  701|  3.81k|        if (version >= 150) {
  ------------------
  |  Branch (701:13): [True: 2.26k, False: 1.54k]
  ------------------
  702|       |            // define GL_core_profile and GL_compatibility_profile
  703|  2.26k|            preamble += "#define GL_core_profile 1\n";
  704|       |
  705|  2.26k|            if (profile == ECompatibilityProfile)
  ------------------
  |  Branch (705:17): [True: 165, False: 2.10k]
  ------------------
  706|    165|                preamble += "#define GL_compatibility_profile 1\n";
  707|  2.26k|        }
  708|  3.81k|        if (version >= 140) {
  ------------------
  |  Branch (708:13): [True: 3.81k, False: 0]
  ------------------
  709|  3.81k|            preamble += "#define GL_EXT_null_initializer 1\n";
  710|  3.81k|            preamble += "#define GL_EXT_subgroup_uniform_control_flow 1\n";
  711|  3.81k|            preamble += "#define GL_EXT_maximal_reconvergence 1\n";
  712|  3.81k|        }
  713|  3.81k|        if (version >= 130) {
  ------------------
  |  Branch (713:13): [True: 3.81k, False: 0]
  ------------------
  714|  3.81k|            preamble +="#define GL_FRAGMENT_PRECISION_HIGH 1\n";
  715|  3.81k|        }
  716|       |
  717|  3.81k|        if (version >= 460) {
  ------------------
  |  Branch (717:13): [True: 135, False: 3.68k]
  ------------------
  718|    135|            preamble +=
  719|    135|                "#define GL_ARM_tensors 1\n"
  720|    135|                "#define GL_ARM_tensors_bfloat16 1\n"
  721|    135|                "#define GL_ARM_tensors_float_e5m2 1\n"
  722|    135|                "#define GL_ARM_tensors_float_e4m3 1\n"
  723|    135|                ;
  724|    135|        }
  725|  3.81k|    }
  726|       |
  727|  4.26k|    if ((!isEsProfile() && version >= 460) ||
  ------------------
  |  Branch (727:10): [True: 3.81k, False: 444]
  |  Branch (727:28): [True: 135, False: 3.68k]
  ------------------
  728|  4.12k|        (isEsProfile() && version >= 320)) {
  ------------------
  |  Branch (728:10): [True: 444, False: 3.68k]
  |  Branch (728:27): [True: 21, False: 423]
  ------------------
  729|    156|        preamble += "#define GL_EXT_nontemporal_keyword 1\n";
  730|    156|    }
  731|       |
  732|  4.26k|    if ((!isEsProfile() && version >= 140) ||
  ------------------
  |  Branch (732:10): [True: 3.81k, False: 444]
  |  Branch (732:28): [True: 3.81k, False: 0]
  ------------------
  733|  4.26k|        (isEsProfile() && version >= 310)) {
  ------------------
  |  Branch (733:10): [True: 444, False: 0]
  |  Branch (733:27): [True: 444, False: 0]
  ------------------
  734|  4.26k|        preamble +=
  735|  4.26k|            "#define GL_EXT_device_group 1\n"
  736|  4.26k|            "#define GL_EXT_multiview 1\n"
  737|  4.26k|            "#define GL_NV_shader_sm_builtins 1\n"
  738|  4.26k|            ;
  739|  4.26k|    }
  740|       |
  741|  4.26k|    if ((!isEsProfile() && version >= 130) ||
  ------------------
  |  Branch (741:10): [True: 3.81k, False: 444]
  |  Branch (741:28): [True: 3.81k, False: 0]
  ------------------
  742|  4.26k|        (isEsProfile() && version >= 300)) {
  ------------------
  |  Branch (742:10): [True: 444, False: 0]
  |  Branch (742:27): [True: 444, False: 0]
  ------------------
  743|  4.26k|        preamble += "#define GL_EXT_texture_offset_non_const 1\n";
  744|  4.26k|    }
  745|       |
  746|  4.26k|    if (version >= 300 /* both ES and non-ES */) {
  ------------------
  |  Branch (746:9): [True: 2.24k, False: 2.01k]
  ------------------
  747|  2.24k|        preamble +=
  748|  2.24k|            "#define GL_OVR_multiview 1\n"
  749|  2.24k|            "#define GL_OVR_multiview2 1\n"
  750|  2.24k|            ;
  751|  2.24k|    }
  752|       |
  753|  4.26k|    if ((!isEsProfile() && version >= 140) ||
  ------------------
  |  Branch (753:10): [True: 3.81k, False: 444]
  |  Branch (753:28): [True: 3.81k, False: 0]
  ------------------
  754|  4.26k|        (isEsProfile() && version >= 300)) {
  ------------------
  |  Branch (754:10): [True: 444, False: 0]
  |  Branch (754:27): [True: 444, False: 0]
  ------------------
  755|  4.26k|        preamble += "#define GL_EXT_optional_input_attachment_index 1\n";
  756|  4.26k|    }
  757|       |
  758|       |    // #line and #include
  759|  4.26k|    preamble +=
  760|  4.26k|            "#define GL_GOOGLE_cpp_style_line_directive 1\n"
  761|  4.26k|            "#define GL_GOOGLE_include_directive 1\n"
  762|  4.26k|            "#define GL_KHR_blend_equation_advanced 1\n"
  763|  4.26k|            ;
  764|       |
  765|       |    // other general extensions
  766|  4.26k|    preamble +=
  767|  4.26k|            "#define GL_EXT_terminate_invocation 1\n"
  768|  4.26k|            ;
  769|       |
  770|       |    // #define VULKAN XXXX
  771|  4.26k|    const int numberBufSize = 12;
  772|  4.26k|    char numberBuf[numberBufSize];
  773|  4.26k|    if (spvVersion.vulkanGlsl > 0) {
  ------------------
  |  Branch (773:9): [True: 4.26k, False: 0]
  ------------------
  774|  4.26k|        preamble += "#define VULKAN ";
  775|  4.26k|        snprintf(numberBuf, numberBufSize, "%d", spvVersion.vulkanGlsl);
  776|  4.26k|        preamble += numberBuf;
  777|  4.26k|        preamble += "\n";
  778|  4.26k|    }
  779|       |
  780|       |    // #define GL_SPIRV XXXX
  781|  4.26k|    if (spvVersion.openGl > 0) {
  ------------------
  |  Branch (781:9): [True: 0, False: 4.26k]
  ------------------
  782|      0|        preamble += "#define GL_SPIRV ";
  783|      0|        snprintf(numberBuf, numberBufSize, "%d", spvVersion.openGl);
  784|      0|        preamble += numberBuf;
  785|      0|        preamble += "\n";
  786|      0|    }
  787|       |
  788|       |    // GL_EXT_spirv_intrinsics
  789|  4.26k|    if (!isEsProfile()) {
  ------------------
  |  Branch (789:9): [True: 3.81k, False: 444]
  ------------------
  790|  3.81k|        switch (language) {
  791|  2.54k|        case EShLangVertex:         preamble += "#define GL_VERTEX_SHADER 1 \n";                    break;
  ------------------
  |  Branch (791:9): [True: 2.54k, False: 1.27k]
  ------------------
  792|      0|        case EShLangTessControl:    preamble += "#define GL_TESSELLATION_CONTROL_SHADER 1 \n";      break;
  ------------------
  |  Branch (792:9): [True: 0, False: 3.81k]
  ------------------
  793|      0|        case EShLangTessEvaluation: preamble += "#define GL_TESSELLATION_EVALUATION_SHADER 1 \n";   break;
  ------------------
  |  Branch (793:9): [True: 0, False: 3.81k]
  ------------------
  794|      0|        case EShLangGeometry:       preamble += "#define GL_GEOMETRY_SHADER 1 \n";                  break;
  ------------------
  |  Branch (794:9): [True: 0, False: 3.81k]
  ------------------
  795|  1.27k|        case EShLangFragment:       preamble += "#define GL_FRAGMENT_SHADER 1 \n";                  break;
  ------------------
  |  Branch (795:9): [True: 1.27k, False: 2.54k]
  ------------------
  796|      0|        case EShLangCompute:        preamble += "#define GL_COMPUTE_SHADER 1 \n";                   break;
  ------------------
  |  Branch (796:9): [True: 0, False: 3.81k]
  ------------------
  797|      0|        case EShLangRayGen:         preamble += "#define GL_RAY_GENERATION_SHADER_EXT 1 \n";        break;
  ------------------
  |  Branch (797:9): [True: 0, False: 3.81k]
  ------------------
  798|      0|        case EShLangIntersect:      preamble += "#define GL_INTERSECTION_SHADER_EXT 1 \n";          break;
  ------------------
  |  Branch (798:9): [True: 0, False: 3.81k]
  ------------------
  799|      0|        case EShLangAnyHit:         preamble += "#define GL_ANY_HIT_SHADER_EXT 1 \n";               break;
  ------------------
  |  Branch (799:9): [True: 0, False: 3.81k]
  ------------------
  800|      0|        case EShLangClosestHit:     preamble += "#define GL_CLOSEST_HIT_SHADER_EXT 1 \n";           break;
  ------------------
  |  Branch (800:9): [True: 0, False: 3.81k]
  ------------------
  801|      0|        case EShLangMiss:           preamble += "#define GL_MISS_SHADER_EXT 1 \n";                  break;
  ------------------
  |  Branch (801:9): [True: 0, False: 3.81k]
  ------------------
  802|      0|        case EShLangCallable:       preamble += "#define GL_CALLABLE_SHADER_EXT 1 \n";              break;
  ------------------
  |  Branch (802:9): [True: 0, False: 3.81k]
  ------------------
  803|      0|        case EShLangTask:           preamble += "#define GL_TASK_SHADER_EXT 1 \n";                  break;
  ------------------
  |  Branch (803:9): [True: 0, False: 3.81k]
  ------------------
  804|      0|        case EShLangMesh:           preamble += "#define GL_MESH_SHADER_EXT 1 \n";                  break;
  ------------------
  |  Branch (804:9): [True: 0, False: 3.81k]
  ------------------
  805|      0|        default:                                                                                    break;
  ------------------
  |  Branch (805:9): [True: 0, False: 3.81k]
  ------------------
  806|  3.81k|        }
  807|  3.81k|    }
  808|  4.26k|}
StageName:
  814|    136|{
  815|    136|    switch(stage) {
  816|      0|    case EShLangVertex:         return "vertex";
  ------------------
  |  Branch (816:5): [True: 0, False: 136]
  ------------------
  817|    136|    case EShLangFragment:       return "fragment";
  ------------------
  |  Branch (817:5): [True: 136, False: 0]
  ------------------
  818|      0|    case EShLangCompute:        return "compute";
  ------------------
  |  Branch (818:5): [True: 0, False: 136]
  ------------------
  819|      0|    case EShLangTessControl:    return "tessellation control";
  ------------------
  |  Branch (819:5): [True: 0, False: 136]
  ------------------
  820|      0|    case EShLangTessEvaluation: return "tessellation evaluation";
  ------------------
  |  Branch (820:5): [True: 0, False: 136]
  ------------------
  821|      0|    case EShLangGeometry:       return "geometry";
  ------------------
  |  Branch (821:5): [True: 0, False: 136]
  ------------------
  822|      0|    case EShLangRayGen:         return "ray-generation";
  ------------------
  |  Branch (822:5): [True: 0, False: 136]
  ------------------
  823|      0|    case EShLangIntersect:      return "intersection";
  ------------------
  |  Branch (823:5): [True: 0, False: 136]
  ------------------
  824|      0|    case EShLangAnyHit:         return "any-hit";
  ------------------
  |  Branch (824:5): [True: 0, False: 136]
  ------------------
  825|      0|    case EShLangClosestHit:     return "closest-hit";
  ------------------
  |  Branch (825:5): [True: 0, False: 136]
  ------------------
  826|      0|    case EShLangMiss:           return "miss";
  ------------------
  |  Branch (826:5): [True: 0, False: 136]
  ------------------
  827|      0|    case EShLangCallable:       return "callable";
  ------------------
  |  Branch (827:5): [True: 0, False: 136]
  ------------------
  828|      0|    case EShLangMesh:           return "mesh";
  ------------------
  |  Branch (828:5): [True: 0, False: 136]
  ------------------
  829|      0|    case EShLangTask:           return "task";
  ------------------
  |  Branch (829:5): [True: 0, False: 136]
  ------------------
  830|      0|    default:                    return "unknown stage";
  ------------------
  |  Branch (830:5): [True: 0, False: 136]
  ------------------
  831|    136|    }
  832|    136|}
_ZN7glslang14TParseVersions12requireStageERKNS_10TSourceLocE15EShLanguageMaskPKc:
  842|  34.1k|{
  843|  34.1k|    if (((1 << language) & languageMask) == 0)
  ------------------
  |  Branch (843:9): [True: 135, False: 34.0k]
  ------------------
  844|    135|        error(loc, "not supported in this stage:", featureDesc, "%s", StageName(language));
  845|  34.1k|}
_ZN7glslang14TParseVersions12requireStageERKNS_10TSourceLocE11EShLanguagePKc:
  850|  21.0k|{
  851|  21.0k|    requireStage(loc, static_cast<EShLanguageMask>(1 << stage), featureDesc);
  852|  21.0k|}
_ZN7glslang14TParseVersions14requireProfileERKNS_10TSourceLocEiPKc:
  864|   828k|{
  865|   828k|    if (! (profile & profileMask))
  ------------------
  |  Branch (865:9): [True: 21.4k, False: 806k]
  ------------------
  866|  21.4k|        error(loc, "not supported with this profile:", featureDesc, "%s", ProfileName(profile));
  867|   828k|}
_ZN7glslang14TParseVersions15profileRequiresERKNS_10TSourceLocEiimPKPKcS5_:
  888|  15.2M|{
  889|  15.2M|    if (profile & profileMask) {
  ------------------
  |  Branch (889:9): [True: 3.18M, False: 12.0M]
  ------------------
  890|  3.18M|        bool okay = minVersion > 0 && version >= minVersion;
  ------------------
  |  Branch (890:21): [True: 3.17M, False: 12.8k]
  |  Branch (890:39): [True: 3.14M, False: 31.7k]
  ------------------
  891|  3.27M|        for (size_t i = 0; i < numExtensions; ++i) {
  ------------------
  |  Branch (891:28): [True: 89.3k, False: 3.18M]
  ------------------
  892|  89.3k|            switch (getExtensionBehavior(extensions[i])) {
  893|     45|            case EBhWarn:
  ------------------
  |  Branch (893:13): [True: 45, False: 89.2k]
  ------------------
  894|     45|                infoSink.info.message(EPrefixWarning, ("extension " + TString(extensions[i]) + " is being used for " + featureDesc).c_str(), loc, messages & EShMsgAbsolutePath, messages & EShMsgDisplayErrorColumn);
  895|     45|                [[fallthrough]];
  896|    405|            case EBhRequire:
  ------------------
  |  Branch (896:13): [True: 360, False: 88.9k]
  ------------------
  897|  28.2k|            case EBhEnable:
  ------------------
  |  Branch (897:13): [True: 27.8k, False: 61.4k]
  ------------------
  898|  28.2k|                okay = true;
  899|  28.2k|                break;
  900|  61.0k|            default: break; // some compilers want this
  ------------------
  |  Branch (900:13): [True: 61.0k, False: 28.2k]
  ------------------
  901|  89.3k|            }
  902|  89.3k|        }
  903|  3.18M|        if (! okay)
  ------------------
  |  Branch (903:13): [True: 18.9k, False: 3.16M]
  ------------------
  904|  18.9k|            error(loc, "not supported for this version or the enabled extensions", featureDesc, "");
  905|  3.18M|    }
  906|  15.2M|}
_ZN7glslang14TParseVersions15profileRequiresERKNS_10TSourceLocEiiPKcS5_:
  911|  15.2M|{
  912|  15.2M|    profileRequires(loc, profileMask, minVersion, extension ? 1 : 0, &extension, featureDesc);
  ------------------
  |  Branch (912:51): [True: 356k, False: 14.9M]
  ------------------
  913|  15.2M|}
_ZN7glslang14TParseVersions13unimplementedERKNS_10TSourceLocEPKc:
  916|     15|{
  917|     15|    error(loc, "feature not yet implemented", featureDesc, "");
  918|     15|}
_ZN7glslang14TParseVersions15checkDeprecatedERKNS_10TSourceLocEiiPKc:
  925|    114|{
  926|    114|    if (profile & profileMask) {
  ------------------
  |  Branch (926:9): [True: 21, False: 93]
  ------------------
  927|     21|        if (version >= depVersion) {
  ------------------
  |  Branch (927:13): [True: 21, False: 0]
  ------------------
  928|     21|            if (forwardCompatible)
  ------------------
  |  Branch (928:17): [True: 0, False: 21]
  ------------------
  929|      0|                error(loc, "deprecated, may be removed in future release", featureDesc, "");
  930|     21|            else if (! suppressWarnings())
  ------------------
  |  Branch (930:22): [True: 21, False: 0]
  ------------------
  931|     21|                infoSink.info.message(EPrefixWarning, (TString(featureDesc) + " deprecated in version " +
  932|     21|                                                       String(depVersion) + "; may be removed in future release").c_str(),
  933|     21|                                                       loc, messages & EShMsgAbsolutePath, messages & EShMsgDisplayErrorColumn);
  934|     21|        }
  935|     21|    }
  936|    114|}
_ZN7glslang14TParseVersions17requireNotRemovedERKNS_10TSourceLocEiiPKc:
  943|    114|{
  944|    114|    if (profile & profileMask) {
  ------------------
  |  Branch (944:9): [True: 18, False: 96]
  ------------------
  945|     18|        if (version >= removedVersion)
  ------------------
  |  Branch (945:13): [True: 18, False: 0]
  ------------------
  946|     18|            error(loc, "no longer supported in", featureDesc, "%s profile; removed in version %d",
  947|     18|                  ProfileName(profile), removedVersion);
  948|     18|    }
  949|    114|}
_ZN7glslang14TParseVersions24checkExtensionsRequestedERKNS_10TSourceLocEmPKPKcS5_:
  954|   350k|{
  955|       |    // First, see if any of the extensions are enabled
  956|  1.20M|    for (size_t i = 0; i < numExtensions; ++i) {
  ------------------
  |  Branch (956:24): [True: 962k, False: 238k]
  ------------------
  957|   962k|        TExtensionBehavior behavior = getExtensionBehavior(extensions[i]);
  958|   962k|        if (behavior == EBhEnable || behavior == EBhRequire)
  ------------------
  |  Branch (958:13): [True: 110k, False: 852k]
  |  Branch (958:38): [True: 1.48k, False: 850k]
  ------------------
  959|   111k|            return true;
  960|   962k|    }
  961|       |
  962|       |    // See if any extensions want to give a warning on use; give warnings for all such extensions
  963|   238k|    bool warned = false;
  964|   919k|    for (size_t i = 0; i < numExtensions; ++i) {
  ------------------
  |  Branch (964:24): [True: 680k, False: 238k]
  ------------------
  965|   680k|        TExtensionBehavior behavior = getExtensionBehavior(extensions[i]);
  966|   680k|        if (behavior == EBhDisable && relaxedErrors()) {
  ------------------
  |  Branch (966:13): [True: 673k, False: 7.25k]
  |  Branch (966:39): [True: 0, False: 673k]
  ------------------
  967|      0|            infoSink.info.message(EPrefixWarning, "The following extension must be enabled to use this feature:", loc,
  968|      0|                                  messages & EShMsgAbsolutePath, messages & EShMsgDisplayErrorColumn);
  969|      0|            behavior = EBhWarn;
  970|      0|        }
  971|   680k|        if (behavior == EBhWarn) {
  ------------------
  |  Branch (971:13): [True: 0, False: 680k]
  ------------------
  972|      0|            infoSink.info.message(EPrefixWarning,
  973|      0|                                  ("extension " + TString(extensions[i]) + " is being used for " + featureDesc).c_str(),
  974|      0|                                  loc, messages & EShMsgAbsolutePath, messages & EShMsgDisplayErrorColumn);
  975|       |            // "#extension all : warn" sets the behavior without naming the extension, so the
  976|       |            // back end only learns the feature is in use here.
  977|      0|            intermediate.addRequestedExtension(extensions[i]);
  978|      0|            warned = true;
  979|      0|        }
  980|   680k|    }
  981|   238k|    if (warned)
  ------------------
  |  Branch (981:9): [True: 0, False: 238k]
  ------------------
  982|      0|        return true;
  983|   238k|    return false;
  984|   238k|}
_ZN7glslang14TParseVersions17requireExtensionsERKNS_10TSourceLocEmPKPKcS5_:
  992|   336k|{
  993|   336k|    if (checkExtensionsRequested(loc, numExtensions, extensions, featureDesc))
  ------------------
  |  Branch (993:9): [True: 111k, False: 225k]
  ------------------
  994|   111k|        return;
  995|       |
  996|       |    // If we get this far, give errors explaining what extensions are needed
  997|   225k|    if (numExtensions == 1)
  ------------------
  |  Branch (997:9): [True: 4.16k, False: 221k]
  ------------------
  998|  4.16k|        error(loc, "required extension not requested:", featureDesc, "%s", extensions[0]);
  999|   221k|    else {
 1000|   221k|        error(loc, "required extension not requested:", featureDesc, "Possible extensions include:");
 1001|   884k|        for (size_t i = 0; i < numExtensions; ++i)
  ------------------
  |  Branch (1001:28): [True: 663k, False: 221k]
  ------------------
 1002|   663k|            infoSink.info.message(EPrefixNone, extensions[i]);
 1003|   221k|    }
 1004|   225k|}
_ZN7glslang14TParseVersions19ppRequireExtensionsERKNS_10TSourceLocEmPKPKcS5_:
 1012|    260|{
 1013|    260|    if (checkExtensionsRequested(loc, numExtensions, extensions, featureDesc))
  ------------------
  |  Branch (1013:9): [True: 260, False: 0]
  ------------------
 1014|    260|        return;
 1015|       |
 1016|       |    // If we get this far, give errors explaining what extensions are needed
 1017|      0|    if (numExtensions == 1)
  ------------------
  |  Branch (1017:9): [True: 0, False: 0]
  ------------------
 1018|      0|        ppError(loc, "required extension not requested:", featureDesc, "%s", extensions[0]);
 1019|      0|    else {
 1020|      0|        ppError(loc, "required extension not requested:", featureDesc, "Possible extensions include:");
 1021|      0|        for (size_t i = 0; i < numExtensions; ++i)
  ------------------
  |  Branch (1021:28): [True: 0, False: 0]
  ------------------
 1022|      0|            infoSink.info.message(EPrefixNone, extensions[i]);
 1023|      0|    }
 1024|      0|}
_ZN7glslang14TParseVersions20getExtensionBehaviorEPKc:
 1027|  6.48M|{
 1028|  6.48M|    auto iter = extensionBehavior.find(TString(extension));
 1029|  6.48M|    if (iter == extensionBehavior.end())
  ------------------
  |  Branch (1029:9): [True: 3.35M, False: 3.12M]
  ------------------
 1030|  3.35M|        return EBhMissing;
 1031|  3.12M|    else
 1032|  3.12M|        return iter->second;
 1033|  6.48M|}
_ZN7glslang14TParseVersions17extensionTurnedOnEPKc:
 1037|  4.75M|{
 1038|  4.75M|      switch (getExtensionBehavior(extension)) {
 1039|   179k|      case EBhEnable:
  ------------------
  |  Branch (1039:7): [True: 179k, False: 4.57M]
  ------------------
 1040|   181k|      case EBhRequire:
  ------------------
  |  Branch (1040:7): [True: 1.67k, False: 4.74M]
  ------------------
 1041|   181k|      case EBhWarn:
  ------------------
  |  Branch (1041:7): [True: 0, False: 4.75M]
  ------------------
 1042|   181k|          return true;
 1043|  4.57M|      default:
  ------------------
  |  Branch (1043:7): [True: 4.57M, False: 181k]
  ------------------
 1044|  4.57M|          break;
 1045|  4.75M|      }
 1046|  4.57M|      return false;
 1047|  4.75M|}
_ZN7glslang14TParseVersions18extensionsTurnedOnEmPKPKc:
 1050|   373k|{
 1051|  1.09M|    for (size_t i = 0; i < numExtensions; ++i) {
  ------------------
  |  Branch (1051:24): [True: 725k, False: 365k]
  ------------------
 1052|   725k|        if (extensionTurnedOn(extensions[i]))
  ------------------
  |  Branch (1052:13): [True: 7.77k, False: 717k]
  ------------------
 1053|  7.77k|            return true;
 1054|   725k|    }
 1055|   365k|    return false;
 1056|   373k|}
_ZN7glslang14TParseVersions23updateExtensionBehaviorEiPKcS2_:
 1062|  21.2k|{
 1063|       |    // Translate from text string of extension's behavior to an enum.
 1064|  21.2k|    TExtensionBehavior behavior = EBhDisable;
 1065|  21.2k|    if (! strcmp("require", behaviorString))
  ------------------
  |  Branch (1065:9): [True: 1.50k, False: 19.7k]
  ------------------
 1066|  1.50k|        behavior = EBhRequire;
 1067|  19.7k|    else if (! strcmp("enable", behaviorString))
  ------------------
  |  Branch (1067:14): [True: 19.2k, False: 464]
  ------------------
 1068|  19.2k|        behavior = EBhEnable;
 1069|    464|    else if (! strcmp("disable", behaviorString))
  ------------------
  |  Branch (1069:14): [True: 255, False: 209]
  ------------------
 1070|    255|        behavior = EBhDisable;
 1071|    209|    else if (! strcmp("warn", behaviorString))
  ------------------
  |  Branch (1071:14): [True: 125, False: 84]
  ------------------
 1072|    125|        behavior = EBhWarn;
 1073|     84|    else {
 1074|     84|        error(getCurrentLoc(), "behavior not supported:", "#extension", "%s", behaviorString);
 1075|     84|        return;
 1076|     84|    }
 1077|  21.1k|    bool on = behavior != EBhDisable;
 1078|       |
 1079|       |    // check if extension is used with correct shader stage
 1080|  21.1k|    checkExtensionStage(getCurrentLoc(), extension);
 1081|       |
 1082|       |    // check if extension has additional requirements
 1083|  21.1k|    extensionRequires(getCurrentLoc(), extension, behaviorString);
 1084|       |
 1085|       |    // update the requested extension
 1086|  21.1k|    updateExtensionBehavior(extension, behavior);
 1087|       |
 1088|       |    // see if need to propagate to implicitly modified things
 1089|  21.1k|    if (strcmp(extension, "GL_ANDROID_extension_pack_es31a") == 0) {
  ------------------
  |  Branch (1089:9): [True: 0, False: 21.1k]
  ------------------
 1090|       |        // to everything in AEP
 1091|      0|        updateExtensionBehavior(line, "GL_KHR_blend_equation_advanced", behaviorString);
 1092|      0|        updateExtensionBehavior(line, "GL_OES_sample_variables", behaviorString);
 1093|      0|        updateExtensionBehavior(line, "GL_OES_shader_image_atomic", behaviorString);
 1094|      0|        updateExtensionBehavior(line, "GL_OES_shader_multisample_interpolation", behaviorString);
 1095|      0|        updateExtensionBehavior(line, "GL_OES_texture_storage_multisample_2d_array", behaviorString);
 1096|      0|        updateExtensionBehavior(line, "GL_EXT_geometry_shader", behaviorString);
 1097|      0|        updateExtensionBehavior(line, "GL_EXT_gpu_shader5", behaviorString);
 1098|      0|        updateExtensionBehavior(line, "GL_EXT_primitive_bounding_box", behaviorString);
 1099|      0|        updateExtensionBehavior(line, "GL_EXT_shader_io_blocks", behaviorString);
 1100|      0|        updateExtensionBehavior(line, "GL_EXT_tessellation_shader", behaviorString);
 1101|      0|        updateExtensionBehavior(line, "GL_EXT_texture_buffer", behaviorString);
 1102|      0|        updateExtensionBehavior(line, "GL_EXT_texture_cube_map_array", behaviorString);
 1103|      0|    }
 1104|       |    // geometry to io_blocks
 1105|  21.1k|    else if (strcmp(extension, "GL_EXT_geometry_shader") == 0)
  ------------------
  |  Branch (1105:14): [True: 0, False: 21.1k]
  ------------------
 1106|      0|        updateExtensionBehavior(line, "GL_EXT_shader_io_blocks", behaviorString);
 1107|  21.1k|    else if (strcmp(extension, "GL_OES_geometry_shader") == 0)
  ------------------
  |  Branch (1107:14): [True: 267, False: 20.8k]
  ------------------
 1108|    267|        updateExtensionBehavior(line, "GL_OES_shader_io_blocks", behaviorString);
 1109|       |    // tessellation to io_blocks
 1110|  20.8k|    else if (strcmp(extension, "GL_EXT_tessellation_shader") == 0)
  ------------------
  |  Branch (1110:14): [True: 0, False: 20.8k]
  ------------------
 1111|      0|        updateExtensionBehavior(line, "GL_EXT_shader_io_blocks", behaviorString);
 1112|  20.8k|    else if (strcmp(extension, "GL_OES_tessellation_shader") == 0)
  ------------------
  |  Branch (1112:14): [True: 0, False: 20.8k]
  ------------------
 1113|      0|        updateExtensionBehavior(line, "GL_OES_shader_io_blocks", behaviorString);
 1114|  20.8k|    else if (strcmp(extension, "GL_GOOGLE_include_directive") == 0)
  ------------------
  |  Branch (1114:14): [True: 4.26k, False: 16.5k]
  ------------------
 1115|  4.26k|        updateExtensionBehavior(line, "GL_GOOGLE_cpp_style_line_directive", behaviorString);
 1116|  16.5k|    else if (strcmp(extension, "GL_ARB_shading_language_include") == 0)
  ------------------
  |  Branch (1116:14): [True: 0, False: 16.5k]
  ------------------
 1117|      0|        updateExtensionBehavior(line, "GL_GOOGLE_cpp_style_line_directive", behaviorString);
 1118|       |    // subgroup_* to subgroup_basic
 1119|  16.5k|    else if (strcmp(extension, "GL_KHR_shader_subgroup_vote") == 0)
  ------------------
  |  Branch (1119:14): [True: 154, False: 16.4k]
  ------------------
 1120|    154|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1121|  16.4k|    else if (strcmp(extension, "GL_KHR_shader_subgroup_arithmetic") == 0)
  ------------------
  |  Branch (1121:14): [True: 150, False: 16.2k]
  ------------------
 1122|    150|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1123|  16.2k|    else if (strcmp(extension, "GL_KHR_shader_subgroup_ballot") == 0)
  ------------------
  |  Branch (1123:14): [True: 148, False: 16.1k]
  ------------------
 1124|    148|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1125|  16.1k|    else if (strcmp(extension, "GL_KHR_shader_subgroup_shuffle") == 0)
  ------------------
  |  Branch (1125:14): [True: 146, False: 15.9k]
  ------------------
 1126|    146|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1127|  15.9k|    else if (strcmp(extension, "GL_KHR_shader_subgroup_shuffle_relative") == 0)
  ------------------
  |  Branch (1127:14): [True: 152, False: 15.8k]
  ------------------
 1128|    152|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1129|  15.8k|    else if (strcmp(extension, "GL_KHR_shader_subgroup_clustered") == 0)
  ------------------
  |  Branch (1129:14): [True: 133, False: 15.7k]
  ------------------
 1130|    133|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1131|  15.7k|    else if (strcmp(extension, "GL_KHR_shader_subgroup_quad") == 0)
  ------------------
  |  Branch (1131:14): [True: 123, False: 15.5k]
  ------------------
 1132|    123|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1133|  15.5k|    else if (strcmp(extension, "GL_NV_shader_subgroup_partitioned") == 0)
  ------------------
  |  Branch (1133:14): [True: 100, False: 15.4k]
  ------------------
 1134|    100|        updateExtensionBehavior(line, "GL_KHR_shader_subgroup_basic", behaviorString);
 1135|  15.4k|    else if (strcmp(extension, "GL_EXT_buffer_reference2") == 0 ||
  ------------------
  |  Branch (1135:14): [True: 21, False: 15.4k]
  ------------------
 1136|  15.4k|             strcmp(extension, "GL_EXT_buffer_reference_uvec2") == 0)
  ------------------
  |  Branch (1136:14): [True: 0, False: 15.4k]
  ------------------
 1137|     21|        updateExtensionBehavior(line, "GL_EXT_buffer_reference", behaviorString);
 1138|  15.4k|    else if (strcmp(extension, "GL_NV_integer_cooperative_matrix") == 0)
  ------------------
  |  Branch (1138:14): [True: 0, False: 15.4k]
  ------------------
 1139|      0|        updateExtensionBehavior(line, "GL_NV_cooperative_matrix", behaviorString);
 1140|  15.4k|    else if (strcmp(extension, "GL_NV_cooperative_matrix2") == 0)
  ------------------
  |  Branch (1140:14): [True: 0, False: 15.4k]
  ------------------
 1141|      0|        updateExtensionBehavior(line, "GL_KHR_cooperative_matrix", behaviorString);
 1142|       |    // subgroup extended types to explicit types
 1143|  15.4k|    else if (strcmp(extension, "GL_EXT_shader_subgroup_extended_types_int8") == 0)
  ------------------
  |  Branch (1143:14): [True: 0, False: 15.4k]
  ------------------
 1144|      0|        updateExtensionBehavior(line, "GL_EXT_shader_explicit_arithmetic_types_int8", behaviorString);
 1145|  15.4k|    else if (strcmp(extension, "GL_EXT_shader_subgroup_extended_types_int16") == 0)
  ------------------
  |  Branch (1145:14): [True: 0, False: 15.4k]
  ------------------
 1146|      0|        updateExtensionBehavior(line, "GL_EXT_shader_explicit_arithmetic_types_int16", behaviorString);
 1147|  15.4k|    else if (strcmp(extension, "GL_EXT_shader_subgroup_extended_types_int64") == 0)
  ------------------
  |  Branch (1147:14): [True: 0, False: 15.4k]
  ------------------
 1148|      0|        updateExtensionBehavior(line, "GL_EXT_shader_explicit_arithmetic_types_int64", behaviorString);
 1149|  15.4k|    else if (strcmp(extension, "GL_EXT_shader_subgroup_extended_types_float16") == 0)
  ------------------
  |  Branch (1149:14): [True: 0, False: 15.4k]
  ------------------
 1150|      0|        updateExtensionBehavior(line, "GL_EXT_shader_explicit_arithmetic_types_float16", behaviorString);
 1151|       |
 1152|       |    // see if we need to update the numeric features
 1153|  15.4k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types") == 0)
  ------------------
  |  Branch (1153:14): [True: 251, False: 15.2k]
  ------------------
 1154|    251|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types, on);
 1155|  15.2k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types_int8") == 0)
  ------------------
  |  Branch (1155:14): [True: 191, False: 15.0k]
  ------------------
 1156|    191|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types_int8, on);
 1157|  15.0k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types_int16") == 0)
  ------------------
  |  Branch (1157:14): [True: 182, False: 14.8k]
  ------------------
 1158|    182|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types_int16, on);
 1159|  14.8k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types_int32") == 0)
  ------------------
  |  Branch (1159:14): [True: 194, False: 14.6k]
  ------------------
 1160|    194|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types_int32, on);
 1161|  14.6k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types_int64") == 0)
  ------------------
  |  Branch (1161:14): [True: 227, False: 14.4k]
  ------------------
 1162|    227|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types_int64, on);
 1163|  14.4k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types_float16") == 0)
  ------------------
  |  Branch (1163:14): [True: 359, False: 14.0k]
  ------------------
 1164|    359|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types_float16, on);
 1165|  14.0k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types_float32") == 0)
  ------------------
  |  Branch (1165:14): [True: 167, False: 13.8k]
  ------------------
 1166|    167|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types_float32, on);
 1167|  13.8k|    else if (strcmp(extension, "GL_EXT_shader_explicit_arithmetic_types_float64") == 0)
  ------------------
  |  Branch (1167:14): [True: 182, False: 13.7k]
  ------------------
 1168|    182|        intermediate.updateNumericFeature(TNumericFeatures::shader_explicit_arithmetic_types_float64, on);
 1169|  13.7k|    else if (strcmp(extension, "GL_EXT_shader_implicit_conversions") == 0)
  ------------------
  |  Branch (1169:14): [True: 182, False: 13.5k]
  ------------------
 1170|    182|        intermediate.updateNumericFeature(TNumericFeatures::shader_implicit_conversions, on);
 1171|  13.5k|    else if (strcmp(extension, "GL_ARB_gpu_shader_fp64") == 0)
  ------------------
  |  Branch (1171:14): [True: 790, False: 12.7k]
  ------------------
 1172|    790|        intermediate.updateNumericFeature(TNumericFeatures::gpu_shader_fp64, on);
 1173|  12.7k|    else if (strcmp(extension, "GL_AMD_gpu_shader_int16") == 0)
  ------------------
  |  Branch (1173:14): [True: 229, False: 12.5k]
  ------------------
 1174|    229|        intermediate.updateNumericFeature(TNumericFeatures::gpu_shader_int16, on);
 1175|  12.5k|    else if (strcmp(extension, "GL_AMD_gpu_shader_half_float") == 0)
  ------------------
  |  Branch (1175:14): [True: 277, False: 12.2k]
  ------------------
 1176|    277|        intermediate.updateNumericFeature(TNumericFeatures::gpu_shader_half_float, on);
 1177|  12.2k|    else if (strcmp(extension, "GL_NV_gpu_shader5") == 0) {
  ------------------
  |  Branch (1177:14): [True: 818, False: 11.4k]
  ------------------
 1178|    818|        intermediate.updateNumericFeature(TNumericFeatures::nv_gpu_shader5_types, on);
 1179|    818|    }
 1180|  21.1k|}
_ZN7glslang14TParseVersions23updateExtensionBehaviorEPKcNS_18TExtensionBehaviorE:
 1183|  21.1k|{
 1184|       |    // Update the current behavior
 1185|  21.1k|    if (strcmp(extension, "all") == 0) {
  ------------------
  |  Branch (1185:9): [True: 0, False: 21.1k]
  ------------------
 1186|       |        // special case for the 'all' extension; apply it to every extension present
 1187|      0|        if (behavior == EBhRequire || behavior == EBhEnable) {
  ------------------
  |  Branch (1187:13): [True: 0, False: 0]
  |  Branch (1187:39): [True: 0, False: 0]
  ------------------
 1188|      0|            error(getCurrentLoc(), "extension 'all' cannot have 'require' or 'enable' behavior", "#extension", "");
 1189|      0|            return;
 1190|      0|        } else {
 1191|      0|            for (auto iter = extensionBehavior.begin(); iter != extensionBehavior.end(); ++iter)
  ------------------
  |  Branch (1191:57): [True: 0, False: 0]
  ------------------
 1192|      0|                iter->second = behavior;
 1193|      0|        }
 1194|  21.1k|    } else {
 1195|       |        // Do the update for this single extension
 1196|  21.1k|        auto iter = extensionBehavior.find(TString(extension));
 1197|  21.1k|        if (iter == extensionBehavior.end()) {
  ------------------
  |  Branch (1197:13): [True: 278, False: 20.8k]
  ------------------
 1198|    278|            switch (behavior) {
 1199|     71|            case EBhRequire:
  ------------------
  |  Branch (1199:13): [True: 71, False: 207]
  ------------------
 1200|     71|                error(getCurrentLoc(), "extension not supported:", "#extension", "%s", extension);
 1201|     71|                break;
 1202|    189|            case EBhEnable:
  ------------------
  |  Branch (1202:13): [True: 189, False: 89]
  ------------------
 1203|    189|            case EBhWarn:
  ------------------
  |  Branch (1203:13): [True: 0, False: 278]
  ------------------
 1204|    207|            case EBhDisable:
  ------------------
  |  Branch (1204:13): [True: 18, False: 260]
  ------------------
 1205|    207|                warn(getCurrentLoc(), "extension not supported:", "#extension", "%s", extension);
 1206|    207|                break;
 1207|      0|            default:
  ------------------
  |  Branch (1207:13): [True: 0, False: 278]
  ------------------
 1208|      0|                assert(0 && "unexpected behavior");
 1209|    278|            }
 1210|       |
 1211|    278|            return;
 1212|  20.8k|        } else {
 1213|  20.8k|            if (iter->second == EBhDisablePartial)
  ------------------
  |  Branch (1213:17): [True: 0, False: 20.8k]
  ------------------
 1214|      0|                warn(getCurrentLoc(), "extension is only partially supported:", "#extension", "%s", extension);
 1215|  20.8k|            if (behavior != EBhDisable)
  ------------------
  |  Branch (1215:17): [True: 20.6k, False: 237]
  ------------------
 1216|  20.6k|                intermediate.addRequestedExtension(extension);
 1217|  20.8k|            iter->second = behavior;
 1218|  20.8k|        }
 1219|  21.1k|    }
 1220|  21.1k|}
_ZN7glslang14TParseVersions19checkExtensionStageERKNS_10TSourceLocEPKc:
 1224|  21.1k|{
 1225|       |    // GL_NV_mesh_shader extension is only allowed in task/mesh shaders
 1226|  21.1k|    if (strcmp(extension, "GL_NV_mesh_shader") == 0) {
  ------------------
  |  Branch (1226:9): [True: 0, False: 21.1k]
  ------------------
 1227|      0|        requireStage(loc, (EShLanguageMask)(EShLangTaskMask | EShLangMeshMask | EShLangFragmentMask),
 1228|      0|                     "#extension GL_NV_mesh_shader");
 1229|      0|        profileRequires(loc, ECoreProfile, 450, nullptr, "#extension GL_NV_mesh_shader");
 1230|      0|        profileRequires(loc, EEsProfile, 320, nullptr, "#extension GL_NV_mesh_shader");
 1231|      0|        if (extensionTurnedOn(E_GL_EXT_mesh_shader)) {
  ------------------
  |  Branch (1231:13): [True: 0, False: 0]
  ------------------
 1232|      0|            error(loc, "GL_EXT_mesh_shader is already turned on, and not allowed with", "#extension", "%s", extension);
 1233|      0|        }
 1234|      0|    }
 1235|  21.1k|    else if (strcmp(extension, "GL_EXT_mesh_shader") == 0) {
  ------------------
  |  Branch (1235:14): [True: 0, False: 21.1k]
  ------------------
 1236|      0|        requireStage(loc, (EShLanguageMask)(EShLangTaskMask | EShLangMeshMask | EShLangFragmentMask),
 1237|      0|                     "#extension GL_EXT_mesh_shader");
 1238|      0|        profileRequires(loc, ECoreProfile, 450, nullptr, "#extension GL_EXT_mesh_shader");
 1239|      0|        profileRequires(loc, EEsProfile, 320, nullptr, "#extension GL_EXT_mesh_shader");
 1240|      0|        if (extensionTurnedOn(E_GL_NV_mesh_shader)) {
  ------------------
  |  Branch (1240:13): [True: 0, False: 0]
  ------------------
 1241|      0|            error(loc, "GL_NV_mesh_shader is already turned on, and not allowed with", "#extension", "%s", extension);
 1242|      0|        }
 1243|      0|    }
 1244|  21.1k|}
_ZN7glslang14TParseVersions17extensionRequiresERKNS_10TSourceLocEPKcS5_:
 1248|  21.1k|{
 1249|  21.1k|    bool isEnabled = false;
 1250|  21.1k|    if (!strcmp("require", behaviorString))
  ------------------
  |  Branch (1250:9): [True: 1.50k, False: 19.6k]
  ------------------
 1251|  1.50k|        isEnabled = true;
 1252|  19.6k|    else if (!strcmp("enable", behaviorString))
  ------------------
  |  Branch (1252:14): [True: 19.2k, False: 380]
  ------------------
 1253|  19.2k|        isEnabled = true;
 1254|       |
 1255|  21.1k|    if (isEnabled) {
  ------------------
  |  Branch (1255:9): [True: 20.7k, False: 380]
  ------------------
 1256|  20.7k|        unsigned int minSpvVersion = 0;
 1257|  20.7k|        auto iter = extensionMinSpv.find(TString(extension));
 1258|  20.7k|        if (iter != extensionMinSpv.end())
  ------------------
  |  Branch (1258:13): [True: 0, False: 20.7k]
  ------------------
 1259|      0|            minSpvVersion = iter->second;
 1260|  20.7k|        requireSpv(loc, extension, minSpvVersion);
 1261|  20.7k|    }
 1262|       |
 1263|  21.1k|    if (spvVersion.spv != 0){
  ------------------
  |  Branch (1263:9): [True: 21.1k, False: 0]
  ------------------
 1264|  21.1k|        for (auto ext : spvUnsupportedExt){
  ------------------
  |  Branch (1264:23): [True: 21.1k, False: 21.1k]
  ------------------
 1265|  21.1k|            if (strcmp(extension, ext.c_str()) == 0)
  ------------------
  |  Branch (1265:17): [True: 84, False: 21.0k]
  ------------------
 1266|     84|                error(loc, "not allowed when using generating SPIR-V codes", extension, "");
 1267|  21.1k|        }
 1268|  21.1k|    }
 1269|  21.1k|}
_ZN7glslang14TParseVersions16fullIntegerCheckERKNS_10TSourceLocEPKc:
 1273|  5.72M|{
 1274|  5.72M|    profileRequires(loc, ENoProfile, 130, nullptr, op);
 1275|  5.72M|    profileRequires(loc, EEsProfile, 300, nullptr, op);
 1276|  5.72M|}
_ZN7glslang14TParseVersions11doubleCheckERKNS_10TSourceLocEPKc:
 1280|  31.2k|{
 1281|       |
 1282|       |    //requireProfile(loc, ECoreProfile | ECompatibilityProfile, op);
 1283|  31.2k|    if (language == EShLangVertex) {
  ------------------
  |  Branch (1283:9): [True: 356, False: 30.9k]
  ------------------
 1284|    356|        const char* const f64_Extensions[] = {E_GL_ARB_gpu_shader_fp64, E_GL_ARB_vertex_attrib_64bit};
 1285|    356|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 400, 2, f64_Extensions, op);
 1286|    356|    } else
 1287|  30.9k|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 400, E_GL_ARB_gpu_shader_fp64, op);
 1288|  31.2k|}
_ZN7glslang14TParseVersions12float16CheckERKNS_10TSourceLocEPKcb:
 1292|  45.7k|{
 1293|  45.7k|    if (!builtIn) {
  ------------------
  |  Branch (1293:9): [True: 8.11k, False: 37.6k]
  ------------------
 1294|  8.11k|        const char* const extensions[] = {
 1295|  8.11k|                                           E_GL_AMD_gpu_shader_half_float,
 1296|  8.11k|                                           E_GL_EXT_shader_explicit_arithmetic_types,
 1297|  8.11k|                                           E_GL_EXT_shader_explicit_arithmetic_types_float16};
 1298|  8.11k|        requireExtensions(loc, std::size(extensions), extensions, op);
 1299|  8.11k|    }
 1300|  45.7k|}
_ZN7glslang14TParseVersions17float16ArithmeticEv:
 1303|    708|{
 1304|    708|    const char* const extensions[] = {
 1305|    708|                                       E_GL_AMD_gpu_shader_half_float,
 1306|    708|                                       E_GL_EXT_shader_explicit_arithmetic_types,
 1307|    708|                                       E_GL_NV_gpu_shader5,
 1308|    708|                                       E_GL_EXT_shader_explicit_arithmetic_types_float16};
 1309|    708|    return extensionsTurnedOn(std::size(extensions), extensions);
 1310|    708|}
_ZN7glslang14TParseVersions15int16ArithmeticEv:
 1313|  3.79k|{
 1314|  3.79k|    const char* const extensions[] = {
 1315|  3.79k|                                       E_GL_AMD_gpu_shader_int16,
 1316|  3.79k|                                       E_GL_EXT_shader_explicit_arithmetic_types,
 1317|  3.79k|                                       E_GL_NV_gpu_shader5,
 1318|  3.79k|                                       E_GL_EXT_shader_explicit_arithmetic_types_int16};
 1319|  3.79k|    return extensionsTurnedOn(std::size(extensions), extensions);
 1320|  3.79k|}
_ZN7glslang14TParseVersions14int8ArithmeticEv:
 1323|  1.72k|{
 1324|  1.72k|    const char* const extensions[] = {
 1325|  1.72k|                                       E_GL_EXT_shader_explicit_arithmetic_types,
 1326|  1.72k|                                       E_GL_NV_gpu_shader5,
 1327|  1.72k|                                       E_GL_EXT_shader_explicit_arithmetic_types_int8};
 1328|  1.72k|    return extensionsTurnedOn(std::size(extensions), extensions);
 1329|  1.72k|}
_ZN7glslang14TParseVersions24requireFloat16ArithmeticERKNS_10TSourceLocEPKcS5_:
 1332|  8.44k|{
 1333|  8.44k|    TString combined;
 1334|  8.44k|    combined = op;
 1335|  8.44k|    combined += ": ";
 1336|  8.44k|    combined += featureDesc;
 1337|       |
 1338|  8.44k|    const char* const extensions[] = {
 1339|  8.44k|                                       E_GL_AMD_gpu_shader_half_float,
 1340|  8.44k|                                       E_GL_EXT_shader_explicit_arithmetic_types,
 1341|  8.44k|                                       E_GL_NV_gpu_shader5,
 1342|  8.44k|                                       E_GL_EXT_shader_explicit_arithmetic_types_float16};
 1343|  8.44k|    requireExtensions(loc, std::size(extensions), extensions, combined.c_str());
 1344|  8.44k|}
_ZN7glslang14TParseVersions22requireInt16ArithmeticERKNS_10TSourceLocEPKcS5_:
 1347|  7.28k|{
 1348|  7.28k|    TString combined;
 1349|  7.28k|    combined = op;
 1350|  7.28k|    combined += ": ";
 1351|  7.28k|    combined += featureDesc;
 1352|       |
 1353|  7.28k|    const char* const extensions[] = {
 1354|  7.28k|                                       E_GL_AMD_gpu_shader_int16,
 1355|  7.28k|                                       E_GL_EXT_shader_explicit_arithmetic_types,
 1356|  7.28k|                                       E_GL_NV_gpu_shader5,
 1357|  7.28k|                                       E_GL_EXT_shader_explicit_arithmetic_types_int16};
 1358|  7.28k|    requireExtensions(loc, std::size(extensions), extensions, combined.c_str());
 1359|  7.28k|}
_ZN7glslang14TParseVersions21requireInt8ArithmeticERKNS_10TSourceLocEPKcS5_:
 1362|  2.07k|{
 1363|  2.07k|    TString combined;
 1364|  2.07k|    combined = op;
 1365|  2.07k|    combined += ": ";
 1366|  2.07k|    combined += featureDesc;
 1367|       |
 1368|  2.07k|    const char* const extensions[] = {
 1369|  2.07k|                                       E_GL_EXT_shader_explicit_arithmetic_types,
 1370|  2.07k|                                       E_GL_NV_gpu_shader5,
 1371|  2.07k|                                       E_GL_EXT_shader_explicit_arithmetic_types_int8};
 1372|  2.07k|    requireExtensions(loc, std::size(extensions), extensions, combined.c_str());
 1373|  2.07k|}
_ZN7glslang14TParseVersions24float16ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1376|  2.05M|{
 1377|  2.05M|    if (!builtIn) {
  ------------------
  |  Branch (1377:9): [True: 5.88k, False: 2.05M]
  ------------------
 1378|  5.88k|        const char* const extensions[] = {
 1379|  5.88k|                                           E_GL_AMD_gpu_shader_half_float,
 1380|  5.88k|                                           E_GL_EXT_shader_16bit_storage,
 1381|  5.88k|                                           E_GL_EXT_shader_explicit_arithmetic_types,
 1382|  5.88k|                                           E_GL_NV_gpu_shader5,
 1383|  5.88k|                                           E_GL_EXT_shader_explicit_arithmetic_types_float16};
 1384|  5.88k|        requireExtensions(loc, std::size(extensions), extensions, op);
 1385|  5.88k|    }
 1386|  2.05M|}
_ZN7glslang14TParseVersions25bfloat16ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1389|  21.5k|{
 1390|  21.5k|    if (!builtIn) {
  ------------------
  |  Branch (1390:9): [True: 0, False: 21.5k]
  ------------------
 1391|      0|        const char* const extensions[] = {
 1392|      0|                                           E_GL_EXT_bfloat16,
 1393|      0|                                         };
 1394|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1395|      0|    }
 1396|  21.5k|}
_ZN7glslang14TParseVersions26floate5m2ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1399|  14.3k|{
 1400|  14.3k|    if (!builtIn) {
  ------------------
  |  Branch (1400:9): [True: 0, False: 14.3k]
  ------------------
 1401|      0|        const char* const extensions[] = {
 1402|      0|                                           E_GL_EXT_float_e5m2,
 1403|      0|                                         };
 1404|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1405|      0|    }
 1406|  14.3k|}
_ZN7glslang14TParseVersions26floate4m3ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1409|  14.3k|{
 1410|  14.3k|    if (!builtIn) {
  ------------------
  |  Branch (1410:9): [True: 0, False: 14.3k]
  ------------------
 1411|      0|        const char* const extensions[] = {
 1412|      0|                                           E_GL_EXT_float_e4m3,
 1413|      0|                                         };
 1414|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1415|      0|    }
 1416|  14.3k|}
_ZN7glslang14TParseVersions26floate2m1ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1419|  7.16k|{
 1420|  7.16k|    if (!builtIn) {
  ------------------
  |  Branch (1420:9): [True: 0, False: 7.16k]
  ------------------
 1421|      0|        const char* const extensions[] = {
 1422|      0|                                           E_GL_EXT_float_e2m1,
 1423|      0|                                         };
 1424|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1425|      0|    }
 1426|  7.16k|}
_ZN7glslang14TParseVersions26floate3m2ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1429|  5.97k|{
 1430|  5.97k|    if (!builtIn) {
  ------------------
  |  Branch (1430:9): [True: 0, False: 5.97k]
  ------------------
 1431|      0|        const char* const extensions[] = {
 1432|      0|                                           E_GL_EXT_float_e3m2,
 1433|      0|                                         };
 1434|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1435|      0|    }
 1436|  5.97k|}
_ZN7glslang14TParseVersions26floate2m3ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1439|  5.97k|{
 1440|  5.97k|    if (!builtIn) {
  ------------------
  |  Branch (1440:9): [True: 0, False: 5.97k]
  ------------------
 1441|      0|        const char* const extensions[] = {
 1442|      0|                                           E_GL_EXT_float_e2m3,
 1443|      0|                                         };
 1444|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1445|      0|    }
 1446|  5.97k|}
_ZN7glslang14TParseVersions27floatue8m0ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1449|  9.55k|{
 1450|  9.55k|    if (!builtIn) {
  ------------------
  |  Branch (1450:9): [True: 0, False: 9.55k]
  ------------------
 1451|      0|        const char* const extensions[] = {
 1452|      0|                                           E_GL_EXT_float_ue8m0,
 1453|      0|                                         };
 1454|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1455|      0|    }
 1456|  9.55k|}
_ZN7glslang14TParseVersions28floatmxint8ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1459|  9.55k|{
 1460|  9.55k|    if (!builtIn) {
  ------------------
  |  Branch (1460:9): [True: 0, False: 9.55k]
  ------------------
 1461|      0|        const char* const extensions[] = {
 1462|      0|                                           E_GL_EXT_float_mxint8,
 1463|      0|                                         };
 1464|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1465|      0|    }
 1466|  9.55k|}
_ZN7glslang14TParseVersions20explicitFloat32CheckERKNS_10TSourceLocEPKcb:
 1470|  26.9k|{
 1471|  26.9k|    if (!builtIn) {
  ------------------
  |  Branch (1471:9): [True: 426, False: 26.4k]
  ------------------
 1472|    426|        const char* const extensions[] = {E_GL_EXT_shader_explicit_arithmetic_types,
 1473|    426|                                          E_GL_NV_gpu_shader5,
 1474|    426|                                           E_GL_EXT_shader_explicit_arithmetic_types_float32};
 1475|    426|        requireExtensions(loc, std::size(extensions), extensions, op);
 1476|    426|    }
 1477|  26.9k|}
_ZN7glslang14TParseVersions20explicitFloat64CheckERKNS_10TSourceLocEPKcb:
 1481|   267k|{
 1482|   267k|    if (!builtIn) {
  ------------------
  |  Branch (1482:9): [True: 1.06k, False: 266k]
  ------------------
 1483|  1.06k|        const char* const extensions[] = {E_GL_EXT_shader_explicit_arithmetic_types,
 1484|  1.06k|                                           E_GL_NV_gpu_shader5,
 1485|  1.06k|                                           E_GL_EXT_shader_explicit_arithmetic_types_float64};
 1486|  1.06k|        requireExtensions(loc, std::size(extensions), extensions, op);
 1487|  1.06k|        requireProfile(loc, ECoreProfile | ECompatibilityProfile, op);
 1488|  1.06k|        if(extensionTurnedOn(E_GL_ARB_gpu_shader_fp64) && extensionTurnedOn(E_GL_NV_gpu_shader5))
  ------------------
  |  Branch (1488:12): [True: 669, False: 398]
  |  Branch (1488:59): [True: 669, False: 0]
  ------------------
 1489|    669|            profileRequires(loc, ECoreProfile | ECompatibilityProfile, 150, nullptr, op);
 1490|    398|        else
 1491|    398|            profileRequires(loc, ECoreProfile | ECompatibilityProfile, 400, nullptr, op);
 1492|  1.06k|    }
 1493|   267k|}
_ZN7glslang14TParseVersions18float16OpaqueCheckERKNS_10TSourceLocEPKcb:
 1507|   496k|{
 1508|   496k|    if (! builtIn) {
  ------------------
  |  Branch (1508:9): [True: 70, False: 496k]
  ------------------
 1509|     70|        requireExtensions(loc, 1, &E_GL_AMD_gpu_shader_half_float_fetch, op);
 1510|     70|        requireProfile(loc, ECoreProfile | ECompatibilityProfile, op);
 1511|     70|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 400, nullptr, op);
 1512|     70|    }
 1513|   496k|}
_ZN7glslang14TParseVersions18explicitInt16CheckERKNS_10TSourceLocEPKcb:
 1517|    737|{
 1518|    737|    if (! builtIn) {
  ------------------
  |  Branch (1518:9): [True: 737, False: 0]
  ------------------
 1519|    737|        const char* const extensions[] = {
 1520|    737|                                           E_GL_AMD_gpu_shader_int16,
 1521|    737|                                           E_GL_EXT_shader_explicit_arithmetic_types,
 1522|    737|                                           E_GL_EXT_shader_explicit_arithmetic_types_int16};
 1523|    737|        requireExtensions(loc, std::size(extensions), extensions, op);
 1524|    737|    }
 1525|    737|}
_ZN7glslang14TParseVersions22int16ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1528|  2.27M|{
 1529|  2.27M|    if (! builtIn) {
  ------------------
  |  Branch (1529:9): [True: 14.0k, False: 2.26M]
  ------------------
 1530|  14.0k|    	const char* const extensions[] = {
 1531|  14.0k|                                           E_GL_AMD_gpu_shader_int16,
 1532|  14.0k|                                           E_GL_EXT_shader_16bit_storage,
 1533|  14.0k|                                           E_GL_EXT_shader_explicit_arithmetic_types,
 1534|  14.0k|                                           E_GL_NV_gpu_shader5,
 1535|  14.0k|                                           E_GL_EXT_shader_explicit_arithmetic_types_int16};
 1536|  14.0k|        requireExtensions(loc, std::size(extensions), extensions, op);
 1537|  14.0k|    }
 1538|  2.27M|}
_ZN7glslang14TParseVersions21int8ScalarVectorCheckERKNS_10TSourceLocEPKcb:
 1541|  1.95M|{
 1542|  1.95M|    if (! builtIn) {
  ------------------
  |  Branch (1542:9): [True: 12.8k, False: 1.94M]
  ------------------
 1543|  12.8k|    	const char* const extensions[] = {
 1544|  12.8k|                                           E_GL_EXT_shader_8bit_storage,
 1545|  12.8k|                                           E_GL_EXT_shader_explicit_arithmetic_types,
 1546|  12.8k|                                           E_GL_NV_gpu_shader5,
 1547|  12.8k|                                           E_GL_EXT_shader_explicit_arithmetic_types_int8};
 1548|  12.8k|        requireExtensions(loc, std::size(extensions), extensions, op);
 1549|  12.8k|    }
 1550|  1.95M|}
_ZN7glslang14TParseVersions18explicitInt32CheckERKNS_10TSourceLocEPKcb:
 1554|  67.1k|{
 1555|  67.1k|    if (! builtIn) {
  ------------------
  |  Branch (1555:9): [True: 2.25k, False: 64.9k]
  ------------------
 1556|  2.25k|        const char* const extensions[] = {E_GL_EXT_shader_explicit_arithmetic_types,
 1557|  2.25k|                                           E_GL_NV_gpu_shader5,
 1558|  2.25k|                                           E_GL_EXT_shader_explicit_arithmetic_types_int32};
 1559|  2.25k|        requireExtensions(loc, std::size(extensions), extensions, op);
 1560|  2.25k|    }
 1561|  67.1k|}
_ZN7glslang14TParseVersions10int64CheckERKNS_10TSourceLocEPKcb:
 1565|  3.03M|{
 1566|  3.03M|    if (! builtIn) {
  ------------------
  |  Branch (1566:9): [True: 41.1k, False: 2.99M]
  ------------------
 1567|  41.1k|        const char* const extensions[] = {E_GL_ARB_gpu_shader_int64,
 1568|  41.1k|                                           E_GL_EXT_shader_explicit_arithmetic_types,
 1569|  41.1k|                                           E_GL_NV_gpu_shader5,
 1570|  41.1k|                                           E_GL_EXT_shader_explicit_arithmetic_types_int64};
 1571|  41.1k|        requireExtensions(loc, std::size(extensions), extensions, op);
 1572|  41.1k|        requireProfile(loc, ECoreProfile | ECompatibilityProfile, op);
 1573|  41.1k|        if (extensionTurnedOn(E_GL_NV_gpu_shader5))
  ------------------
  |  Branch (1573:13): [True: 38.7k, False: 2.37k]
  ------------------
 1574|  38.7k|            profileRequires(loc, ECoreProfile | ECompatibilityProfile, 150, nullptr, op);
 1575|  2.37k|        else
 1576|  2.37k|        profileRequires(loc, ECoreProfile | ECompatibilityProfile, 400, nullptr, op);
 1577|  41.1k|    }
 1578|  3.03M|}
_ZN7glslang14TParseVersions15fcoopmatCheckNVERKNS_10TSourceLocEPKcb:
 1581|  6.32k|{
 1582|  6.32k|    if (!builtIn) {
  ------------------
  |  Branch (1582:9): [True: 0, False: 6.32k]
  ------------------
 1583|      0|        const char* const extensions[] = {E_GL_NV_cooperative_matrix};
 1584|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1585|      0|    }
 1586|  6.32k|}
_ZN7glslang14TParseVersions17intcoopmatCheckNVERKNS_10TSourceLocEPKcb:
 1589|  16.8k|{
 1590|  16.8k|    if (!builtIn) {
  ------------------
  |  Branch (1590:9): [True: 0, False: 16.8k]
  ------------------
 1591|      0|        const char* const extensions[] = {E_GL_NV_integer_cooperative_matrix};
 1592|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1593|      0|    }
 1594|  16.8k|}
_ZN7glslang14TParseVersions12coopmatCheckERKNS_10TSourceLocEPKcb:
 1597|  65.3k|{
 1598|  65.3k|    if (!builtIn) {
  ------------------
  |  Branch (1598:9): [True: 0, False: 65.3k]
  ------------------
 1599|      0|        const char* const extensions[] = {E_GL_KHR_cooperative_matrix};
 1600|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1601|      0|    }
 1602|  65.3k|}
_ZN7glslang14TParseVersions21tensorLayoutViewCheckERKNS_10TSourceLocEPKcb:
 1613|  29.1k|{
 1614|  29.1k|    if (!builtIn) {
  ------------------
  |  Branch (1614:9): [True: 0, False: 29.1k]
  ------------------
 1615|      0|        const char* const extensions[] = {E_GL_NV_cooperative_matrix2};
 1616|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1617|      0|    }
 1618|  29.1k|}
_ZN7glslang14TParseVersions12coopvecCheckERKNS_10TSourceLocEPKcb:
 1621|   239k|{
 1622|   239k|    if (!builtIn) {
  ------------------
  |  Branch (1622:9): [True: 0, False: 239k]
  ------------------
 1623|      0|        const char* const extensions[] = {E_GL_NV_cooperative_vector};
 1624|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1625|      0|    }
 1626|   239k|}
_ZN7glslang14TParseVersions14tensorCheckARMERKNS_10TSourceLocEPKcb:
 1637|  18.3k|{
 1638|  18.3k|    if (!builtIn) {
  ------------------
  |  Branch (1638:9): [True: 0, False: 18.3k]
  ------------------
 1639|      0|        const char* const extensions[] = {E_GL_ARM_tensors};
 1640|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1641|      0|    }
 1642|  18.3k|}
_ZN7glslang14TParseVersions15longVectorCheckERKNS_10TSourceLocEPKcb:
 1645|   576k|{
 1646|   576k|    if (!builtIn) {
  ------------------
  |  Branch (1646:9): [True: 0, False: 576k]
  ------------------
 1647|      0|        const char* const extensions[] = {E_GL_EXT_long_vector};
 1648|      0|        requireExtensions(loc, std::size(extensions), extensions, op);
 1649|      0|    }
 1650|   576k|}
_ZN7glslang14TParseVersions10spvRemovedERKNS_10TSourceLocEPKc:
 1654|    100|{
 1655|    100|    if (spvVersion.spv != 0)
  ------------------
  |  Branch (1655:9): [True: 100, False: 0]
  ------------------
 1656|    100|        error(loc, "not allowed when generating SPIR-V", op, "");
 1657|    100|}
_ZN7glslang14TParseVersions13vulkanRemovedERKNS_10TSourceLocEPKc:
 1661|    702|{
 1662|    702|    if (spvVersion.vulkan > 0 && !spvVersion.vulkanRelaxed)
  ------------------
  |  Branch (1662:9): [True: 702, False: 0]
  |  Branch (1662:34): [True: 702, False: 0]
  ------------------
 1663|    702|        error(loc, "not allowed when using GLSL for Vulkan", op, "");
 1664|    702|}
_ZN7glslang14TParseVersions13requireVulkanERKNS_10TSourceLocEPKc:
 1668|    264|{
 1669|    264|    if (spvVersion.vulkan == 0)
  ------------------
  |  Branch (1669:9): [True: 0, False: 264]
  ------------------
 1670|      0|        error(loc, "only allowed when using GLSL for Vulkan", op, "");
 1671|    264|}
_ZN7glslang14TParseVersions10requireSpvERKNS_10TSourceLocEPKc:
 1675|    343|{
 1676|    343|    if (spvVersion.spv == 0)
  ------------------
  |  Branch (1676:9): [True: 0, False: 343]
  ------------------
 1677|      0|        error(loc, "only allowed when generating SPIR-V", op, "");
 1678|    343|}
_ZN7glslang14TParseVersions10requireSpvERKNS_10TSourceLocEPKcj:
 1680|  20.7k|{
 1681|  20.7k|    if (spvVersion.spv < version)
  ------------------
  |  Branch (1681:9): [True: 0, False: 20.7k]
  ------------------
 1682|      0|        error(loc, "not supported for current targeted SPIR-V version", op, "");
 1683|  20.7k|}

_ZNK7glslang13TParseContext17attributeFromNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEE:
  101|      1|{
  102|      1|    if (name == "branch" || name == "dont_flatten")
  ------------------
  |  Branch (102:9): [True: 0, False: 1]
  |  Branch (102:29): [True: 0, False: 1]
  ------------------
  103|      0|        return EatBranch;
  104|      1|    else if (name == "flatten")
  ------------------
  |  Branch (104:14): [True: 0, False: 1]
  ------------------
  105|      0|        return EatFlatten;
  106|      1|    else if (name == "unroll")
  ------------------
  |  Branch (106:14): [True: 0, False: 1]
  ------------------
  107|      0|        return EatUnroll;
  108|      1|    else if (name == "loop" || name == "dont_unroll")
  ------------------
  |  Branch (108:14): [True: 0, False: 1]
  |  Branch (108:32): [True: 0, False: 1]
  ------------------
  109|      0|        return EatLoop;
  110|      1|    else if (name == "dependency_infinite")
  ------------------
  |  Branch (110:14): [True: 0, False: 1]
  ------------------
  111|      0|        return EatDependencyInfinite;
  112|      1|    else if (name == "dependency_length")
  ------------------
  |  Branch (112:14): [True: 0, False: 1]
  ------------------
  113|      0|        return EatDependencyLength;
  114|      1|    else if (name == "min_iterations")
  ------------------
  |  Branch (114:14): [True: 0, False: 1]
  ------------------
  115|      0|        return EatMinIterations;
  116|      1|    else if (name == "max_iterations")
  ------------------
  |  Branch (116:14): [True: 0, False: 1]
  ------------------
  117|      0|        return EatMaxIterations;
  118|      1|    else if (name == "iteration_multiple")
  ------------------
  |  Branch (118:14): [True: 0, False: 1]
  ------------------
  119|      0|        return EatIterationMultiple;
  120|      1|    else if (name == "peel_count")
  ------------------
  |  Branch (120:14): [True: 0, False: 1]
  ------------------
  121|      0|        return EatPeelCount;
  122|      1|    else if (name == "partial_count")
  ------------------
  |  Branch (122:14): [True: 0, False: 1]
  ------------------
  123|      0|        return EatPartialCount;
  124|      1|    else if (name == "subgroup_uniform_control_flow")
  ------------------
  |  Branch (124:14): [True: 0, False: 1]
  ------------------
  125|      0|        return EatSubgroupUniformControlFlow;
  126|      1|    else if (name == "export")
  ------------------
  |  Branch (126:14): [True: 0, False: 1]
  ------------------
  127|      0|        return EatExport;
  128|      1|    else if (name == "maximally_reconverges")
  ------------------
  |  Branch (128:14): [True: 0, False: 1]
  ------------------
  129|      0|        return EatMaximallyReconverges;
  130|      1|    else if (name == "inline")
  ------------------
  |  Branch (130:14): [True: 0, False: 1]
  ------------------
  131|      0|        return EatInline;
  132|      1|    else if (name == "noinline")
  ------------------
  |  Branch (132:14): [True: 0, False: 1]
  ------------------
  133|      0|        return EatNoInline;
  134|      1|    else if (name == "multiple_wait_queuesQCOM")
  ------------------
  |  Branch (134:14): [True: 0, False: 1]
  ------------------
  135|      0|        return EatMultipleWaitQueuesQCOM;
  136|      1|    else
  137|      1|        return EatNone;
  138|      1|}
_ZNK7glslang13TParseContext14makeAttributesERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_14pool_allocatorIcEEEE:
  142|      1|{
  143|      1|    TAttributes *attributes = nullptr;
  144|      1|    attributes = NewPoolObject(attributes);
  145|      1|    TAttributeArgs args = { attributeFromName(identifier), nullptr };
  146|      1|    attributes->push_back(args);
  147|      1|    return attributes;
  148|      1|}

_Z7yyparsePN7glslang13TParseContextE:
 5637|  15.9k|{
 5638|       |/* Lookahead token kind.  */
 5639|  15.9k|int yychar;
 5640|       |
 5641|       |
 5642|       |/* The semantic value of the lookahead symbol.  */
 5643|       |/* Default value used for initialization, for pacifying older GCCs
 5644|       |   or non-GCC compilers.  */
 5645|  15.9k|YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
  ------------------
  |  |  958|  15.9k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 5646|  15.9k|YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
  ------------------
  |  |  958|  15.9k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 5647|       |
 5648|       |    /* Number of syntax errors so far.  */
 5649|  15.9k|    int yynerrs = 0;
 5650|       |
 5651|  15.9k|    yy_state_fast_t yystate = 0;
 5652|       |    /* Number of tokens to shift before error messages enabled.  */
 5653|  15.9k|    int yyerrstatus = 0;
 5654|       |
 5655|       |    /* Refer to the stacks through separate pointers, to allow yyoverflow
 5656|       |       to reallocate them elsewhere.  */
 5657|       |
 5658|       |    /* Their size.  */
 5659|  15.9k|    YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  |  865|  15.9k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
                  YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  | 5321|  15.9k|# define YYINITDEPTH 200
  ------------------
 5660|       |
 5661|       |    /* The state stack: array, bottom, top.  */
 5662|  15.9k|    yy_state_t yyssa[YYINITDEPTH];
 5663|  15.9k|    yy_state_t *yyss = yyssa;
 5664|  15.9k|    yy_state_t *yyssp = yyss;
 5665|       |
 5666|       |    /* The semantic value stack: array, bottom, top.  */
 5667|  15.9k|    YYSTYPE yyvsa[YYINITDEPTH];
 5668|  15.9k|    YYSTYPE *yyvs = yyvsa;
 5669|  15.9k|    YYSTYPE *yyvsp = yyvs;
 5670|       |
 5671|  15.9k|  int yyn;
 5672|       |  /* The return value of yyparse.  */
 5673|  15.9k|  int yyresult;
 5674|       |  /* Lookahead symbol kind.  */
 5675|  15.9k|  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
 5676|       |  /* The variables used to return semantic value and location from the
 5677|       |     action routines.  */
 5678|  15.9k|  YYSTYPE yyval;
 5679|       |
 5680|       |  /* Buffer for error messages, and its allocated size.  */
 5681|  15.9k|  char yymsgbuf[128];
 5682|  15.9k|  char *yymsg = yymsgbuf;
 5683|  15.9k|  YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
  ------------------
  |  |  865|  15.9k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 5684|       |
 5685|  15.9k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 5686|       |
 5687|       |  /* The number of symbols on the RHS of the reduced rule.
 5688|       |     Keep to zero when no symbol should be popped.  */
 5689|  15.9k|  int yylen = 0;
 5690|       |
 5691|  15.9k|  YYDPRINTF ((stderr, "Starting parse\n"));
  ------------------
  |  | 5199|  15.9k|# define YYDPRINTF(Args)                        \
  |  | 5200|  15.9k|do {                                            \
  |  | 5201|  15.9k|  if (yydebug)                                  \
  |  |  ------------------
  |  |  |  Branch (5201:7): [True: 0, False: 15.9k]
  |  |  ------------------
  |  | 5202|  15.9k|    YYFPRINTF Args;                             \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5203|  15.9k|} while (0)
  |  |  ------------------
  |  |  |  Branch (5203:10): [Folded, False: 15.9k]
  |  |  ------------------
  ------------------
 5692|       |
 5693|  15.9k|  yychar = YYEMPTY; /* Cause a token to be read.  */
 5694|       |
 5695|  15.9k|  goto yysetstate;
 5696|       |
 5697|       |
 5698|       |/*------------------------------------------------------------.
 5699|       || yynewstate -- push a new state, which is found in yystate.  |
 5700|       |`------------------------------------------------------------*/
 5701|   397M|yynewstate:
 5702|       |  /* In all cases, when you get here, the value and location stacks
 5703|       |     have just been pushed.  So pushing a state here evens the stacks.  */
 5704|   397M|  yyssp++;
 5705|       |
 5706|       |
 5707|       |/*--------------------------------------------------------------------.
 5708|       || yysetstate -- set current state (the top of the stack) to yystate.  |
 5709|       |`--------------------------------------------------------------------*/
 5710|   397M|yysetstate:
 5711|   397M|  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  ------------------
  |  | 5199|   397M|# define YYDPRINTF(Args)                        \
  |  | 5200|   397M|do {                                            \
  |  | 5201|   397M|  if (yydebug)                                  \
  |  |  ------------------
  |  |  |  Branch (5201:7): [True: 0, False: 397M]
  |  |  ------------------
  |  | 5202|   397M|    YYFPRINTF Args;                             \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5203|   397M|} while (0)
  |  |  ------------------
  |  |  |  Branch (5203:10): [Folded, False: 397M]
  |  |  ------------------
  ------------------
 5712|   397M|  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  ------------------
  |  |  981|   397M|#define YY_ASSERT(E) ((void) (0 && (E)))
  |  |  ------------------
  |  |  |  Branch (981:31): [Folded, False: 397M]
  |  |  |  Branch (981:37): [True: 0, False: 0]
  |  |  |  Branch (981:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 5713|   397M|  YY_IGNORE_USELESS_CAST_BEGIN
 5714|   397M|  *yyssp = YY_CAST (yy_state_t, yystate);
  ------------------
  |  |  100|   397M|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  ------------------
 5715|   397M|  YY_IGNORE_USELESS_CAST_END
 5716|   397M|  YY_STACK_PRINT (yyss, yyssp);
  ------------------
  |  | 5271|   397M|# define YY_STACK_PRINT(Bottom, Top)                            \
  |  | 5272|   397M|do {                                                            \
  |  | 5273|   397M|  if (yydebug)                                                  \
  |  |  ------------------
  |  |  |  Branch (5273:7): [True: 0, False: 397M]
  |  |  ------------------
  |  | 5274|   397M|    yy_stack_print ((Bottom), (Top));                           \
  |  | 5275|   397M|} while (0)
  |  |  ------------------
  |  |  |  Branch (5275:10): [Folded, False: 397M]
  |  |  ------------------
  ------------------
 5717|       |
 5718|   397M|  if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (5718:7): [True: 0, False: 397M]
  ------------------
 5719|       |#if !defined yyoverflow && !defined YYSTACK_RELOCATE
 5720|       |    YYNOMEM;
 5721|       |#else
 5722|      0|    {
 5723|       |      /* Get the current used size of the three stacks, in elements.  */
 5724|      0|      YYPTRDIFF_T yysize = yyssp - yyss + 1;
  ------------------
  |  |  865|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 5725|       |
 5726|       |# if defined yyoverflow
 5727|       |      {
 5728|       |        /* Give user a chance to reallocate the stack.  Use copies of
 5729|       |           these so that the &'s don't force the real ones into
 5730|       |           memory.  */
 5731|       |        yy_state_t *yyss1 = yyss;
 5732|       |        YYSTYPE *yyvs1 = yyvs;
 5733|       |
 5734|       |        /* Each stack pointer address is followed by the size of the
 5735|       |           data in use in that stack, in bytes.  This used to be a
 5736|       |           conditional around just the two extra args, but that might
 5737|       |           be undefined if yyoverflow is a macro.  */
 5738|       |        yyoverflow (YY_("memory exhausted"),
 5739|       |                    &yyss1, yysize * YYSIZEOF (*yyssp),
 5740|       |                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
 5741|       |                    &yystacksize);
 5742|       |        yyss = yyss1;
 5743|       |        yyvs = yyvs1;
 5744|       |      }
 5745|       |# else /* defined YYSTACK_RELOCATE */
 5746|       |      /* Extend the stack our own way.  */
 5747|      0|      if (YYMAXDEPTH <= yystacksize)
  ------------------
  |  | 5332|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (5747:11): [True: 0, False: 0]
  ------------------
 5748|      0|        YYNOMEM;
  ------------------
  |  | 5164|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 5749|      0|      yystacksize *= 2;
 5750|      0|      if (YYMAXDEPTH < yystacksize)
  ------------------
  |  | 5332|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (5750:11): [True: 0, False: 0]
  ------------------
 5751|      0|        yystacksize = YYMAXDEPTH;
  ------------------
  |  | 5332|      0|# define YYMAXDEPTH 10000
  ------------------
 5752|       |
 5753|      0|      {
 5754|      0|        yy_state_t *yyss1 = yyss;
 5755|      0|        union yyalloc *yyptr =
 5756|      0|          YY_CAST (union yyalloc *,
  ------------------
  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  ------------------
 5757|      0|                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
 5758|      0|        if (! yyptr)
  ------------------
  |  Branch (5758:13): [True: 0, False: 0]
  ------------------
 5759|      0|          YYNOMEM;
  ------------------
  |  | 5164|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 5760|      0|        YYSTACK_RELOCATE (yyss_alloc, yyss);
  ------------------
  |  | 1078|      0|    do                                                                  \
  |  | 1079|      0|      {                                                                 \
  |  | 1080|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  865|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  | 1081|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  | 1096|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1082|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  | 1083|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  898|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  | 1062|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  898|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1084|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  898|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1085|      0|      }                                                                 \
  |  | 1086|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (1086:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 5761|      0|        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  ------------------
  |  | 1078|      0|    do                                                                  \
  |  | 1079|      0|      {                                                                 \
  |  | 1080|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  865|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  | 1081|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  | 1096|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1082|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  | 1083|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  898|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  | 1062|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  898|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1084|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  898|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1085|      0|      }                                                                 \
  |  | 1086|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (1086:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 5762|      0|#  undef YYSTACK_RELOCATE
 5763|      0|        if (yyss1 != yyssa)
  ------------------
  |  Branch (5763:13): [True: 0, False: 0]
  ------------------
 5764|      0|          YYSTACK_FREE (yyss1);
  ------------------
  |  | 1023|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  | 1042|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 5765|      0|      }
 5766|      0|# endif
 5767|       |
 5768|      0|      yyssp = yyss + yysize - 1;
 5769|      0|      yyvsp = yyvs + yysize - 1;
 5770|       |
 5771|      0|      YY_IGNORE_USELESS_CAST_BEGIN
 5772|      0|      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
  ------------------
  |  | 5199|      0|# define YYDPRINTF(Args)                        \
  |  | 5200|      0|do {                                            \
  |  | 5201|      0|  if (yydebug)                                  \
  |  |  ------------------
  |  |  |  Branch (5201:7): [True: 0, False: 0]
  |  |  ------------------
  |  | 5202|      0|    YYFPRINTF Args;                             \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5203|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (5203:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 5773|      0|                  YY_CAST (long, yystacksize)));
 5774|      0|      YY_IGNORE_USELESS_CAST_END
 5775|       |
 5776|      0|      if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (5776:11): [True: 0, False: 0]
  ------------------
 5777|      0|        YYABORT;
  ------------------
  |  | 5162|      0|#define YYABORT         goto yyabortlab
  ------------------
 5778|      0|    }
 5779|   397M|#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
 5780|       |
 5781|       |
 5782|   397M|  if (yystate == YYFINAL)
  ------------------
  |  | 1111|   397M|#define YYFINAL  496
  ------------------
  |  Branch (5782:7): [True: 14.6k, False: 397M]
  ------------------
 5783|  14.6k|    YYACCEPT;
  ------------------
  |  | 5161|  14.6k|#define YYACCEPT        goto yyacceptlab
  ------------------
 5784|       |
 5785|   397M|  goto yybackup;
 5786|       |
 5787|       |
 5788|       |/*-----------.
 5789|       || yybackup.  |
 5790|       |`-----------*/
 5791|   397M|yybackup:
 5792|       |  /* Do appropriate processing given the current state.  Read a
 5793|       |     lookahead token if we need one and don't already have one.  */
 5794|       |
 5795|       |  /* First try to decide what to do without reference to lookahead token.  */
 5796|   397M|  yyn = yypact[yystate];
 5797|   397M|  if (yypact_value_is_default (yyn))
  ------------------
  |  | 1490|   397M|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  | 1487|   397M|#define YYPACT_NINF (-901)
  |  |  ------------------
  |  |  |  Branch (1490:3): [True: 166M, False: 231M]
  |  |  ------------------
  ------------------
 5798|   166M|    goto yydefault;
 5799|       |
 5800|       |  /* Not known => get a lookahead token if don't already have one.  */
 5801|       |
 5802|       |  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
 5803|   231M|  if (yychar == YYEMPTY)
  ------------------
  |  Branch (5803:7): [True: 105M, False: 126M]
  ------------------
 5804|   105M|    {
 5805|   105M|      YYDPRINTF ((stderr, "Reading a token\n"));
  ------------------
  |  | 5199|   105M|# define YYDPRINTF(Args)                        \
  |  | 5200|   105M|do {                                            \
  |  | 5201|   105M|  if (yydebug)                                  \
  |  |  ------------------
  |  |  |  Branch (5201:7): [True: 0, False: 105M]
  |  |  ------------------
  |  | 5202|   105M|    YYFPRINTF Args;                             \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5203|   105M|} while (0)
  |  |  ------------------
  |  |  |  Branch (5203:10): [Folded, False: 105M]
  |  |  ------------------
  ------------------
 5806|   105M|      yychar = yylex (&yylval, parseContext);
  ------------------
  |  |  783|   105M|#define parseContext (*pParseContext)
  ------------------
 5807|   105M|    }
 5808|       |
 5809|   231M|  if (yychar <= YYEOF)
  ------------------
  |  Branch (5809:7): [True: 14.8k, False: 231M]
  ------------------
 5810|  14.8k|    {
 5811|  14.8k|      yychar = YYEOF;
 5812|  14.8k|      yytoken = YYSYMBOL_YYEOF;
 5813|  14.8k|      YYDPRINTF ((stderr, "Now at end of input.\n"));
  ------------------
  |  | 5199|  14.8k|# define YYDPRINTF(Args)                        \
  |  | 5200|  14.8k|do {                                            \
  |  | 5201|  14.8k|  if (yydebug)                                  \
  |  |  ------------------
  |  |  |  Branch (5201:7): [True: 0, False: 14.8k]
  |  |  ------------------
  |  | 5202|  14.8k|    YYFPRINTF Args;                             \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5203|  14.8k|} while (0)
  |  |  ------------------
  |  |  |  Branch (5203:10): [Folded, False: 14.8k]
  |  |  ------------------
  ------------------
 5814|  14.8k|    }
 5815|   231M|  else if (yychar == YYerror)
  ------------------
  |  Branch (5815:12): [True: 0, False: 231M]
  ------------------
 5816|      0|    {
 5817|       |      /* The scanner already issued an error message, process directly
 5818|       |         to error recovery.  But do not keep the error token as
 5819|       |         lookahead, it is too special and may lead us to an endless
 5820|       |         loop in error recovery. */
 5821|      0|      yychar = YYUNDEF;
 5822|      0|      yytoken = YYSYMBOL_YYerror;
 5823|      0|      goto yyerrlab1;
 5824|      0|    }
 5825|   231M|  else
 5826|   231M|    {
 5827|   231M|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  | 1131|   231M|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  | 1125|   231M|#define YYMAXUTOK   769
  |  |  ------------------
  |  |  |  Branch (1131:4): [True: 231M, False: 0]
  |  |  |  Branch (1131:18): [True: 231M, False: 0]
  |  |  ------------------
  |  | 1132|   231M|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  100|   231M|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  ------------------
  |  | 1133|   231M|   : YYSYMBOL_YYUNDEF)
  ------------------
 5828|   231M|      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  ------------------
  |  | 5208|   231M|# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
  |  | 5209|   231M|do {                                                                      \
  |  | 5210|   231M|  if (yydebug)                                                            \
  |  |  ------------------
  |  |  |  Branch (5210:7): [True: 0, False: 231M]
  |  |  ------------------
  |  | 5211|   231M|    {                                                                     \
  |  | 5212|      0|      YYFPRINTF (stderr, "%s ", Title);                                   \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5213|      0|      yy_symbol_print (stderr,                                            \
  |  | 5214|      0|                  Kind, Value, pParseContext); \
  |  | 5215|      0|      YYFPRINTF (stderr, "\n");                                           \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5216|      0|    }                                                                     \
  |  | 5217|   231M|} while (0)
  |  |  ------------------
  |  |  |  Branch (5217:10): [Folded, False: 231M]
  |  |  ------------------
  ------------------
 5829|   231M|    }
 5830|       |
 5831|       |  /* If the proper action on seeing token YYTOKEN is to reduce or to
 5832|       |     detect an error, take that action.  */
 5833|   231M|  yyn += yytoken;
 5834|   231M|  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  ------------------
  |  | 1113|   231M|#define YYLAST   15602
  ------------------
  |  Branch (5834:7): [True: 1.34k, False: 231M]
  |  Branch (5834:18): [True: 0, False: 231M]
  |  Branch (5834:34): [True: 126M, False: 105M]
  ------------------
 5835|   126M|    goto yydefault;
 5836|   105M|  yyn = yytable[yyn];
 5837|   105M|  if (yyn <= 0)
  ------------------
  |  Branch (5837:7): [True: 49.5k, False: 105M]
  ------------------
 5838|  49.5k|    {
 5839|  49.5k|      if (yytable_value_is_error (yyn))
  ------------------
  |  | 1495|  49.5k|  0
  |  |  ------------------
  |  |  |  Branch (1495:3): [Folded, False: 49.5k]
  |  |  ------------------
  ------------------
 5840|      0|        goto yyerrlab;
 5841|  49.5k|      yyn = -yyn;
 5842|  49.5k|      goto yyreduce;
 5843|  49.5k|    }
 5844|       |
 5845|       |  /* Count tokens shifted since error; after three, turn off error
 5846|       |     status.  */
 5847|   105M|  if (yyerrstatus)
  ------------------
  |  Branch (5847:7): [True: 0, False: 105M]
  ------------------
 5848|      0|    yyerrstatus--;
 5849|       |
 5850|       |  /* Shift the lookahead token.  */
 5851|   105M|  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  ------------------
  |  | 5208|   105M|# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
  |  | 5209|   105M|do {                                                                      \
  |  | 5210|   105M|  if (yydebug)                                                            \
  |  |  ------------------
  |  |  |  Branch (5210:7): [True: 0, False: 105M]
  |  |  ------------------
  |  | 5211|   105M|    {                                                                     \
  |  | 5212|      0|      YYFPRINTF (stderr, "%s ", Title);                                   \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5213|      0|      yy_symbol_print (stderr,                                            \
  |  | 5214|      0|                  Kind, Value, pParseContext); \
  |  | 5215|      0|      YYFPRINTF (stderr, "\n");                                           \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5216|      0|    }                                                                     \
  |  | 5217|   105M|} while (0)
  |  |  ------------------
  |  |  |  Branch (5217:10): [Folded, False: 105M]
  |  |  ------------------
  ------------------
 5852|   105M|  yystate = yyn;
 5853|   105M|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 5854|   105M|  *++yyvsp = yylval;
 5855|   105M|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 5856|       |
 5857|       |  /* Discard the shifted token.  */
 5858|   105M|  yychar = YYEMPTY;
 5859|   105M|  goto yynewstate;
 5860|       |
 5861|       |
 5862|       |/*-----------------------------------------------------------.
 5863|       || yydefault -- do the default action for the current state.  |
 5864|       |`-----------------------------------------------------------*/
 5865|   292M|yydefault:
 5866|   292M|  yyn = yydefact[yystate];
 5867|   292M|  if (yyn == 0)
  ------------------
  |  Branch (5867:7): [True: 1.23k, False: 292M]
  ------------------
 5868|  1.23k|    goto yyerrlab;
 5869|   292M|  goto yyreduce;
 5870|       |
 5871|       |
 5872|       |/*-----------------------------.
 5873|       || yyreduce -- do a reduction.  |
 5874|       |`-----------------------------*/
 5875|   292M|yyreduce:
 5876|       |  /* yyn is the number of a rule to reduce with.  */
 5877|   292M|  yylen = yyr2[yyn];
 5878|       |
 5879|       |  /* If YYLEN is nonzero, implement the default value of the action:
 5880|       |     '$$ = $1'.
 5881|       |
 5882|       |     Otherwise, the following line sets YYVAL to garbage.
 5883|       |     This behavior is undocumented and Bison
 5884|       |     users should not rely upon it.  Assigning to YYVAL
 5885|       |     unconditionally makes the parser a bit smaller, and it avoids a
 5886|       |     GCC warning that YYVAL may be used uninitialized.  */
 5887|   292M|  yyval = yyvsp[1-yylen];
 5888|       |
 5889|       |
 5890|   292M|  YY_REDUCE_PRINT (yyn);
  ------------------
  |  | 5302|   292M|# define YY_REDUCE_PRINT(Rule)          \
  |  | 5303|   292M|do {                                    \
  |  | 5304|   292M|  if (yydebug)                          \
  |  |  ------------------
  |  |  |  Branch (5304:7): [True: 0, False: 292M]
  |  |  ------------------
  |  | 5305|   292M|    yy_reduce_print (yyssp, yyvsp, Rule, pParseContext); \
  |  | 5306|   292M|} while (0)
  |  |  ------------------
  |  |  |  Branch (5306:10): [Folded, False: 292M]
  |  |  ------------------
  ------------------
 5891|   292M|  switch (yyn)
 5892|   292M|    {
 5893|   253k|  case 2: /* variable_identifier: IDENTIFIER  */
  ------------------
  |  Branch (5893:3): [True: 253k, False: 291M]
  ------------------
 5894|   253k|#line 371 "MachineIndependent/glslang.y"
 5895|   253k|                 {
 5896|   253k|        (yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).symbol, (yyvsp[0].lex).string);
  ------------------
  |  |  783|   253k|#define parseContext (*pParseContext)
  ------------------
 5897|   253k|    }
 5898|   253k|#line 5899 "MachineIndependent/glslang_tab.cpp"
 5899|   253k|    break;
 5900|       |
 5901|   253k|  case 3: /* primary_expression: variable_identifier  */
  ------------------
  |  Branch (5901:3): [True: 253k, False: 291M]
  ------------------
 5902|   253k|#line 377 "MachineIndependent/glslang.y"
 5903|   253k|                          {
 5904|   253k|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 5905|   253k|    }
 5906|   253k|#line 5907 "MachineIndependent/glslang_tab.cpp"
 5907|   253k|    break;
 5908|       |
 5909|  3.82k|  case 4: /* primary_expression: LEFT_PAREN expression RIGHT_PAREN  */
  ------------------
  |  Branch (5909:3): [True: 3.82k, False: 292M]
  ------------------
 5910|  3.82k|#line 380 "MachineIndependent/glslang.y"
 5911|  3.82k|                                        {
 5912|  3.82k|        (yyval.interm.intermTypedNode) = (yyvsp[-1].interm.intermTypedNode);
 5913|  3.82k|        if ((yyval.interm.intermTypedNode)->getAsConstantUnion())
  ------------------
  |  Branch (5913:13): [True: 82, False: 3.73k]
  ------------------
 5914|     82|            (yyval.interm.intermTypedNode)->getAsConstantUnion()->setExpression();
 5915|  3.82k|    }
 5916|  3.82k|#line 5917 "MachineIndependent/glslang_tab.cpp"
 5917|  3.82k|    break;
 5918|       |
 5919|  9.75k|  case 5: /* primary_expression: FLOATCONSTANT  */
  ------------------
  |  Branch (5919:3): [True: 9.75k, False: 292M]
  ------------------
 5920|  9.75k|#line 385 "MachineIndependent/glslang.y"
 5921|  9.75k|                    {
 5922|  9.75k|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|  9.75k|#define parseContext (*pParseContext)
  ------------------
 5923|  9.75k|    }
 5924|  9.75k|#line 5925 "MachineIndependent/glslang_tab.cpp"
 5925|  9.75k|    break;
 5926|       |
 5927|   451k|  case 6: /* primary_expression: INTCONSTANT  */
  ------------------
  |  Branch (5927:3): [True: 451k, False: 291M]
  ------------------
 5928|   451k|#line 388 "MachineIndependent/glslang.y"
 5929|   451k|                  {
 5930|   451k|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|   451k|#define parseContext (*pParseContext)
  ------------------
 5931|   451k|    }
 5932|   451k|#line 5933 "MachineIndependent/glslang_tab.cpp"
 5933|   451k|    break;
 5934|       |
 5935|  24.2k|  case 7: /* primary_expression: UINTCONSTANT  */
  ------------------
  |  Branch (5935:3): [True: 24.2k, False: 292M]
  ------------------
 5936|  24.2k|#line 391 "MachineIndependent/glslang.y"
 5937|  24.2k|                   {
 5938|  24.2k|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal");
  ------------------
  |  |  783|  24.2k|#define parseContext (*pParseContext)
  ------------------
 5939|  24.2k|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|  24.2k|#define parseContext (*pParseContext)
  ------------------
 5940|  24.2k|    }
 5941|  24.2k|#line 5942 "MachineIndependent/glslang_tab.cpp"
 5942|  24.2k|    break;
 5943|       |
 5944|  1.80k|  case 8: /* primary_expression: BOOLCONSTANT  */
  ------------------
  |  Branch (5944:3): [True: 1.80k, False: 292M]
  ------------------
 5945|  1.80k|#line 395 "MachineIndependent/glslang.y"
 5946|  1.80k|                   {
 5947|  1.80k|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
 5948|  1.80k|    }
 5949|  1.80k|#line 5950 "MachineIndependent/glslang_tab.cpp"
 5950|  1.80k|    break;
 5951|       |
 5952|      1|  case 9: /* primary_expression: STRING_LITERAL  */
  ------------------
  |  Branch (5952:3): [True: 1, False: 292M]
  ------------------
 5953|      1|#line 398 "MachineIndependent/glslang.y"
 5954|      1|                     {
 5955|      1|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
 5956|      1|    }
 5957|      1|#line 5958 "MachineIndependent/glslang_tab.cpp"
 5958|      1|    break;
 5959|       |
 5960|      0|  case 10: /* primary_expression: INT32CONSTANT  */
  ------------------
  |  Branch (5960:3): [True: 0, False: 292M]
  ------------------
 5961|      0|#line 401 "MachineIndependent/glslang.y"
 5962|      0|                    {
 5963|      0|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 5964|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 5965|      0|    }
 5966|      0|#line 5967 "MachineIndependent/glslang_tab.cpp"
 5967|      0|    break;
 5968|       |
 5969|      0|  case 11: /* primary_expression: UINT32CONSTANT  */
  ------------------
  |  Branch (5969:3): [True: 0, False: 292M]
  ------------------
 5970|      0|#line 405 "MachineIndependent/glslang.y"
 5971|      0|                     {
 5972|      0|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 5973|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 5974|      0|    }
 5975|      0|#line 5976 "MachineIndependent/glslang_tab.cpp"
 5976|      0|    break;
 5977|       |
 5978|    120|  case 12: /* primary_expression: INT64CONSTANT  */
  ------------------
  |  Branch (5978:3): [True: 120, False: 292M]
  ------------------
 5979|    120|#line 409 "MachineIndependent/glslang.y"
 5980|    120|                    {
 5981|    120|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer literal");
  ------------------
  |  |  783|    120|#define parseContext (*pParseContext)
  ------------------
 5982|    120|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i64, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|    120|#define parseContext (*pParseContext)
  ------------------
 5983|    120|    }
 5984|    120|#line 5985 "MachineIndependent/glslang_tab.cpp"
 5985|    120|    break;
 5986|       |
 5987|    121|  case 13: /* primary_expression: UINT64CONSTANT  */
  ------------------
  |  Branch (5987:3): [True: 121, False: 292M]
  ------------------
 5988|    121|#line 413 "MachineIndependent/glslang.y"
 5989|    121|                     {
 5990|    121|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer literal");
  ------------------
  |  |  783|    121|#define parseContext (*pParseContext)
  ------------------
 5991|    121|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u64, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|    121|#define parseContext (*pParseContext)
  ------------------
 5992|    121|    }
 5993|    121|#line 5994 "MachineIndependent/glslang_tab.cpp"
 5994|    121|    break;
 5995|       |
 5996|    369|  case 14: /* primary_expression: INT16CONSTANT  */
  ------------------
  |  Branch (5996:3): [True: 369, False: 292M]
  ------------------
 5997|    369|#line 417 "MachineIndependent/glslang.y"
 5998|    369|                    {
 5999|    369|        parseContext.explicitInt16Check((yyvsp[0].lex).loc, "16-bit integer literal");
  ------------------
  |  |  783|    369|#define parseContext (*pParseContext)
  ------------------
 6000|    369|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((short)(yyvsp[0].lex).i, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|    369|#define parseContext (*pParseContext)
  ------------------
 6001|    369|    }
 6002|    369|#line 6003 "MachineIndependent/glslang_tab.cpp"
 6003|    369|    break;
 6004|       |
 6005|    368|  case 15: /* primary_expression: UINT16CONSTANT  */
  ------------------
  |  Branch (6005:3): [True: 368, False: 292M]
  ------------------
 6006|    368|#line 421 "MachineIndependent/glslang.y"
 6007|    368|                     {
 6008|    368|        parseContext.explicitInt16Check((yyvsp[0].lex).loc, "16-bit unsigned integer literal");
  ------------------
  |  |  783|    368|#define parseContext (*pParseContext)
  ------------------
 6009|    368|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((unsigned short)(yyvsp[0].lex).u, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|    368|#define parseContext (*pParseContext)
  ------------------
 6010|    368|    }
 6011|    368|#line 6012 "MachineIndependent/glslang_tab.cpp"
 6012|    368|    break;
 6013|       |
 6014|     57|  case 16: /* primary_expression: DOUBLECONSTANT  */
  ------------------
  |  Branch (6014:3): [True: 57, False: 292M]
  ------------------
 6015|     57|#line 425 "MachineIndependent/glslang.y"
 6016|     57|                     {
 6017|     57|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double literal");
  ------------------
  |  |  783|     57|#define parseContext (*pParseContext)
  ------------------
 6018|     57|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|     57|#define parseContext (*pParseContext)
  ------------------
  |  Branch (6018:13): [True: 57, False: 0]
  ------------------
 6019|     57|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double literal");
  ------------------
  |  |  783|     57|#define parseContext (*pParseContext)
  ------------------
 6020|     57|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtDouble, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|     57|#define parseContext (*pParseContext)
  ------------------
 6021|     57|    }
 6022|     57|#line 6023 "MachineIndependent/glslang_tab.cpp"
 6023|     57|    break;
 6024|       |
 6025|    197|  case 17: /* primary_expression: FLOAT16CONSTANT  */
  ------------------
  |  Branch (6025:3): [True: 197, False: 292M]
  ------------------
 6026|    197|#line 431 "MachineIndependent/glslang.y"
 6027|    197|                      {
 6028|    197|        parseContext.float16Check((yyvsp[0].lex).loc, "half float literal");
  ------------------
  |  |  783|    197|#define parseContext (*pParseContext)
  ------------------
 6029|    197|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat16, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|    197|#define parseContext (*pParseContext)
  ------------------
 6030|    197|    }
 6031|    197|#line 6032 "MachineIndependent/glslang_tab.cpp"
 6032|    197|    break;
 6033|       |
 6034|      0|  case 18: /* primary_expression: FLOATE2M1CONSTANT  */
  ------------------
  |  Branch (6034:3): [True: 0, False: 292M]
  ------------------
 6035|      0|#line 435 "MachineIndependent/glslang.y"
 6036|      0|                        {
 6037|      0|        parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m1 literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6038|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloatE2M1, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6039|      0|    }
 6040|      0|#line 6041 "MachineIndependent/glslang_tab.cpp"
 6041|      0|    break;
 6042|       |
 6043|      0|  case 19: /* primary_expression: FLOATE3M2CONSTANT  */
  ------------------
  |  Branch (6043:3): [True: 0, False: 292M]
  ------------------
 6044|      0|#line 439 "MachineIndependent/glslang.y"
 6045|      0|                        {
 6046|      0|        parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe3m2 literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6047|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloatE3M2, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6048|      0|    }
 6049|      0|#line 6050 "MachineIndependent/glslang_tab.cpp"
 6050|      0|    break;
 6051|       |
 6052|      0|  case 20: /* primary_expression: FLOATE2M3CONSTANT  */
  ------------------
  |  Branch (6052:3): [True: 0, False: 292M]
  ------------------
 6053|      0|#line 443 "MachineIndependent/glslang.y"
 6054|      0|                        {
 6055|      0|        parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m3 literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6056|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloatE2M3, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6057|      0|    }
 6058|      0|#line 6059 "MachineIndependent/glslang_tab.cpp"
 6059|      0|    break;
 6060|       |
 6061|      0|  case 21: /* primary_expression: FLOATUE8M0CONSTANT  */
  ------------------
  |  Branch (6061:3): [True: 0, False: 292M]
  ------------------
 6062|      0|#line 447 "MachineIndependent/glslang.y"
 6063|      0|                         {
 6064|      0|        parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "fue8m0 literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6065|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloatUE8M0, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6066|      0|    }
 6067|      0|#line 6068 "MachineIndependent/glslang_tab.cpp"
 6068|      0|    break;
 6069|       |
 6070|      0|  case 22: /* primary_expression: FLOATMXINT8CONSTANT  */
  ------------------
  |  Branch (6070:3): [True: 0, False: 292M]
  ------------------
 6071|      0|#line 451 "MachineIndependent/glslang.y"
 6072|      0|                          {
 6073|      0|        parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "fmxint8 literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6074|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloatMXINT8, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6075|      0|    }
 6076|      0|#line 6077 "MachineIndependent/glslang_tab.cpp"
 6077|      0|    break;
 6078|       |
 6079|   745k|  case 23: /* postfix_expression: primary_expression  */
  ------------------
  |  Branch (6079:3): [True: 745k, False: 291M]
  ------------------
 6080|   745k|#line 458 "MachineIndependent/glslang.y"
 6081|   745k|                         {
 6082|   745k|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6083|   745k|    }
 6084|   745k|#line 6085 "MachineIndependent/glslang_tab.cpp"
 6085|   745k|    break;
 6086|       |
 6087|  4.64k|  case 24: /* postfix_expression: postfix_expression LEFT_BRACKET integer_expression RIGHT_BRACKET  */
  ------------------
  |  Branch (6087:3): [True: 4.64k, False: 292M]
  ------------------
 6088|  4.64k|#line 461 "MachineIndependent/glslang.y"
 6089|  4.64k|                                                                       {
 6090|  4.64k|        (yyval.interm.intermTypedNode) = parseContext.handleBracketDereference((yyvsp[-2].lex).loc, (yyvsp[-3].interm.intermTypedNode), (yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|  4.64k|#define parseContext (*pParseContext)
  ------------------
 6091|  4.64k|    }
 6092|  4.64k|#line 6093 "MachineIndependent/glslang_tab.cpp"
 6093|  4.64k|    break;
 6094|       |
 6095|   124k|  case 25: /* postfix_expression: function_call  */
  ------------------
  |  Branch (6095:3): [True: 124k, False: 292M]
  ------------------
 6096|   124k|#line 464 "MachineIndependent/glslang.y"
 6097|   124k|                    {
 6098|   124k|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6099|   124k|    }
 6100|   124k|#line 6101 "MachineIndependent/glslang_tab.cpp"
 6101|   124k|    break;
 6102|       |
 6103|  9.49k|  case 26: /* postfix_expression: postfix_expression DOT IDENTIFIER  */
  ------------------
  |  Branch (6103:3): [True: 9.49k, False: 292M]
  ------------------
 6104|  9.49k|#line 467 "MachineIndependent/glslang.y"
 6105|  9.49k|                                        {
 6106|  9.49k|        (yyval.interm.intermTypedNode) = parseContext.handleDotDereference((yyvsp[0].lex).loc, (yyvsp[-2].interm.intermTypedNode), *(yyvsp[0].lex).string);
  ------------------
  |  |  783|  9.49k|#define parseContext (*pParseContext)
  ------------------
 6107|  9.49k|    }
 6108|  9.49k|#line 6109 "MachineIndependent/glslang_tab.cpp"
 6109|  9.49k|    break;
 6110|       |
 6111|    184|  case 27: /* postfix_expression: postfix_expression INC_OP  */
  ------------------
  |  Branch (6111:3): [True: 184, False: 292M]
  ------------------
 6112|    184|#line 470 "MachineIndependent/glslang.y"
 6113|    184|                                {
 6114|    184|        parseContext.variableCheck((yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|    184|#define parseContext (*pParseContext)
  ------------------
 6115|    184|        parseContext.lValueErrorCheck((yyvsp[0].lex).loc, "++", (yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|    184|#define parseContext (*pParseContext)
  ------------------
 6116|    184|        (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[0].lex).loc, "++", EOpPostIncrement, (yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|    184|#define parseContext (*pParseContext)
  ------------------
 6117|    184|    }
 6118|    184|#line 6119 "MachineIndependent/glslang_tab.cpp"
 6119|    184|    break;
 6120|       |
 6121|    140|  case 28: /* postfix_expression: postfix_expression DEC_OP  */
  ------------------
  |  Branch (6121:3): [True: 140, False: 292M]
  ------------------
 6122|    140|#line 475 "MachineIndependent/glslang.y"
 6123|    140|                                {
 6124|    140|        parseContext.variableCheck((yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|    140|#define parseContext (*pParseContext)
  ------------------
 6125|    140|        parseContext.lValueErrorCheck((yyvsp[0].lex).loc, "--", (yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|    140|#define parseContext (*pParseContext)
  ------------------
 6126|    140|        (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[0].lex).loc, "--", EOpPostDecrement, (yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|    140|#define parseContext (*pParseContext)
  ------------------
 6127|    140|    }
 6128|    140|#line 6129 "MachineIndependent/glslang_tab.cpp"
 6129|    140|    break;
 6130|       |
 6131|  4.64k|  case 29: /* integer_expression: expression  */
  ------------------
  |  Branch (6131:3): [True: 4.64k, False: 292M]
  ------------------
 6132|  4.64k|#line 483 "MachineIndependent/glslang.y"
 6133|  4.64k|                 {
 6134|  4.64k|        parseContext.arrayIndexCheck((yyvsp[0].interm.intermTypedNode), "[]");
  ------------------
  |  |  783|  4.64k|#define parseContext (*pParseContext)
  ------------------
 6135|  4.64k|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6136|  4.64k|    }
 6137|  4.64k|#line 6138 "MachineIndependent/glslang_tab.cpp"
 6138|  4.64k|    break;
 6139|       |
 6140|   124k|  case 30: /* function_call: function_call_or_method  */
  ------------------
  |  Branch (6140:3): [True: 124k, False: 292M]
  ------------------
 6141|   124k|#line 490 "MachineIndependent/glslang.y"
 6142|   124k|                              {
 6143|   124k|        (yyval.interm.intermTypedNode) = parseContext.handleFunctionCall((yyvsp[0].interm).loc, (yyvsp[0].interm).function, (yyvsp[0].interm).intermNode);
  ------------------
  |  |  783|   124k|#define parseContext (*pParseContext)
  ------------------
 6144|   124k|        delete (yyvsp[0].interm).function;
 6145|   124k|    }
 6146|   124k|#line 6147 "MachineIndependent/glslang_tab.cpp"
 6147|   124k|    break;
 6148|       |
 6149|   124k|  case 31: /* function_call_or_method: function_call_generic  */
  ------------------
  |  Branch (6149:3): [True: 124k, False: 292M]
  ------------------
 6150|   124k|#line 497 "MachineIndependent/glslang.y"
 6151|   124k|                            {
 6152|   124k|        (yyval.interm) = (yyvsp[0].interm);
 6153|   124k|    }
 6154|   124k|#line 6155 "MachineIndependent/glslang_tab.cpp"
 6155|   124k|    break;
 6156|       |
 6157|   123k|  case 32: /* function_call_generic: function_call_header_with_parameters RIGHT_PAREN  */
  ------------------
  |  Branch (6157:3): [True: 123k, False: 292M]
  ------------------
 6158|   123k|#line 503 "MachineIndependent/glslang.y"
 6159|   123k|                                                       {
 6160|   123k|        (yyval.interm) = (yyvsp[-1].interm);
 6161|   123k|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6162|   123k|    }
 6163|   123k|#line 6164 "MachineIndependent/glslang_tab.cpp"
 6164|   123k|    break;
 6165|       |
 6166|  1.50k|  case 33: /* function_call_generic: function_call_header_no_parameters RIGHT_PAREN  */
  ------------------
  |  Branch (6166:3): [True: 1.50k, False: 292M]
  ------------------
 6167|  1.50k|#line 507 "MachineIndependent/glslang.y"
 6168|  1.50k|                                                     {
 6169|  1.50k|        (yyval.interm) = (yyvsp[-1].interm);
 6170|  1.50k|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6171|  1.50k|    }
 6172|  1.50k|#line 6173 "MachineIndependent/glslang_tab.cpp"
 6173|  1.50k|    break;
 6174|       |
 6175|      0|  case 34: /* function_call_header_no_parameters: function_call_header VOID  */
  ------------------
  |  Branch (6175:3): [True: 0, False: 292M]
  ------------------
 6176|      0|#line 514 "MachineIndependent/glslang.y"
 6177|      0|                                {
 6178|      0|        (yyval.interm) = (yyvsp[-1].interm);
 6179|      0|    }
 6180|      0|#line 6181 "MachineIndependent/glslang_tab.cpp"
 6181|      0|    break;
 6182|       |
 6183|  1.51k|  case 35: /* function_call_header_no_parameters: function_call_header  */
  ------------------
  |  Branch (6183:3): [True: 1.51k, False: 292M]
  ------------------
 6184|  1.51k|#line 517 "MachineIndependent/glslang.y"
 6185|  1.51k|                           {
 6186|  1.51k|        (yyval.interm) = (yyvsp[0].interm);
 6187|  1.51k|    }
 6188|  1.51k|#line 6189 "MachineIndependent/glslang_tab.cpp"
 6189|  1.51k|    break;
 6190|       |
 6191|   123k|  case 36: /* function_call_header_with_parameters: function_call_header assignment_expression  */
  ------------------
  |  Branch (6191:3): [True: 123k, False: 292M]
  ------------------
 6192|   123k|#line 523 "MachineIndependent/glslang.y"
 6193|   123k|                                                 {
 6194|   123k|        if (parseContext.spvVersion.vulkan > 0
  ------------------
  |  |  783|   123k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (6194:13): [True: 123k, False: 0]
  ------------------
 6195|   123k|            && parseContext.spvVersion.vulkanRelaxed
  ------------------
  |  |  783|   123k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (6195:16): [True: 0, False: 123k]
  ------------------
 6196|      0|            && (yyvsp[0].interm.intermTypedNode)->getType().containsOpaque())
  ------------------
  |  Branch (6196:16): [True: 0, False: 0]
  ------------------
 6197|      0|        {
 6198|      0|            (yyval.interm).intermNode = parseContext.vkRelaxedRemapFunctionArgument((yyval.interm).loc, (yyvsp[-1].interm).function, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6199|      0|            (yyval.interm).function = (yyvsp[-1].interm).function;
 6200|      0|        }
 6201|   123k|        else
 6202|   123k|        {
 6203|   123k|            TParameter param = { 0, new TType, {} };
 6204|   123k|            param.type->shallowCopy((yyvsp[0].interm.intermTypedNode)->getType());
 6205|       |
 6206|   123k|            (yyvsp[-1].interm).function->addParameter(param);
 6207|   123k|            (yyval.interm).function = (yyvsp[-1].interm).function;
 6208|   123k|            (yyval.interm).intermNode = (yyvsp[0].interm.intermTypedNode);
 6209|   123k|        }
 6210|   123k|    }
 6211|   123k|#line 6212 "MachineIndependent/glslang_tab.cpp"
 6212|   123k|    break;
 6213|       |
 6214|  84.2k|  case 37: /* function_call_header_with_parameters: function_call_header_with_parameters COMMA assignment_expression  */
  ------------------
  |  Branch (6214:3): [True: 84.2k, False: 292M]
  ------------------
 6215|  84.2k|#line 541 "MachineIndependent/glslang.y"
 6216|  84.2k|                                                                       {
 6217|  84.2k|        if (parseContext.spvVersion.vulkan > 0
  ------------------
  |  |  783|  84.2k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (6217:13): [True: 84.2k, False: 0]
  ------------------
 6218|  84.2k|            && parseContext.spvVersion.vulkanRelaxed
  ------------------
  |  |  783|  84.2k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (6218:16): [True: 0, False: 84.2k]
  ------------------
 6219|      0|            && (yyvsp[0].interm.intermTypedNode)->getType().containsOpaque())
  ------------------
  |  Branch (6219:16): [True: 0, False: 0]
  ------------------
 6220|      0|        {
 6221|      0|            TIntermNode* remappedNode = parseContext.vkRelaxedRemapFunctionArgument((yyvsp[-1].lex).loc, (yyvsp[-2].interm).function, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6222|      0|            if (remappedNode == (yyvsp[0].interm.intermTypedNode))
  ------------------
  |  Branch (6222:17): [True: 0, False: 0]
  ------------------
 6223|      0|                (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-2].interm).intermNode, (yyvsp[0].interm.intermTypedNode), (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6224|      0|            else
 6225|      0|                (yyval.interm).intermNode = parseContext.intermediate.mergeAggregate((yyvsp[-2].interm).intermNode, remappedNode, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6226|      0|            (yyval.interm).function = (yyvsp[-2].interm).function;
 6227|      0|        }
 6228|  84.2k|        else
 6229|  84.2k|        {
 6230|  84.2k|            TParameter param = { 0, new TType, {} };
 6231|  84.2k|            param.type->shallowCopy((yyvsp[0].interm.intermTypedNode)->getType());
 6232|       |
 6233|  84.2k|            (yyvsp[-2].interm).function->addParameter(param);
 6234|  84.2k|            (yyval.interm).function = (yyvsp[-2].interm).function;
 6235|  84.2k|            (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-2].interm).intermNode, (yyvsp[0].interm.intermTypedNode), (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|  84.2k|#define parseContext (*pParseContext)
  ------------------
 6236|  84.2k|        }
 6237|  84.2k|    }
 6238|  84.2k|#line 6239 "MachineIndependent/glslang_tab.cpp"
 6239|  84.2k|    break;
 6240|       |
 6241|   125k|  case 38: /* function_call_header: function_identifier LEFT_PAREN  */
  ------------------
  |  Branch (6241:3): [True: 125k, False: 292M]
  ------------------
 6242|   125k|#line 566 "MachineIndependent/glslang.y"
 6243|   125k|                                     {
 6244|   125k|        (yyval.interm) = (yyvsp[-1].interm);
 6245|   125k|    }
 6246|   125k|#line 6247 "MachineIndependent/glslang_tab.cpp"
 6247|   125k|    break;
 6248|       |
 6249|  76.5k|  case 39: /* function_identifier: type_specifier  */
  ------------------
  |  Branch (6249:3): [True: 76.5k, False: 292M]
  ------------------
 6250|  76.5k|#line 574 "MachineIndependent/glslang.y"
 6251|  76.5k|                     {
 6252|       |        // Constructor
 6253|  76.5k|        (yyval.interm).intermNode = 0;
 6254|  76.5k|        (yyval.interm).function = parseContext.handleConstructorCall((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type));
  ------------------
  |  |  783|  76.5k|#define parseContext (*pParseContext)
  ------------------
 6255|  76.5k|    }
 6256|  76.5k|#line 6257 "MachineIndependent/glslang_tab.cpp"
 6257|  76.5k|    break;
 6258|       |
 6259|  48.7k|  case 40: /* function_identifier: postfix_expression  */
  ------------------
  |  Branch (6259:3): [True: 48.7k, False: 292M]
  ------------------
 6260|  48.7k|#line 579 "MachineIndependent/glslang.y"
 6261|  48.7k|                         {
 6262|       |        //
 6263|       |        // Should be a method or subroutine call, but we haven't recognized the arguments yet.
 6264|       |        //
 6265|  48.7k|        (yyval.interm).function = 0;
 6266|  48.7k|        (yyval.interm).intermNode = 0;
 6267|       |
 6268|  48.7k|        TIntermMethod* method = (yyvsp[0].interm.intermTypedNode)->getAsMethodNode();
 6269|  48.7k|        if (method) {
  ------------------
  |  Branch (6269:13): [True: 345, False: 48.3k]
  ------------------
 6270|    345|            (yyval.interm).function = new TFunction(&method->getMethodName(), method->getType(), EOpArrayLength);
 6271|    345|            (yyval.interm).intermNode = method->getObject();
 6272|  48.3k|        } else {
 6273|  48.3k|            TIntermSymbol* symbol = (yyvsp[0].interm.intermTypedNode)->getAsSymbolNode();
 6274|  48.3k|            if (symbol) {
  ------------------
  |  Branch (6274:17): [True: 48.3k, False: 50]
  ------------------
 6275|  48.3k|                parseContext.reservedErrorCheck(symbol->getLoc(), symbol->getName());
  ------------------
  |  |  783|  48.3k|#define parseContext (*pParseContext)
  ------------------
 6276|  48.3k|                TFunction *function = new TFunction(&symbol->getName(), TType(EbtVoid));
 6277|  48.3k|                (yyval.interm).function = function;
 6278|  48.3k|            } else
 6279|     50|                parseContext.error((yyvsp[0].interm.intermTypedNode)->getLoc(), "function call, method, or subroutine call expected", "", "");
  ------------------
  |  |  783|     50|#define parseContext (*pParseContext)
  ------------------
 6280|  48.3k|        }
 6281|       |
 6282|  48.7k|        if ((yyval.interm).function == 0) {
  ------------------
  |  Branch (6282:13): [True: 50, False: 48.6k]
  ------------------
 6283|       |            // error recover
 6284|     50|            TString* empty = NewPoolTString("");
 6285|     50|            (yyval.interm).function = new TFunction(empty, TType(EbtVoid), EOpNull);
 6286|     50|        }
 6287|  48.7k|    }
 6288|  48.7k|#line 6289 "MachineIndependent/glslang_tab.cpp"
 6289|  48.7k|    break;
 6290|       |
 6291|      0|  case 41: /* function_identifier: non_uniform_qualifier  */
  ------------------
  |  Branch (6291:3): [True: 0, False: 292M]
  ------------------
 6292|      0|#line 606 "MachineIndependent/glslang.y"
 6293|      0|                            {
 6294|       |        // Constructor
 6295|      0|        (yyval.interm).intermNode = 0;
 6296|      0|        (yyval.interm).function = parseContext.handleConstructorCall((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6297|      0|    }
 6298|      0|#line 6299 "MachineIndependent/glslang_tab.cpp"
 6299|      0|    break;
 6300|       |
 6301|   822k|  case 42: /* unary_expression: postfix_expression  */
  ------------------
  |  Branch (6301:3): [True: 822k, False: 291M]
  ------------------
 6302|   822k|#line 614 "MachineIndependent/glslang.y"
 6303|   822k|                         {
 6304|   822k|        parseContext.variableCheck((yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|   822k|#define parseContext (*pParseContext)
  ------------------
 6305|   822k|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6306|   822k|        if (TIntermMethod* method = (yyvsp[0].interm.intermTypedNode)->getAsMethodNode())
  ------------------
  |  Branch (6306:28): [True: 3, False: 822k]
  ------------------
 6307|      3|            parseContext.error((yyvsp[0].interm.intermTypedNode)->getLoc(), "incomplete method syntax", method->getMethodName().c_str(), "");
  ------------------
  |  |  783|      3|#define parseContext (*pParseContext)
  ------------------
 6308|   822k|    }
 6309|   822k|#line 6310 "MachineIndependent/glslang_tab.cpp"
 6310|   822k|    break;
 6311|       |
 6312|  19.5k|  case 43: /* unary_expression: INC_OP unary_expression  */
  ------------------
  |  Branch (6312:3): [True: 19.5k, False: 292M]
  ------------------
 6313|  19.5k|#line 620 "MachineIndependent/glslang.y"
 6314|  19.5k|                              {
 6315|  19.5k|        parseContext.lValueErrorCheck((yyvsp[-1].lex).loc, "++", (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  19.5k|#define parseContext (*pParseContext)
  ------------------
 6316|  19.5k|        (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[-1].lex).loc, "++", EOpPreIncrement, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  19.5k|#define parseContext (*pParseContext)
  ------------------
 6317|  19.5k|    }
 6318|  19.5k|#line 6319 "MachineIndependent/glslang_tab.cpp"
 6319|  19.5k|    break;
 6320|       |
 6321|  17.6k|  case 44: /* unary_expression: DEC_OP unary_expression  */
  ------------------
  |  Branch (6321:3): [True: 17.6k, False: 292M]
  ------------------
 6322|  17.6k|#line 624 "MachineIndependent/glslang.y"
 6323|  17.6k|                              {
 6324|  17.6k|        parseContext.lValueErrorCheck((yyvsp[-1].lex).loc, "--", (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  17.6k|#define parseContext (*pParseContext)
  ------------------
 6325|  17.6k|        (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[-1].lex).loc, "--", EOpPreDecrement, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  17.6k|#define parseContext (*pParseContext)
  ------------------
 6326|  17.6k|    }
 6327|  17.6k|#line 6328 "MachineIndependent/glslang_tab.cpp"
 6328|  17.6k|    break;
 6329|       |
 6330|  24.0k|  case 45: /* unary_expression: unary_operator unary_expression  */
  ------------------
  |  Branch (6330:3): [True: 24.0k, False: 292M]
  ------------------
 6331|  24.0k|#line 628 "MachineIndependent/glslang.y"
 6332|  24.0k|                                      {
 6333|  24.0k|        if ((yyvsp[-1].interm).op != EOpNull) {
  ------------------
  |  Branch (6333:13): [True: 23.8k, False: 157]
  ------------------
 6334|  23.8k|            char errorOp[2] = {0, 0};
 6335|  23.8k|            switch((yyvsp[-1].interm).op) {
 6336|  23.6k|            case EOpNegative:   errorOp[0] = '-'; break;
  ------------------
  |  Branch (6336:13): [True: 23.6k, False: 158]
  ------------------
 6337|      9|            case EOpLogicalNot: errorOp[0] = '!'; break;
  ------------------
  |  Branch (6337:13): [True: 9, False: 23.8k]
  ------------------
 6338|    149|            case EOpBitwiseNot: errorOp[0] = '~'; break;
  ------------------
  |  Branch (6338:13): [True: 149, False: 23.6k]
  ------------------
 6339|      0|            default: break; // some compilers want this
  ------------------
  |  Branch (6339:13): [True: 0, False: 23.8k]
  ------------------
 6340|  23.8k|            }
 6341|  23.8k|            (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[-1].interm).loc, errorOp, (yyvsp[-1].interm).op, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  23.8k|#define parseContext (*pParseContext)
  ------------------
 6342|  23.8k|        } else {
 6343|    157|            (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6344|    157|            if ((yyval.interm.intermTypedNode)->getAsConstantUnion())
  ------------------
  |  Branch (6344:17): [True: 44, False: 113]
  ------------------
 6345|     44|                (yyval.interm.intermTypedNode)->getAsConstantUnion()->setExpression();
 6346|    157|        }
 6347|  24.0k|    }
 6348|  24.0k|#line 6349 "MachineIndependent/glslang_tab.cpp"
 6349|  24.0k|    break;
 6350|       |
 6351|  24.0k|  case 46: /* unary_expression: LEFT_PAREN type_specifier_nonarray RIGHT_PAREN unary_expression  */
  ------------------
  |  Branch (6351:3): [True: 0, False: 292M]
  ------------------
 6352|      0|#line 644 "MachineIndependent/glslang.y"
 6353|      0|                                                                      {
 6354|      0|        (yyval.interm.intermTypedNode) = parseContext.handleTypeCast((yyvsp[-3].lex).loc, new TType((yyvsp[-2].interm.type)), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6355|      0|    }
 6356|      0|#line 6357 "MachineIndependent/glslang_tab.cpp"
 6357|      0|    break;
 6358|       |
 6359|    157|  case 47: /* unary_operator: PLUS  */
  ------------------
  |  Branch (6359:3): [True: 157, False: 292M]
  ------------------
 6360|    157|#line 651 "MachineIndependent/glslang.y"
 6361|    157|            { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpNull; }
 6362|    157|#line 6363 "MachineIndependent/glslang_tab.cpp"
 6363|    157|    break;
 6364|       |
 6365|  23.6k|  case 48: /* unary_operator: DASH  */
  ------------------
  |  Branch (6365:3): [True: 23.6k, False: 292M]
  ------------------
 6366|  23.6k|#line 652 "MachineIndependent/glslang.y"
 6367|  23.6k|            { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpNegative; }
 6368|  23.6k|#line 6369 "MachineIndependent/glslang_tab.cpp"
 6369|  23.6k|    break;
 6370|       |
 6371|      9|  case 49: /* unary_operator: BANG  */
  ------------------
  |  Branch (6371:3): [True: 9, False: 292M]
  ------------------
 6372|      9|#line 653 "MachineIndependent/glslang.y"
 6373|      9|            { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpLogicalNot; }
 6374|      9|#line 6375 "MachineIndependent/glslang_tab.cpp"
 6375|      9|    break;
 6376|       |
 6377|    149|  case 50: /* unary_operator: TILDE  */
  ------------------
  |  Branch (6377:3): [True: 149, False: 292M]
  ------------------
 6378|    149|#line 654 "MachineIndependent/glslang.y"
 6379|    149|            { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpBitwiseNot;
 6380|    149|              parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise not"); }
  ------------------
  |  |  783|    149|#define parseContext (*pParseContext)
  ------------------
 6381|    149|#line 6382 "MachineIndependent/glslang_tab.cpp"
 6382|    149|    break;
 6383|       |
 6384|   779k|  case 51: /* multiplicative_expression: unary_expression  */
  ------------------
  |  Branch (6384:3): [True: 779k, False: 291M]
  ------------------
 6385|   779k|#line 660 "MachineIndependent/glslang.y"
 6386|   779k|                       { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6387|   779k|#line 6388 "MachineIndependent/glslang_tab.cpp"
 6388|   779k|    break;
 6389|       |
 6390|  2.74k|  case 52: /* multiplicative_expression: multiplicative_expression STAR unary_expression  */
  ------------------
  |  Branch (6390:3): [True: 2.74k, False: 292M]
  ------------------
 6391|  2.74k|#line 661 "MachineIndependent/glslang.y"
 6392|  2.74k|                                                      {
 6393|  2.74k|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "*", EOpMul, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  2.74k|#define parseContext (*pParseContext)
  ------------------
 6394|  2.74k|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6394:13): [True: 440, False: 2.30k]
  ------------------
 6395|    440|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6396|  2.74k|    }
 6397|  2.74k|#line 6398 "MachineIndependent/glslang_tab.cpp"
 6398|  2.74k|    break;
 6399|       |
 6400|    450|  case 53: /* multiplicative_expression: multiplicative_expression SLASH unary_expression  */
  ------------------
  |  Branch (6400:3): [True: 450, False: 292M]
  ------------------
 6401|    450|#line 666 "MachineIndependent/glslang.y"
 6402|    450|                                                       {
 6403|    450|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "/", EOpDiv, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    450|#define parseContext (*pParseContext)
  ------------------
 6404|    450|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6404:13): [True: 0, False: 450]
  ------------------
 6405|      0|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6406|    450|    }
 6407|    450|#line 6408 "MachineIndependent/glslang_tab.cpp"
 6408|    450|    break;
 6409|       |
 6410|    966|  case 54: /* multiplicative_expression: multiplicative_expression PERCENT unary_expression  */
  ------------------
  |  Branch (6410:3): [True: 966, False: 292M]
  ------------------
 6411|    966|#line 671 "MachineIndependent/glslang.y"
 6412|    966|                                                         {
 6413|    966|        parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "%");
  ------------------
  |  |  783|    966|#define parseContext (*pParseContext)
  ------------------
 6414|    966|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "%", EOpMod, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    966|#define parseContext (*pParseContext)
  ------------------
 6415|    966|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6415:13): [True: 11, False: 955]
  ------------------
 6416|     11|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6417|    966|    }
 6418|    966|#line 6419 "MachineIndependent/glslang_tab.cpp"
 6419|    966|    break;
 6420|       |
 6421|   773k|  case 55: /* additive_expression: multiplicative_expression  */
  ------------------
  |  Branch (6421:3): [True: 773k, False: 291M]
  ------------------
 6422|   773k|#line 680 "MachineIndependent/glslang.y"
 6423|   773k|                                { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6424|   773k|#line 6425 "MachineIndependent/glslang_tab.cpp"
 6425|   773k|    break;
 6426|       |
 6427|  3.48k|  case 56: /* additive_expression: additive_expression PLUS multiplicative_expression  */
  ------------------
  |  Branch (6427:3): [True: 3.48k, False: 292M]
  ------------------
 6428|  3.48k|#line 681 "MachineIndependent/glslang.y"
 6429|  3.48k|                                                         {
 6430|  3.48k|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "+", EOpAdd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  3.48k|#define parseContext (*pParseContext)
  ------------------
 6431|  3.48k|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6431:13): [True: 257, False: 3.22k]
  ------------------
 6432|    257|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6433|  3.48k|    }
 6434|  3.48k|#line 6435 "MachineIndependent/glslang_tab.cpp"
 6435|  3.48k|    break;
 6436|       |
 6437|  2.84k|  case 57: /* additive_expression: additive_expression DASH multiplicative_expression  */
  ------------------
  |  Branch (6437:3): [True: 2.84k, False: 292M]
  ------------------
 6438|  2.84k|#line 686 "MachineIndependent/glslang.y"
 6439|  2.84k|                                                         {
 6440|  2.84k|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "-", EOpSub, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  2.84k|#define parseContext (*pParseContext)
  ------------------
 6441|  2.84k|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6441:13): [True: 492, False: 2.35k]
  ------------------
 6442|    492|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6443|  2.84k|    }
 6444|  2.84k|#line 6445 "MachineIndependent/glslang_tab.cpp"
 6445|  2.84k|    break;
 6446|       |
 6447|   772k|  case 58: /* shift_expression: additive_expression  */
  ------------------
  |  Branch (6447:3): [True: 772k, False: 291M]
  ------------------
 6448|   772k|#line 694 "MachineIndependent/glslang.y"
 6449|   772k|                          { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6450|   772k|#line 6451 "MachineIndependent/glslang_tab.cpp"
 6451|   772k|    break;
 6452|       |
 6453|    374|  case 59: /* shift_expression: shift_expression LEFT_OP additive_expression  */
  ------------------
  |  Branch (6453:3): [True: 374, False: 292M]
  ------------------
 6454|    374|#line 695 "MachineIndependent/glslang.y"
 6455|    374|                                                   {
 6456|    374|        parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bit shift left");
  ------------------
  |  |  783|    374|#define parseContext (*pParseContext)
  ------------------
 6457|    374|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "<<", EOpLeftShift, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    374|#define parseContext (*pParseContext)
  ------------------
 6458|    374|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6458:13): [True: 19, False: 355]
  ------------------
 6459|     19|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6460|    374|    }
 6461|    374|#line 6462 "MachineIndependent/glslang_tab.cpp"
 6462|    374|    break;
 6463|       |
 6464|     83|  case 60: /* shift_expression: shift_expression RIGHT_OP additive_expression  */
  ------------------
  |  Branch (6464:3): [True: 83, False: 292M]
  ------------------
 6465|     83|#line 701 "MachineIndependent/glslang.y"
 6466|     83|                                                    {
 6467|     83|        parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bit shift right");
  ------------------
  |  |  783|     83|#define parseContext (*pParseContext)
  ------------------
 6468|     83|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, ">>", EOpRightShift, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|     83|#define parseContext (*pParseContext)
  ------------------
 6469|     83|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6469:13): [True: 0, False: 83]
  ------------------
 6470|      0|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6471|     83|    }
 6472|     83|#line 6473 "MachineIndependent/glslang_tab.cpp"
 6473|     83|    break;
 6474|       |
 6475|   770k|  case 61: /* relational_expression: shift_expression  */
  ------------------
  |  Branch (6475:3): [True: 770k, False: 291M]
  ------------------
 6476|   770k|#line 710 "MachineIndependent/glslang.y"
 6477|   770k|                       { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6478|   770k|#line 6479 "MachineIndependent/glslang_tab.cpp"
 6479|   770k|    break;
 6480|       |
 6481|    336|  case 62: /* relational_expression: relational_expression LEFT_ANGLE shift_expression  */
  ------------------
  |  Branch (6481:3): [True: 336, False: 292M]
  ------------------
 6482|    336|#line 711 "MachineIndependent/glslang.y"
 6483|    336|                                                        {
 6484|    336|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "<", EOpLessThan, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    336|#define parseContext (*pParseContext)
  ------------------
 6485|    336|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6485:13): [True: 35, False: 301]
  ------------------
 6486|     35|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     35|#define parseContext (*pParseContext)
  ------------------
 6487|    336|    }
 6488|    336|#line 6489 "MachineIndependent/glslang_tab.cpp"
 6489|    336|    break;
 6490|       |
 6491|  1.18k|  case 63: /* relational_expression: relational_expression RIGHT_ANGLE shift_expression  */
  ------------------
  |  Branch (6491:3): [True: 1.18k, False: 292M]
  ------------------
 6492|  1.18k|#line 716 "MachineIndependent/glslang.y"
 6493|  1.18k|                                                          {
 6494|  1.18k|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, ">", EOpGreaterThan, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  1.18k|#define parseContext (*pParseContext)
  ------------------
 6495|  1.18k|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6495:13): [True: 40, False: 1.14k]
  ------------------
 6496|     40|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     40|#define parseContext (*pParseContext)
  ------------------
 6497|  1.18k|    }
 6498|  1.18k|#line 6499 "MachineIndependent/glslang_tab.cpp"
 6499|  1.18k|    break;
 6500|       |
 6501|    163|  case 64: /* relational_expression: relational_expression LE_OP shift_expression  */
  ------------------
  |  Branch (6501:3): [True: 163, False: 292M]
  ------------------
 6502|    163|#line 721 "MachineIndependent/glslang.y"
 6503|    163|                                                    {
 6504|    163|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "<=", EOpLessThanEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    163|#define parseContext (*pParseContext)
  ------------------
 6505|    163|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6505:13): [True: 4, False: 159]
  ------------------
 6506|      4|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 6507|    163|    }
 6508|    163|#line 6509 "MachineIndependent/glslang_tab.cpp"
 6509|    163|    break;
 6510|       |
 6511|    143|  case 65: /* relational_expression: relational_expression GE_OP shift_expression  */
  ------------------
  |  Branch (6511:3): [True: 143, False: 292M]
  ------------------
 6512|    143|#line 726 "MachineIndependent/glslang.y"
 6513|    143|                                                    {
 6514|    143|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, ">=", EOpGreaterThanEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    143|#define parseContext (*pParseContext)
  ------------------
 6515|    143|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6515:13): [True: 20, False: 123]
  ------------------
 6516|     20|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     20|#define parseContext (*pParseContext)
  ------------------
 6517|    143|    }
 6518|    143|#line 6519 "MachineIndependent/glslang_tab.cpp"
 6519|    143|    break;
 6520|       |
 6521|   768k|  case 66: /* equality_expression: relational_expression  */
  ------------------
  |  Branch (6521:3): [True: 768k, False: 291M]
  ------------------
 6522|   768k|#line 734 "MachineIndependent/glslang.y"
 6523|   768k|                            { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6524|   768k|#line 6525 "MachineIndependent/glslang_tab.cpp"
 6525|   768k|    break;
 6526|       |
 6527|  1.44k|  case 67: /* equality_expression: equality_expression EQ_OP relational_expression  */
  ------------------
  |  Branch (6527:3): [True: 1.44k, False: 292M]
  ------------------
 6528|  1.44k|#line 735 "MachineIndependent/glslang.y"
 6529|  1.44k|                                                       {
 6530|  1.44k|        parseContext.arrayObjectCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "array comparison");
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 6531|  1.44k|        parseContext.opaqueCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "==");
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 6532|  1.44k|        parseContext.specializationCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "==");
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 6533|  1.44k|        parseContext.referenceCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "==");
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 6534|  1.44k|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "==", EOpEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 6535|  1.44k|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6535:13): [True: 60, False: 1.38k]
  ------------------
 6536|     60|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     60|#define parseContext (*pParseContext)
  ------------------
 6537|  1.44k|    }
 6538|  1.44k|#line 6539 "MachineIndependent/glslang_tab.cpp"
 6539|  1.44k|    break;
 6540|       |
 6541|    921|  case 68: /* equality_expression: equality_expression NE_OP relational_expression  */
  ------------------
  |  Branch (6541:3): [True: 921, False: 292M]
  ------------------
 6542|    921|#line 744 "MachineIndependent/glslang.y"
 6543|    921|                                                      {
 6544|    921|        parseContext.arrayObjectCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "array comparison");
  ------------------
  |  |  783|    921|#define parseContext (*pParseContext)
  ------------------
 6545|    921|        parseContext.opaqueCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "!=");
  ------------------
  |  |  783|    921|#define parseContext (*pParseContext)
  ------------------
 6546|    921|        parseContext.specializationCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "!=");
  ------------------
  |  |  783|    921|#define parseContext (*pParseContext)
  ------------------
 6547|    921|        parseContext.referenceCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "!=");
  ------------------
  |  |  783|    921|#define parseContext (*pParseContext)
  ------------------
 6548|    921|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "!=", EOpNotEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    921|#define parseContext (*pParseContext)
  ------------------
 6549|    921|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6549:13): [True: 13, False: 908]
  ------------------
 6550|     13|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     13|#define parseContext (*pParseContext)
  ------------------
 6551|    921|    }
 6552|    921|#line 6553 "MachineIndependent/glslang_tab.cpp"
 6553|    921|    break;
 6554|       |
 6555|   768k|  case 69: /* and_expression: equality_expression  */
  ------------------
  |  Branch (6555:3): [True: 768k, False: 291M]
  ------------------
 6556|   768k|#line 756 "MachineIndependent/glslang.y"
 6557|   768k|                          { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6558|   768k|#line 6559 "MachineIndependent/glslang_tab.cpp"
 6559|   768k|    break;
 6560|       |
 6561|    221|  case 70: /* and_expression: and_expression AMPERSAND equality_expression  */
  ------------------
  |  Branch (6561:3): [True: 221, False: 292M]
  ------------------
 6562|    221|#line 757 "MachineIndependent/glslang.y"
 6563|    221|                                                   {
 6564|    221|        parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bitwise and");
  ------------------
  |  |  783|    221|#define parseContext (*pParseContext)
  ------------------
 6565|    221|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "&", EOpAnd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    221|#define parseContext (*pParseContext)
  ------------------
 6566|    221|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6566:13): [True: 25, False: 196]
  ------------------
 6567|     25|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6568|    221|    }
 6569|    221|#line 6570 "MachineIndependent/glslang_tab.cpp"
 6570|    221|    break;
 6571|       |
 6572|   768k|  case 71: /* exclusive_or_expression: and_expression  */
  ------------------
  |  Branch (6572:3): [True: 768k, False: 291M]
  ------------------
 6573|   768k|#line 766 "MachineIndependent/glslang.y"
 6574|   768k|                     { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6575|   768k|#line 6576 "MachineIndependent/glslang_tab.cpp"
 6576|   768k|    break;
 6577|       |
 6578|    142|  case 72: /* exclusive_or_expression: exclusive_or_expression CARET and_expression  */
  ------------------
  |  Branch (6578:3): [True: 142, False: 292M]
  ------------------
 6579|    142|#line 767 "MachineIndependent/glslang.y"
 6580|    142|                                                   {
 6581|    142|        parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bitwise exclusive or");
  ------------------
  |  |  783|    142|#define parseContext (*pParseContext)
  ------------------
 6582|    142|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "^", EOpExclusiveOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    142|#define parseContext (*pParseContext)
  ------------------
 6583|    142|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6583:13): [True: 43, False: 99]
  ------------------
 6584|     43|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6585|    142|    }
 6586|    142|#line 6587 "MachineIndependent/glslang_tab.cpp"
 6587|    142|    break;
 6588|       |
 6589|   767k|  case 73: /* inclusive_or_expression: exclusive_or_expression  */
  ------------------
  |  Branch (6589:3): [True: 767k, False: 291M]
  ------------------
 6590|   767k|#line 776 "MachineIndependent/glslang.y"
 6591|   767k|                              { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6592|   767k|#line 6593 "MachineIndependent/glslang_tab.cpp"
 6593|   767k|    break;
 6594|       |
 6595|    188|  case 74: /* inclusive_or_expression: inclusive_or_expression VERTICAL_BAR exclusive_or_expression  */
  ------------------
  |  Branch (6595:3): [True: 188, False: 292M]
  ------------------
 6596|    188|#line 777 "MachineIndependent/glslang.y"
 6597|    188|                                                                   {
 6598|    188|        parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bitwise inclusive or");
  ------------------
  |  |  783|    188|#define parseContext (*pParseContext)
  ------------------
 6599|    188|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "|", EOpInclusiveOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    188|#define parseContext (*pParseContext)
  ------------------
 6600|    188|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6600:13): [True: 27, False: 161]
  ------------------
 6601|     27|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6602|    188|    }
 6603|    188|#line 6604 "MachineIndependent/glslang_tab.cpp"
 6604|    188|    break;
 6605|       |
 6606|   767k|  case 75: /* logical_and_expression: inclusive_or_expression  */
  ------------------
  |  Branch (6606:3): [True: 767k, False: 291M]
  ------------------
 6607|   767k|#line 786 "MachineIndependent/glslang.y"
 6608|   767k|                              { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6609|   767k|#line 6610 "MachineIndependent/glslang_tab.cpp"
 6610|   767k|    break;
 6611|       |
 6612|     82|  case 76: /* logical_and_expression: logical_and_expression AND_OP inclusive_or_expression  */
  ------------------
  |  Branch (6612:3): [True: 82, False: 292M]
  ------------------
 6613|     82|#line 787 "MachineIndependent/glslang.y"
 6614|     82|                                                            {
 6615|     82|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "&&", EOpLogicalAnd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|     82|#define parseContext (*pParseContext)
  ------------------
 6616|     82|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6616:13): [True: 0, False: 82]
  ------------------
 6617|      0|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6618|     82|    }
 6619|     82|#line 6620 "MachineIndependent/glslang_tab.cpp"
 6620|     82|    break;
 6621|       |
 6622|   767k|  case 77: /* logical_xor_expression: logical_and_expression  */
  ------------------
  |  Branch (6622:3): [True: 767k, False: 291M]
  ------------------
 6623|   767k|#line 795 "MachineIndependent/glslang.y"
 6624|   767k|                             { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6625|   767k|#line 6626 "MachineIndependent/glslang_tab.cpp"
 6626|   767k|    break;
 6627|       |
 6628|      7|  case 78: /* logical_xor_expression: logical_xor_expression XOR_OP logical_and_expression  */
  ------------------
  |  Branch (6628:3): [True: 7, False: 292M]
  ------------------
 6629|      7|#line 796 "MachineIndependent/glslang.y"
 6630|      7|                                                            {
 6631|      7|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "^^", EOpLogicalXor, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      7|#define parseContext (*pParseContext)
  ------------------
 6632|      7|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6632:13): [True: 0, False: 7]
  ------------------
 6633|      0|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6634|      7|    }
 6635|      7|#line 6636 "MachineIndependent/glslang_tab.cpp"
 6636|      7|    break;
 6637|       |
 6638|   767k|  case 79: /* logical_or_expression: logical_xor_expression  */
  ------------------
  |  Branch (6638:3): [True: 767k, False: 291M]
  ------------------
 6639|   767k|#line 804 "MachineIndependent/glslang.y"
 6640|   767k|                             { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6641|   767k|#line 6642 "MachineIndependent/glslang_tab.cpp"
 6642|   767k|    break;
 6643|       |
 6644|     31|  case 80: /* logical_or_expression: logical_or_expression OR_OP logical_xor_expression  */
  ------------------
  |  Branch (6644:3): [True: 31, False: 292M]
  ------------------
 6645|     31|#line 805 "MachineIndependent/glslang.y"
 6646|     31|                                                          {
 6647|     31|        (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "||", EOpLogicalOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|     31|#define parseContext (*pParseContext)
  ------------------
 6648|     31|        if ((yyval.interm.intermTypedNode) == 0)
  ------------------
  |  Branch (6648:13): [True: 18, False: 13]
  ------------------
 6649|     18|            (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     18|#define parseContext (*pParseContext)
  ------------------
 6650|     31|    }
 6651|     31|#line 6652 "MachineIndependent/glslang_tab.cpp"
 6652|     31|    break;
 6653|       |
 6654|   767k|  case 81: /* conditional_expression: logical_or_expression  */
  ------------------
  |  Branch (6654:3): [True: 767k, False: 291M]
  ------------------
 6655|   767k|#line 813 "MachineIndependent/glslang.y"
 6656|   767k|                            { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6657|   767k|#line 6658 "MachineIndependent/glslang_tab.cpp"
 6658|   767k|    break;
 6659|       |
 6660|     90|  case 82: /* $@1: %empty  */
  ------------------
  |  Branch (6660:3): [True: 90, False: 292M]
  ------------------
 6661|     90|#line 814 "MachineIndependent/glslang.y"
 6662|     90|                                     {
 6663|     90|        ++parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     90|#define parseContext (*pParseContext)
  ------------------
 6664|     90|    }
 6665|     90|#line 6666 "MachineIndependent/glslang_tab.cpp"
 6666|     90|    break;
 6667|       |
 6668|     88|  case 83: /* conditional_expression: logical_or_expression QUESTION $@1 expression COLON assignment_expression  */
  ------------------
  |  Branch (6668:3): [True: 88, False: 292M]
  ------------------
 6669|     88|#line 817 "MachineIndependent/glslang.y"
 6670|     88|                                             {
 6671|     88|        --parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     88|#define parseContext (*pParseContext)
  ------------------
 6672|     88|        parseContext.boolCheck((yyvsp[-4].lex).loc, (yyvsp[-5].interm.intermTypedNode));
  ------------------
  |  |  783|     88|#define parseContext (*pParseContext)
  ------------------
 6673|     88|        parseContext.rValueErrorCheck((yyvsp[-4].lex).loc, "?", (yyvsp[-5].interm.intermTypedNode));
  ------------------
  |  |  783|     88|#define parseContext (*pParseContext)
  ------------------
 6674|     88|        parseContext.rValueErrorCheck((yyvsp[-1].lex).loc, ":", (yyvsp[-2].interm.intermTypedNode));
  ------------------
  |  |  783|     88|#define parseContext (*pParseContext)
  ------------------
 6675|     88|        parseContext.rValueErrorCheck((yyvsp[-1].lex).loc, ":", (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|     88|#define parseContext (*pParseContext)
  ------------------
 6676|     88|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addSelection((yyvsp[-5].interm.intermTypedNode), (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yyvsp[-4].lex).loc);
  ------------------
  |  |  783|     88|#define parseContext (*pParseContext)
  ------------------
 6677|     88|        if ((yyval.interm.intermTypedNode) == 0) {
  ------------------
  |  Branch (6677:13): [True: 9, False: 79]
  ------------------
 6678|      9|            parseContext.binaryOpError((yyvsp[-4].lex).loc, ":", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|      9|#define parseContext (*pParseContext)
  ------------------
                          parseContext.binaryOpError((yyvsp[-4].lex).loc, ":", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|      9|#define parseContext (*pParseContext)
  ------------------
                          parseContext.binaryOpError((yyvsp[-4].lex).loc, ":", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|      9|#define parseContext (*pParseContext)
  ------------------
 6679|      9|            (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6680|      9|        }
 6681|     88|    }
 6682|     88|#line 6683 "MachineIndependent/glslang_tab.cpp"
 6683|     88|    break;
 6684|       |
 6685|   686k|  case 84: /* assignment_expression: conditional_expression  */
  ------------------
  |  Branch (6685:3): [True: 686k, False: 291M]
  ------------------
 6686|   686k|#line 832 "MachineIndependent/glslang.y"
 6687|   686k|                             { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
 6688|   686k|#line 6689 "MachineIndependent/glslang_tab.cpp"
 6689|   686k|    break;
 6690|       |
 6691|  31.1k|  case 85: /* assignment_expression: unary_expression assignment_operator assignment_expression  */
  ------------------
  |  Branch (6691:3): [True: 31.1k, False: 292M]
  ------------------
 6692|  31.1k|#line 833 "MachineIndependent/glslang.y"
 6693|  31.1k|                                                                 {
 6694|  31.1k|        parseContext.arrayObjectCheck((yyvsp[-1].interm).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "array assignment");
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
 6695|  31.1k|        parseContext.opaqueCheck((yyvsp[-1].interm).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "=");
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
 6696|  31.1k|        parseContext.storage16BitAssignmentCheck((yyvsp[-1].interm).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "=");
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
 6697|  31.1k|        parseContext.specializationCheck((yyvsp[-1].interm).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "=");
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
 6698|  31.1k|        parseContext.lValueErrorCheck((yyvsp[-1].interm).loc, "assign", (yyvsp[-2].interm.intermTypedNode));
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
 6699|  31.1k|        parseContext.rValueErrorCheck((yyvsp[-1].interm).loc, "assign", (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
 6700|  31.1k|        (yyval.interm.intermTypedNode) = parseContext.addAssign((yyvsp[-1].interm).loc, (yyvsp[-1].interm).op, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
 6701|  31.1k|        if ((yyval.interm.intermTypedNode) == 0) {
  ------------------
  |  Branch (6701:13): [True: 4.64k, False: 26.4k]
  ------------------
 6702|  4.64k|            parseContext.assignError((yyvsp[-1].interm).loc, "assign", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|  4.64k|#define parseContext (*pParseContext)
  ------------------
                          parseContext.assignError((yyvsp[-1].interm).loc, "assign", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|  4.64k|#define parseContext (*pParseContext)
  ------------------
                          parseContext.assignError((yyvsp[-1].interm).loc, "assign", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|  4.64k|#define parseContext (*pParseContext)
  ------------------
 6703|  4.64k|            (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
 6704|  4.64k|        }
 6705|  31.1k|    }
 6706|  31.1k|#line 6707 "MachineIndependent/glslang_tab.cpp"
 6707|  31.1k|    break;
 6708|       |
 6709|  22.8k|  case 86: /* assignment_operator: EQUAL  */
  ------------------
  |  Branch (6709:3): [True: 22.8k, False: 292M]
  ------------------
 6710|  22.8k|#line 849 "MachineIndependent/glslang.y"
 6711|  22.8k|            {
 6712|  22.8k|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6713|  22.8k|        (yyval.interm).op = EOpAssign;
 6714|  22.8k|    }
 6715|  22.8k|#line 6716 "MachineIndependent/glslang_tab.cpp"
 6716|  22.8k|    break;
 6717|       |
 6718|    305|  case 87: /* assignment_operator: MUL_ASSIGN  */
  ------------------
  |  Branch (6718:3): [True: 305, False: 292M]
  ------------------
 6719|    305|#line 853 "MachineIndependent/glslang.y"
 6720|    305|                 {
 6721|    305|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6722|    305|        (yyval.interm).op = EOpMulAssign;
 6723|    305|    }
 6724|    305|#line 6725 "MachineIndependent/glslang_tab.cpp"
 6725|    305|    break;
 6726|       |
 6727|    147|  case 88: /* assignment_operator: DIV_ASSIGN  */
  ------------------
  |  Branch (6727:3): [True: 147, False: 292M]
  ------------------
 6728|    147|#line 857 "MachineIndependent/glslang.y"
 6729|    147|                 {
 6730|    147|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6731|    147|        (yyval.interm).op = EOpDivAssign;
 6732|    147|    }
 6733|    147|#line 6734 "MachineIndependent/glslang_tab.cpp"
 6734|    147|    break;
 6735|       |
 6736|    110|  case 89: /* assignment_operator: MOD_ASSIGN  */
  ------------------
  |  Branch (6736:3): [True: 110, False: 292M]
  ------------------
 6737|    110|#line 861 "MachineIndependent/glslang.y"
 6738|    110|                 {
 6739|    110|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "%=");
  ------------------
  |  |  783|    110|#define parseContext (*pParseContext)
  ------------------
 6740|    110|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6741|    110|        (yyval.interm).op = EOpModAssign;
 6742|    110|    }
 6743|    110|#line 6744 "MachineIndependent/glslang_tab.cpp"
 6744|    110|    break;
 6745|       |
 6746|  7.04k|  case 90: /* assignment_operator: ADD_ASSIGN  */
  ------------------
  |  Branch (6746:3): [True: 7.04k, False: 292M]
  ------------------
 6747|  7.04k|#line 866 "MachineIndependent/glslang.y"
 6748|  7.04k|                 {
 6749|  7.04k|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6750|  7.04k|        (yyval.interm).op = EOpAddAssign;
 6751|  7.04k|    }
 6752|  7.04k|#line 6753 "MachineIndependent/glslang_tab.cpp"
 6753|  7.04k|    break;
 6754|       |
 6755|    162|  case 91: /* assignment_operator: SUB_ASSIGN  */
  ------------------
  |  Branch (6755:3): [True: 162, False: 292M]
  ------------------
 6756|    162|#line 870 "MachineIndependent/glslang.y"
 6757|    162|                 {
 6758|    162|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6759|    162|        (yyval.interm).op = EOpSubAssign;
 6760|    162|    }
 6761|    162|#line 6762 "MachineIndependent/glslang_tab.cpp"
 6762|    162|    break;
 6763|       |
 6764|    110|  case 92: /* assignment_operator: LEFT_ASSIGN  */
  ------------------
  |  Branch (6764:3): [True: 110, False: 292M]
  ------------------
 6765|    110|#line 874 "MachineIndependent/glslang.y"
 6766|    110|                  {
 6767|    110|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bit-shift left assign");
  ------------------
  |  |  783|    110|#define parseContext (*pParseContext)
  ------------------
 6768|    110|        (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpLeftShiftAssign;
 6769|    110|    }
 6770|    110|#line 6771 "MachineIndependent/glslang_tab.cpp"
 6771|    110|    break;
 6772|       |
 6773|    110|  case 93: /* assignment_operator: RIGHT_ASSIGN  */
  ------------------
  |  Branch (6773:3): [True: 110, False: 292M]
  ------------------
 6774|    110|#line 878 "MachineIndependent/glslang.y"
 6775|    110|                   {
 6776|    110|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bit-shift right assign");
  ------------------
  |  |  783|    110|#define parseContext (*pParseContext)
  ------------------
 6777|    110|        (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpRightShiftAssign;
 6778|    110|    }
 6779|    110|#line 6780 "MachineIndependent/glslang_tab.cpp"
 6780|    110|    break;
 6781|       |
 6782|    102|  case 94: /* assignment_operator: AND_ASSIGN  */
  ------------------
  |  Branch (6782:3): [True: 102, False: 292M]
  ------------------
 6783|    102|#line 882 "MachineIndependent/glslang.y"
 6784|    102|                 {
 6785|    102|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise-and assign");
  ------------------
  |  |  783|    102|#define parseContext (*pParseContext)
  ------------------
 6786|    102|        (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpAndAssign;
 6787|    102|    }
 6788|    102|#line 6789 "MachineIndependent/glslang_tab.cpp"
 6789|    102|    break;
 6790|       |
 6791|    100|  case 95: /* assignment_operator: XOR_ASSIGN  */
  ------------------
  |  Branch (6791:3): [True: 100, False: 292M]
  ------------------
 6792|    100|#line 886 "MachineIndependent/glslang.y"
 6793|    100|                 {
 6794|    100|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise-xor assign");
  ------------------
  |  |  783|    100|#define parseContext (*pParseContext)
  ------------------
 6795|    100|        (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpExclusiveOrAssign;
 6796|    100|    }
 6797|    100|#line 6798 "MachineIndependent/glslang_tab.cpp"
 6798|    100|    break;
 6799|       |
 6800|    169|  case 96: /* assignment_operator: OR_ASSIGN  */
  ------------------
  |  Branch (6800:3): [True: 169, False: 292M]
  ------------------
 6801|    169|#line 890 "MachineIndependent/glslang.y"
 6802|    169|                {
 6803|    169|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise-or assign");
  ------------------
  |  |  783|    169|#define parseContext (*pParseContext)
  ------------------
 6804|    169|        (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpInclusiveOrAssign;
 6805|    169|    }
 6806|    169|#line 6807 "MachineIndependent/glslang_tab.cpp"
 6807|    169|    break;
 6808|       |
 6809|  59.1k|  case 97: /* expression: assignment_expression  */
  ------------------
  |  Branch (6809:3): [True: 59.1k, False: 292M]
  ------------------
 6810|  59.1k|#line 897 "MachineIndependent/glslang.y"
 6811|  59.1k|                            {
 6812|  59.1k|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6813|  59.1k|    }
 6814|  59.1k|#line 6815 "MachineIndependent/glslang_tab.cpp"
 6815|  59.1k|    break;
 6816|       |
 6817|     28|  case 98: /* expression: expression COMMA assignment_expression  */
  ------------------
  |  Branch (6817:3): [True: 28, False: 292M]
  ------------------
 6818|     28|#line 900 "MachineIndependent/glslang.y"
 6819|     28|                                             {
 6820|     28|        parseContext.samplerConstructorLocationCheck((yyvsp[-1].lex).loc, ",", (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|     28|#define parseContext (*pParseContext)
  ------------------
 6821|     28|        (yyval.interm.intermTypedNode) = parseContext.intermediate.addComma((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     28|#define parseContext (*pParseContext)
  ------------------
 6822|     28|        if ((yyval.interm.intermTypedNode) == 0) {
  ------------------
  |  Branch (6822:13): [True: 0, False: 28]
  ------------------
 6823|      0|            parseContext.binaryOpError((yyvsp[-1].lex).loc, ",", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                          parseContext.binaryOpError((yyvsp[-1].lex).loc, ",", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                          parseContext.binaryOpError((yyvsp[-1].lex).loc, ",", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()), (yyvsp[0].interm.intermTypedNode)->getCompleteString(parseContext.intermediate.getEnhancedMsgs()));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6824|      0|            (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6825|      0|        }
 6826|     28|    }
 6827|     28|#line 6828 "MachineIndependent/glslang_tab.cpp"
 6828|     28|    break;
 6829|       |
 6830|      0|  case 99: /* constant_expression: conditional_expression  */
  ------------------
  |  Branch (6830:3): [True: 0, False: 292M]
  ------------------
 6831|      0|#line 911 "MachineIndependent/glslang.y"
 6832|      0|                             {
 6833|      0|        parseContext.constantValueCheck((yyvsp[0].interm.intermTypedNode), "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6834|      0|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
 6835|      0|    }
 6836|      0|#line 6837 "MachineIndependent/glslang_tab.cpp"
 6837|      0|    break;
 6838|       |
 6839|  9.97M|  case 100: /* declaration: function_prototype SEMICOLON  */
  ------------------
  |  Branch (6839:3): [True: 9.97M, False: 282M]
  ------------------
 6840|  9.97M|#line 918 "MachineIndependent/glslang.y"
 6841|  9.97M|                                   {
 6842|  9.97M|        parseContext.handleFunctionDeclarator((yyvsp[-1].interm).loc, *(yyvsp[-1].interm).function, true /* prototype */);
  ------------------
  |  |  783|  9.97M|#define parseContext (*pParseContext)
  ------------------
 6843|  9.97M|        (yyval.interm.intermNode) = 0;
 6844|       |        // TODO: 4.0 functionality: subroutines: make the identifier a user type for this signature
 6845|  9.97M|    }
 6846|  9.97M|#line 6847 "MachineIndependent/glslang_tab.cpp"
 6847|  9.97M|    break;
 6848|       |
 6849|      0|  case 101: /* declaration: spirv_instruction_qualifier function_prototype SEMICOLON  */
  ------------------
  |  Branch (6849:3): [True: 0, False: 292M]
  ------------------
 6850|      0|#line 923 "MachineIndependent/glslang.y"
 6851|      0|                                                               {
 6852|      0|        parseContext.requireExtensions((yyvsp[-1].interm).loc, 1, &E_GL_EXT_spirv_intrinsics, "SPIR-V instruction qualifier");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6853|      0|        (yyvsp[-1].interm).function->setSpirvInstruction(*(yyvsp[-2].interm.spirvInst)); // Attach SPIR-V intruction qualifier
 6854|      0|        parseContext.handleFunctionDeclarator((yyvsp[-1].interm).loc, *(yyvsp[-1].interm).function, true /* prototype */);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6855|      0|        (yyval.interm.intermNode) = 0;
 6856|       |        // TODO: 4.0 functionality: subroutines: make the identifier a user type for this signature
 6857|      0|    }
 6858|      0|#line 6859 "MachineIndependent/glslang_tab.cpp"
 6859|      0|    break;
 6860|       |
 6861|      0|  case 102: /* declaration: spirv_execution_mode_qualifier SEMICOLON  */
  ------------------
  |  Branch (6861:3): [True: 0, False: 292M]
  ------------------
 6862|      0|#line 930 "MachineIndependent/glslang.y"
 6863|      0|                                               {
 6864|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "SPIR-V execution mode qualifier");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6865|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_EXT_spirv_intrinsics, "SPIR-V execution mode qualifier");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6866|      0|        (yyval.interm.intermNode) = 0;
 6867|      0|    }
 6868|      0|#line 6869 "MachineIndependent/glslang_tab.cpp"
 6869|      0|    break;
 6870|       |
 6871|   675k|  case 103: /* declaration: init_declarator_list SEMICOLON  */
  ------------------
  |  Branch (6871:3): [True: 675k, False: 291M]
  ------------------
 6872|   675k|#line 935 "MachineIndependent/glslang.y"
 6873|   675k|                                     {
 6874|   675k|        if ((yyvsp[-1].interm).intermNode && (yyvsp[-1].interm).intermNode->getAsAggregate())
  ------------------
  |  Branch (6874:13): [True: 50.1k, False: 625k]
  |  Branch (6874:46): [True: 50.1k, False: 0]
  ------------------
 6875|  50.1k|            (yyvsp[-1].interm).intermNode->getAsAggregate()->setOperator(EOpSequence);
 6876|   675k|        (yyval.interm.intermNode) = (yyvsp[-1].interm).intermNode;
 6877|   675k|    }
 6878|   675k|#line 6879 "MachineIndependent/glslang_tab.cpp"
 6879|   675k|    break;
 6880|       |
 6881|    977|  case 104: /* declaration: PRECISION precision_qualifier type_specifier SEMICOLON  */
  ------------------
  |  Branch (6881:3): [True: 977, False: 292M]
  ------------------
 6882|    977|#line 940 "MachineIndependent/glslang.y"
 6883|    977|                                                             {
 6884|    977|        parseContext.profileRequires((yyvsp[-3].lex).loc, ENoProfile, 130, 0, "precision statement");
  ------------------
  |  |  783|    977|#define parseContext (*pParseContext)
  ------------------
 6885|       |        // lazy setting of the previous scope's defaults, has effect only the first time it is called in a particular scope
 6886|    977|        parseContext.symbolTable.setPreviousDefaultPrecisions(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|    977|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.setPreviousDefaultPrecisions(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|    977|#define parseContext (*pParseContext)
  ------------------
 6887|    977|        parseContext.setDefaultPrecision((yyvsp[-3].lex).loc, (yyvsp[-1].interm.type), (yyvsp[-2].interm.type).qualifier.precision);
  ------------------
  |  |  783|    977|#define parseContext (*pParseContext)
  ------------------
 6888|    977|        (yyval.interm.intermNode) = 0;
 6889|    977|    }
 6890|    977|#line 6891 "MachineIndependent/glslang_tab.cpp"
 6891|    977|    break;
 6892|       |
 6893|  3.48k|  case 105: /* declaration: block_structure SEMICOLON  */
  ------------------
  |  Branch (6893:3): [True: 3.48k, False: 292M]
  ------------------
 6894|  3.48k|#line 947 "MachineIndependent/glslang.y"
 6895|  3.48k|                                {
 6896|  3.48k|        (yyval.interm.intermNode) = parseContext.declareBlock((yyvsp[-1].interm).loc, *(yyvsp[-1].interm).typeList);
  ------------------
  |  |  783|  3.48k|#define parseContext (*pParseContext)
  ------------------
 6897|  3.48k|    }
 6898|  3.48k|#line 6899 "MachineIndependent/glslang_tab.cpp"
 6899|  3.48k|    break;
 6900|       |
 6901|    993|  case 106: /* declaration: block_structure IDENTIFIER SEMICOLON  */
  ------------------
  |  Branch (6901:3): [True: 993, False: 292M]
  ------------------
 6902|    993|#line 950 "MachineIndependent/glslang.y"
 6903|    993|                                           {
 6904|    993|        (yyval.interm.intermNode) = parseContext.declareBlock((yyvsp[-2].interm).loc, *(yyvsp[-2].interm).typeList, (yyvsp[-1].lex).string);
  ------------------
  |  |  783|    993|#define parseContext (*pParseContext)
  ------------------
 6905|    993|    }
 6906|    993|#line 6907 "MachineIndependent/glslang_tab.cpp"
 6907|    993|    break;
 6908|       |
 6909|  3.63k|  case 107: /* declaration: block_structure IDENTIFIER array_specifier SEMICOLON  */
  ------------------
  |  Branch (6909:3): [True: 3.63k, False: 292M]
  ------------------
 6910|  3.63k|#line 953 "MachineIndependent/glslang.y"
 6911|  3.63k|                                                           {
 6912|  3.63k|        (yyval.interm.intermNode) = parseContext.declareBlock((yyvsp[-3].interm).loc, *(yyvsp[-3].interm).typeList, (yyvsp[-2].lex).string, (yyvsp[-1].interm).arraySizes);
  ------------------
  |  |  783|  3.63k|#define parseContext (*pParseContext)
  ------------------
 6913|  3.63k|    }
 6914|  3.63k|#line 6915 "MachineIndependent/glslang_tab.cpp"
 6915|  3.63k|    break;
 6916|       |
 6917|    965|  case 108: /* declaration: type_qualifier SEMICOLON  */
  ------------------
  |  Branch (6917:3): [True: 965, False: 292M]
  ------------------
 6918|    965|#line 956 "MachineIndependent/glslang.y"
 6919|    965|                               {
 6920|    965|        parseContext.globalQualifierFixCheck((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier);
  ------------------
  |  |  783|    965|#define parseContext (*pParseContext)
  ------------------
 6921|    965|        parseContext.updateStandaloneQualifierDefaults((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type));
  ------------------
  |  |  783|    965|#define parseContext (*pParseContext)
  ------------------
 6922|    965|        (yyval.interm.intermNode) = 0;
 6923|    965|    }
 6924|    965|#line 6925 "MachineIndependent/glslang_tab.cpp"
 6925|    965|    break;
 6926|       |
 6927|     32|  case 109: /* declaration: type_qualifier identifier_list SEMICOLON  */
  ------------------
  |  Branch (6927:3): [True: 32, False: 292M]
  ------------------
 6928|     32|#line 961 "MachineIndependent/glslang.y"
 6929|     32|                                               {
 6930|     32|        parseContext.checkNoShaderLayouts((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).shaderQualifiers);
  ------------------
  |  |  783|     32|#define parseContext (*pParseContext)
  ------------------
 6931|     32|        parseContext.addQualifierToExisting((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).qualifier, *(yyvsp[-1].interm.identifierList));
  ------------------
  |  |  783|     32|#define parseContext (*pParseContext)
  ------------------
 6932|     32|        (yyval.interm.intermNode) = 0;
 6933|     32|    }
 6934|     32|#line 6935 "MachineIndependent/glslang_tab.cpp"
 6935|     32|    break;
 6936|       |
 6937|  8.13k|  case 110: /* $@2: %empty  */
  ------------------
  |  Branch (6937:3): [True: 8.13k, False: 292M]
  ------------------
 6938|  8.13k|#line 969 "MachineIndependent/glslang.y"
 6939|  8.13k|                                           { parseContext.nestedBlockCheck((yyvsp[-2].interm.type).loc); }
  ------------------
  |  |  783|  8.13k|#define parseContext (*pParseContext)
  ------------------
 6940|  8.13k|#line 6941 "MachineIndependent/glslang_tab.cpp"
 6941|  8.13k|    break;
 6942|       |
 6943|  8.11k|  case 111: /* block_structure: type_qualifier IDENTIFIER LEFT_BRACE $@2 struct_declaration_list RIGHT_BRACE  */
  ------------------
  |  Branch (6943:3): [True: 8.11k, False: 292M]
  ------------------
 6944|  8.11k|#line 969 "MachineIndependent/glslang.y"
 6945|  8.11k|                                                                                                                          {
 6946|  8.11k|        --parseContext.blockNestingLevel;
  ------------------
  |  |  783|  8.11k|#define parseContext (*pParseContext)
  ------------------
 6947|  8.11k|        parseContext.blockName = (yyvsp[-4].lex).string;
  ------------------
  |  |  783|  8.11k|#define parseContext (*pParseContext)
  ------------------
 6948|  8.11k|        parseContext.globalQualifierFixCheck((yyvsp[-5].interm.type).loc, (yyvsp[-5].interm.type).qualifier);
  ------------------
  |  |  783|  8.11k|#define parseContext (*pParseContext)
  ------------------
 6949|  8.11k|        parseContext.checkNoShaderLayouts((yyvsp[-5].interm.type).loc, (yyvsp[-5].interm.type).shaderQualifiers);
  ------------------
  |  |  783|  8.11k|#define parseContext (*pParseContext)
  ------------------
 6950|  8.11k|        parseContext.currentBlockQualifier = (yyvsp[-5].interm.type).qualifier;
  ------------------
  |  |  783|  16.2k|#define parseContext (*pParseContext)
  ------------------
 6951|  8.11k|        (yyval.interm).loc = (yyvsp[-5].interm.type).loc;
 6952|  8.11k|        (yyval.interm).typeList = (yyvsp[-1].interm.typeList);
 6953|  8.11k|    }
 6954|  8.11k|#line 6955 "MachineIndependent/glslang_tab.cpp"
 6955|  8.11k|    break;
 6956|       |
 6957|     80|  case 112: /* identifier_list: IDENTIFIER  */
  ------------------
  |  Branch (6957:3): [True: 80, False: 292M]
  ------------------
 6958|     80|#line 981 "MachineIndependent/glslang.y"
 6959|     80|                 {
 6960|     80|        (yyval.interm.identifierList) = new TIdentifierList;
 6961|     80|        (yyval.interm.identifierList)->push_back((yyvsp[0].lex).string);
 6962|     80|    }
 6963|     80|#line 6964 "MachineIndependent/glslang_tab.cpp"
 6964|     80|    break;
 6965|       |
 6966|      1|  case 113: /* identifier_list: identifier_list COMMA IDENTIFIER  */
  ------------------
  |  Branch (6966:3): [True: 1, False: 292M]
  ------------------
 6967|      1|#line 985 "MachineIndependent/glslang.y"
 6968|      1|                                       {
 6969|      1|        (yyval.interm.identifierList) = (yyvsp[-2].interm.identifierList);
 6970|      1|        (yyval.interm.identifierList)->push_back((yyvsp[0].lex).string);
 6971|      1|    }
 6972|      1|#line 6973 "MachineIndependent/glslang_tab.cpp"
 6973|      1|    break;
 6974|       |
 6975|  9.98M|  case 114: /* function_prototype: function_declarator RIGHT_PAREN  */
  ------------------
  |  Branch (6975:3): [True: 9.98M, False: 282M]
  ------------------
 6976|  9.98M|#line 992 "MachineIndependent/glslang.y"
 6977|  9.98M|                                       {
 6978|  9.98M|        (yyval.interm).function = (yyvsp[-1].interm.function);
 6979|  9.98M|        if (parseContext.compileOnly) (yyval.interm).function->setExport();
  ------------------
  |  |  783|  9.98M|#define parseContext (*pParseContext)
  ------------------
  |  Branch (6979:13): [True: 0, False: 9.98M]
  ------------------
 6980|  9.98M|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 6981|  9.98M|    }
 6982|  9.98M|#line 6983 "MachineIndependent/glslang_tab.cpp"
 6983|  9.98M|    break;
 6984|       |
 6985|      0|  case 115: /* function_prototype: function_declarator RIGHT_PAREN attribute  */
  ------------------
  |  Branch (6985:3): [True: 0, False: 292M]
  ------------------
 6986|      0|#line 997 "MachineIndependent/glslang.y"
 6987|      0|                                                {
 6988|      0|        (yyval.interm).function = (yyvsp[-2].interm.function);
 6989|      0|        if (parseContext.compileOnly) (yyval.interm).function->setExport();
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
  |  Branch (6989:13): [True: 0, False: 0]
  ------------------
 6990|      0|        (yyval.interm).loc = (yyvsp[-1].lex).loc;
 6991|      0|        const char * extensions[3] = { E_GL_EXT_subgroup_uniform_control_flow, E_GL_EXT_maximal_reconvergence, E_GL_EXT_function_control_attributes };
 6992|      0|        parseContext.requireExtensions((yyvsp[-1].lex).loc, 3, extensions, "attribute");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6993|      0|        parseContext.handleFunctionAttributes((yyvsp[-1].lex).loc, *(yyval.interm).function, *(yyvsp[0].interm.attributes));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 6994|      0|    }
 6995|      0|#line 6996 "MachineIndependent/glslang_tab.cpp"
 6996|      0|    break;
 6997|       |
 6998|      0|  case 116: /* function_prototype: attribute function_declarator RIGHT_PAREN  */
  ------------------
  |  Branch (6998:3): [True: 0, False: 292M]
  ------------------
 6999|      0|#line 1005 "MachineIndependent/glslang.y"
 7000|      0|                                                {
 7001|      0|        (yyval.interm).function = (yyvsp[-1].interm.function);
 7002|      0|        if (parseContext.compileOnly) (yyval.interm).function->setExport();
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7002:13): [True: 0, False: 0]
  ------------------
 7003|      0|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 7004|      0|        const char * extensions[3] = { E_GL_EXT_subgroup_uniform_control_flow, E_GL_EXT_maximal_reconvergence, E_GL_EXT_function_control_attributes };
 7005|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 3, extensions, "attribute");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7006|      0|        parseContext.handleFunctionAttributes((yyvsp[0].lex).loc, *(yyval.interm).function, *(yyvsp[-2].interm.attributes));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7007|      0|    }
 7008|      0|#line 7009 "MachineIndependent/glslang_tab.cpp"
 7009|      0|    break;
 7010|       |
 7011|      0|  case 117: /* function_prototype: attribute function_declarator RIGHT_PAREN attribute  */
  ------------------
  |  Branch (7011:3): [True: 0, False: 292M]
  ------------------
 7012|      0|#line 1013 "MachineIndependent/glslang.y"
 7013|      0|                                                          {
 7014|      0|        (yyval.interm).function = (yyvsp[-2].interm.function);
 7015|      0|        if (parseContext.compileOnly) (yyval.interm).function->setExport();
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7015:13): [True: 0, False: 0]
  ------------------
 7016|      0|        (yyval.interm).loc = (yyvsp[-1].lex).loc;
 7017|      0|        const char * extensions[3] = { E_GL_EXT_subgroup_uniform_control_flow, E_GL_EXT_maximal_reconvergence, E_GL_EXT_function_control_attributes };
 7018|      0|        parseContext.requireExtensions((yyvsp[-1].lex).loc, 3, extensions, "attribute");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7019|      0|        parseContext.handleFunctionAttributes((yyvsp[-1].lex).loc, *(yyval.interm).function, *(yyvsp[-3].interm.attributes));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7020|      0|        parseContext.handleFunctionAttributes((yyvsp[-1].lex).loc, *(yyval.interm).function, *(yyvsp[0].interm.attributes));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7021|      0|    }
 7022|      0|#line 7023 "MachineIndependent/glslang_tab.cpp"
 7023|      0|    break;
 7024|       |
 7025|  34.8k|  case 118: /* function_declarator: function_header  */
  ------------------
  |  Branch (7025:3): [True: 34.8k, False: 292M]
  ------------------
 7026|  34.8k|#line 1025 "MachineIndependent/glslang.y"
 7027|  34.8k|                      {
 7028|  34.8k|        (yyval.interm.function) = (yyvsp[0].interm.function);
 7029|  34.8k|    }
 7030|  34.8k|#line 7031 "MachineIndependent/glslang_tab.cpp"
 7031|  34.8k|    break;
 7032|       |
 7033|  9.94M|  case 119: /* function_declarator: function_header_with_parameters  */
  ------------------
  |  Branch (7033:3): [True: 9.94M, False: 282M]
  ------------------
 7034|  9.94M|#line 1028 "MachineIndependent/glslang.y"
 7035|  9.94M|                                      {
 7036|  9.94M|        (yyval.interm.function) = (yyvsp[0].interm.function);
 7037|  9.94M|    }
 7038|  9.94M|#line 7039 "MachineIndependent/glslang_tab.cpp"
 7039|  9.94M|    break;
 7040|       |
 7041|  9.94M|  case 120: /* function_header_with_parameters: function_header parameter_declaration  */
  ------------------
  |  Branch (7041:3): [True: 9.94M, False: 282M]
  ------------------
 7042|  9.94M|#line 1035 "MachineIndependent/glslang.y"
 7043|  9.94M|                                            {
 7044|       |        // Add the parameter
 7045|  9.94M|        (yyval.interm.function) = (yyvsp[-1].interm.function);
 7046|  9.94M|        if ((yyvsp[0].interm).param.type->getBasicType() != EbtVoid)
  ------------------
  |  Branch (7046:13): [True: 9.94M, False: 2.93k]
  ------------------
 7047|  9.94M|        {
 7048|  9.94M|            if (!(parseContext.spvVersion.vulkan > 0 && parseContext.spvVersion.vulkanRelaxed))
  ------------------
  |  |  783|  9.94M|#define parseContext (*pParseContext)
  ------------------
                          if (!(parseContext.spvVersion.vulkan > 0 && parseContext.spvVersion.vulkanRelaxed))
  ------------------
  |  |  783|  9.94M|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7048:19): [True: 9.94M, False: 0]
  |  Branch (7048:57): [True: 0, False: 9.94M]
  ------------------
 7049|  9.94M|                (yyvsp[-1].interm.function)->addParameter((yyvsp[0].interm).param);
 7050|      0|            else
 7051|      0|                parseContext.vkRelaxedRemapFunctionParameter((yyvsp[-1].interm.function), (yyvsp[0].interm).param);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7052|  9.94M|        }
 7053|  2.93k|        else
 7054|  2.93k|            delete (yyvsp[0].interm).param.type;
 7055|  9.94M|    }
 7056|  9.94M|#line 7057 "MachineIndependent/glslang_tab.cpp"
 7057|  9.94M|    break;
 7058|       |
 7059|  14.7M|  case 121: /* function_header_with_parameters: function_header_with_parameters COMMA parameter_declaration  */
  ------------------
  |  Branch (7059:3): [True: 14.7M, False: 277M]
  ------------------
 7060|  14.7M|#line 1048 "MachineIndependent/glslang.y"
 7061|  14.7M|                                                                  {
 7062|       |        //
 7063|       |        // Only first parameter of one-parameter functions can be void
 7064|       |        // The check for named parameters not being void is done in parameter_declarator
 7065|       |        //
 7066|  14.7M|        if ((yyvsp[0].interm).param.type->getBasicType() == EbtVoid) {
  ------------------
  |  Branch (7066:13): [True: 4, False: 14.7M]
  ------------------
 7067|       |            //
 7068|       |            // This parameter > first is void
 7069|       |            //
 7070|      4|            parseContext.error((yyvsp[-1].lex).loc, "cannot be an argument type except for '(void)'", "void", "");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7071|      4|            delete (yyvsp[0].interm).param.type;
 7072|  14.7M|        } else {
 7073|       |            // Add the parameter
 7074|  14.7M|            (yyval.interm.function) = (yyvsp[-2].interm.function);
 7075|  14.7M|            if (!(parseContext.spvVersion.vulkan > 0 && parseContext.spvVersion.vulkanRelaxed))
  ------------------
  |  |  783|  14.7M|#define parseContext (*pParseContext)
  ------------------
                          if (!(parseContext.spvVersion.vulkan > 0 && parseContext.spvVersion.vulkanRelaxed))
  ------------------
  |  |  783|  14.7M|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7075:19): [True: 14.7M, False: 0]
  |  Branch (7075:57): [True: 0, False: 14.7M]
  ------------------
 7076|  14.7M|                (yyvsp[-2].interm.function)->addParameter((yyvsp[0].interm).param);
 7077|      0|            else
 7078|      0|                parseContext.vkRelaxedRemapFunctionParameter((yyvsp[-2].interm.function), (yyvsp[0].interm).param);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7079|  14.7M|        }
 7080|  14.7M|    }
 7081|  14.7M|#line 7082 "MachineIndependent/glslang_tab.cpp"
 7082|  14.7M|    break;
 7083|       |
 7084|  18.0k|  case 122: /* function_header_with_parameters: function_header_with_parameters COMMA DOT DOT DOT  */
  ------------------
  |  Branch (7084:3): [True: 18.0k, False: 292M]
  ------------------
 7085|  18.0k|#line 1068 "MachineIndependent/glslang.y"
 7086|  18.0k|                                                        {
 7087|  18.0k|        (yyval.interm.function) = (yyvsp[-4].interm.function);
 7088|  18.0k|        parseContext.makeVariadic((yyvsp[-4].interm.function), (yyvsp[-2].lex).loc);
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
 7089|  18.0k|    }
 7090|  18.0k|#line 7091 "MachineIndependent/glslang_tab.cpp"
 7091|  18.0k|    break;
 7092|       |
 7093|  9.98M|  case 123: /* function_header: fully_specified_type IDENTIFIER LEFT_PAREN  */
  ------------------
  |  Branch (7093:3): [True: 9.98M, False: 282M]
  ------------------
 7094|  9.98M|#line 1075 "MachineIndependent/glslang.y"
 7095|  9.98M|                                                 {
 7096|  9.98M|        if ((yyvsp[-2].interm.type).qualifier.storage != EvqGlobal && (yyvsp[-2].interm.type).qualifier.storage != EvqTemporary) {
  ------------------
  |  Branch (7096:13): [True: 57, False: 9.98M]
  |  Branch (7096:71): [True: 7, False: 50]
  ------------------
 7097|      7|            parseContext.error((yyvsp[-1].lex).loc, "no qualifiers allowed for function return",
  ------------------
  |  |  783|      7|#define parseContext (*pParseContext)
  ------------------
 7098|      7|                               GetStorageQualifierString((yyvsp[-2].interm.type).qualifier.storage), "");
 7099|      7|        }
 7100|  9.98M|        if ((yyvsp[-2].interm.type).arraySizes)
  ------------------
  |  Branch (7100:13): [True: 47, False: 9.98M]
  ------------------
 7101|     47|            parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].interm.type).arraySizes);
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
 7102|       |
 7103|       |        // Add the function as a prototype after parsing it (we do not support recursion)
 7104|  9.98M|        TFunction *function;
 7105|  9.98M|        TType type((yyvsp[-2].interm.type));
 7106|       |
 7107|       |        // Potentially rename shader entry point function.  No-op most of the time.
 7108|  9.98M|        parseContext.renameShaderFunction((yyvsp[-1].lex).string);
  ------------------
  |  |  783|  9.98M|#define parseContext (*pParseContext)
  ------------------
 7109|       |
 7110|       |        // Make the function
 7111|  9.98M|        function = new TFunction((yyvsp[-1].lex).string, type);
 7112|  9.98M|        (yyval.interm.function) = function;
 7113|  9.98M|    }
 7114|  9.98M|#line 7115 "MachineIndependent/glslang_tab.cpp"
 7115|  9.98M|    break;
 7116|       |
 7117|  3.74M|  case 124: /* parameter_declarator: type_specifier IDENTIFIER  */
  ------------------
  |  Branch (7117:3): [True: 3.74M, False: 288M]
  ------------------
 7118|  3.74M|#line 1098 "MachineIndependent/glslang.y"
 7119|  3.74M|                                {
 7120|  3.74M|        if ((yyvsp[-1].interm.type).arraySizes) {
  ------------------
  |  Branch (7120:13): [True: 293k, False: 3.44M]
  ------------------
 7121|   293k|            parseContext.profileRequires((yyvsp[-1].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
  ------------------
  |  |  783|   293k|#define parseContext (*pParseContext)
  ------------------
 7122|   293k|            parseContext.profileRequires((yyvsp[-1].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
  ------------------
  |  |  783|   293k|#define parseContext (*pParseContext)
  ------------------
 7123|   293k|            parseContext.arraySizeRequiredCheck((yyvsp[-1].interm.type).loc, *(yyvsp[-1].interm.type).arraySizes);
  ------------------
  |  |  783|   293k|#define parseContext (*pParseContext)
  ------------------
 7124|   293k|        }
 7125|  3.74M|        if ((yyvsp[-1].interm.type).basicType == EbtVoid) {
  ------------------
  |  Branch (7125:13): [True: 4, False: 3.74M]
  ------------------
 7126|      4|            parseContext.error((yyvsp[0].lex).loc, "illegal use of type 'void'", (yyvsp[0].lex).string->c_str(), "");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7127|      4|        }
 7128|  3.74M|        parseContext.reservedErrorCheck((yyvsp[0].lex).loc, *(yyvsp[0].lex).string);
  ------------------
  |  |  783|  3.74M|#define parseContext (*pParseContext)
  ------------------
 7129|       |
 7130|  3.74M|        TParameter param = {(yyvsp[0].lex).string, new TType((yyvsp[-1].interm.type)), {}};
 7131|  3.74M|        (yyval.interm).loc = (yyvsp[0].lex).loc;
 7132|  3.74M|        (yyval.interm).param = param;
 7133|  3.74M|    }
 7134|  3.74M|#line 7135 "MachineIndependent/glslang_tab.cpp"
 7135|  3.74M|    break;
 7136|       |
 7137|  65.6k|  case 125: /* parameter_declarator: type_specifier IDENTIFIER array_specifier  */
  ------------------
  |  Branch (7137:3): [True: 65.6k, False: 292M]
  ------------------
 7138|  65.6k|#line 1113 "MachineIndependent/glslang.y"
 7139|  65.6k|                                                {
 7140|  65.6k|        if ((yyvsp[-2].interm.type).arraySizes) {
  ------------------
  |  Branch (7140:13): [True: 0, False: 65.6k]
  ------------------
 7141|      0|            parseContext.profileRequires((yyvsp[-2].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7142|      0|            parseContext.profileRequires((yyvsp[-2].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7143|      0|            parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].interm.type).arraySizes);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7144|      0|        }
 7145|  65.6k|        TType* type = new TType((yyvsp[-2].interm.type));
 7146|  65.6k|        type->transferArraySizes((yyvsp[0].interm).arraySizes);
 7147|  65.6k|        type->copyArrayInnerSizes((yyvsp[-2].interm.type).arraySizes);
 7148|       |
 7149|  65.6k|        parseContext.arrayOfArrayVersionCheck((yyvsp[-1].lex).loc, type->getArraySizes());
  ------------------
  |  |  783|  65.6k|#define parseContext (*pParseContext)
  ------------------
 7150|  65.6k|        parseContext.arraySizeRequiredCheck((yyvsp[0].interm).loc, *(yyvsp[0].interm).arraySizes);
  ------------------
  |  |  783|  65.6k|#define parseContext (*pParseContext)
  ------------------
 7151|  65.6k|        parseContext.reservedErrorCheck((yyvsp[-1].lex).loc, *(yyvsp[-1].lex).string);
  ------------------
  |  |  783|  65.6k|#define parseContext (*pParseContext)
  ------------------
 7152|       |
 7153|  65.6k|        TParameter param = { (yyvsp[-1].lex).string, type, {} };
 7154|       |
 7155|  65.6k|        (yyval.interm).loc = (yyvsp[-1].lex).loc;
 7156|  65.6k|        (yyval.interm).param = param;
 7157|  65.6k|    }
 7158|  65.6k|#line 7159 "MachineIndependent/glslang_tab.cpp"
 7159|  65.6k|    break;
 7160|       |
 7161|  18.0k|  case 126: /* parameter_declarator: type_specifier IDENTIFIER EQUAL initializer  */
  ------------------
  |  Branch (7161:3): [True: 18.0k, False: 292M]
  ------------------
 7162|  18.0k|#line 1132 "MachineIndependent/glslang.y"
 7163|  18.0k|                                                  {
 7164|  18.0k|        TParameter param = parseContext.getParamWithDefault((yyvsp[-3].interm.type), (yyvsp[-2].lex).string, (yyvsp[0].interm.intermTypedNode), (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
 7165|  18.0k|        (yyval.interm).loc = (yyvsp[-2].lex).loc;
 7166|  18.0k|        (yyval.interm).param = param;
 7167|  18.0k|    }
 7168|  18.0k|#line 7169 "MachineIndependent/glslang_tab.cpp"
 7169|  18.0k|    break;
 7170|       |
 7171|   329k|  case 127: /* parameter_declaration: type_qualifier parameter_declarator  */
  ------------------
  |  Branch (7171:3): [True: 329k, False: 291M]
  ------------------
 7172|   329k|#line 1143 "MachineIndependent/glslang.y"
 7173|   329k|                                          {
 7174|   329k|        (yyval.interm) = (yyvsp[0].interm);
 7175|   329k|        if ((yyvsp[-1].interm.type).qualifier.precision != EpqNone)
  ------------------
  |  Branch (7175:13): [True: 34.2k, False: 295k]
  ------------------
 7176|  34.2k|            (yyval.interm).param.type->getQualifier().precision = (yyvsp[-1].interm.type).qualifier.precision;
 7177|   329k|        parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier(), (yyval.interm).param.type->hasTypeParameter());
  ------------------
  |  |  783|   329k|#define parseContext (*pParseContext)
  ------------------
 7178|       |
 7179|   329k|        parseContext.checkNoShaderLayouts((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).shaderQualifiers);
  ------------------
  |  |  783|   329k|#define parseContext (*pParseContext)
  ------------------
 7180|   329k|        parseContext.parameterTypeCheck((yyvsp[0].interm).loc, (yyvsp[-1].interm.type).qualifier.storage, *(yyval.interm).param.type);
  ------------------
  |  |  783|   329k|#define parseContext (*pParseContext)
  ------------------
 7181|   329k|        parseContext.paramCheckFix((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier, *(yyval.interm).param.type);
  ------------------
  |  |  783|   329k|#define parseContext (*pParseContext)
  ------------------
 7182|       |
 7183|   329k|    }
 7184|   329k|#line 7185 "MachineIndependent/glslang_tab.cpp"
 7185|   329k|    break;
 7186|       |
 7187|  3.49M|  case 128: /* parameter_declaration: parameter_declarator  */
  ------------------
  |  Branch (7187:3): [True: 3.49M, False: 288M]
  ------------------
 7188|  3.49M|#line 1154 "MachineIndependent/glslang.y"
 7189|  3.49M|                           {
 7190|  3.49M|        (yyval.interm) = (yyvsp[0].interm);
 7191|       |
 7192|  3.49M|        parseContext.parameterTypeCheck((yyvsp[0].interm).loc, EvqIn, *(yyvsp[0].interm).param.type);
  ------------------
  |  |  783|  3.49M|#define parseContext (*pParseContext)
  ------------------
 7193|  3.49M|        parseContext.paramCheckFixStorage((yyvsp[0].interm).loc, EvqTemporary, *(yyval.interm).param.type);
  ------------------
  |  |  783|  3.49M|#define parseContext (*pParseContext)
  ------------------
 7194|  3.49M|        parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier(), (yyval.interm).param.type->hasTypeParameter());
  ------------------
  |  |  783|  3.49M|#define parseContext (*pParseContext)
  ------------------
 7195|  3.49M|    }
 7196|  3.49M|#line 7197 "MachineIndependent/glslang_tab.cpp"
 7197|  3.49M|    break;
 7198|       |
 7199|  2.50M|  case 129: /* parameter_declaration: type_qualifier parameter_type_specifier  */
  ------------------
  |  Branch (7199:3): [True: 2.50M, False: 289M]
  ------------------
 7200|  2.50M|#line 1164 "MachineIndependent/glslang.y"
 7201|  2.50M|                                              {
 7202|  2.50M|        (yyval.interm) = (yyvsp[0].interm);
 7203|  2.50M|        if ((yyvsp[-1].interm.type).qualifier.precision != EpqNone)
  ------------------
  |  Branch (7203:13): [True: 939k, False: 1.56M]
  ------------------
 7204|   939k|            (yyval.interm).param.type->getQualifier().precision = (yyvsp[-1].interm.type).qualifier.precision;
 7205|  2.50M|        parseContext.precisionQualifierCheck((yyvsp[-1].interm.type).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier(), (yyval.interm).param.type->hasTypeParameter());
  ------------------
  |  |  783|  2.50M|#define parseContext (*pParseContext)
  ------------------
 7206|       |
 7207|  2.50M|        parseContext.checkNoShaderLayouts((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).shaderQualifiers);
  ------------------
  |  |  783|  2.50M|#define parseContext (*pParseContext)
  ------------------
 7208|  2.50M|        parseContext.parameterTypeCheck((yyvsp[0].interm).loc, (yyvsp[-1].interm.type).qualifier.storage, *(yyval.interm).param.type);
  ------------------
  |  |  783|  2.50M|#define parseContext (*pParseContext)
  ------------------
 7209|  2.50M|        parseContext.paramCheckFix((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier, *(yyval.interm).param.type);
  ------------------
  |  |  783|  2.50M|#define parseContext (*pParseContext)
  ------------------
 7210|  2.50M|    }
 7211|  2.50M|#line 7212 "MachineIndependent/glslang_tab.cpp"
 7212|  2.50M|    break;
 7213|       |
 7214|  18.3M|  case 130: /* parameter_declaration: parameter_type_specifier  */
  ------------------
  |  Branch (7214:3): [True: 18.3M, False: 273M]
  ------------------
 7215|  18.3M|#line 1174 "MachineIndependent/glslang.y"
 7216|  18.3M|                               {
 7217|  18.3M|        (yyval.interm) = (yyvsp[0].interm);
 7218|       |
 7219|  18.3M|        parseContext.parameterTypeCheck((yyvsp[0].interm).loc, EvqIn, *(yyvsp[0].interm).param.type);
  ------------------
  |  |  783|  18.3M|#define parseContext (*pParseContext)
  ------------------
 7220|  18.3M|        parseContext.paramCheckFixStorage((yyvsp[0].interm).loc, EvqTemporary, *(yyval.interm).param.type);
  ------------------
  |  |  783|  18.3M|#define parseContext (*pParseContext)
  ------------------
 7221|  18.3M|        parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier(), (yyval.interm).param.type->hasTypeParameter());
  ------------------
  |  |  783|  18.3M|#define parseContext (*pParseContext)
  ------------------
 7222|  18.3M|    }
 7223|  18.3M|#line 7224 "MachineIndependent/glslang_tab.cpp"
 7224|  18.3M|    break;
 7225|       |
 7226|  20.8M|  case 131: /* parameter_type_specifier: type_specifier  */
  ------------------
  |  Branch (7226:3): [True: 20.8M, False: 271M]
  ------------------
 7227|  20.8M|#line 1184 "MachineIndependent/glslang.y"
 7228|  20.8M|                     {
 7229|  20.8M|        TParameter param = { 0, new TType((yyvsp[0].interm.type)), {} };
 7230|  20.8M|        (yyval.interm).param = param;
 7231|  20.8M|        if ((yyvsp[0].interm.type).arraySizes)
  ------------------
  |  Branch (7231:13): [True: 70.0k, False: 20.7M]
  ------------------
 7232|  70.0k|            parseContext.arraySizeRequiredCheck((yyvsp[0].interm.type).loc, *(yyvsp[0].interm.type).arraySizes);
  ------------------
  |  |  783|  70.0k|#define parseContext (*pParseContext)
  ------------------
 7233|  20.8M|    }
 7234|  20.8M|#line 7235 "MachineIndependent/glslang_tab.cpp"
 7235|  20.8M|    break;
 7236|       |
 7237|   676k|  case 132: /* init_declarator_list: single_declaration  */
  ------------------
  |  Branch (7237:3): [True: 676k, False: 291M]
  ------------------
 7238|   676k|#line 1193 "MachineIndependent/glslang.y"
 7239|   676k|                         {
 7240|   676k|        (yyval.interm) = (yyvsp[0].interm);
 7241|   676k|    }
 7242|   676k|#line 7243 "MachineIndependent/glslang_tab.cpp"
 7243|   676k|    break;
 7244|       |
 7245|    516|  case 133: /* init_declarator_list: init_declarator_list COMMA IDENTIFIER  */
  ------------------
  |  Branch (7245:3): [True: 516, False: 292M]
  ------------------
 7246|    516|#line 1196 "MachineIndependent/glslang.y"
 7247|    516|                                            {
 7248|    516|        (yyval.interm) = (yyvsp[-2].interm);
 7249|    516|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[0].lex).loc, *(yyvsp[0].lex).string, (yyvsp[-2].interm).type);
  ------------------
  |  |  783|    516|#define parseContext (*pParseContext)
  ------------------
 7250|    516|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-2].interm).intermNode, declNode, (yyvsp[0].lex).loc);
  ------------------
  |  |  783|    516|#define parseContext (*pParseContext)
  ------------------
 7251|    516|    }
 7252|    516|#line 7253 "MachineIndependent/glslang_tab.cpp"
 7253|    516|    break;
 7254|       |
 7255|      8|  case 134: /* init_declarator_list: init_declarator_list COMMA IDENTIFIER array_specifier  */
  ------------------
  |  Branch (7255:3): [True: 8, False: 292M]
  ------------------
 7256|      8|#line 1201 "MachineIndependent/glslang.y"
 7257|      8|                                                            {
 7258|      8|        (yyval.interm) = (yyvsp[-3].interm);
 7259|      8|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[-1].lex).loc, *(yyvsp[-1].lex).string, (yyvsp[-3].interm).type, (yyvsp[0].interm).arraySizes);
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
 7260|      8|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-3].interm).intermNode, declNode, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
 7261|      8|    }
 7262|      8|#line 7263 "MachineIndependent/glslang_tab.cpp"
 7263|      8|    break;
 7264|       |
 7265|      6|  case 135: /* init_declarator_list: init_declarator_list COMMA IDENTIFIER array_specifier EQUAL initializer  */
  ------------------
  |  Branch (7265:3): [True: 6, False: 292M]
  ------------------
 7266|      6|#line 1206 "MachineIndependent/glslang.y"
 7267|      6|                                                                              {
 7268|      6|        (yyval.interm).type = (yyvsp[-5].interm).type;
 7269|      6|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[-3].lex).loc, *(yyvsp[-3].lex).string, (yyvsp[-5].interm).type, (yyvsp[-2].interm).arraySizes, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      6|#define parseContext (*pParseContext)
  ------------------
 7270|      6|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-5].interm).intermNode, declNode, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      6|#define parseContext (*pParseContext)
  ------------------
 7271|      6|    }
 7272|      6|#line 7273 "MachineIndependent/glslang_tab.cpp"
 7273|      6|    break;
 7274|       |
 7275|     25|  case 136: /* init_declarator_list: init_declarator_list COMMA IDENTIFIER EQUAL initializer  */
  ------------------
  |  Branch (7275:3): [True: 25, False: 292M]
  ------------------
 7276|     25|#line 1211 "MachineIndependent/glslang.y"
 7277|     25|                                                              {
 7278|     25|        (yyval.interm).type = (yyvsp[-4].interm).type;
 7279|     25|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[-2].lex).loc, *(yyvsp[-2].lex).string, (yyvsp[-4].interm).type, 0, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
 7280|     25|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-4].interm).intermNode, declNode, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
 7281|     25|    }
 7282|     25|#line 7283 "MachineIndependent/glslang_tab.cpp"
 7283|     25|    break;
 7284|       |
 7285|  1.44k|  case 137: /* single_declaration: fully_specified_type  */
  ------------------
  |  Branch (7285:3): [True: 1.44k, False: 292M]
  ------------------
 7286|  1.44k|#line 1219 "MachineIndependent/glslang.y"
 7287|  1.44k|                           {
 7288|  1.44k|        (yyval.interm).type = (yyvsp[0].interm.type);
 7289|  1.44k|        (yyval.interm).intermNode = 0;
 7290|  1.44k|        parseContext.declareTypeDefaults((yyval.interm).loc, (yyval.interm).type);
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 7291|  1.44k|    }
 7292|  1.44k|#line 7293 "MachineIndependent/glslang_tab.cpp"
 7293|  1.44k|    break;
 7294|       |
 7295|   262k|  case 138: /* single_declaration: fully_specified_type IDENTIFIER  */
  ------------------
  |  Branch (7295:3): [True: 262k, False: 291M]
  ------------------
 7296|   262k|#line 1224 "MachineIndependent/glslang.y"
 7297|   262k|                                      {
 7298|   262k|        (yyval.interm).type = (yyvsp[-1].interm.type);
 7299|   262k|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[0].lex).loc, *(yyvsp[0].lex).string, (yyvsp[-1].interm.type));
  ------------------
  |  |  783|   262k|#define parseContext (*pParseContext)
  ------------------
 7300|   262k|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate(nullptr, declNode, (yyvsp[0].lex).loc);
  ------------------
  |  |  783|   262k|#define parseContext (*pParseContext)
  ------------------
 7301|       |
 7302|   262k|    }
 7303|   262k|#line 7304 "MachineIndependent/glslang_tab.cpp"
 7304|   262k|    break;
 7305|       |
 7306|  19.1k|  case 139: /* single_declaration: fully_specified_type IDENTIFIER array_specifier  */
  ------------------
  |  Branch (7306:3): [True: 19.1k, False: 292M]
  ------------------
 7307|  19.1k|#line 1230 "MachineIndependent/glslang.y"
 7308|  19.1k|                                                      {
 7309|  19.1k|        (yyval.interm).type = (yyvsp[-2].interm.type);
 7310|  19.1k|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[-1].lex).loc, *(yyvsp[-1].lex).string, (yyvsp[-2].interm.type), (yyvsp[0].interm).arraySizes);
  ------------------
  |  |  783|  19.1k|#define parseContext (*pParseContext)
  ------------------
 7311|  19.1k|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate(nullptr, declNode, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|  19.1k|#define parseContext (*pParseContext)
  ------------------
 7312|  19.1k|    }
 7313|  19.1k|#line 7314 "MachineIndependent/glslang_tab.cpp"
 7314|  19.1k|    break;
 7315|       |
 7316|    947|  case 140: /* single_declaration: fully_specified_type IDENTIFIER array_specifier EQUAL initializer  */
  ------------------
  |  Branch (7316:3): [True: 947, False: 292M]
  ------------------
 7317|    947|#line 1235 "MachineIndependent/glslang.y"
 7318|    947|                                                                        {
 7319|    947|        (yyval.interm).type = (yyvsp[-4].interm.type);
 7320|    947|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[-3].lex).loc, *(yyvsp[-3].lex).string, (yyvsp[-4].interm.type), (yyvsp[-2].interm).arraySizes, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|    947|#define parseContext (*pParseContext)
  ------------------
 7321|    947|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate(nullptr, declNode, (yyvsp[-3].lex).loc);
  ------------------
  |  |  783|    947|#define parseContext (*pParseContext)
  ------------------
 7322|    947|    }
 7323|    947|#line 7324 "MachineIndependent/glslang_tab.cpp"
 7324|    947|    break;
 7325|       |
 7326|   391k|  case 141: /* single_declaration: fully_specified_type IDENTIFIER EQUAL initializer  */
  ------------------
  |  Branch (7326:3): [True: 391k, False: 291M]
  ------------------
 7327|   391k|#line 1240 "MachineIndependent/glslang.y"
 7328|   391k|                                                        {
 7329|   391k|        (yyval.interm).type = (yyvsp[-3].interm.type);
 7330|   391k|        TIntermNode* declNode = parseContext.declareVariable((yyvsp[-2].lex).loc, *(yyvsp[-2].lex).string, (yyvsp[-3].interm.type), 0, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|   391k|#define parseContext (*pParseContext)
  ------------------
 7331|   391k|        (yyval.interm).intermNode = parseContext.intermediate.growAggregate(nullptr, declNode, (yyvsp[-2].lex).loc);
  ------------------
  |  |  783|   391k|#define parseContext (*pParseContext)
  ------------------
 7332|   391k|    }
 7333|   391k|#line 7334 "MachineIndependent/glslang_tab.cpp"
 7334|   391k|    break;
 7335|       |
 7336|  9.29M|  case 142: /* fully_specified_type: type_specifier  */
  ------------------
  |  Branch (7336:3): [True: 9.29M, False: 282M]
  ------------------
 7337|  9.29M|#line 1249 "MachineIndependent/glslang.y"
 7338|  9.29M|                     {
 7339|  9.29M|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7340|       |
 7341|  9.29M|        parseContext.globalQualifierTypeCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).qualifier, (yyval.interm.type));
  ------------------
  |  |  783|  9.29M|#define parseContext (*pParseContext)
  ------------------
 7342|  9.29M|        if ((yyvsp[0].interm.type).arraySizes) {
  ------------------
  |  Branch (7342:13): [True: 105, False: 9.29M]
  ------------------
 7343|    105|            parseContext.profileRequires((yyvsp[0].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
  ------------------
  |  |  783|    105|#define parseContext (*pParseContext)
  ------------------
 7344|    105|            parseContext.profileRequires((yyvsp[0].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
  ------------------
  |  |  783|    105|#define parseContext (*pParseContext)
  ------------------
 7345|    105|        }
 7346|  9.29M|        parseContext.precisionQualifierCheck((yyval.interm.type).loc, (yyval.interm.type).basicType, (yyval.interm.type).qualifier, (yyval.interm.type).hasTypeParameter());
  ------------------
  |  |  783|  9.29M|#define parseContext (*pParseContext)
  ------------------
 7347|  9.29M|    }
 7348|  9.29M|#line 7349 "MachineIndependent/glslang_tab.cpp"
 7349|  9.29M|    break;
 7350|       |
 7351|  1.36M|  case 143: /* fully_specified_type: type_qualifier type_specifier  */
  ------------------
  |  Branch (7351:3): [True: 1.36M, False: 290M]
  ------------------
 7352|  1.36M|#line 1259 "MachineIndependent/glslang.y"
 7353|  1.36M|                                     {
 7354|  1.36M|        parseContext.globalQualifierFixCheck((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier, false, &(yyvsp[0].interm.type));
  ------------------
  |  |  783|  1.36M|#define parseContext (*pParseContext)
  ------------------
 7355|  1.36M|        parseContext.globalQualifierTypeCheck((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier, (yyvsp[0].interm.type));
  ------------------
  |  |  783|  1.36M|#define parseContext (*pParseContext)
  ------------------
 7356|       |
 7357|  1.36M|        if ((yyvsp[0].interm.type).arraySizes) {
  ------------------
  |  Branch (7357:13): [True: 202, False: 1.36M]
  ------------------
 7358|    202|            parseContext.profileRequires((yyvsp[0].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
  ------------------
  |  |  783|    202|#define parseContext (*pParseContext)
  ------------------
 7359|    202|            parseContext.profileRequires((yyvsp[0].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
  ------------------
  |  |  783|    202|#define parseContext (*pParseContext)
  ------------------
 7360|    202|        }
 7361|       |
 7362|  1.36M|        if ((yyvsp[0].interm.type).arraySizes && parseContext.arrayQualifierError((yyvsp[0].interm.type).loc, (yyvsp[-1].interm.type).qualifier))
  ------------------
  |  |  783|    202|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7362:13): [True: 202, False: 1.36M]
  |  Branch (7362:50): [True: 0, False: 202]
  ------------------
 7363|      0|            (yyvsp[0].interm.type).arraySizes = nullptr;
 7364|       |
 7365|  1.36M|        parseContext.checkNoShaderLayouts((yyvsp[0].interm.type).loc, (yyvsp[-1].interm.type).shaderQualifiers);
  ------------------
  |  |  783|  1.36M|#define parseContext (*pParseContext)
  ------------------
 7366|  1.36M|        (yyvsp[0].interm.type).shaderQualifiers.merge((yyvsp[-1].interm.type).shaderQualifiers);
 7367|  1.36M|        parseContext.mergeQualifiers((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).qualifier, (yyvsp[-1].interm.type).qualifier, true);
  ------------------
  |  |  783|  1.36M|#define parseContext (*pParseContext)
  ------------------
 7368|  1.36M|        parseContext.precisionQualifierCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).basicType, (yyvsp[0].interm.type).qualifier, (yyvsp[0].interm.type).hasTypeParameter());
  ------------------
  |  |  783|  1.36M|#define parseContext (*pParseContext)
  ------------------
 7369|       |
 7370|  1.36M|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7371|       |
 7372|  1.36M|        if (! (yyval.interm.type).qualifier.isInterpolation() &&
  ------------------
  |  Branch (7372:13): [True: 1.32M, False: 36.4k]
  ------------------
 7373|  1.32M|            ((parseContext.language == EShLangVertex   && (yyval.interm.type).qualifier.storage == EvqVaryingOut) ||
  ------------------
  |  |  783|  1.32M|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7373:15): [True: 932k, False: 394k]
  |  Branch (7373:59): [True: 4.29k, False: 927k]
  ------------------
 7374|  1.32M|             (parseContext.language == EShLangFragment && (yyval.interm.type).qualifier.storage == EvqVaryingIn)))
  ------------------
  |  |  783|  1.32M|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7374:15): [True: 209k, False: 1.11M]
  |  Branch (7374:59): [True: 11.4k, False: 198k]
  ------------------
 7375|  15.7k|            (yyval.interm.type).qualifier.smooth = true;
 7376|  1.36M|    }
 7377|  1.36M|#line 7378 "MachineIndependent/glslang_tab.cpp"
 7378|  1.36M|    break;
 7379|       |
 7380|     32|  case 144: /* invariant_qualifier: INVARIANT  */
  ------------------
  |  Branch (7380:3): [True: 32, False: 292M]
  ------------------
 7381|     32|#line 1286 "MachineIndependent/glslang.y"
 7382|     32|                {
 7383|     32|        parseContext.globalCheck((yyvsp[0].lex).loc, "invariant");
  ------------------
  |  |  783|     32|#define parseContext (*pParseContext)
  ------------------
 7384|     32|        parseContext.profileRequires((yyval.interm.type).loc, ENoProfile, 120, 0, "invariant");
  ------------------
  |  |  783|     32|#define parseContext (*pParseContext)
  ------------------
 7385|     32|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7386|     32|        (yyval.interm.type).qualifier.invariant = true;
 7387|     32|    }
 7388|     32|#line 7389 "MachineIndependent/glslang_tab.cpp"
 7389|     32|    break;
 7390|       |
 7391|    214|  case 145: /* interpolation_qualifier: SMOOTH  */
  ------------------
  |  Branch (7391:3): [True: 214, False: 292M]
  ------------------
 7392|    214|#line 1295 "MachineIndependent/glslang.y"
 7393|    214|             {
 7394|    214|        parseContext.globalCheck((yyvsp[0].lex).loc, "smooth");
  ------------------
  |  |  783|    214|#define parseContext (*pParseContext)
  ------------------
 7395|    214|        parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "smooth");
  ------------------
  |  |  783|    214|#define parseContext (*pParseContext)
  ------------------
 7396|    214|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 300, 0, "smooth");
  ------------------
  |  |  783|    214|#define parseContext (*pParseContext)
  ------------------
 7397|    214|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7398|    214|        (yyval.interm.type).qualifier.smooth = true;
 7399|    214|    }
 7400|    214|#line 7401 "MachineIndependent/glslang_tab.cpp"
 7401|    214|    break;
 7402|       |
 7403|  36.1k|  case 146: /* interpolation_qualifier: FLAT  */
  ------------------
  |  Branch (7403:3): [True: 36.1k, False: 292M]
  ------------------
 7404|  36.1k|#line 1302 "MachineIndependent/glslang.y"
 7405|  36.1k|           {
 7406|  36.1k|        parseContext.globalCheck((yyvsp[0].lex).loc, "flat");
  ------------------
  |  |  783|  36.1k|#define parseContext (*pParseContext)
  ------------------
 7407|  36.1k|        parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "flat");
  ------------------
  |  |  783|  36.1k|#define parseContext (*pParseContext)
  ------------------
 7408|  36.1k|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 300, 0, "flat");
  ------------------
  |  |  783|  36.1k|#define parseContext (*pParseContext)
  ------------------
 7409|  36.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7410|  36.1k|        (yyval.interm.type).qualifier.flat = true;
 7411|  36.1k|    }
 7412|  36.1k|#line 7413 "MachineIndependent/glslang_tab.cpp"
 7413|  36.1k|    break;
 7414|       |
 7415|    137|  case 147: /* interpolation_qualifier: NOPERSPECTIVE  */
  ------------------
  |  Branch (7415:3): [True: 137, False: 292M]
  ------------------
 7416|    137|#line 1309 "MachineIndependent/glslang.y"
 7417|    137|                    {
 7418|    137|        parseContext.globalCheck((yyvsp[0].lex).loc, "noperspective");
  ------------------
  |  |  783|    137|#define parseContext (*pParseContext)
  ------------------
 7419|    137|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 0, E_GL_NV_shader_noperspective_interpolation, "noperspective");
  ------------------
  |  |  783|    137|#define parseContext (*pParseContext)
  ------------------
 7420|    137|        parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "noperspective");
  ------------------
  |  |  783|    137|#define parseContext (*pParseContext)
  ------------------
 7421|    137|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7422|    137|        (yyval.interm.type).qualifier.nopersp = true;
 7423|    137|    }
 7424|    137|#line 7425 "MachineIndependent/glslang_tab.cpp"
 7425|    137|    break;
 7426|       |
 7427|      0|  case 148: /* interpolation_qualifier: EXPLICITINTERPAMD  */
  ------------------
  |  Branch (7427:3): [True: 0, False: 292M]
  ------------------
 7428|      0|#line 1316 "MachineIndependent/glslang.y"
 7429|      0|                        {
 7430|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "__explicitInterpAMD");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7431|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 450, E_GL_AMD_shader_explicit_vertex_parameter, "explicit interpolation");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7432|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECompatibilityProfile, 450, E_GL_AMD_shader_explicit_vertex_parameter, "explicit interpolation");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7433|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7434|      0|        (yyval.interm.type).qualifier.explicitInterp = true;
 7435|      0|    }
 7436|      0|#line 7437 "MachineIndependent/glslang_tab.cpp"
 7437|      0|    break;
 7438|       |
 7439|      0|  case 149: /* interpolation_qualifier: PERVERTEXNV  */
  ------------------
  |  Branch (7439:3): [True: 0, False: 292M]
  ------------------
 7440|      0|#line 1323 "MachineIndependent/glslang.y"
 7441|      0|                  {
 7442|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "pervertexNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7443|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 0, E_GL_NV_fragment_shader_barycentric, "fragment shader barycentric");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7444|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECompatibilityProfile, 0, E_GL_NV_fragment_shader_barycentric, "fragment shader barycentric");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7445|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 0, E_GL_NV_fragment_shader_barycentric, "fragment shader barycentric");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7446|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7447|      0|        (yyval.interm.type).qualifier.pervertexNV = true;
 7448|      0|    }
 7449|      0|#line 7450 "MachineIndependent/glslang_tab.cpp"
 7450|      0|    break;
 7451|       |
 7452|      0|  case 150: /* interpolation_qualifier: PERVERTEXEXT  */
  ------------------
  |  Branch (7452:3): [True: 0, False: 292M]
  ------------------
 7453|      0|#line 1331 "MachineIndependent/glslang.y"
 7454|      0|                   {
 7455|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "pervertexEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7456|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 0, E_GL_EXT_fragment_shader_barycentric, "fragment shader barycentric");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7457|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECompatibilityProfile, 0, E_GL_EXT_fragment_shader_barycentric, "fragment shader barycentric");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7458|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 0, E_GL_EXT_fragment_shader_barycentric, "fragment shader barycentric");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7459|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7460|      0|        (yyval.interm.type).qualifier.pervertexEXT = true;
 7461|      0|    }
 7462|      0|#line 7463 "MachineIndependent/glslang_tab.cpp"
 7463|      0|    break;
 7464|       |
 7465|    308|  case 151: /* interpolation_qualifier: PERPRIMITIVENV  */
  ------------------
  |  Branch (7465:3): [True: 308, False: 292M]
  ------------------
 7466|    308|#line 1339 "MachineIndependent/glslang.y"
 7467|    308|                     {
 7468|       |        // No need for profile version or extension check. Shader stage already checks both.
 7469|    308|        parseContext.globalCheck((yyvsp[0].lex).loc, "perprimitiveNV");
  ------------------
  |  |  783|    308|#define parseContext (*pParseContext)
  ------------------
 7470|    308|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangFragmentMask | EShLangMeshMask), "perprimitiveNV");
  ------------------
  |  |  783|    308|#define parseContext (*pParseContext)
  ------------------
 7471|       |        // Fragment shader stage doesn't check for extension. So we explicitly add below extension check.
 7472|    308|        if (parseContext.language == EShLangFragment)
  ------------------
  |  |  783|    308|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7472:13): [True: 0, False: 308]
  ------------------
 7473|      0|            parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_NV_mesh_shader, "perprimitiveNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7474|    308|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7475|    308|        (yyval.interm.type).qualifier.perPrimitiveNV = true;
 7476|    308|    }
 7477|    308|#line 7478 "MachineIndependent/glslang_tab.cpp"
 7478|    308|    break;
 7479|       |
 7480|    308|  case 152: /* interpolation_qualifier: PERPRIMITIVEEXT  */
  ------------------
  |  Branch (7480:3): [True: 308, False: 292M]
  ------------------
 7481|    308|#line 1349 "MachineIndependent/glslang.y"
 7482|    308|                      {
 7483|       |        // No need for profile version or extension check. Shader stage already checks both.
 7484|    308|        parseContext.globalCheck((yyvsp[0].lex).loc, "perprimitiveEXT");
  ------------------
  |  |  783|    308|#define parseContext (*pParseContext)
  ------------------
 7485|    308|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangFragmentMask | EShLangMeshMask), "perprimitiveEXT");
  ------------------
  |  |  783|    308|#define parseContext (*pParseContext)
  ------------------
 7486|       |        // Fragment shader stage doesn't check for extension. So we explicitly add below extension check.
 7487|    308|        if (parseContext.language == EShLangFragment)
  ------------------
  |  |  783|    308|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7487:13): [True: 0, False: 308]
  ------------------
 7488|      0|            parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_EXT_mesh_shader, "perprimitiveEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7489|    308|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7490|    308|        (yyval.interm.type).qualifier.perPrimitiveNV = true;
 7491|    308|    }
 7492|    308|#line 7493 "MachineIndependent/glslang_tab.cpp"
 7493|    308|    break;
 7494|       |
 7495|  1.54k|  case 153: /* interpolation_qualifier: PERVIEWNV  */
  ------------------
  |  Branch (7495:3): [True: 1.54k, False: 292M]
  ------------------
 7496|  1.54k|#line 1359 "MachineIndependent/glslang.y"
 7497|  1.54k|                {
 7498|       |        // No need for profile version or extension check. Shader stage already checks both.
 7499|  1.54k|        parseContext.globalCheck((yyvsp[0].lex).loc, "perviewNV");
  ------------------
  |  |  783|  1.54k|#define parseContext (*pParseContext)
  ------------------
 7500|  1.54k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangMesh, "perviewNV");
  ------------------
  |  |  783|  1.54k|#define parseContext (*pParseContext)
  ------------------
 7501|  1.54k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7502|  1.54k|        (yyval.interm.type).qualifier.perViewNV = true;
 7503|  1.54k|    }
 7504|  1.54k|#line 7505 "MachineIndependent/glslang_tab.cpp"
 7505|  1.54k|    break;
 7506|       |
 7507|      0|  case 154: /* interpolation_qualifier: PERTASKNV  */
  ------------------
  |  Branch (7507:3): [True: 0, False: 292M]
  ------------------
 7508|      0|#line 1366 "MachineIndependent/glslang.y"
 7509|      0|                {
 7510|       |        // No need for profile version or extension check. Shader stage already checks both.
 7511|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "taskNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7512|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangTaskMask | EShLangMeshMask), "taskNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7513|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7514|      0|        (yyval.interm.type).qualifier.perTaskNV = true;
 7515|      0|    }
 7516|      0|#line 7517 "MachineIndependent/glslang_tab.cpp"
 7517|      0|    break;
 7518|       |
 7519|  8.10k|  case 155: /* layout_qualifier: LAYOUT LEFT_PAREN layout_qualifier_id_list RIGHT_PAREN  */
  ------------------
  |  Branch (7519:3): [True: 8.10k, False: 292M]
  ------------------
 7520|  8.10k|#line 1376 "MachineIndependent/glslang.y"
 7521|  8.10k|                                                             {
 7522|  8.10k|        (yyval.interm.type) = (yyvsp[-1].interm.type);
 7523|  8.10k|    }
 7524|  8.10k|#line 7525 "MachineIndependent/glslang_tab.cpp"
 7525|  8.10k|    break;
 7526|       |
 7527|  8.13k|  case 156: /* layout_qualifier_id_list: layout_qualifier_id  */
  ------------------
  |  Branch (7527:3): [True: 8.13k, False: 292M]
  ------------------
 7528|  8.13k|#line 1382 "MachineIndependent/glslang.y"
 7529|  8.13k|                          {
 7530|  8.13k|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7531|  8.13k|    }
 7532|  8.13k|#line 7533 "MachineIndependent/glslang_tab.cpp"
 7533|  8.13k|    break;
 7534|       |
 7535|  2.48k|  case 157: /* layout_qualifier_id_list: layout_qualifier_id_list COMMA layout_qualifier_id  */
  ------------------
  |  Branch (7535:3): [True: 2.48k, False: 292M]
  ------------------
 7536|  2.48k|#line 1385 "MachineIndependent/glslang.y"
 7537|  2.48k|                                                         {
 7538|  2.48k|        (yyval.interm.type) = (yyvsp[-2].interm.type);
 7539|  2.48k|        parseContext.checkRepeatedLocalSize((yyvsp[0].interm.type).loc, (yyval.interm.type).shaderQualifiers, (yyvsp[0].interm.type).shaderQualifiers);
  ------------------
  |  |  783|  2.48k|#define parseContext (*pParseContext)
  ------------------
 7540|  2.48k|        (yyval.interm.type).shaderQualifiers.merge((yyvsp[0].interm.type).shaderQualifiers);
 7541|  2.48k|        parseContext.mergeObjectLayoutQualifiers((yyval.interm.type).qualifier, (yyvsp[0].interm.type).qualifier, false);
  ------------------
  |  |  783|  2.48k|#define parseContext (*pParseContext)
  ------------------
 7542|  2.48k|    }
 7543|  2.48k|#line 7544 "MachineIndependent/glslang_tab.cpp"
 7544|  2.48k|    break;
 7545|       |
 7546|  3.63k|  case 158: /* layout_qualifier_id: IDENTIFIER  */
  ------------------
  |  Branch (7546:3): [True: 3.63k, False: 292M]
  ------------------
 7547|  3.63k|#line 1393 "MachineIndependent/glslang.y"
 7548|  3.63k|                 {
 7549|  3.63k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7550|  3.63k|        parseContext.setLayoutQualifier((yyvsp[0].lex).loc, (yyval.interm.type), *(yyvsp[0].lex).string);
  ------------------
  |  |  783|  3.63k|#define parseContext (*pParseContext)
  ------------------
 7551|  3.63k|    }
 7552|  3.63k|#line 7553 "MachineIndependent/glslang_tab.cpp"
 7553|  3.63k|    break;
 7554|       |
 7555|  6.89k|  case 159: /* layout_qualifier_id: IDENTIFIER EQUAL assignment_expression  */
  ------------------
  |  Branch (7555:3): [True: 6.89k, False: 292M]
  ------------------
 7556|  6.89k|#line 1397 "MachineIndependent/glslang.y"
 7557|  6.89k|                                             {
 7558|  6.89k|        (yyval.interm.type).init((yyvsp[-2].lex).loc);
 7559|  6.89k|        parseContext.setLayoutQualifier((yyvsp[-2].lex).loc, (yyval.interm.type), *(yyvsp[-2].lex).string, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  6.89k|#define parseContext (*pParseContext)
  ------------------
 7560|  6.89k|    }
 7561|  6.89k|#line 7562 "MachineIndependent/glslang_tab.cpp"
 7562|  6.89k|    break;
 7563|       |
 7564|     85|  case 160: /* layout_qualifier_id: SHARED  */
  ------------------
  |  Branch (7564:3): [True: 85, False: 292M]
  ------------------
 7565|     85|#line 1401 "MachineIndependent/glslang.y"
 7566|     85|             { // because "shared" is both an identifier and a keyword
 7567|     85|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7568|     85|        TString strShared("shared");
 7569|     85|        parseContext.setLayoutQualifier((yyvsp[0].lex).loc, (yyval.interm.type), strShared);
  ------------------
  |  |  783|     85|#define parseContext (*pParseContext)
  ------------------
 7570|     85|    }
 7571|     85|#line 7572 "MachineIndependent/glslang_tab.cpp"
 7572|     85|    break;
 7573|       |
 7574|    137|  case 161: /* precise_qualifier: PRECISE  */
  ------------------
  |  Branch (7574:3): [True: 137, False: 292M]
  ------------------
 7575|    137|#line 1409 "MachineIndependent/glslang.y"
 7576|    137|              {
 7577|    137|        parseContext.profileRequires((yyval.interm.type).loc, ECoreProfile | ECompatibilityProfile, 400, E_GL_ARB_gpu_shader5, "precise");
  ------------------
  |  |  783|    137|#define parseContext (*pParseContext)
  ------------------
 7578|    137|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 320, Num_AEP_gpu_shader5, AEP_gpu_shader5, "precise");
  ------------------
  |  |  783|    137|#define parseContext (*pParseContext)
  ------------------
 7579|    137|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7580|    137|        (yyval.interm.type).qualifier.noContraction = true;
 7581|    137|    }
 7582|    137|#line 7583 "MachineIndependent/glslang_tab.cpp"
 7583|    137|    break;
 7584|       |
 7585|  4.21M|  case 162: /* type_qualifier: single_type_qualifier  */
  ------------------
  |  Branch (7585:3): [True: 4.21M, False: 287M]
  ------------------
 7586|  4.21M|#line 1418 "MachineIndependent/glslang.y"
 7587|  4.21M|                            {
 7588|  4.21M|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7589|  4.21M|    }
 7590|  4.21M|#line 7591 "MachineIndependent/glslang_tab.cpp"
 7591|  4.21M|    break;
 7592|       |
 7593|  3.26M|  case 163: /* type_qualifier: type_qualifier single_type_qualifier  */
  ------------------
  |  Branch (7593:3): [True: 3.26M, False: 288M]
  ------------------
 7594|  3.26M|#line 1421 "MachineIndependent/glslang.y"
 7595|  3.26M|                                           {
 7596|  3.26M|        (yyval.interm.type) = (yyvsp[-1].interm.type);
 7597|  3.26M|        if ((yyval.interm.type).basicType == EbtVoid)
  ------------------
  |  Branch (7597:13): [True: 3.26M, False: 0]
  ------------------
 7598|  3.26M|            (yyval.interm.type).basicType = (yyvsp[0].interm.type).basicType;
 7599|       |
 7600|  3.26M|        (yyval.interm.type).shaderQualifiers.merge((yyvsp[0].interm.type).shaderQualifiers);
 7601|  3.26M|        parseContext.mergeQualifiers((yyval.interm.type).loc, (yyval.interm.type).qualifier, (yyvsp[0].interm.type).qualifier, false);
  ------------------
  |  |  783|  3.26M|#define parseContext (*pParseContext)
  ------------------
 7602|  3.26M|    }
 7603|  3.26M|#line 7604 "MachineIndependent/glslang_tab.cpp"
 7604|  3.26M|    break;
 7605|       |
 7606|  5.42M|  case 164: /* single_type_qualifier: storage_qualifier  */
  ------------------
  |  Branch (7606:3): [True: 5.42M, False: 286M]
  ------------------
 7607|  5.42M|#line 1432 "MachineIndependent/glslang.y"
 7608|  5.42M|                        {
 7609|  5.42M|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7610|  5.42M|    }
 7611|  5.42M|#line 7612 "MachineIndependent/glslang_tab.cpp"
 7612|  5.42M|    break;
 7613|       |
 7614|  8.10k|  case 165: /* single_type_qualifier: layout_qualifier  */
  ------------------
  |  Branch (7614:3): [True: 8.10k, False: 292M]
  ------------------
 7615|  8.10k|#line 1435 "MachineIndependent/glslang.y"
 7616|  8.10k|                       {
 7617|  8.10k|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7618|  8.10k|    }
 7619|  8.10k|#line 7620 "MachineIndependent/glslang_tab.cpp"
 7620|  8.10k|    break;
 7621|       |
 7622|  1.99M|  case 166: /* single_type_qualifier: precision_qualifier  */
  ------------------
  |  Branch (7622:3): [True: 1.99M, False: 290M]
  ------------------
 7623|  1.99M|#line 1438 "MachineIndependent/glslang.y"
 7624|  1.99M|                          {
 7625|  1.99M|        parseContext.checkPrecisionQualifier((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).qualifier.precision);
  ------------------
  |  |  783|  1.99M|#define parseContext (*pParseContext)
  ------------------
 7626|  1.99M|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7627|  1.99M|    }
 7628|  1.99M|#line 7629 "MachineIndependent/glslang_tab.cpp"
 7629|  1.99M|    break;
 7630|       |
 7631|  38.6k|  case 167: /* single_type_qualifier: interpolation_qualifier  */
  ------------------
  |  Branch (7631:3): [True: 38.6k, False: 292M]
  ------------------
 7632|  38.6k|#line 1442 "MachineIndependent/glslang.y"
 7633|  38.6k|                              {
 7634|       |        // allow inheritance of storage qualifier from block declaration
 7635|  38.6k|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7636|  38.6k|    }
 7637|  38.6k|#line 7638 "MachineIndependent/glslang_tab.cpp"
 7638|  38.6k|    break;
 7639|       |
 7640|     32|  case 168: /* single_type_qualifier: invariant_qualifier  */
  ------------------
  |  Branch (7640:3): [True: 32, False: 292M]
  ------------------
 7641|     32|#line 1446 "MachineIndependent/glslang.y"
 7642|     32|                          {
 7643|       |        // allow inheritance of storage qualifier from block declaration
 7644|     32|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7645|     32|    }
 7646|     32|#line 7647 "MachineIndependent/glslang_tab.cpp"
 7647|     32|    break;
 7648|       |
 7649|    137|  case 169: /* single_type_qualifier: precise_qualifier  */
  ------------------
  |  Branch (7649:3): [True: 137, False: 292M]
  ------------------
 7650|    137|#line 1450 "MachineIndependent/glslang.y"
 7651|    137|                        {
 7652|       |        // allow inheritance of storage qualifier from block declaration
 7653|    137|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7654|    137|    }
 7655|    137|#line 7656 "MachineIndependent/glslang_tab.cpp"
 7656|    137|    break;
 7657|       |
 7658|      0|  case 170: /* single_type_qualifier: non_uniform_qualifier  */
  ------------------
  |  Branch (7658:3): [True: 0, False: 292M]
  ------------------
 7659|      0|#line 1454 "MachineIndependent/glslang.y"
 7660|      0|                            {
 7661|      0|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7662|      0|    }
 7663|      0|#line 7664 "MachineIndependent/glslang_tab.cpp"
 7664|      0|    break;
 7665|       |
 7666|      0|  case 171: /* single_type_qualifier: spirv_storage_class_qualifier  */
  ------------------
  |  Branch (7666:3): [True: 0, False: 292M]
  ------------------
 7667|      0|#line 1457 "MachineIndependent/glslang.y"
 7668|      0|                                    {
 7669|      0|        parseContext.globalCheck((yyvsp[0].interm.type).loc, "spirv_storage_class");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7670|      0|        parseContext.requireExtensions((yyvsp[0].interm.type).loc, 1, &E_GL_EXT_spirv_intrinsics, "SPIR-V storage class qualifier");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7671|      0|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7672|      0|    }
 7673|      0|#line 7674 "MachineIndependent/glslang_tab.cpp"
 7674|      0|    break;
 7675|       |
 7676|      0|  case 172: /* single_type_qualifier: spirv_decorate_qualifier  */
  ------------------
  |  Branch (7676:3): [True: 0, False: 292M]
  ------------------
 7677|      0|#line 1462 "MachineIndependent/glslang.y"
 7678|      0|                               {
 7679|      0|        parseContext.requireExtensions((yyvsp[0].interm.type).loc, 1, &E_GL_EXT_spirv_intrinsics, "SPIR-V decorate qualifier");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7680|      0|        (yyval.interm.type) = (yyvsp[0].interm.type);
 7681|      0|    }
 7682|      0|#line 7683 "MachineIndependent/glslang_tab.cpp"
 7683|      0|    break;
 7684|       |
 7685|      0|  case 173: /* single_type_qualifier: SPIRV_BY_REFERENCE  */
  ------------------
  |  Branch (7685:3): [True: 0, False: 292M]
  ------------------
 7686|      0|#line 1466 "MachineIndependent/glslang.y"
 7687|      0|                         {
 7688|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_EXT_spirv_intrinsics, "spirv_by_reference");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7689|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7690|      0|        (yyval.interm.type).qualifier.setSpirvByReference();
 7691|      0|    }
 7692|      0|#line 7693 "MachineIndependent/glslang_tab.cpp"
 7693|      0|    break;
 7694|       |
 7695|      0|  case 174: /* single_type_qualifier: SPIRV_LITERAL  */
  ------------------
  |  Branch (7695:3): [True: 0, False: 292M]
  ------------------
 7696|      0|#line 1471 "MachineIndependent/glslang.y"
 7697|      0|                    {
 7698|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_EXT_spirv_intrinsics, "spirv_by_literal");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7699|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7700|      0|        (yyval.interm.type).qualifier.setSpirvLiteral();
 7701|      0|    }
 7702|      0|#line 7703 "MachineIndependent/glslang_tab.cpp"
 7703|      0|    break;
 7704|       |
 7705|   285k|  case 175: /* storage_qualifier: CONST  */
  ------------------
  |  Branch (7705:3): [True: 285k, False: 291M]
  ------------------
 7706|   285k|#line 1479 "MachineIndependent/glslang.y"
 7707|   285k|            {
 7708|   285k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7709|   285k|        (yyval.interm.type).qualifier.storage = EvqConst;  // will later turn into EvqConstReadOnly, if the initializer is not constant
 7710|   285k|    }
 7711|   285k|#line 7712 "MachineIndependent/glslang_tab.cpp"
 7712|   285k|    break;
 7713|       |
 7714|  56.2k|  case 176: /* storage_qualifier: INOUT  */
  ------------------
  |  Branch (7714:3): [True: 56.2k, False: 292M]
  ------------------
 7715|  56.2k|#line 1483 "MachineIndependent/glslang.y"
 7716|  56.2k|            {
 7717|  56.2k|        parseContext.globalCheck((yyvsp[0].lex).loc, "inout");
  ------------------
  |  |  783|  56.2k|#define parseContext (*pParseContext)
  ------------------
 7718|  56.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7719|  56.2k|        (yyval.interm.type).qualifier.storage = EvqInOut;
 7720|  56.2k|    }
 7721|  56.2k|#line 7722 "MachineIndependent/glslang_tab.cpp"
 7722|  56.2k|    break;
 7723|       |
 7724|   240k|  case 177: /* storage_qualifier: IN  */
  ------------------
  |  Branch (7724:3): [True: 240k, False: 291M]
  ------------------
 7725|   240k|#line 1488 "MachineIndependent/glslang.y"
 7726|   240k|         {
 7727|   240k|        parseContext.globalCheck((yyvsp[0].lex).loc, "in");
  ------------------
  |  |  783|   240k|#define parseContext (*pParseContext)
  ------------------
 7728|   240k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7729|       |        // whether this is a parameter "in" or a pipeline "in" will get sorted out a bit later
 7730|   240k|        (yyval.interm.type).qualifier.storage = EvqIn;
 7731|   240k|    }
 7732|   240k|#line 7733 "MachineIndependent/glslang_tab.cpp"
 7733|   240k|    break;
 7734|       |
 7735|   562k|  case 178: /* storage_qualifier: OUT  */
  ------------------
  |  Branch (7735:3): [True: 562k, False: 291M]
  ------------------
 7736|   562k|#line 1494 "MachineIndependent/glslang.y"
 7737|   562k|          {
 7738|   562k|        parseContext.globalCheck((yyvsp[0].lex).loc, "out");
  ------------------
  |  |  783|   562k|#define parseContext (*pParseContext)
  ------------------
 7739|   562k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7740|       |        // whether this is a parameter "out" or a pipeline "out" will get sorted out a bit later
 7741|   562k|        (yyval.interm.type).qualifier.storage = EvqOut;
 7742|   562k|    }
 7743|   562k|#line 7744 "MachineIndependent/glslang_tab.cpp"
 7744|   562k|    break;
 7745|       |
 7746|    368|  case 179: /* storage_qualifier: CENTROID  */
  ------------------
  |  Branch (7746:3): [True: 368, False: 292M]
  ------------------
 7747|    368|#line 1500 "MachineIndependent/glslang.y"
 7748|    368|               {
 7749|    368|        parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 120, 0, "centroid");
  ------------------
  |  |  783|    368|#define parseContext (*pParseContext)
  ------------------
 7750|    368|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 300, 0, "centroid");
  ------------------
  |  |  783|    368|#define parseContext (*pParseContext)
  ------------------
 7751|    368|        parseContext.globalCheck((yyvsp[0].lex).loc, "centroid");
  ------------------
  |  |  783|    368|#define parseContext (*pParseContext)
  ------------------
 7752|    368|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7753|    368|        (yyval.interm.type).qualifier.centroid = true;
 7754|    368|    }
 7755|    368|#line 7756 "MachineIndependent/glslang_tab.cpp"
 7756|    368|    break;
 7757|       |
 7758|  13.1k|  case 180: /* storage_qualifier: UNIFORM  */
  ------------------
  |  Branch (7758:3): [True: 13.1k, False: 292M]
  ------------------
 7759|  13.1k|#line 1507 "MachineIndependent/glslang.y"
 7760|  13.1k|              {
 7761|  13.1k|        parseContext.globalCheck((yyvsp[0].lex).loc, "uniform");
  ------------------
  |  |  783|  13.1k|#define parseContext (*pParseContext)
  ------------------
 7762|  13.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7763|  13.1k|        (yyval.interm.type).qualifier.storage = EvqUniform;
 7764|  13.1k|    }
 7765|  13.1k|#line 7766 "MachineIndependent/glslang_tab.cpp"
 7766|  13.1k|    break;
 7767|       |
 7768|      0|  case 181: /* storage_qualifier: TILEIMAGEEXT  */
  ------------------
  |  Branch (7768:3): [True: 0, False: 292M]
  ------------------
 7769|      0|#line 1512 "MachineIndependent/glslang.y"
 7770|      0|                   {
 7771|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "tileImageEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7772|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7773|      0|        (yyval.interm.type).qualifier.storage = EvqTileImageEXT;
 7774|      0|    }
 7775|      0|#line 7776 "MachineIndependent/glslang_tab.cpp"
 7776|      0|    break;
 7777|       |
 7778|      0|  case 182: /* storage_qualifier: SHARED  */
  ------------------
  |  Branch (7778:3): [True: 0, False: 292M]
  ------------------
 7779|      0|#line 1517 "MachineIndependent/glslang.y"
 7780|      0|             {
 7781|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "shared");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7782|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, 430, E_GL_ARB_compute_shader, "shared");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7783|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 310, 0, "shared");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7784|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangComputeMask | EShLangMeshMask | EShLangTaskMask), "shared");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7785|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7786|      0|        (yyval.interm.type).qualifier.storage = EvqShared;
 7787|      0|    }
 7788|      0|#line 7789 "MachineIndependent/glslang_tab.cpp"
 7789|      0|    break;
 7790|       |
 7791|    414|  case 183: /* storage_qualifier: BUFFER  */
  ------------------
  |  Branch (7791:3): [True: 414, False: 292M]
  ------------------
 7792|    414|#line 1525 "MachineIndependent/glslang.y"
 7793|    414|             {
 7794|    414|        parseContext.globalCheck((yyvsp[0].lex).loc, "buffer");
  ------------------
  |  |  783|    414|#define parseContext (*pParseContext)
  ------------------
 7795|    414|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7796|    414|        (yyval.interm.type).qualifier.storage = EvqBuffer;
 7797|    414|    }
 7798|    414|#line 7799 "MachineIndependent/glslang_tab.cpp"
 7799|    414|    break;
 7800|       |
 7801|      4|  case 184: /* storage_qualifier: ATTRIBUTE  */
  ------------------
  |  Branch (7801:3): [True: 4, False: 292M]
  ------------------
 7802|      4|#line 1530 "MachineIndependent/glslang.y"
 7803|      4|                {
 7804|      4|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangVertex, "attribute");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7805|      4|        parseContext.checkDeprecated((yyvsp[0].lex).loc, ECoreProfile, 130, "attribute");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7806|      4|        parseContext.checkDeprecated((yyvsp[0].lex).loc, ENoProfile, 130, "attribute");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7807|      4|        parseContext.requireNotRemoved((yyvsp[0].lex).loc, ECoreProfile, 420, "attribute");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7808|      4|        parseContext.requireNotRemoved((yyvsp[0].lex).loc, EEsProfile, 300, "attribute");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7809|       |
 7810|      4|        parseContext.globalCheck((yyvsp[0].lex).loc, "attribute");
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
 7811|       |
 7812|      4|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7813|      4|        (yyval.interm.type).qualifier.storage = EvqVaryingIn;
 7814|      4|    }
 7815|      4|#line 7816 "MachineIndependent/glslang_tab.cpp"
 7816|      4|    break;
 7817|       |
 7818|     53|  case 185: /* storage_qualifier: VARYING  */
  ------------------
  |  Branch (7818:3): [True: 53, False: 292M]
  ------------------
 7819|     53|#line 1542 "MachineIndependent/glslang.y"
 7820|     53|              {
 7821|     53|        parseContext.checkDeprecated((yyvsp[0].lex).loc, ENoProfile, 130, "varying");
  ------------------
  |  |  783|     53|#define parseContext (*pParseContext)
  ------------------
 7822|     53|        parseContext.checkDeprecated((yyvsp[0].lex).loc, ECoreProfile, 130, "varying");
  ------------------
  |  |  783|     53|#define parseContext (*pParseContext)
  ------------------
 7823|     53|        parseContext.requireNotRemoved((yyvsp[0].lex).loc, ECoreProfile, 420, "varying");
  ------------------
  |  |  783|     53|#define parseContext (*pParseContext)
  ------------------
 7824|     53|        parseContext.requireNotRemoved((yyvsp[0].lex).loc, EEsProfile, 300, "varying");
  ------------------
  |  |  783|     53|#define parseContext (*pParseContext)
  ------------------
 7825|       |
 7826|     53|        parseContext.globalCheck((yyvsp[0].lex).loc, "varying");
  ------------------
  |  |  783|     53|#define parseContext (*pParseContext)
  ------------------
 7827|       |
 7828|     53|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7829|     53|        if (parseContext.language == EShLangVertex)
  ------------------
  |  |  783|     53|#define parseContext (*pParseContext)
  ------------------
  |  Branch (7829:13): [True: 0, False: 53]
  ------------------
 7830|      0|            (yyval.interm.type).qualifier.storage = EvqVaryingOut;
 7831|     53|        else
 7832|     53|            (yyval.interm.type).qualifier.storage = EvqVaryingIn;
 7833|     53|    }
 7834|     53|#line 7835 "MachineIndependent/glslang_tab.cpp"
 7835|     53|    break;
 7836|       |
 7837|  3.93k|  case 186: /* storage_qualifier: PATCH  */
  ------------------
  |  Branch (7837:3): [True: 3.93k, False: 292M]
  ------------------
 7838|  3.93k|#line 1556 "MachineIndependent/glslang.y"
 7839|  3.93k|            {
 7840|  3.93k|        parseContext.globalCheck((yyvsp[0].lex).loc, "patch");
  ------------------
  |  |  783|  3.93k|#define parseContext (*pParseContext)
  ------------------
 7841|  3.93k|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangTessControlMask | EShLangTessEvaluationMask), "patch");
  ------------------
  |  |  783|  3.93k|#define parseContext (*pParseContext)
  ------------------
 7842|  3.93k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7843|  3.93k|        (yyval.interm.type).qualifier.patch = true;
 7844|  3.93k|    }
 7845|  3.93k|#line 7846 "MachineIndependent/glslang_tab.cpp"
 7846|  3.93k|    break;
 7847|       |
 7848|    255|  case 187: /* storage_qualifier: SAMPLE  */
  ------------------
  |  Branch (7848:3): [True: 255, False: 292M]
  ------------------
 7849|    255|#line 1562 "MachineIndependent/glslang.y"
 7850|    255|             {
 7851|    255|        parseContext.globalCheck((yyvsp[0].lex).loc, "sample");
  ------------------
  |  |  783|    255|#define parseContext (*pParseContext)
  ------------------
 7852|    255|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7853|    255|        (yyval.interm.type).qualifier.sample = true;
 7854|    255|    }
 7855|    255|#line 7856 "MachineIndependent/glslang_tab.cpp"
 7856|    255|    break;
 7857|       |
 7858|      0|  case 188: /* storage_qualifier: RESOURCEHEAP  */
  ------------------
  |  Branch (7858:3): [True: 0, False: 292M]
  ------------------
 7859|      0|#line 1567 "MachineIndependent/glslang.y"
 7860|      0|                   {
 7861|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "resourceHeap");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7862|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7863|      0|        (yyval.interm.type).qualifier.storage = EvqResourceHeap;
 7864|      0|    }
 7865|      0|#line 7866 "MachineIndependent/glslang_tab.cpp"
 7866|      0|    break;
 7867|       |
 7868|      0|  case 189: /* storage_qualifier: SAMPLERHEAP  */
  ------------------
  |  Branch (7868:3): [True: 0, False: 292M]
  ------------------
 7869|      0|#line 1572 "MachineIndependent/glslang.y"
 7870|      0|                  {
 7871|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "samplerHeap");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7872|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7873|      0|        (yyval.interm.type).qualifier.storage = EvqSamplerHeap;
 7874|      0|    }
 7875|      0|#line 7876 "MachineIndependent/glslang_tab.cpp"
 7876|      0|    break;
 7877|       |
 7878|      0|  case 190: /* storage_qualifier: HITATTRNV  */
  ------------------
  |  Branch (7878:3): [True: 0, False: 292M]
  ------------------
 7879|      0|#line 1577 "MachineIndependent/glslang.y"
 7880|      0|                {
 7881|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "hitAttributeNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7882|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangIntersectMask | EShLangClosestHitMask
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7883|      0|            | EShLangAnyHitMask), "hitAttributeNV");
 7884|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_NV_ray_tracing, "hitAttributeNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7885|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7886|      0|        (yyval.interm.type).qualifier.storage = EvqHitAttr;
 7887|      0|    }
 7888|      0|#line 7889 "MachineIndependent/glslang_tab.cpp"
 7889|      0|    break;
 7890|       |
 7891|      0|  case 191: /* storage_qualifier: HITOBJECTATTRNV  */
  ------------------
  |  Branch (7891:3): [True: 0, False: 292M]
  ------------------
 7892|      0|#line 1585 "MachineIndependent/glslang.y"
 7893|      0|                      {
 7894|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "hitAttributeNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7895|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangRayGenMask | EShLangClosestHitMask
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7896|      0|            | EShLangMissMask), "hitObjectAttributeNV");
 7897|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_NV_shader_invocation_reorder, "hitObjectAttributeNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7898|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7899|      0|        (yyval.interm.type).qualifier.storage = EvqHitObjectAttrNV;
 7900|      0|    }
 7901|      0|#line 7902 "MachineIndependent/glslang_tab.cpp"
 7902|      0|    break;
 7903|       |
 7904|      0|  case 192: /* storage_qualifier: HITOBJECTATTREXT  */
  ------------------
  |  Branch (7904:3): [True: 0, False: 292M]
  ------------------
 7905|      0|#line 1593 "MachineIndependent/glslang.y"
 7906|      0|                       {
 7907|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "hitAttributeEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7908|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangRayGenMask | EShLangClosestHitMask
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7909|      0|            | EShLangMissMask), "hitObjectAttributeEXT");
 7910|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_EXT_shader_invocation_reorder, "hitObjectAttributeEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7911|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7912|      0|        (yyval.interm.type).qualifier.storage = EvqHitObjectAttrEXT;
 7913|      0|    }
 7914|      0|#line 7915 "MachineIndependent/glslang_tab.cpp"
 7915|      0|    break;
 7916|       |
 7917|      0|  case 193: /* storage_qualifier: HITATTREXT  */
  ------------------
  |  Branch (7917:3): [True: 0, False: 292M]
  ------------------
 7918|      0|#line 1601 "MachineIndependent/glslang.y"
 7919|      0|                 {
 7920|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "hitAttributeEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7921|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangIntersectMask | EShLangClosestHitMask
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7922|      0|            | EShLangAnyHitMask), "hitAttributeEXT");
 7923|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_EXT_ray_tracing, "hitAttributeNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7924|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7925|      0|        (yyval.interm.type).qualifier.storage = EvqHitAttr;
 7926|      0|    }
 7927|      0|#line 7928 "MachineIndependent/glslang_tab.cpp"
 7928|      0|    break;
 7929|       |
 7930|      0|  case 194: /* storage_qualifier: PAYLOADNV  */
  ------------------
  |  Branch (7930:3): [True: 0, False: 292M]
  ------------------
 7931|      0|#line 1609 "MachineIndependent/glslang.y"
 7932|      0|                {
 7933|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "rayPayloadNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7934|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangRayGenMask | EShLangClosestHitMask |
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7935|      0|            EShLangAnyHitMask | EShLangMissMask), "rayPayloadNV");
 7936|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_NV_ray_tracing, "rayPayloadNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7937|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7938|      0|        (yyval.interm.type).qualifier.storage = EvqPayload;
 7939|      0|    }
 7940|      0|#line 7941 "MachineIndependent/glslang_tab.cpp"
 7941|      0|    break;
 7942|       |
 7943|      0|  case 195: /* storage_qualifier: PAYLOADEXT  */
  ------------------
  |  Branch (7943:3): [True: 0, False: 292M]
  ------------------
 7944|      0|#line 1617 "MachineIndependent/glslang.y"
 7945|      0|                 {
 7946|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "rayPayloadEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7947|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangRayGenMask | EShLangClosestHitMask |
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7948|      0|            EShLangAnyHitMask | EShLangMissMask), "rayPayloadEXT");
 7949|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_EXT_ray_tracing, "rayPayloadEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7950|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7951|      0|        (yyval.interm.type).qualifier.storage = EvqPayload;
 7952|      0|    }
 7953|      0|#line 7954 "MachineIndependent/glslang_tab.cpp"
 7954|      0|    break;
 7955|       |
 7956|      0|  case 196: /* storage_qualifier: PAYLOADINNV  */
  ------------------
  |  Branch (7956:3): [True: 0, False: 292M]
  ------------------
 7957|      0|#line 1625 "MachineIndependent/glslang.y"
 7958|      0|                  {
 7959|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "rayPayloadInNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7960|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangClosestHitMask |
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7961|      0|            EShLangAnyHitMask | EShLangMissMask), "rayPayloadInNV");
 7962|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_NV_ray_tracing, "rayPayloadInNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7963|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7964|      0|        (yyval.interm.type).qualifier.storage = EvqPayloadIn;
 7965|      0|    }
 7966|      0|#line 7967 "MachineIndependent/glslang_tab.cpp"
 7967|      0|    break;
 7968|       |
 7969|      0|  case 197: /* storage_qualifier: PAYLOADINEXT  */
  ------------------
  |  Branch (7969:3): [True: 0, False: 292M]
  ------------------
 7970|      0|#line 1633 "MachineIndependent/glslang.y"
 7971|      0|                   {
 7972|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "rayPayloadInEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7973|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangClosestHitMask |
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7974|      0|            EShLangAnyHitMask | EShLangMissMask), "rayPayloadInEXT");
 7975|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_EXT_ray_tracing, "rayPayloadInEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7976|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7977|      0|        (yyval.interm.type).qualifier.storage = EvqPayloadIn;
 7978|      0|    }
 7979|      0|#line 7980 "MachineIndependent/glslang_tab.cpp"
 7980|      0|    break;
 7981|       |
 7982|      0|  case 198: /* storage_qualifier: CALLDATANV  */
  ------------------
  |  Branch (7982:3): [True: 0, False: 292M]
  ------------------
 7983|      0|#line 1641 "MachineIndependent/glslang.y"
 7984|      0|                 {
 7985|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "callableDataNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7986|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangRayGenMask |
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7987|      0|            EShLangClosestHitMask | EShLangMissMask | EShLangCallableMask), "callableDataNV");
 7988|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_NV_ray_tracing, "callableDataNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7989|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 7990|      0|        (yyval.interm.type).qualifier.storage = EvqCallableData;
 7991|      0|    }
 7992|      0|#line 7993 "MachineIndependent/glslang_tab.cpp"
 7993|      0|    break;
 7994|       |
 7995|      0|  case 199: /* storage_qualifier: CALLDATAEXT  */
  ------------------
  |  Branch (7995:3): [True: 0, False: 292M]
  ------------------
 7996|      0|#line 1649 "MachineIndependent/glslang.y"
 7997|      0|                  {
 7998|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "callableDataEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 7999|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangRayGenMask |
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8000|      0|            EShLangClosestHitMask | EShLangMissMask | EShLangCallableMask), "callableDataEXT");
 8001|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_EXT_ray_tracing, "callableDataEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8002|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8003|      0|        (yyval.interm.type).qualifier.storage = EvqCallableData;
 8004|      0|    }
 8005|      0|#line 8006 "MachineIndependent/glslang_tab.cpp"
 8006|      0|    break;
 8007|       |
 8008|      0|  case 200: /* storage_qualifier: CALLDATAINNV  */
  ------------------
  |  Branch (8008:3): [True: 0, False: 292M]
  ------------------
 8009|      0|#line 1657 "MachineIndependent/glslang.y"
 8010|      0|                   {
 8011|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "callableDataInNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8012|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangCallableMask), "callableDataInNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8013|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_NV_ray_tracing, "callableDataInNV");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8014|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8015|      0|        (yyval.interm.type).qualifier.storage = EvqCallableDataIn;
 8016|      0|    }
 8017|      0|#line 8018 "MachineIndependent/glslang_tab.cpp"
 8018|      0|    break;
 8019|       |
 8020|      0|  case 201: /* storage_qualifier: CALLDATAINEXT  */
  ------------------
  |  Branch (8020:3): [True: 0, False: 292M]
  ------------------
 8021|      0|#line 1664 "MachineIndependent/glslang.y"
 8022|      0|                    {
 8023|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "callableDataInEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8024|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangCallableMask), "callableDataInEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8025|      0|        parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile, 460, E_GL_EXT_ray_tracing, "callableDataInEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8026|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8027|      0|        (yyval.interm.type).qualifier.storage = EvqCallableDataIn;
 8028|      0|    }
 8029|      0|#line 8030 "MachineIndependent/glslang_tab.cpp"
 8030|      0|    break;
 8031|       |
 8032|  1.33M|  case 202: /* storage_qualifier: COHERENT  */
  ------------------
  |  Branch (8032:3): [True: 1.33M, False: 290M]
  ------------------
 8033|  1.33M|#line 1671 "MachineIndependent/glslang.y"
 8034|  1.33M|               {
 8035|  1.33M|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8036|  1.33M|        (yyval.interm.type).qualifier.coherent = true;
 8037|  1.33M|    }
 8038|  1.33M|#line 8039 "MachineIndependent/glslang_tab.cpp"
 8039|  1.33M|    break;
 8040|       |
 8041|      0|  case 203: /* storage_qualifier: DEVICECOHERENT  */
  ------------------
  |  Branch (8041:3): [True: 0, False: 292M]
  ------------------
 8042|      0|#line 1675 "MachineIndependent/glslang.y"
 8043|      0|                     {
 8044|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8045|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_KHR_memory_scope_semantics, "devicecoherent");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8046|      0|        (yyval.interm.type).qualifier.devicecoherent = true;
 8047|      0|    }
 8048|      0|#line 8049 "MachineIndependent/glslang_tab.cpp"
 8049|      0|    break;
 8050|       |
 8051|      0|  case 204: /* storage_qualifier: QUEUEFAMILYCOHERENT  */
  ------------------
  |  Branch (8051:3): [True: 0, False: 292M]
  ------------------
 8052|      0|#line 1680 "MachineIndependent/glslang.y"
 8053|      0|                          {
 8054|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8055|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_KHR_memory_scope_semantics, "queuefamilycoherent");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8056|      0|        (yyval.interm.type).qualifier.queuefamilycoherent = true;
 8057|      0|    }
 8058|      0|#line 8059 "MachineIndependent/glslang_tab.cpp"
 8059|      0|    break;
 8060|       |
 8061|      0|  case 205: /* storage_qualifier: WORKGROUPCOHERENT  */
  ------------------
  |  Branch (8061:3): [True: 0, False: 292M]
  ------------------
 8062|      0|#line 1685 "MachineIndependent/glslang.y"
 8063|      0|                        {
 8064|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8065|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_KHR_memory_scope_semantics, "workgroupcoherent");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8066|      0|        (yyval.interm.type).qualifier.workgroupcoherent = true;
 8067|      0|    }
 8068|      0|#line 8069 "MachineIndependent/glslang_tab.cpp"
 8069|      0|    break;
 8070|       |
 8071|      0|  case 206: /* storage_qualifier: SUBGROUPCOHERENT  */
  ------------------
  |  Branch (8071:3): [True: 0, False: 292M]
  ------------------
 8072|      0|#line 1690 "MachineIndependent/glslang.y"
 8073|      0|                       {
 8074|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8075|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_KHR_memory_scope_semantics, "subgroupcoherent");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8076|      0|        (yyval.interm.type).qualifier.subgroupcoherent = true;
 8077|      0|    }
 8078|      0|#line 8079 "MachineIndependent/glslang_tab.cpp"
 8079|      0|    break;
 8080|       |
 8081|      0|  case 207: /* storage_qualifier: NONPRIVATE  */
  ------------------
  |  Branch (8081:3): [True: 0, False: 292M]
  ------------------
 8082|      0|#line 1695 "MachineIndependent/glslang.y"
 8083|      0|                 {
 8084|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8085|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_KHR_memory_scope_semantics, "nonprivate");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8086|      0|        (yyval.interm.type).qualifier.nonprivate = true;
 8087|      0|    }
 8088|      0|#line 8089 "MachineIndependent/glslang_tab.cpp"
 8089|      0|    break;
 8090|       |
 8091|      0|  case 208: /* storage_qualifier: SHADERCALLCOHERENT  */
  ------------------
  |  Branch (8091:3): [True: 0, False: 292M]
  ------------------
 8092|      0|#line 1700 "MachineIndependent/glslang.y"
 8093|      0|                         {
 8094|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8095|      0|        parseContext.requireExtensions((yyvsp[0].lex).loc, 1, &E_GL_EXT_ray_tracing, "shadercallcoherent");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8096|      0|        (yyval.interm.type).qualifier.shadercallcoherent = true;
 8097|      0|    }
 8098|      0|#line 8099 "MachineIndependent/glslang_tab.cpp"
 8099|      0|    break;
 8100|       |
 8101|  1.35M|  case 209: /* storage_qualifier: VOLATILE  */
  ------------------
  |  Branch (8101:3): [True: 1.35M, False: 290M]
  ------------------
 8102|  1.35M|#line 1705 "MachineIndependent/glslang.y"
 8103|  1.35M|               {
 8104|  1.35M|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8105|  1.35M|        (yyval.interm.type).qualifier.volatil = true;
 8106|  1.35M|    }
 8107|  1.35M|#line 8108 "MachineIndependent/glslang_tab.cpp"
 8108|  1.35M|    break;
 8109|       |
 8110|    100|  case 210: /* storage_qualifier: RESTRICT  */
  ------------------
  |  Branch (8110:3): [True: 100, False: 292M]
  ------------------
 8111|    100|#line 1709 "MachineIndependent/glslang.y"
 8112|    100|               {
 8113|    100|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8114|    100|        (yyval.interm.type).qualifier.restrict = true;
 8115|    100|    }
 8116|    100|#line 8117 "MachineIndependent/glslang_tab.cpp"
 8117|    100|    break;
 8118|       |
 8119|   157k|  case 211: /* storage_qualifier: READONLY  */
  ------------------
  |  Branch (8119:3): [True: 157k, False: 292M]
  ------------------
 8120|   157k|#line 1713 "MachineIndependent/glslang.y"
 8121|   157k|               {
 8122|   157k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8123|   157k|        (yyval.interm.type).qualifier.readonly = true;
 8124|   157k|    }
 8125|   157k|#line 8126 "MachineIndependent/glslang_tab.cpp"
 8126|   157k|    break;
 8127|       |
 8128|   136k|  case 212: /* storage_qualifier: WRITEONLY  */
  ------------------
  |  Branch (8128:3): [True: 136k, False: 292M]
  ------------------
 8129|   136k|#line 1717 "MachineIndependent/glslang.y"
 8130|   136k|                {
 8131|   136k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8132|   136k|        (yyval.interm.type).qualifier.writeonly = true;
 8133|   136k|    }
 8134|   136k|#line 8135 "MachineIndependent/glslang_tab.cpp"
 8135|   136k|    break;
 8136|       |
 8137|  1.28M|  case 213: /* storage_qualifier: NONTEMPORAL  */
  ------------------
  |  Branch (8137:3): [True: 1.28M, False: 290M]
  ------------------
 8138|  1.28M|#line 1721 "MachineIndependent/glslang.y"
 8139|  1.28M|                  {
 8140|  1.28M|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8141|  1.28M|        (yyval.interm.type).qualifier.nontemporal  = true;
 8142|  1.28M|    }
 8143|  1.28M|#line 8144 "MachineIndependent/glslang_tab.cpp"
 8144|  1.28M|    break;
 8145|       |
 8146|     13|  case 214: /* storage_qualifier: SUBROUTINE  */
  ------------------
  |  Branch (8146:3): [True: 13, False: 292M]
  ------------------
 8147|     13|#line 1725 "MachineIndependent/glslang.y"
 8148|     13|                 {
 8149|     13|        parseContext.spvRemoved((yyvsp[0].lex).loc, "subroutine");
  ------------------
  |  |  783|     13|#define parseContext (*pParseContext)
  ------------------
 8150|     13|        parseContext.globalCheck((yyvsp[0].lex).loc, "subroutine");
  ------------------
  |  |  783|     13|#define parseContext (*pParseContext)
  ------------------
 8151|     13|        parseContext.unimplemented((yyvsp[0].lex).loc, "subroutine");
  ------------------
  |  |  783|     13|#define parseContext (*pParseContext)
  ------------------
 8152|     13|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8153|     13|    }
 8154|     13|#line 8155 "MachineIndependent/glslang_tab.cpp"
 8155|     13|    break;
 8156|       |
 8157|      2|  case 215: /* storage_qualifier: SUBROUTINE LEFT_PAREN type_name_list RIGHT_PAREN  */
  ------------------
  |  Branch (8157:3): [True: 2, False: 292M]
  ------------------
 8158|      2|#line 1731 "MachineIndependent/glslang.y"
 8159|      2|                                                       {
 8160|      2|        parseContext.spvRemoved((yyvsp[-3].lex).loc, "subroutine");
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 8161|      2|        parseContext.globalCheck((yyvsp[-3].lex).loc, "subroutine");
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 8162|      2|        parseContext.unimplemented((yyvsp[-3].lex).loc, "subroutine");
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 8163|      2|        (yyval.interm.type).init((yyvsp[-3].lex).loc);
 8164|      2|    }
 8165|      2|#line 8166 "MachineIndependent/glslang_tab.cpp"
 8166|      2|    break;
 8167|       |
 8168|      0|  case 216: /* storage_qualifier: TASKPAYLOADWORKGROUPEXT  */
  ------------------
  |  Branch (8168:3): [True: 0, False: 292M]
  ------------------
 8169|      0|#line 1737 "MachineIndependent/glslang.y"
 8170|      0|                              {
 8171|       |        // No need for profile version or extension check. Shader stage already checks both.
 8172|      0|        parseContext.globalCheck((yyvsp[0].lex).loc, "taskPayloadSharedEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8173|      0|        parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangTaskMask | EShLangMeshMask), "taskPayloadSharedEXT  ");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8174|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8175|      0|        (yyval.interm.type).qualifier.storage = EvqtaskPayloadSharedEXT;
 8176|      0|    }
 8177|      0|#line 8178 "MachineIndependent/glslang_tab.cpp"
 8178|      0|    break;
 8179|       |
 8180|      0|  case 217: /* non_uniform_qualifier: NONUNIFORM  */
  ------------------
  |  Branch (8180:3): [True: 0, False: 292M]
  ------------------
 8181|      0|#line 1747 "MachineIndependent/glslang.y"
 8182|      0|                 {
 8183|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc);
 8184|      0|        (yyval.interm.type).qualifier.nonUniform = true;
 8185|      0|    }
 8186|      0|#line 8187 "MachineIndependent/glslang_tab.cpp"
 8187|      0|    break;
 8188|       |
 8189|      2|  case 218: /* type_name_list: IDENTIFIER  */
  ------------------
  |  Branch (8189:3): [True: 2, False: 292M]
  ------------------
 8190|      2|#line 1754 "MachineIndependent/glslang.y"
 8191|      2|                 {
 8192|       |        // TODO
 8193|      2|    }
 8194|      2|#line 8195 "MachineIndependent/glslang_tab.cpp"
 8195|      2|    break;
 8196|       |
 8197|      2|  case 219: /* type_name_list: type_name_list COMMA IDENTIFIER  */
  ------------------
  |  Branch (8197:3): [True: 2, False: 292M]
  ------------------
 8198|      2|#line 1757 "MachineIndependent/glslang.y"
 8199|      2|                                      {
 8200|       |        // TODO: 4.0 semantics: subroutines
 8201|       |        // 1) make sure each identifier is a type declared earlier with SUBROUTINE
 8202|       |        // 2) save all of the identifiers for future comparison with the declared function
 8203|      2|    }
 8204|      2|#line 8205 "MachineIndependent/glslang_tab.cpp"
 8205|      2|    break;
 8206|       |
 8207|  35.1M|  case 220: /* type_specifier: type_specifier_nonarray type_parameter_specifier_opt  */
  ------------------
  |  Branch (8207:3): [True: 35.1M, False: 257M]
  ------------------
 8208|  35.1M|#line 1765 "MachineIndependent/glslang.y"
 8209|  35.1M|                                                           {
 8210|  35.1M|        (yyval.interm.type) = (yyvsp[-1].interm.type);
 8211|  35.1M|        (yyval.interm.type).qualifier.precision = parseContext.getDefaultPrecision((yyval.interm.type));
  ------------------
  |  |  783|  35.1M|#define parseContext (*pParseContext)
  ------------------
 8212|  35.1M|        (yyval.interm.type).typeParameters = (yyvsp[0].interm.typeParameters);
 8213|  35.1M|        parseContext.typeParametersCheck((yyvsp[-1].interm.type).loc, (yyval.interm.type));
  ------------------
  |  |  783|  35.1M|#define parseContext (*pParseContext)
  ------------------
 8214|       |
 8215|  35.1M|    }
 8216|  35.1M|#line 8217 "MachineIndependent/glslang_tab.cpp"
 8217|  35.1M|    break;
 8218|       |
 8219|   365k|  case 221: /* type_specifier: type_specifier_nonarray type_parameter_specifier_opt array_specifier  */
  ------------------
  |  Branch (8219:3): [True: 365k, False: 291M]
  ------------------
 8220|   365k|#line 1772 "MachineIndependent/glslang.y"
 8221|   365k|                                                                           {
 8222|   365k|        parseContext.arrayOfArrayVersionCheck((yyvsp[0].interm).loc, (yyvsp[0].interm).arraySizes);
  ------------------
  |  |  783|   365k|#define parseContext (*pParseContext)
  ------------------
 8223|   365k|        (yyval.interm.type) = (yyvsp[-2].interm.type);
 8224|   365k|        (yyval.interm.type).qualifier.precision = parseContext.getDefaultPrecision((yyval.interm.type));
  ------------------
  |  |  783|   365k|#define parseContext (*pParseContext)
  ------------------
 8225|   365k|        (yyval.interm.type).typeParameters = (yyvsp[-1].interm.typeParameters);
 8226|   365k|        (yyval.interm.type).arraySizes = (yyvsp[0].interm).arraySizes;
 8227|   365k|        parseContext.typeParametersCheck((yyvsp[-2].interm.type).loc, (yyval.interm.type));
  ------------------
  |  |  783|   365k|#define parseContext (*pParseContext)
  ------------------
 8228|   365k|    }
 8229|   365k|#line 8230 "MachineIndependent/glslang_tab.cpp"
 8230|   365k|    break;
 8231|       |
 8232|   388k|  case 222: /* array_specifier: LEFT_BRACKET RIGHT_BRACKET  */
  ------------------
  |  Branch (8232:3): [True: 388k, False: 291M]
  ------------------
 8233|   388k|#line 1783 "MachineIndependent/glslang.y"
 8234|   388k|                                 {
 8235|   388k|        (yyval.interm).loc = (yyvsp[-1].lex).loc;
 8236|   388k|        (yyval.interm).arraySizes = new TArraySizes;
 8237|   388k|        (yyval.interm).arraySizes->addInnerSize();
 8238|   388k|    }
 8239|   388k|#line 8240 "MachineIndependent/glslang_tab.cpp"
 8240|   388k|    break;
 8241|       |
 8242|  80.6k|  case 223: /* array_specifier: LEFT_BRACKET conditional_expression RIGHT_BRACKET  */
  ------------------
  |  Branch (8242:3): [True: 80.6k, False: 292M]
  ------------------
 8243|  80.6k|#line 1788 "MachineIndependent/glslang.y"
 8244|  80.6k|                                                        {
 8245|  80.6k|        (yyval.interm).loc = (yyvsp[-2].lex).loc;
 8246|  80.6k|        (yyval.interm).arraySizes = new TArraySizes;
 8247|       |
 8248|  80.6k|        TArraySize size;
 8249|  80.6k|        parseContext.arraySizeCheck((yyvsp[-1].interm.intermTypedNode)->getLoc(), (yyvsp[-1].interm.intermTypedNode), size, "array size");
  ------------------
  |  |  783|  80.6k|#define parseContext (*pParseContext)
  ------------------
 8250|  80.6k|        (yyval.interm).arraySizes->addInnerSize(size);
 8251|  80.6k|    }
 8252|  80.6k|#line 8253 "MachineIndependent/glslang_tab.cpp"
 8253|  80.6k|    break;
 8254|       |
 8255|  1.30k|  case 224: /* array_specifier: array_specifier LEFT_BRACKET RIGHT_BRACKET  */
  ------------------
  |  Branch (8255:3): [True: 1.30k, False: 292M]
  ------------------
 8256|  1.30k|#line 1796 "MachineIndependent/glslang.y"
 8257|  1.30k|                                                 {
 8258|  1.30k|        (yyval.interm) = (yyvsp[-2].interm);
 8259|  1.30k|        (yyval.interm).arraySizes->addInnerSize();
 8260|  1.30k|    }
 8261|  1.30k|#line 8262 "MachineIndependent/glslang_tab.cpp"
 8262|  1.30k|    break;
 8263|       |
 8264|  1.20k|  case 225: /* array_specifier: array_specifier LEFT_BRACKET conditional_expression RIGHT_BRACKET  */
  ------------------
  |  Branch (8264:3): [True: 1.20k, False: 292M]
  ------------------
 8265|  1.20k|#line 1800 "MachineIndependent/glslang.y"
 8266|  1.20k|                                                                        {
 8267|  1.20k|        (yyval.interm) = (yyvsp[-3].interm);
 8268|       |
 8269|  1.20k|        TArraySize size;
 8270|  1.20k|        parseContext.arraySizeCheck((yyvsp[-1].interm.intermTypedNode)->getLoc(), (yyvsp[-1].interm.intermTypedNode), size, "array size");
  ------------------
  |  |  783|  1.20k|#define parseContext (*pParseContext)
  ------------------
 8271|  1.20k|        (yyval.interm).arraySizes->addInnerSize(size);
 8272|  1.20k|    }
 8273|  1.20k|#line 8274 "MachineIndependent/glslang_tab.cpp"
 8274|  1.20k|    break;
 8275|       |
 8276|  7.16k|  case 226: /* type_parameter_specifier_opt: type_parameter_specifier  */
  ------------------
  |  Branch (8276:3): [True: 7.16k, False: 292M]
  ------------------
 8277|  7.16k|#line 1810 "MachineIndependent/glslang.y"
 8278|  7.16k|                               {
 8279|  7.16k|        (yyval.interm.typeParameters) = (yyvsp[0].interm.typeParameters);
 8280|  7.16k|    }
 8281|  7.16k|#line 8282 "MachineIndependent/glslang_tab.cpp"
 8282|  7.16k|    break;
 8283|       |
 8284|  35.4M|  case 227: /* type_parameter_specifier_opt: %empty  */
  ------------------
  |  Branch (8284:3): [True: 35.4M, False: 256M]
  ------------------
 8285|  35.4M|#line 1813 "MachineIndependent/glslang.y"
 8286|  35.4M|                        {
 8287|  35.4M|        (yyval.interm.typeParameters) = 0;
 8288|  35.4M|    }
 8289|  35.4M|#line 8290 "MachineIndependent/glslang_tab.cpp"
 8290|  35.4M|    break;
 8291|       |
 8292|  7.16k|  case 228: /* type_parameter_specifier: LEFT_ANGLE type_parameter_specifier_list RIGHT_ANGLE  */
  ------------------
  |  Branch (8292:3): [True: 7.16k, False: 292M]
  ------------------
 8293|  7.16k|#line 1819 "MachineIndependent/glslang.y"
 8294|  7.16k|                                                           {
 8295|  7.16k|        (yyval.interm.typeParameters) = (yyvsp[-1].interm.typeParameters);
 8296|  7.16k|    }
 8297|  7.16k|#line 8298 "MachineIndependent/glslang_tab.cpp"
 8298|  7.16k|    break;
 8299|       |
 8300|  7.16k|  case 229: /* type_parameter_specifier_list: type_specifier  */
  ------------------
  |  Branch (8300:3): [True: 7.16k, False: 292M]
  ------------------
 8301|  7.16k|#line 1825 "MachineIndependent/glslang.y"
 8302|  7.16k|                     {
 8303|  7.16k|        (yyval.interm.typeParameters) = new TTypeParameters;
 8304|  7.16k|        (yyval.interm.typeParameters)->arraySizes = new TArraySizes;
 8305|  7.16k|        (yyval.interm.typeParameters)->spirvType = (yyvsp[0].interm.type).spirvType;
 8306|  7.16k|        (yyval.interm.typeParameters)->basicType = (yyvsp[0].interm.type).basicType;
 8307|  7.16k|    }
 8308|  7.16k|#line 8309 "MachineIndependent/glslang_tab.cpp"
 8309|  7.16k|    break;
 8310|       |
 8311|      2|  case 230: /* type_parameter_specifier_list: unary_expression  */
  ------------------
  |  Branch (8311:3): [True: 2, False: 292M]
  ------------------
 8312|      2|#line 1831 "MachineIndependent/glslang.y"
 8313|      2|                       {
 8314|      2|        (yyval.interm.typeParameters) = new TTypeParameters;
 8315|      2|        (yyval.interm.typeParameters)->arraySizes = new TArraySizes;
 8316|       |
 8317|      2|        TArraySize size;
 8318|      2|        parseContext.arraySizeCheck((yyvsp[0].interm.intermTypedNode)->getLoc(), (yyvsp[0].interm.intermTypedNode), size, "type parameter", true);
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 8319|      2|        (yyval.interm.typeParameters)->arraySizes->addInnerSize(size);
 8320|      2|    }
 8321|      2|#line 8322 "MachineIndependent/glslang_tab.cpp"
 8322|      2|    break;
 8323|       |
 8324|  7.16k|  case 231: /* type_parameter_specifier_list: type_parameter_specifier_list COMMA unary_expression  */
  ------------------
  |  Branch (8324:3): [True: 7.16k, False: 292M]
  ------------------
 8325|  7.16k|#line 1839 "MachineIndependent/glslang.y"
 8326|  7.16k|                                                           {
 8327|  7.16k|        (yyval.interm.typeParameters) = (yyvsp[-2].interm.typeParameters);
 8328|       |
 8329|  7.16k|        TArraySize size;
 8330|  7.16k|        parseContext.arraySizeCheck((yyvsp[0].interm.intermTypedNode)->getLoc(), (yyvsp[0].interm.intermTypedNode), size, "type parameter", true);
  ------------------
  |  |  783|  7.16k|#define parseContext (*pParseContext)
  ------------------
 8331|  7.16k|        (yyval.interm.typeParameters)->arraySizes->addInnerSize(size);
 8332|  7.16k|    }
 8333|  7.16k|#line 8334 "MachineIndependent/glslang_tab.cpp"
 8334|  7.16k|    break;
 8335|       |
 8336|   448k|  case 232: /* type_specifier_nonarray: VOID  */
  ------------------
  |  Branch (8336:3): [True: 448k, False: 291M]
  ------------------
 8337|   448k|#line 1849 "MachineIndependent/glslang.y"
 8338|   448k|           {
 8339|   448k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   448k|#define parseContext (*pParseContext)
  ------------------
 8340|   448k|        (yyval.interm.type).basicType = EbtVoid;
 8341|   448k|    }
 8342|   448k|#line 8343 "MachineIndependent/glslang_tab.cpp"
 8343|   448k|    break;
 8344|       |
 8345|  1.75M|  case 233: /* type_specifier_nonarray: FLOAT  */
  ------------------
  |  Branch (8345:3): [True: 1.75M, False: 290M]
  ------------------
 8346|  1.75M|#line 1853 "MachineIndependent/glslang.y"
 8347|  1.75M|            {
 8348|  1.75M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.75M|#define parseContext (*pParseContext)
  ------------------
 8349|  1.75M|        (yyval.interm.type).basicType = EbtFloat;
 8350|  1.75M|    }
 8351|  1.75M|#line 8352 "MachineIndependent/glslang_tab.cpp"
 8352|  1.75M|    break;
 8353|       |
 8354|  5.02M|  case 234: /* type_specifier_nonarray: INT  */
  ------------------
  |  Branch (8354:3): [True: 5.02M, False: 287M]
  ------------------
 8355|  5.02M|#line 1857 "MachineIndependent/glslang.y"
 8356|  5.02M|          {
 8357|  5.02M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.02M|#define parseContext (*pParseContext)
  ------------------
 8358|  5.02M|        (yyval.interm.type).basicType = EbtInt;
 8359|  5.02M|    }
 8360|  5.02M|#line 8361 "MachineIndependent/glslang_tab.cpp"
 8361|  5.02M|    break;
 8362|       |
 8363|  2.75M|  case 235: /* type_specifier_nonarray: UINT  */
  ------------------
  |  Branch (8363:3): [True: 2.75M, False: 289M]
  ------------------
 8364|  2.75M|#line 1861 "MachineIndependent/glslang.y"
 8365|  2.75M|           {
 8366|  2.75M|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer");
  ------------------
  |  |  783|  2.75M|#define parseContext (*pParseContext)
  ------------------
 8367|  2.75M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.75M|#define parseContext (*pParseContext)
  ------------------
 8368|  2.75M|        (yyval.interm.type).basicType = EbtUint;
 8369|  2.75M|    }
 8370|  2.75M|#line 8371 "MachineIndependent/glslang_tab.cpp"
 8371|  2.75M|    break;
 8372|       |
 8373|   377k|  case 236: /* type_specifier_nonarray: BOOL  */
  ------------------
  |  Branch (8373:3): [True: 377k, False: 291M]
  ------------------
 8374|   377k|#line 1866 "MachineIndependent/glslang.y"
 8375|   377k|           {
 8376|   377k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   377k|#define parseContext (*pParseContext)
  ------------------
 8377|   377k|        (yyval.interm.type).basicType = EbtBool;
 8378|   377k|    }
 8379|   377k|#line 8380 "MachineIndependent/glslang_tab.cpp"
 8380|   377k|    break;
 8381|       |
 8382|  1.19M|  case 237: /* type_specifier_nonarray: VEC2  */
  ------------------
  |  Branch (8382:3): [True: 1.19M, False: 290M]
  ------------------
 8383|  1.19M|#line 1870 "MachineIndependent/glslang.y"
 8384|  1.19M|           {
 8385|  1.19M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.19M|#define parseContext (*pParseContext)
  ------------------
 8386|  1.19M|        (yyval.interm.type).basicType = EbtFloat;
 8387|  1.19M|        (yyval.interm.type).setVector(2);
 8388|  1.19M|    }
 8389|  1.19M|#line 8390 "MachineIndependent/glslang_tab.cpp"
 8390|  1.19M|    break;
 8391|       |
 8392|  1.15M|  case 238: /* type_specifier_nonarray: VEC3  */
  ------------------
  |  Branch (8392:3): [True: 1.15M, False: 291M]
  ------------------
 8393|  1.15M|#line 1875 "MachineIndependent/glslang.y"
 8394|  1.15M|           {
 8395|  1.15M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.15M|#define parseContext (*pParseContext)
  ------------------
 8396|  1.15M|        (yyval.interm.type).basicType = EbtFloat;
 8397|  1.15M|        (yyval.interm.type).setVector(3);
 8398|  1.15M|    }
 8399|  1.15M|#line 8400 "MachineIndependent/glslang_tab.cpp"
 8400|  1.15M|    break;
 8401|       |
 8402|  1.21M|  case 239: /* type_specifier_nonarray: VEC4  */
  ------------------
  |  Branch (8402:3): [True: 1.21M, False: 290M]
  ------------------
 8403|  1.21M|#line 1880 "MachineIndependent/glslang.y"
 8404|  1.21M|           {
 8405|  1.21M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.21M|#define parseContext (*pParseContext)
  ------------------
 8406|  1.21M|        (yyval.interm.type).basicType = EbtFloat;
 8407|  1.21M|        (yyval.interm.type).setVector(4);
 8408|  1.21M|    }
 8409|  1.21M|#line 8410 "MachineIndependent/glslang_tab.cpp"
 8410|  1.21M|    break;
 8411|       |
 8412|   217k|  case 240: /* type_specifier_nonarray: BVEC2  */
  ------------------
  |  Branch (8412:3): [True: 217k, False: 291M]
  ------------------
 8413|   217k|#line 1885 "MachineIndependent/glslang.y"
 8414|   217k|            {
 8415|   217k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   217k|#define parseContext (*pParseContext)
  ------------------
 8416|   217k|        (yyval.interm.type).basicType = EbtBool;
 8417|   217k|        (yyval.interm.type).setVector(2);
 8418|   217k|    }
 8419|   217k|#line 8420 "MachineIndependent/glslang_tab.cpp"
 8420|   217k|    break;
 8421|       |
 8422|   216k|  case 241: /* type_specifier_nonarray: BVEC3  */
  ------------------
  |  Branch (8422:3): [True: 216k, False: 291M]
  ------------------
 8423|   216k|#line 1890 "MachineIndependent/glslang.y"
 8424|   216k|            {
 8425|   216k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   216k|#define parseContext (*pParseContext)
  ------------------
 8426|   216k|        (yyval.interm.type).basicType = EbtBool;
 8427|   216k|        (yyval.interm.type).setVector(3);
 8428|   216k|    }
 8429|   216k|#line 8430 "MachineIndependent/glslang_tab.cpp"
 8430|   216k|    break;
 8431|       |
 8432|   216k|  case 242: /* type_specifier_nonarray: BVEC4  */
  ------------------
  |  Branch (8432:3): [True: 216k, False: 291M]
  ------------------
 8433|   216k|#line 1895 "MachineIndependent/glslang.y"
 8434|   216k|            {
 8435|   216k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   216k|#define parseContext (*pParseContext)
  ------------------
 8436|   216k|        (yyval.interm.type).basicType = EbtBool;
 8437|   216k|        (yyval.interm.type).setVector(4);
 8438|   216k|    }
 8439|   216k|#line 8440 "MachineIndependent/glslang_tab.cpp"
 8440|   216k|    break;
 8441|       |
 8442|  1.26M|  case 243: /* type_specifier_nonarray: IVEC2  */
  ------------------
  |  Branch (8442:3): [True: 1.26M, False: 290M]
  ------------------
 8443|  1.26M|#line 1900 "MachineIndependent/glslang.y"
 8444|  1.26M|            {
 8445|  1.26M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.26M|#define parseContext (*pParseContext)
  ------------------
 8446|  1.26M|        (yyval.interm.type).basicType = EbtInt;
 8447|  1.26M|        (yyval.interm.type).setVector(2);
 8448|  1.26M|    }
 8449|  1.26M|#line 8450 "MachineIndependent/glslang_tab.cpp"
 8450|  1.26M|    break;
 8451|       |
 8452|  1.19M|  case 244: /* type_specifier_nonarray: IVEC3  */
  ------------------
  |  Branch (8452:3): [True: 1.19M, False: 290M]
  ------------------
 8453|  1.19M|#line 1905 "MachineIndependent/glslang.y"
 8454|  1.19M|            {
 8455|  1.19M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.19M|#define parseContext (*pParseContext)
  ------------------
 8456|  1.19M|        (yyval.interm.type).basicType = EbtInt;
 8457|  1.19M|        (yyval.interm.type).setVector(3);
 8458|  1.19M|    }
 8459|  1.19M|#line 8460 "MachineIndependent/glslang_tab.cpp"
 8460|  1.19M|    break;
 8461|       |
 8462|   771k|  case 245: /* type_specifier_nonarray: IVEC4  */
  ------------------
  |  Branch (8462:3): [True: 771k, False: 291M]
  ------------------
 8463|   771k|#line 1910 "MachineIndependent/glslang.y"
 8464|   771k|            {
 8465|   771k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   771k|#define parseContext (*pParseContext)
  ------------------
 8466|   771k|        (yyval.interm.type).basicType = EbtInt;
 8467|   771k|        (yyval.interm.type).setVector(4);
 8468|   771k|    }
 8469|   771k|#line 8470 "MachineIndependent/glslang_tab.cpp"
 8470|   771k|    break;
 8471|       |
 8472|   376k|  case 246: /* type_specifier_nonarray: UVEC2  */
  ------------------
  |  Branch (8472:3): [True: 376k, False: 291M]
  ------------------
 8473|   376k|#line 1915 "MachineIndependent/glslang.y"
 8474|   376k|            {
 8475|   376k|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer vector");
  ------------------
  |  |  783|   376k|#define parseContext (*pParseContext)
  ------------------
 8476|   376k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   376k|#define parseContext (*pParseContext)
  ------------------
 8477|   376k|        (yyval.interm.type).basicType = EbtUint;
 8478|   376k|        (yyval.interm.type).setVector(2);
 8479|   376k|    }
 8480|   376k|#line 8481 "MachineIndependent/glslang_tab.cpp"
 8481|   376k|    break;
 8482|       |
 8483|   351k|  case 247: /* type_specifier_nonarray: UVEC3  */
  ------------------
  |  Branch (8483:3): [True: 351k, False: 291M]
  ------------------
 8484|   351k|#line 1921 "MachineIndependent/glslang.y"
 8485|   351k|            {
 8486|   351k|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer vector");
  ------------------
  |  |  783|   351k|#define parseContext (*pParseContext)
  ------------------
 8487|   351k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   351k|#define parseContext (*pParseContext)
  ------------------
 8488|   351k|        (yyval.interm.type).basicType = EbtUint;
 8489|   351k|        (yyval.interm.type).setVector(3);
 8490|   351k|    }
 8491|   351k|#line 8492 "MachineIndependent/glslang_tab.cpp"
 8492|   351k|    break;
 8493|       |
 8494|  2.21M|  case 248: /* type_specifier_nonarray: UVEC4  */
  ------------------
  |  Branch (8494:3): [True: 2.21M, False: 289M]
  ------------------
 8495|  2.21M|#line 1927 "MachineIndependent/glslang.y"
 8496|  2.21M|            {
 8497|  2.21M|        parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer vector");
  ------------------
  |  |  783|  2.21M|#define parseContext (*pParseContext)
  ------------------
 8498|  2.21M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.21M|#define parseContext (*pParseContext)
  ------------------
 8499|  2.21M|        (yyval.interm.type).basicType = EbtUint;
 8500|  2.21M|        (yyval.interm.type).setVector(4);
 8501|  2.21M|    }
 8502|  2.21M|#line 8503 "MachineIndependent/glslang_tab.cpp"
 8503|  2.21M|    break;
 8504|       |
 8505|  12.7k|  case 249: /* type_specifier_nonarray: MAT2  */
  ------------------
  |  Branch (8505:3): [True: 12.7k, False: 292M]
  ------------------
 8506|  12.7k|#line 1933 "MachineIndependent/glslang.y"
 8507|  12.7k|           {
 8508|  12.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.7k|#define parseContext (*pParseContext)
  ------------------
 8509|  12.7k|        (yyval.interm.type).basicType = EbtFloat;
 8510|  12.7k|        (yyval.interm.type).setMatrix(2, 2);
 8511|  12.7k|    }
 8512|  12.7k|#line 8513 "MachineIndependent/glslang_tab.cpp"
 8513|  12.7k|    break;
 8514|       |
 8515|  12.7k|  case 250: /* type_specifier_nonarray: MAT3  */
  ------------------
  |  Branch (8515:3): [True: 12.7k, False: 292M]
  ------------------
 8516|  12.7k|#line 1938 "MachineIndependent/glslang.y"
 8517|  12.7k|           {
 8518|  12.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.7k|#define parseContext (*pParseContext)
  ------------------
 8519|  12.7k|        (yyval.interm.type).basicType = EbtFloat;
 8520|  12.7k|        (yyval.interm.type).setMatrix(3, 3);
 8521|  12.7k|    }
 8522|  12.7k|#line 8523 "MachineIndependent/glslang_tab.cpp"
 8523|  12.7k|    break;
 8524|       |
 8525|  12.9k|  case 251: /* type_specifier_nonarray: MAT4  */
  ------------------
  |  Branch (8525:3): [True: 12.9k, False: 292M]
  ------------------
 8526|  12.9k|#line 1943 "MachineIndependent/glslang.y"
 8527|  12.9k|           {
 8528|  12.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.9k|#define parseContext (*pParseContext)
  ------------------
 8529|  12.9k|        (yyval.interm.type).basicType = EbtFloat;
 8530|  12.9k|        (yyval.interm.type).setMatrix(4, 4);
 8531|  12.9k|    }
 8532|  12.9k|#line 8533 "MachineIndependent/glslang_tab.cpp"
 8533|  12.9k|    break;
 8534|       |
 8535|      0|  case 252: /* type_specifier_nonarray: MAT2X2  */
  ------------------
  |  Branch (8535:3): [True: 0, False: 292M]
  ------------------
 8536|      0|#line 1948 "MachineIndependent/glslang.y"
 8537|      0|             {
 8538|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8539|      0|        (yyval.interm.type).basicType = EbtFloat;
 8540|      0|        (yyval.interm.type).setMatrix(2, 2);
 8541|      0|    }
 8542|      0|#line 8543 "MachineIndependent/glslang_tab.cpp"
 8543|      0|    break;
 8544|       |
 8545|  9.49k|  case 253: /* type_specifier_nonarray: MAT2X3  */
  ------------------
  |  Branch (8545:3): [True: 9.49k, False: 292M]
  ------------------
 8546|  9.49k|#line 1953 "MachineIndependent/glslang.y"
 8547|  9.49k|             {
 8548|  9.49k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  9.49k|#define parseContext (*pParseContext)
  ------------------
 8549|  9.49k|        (yyval.interm.type).basicType = EbtFloat;
 8550|  9.49k|        (yyval.interm.type).setMatrix(2, 3);
 8551|  9.49k|    }
 8552|  9.49k|#line 8553 "MachineIndependent/glslang_tab.cpp"
 8553|  9.49k|    break;
 8554|       |
 8555|  9.47k|  case 254: /* type_specifier_nonarray: MAT2X4  */
  ------------------
  |  Branch (8555:3): [True: 9.47k, False: 292M]
  ------------------
 8556|  9.47k|#line 1958 "MachineIndependent/glslang.y"
 8557|  9.47k|             {
 8558|  9.47k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  9.47k|#define parseContext (*pParseContext)
  ------------------
 8559|  9.47k|        (yyval.interm.type).basicType = EbtFloat;
 8560|  9.47k|        (yyval.interm.type).setMatrix(2, 4);
 8561|  9.47k|    }
 8562|  9.47k|#line 8563 "MachineIndependent/glslang_tab.cpp"
 8563|  9.47k|    break;
 8564|       |
 8565|  9.49k|  case 255: /* type_specifier_nonarray: MAT3X2  */
  ------------------
  |  Branch (8565:3): [True: 9.49k, False: 292M]
  ------------------
 8566|  9.49k|#line 1963 "MachineIndependent/glslang.y"
 8567|  9.49k|             {
 8568|  9.49k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  9.49k|#define parseContext (*pParseContext)
  ------------------
 8569|  9.49k|        (yyval.interm.type).basicType = EbtFloat;
 8570|  9.49k|        (yyval.interm.type).setMatrix(3, 2);
 8571|  9.49k|    }
 8572|  9.49k|#line 8573 "MachineIndependent/glslang_tab.cpp"
 8573|  9.49k|    break;
 8574|       |
 8575|      0|  case 256: /* type_specifier_nonarray: MAT3X3  */
  ------------------
  |  Branch (8575:3): [True: 0, False: 292M]
  ------------------
 8576|      0|#line 1968 "MachineIndependent/glslang.y"
 8577|      0|             {
 8578|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 8579|      0|        (yyval.interm.type).basicType = EbtFloat;
 8580|      0|        (yyval.interm.type).setMatrix(3, 3);
 8581|      0|    }
 8582|      0|#line 8583 "MachineIndependent/glslang_tab.cpp"
 8583|      0|    break;
 8584|       |
 8585|  9.74k|  case 257: /* type_specifier_nonarray: MAT3X4  */
  ------------------
  |  Branch (8585:3): [True: 9.74k, False: 292M]
  ------------------
 8586|  9.74k|#line 1973 "MachineIndependent/glslang.y"
 8587|  9.74k|             {
 8588|  9.74k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  9.74k|#define parseContext (*pParseContext)
  ------------------
 8589|  9.74k|        (yyval.interm.type).basicType = EbtFloat;
 8590|  9.74k|        (yyval.interm.type).setMatrix(3, 4);
 8591|  9.74k|    }
 8592|  9.74k|#line 8593 "MachineIndependent/glslang_tab.cpp"
 8593|  9.74k|    break;
 8594|       |
 8595|  9.40k|  case 258: /* type_specifier_nonarray: MAT4X2  */
  ------------------
  |  Branch (8595:3): [True: 9.40k, False: 292M]
  ------------------
 8596|  9.40k|#line 1978 "MachineIndependent/glslang.y"
 8597|  9.40k|             {
 8598|  9.40k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  9.40k|#define parseContext (*pParseContext)
  ------------------
 8599|  9.40k|        (yyval.interm.type).basicType = EbtFloat;
 8600|  9.40k|        (yyval.interm.type).setMatrix(4, 2);
 8601|  9.40k|    }
 8602|  9.40k|#line 8603 "MachineIndependent/glslang_tab.cpp"
 8603|  9.40k|    break;
 8604|       |
 8605|  10.6k|  case 259: /* type_specifier_nonarray: MAT4X3  */
  ------------------
  |  Branch (8605:3): [True: 10.6k, False: 292M]
  ------------------
 8606|  10.6k|#line 1983 "MachineIndependent/glslang.y"
 8607|  10.6k|             {
 8608|  10.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  10.6k|#define parseContext (*pParseContext)
  ------------------
 8609|  10.6k|        (yyval.interm.type).basicType = EbtFloat;
 8610|  10.6k|        (yyval.interm.type).setMatrix(4, 3);
 8611|  10.6k|    }
 8612|  10.6k|#line 8613 "MachineIndependent/glslang_tab.cpp"
 8613|  10.6k|    break;
 8614|       |
 8615|     14|  case 260: /* type_specifier_nonarray: MAT4X4  */
  ------------------
  |  Branch (8615:3): [True: 14, False: 292M]
  ------------------
 8616|     14|#line 1988 "MachineIndependent/glslang.y"
 8617|     14|             {
 8618|     14|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|     14|#define parseContext (*pParseContext)
  ------------------
 8619|     14|        (yyval.interm.type).basicType = EbtFloat;
 8620|     14|        (yyval.interm.type).setMatrix(4, 4);
 8621|     14|    }
 8622|     14|#line 8623 "MachineIndependent/glslang_tab.cpp"
 8623|     14|    break;
 8624|       |
 8625|   176k|  case 261: /* type_specifier_nonarray: DOUBLE  */
  ------------------
  |  Branch (8625:3): [True: 176k, False: 291M]
  ------------------
 8626|   176k|#line 1993 "MachineIndependent/glslang.y"
 8627|   176k|             {
 8628|   176k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double");
  ------------------
  |  |  783|   176k|#define parseContext (*pParseContext)
  ------------------
 8629|   176k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|   176k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (8629:13): [True: 8.12k, False: 168k]
  ------------------
 8630|  8.12k|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double");
  ------------------
  |  |  783|  8.12k|#define parseContext (*pParseContext)
  ------------------
 8631|   176k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   176k|#define parseContext (*pParseContext)
  ------------------
 8632|   176k|        (yyval.interm.type).basicType = EbtDouble;
 8633|   176k|    }
 8634|   176k|#line 8635 "MachineIndependent/glslang_tab.cpp"
 8635|   176k|    break;
 8636|       |
 8637|  8.37k|  case 262: /* type_specifier_nonarray: BFLOAT16_T  */
  ------------------
  |  Branch (8637:3): [True: 8.37k, False: 292M]
  ------------------
 8638|  8.37k|#line 2000 "MachineIndependent/glslang.y"
 8639|  8.37k|                 {
 8640|  8.37k|        parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "bfloat16_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  8.37k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "bfloat16_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  8.37k|#define parseContext (*pParseContext)
  ------------------
 8641|  8.37k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  8.37k|#define parseContext (*pParseContext)
  ------------------
 8642|  8.37k|        (yyval.interm.type).basicType = EbtBFloat16;
 8643|  8.37k|    }
 8644|  8.37k|#line 8645 "MachineIndependent/glslang_tab.cpp"
 8645|  8.37k|    break;
 8646|       |
 8647|  4.79k|  case 263: /* type_specifier_nonarray: FLOATE5M2_T  */
  ------------------
  |  Branch (8647:3): [True: 4.79k, False: 292M]
  ------------------
 8648|  4.79k|#line 2005 "MachineIndependent/glslang.y"
 8649|  4.79k|                  {
 8650|  4.79k|        parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "floate5m2_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.79k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "floate5m2_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.79k|#define parseContext (*pParseContext)
  ------------------
 8651|  4.79k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.79k|#define parseContext (*pParseContext)
  ------------------
 8652|  4.79k|        (yyval.interm.type).basicType = EbtFloatE5M2;
 8653|  4.79k|    }
 8654|  4.79k|#line 8655 "MachineIndependent/glslang_tab.cpp"
 8655|  4.79k|    break;
 8656|       |
 8657|  4.79k|  case 264: /* type_specifier_nonarray: FLOATE4M3_T  */
  ------------------
  |  Branch (8657:3): [True: 4.79k, False: 292M]
  ------------------
 8658|  4.79k|#line 2010 "MachineIndependent/glslang.y"
 8659|  4.79k|                  {
 8660|  4.79k|        parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "floate4m3_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.79k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "floate4m3_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.79k|#define parseContext (*pParseContext)
  ------------------
 8661|  4.79k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.79k|#define parseContext (*pParseContext)
  ------------------
 8662|  4.79k|        (yyval.interm.type).basicType = EbtFloatE4M3;
 8663|  4.79k|    }
 8664|  4.79k|#line 8665 "MachineIndependent/glslang_tab.cpp"
 8665|  4.79k|    break;
 8666|       |
 8667|  2.98k|  case 265: /* type_specifier_nonarray: FLOATE2M1_T  */
  ------------------
  |  Branch (8667:3): [True: 2.98k, False: 292M]
  ------------------
 8668|  2.98k|#line 2015 "MachineIndependent/glslang.y"
 8669|  2.98k|                  {
 8670|  2.98k|        parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "floate2m1_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "floate2m1_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
 8671|  2.98k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
 8672|  2.98k|        (yyval.interm.type).basicType = EbtFloatE2M1;
 8673|  2.98k|    }
 8674|  2.98k|#line 8675 "MachineIndependent/glslang_tab.cpp"
 8675|  2.98k|    break;
 8676|       |
 8677|  2.98k|  case 266: /* type_specifier_nonarray: FLOATE3M2_T  */
  ------------------
  |  Branch (8677:3): [True: 2.98k, False: 292M]
  ------------------
 8678|  2.98k|#line 2020 "MachineIndependent/glslang.y"
 8679|  2.98k|                  {
 8680|  2.98k|        parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "floate3m2_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "floate3m2_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
 8681|  2.98k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
 8682|  2.98k|        (yyval.interm.type).basicType = EbtFloatE3M2;
 8683|  2.98k|    }
 8684|  2.98k|#line 8685 "MachineIndependent/glslang_tab.cpp"
 8685|  2.98k|    break;
 8686|       |
 8687|  2.98k|  case 267: /* type_specifier_nonarray: FLOATE2M3_T  */
  ------------------
  |  Branch (8687:3): [True: 2.98k, False: 292M]
  ------------------
 8688|  2.98k|#line 2025 "MachineIndependent/glslang.y"
 8689|  2.98k|                  {
 8690|  2.98k|        parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "floate2m3_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "floate2m3_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
 8691|  2.98k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.98k|#define parseContext (*pParseContext)
  ------------------
 8692|  2.98k|        (yyval.interm.type).basicType = EbtFloatE2M3;
 8693|  2.98k|    }
 8694|  2.98k|#line 8695 "MachineIndependent/glslang_tab.cpp"
 8695|  2.98k|    break;
 8696|       |
 8697|  2.38k|  case 268: /* type_specifier_nonarray: FLOATUE8M0_T  */
  ------------------
  |  Branch (8697:3): [True: 2.38k, False: 292M]
  ------------------
 8698|  2.38k|#line 2030 "MachineIndependent/glslang.y"
 8699|  2.38k|                   {
 8700|  2.38k|        parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "floatue8m0_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "floatue8m0_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8701|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8702|  2.38k|        (yyval.interm.type).basicType = EbtFloatUE8M0;
 8703|  2.38k|    }
 8704|  2.38k|#line 8705 "MachineIndependent/glslang_tab.cpp"
 8705|  2.38k|    break;
 8706|       |
 8707|  2.38k|  case 269: /* type_specifier_nonarray: FLOATMXINT8_T  */
  ------------------
  |  Branch (8707:3): [True: 2.38k, False: 292M]
  ------------------
 8708|  2.38k|#line 2035 "MachineIndependent/glslang.y"
 8709|  2.38k|                    {
 8710|  2.38k|        parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "floatmxint8_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "floatmxint8_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8711|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8712|  2.38k|        (yyval.interm.type).basicType = EbtFloatMXINT8;
 8713|  2.38k|    }
 8714|  2.38k|#line 8715 "MachineIndependent/glslang_tab.cpp"
 8715|  2.38k|    break;
 8716|       |
 8717|   566k|  case 270: /* type_specifier_nonarray: FLOAT16_T  */
  ------------------
  |  Branch (8717:3): [True: 566k, False: 291M]
  ------------------
 8718|   566k|#line 2040 "MachineIndependent/glslang.y"
 8719|   566k|                {
 8720|   566k|        parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "float16_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   566k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "float16_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   566k|#define parseContext (*pParseContext)
  ------------------
 8721|   566k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   566k|#define parseContext (*pParseContext)
  ------------------
 8722|   566k|        (yyval.interm.type).basicType = EbtFloat16;
 8723|   566k|    }
 8724|   566k|#line 8725 "MachineIndependent/glslang_tab.cpp"
 8725|   566k|    break;
 8726|       |
 8727|  22.9k|  case 271: /* type_specifier_nonarray: FLOAT32_T  */
  ------------------
  |  Branch (8727:3): [True: 22.9k, False: 292M]
  ------------------
 8728|  22.9k|#line 2045 "MachineIndependent/glslang.y"
 8729|  22.9k|                {
 8730|  22.9k|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  22.9k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  22.9k|#define parseContext (*pParseContext)
  ------------------
 8731|  22.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  22.9k|#define parseContext (*pParseContext)
  ------------------
 8732|  22.9k|        (yyval.interm.type).basicType = EbtFloat;
 8733|  22.9k|    }
 8734|  22.9k|#line 8735 "MachineIndependent/glslang_tab.cpp"
 8735|  22.9k|    break;
 8736|       |
 8737|  80.1k|  case 272: /* type_specifier_nonarray: FLOAT64_T  */
  ------------------
  |  Branch (8737:3): [True: 80.1k, False: 292M]
  ------------------
 8738|  80.1k|#line 2050 "MachineIndependent/glslang.y"
 8739|  80.1k|                {
 8740|  80.1k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  80.1k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  80.1k|#define parseContext (*pParseContext)
  ------------------
 8741|  80.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  80.1k|#define parseContext (*pParseContext)
  ------------------
 8742|  80.1k|        (yyval.interm.type).basicType = EbtDouble;
 8743|  80.1k|    }
 8744|  80.1k|#line 8745 "MachineIndependent/glslang_tab.cpp"
 8745|  80.1k|    break;
 8746|       |
 8747|   271k|  case 273: /* type_specifier_nonarray: INT8_T  */
  ------------------
  |  Branch (8747:3): [True: 271k, False: 291M]
  ------------------
 8748|   271k|#line 2055 "MachineIndependent/glslang.y"
 8749|   271k|             {
 8750|   271k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   271k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   271k|#define parseContext (*pParseContext)
  ------------------
 8751|   271k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   271k|#define parseContext (*pParseContext)
  ------------------
 8752|   271k|        (yyval.interm.type).basicType = EbtInt8;
 8753|   271k|    }
 8754|   271k|#line 8755 "MachineIndependent/glslang_tab.cpp"
 8755|   271k|    break;
 8756|       |
 8757|   253k|  case 274: /* type_specifier_nonarray: UINT8_T  */
  ------------------
  |  Branch (8757:3): [True: 253k, False: 291M]
  ------------------
 8758|   253k|#line 2060 "MachineIndependent/glslang.y"
 8759|   253k|              {
 8760|   253k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   253k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   253k|#define parseContext (*pParseContext)
  ------------------
 8761|   253k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   253k|#define parseContext (*pParseContext)
  ------------------
 8762|   253k|        (yyval.interm.type).basicType = EbtUint8;
 8763|   253k|    }
 8764|   253k|#line 8765 "MachineIndependent/glslang_tab.cpp"
 8765|   253k|    break;
 8766|       |
 8767|   312k|  case 275: /* type_specifier_nonarray: INT16_T  */
  ------------------
  |  Branch (8767:3): [True: 312k, False: 291M]
  ------------------
 8768|   312k|#line 2065 "MachineIndependent/glslang.y"
 8769|   312k|              {
 8770|   312k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   312k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   312k|#define parseContext (*pParseContext)
  ------------------
 8771|   312k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   312k|#define parseContext (*pParseContext)
  ------------------
 8772|   312k|        (yyval.interm.type).basicType = EbtInt16;
 8773|   312k|    }
 8774|   312k|#line 8775 "MachineIndependent/glslang_tab.cpp"
 8775|   312k|    break;
 8776|       |
 8777|   289k|  case 276: /* type_specifier_nonarray: UINT16_T  */
  ------------------
  |  Branch (8777:3): [True: 289k, False: 291M]
  ------------------
 8778|   289k|#line 2070 "MachineIndependent/glslang.y"
 8779|   289k|               {
 8780|   289k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   289k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   289k|#define parseContext (*pParseContext)
  ------------------
 8781|   289k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   289k|#define parseContext (*pParseContext)
  ------------------
 8782|   289k|        (yyval.interm.type).basicType = EbtUint16;
 8783|   289k|    }
 8784|   289k|#line 8785 "MachineIndependent/glslang_tab.cpp"
 8785|   289k|    break;
 8786|       |
 8787|  26.2k|  case 277: /* type_specifier_nonarray: INT32_T  */
  ------------------
  |  Branch (8787:3): [True: 26.2k, False: 292M]
  ------------------
 8788|  26.2k|#line 2075 "MachineIndependent/glslang.y"
 8789|  26.2k|              {
 8790|  26.2k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  26.2k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  26.2k|#define parseContext (*pParseContext)
  ------------------
 8791|  26.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.2k|#define parseContext (*pParseContext)
  ------------------
 8792|  26.2k|        (yyval.interm.type).basicType = EbtInt;
 8793|  26.2k|    }
 8794|  26.2k|#line 8795 "MachineIndependent/glslang_tab.cpp"
 8795|  26.2k|    break;
 8796|       |
 8797|  26.5k|  case 278: /* type_specifier_nonarray: UINT32_T  */
  ------------------
  |  Branch (8797:3): [True: 26.5k, False: 292M]
  ------------------
 8798|  26.5k|#line 2080 "MachineIndependent/glslang.y"
 8799|  26.5k|               {
 8800|  26.5k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
 8801|  26.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
 8802|  26.5k|        (yyval.interm.type).basicType = EbtUint;
 8803|  26.5k|    }
 8804|  26.5k|#line 8805 "MachineIndependent/glslang_tab.cpp"
 8805|  26.5k|    break;
 8806|       |
 8807|   600k|  case 279: /* type_specifier_nonarray: INT64_T  */
  ------------------
  |  Branch (8807:3): [True: 600k, False: 291M]
  ------------------
 8808|   600k|#line 2085 "MachineIndependent/glslang.y"
 8809|   600k|              {
 8810|   600k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   600k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   600k|#define parseContext (*pParseContext)
  ------------------
 8811|   600k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   600k|#define parseContext (*pParseContext)
  ------------------
 8812|   600k|        (yyval.interm.type).basicType = EbtInt64;
 8813|   600k|    }
 8814|   600k|#line 8815 "MachineIndependent/glslang_tab.cpp"
 8815|   600k|    break;
 8816|       |
 8817|   749k|  case 280: /* type_specifier_nonarray: UINT64_T  */
  ------------------
  |  Branch (8817:3): [True: 749k, False: 291M]
  ------------------
 8818|   749k|#line 2090 "MachineIndependent/glslang.y"
 8819|   749k|               {
 8820|   749k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   749k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   749k|#define parseContext (*pParseContext)
  ------------------
 8821|   749k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   749k|#define parseContext (*pParseContext)
  ------------------
 8822|   749k|        (yyval.interm.type).basicType = EbtUint64;
 8823|   749k|    }
 8824|   749k|#line 8825 "MachineIndependent/glslang_tab.cpp"
 8825|   749k|    break;
 8826|       |
 8827|   157k|  case 281: /* type_specifier_nonarray: DVEC2  */
  ------------------
  |  Branch (8827:3): [True: 157k, False: 292M]
  ------------------
 8828|   157k|#line 2095 "MachineIndependent/glslang.y"
 8829|   157k|            {
 8830|   157k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double vector");
  ------------------
  |  |  783|   157k|#define parseContext (*pParseContext)
  ------------------
 8831|   157k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|   157k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (8831:13): [True: 8.18k, False: 149k]
  ------------------
 8832|  8.18k|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double vector");
  ------------------
  |  |  783|  8.18k|#define parseContext (*pParseContext)
  ------------------
 8833|   157k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   157k|#define parseContext (*pParseContext)
  ------------------
 8834|   157k|        (yyval.interm.type).basicType = EbtDouble;
 8835|   157k|        (yyval.interm.type).setVector(2);
 8836|   157k|    }
 8837|   157k|#line 8838 "MachineIndependent/glslang_tab.cpp"
 8838|   157k|    break;
 8839|       |
 8840|   157k|  case 282: /* type_specifier_nonarray: DVEC3  */
  ------------------
  |  Branch (8840:3): [True: 157k, False: 292M]
  ------------------
 8841|   157k|#line 2103 "MachineIndependent/glslang.y"
 8842|   157k|            {
 8843|   157k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double vector");
  ------------------
  |  |  783|   157k|#define parseContext (*pParseContext)
  ------------------
 8844|   157k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|   157k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (8844:13): [True: 7.37k, False: 150k]
  ------------------
 8845|  7.37k|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double vector");
  ------------------
  |  |  783|  7.37k|#define parseContext (*pParseContext)
  ------------------
 8846|   157k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   157k|#define parseContext (*pParseContext)
  ------------------
 8847|   157k|        (yyval.interm.type).basicType = EbtDouble;
 8848|   157k|        (yyval.interm.type).setVector(3);
 8849|   157k|    }
 8850|   157k|#line 8851 "MachineIndependent/glslang_tab.cpp"
 8851|   157k|    break;
 8852|       |
 8853|   156k|  case 283: /* type_specifier_nonarray: DVEC4  */
  ------------------
  |  Branch (8853:3): [True: 156k, False: 292M]
  ------------------
 8854|   156k|#line 2111 "MachineIndependent/glslang.y"
 8855|   156k|            {
 8856|   156k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double vector");
  ------------------
  |  |  783|   156k|#define parseContext (*pParseContext)
  ------------------
 8857|   156k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|   156k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (8857:13): [True: 7.10k, False: 149k]
  ------------------
 8858|  7.10k|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double vector");
  ------------------
  |  |  783|  7.10k|#define parseContext (*pParseContext)
  ------------------
 8859|   156k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   156k|#define parseContext (*pParseContext)
  ------------------
 8860|   156k|        (yyval.interm.type).basicType = EbtDouble;
 8861|   156k|        (yyval.interm.type).setVector(4);
 8862|   156k|    }
 8863|   156k|#line 8864 "MachineIndependent/glslang_tab.cpp"
 8864|   156k|    break;
 8865|       |
 8866|  4.78k|  case 284: /* type_specifier_nonarray: BF16VEC2  */
  ------------------
  |  Branch (8866:3): [True: 4.78k, False: 292M]
  ------------------
 8867|  4.78k|#line 2119 "MachineIndependent/glslang.y"
 8868|  4.78k|               {
 8869|  4.78k|        parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.78k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.78k|#define parseContext (*pParseContext)
  ------------------
 8870|  4.78k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.78k|#define parseContext (*pParseContext)
  ------------------
 8871|  4.78k|        (yyval.interm.type).basicType = EbtBFloat16;
 8872|  4.78k|        (yyval.interm.type).setVector(2);
 8873|  4.78k|    }
 8874|  4.78k|#line 8875 "MachineIndependent/glslang_tab.cpp"
 8875|  4.78k|    break;
 8876|       |
 8877|  3.58k|  case 285: /* type_specifier_nonarray: BF16VEC3  */
  ------------------
  |  Branch (8877:3): [True: 3.58k, False: 292M]
  ------------------
 8878|  3.58k|#line 2125 "MachineIndependent/glslang.y"
 8879|  3.58k|               {
 8880|  3.58k|        parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 8881|  3.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 8882|  3.58k|        (yyval.interm.type).basicType = EbtBFloat16;
 8883|  3.58k|        (yyval.interm.type).setVector(3);
 8884|  3.58k|    }
 8885|  3.58k|#line 8886 "MachineIndependent/glslang_tab.cpp"
 8886|  3.58k|    break;
 8887|       |
 8888|  4.78k|  case 286: /* type_specifier_nonarray: BF16VEC4  */
  ------------------
  |  Branch (8888:3): [True: 4.78k, False: 292M]
  ------------------
 8889|  4.78k|#line 2131 "MachineIndependent/glslang.y"
 8890|  4.78k|               {
 8891|  4.78k|        parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.78k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.bfloat16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  4.78k|#define parseContext (*pParseContext)
  ------------------
 8892|  4.78k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.78k|#define parseContext (*pParseContext)
  ------------------
 8893|  4.78k|        (yyval.interm.type).basicType = EbtBFloat16;
 8894|  4.78k|        (yyval.interm.type).setVector(4);
 8895|  4.78k|    }
 8896|  4.78k|#line 8897 "MachineIndependent/glslang_tab.cpp"
 8897|  4.78k|    break;
 8898|       |
 8899|  3.59k|  case 287: /* type_specifier_nonarray: FE5M2VEC2  */
  ------------------
  |  Branch (8899:3): [True: 3.59k, False: 292M]
  ------------------
 8900|  3.59k|#line 2137 "MachineIndependent/glslang.y"
 8901|  3.59k|                {
 8902|  3.59k|        parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe5m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe5m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8903|  3.59k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8904|  3.59k|        (yyval.interm.type).basicType = EbtFloatE5M2;
 8905|  3.59k|        (yyval.interm.type).setVector(2);
 8906|  3.59k|    }
 8907|  3.59k|#line 8908 "MachineIndependent/glslang_tab.cpp"
 8908|  3.59k|    break;
 8909|       |
 8910|  2.38k|  case 288: /* type_specifier_nonarray: FE5M2VEC3  */
  ------------------
  |  Branch (8910:3): [True: 2.38k, False: 292M]
  ------------------
 8911|  2.38k|#line 2143 "MachineIndependent/glslang.y"
 8912|  2.38k|                {
 8913|  2.38k|        parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe5m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe5m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8914|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8915|  2.38k|        (yyval.interm.type).basicType = EbtFloatE5M2;
 8916|  2.38k|        (yyval.interm.type).setVector(3);
 8917|  2.38k|    }
 8918|  2.38k|#line 8919 "MachineIndependent/glslang_tab.cpp"
 8919|  2.38k|    break;
 8920|       |
 8921|  3.59k|  case 289: /* type_specifier_nonarray: FE5M2VEC4  */
  ------------------
  |  Branch (8921:3): [True: 3.59k, False: 292M]
  ------------------
 8922|  3.59k|#line 2149 "MachineIndependent/glslang.y"
 8923|  3.59k|                {
 8924|  3.59k|        parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe5m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate5m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe5m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8925|  3.59k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8926|  3.59k|        (yyval.interm.type).basicType = EbtFloatE5M2;
 8927|  3.59k|        (yyval.interm.type).setVector(4);
 8928|  3.59k|    }
 8929|  3.59k|#line 8930 "MachineIndependent/glslang_tab.cpp"
 8930|  3.59k|    break;
 8931|       |
 8932|  3.59k|  case 290: /* type_specifier_nonarray: FE4M3VEC2  */
  ------------------
  |  Branch (8932:3): [True: 3.59k, False: 292M]
  ------------------
 8933|  3.59k|#line 2155 "MachineIndependent/glslang.y"
 8934|  3.59k|                {
 8935|  3.59k|        parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe4m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe4m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8936|  3.59k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8937|  3.59k|        (yyval.interm.type).basicType = EbtFloatE4M3;
 8938|  3.59k|        (yyval.interm.type).setVector(2);
 8939|  3.59k|    }
 8940|  3.59k|#line 8941 "MachineIndependent/glslang_tab.cpp"
 8941|  3.59k|    break;
 8942|       |
 8943|  2.38k|  case 291: /* type_specifier_nonarray: FE4M3VEC3  */
  ------------------
  |  Branch (8943:3): [True: 2.38k, False: 292M]
  ------------------
 8944|  2.38k|#line 2161 "MachineIndependent/glslang.y"
 8945|  2.38k|                {
 8946|  2.38k|        parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe4m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe4m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8947|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 8948|  2.38k|        (yyval.interm.type).basicType = EbtFloatE4M3;
 8949|  2.38k|        (yyval.interm.type).setVector(3);
 8950|  2.38k|    }
 8951|  2.38k|#line 8952 "MachineIndependent/glslang_tab.cpp"
 8952|  2.38k|    break;
 8953|       |
 8954|  3.59k|  case 292: /* type_specifier_nonarray: FE4M3VEC4  */
  ------------------
  |  Branch (8954:3): [True: 3.59k, False: 292M]
  ------------------
 8955|  3.59k|#line 2167 "MachineIndependent/glslang.y"
 8956|  3.59k|                {
 8957|  3.59k|        parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe4m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate4m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe4m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8958|  3.59k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.59k|#define parseContext (*pParseContext)
  ------------------
 8959|  3.59k|        (yyval.interm.type).basicType = EbtFloatE4M3;
 8960|  3.59k|        (yyval.interm.type).setVector(4);
 8961|  3.59k|    }
 8962|  3.59k|#line 8963 "MachineIndependent/glslang_tab.cpp"
 8963|  3.59k|    break;
 8964|       |
 8965|  1.79k|  case 293: /* type_specifier_nonarray: FE2M1VEC2  */
  ------------------
  |  Branch (8965:3): [True: 1.79k, False: 292M]
  ------------------
 8966|  1.79k|#line 2173 "MachineIndependent/glslang.y"
 8967|  1.79k|                {
 8968|  1.79k|        parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m1 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m1 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 8969|  1.79k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 8970|  1.79k|        (yyval.interm.type).basicType = EbtFloatE2M1;
 8971|  1.79k|        (yyval.interm.type).setVector(2);
 8972|  1.79k|    }
 8973|  1.79k|#line 8974 "MachineIndependent/glslang_tab.cpp"
 8974|  1.79k|    break;
 8975|       |
 8976|    597|  case 294: /* type_specifier_nonarray: FE2M1VEC3  */
  ------------------
  |  Branch (8976:3): [True: 597, False: 292M]
  ------------------
 8977|    597|#line 2179 "MachineIndependent/glslang.y"
 8978|    597|                {
 8979|    597|        parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m1 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m1 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 8980|    597|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 8981|    597|        (yyval.interm.type).basicType = EbtFloatE2M1;
 8982|    597|        (yyval.interm.type).setVector(3);
 8983|    597|    }
 8984|    597|#line 8985 "MachineIndependent/glslang_tab.cpp"
 8985|    597|    break;
 8986|       |
 8987|  1.79k|  case 295: /* type_specifier_nonarray: FE2M1VEC4  */
  ------------------
  |  Branch (8987:3): [True: 1.79k, False: 292M]
  ------------------
 8988|  1.79k|#line 2185 "MachineIndependent/glslang.y"
 8989|  1.79k|                {
 8990|  1.79k|        parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m1 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m1ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m1 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 8991|  1.79k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 8992|  1.79k|        (yyval.interm.type).basicType = EbtFloatE2M1;
 8993|  1.79k|        (yyval.interm.type).setVector(4);
 8994|  1.79k|    }
 8995|  1.79k|#line 8996 "MachineIndependent/glslang_tab.cpp"
 8996|  1.79k|    break;
 8997|       |
 8998|    597|  case 296: /* type_specifier_nonarray: FE3M2VEC2  */
  ------------------
  |  Branch (8998:3): [True: 597, False: 292M]
  ------------------
 8999|    597|#line 2191 "MachineIndependent/glslang.y"
 9000|    597|                {
 9001|    597|        parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe3m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe3m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9002|    597|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9003|    597|        (yyval.interm.type).basicType = EbtFloatE3M2;
 9004|    597|        (yyval.interm.type).setVector(2);
 9005|    597|    }
 9006|    597|#line 9007 "MachineIndependent/glslang_tab.cpp"
 9007|    597|    break;
 9008|       |
 9009|    597|  case 297: /* type_specifier_nonarray: FE3M2VEC3  */
  ------------------
  |  Branch (9009:3): [True: 597, False: 292M]
  ------------------
 9010|    597|#line 2197 "MachineIndependent/glslang.y"
 9011|    597|                {
 9012|    597|        parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe3m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe3m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9013|    597|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9014|    597|        (yyval.interm.type).basicType = EbtFloatE3M2;
 9015|    597|        (yyval.interm.type).setVector(3);
 9016|    597|    }
 9017|    597|#line 9018 "MachineIndependent/glslang_tab.cpp"
 9018|    597|    break;
 9019|       |
 9020|  1.79k|  case 298: /* type_specifier_nonarray: FE3M2VEC4  */
  ------------------
  |  Branch (9020:3): [True: 1.79k, False: 292M]
  ------------------
 9021|  1.79k|#line 2203 "MachineIndependent/glslang.y"
 9022|  1.79k|                {
 9023|  1.79k|        parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe3m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate3m2ScalarVectorCheck((yyvsp[0].lex).loc, "fe3m2 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 9024|  1.79k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 9025|  1.79k|        (yyval.interm.type).basicType = EbtFloatE3M2;
 9026|  1.79k|        (yyval.interm.type).setVector(4);
 9027|  1.79k|    }
 9028|  1.79k|#line 9029 "MachineIndependent/glslang_tab.cpp"
 9029|  1.79k|    break;
 9030|       |
 9031|    597|  case 299: /* type_specifier_nonarray: FE2M3VEC2  */
  ------------------
  |  Branch (9031:3): [True: 597, False: 292M]
  ------------------
 9032|    597|#line 2209 "MachineIndependent/glslang.y"
 9033|    597|                {
 9034|    597|        parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9035|    597|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9036|    597|        (yyval.interm.type).basicType = EbtFloatE2M3;
 9037|    597|        (yyval.interm.type).setVector(2);
 9038|    597|    }
 9039|    597|#line 9040 "MachineIndependent/glslang_tab.cpp"
 9040|    597|    break;
 9041|       |
 9042|    597|  case 300: /* type_specifier_nonarray: FE2M3VEC3  */
  ------------------
  |  Branch (9042:3): [True: 597, False: 292M]
  ------------------
 9043|    597|#line 2215 "MachineIndependent/glslang.y"
 9044|    597|                {
 9045|    597|        parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9046|    597|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    597|#define parseContext (*pParseContext)
  ------------------
 9047|    597|        (yyval.interm.type).basicType = EbtFloatE2M3;
 9048|    597|        (yyval.interm.type).setVector(3);
 9049|    597|    }
 9050|    597|#line 9051 "MachineIndependent/glslang_tab.cpp"
 9051|    597|    break;
 9052|       |
 9053|  1.79k|  case 301: /* type_specifier_nonarray: FE2M3VEC4  */
  ------------------
  |  Branch (9053:3): [True: 1.79k, False: 292M]
  ------------------
 9054|  1.79k|#line 2221 "MachineIndependent/glslang.y"
 9055|  1.79k|                {
 9056|  1.79k|        parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floate2m3ScalarVectorCheck((yyvsp[0].lex).loc, "fe2m3 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 9057|  1.79k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 9058|  1.79k|        (yyval.interm.type).basicType = EbtFloatE2M3;
 9059|  1.79k|        (yyval.interm.type).setVector(4);
 9060|  1.79k|    }
 9061|  1.79k|#line 9062 "MachineIndependent/glslang_tab.cpp"
 9062|  1.79k|    break;
 9063|       |
 9064|  2.38k|  case 302: /* type_specifier_nonarray: FUE8M0VEC2  */
  ------------------
  |  Branch (9064:3): [True: 2.38k, False: 292M]
  ------------------
 9065|  2.38k|#line 2227 "MachineIndependent/glslang.y"
 9066|  2.38k|                 {
 9067|  2.38k|        parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "fue8m0 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "fue8m0 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9068|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9069|  2.38k|        (yyval.interm.type).basicType = EbtFloatUE8M0;
 9070|  2.38k|        (yyval.interm.type).setVector(2);
 9071|  2.38k|    }
 9072|  2.38k|#line 9073 "MachineIndependent/glslang_tab.cpp"
 9073|  2.38k|    break;
 9074|       |
 9075|  2.38k|  case 303: /* type_specifier_nonarray: FUE8M0VEC3  */
  ------------------
  |  Branch (9075:3): [True: 2.38k, False: 292M]
  ------------------
 9076|  2.38k|#line 2233 "MachineIndependent/glslang.y"
 9077|  2.38k|                 {
 9078|  2.38k|        parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "fue8m0 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "fue8m0 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9079|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9080|  2.38k|        (yyval.interm.type).basicType = EbtFloatUE8M0;
 9081|  2.38k|        (yyval.interm.type).setVector(3);
 9082|  2.38k|    }
 9083|  2.38k|#line 9084 "MachineIndependent/glslang_tab.cpp"
 9084|  2.38k|    break;
 9085|       |
 9086|  2.38k|  case 304: /* type_specifier_nonarray: FUE8M0VEC4  */
  ------------------
  |  Branch (9086:3): [True: 2.38k, False: 292M]
  ------------------
 9087|  2.38k|#line 2239 "MachineIndependent/glslang.y"
 9088|  2.38k|                 {
 9089|  2.38k|        parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "fue8m0 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatue8m0ScalarVectorCheck((yyvsp[0].lex).loc, "fue8m0 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9090|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9091|  2.38k|        (yyval.interm.type).basicType = EbtFloatUE8M0;
 9092|  2.38k|        (yyval.interm.type).setVector(4);
 9093|  2.38k|    }
 9094|  2.38k|#line 9095 "MachineIndependent/glslang_tab.cpp"
 9095|  2.38k|    break;
 9096|       |
 9097|  2.38k|  case 305: /* type_specifier_nonarray: FMXINT8VEC2  */
  ------------------
  |  Branch (9097:3): [True: 2.38k, False: 292M]
  ------------------
 9098|  2.38k|#line 2245 "MachineIndependent/glslang.y"
 9099|  2.38k|                  {
 9100|  2.38k|        parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "fmxint8 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "fmxint8 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9101|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9102|  2.38k|        (yyval.interm.type).basicType = EbtFloatMXINT8;
 9103|  2.38k|        (yyval.interm.type).setVector(2);
 9104|  2.38k|    }
 9105|  2.38k|#line 9106 "MachineIndependent/glslang_tab.cpp"
 9106|  2.38k|    break;
 9107|       |
 9108|  2.38k|  case 306: /* type_specifier_nonarray: FMXINT8VEC3  */
  ------------------
  |  Branch (9108:3): [True: 2.38k, False: 292M]
  ------------------
 9109|  2.38k|#line 2251 "MachineIndependent/glslang.y"
 9110|  2.38k|                  {
 9111|  2.38k|        parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "fmxint8 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "fmxint8 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9112|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9113|  2.38k|        (yyval.interm.type).basicType = EbtFloatMXINT8;
 9114|  2.38k|        (yyval.interm.type).setVector(3);
 9115|  2.38k|    }
 9116|  2.38k|#line 9117 "MachineIndependent/glslang_tab.cpp"
 9117|  2.38k|    break;
 9118|       |
 9119|  2.38k|  case 307: /* type_specifier_nonarray: FMXINT8VEC4  */
  ------------------
  |  Branch (9119:3): [True: 2.38k, False: 292M]
  ------------------
 9120|  2.38k|#line 2257 "MachineIndependent/glslang.y"
 9121|  2.38k|                  {
 9122|  2.38k|        parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "fmxint8 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.floatmxint8ScalarVectorCheck((yyvsp[0].lex).loc, "fmxint8 vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9123|  2.38k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.38k|#define parseContext (*pParseContext)
  ------------------
 9124|  2.38k|        (yyval.interm.type).basicType = EbtFloatMXINT8;
 9125|  2.38k|        (yyval.interm.type).setVector(4);
 9126|  2.38k|    }
 9127|  2.38k|#line 9128 "MachineIndependent/glslang_tab.cpp"
 9128|  2.38k|    break;
 9129|       |
 9130|   446k|  case 308: /* type_specifier_nonarray: F16VEC2  */
  ------------------
  |  Branch (9130:3): [True: 446k, False: 291M]
  ------------------
 9131|   446k|#line 2263 "MachineIndependent/glslang.y"
 9132|   446k|              {
 9133|   446k|        parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   446k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   446k|#define parseContext (*pParseContext)
  ------------------
 9134|   446k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   446k|#define parseContext (*pParseContext)
  ------------------
 9135|   446k|        (yyval.interm.type).basicType = EbtFloat16;
 9136|   446k|        (yyval.interm.type).setVector(2);
 9137|   446k|    }
 9138|   446k|#line 9139 "MachineIndependent/glslang_tab.cpp"
 9139|   446k|    break;
 9140|       |
 9141|   371k|  case 309: /* type_specifier_nonarray: F16VEC3  */
  ------------------
  |  Branch (9141:3): [True: 371k, False: 291M]
  ------------------
 9142|   371k|#line 2269 "MachineIndependent/glslang.y"
 9143|   371k|              {
 9144|   371k|        parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   371k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   371k|#define parseContext (*pParseContext)
  ------------------
 9145|   371k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   371k|#define parseContext (*pParseContext)
  ------------------
 9146|   371k|        (yyval.interm.type).basicType = EbtFloat16;
 9147|   371k|        (yyval.interm.type).setVector(3);
 9148|   371k|    }
 9149|   371k|#line 9150 "MachineIndependent/glslang_tab.cpp"
 9150|   371k|    break;
 9151|       |
 9152|   671k|  case 310: /* type_specifier_nonarray: F16VEC4  */
  ------------------
  |  Branch (9152:3): [True: 671k, False: 291M]
  ------------------
 9153|   671k|#line 2275 "MachineIndependent/glslang.y"
 9154|   671k|              {
 9155|   671k|        parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   671k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16ScalarVectorCheck((yyvsp[0].lex).loc, "half float vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   671k|#define parseContext (*pParseContext)
  ------------------
 9156|   671k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   671k|#define parseContext (*pParseContext)
  ------------------
 9157|   671k|        (yyval.interm.type).basicType = EbtFloat16;
 9158|   671k|        (yyval.interm.type).setVector(4);
 9159|   671k|    }
 9160|   671k|#line 9161 "MachineIndependent/glslang_tab.cpp"
 9161|   671k|    break;
 9162|       |
 9163|  1.44k|  case 311: /* type_specifier_nonarray: F32VEC2  */
  ------------------
  |  Branch (9163:3): [True: 1.44k, False: 292M]
  ------------------
 9164|  1.44k|#line 2281 "MachineIndependent/glslang.y"
 9165|  1.44k|              {
 9166|  1.44k|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 9167|  1.44k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.44k|#define parseContext (*pParseContext)
  ------------------
 9168|  1.44k|        (yyval.interm.type).basicType = EbtFloat;
 9169|  1.44k|        (yyval.interm.type).setVector(2);
 9170|  1.44k|    }
 9171|  1.44k|#line 9172 "MachineIndependent/glslang_tab.cpp"
 9172|  1.44k|    break;
 9173|       |
 9174|  1.27k|  case 312: /* type_specifier_nonarray: F32VEC3  */
  ------------------
  |  Branch (9174:3): [True: 1.27k, False: 292M]
  ------------------
 9175|  1.27k|#line 2287 "MachineIndependent/glslang.y"
 9176|  1.27k|              {
 9177|  1.27k|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.27k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.27k|#define parseContext (*pParseContext)
  ------------------
 9178|  1.27k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.27k|#define parseContext (*pParseContext)
  ------------------
 9179|  1.27k|        (yyval.interm.type).basicType = EbtFloat;
 9180|  1.27k|        (yyval.interm.type).setVector(3);
 9181|  1.27k|    }
 9182|  1.27k|#line 9183 "MachineIndependent/glslang_tab.cpp"
 9183|  1.27k|    break;
 9184|       |
 9185|  1.21k|  case 313: /* type_specifier_nonarray: F32VEC4  */
  ------------------
  |  Branch (9185:3): [True: 1.21k, False: 292M]
  ------------------
 9186|  1.21k|#line 2293 "MachineIndependent/glslang.y"
 9187|  1.21k|              {
 9188|  1.21k|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.21k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.21k|#define parseContext (*pParseContext)
  ------------------
 9189|  1.21k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.21k|#define parseContext (*pParseContext)
  ------------------
 9190|  1.21k|        (yyval.interm.type).basicType = EbtFloat;
 9191|  1.21k|        (yyval.interm.type).setVector(4);
 9192|  1.21k|    }
 9193|  1.21k|#line 9194 "MachineIndependent/glslang_tab.cpp"
 9194|  1.21k|    break;
 9195|       |
 9196|  56.9k|  case 314: /* type_specifier_nonarray: F64VEC2  */
  ------------------
  |  Branch (9196:3): [True: 56.9k, False: 292M]
  ------------------
 9197|  56.9k|#line 2299 "MachineIndependent/glslang.y"
 9198|  56.9k|              {
 9199|  56.9k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  56.9k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  56.9k|#define parseContext (*pParseContext)
  ------------------
 9200|  56.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  56.9k|#define parseContext (*pParseContext)
  ------------------
 9201|  56.9k|        (yyval.interm.type).basicType = EbtDouble;
 9202|  56.9k|        (yyval.interm.type).setVector(2);
 9203|  56.9k|    }
 9204|  56.9k|#line 9205 "MachineIndependent/glslang_tab.cpp"
 9205|  56.9k|    break;
 9206|       |
 9207|  56.4k|  case 315: /* type_specifier_nonarray: F64VEC3  */
  ------------------
  |  Branch (9207:3): [True: 56.4k, False: 292M]
  ------------------
 9208|  56.4k|#line 2305 "MachineIndependent/glslang.y"
 9209|  56.4k|              {
 9210|  56.4k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  56.4k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  56.4k|#define parseContext (*pParseContext)
  ------------------
 9211|  56.4k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  56.4k|#define parseContext (*pParseContext)
  ------------------
 9212|  56.4k|        (yyval.interm.type).basicType = EbtDouble;
 9213|  56.4k|        (yyval.interm.type).setVector(3);
 9214|  56.4k|    }
 9215|  56.4k|#line 9216 "MachineIndependent/glslang_tab.cpp"
 9216|  56.4k|    break;
 9217|       |
 9218|  55.4k|  case 316: /* type_specifier_nonarray: F64VEC4  */
  ------------------
  |  Branch (9218:3): [True: 55.4k, False: 292M]
  ------------------
 9219|  55.4k|#line 2311 "MachineIndependent/glslang.y"
 9220|  55.4k|              {
 9221|  55.4k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  55.4k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  55.4k|#define parseContext (*pParseContext)
  ------------------
 9222|  55.4k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  55.4k|#define parseContext (*pParseContext)
  ------------------
 9223|  55.4k|        (yyval.interm.type).basicType = EbtDouble;
 9224|  55.4k|        (yyval.interm.type).setVector(4);
 9225|  55.4k|    }
 9226|  55.4k|#line 9227 "MachineIndependent/glslang_tab.cpp"
 9227|  55.4k|    break;
 9228|       |
 9229|   241k|  case 317: /* type_specifier_nonarray: I8VEC2  */
  ------------------
  |  Branch (9229:3): [True: 241k, False: 291M]
  ------------------
 9230|   241k|#line 2317 "MachineIndependent/glslang.y"
 9231|   241k|             {
 9232|   241k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   241k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   241k|#define parseContext (*pParseContext)
  ------------------
 9233|   241k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   241k|#define parseContext (*pParseContext)
  ------------------
 9234|   241k|        (yyval.interm.type).basicType = EbtInt8;
 9235|   241k|        (yyval.interm.type).setVector(2);
 9236|   241k|    }
 9237|   241k|#line 9238 "MachineIndependent/glslang_tab.cpp"
 9238|   241k|    break;
 9239|       |
 9240|   239k|  case 318: /* type_specifier_nonarray: I8VEC3  */
  ------------------
  |  Branch (9240:3): [True: 239k, False: 291M]
  ------------------
 9241|   239k|#line 2323 "MachineIndependent/glslang.y"
 9242|   239k|             {
 9243|   239k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   239k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   239k|#define parseContext (*pParseContext)
  ------------------
 9244|   239k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   239k|#define parseContext (*pParseContext)
  ------------------
 9245|   239k|        (yyval.interm.type).basicType = EbtInt8;
 9246|   239k|        (yyval.interm.type).setVector(3);
 9247|   239k|    }
 9248|   239k|#line 9249 "MachineIndependent/glslang_tab.cpp"
 9249|   239k|    break;
 9250|       |
 9251|   241k|  case 319: /* type_specifier_nonarray: I8VEC4  */
  ------------------
  |  Branch (9251:3): [True: 241k, False: 291M]
  ------------------
 9252|   241k|#line 2329 "MachineIndependent/glslang.y"
 9253|   241k|             {
 9254|   241k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   241k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   241k|#define parseContext (*pParseContext)
  ------------------
 9255|   241k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   241k|#define parseContext (*pParseContext)
  ------------------
 9256|   241k|        (yyval.interm.type).basicType = EbtInt8;
 9257|   241k|        (yyval.interm.type).setVector(4);
 9258|   241k|    }
 9259|   241k|#line 9260 "MachineIndependent/glslang_tab.cpp"
 9260|   241k|    break;
 9261|       |
 9262|   283k|  case 320: /* type_specifier_nonarray: I16VEC2  */
  ------------------
  |  Branch (9262:3): [True: 283k, False: 291M]
  ------------------
 9263|   283k|#line 2335 "MachineIndependent/glslang.y"
 9264|   283k|              {
 9265|   283k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   283k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   283k|#define parseContext (*pParseContext)
  ------------------
 9266|   283k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   283k|#define parseContext (*pParseContext)
  ------------------
 9267|   283k|        (yyval.interm.type).basicType = EbtInt16;
 9268|   283k|        (yyval.interm.type).setVector(2);
 9269|   283k|    }
 9270|   283k|#line 9271 "MachineIndependent/glslang_tab.cpp"
 9271|   283k|    break;
 9272|       |
 9273|   277k|  case 321: /* type_specifier_nonarray: I16VEC3  */
  ------------------
  |  Branch (9273:3): [True: 277k, False: 291M]
  ------------------
 9274|   277k|#line 2341 "MachineIndependent/glslang.y"
 9275|   277k|              {
 9276|   277k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   277k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   277k|#define parseContext (*pParseContext)
  ------------------
 9277|   277k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   277k|#define parseContext (*pParseContext)
  ------------------
 9278|   277k|        (yyval.interm.type).basicType = EbtInt16;
 9279|   277k|        (yyval.interm.type).setVector(3);
 9280|   277k|    }
 9281|   277k|#line 9282 "MachineIndependent/glslang_tab.cpp"
 9282|   277k|    break;
 9283|       |
 9284|   281k|  case 322: /* type_specifier_nonarray: I16VEC4  */
  ------------------
  |  Branch (9284:3): [True: 281k, False: 291M]
  ------------------
 9285|   281k|#line 2347 "MachineIndependent/glslang.y"
 9286|   281k|              {
 9287|   281k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   281k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   281k|#define parseContext (*pParseContext)
  ------------------
 9288|   281k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   281k|#define parseContext (*pParseContext)
  ------------------
 9289|   281k|        (yyval.interm.type).basicType = EbtInt16;
 9290|   281k|        (yyval.interm.type).setVector(4);
 9291|   281k|    }
 9292|   281k|#line 9293 "MachineIndependent/glslang_tab.cpp"
 9293|   281k|    break;
 9294|       |
 9295|  2.71k|  case 323: /* type_specifier_nonarray: I32VEC2  */
  ------------------
  |  Branch (9295:3): [True: 2.71k, False: 292M]
  ------------------
 9296|  2.71k|#line 2353 "MachineIndependent/glslang.y"
 9297|  2.71k|              {
 9298|  2.71k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.71k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.71k|#define parseContext (*pParseContext)
  ------------------
 9299|  2.71k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.71k|#define parseContext (*pParseContext)
  ------------------
 9300|  2.71k|        (yyval.interm.type).basicType = EbtInt;
 9301|  2.71k|        (yyval.interm.type).setVector(2);
 9302|  2.71k|    }
 9303|  2.71k|#line 9304 "MachineIndependent/glslang_tab.cpp"
 9304|  2.71k|    break;
 9305|       |
 9306|  1.33k|  case 324: /* type_specifier_nonarray: I32VEC3  */
  ------------------
  |  Branch (9306:3): [True: 1.33k, False: 292M]
  ------------------
 9307|  1.33k|#line 2359 "MachineIndependent/glslang.y"
 9308|  1.33k|              {
 9309|  1.33k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
 9310|  1.33k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
 9311|  1.33k|        (yyval.interm.type).basicType = EbtInt;
 9312|  1.33k|        (yyval.interm.type).setVector(3);
 9313|  1.33k|    }
 9314|  1.33k|#line 9315 "MachineIndependent/glslang_tab.cpp"
 9315|  1.33k|    break;
 9316|       |
 9317|  1.33k|  case 325: /* type_specifier_nonarray: I32VEC4  */
  ------------------
  |  Branch (9317:3): [True: 1.33k, False: 292M]
  ------------------
 9318|  1.33k|#line 2365 "MachineIndependent/glslang.y"
 9319|  1.33k|              {
 9320|  1.33k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
 9321|  1.33k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
 9322|  1.33k|        (yyval.interm.type).basicType = EbtInt;
 9323|  1.33k|        (yyval.interm.type).setVector(4);
 9324|  1.33k|    }
 9325|  1.33k|#line 9326 "MachineIndependent/glslang_tab.cpp"
 9326|  1.33k|    break;
 9327|       |
 9328|   274k|  case 326: /* type_specifier_nonarray: I64VEC2  */
  ------------------
  |  Branch (9328:3): [True: 274k, False: 291M]
  ------------------
 9329|   274k|#line 2371 "MachineIndependent/glslang.y"
 9330|   274k|              {
 9331|   274k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   274k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   274k|#define parseContext (*pParseContext)
  ------------------
 9332|   274k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   274k|#define parseContext (*pParseContext)
  ------------------
 9333|   274k|        (yyval.interm.type).basicType = EbtInt64;
 9334|   274k|        (yyval.interm.type).setVector(2);
 9335|   274k|    }
 9336|   274k|#line 9337 "MachineIndependent/glslang_tab.cpp"
 9337|   274k|    break;
 9338|       |
 9339|   272k|  case 327: /* type_specifier_nonarray: I64VEC3  */
  ------------------
  |  Branch (9339:3): [True: 272k, False: 291M]
  ------------------
 9340|   272k|#line 2377 "MachineIndependent/glslang.y"
 9341|   272k|              {
 9342|   272k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   272k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   272k|#define parseContext (*pParseContext)
  ------------------
 9343|   272k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   272k|#define parseContext (*pParseContext)
  ------------------
 9344|   272k|        (yyval.interm.type).basicType = EbtInt64;
 9345|   272k|        (yyval.interm.type).setVector(3);
 9346|   272k|    }
 9347|   272k|#line 9348 "MachineIndependent/glslang_tab.cpp"
 9348|   272k|    break;
 9349|       |
 9350|   296k|  case 328: /* type_specifier_nonarray: I64VEC4  */
  ------------------
  |  Branch (9350:3): [True: 296k, False: 291M]
  ------------------
 9351|   296k|#line 2383 "MachineIndependent/glslang.y"
 9352|   296k|              {
 9353|   296k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   296k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   296k|#define parseContext (*pParseContext)
  ------------------
 9354|   296k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   296k|#define parseContext (*pParseContext)
  ------------------
 9355|   296k|        (yyval.interm.type).basicType = EbtInt64;
 9356|   296k|        (yyval.interm.type).setVector(4);
 9357|   296k|    }
 9358|   296k|#line 9359 "MachineIndependent/glslang_tab.cpp"
 9359|   296k|    break;
 9360|       |
 9361|   236k|  case 329: /* type_specifier_nonarray: U8VEC2  */
  ------------------
  |  Branch (9361:3): [True: 236k, False: 291M]
  ------------------
 9362|   236k|#line 2389 "MachineIndependent/glslang.y"
 9363|   236k|             {
 9364|   236k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
 9365|   236k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
 9366|   236k|        (yyval.interm.type).basicType = EbtUint8;
 9367|   236k|        (yyval.interm.type).setVector(2);
 9368|   236k|    }
 9369|   236k|#line 9370 "MachineIndependent/glslang_tab.cpp"
 9370|   236k|    break;
 9371|       |
 9372|   236k|  case 330: /* type_specifier_nonarray: U8VEC3  */
  ------------------
  |  Branch (9372:3): [True: 236k, False: 291M]
  ------------------
 9373|   236k|#line 2395 "MachineIndependent/glslang.y"
 9374|   236k|             {
 9375|   236k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
 9376|   236k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
 9377|   236k|        (yyval.interm.type).basicType = EbtUint8;
 9378|   236k|        (yyval.interm.type).setVector(3);
 9379|   236k|    }
 9380|   236k|#line 9381 "MachineIndependent/glslang_tab.cpp"
 9381|   236k|    break;
 9382|       |
 9383|   236k|  case 331: /* type_specifier_nonarray: U8VEC4  */
  ------------------
  |  Branch (9383:3): [True: 236k, False: 291M]
  ------------------
 9384|   236k|#line 2401 "MachineIndependent/glslang.y"
 9385|   236k|             {
 9386|   236k|        parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int8ScalarVectorCheck((yyvsp[0].lex).loc, "8-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
 9387|   236k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   236k|#define parseContext (*pParseContext)
  ------------------
 9388|   236k|        (yyval.interm.type).basicType = EbtUint8;
 9389|   236k|        (yyval.interm.type).setVector(4);
 9390|   236k|    }
 9391|   236k|#line 9392 "MachineIndependent/glslang_tab.cpp"
 9392|   236k|    break;
 9393|       |
 9394|   278k|  case 332: /* type_specifier_nonarray: U16VEC2  */
  ------------------
  |  Branch (9394:3): [True: 278k, False: 291M]
  ------------------
 9395|   278k|#line 2407 "MachineIndependent/glslang.y"
 9396|   278k|              {
 9397|   278k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   278k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   278k|#define parseContext (*pParseContext)
  ------------------
 9398|   278k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   278k|#define parseContext (*pParseContext)
  ------------------
 9399|   278k|        (yyval.interm.type).basicType = EbtUint16;
 9400|   278k|        (yyval.interm.type).setVector(2);
 9401|   278k|    }
 9402|   278k|#line 9403 "MachineIndependent/glslang_tab.cpp"
 9403|   278k|    break;
 9404|       |
 9405|   275k|  case 333: /* type_specifier_nonarray: U16VEC3  */
  ------------------
  |  Branch (9405:3): [True: 275k, False: 291M]
  ------------------
 9406|   275k|#line 2413 "MachineIndependent/glslang.y"
 9407|   275k|              {
 9408|   275k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   275k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   275k|#define parseContext (*pParseContext)
  ------------------
 9409|   275k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   275k|#define parseContext (*pParseContext)
  ------------------
 9410|   275k|        (yyval.interm.type).basicType = EbtUint16;
 9411|   275k|        (yyval.interm.type).setVector(3);
 9412|   275k|    }
 9413|   275k|#line 9414 "MachineIndependent/glslang_tab.cpp"
 9414|   275k|    break;
 9415|       |
 9416|   276k|  case 334: /* type_specifier_nonarray: U16VEC4  */
  ------------------
  |  Branch (9416:3): [True: 276k, False: 291M]
  ------------------
 9417|   276k|#line 2419 "MachineIndependent/glslang.y"
 9418|   276k|              {
 9419|   276k|        parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   276k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int16ScalarVectorCheck((yyvsp[0].lex).loc, "16-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   276k|#define parseContext (*pParseContext)
  ------------------
 9420|   276k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   276k|#define parseContext (*pParseContext)
  ------------------
 9421|   276k|        (yyval.interm.type).basicType = EbtUint16;
 9422|   276k|        (yyval.interm.type).setVector(4);
 9423|   276k|    }
 9424|   276k|#line 9425 "MachineIndependent/glslang_tab.cpp"
 9425|   276k|    break;
 9426|       |
 9427|  3.85k|  case 335: /* type_specifier_nonarray: U32VEC2  */
  ------------------
  |  Branch (9427:3): [True: 3.85k, False: 292M]
  ------------------
 9428|  3.85k|#line 2425 "MachineIndependent/glslang.y"
 9429|  3.85k|              {
 9430|  3.85k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.85k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.85k|#define parseContext (*pParseContext)
  ------------------
 9431|  3.85k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.85k|#define parseContext (*pParseContext)
  ------------------
 9432|  3.85k|        (yyval.interm.type).basicType = EbtUint;
 9433|  3.85k|        (yyval.interm.type).setVector(2);
 9434|  3.85k|    }
 9435|  3.85k|#line 9436 "MachineIndependent/glslang_tab.cpp"
 9436|  3.85k|    break;
 9437|       |
 9438|  3.74k|  case 336: /* type_specifier_nonarray: U32VEC3  */
  ------------------
  |  Branch (9438:3): [True: 3.74k, False: 292M]
  ------------------
 9439|  3.74k|#line 2431 "MachineIndependent/glslang.y"
 9440|  3.74k|              {
 9441|  3.74k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.74k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.74k|#define parseContext (*pParseContext)
  ------------------
 9442|  3.74k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.74k|#define parseContext (*pParseContext)
  ------------------
 9443|  3.74k|        (yyval.interm.type).basicType = EbtUint;
 9444|  3.74k|        (yyval.interm.type).setVector(3);
 9445|  3.74k|    }
 9446|  3.74k|#line 9447 "MachineIndependent/glslang_tab.cpp"
 9447|  3.74k|    break;
 9448|       |
 9449|  1.32k|  case 337: /* type_specifier_nonarray: U32VEC4  */
  ------------------
  |  Branch (9449:3): [True: 1.32k, False: 292M]
  ------------------
 9450|  1.32k|#line 2437 "MachineIndependent/glslang.y"
 9451|  1.32k|              {
 9452|  1.32k|        parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.32k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.32k|#define parseContext (*pParseContext)
  ------------------
 9453|  1.32k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.32k|#define parseContext (*pParseContext)
  ------------------
 9454|  1.32k|        (yyval.interm.type).basicType = EbtUint;
 9455|  1.32k|        (yyval.interm.type).setVector(4);
 9456|  1.32k|    }
 9457|  1.32k|#line 9458 "MachineIndependent/glslang_tab.cpp"
 9458|  1.32k|    break;
 9459|       |
 9460|   274k|  case 338: /* type_specifier_nonarray: U64VEC2  */
  ------------------
  |  Branch (9460:3): [True: 274k, False: 291M]
  ------------------
 9461|   274k|#line 2443 "MachineIndependent/glslang.y"
 9462|   274k|              {
 9463|   274k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   274k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   274k|#define parseContext (*pParseContext)
  ------------------
 9464|   274k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   274k|#define parseContext (*pParseContext)
  ------------------
 9465|   274k|        (yyval.interm.type).basicType = EbtUint64;
 9466|   274k|        (yyval.interm.type).setVector(2);
 9467|   274k|    }
 9468|   274k|#line 9469 "MachineIndependent/glslang_tab.cpp"
 9469|   274k|    break;
 9470|       |
 9471|   272k|  case 339: /* type_specifier_nonarray: U64VEC3  */
  ------------------
  |  Branch (9471:3): [True: 272k, False: 291M]
  ------------------
 9472|   272k|#line 2449 "MachineIndependent/glslang.y"
 9473|   272k|              {
 9474|   272k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   272k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   272k|#define parseContext (*pParseContext)
  ------------------
 9475|   272k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   272k|#define parseContext (*pParseContext)
  ------------------
 9476|   272k|        (yyval.interm.type).basicType = EbtUint64;
 9477|   272k|        (yyval.interm.type).setVector(3);
 9478|   272k|    }
 9479|   272k|#line 9480 "MachineIndependent/glslang_tab.cpp"
 9480|   272k|    break;
 9481|       |
 9482|   296k|  case 340: /* type_specifier_nonarray: U64VEC4  */
  ------------------
  |  Branch (9482:3): [True: 296k, False: 291M]
  ------------------
 9483|   296k|#line 2455 "MachineIndependent/glslang.y"
 9484|   296k|              {
 9485|   296k|        parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   296k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   296k|#define parseContext (*pParseContext)
  ------------------
 9486|   296k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   296k|#define parseContext (*pParseContext)
  ------------------
 9487|   296k|        (yyval.interm.type).basicType = EbtUint64;
 9488|   296k|        (yyval.interm.type).setVector(4);
 9489|   296k|    }
 9490|   296k|#line 9491 "MachineIndependent/glslang_tab.cpp"
 9491|   296k|    break;
 9492|       |
 9493|  6.80k|  case 341: /* type_specifier_nonarray: DMAT2  */
  ------------------
  |  Branch (9493:3): [True: 6.80k, False: 292M]
  ------------------
 9494|  6.80k|#line 2461 "MachineIndependent/glslang.y"
 9495|  6.80k|            {
 9496|  6.80k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  6.80k|#define parseContext (*pParseContext)
  ------------------
 9497|  6.80k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  6.80k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9497:13): [True: 2, False: 6.80k]
  ------------------
 9498|      2|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9499|  6.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.80k|#define parseContext (*pParseContext)
  ------------------
 9500|  6.80k|        (yyval.interm.type).basicType = EbtDouble;
 9501|  6.80k|        (yyval.interm.type).setMatrix(2, 2);
 9502|  6.80k|    }
 9503|  6.80k|#line 9504 "MachineIndependent/glslang_tab.cpp"
 9504|  6.80k|    break;
 9505|       |
 9506|  6.80k|  case 342: /* type_specifier_nonarray: DMAT3  */
  ------------------
  |  Branch (9506:3): [True: 6.80k, False: 292M]
  ------------------
 9507|  6.80k|#line 2469 "MachineIndependent/glslang.y"
 9508|  6.80k|            {
 9509|  6.80k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  6.80k|#define parseContext (*pParseContext)
  ------------------
 9510|  6.80k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  6.80k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9510:13): [True: 1, False: 6.80k]
  ------------------
 9511|      1|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
 9512|  6.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.80k|#define parseContext (*pParseContext)
  ------------------
 9513|  6.80k|        (yyval.interm.type).basicType = EbtDouble;
 9514|  6.80k|        (yyval.interm.type).setMatrix(3, 3);
 9515|  6.80k|    }
 9516|  6.80k|#line 9517 "MachineIndependent/glslang_tab.cpp"
 9517|  6.80k|    break;
 9518|       |
 9519|  6.81k|  case 343: /* type_specifier_nonarray: DMAT4  */
  ------------------
  |  Branch (9519:3): [True: 6.81k, False: 292M]
  ------------------
 9520|  6.81k|#line 2477 "MachineIndependent/glslang.y"
 9521|  6.81k|            {
 9522|  6.81k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  6.81k|#define parseContext (*pParseContext)
  ------------------
 9523|  6.81k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  6.81k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9523:13): [True: 11, False: 6.80k]
  ------------------
 9524|     11|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|     11|#define parseContext (*pParseContext)
  ------------------
 9525|  6.81k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.81k|#define parseContext (*pParseContext)
  ------------------
 9526|  6.81k|        (yyval.interm.type).basicType = EbtDouble;
 9527|  6.81k|        (yyval.interm.type).setMatrix(4, 4);
 9528|  6.81k|    }
 9529|  6.81k|#line 9530 "MachineIndependent/glslang_tab.cpp"
 9530|  6.81k|    break;
 9531|       |
 9532|      0|  case 344: /* type_specifier_nonarray: DMAT2X2  */
  ------------------
  |  Branch (9532:3): [True: 0, False: 292M]
  ------------------
 9533|      0|#line 2485 "MachineIndependent/glslang.y"
 9534|      0|              {
 9535|      0|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9536|      0|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9536:13): [True: 0, False: 0]
  ------------------
 9537|      0|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9538|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9539|      0|        (yyval.interm.type).basicType = EbtDouble;
 9540|      0|        (yyval.interm.type).setMatrix(2, 2);
 9541|      0|    }
 9542|      0|#line 9543 "MachineIndependent/glslang_tab.cpp"
 9543|      0|    break;
 9544|       |
 9545|  4.53k|  case 345: /* type_specifier_nonarray: DMAT2X3  */
  ------------------
  |  Branch (9545:3): [True: 4.53k, False: 292M]
  ------------------
 9546|  4.53k|#line 2493 "MachineIndependent/glslang.y"
 9547|  4.53k|              {
 9548|  4.53k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9549|  4.53k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9549:13): [True: 1, False: 4.53k]
  ------------------
 9550|      1|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
 9551|  4.53k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9552|  4.53k|        (yyval.interm.type).basicType = EbtDouble;
 9553|  4.53k|        (yyval.interm.type).setMatrix(2, 3);
 9554|  4.53k|    }
 9555|  4.53k|#line 9556 "MachineIndependent/glslang_tab.cpp"
 9556|  4.53k|    break;
 9557|       |
 9558|  4.54k|  case 346: /* type_specifier_nonarray: DMAT2X4  */
  ------------------
  |  Branch (9558:3): [True: 4.54k, False: 292M]
  ------------------
 9559|  4.54k|#line 2501 "MachineIndependent/glslang.y"
 9560|  4.54k|              {
 9561|  4.54k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  4.54k|#define parseContext (*pParseContext)
  ------------------
 9562|  4.54k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  4.54k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9562:13): [True: 11, False: 4.53k]
  ------------------
 9563|     11|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|     11|#define parseContext (*pParseContext)
  ------------------
 9564|  4.54k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.54k|#define parseContext (*pParseContext)
  ------------------
 9565|  4.54k|        (yyval.interm.type).basicType = EbtDouble;
 9566|  4.54k|        (yyval.interm.type).setMatrix(2, 4);
 9567|  4.54k|    }
 9568|  4.54k|#line 9569 "MachineIndependent/glslang_tab.cpp"
 9569|  4.54k|    break;
 9570|       |
 9571|  4.53k|  case 347: /* type_specifier_nonarray: DMAT3X2  */
  ------------------
  |  Branch (9571:3): [True: 4.53k, False: 292M]
  ------------------
 9572|  4.53k|#line 2509 "MachineIndependent/glslang.y"
 9573|  4.53k|              {
 9574|  4.53k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9575|  4.53k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9575:13): [True: 1, False: 4.53k]
  ------------------
 9576|      1|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
 9577|  4.53k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9578|  4.53k|        (yyval.interm.type).basicType = EbtDouble;
 9579|  4.53k|        (yyval.interm.type).setMatrix(3, 2);
 9580|  4.53k|    }
 9581|  4.53k|#line 9582 "MachineIndependent/glslang_tab.cpp"
 9582|  4.53k|    break;
 9583|       |
 9584|      0|  case 348: /* type_specifier_nonarray: DMAT3X3  */
  ------------------
  |  Branch (9584:3): [True: 0, False: 292M]
  ------------------
 9585|      0|#line 2517 "MachineIndependent/glslang.y"
 9586|      0|              {
 9587|      0|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9588|      0|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9588:13): [True: 0, False: 0]
  ------------------
 9589|      0|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9590|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9591|      0|        (yyval.interm.type).basicType = EbtDouble;
 9592|      0|        (yyval.interm.type).setMatrix(3, 3);
 9593|      0|    }
 9594|      0|#line 9595 "MachineIndependent/glslang_tab.cpp"
 9595|      0|    break;
 9596|       |
 9597|  4.53k|  case 349: /* type_specifier_nonarray: DMAT3X4  */
  ------------------
  |  Branch (9597:3): [True: 4.53k, False: 292M]
  ------------------
 9598|  4.53k|#line 2525 "MachineIndependent/glslang.y"
 9599|  4.53k|              {
 9600|  4.53k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9601|  4.53k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9601:13): [True: 1, False: 4.53k]
  ------------------
 9602|      1|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
 9603|  4.53k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9604|  4.53k|        (yyval.interm.type).basicType = EbtDouble;
 9605|  4.53k|        (yyval.interm.type).setMatrix(3, 4);
 9606|  4.53k|    }
 9607|  4.53k|#line 9608 "MachineIndependent/glslang_tab.cpp"
 9608|  4.53k|    break;
 9609|       |
 9610|  4.53k|  case 350: /* type_specifier_nonarray: DMAT4X2  */
  ------------------
  |  Branch (9610:3): [True: 4.53k, False: 292M]
  ------------------
 9611|  4.53k|#line 2533 "MachineIndependent/glslang.y"
 9612|  4.53k|              {
 9613|  4.53k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9614|  4.53k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9614:13): [True: 1, False: 4.53k]
  ------------------
 9615|      1|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
 9616|  4.53k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9617|  4.53k|        (yyval.interm.type).basicType = EbtDouble;
 9618|  4.53k|        (yyval.interm.type).setMatrix(4, 2);
 9619|  4.53k|    }
 9620|  4.53k|#line 9621 "MachineIndependent/glslang_tab.cpp"
 9621|  4.53k|    break;
 9622|       |
 9623|  4.53k|  case 351: /* type_specifier_nonarray: DMAT4X3  */
  ------------------
  |  Branch (9623:3): [True: 4.53k, False: 292M]
  ------------------
 9624|  4.53k|#line 2541 "MachineIndependent/glslang.y"
 9625|  4.53k|              {
 9626|  4.53k|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9627|  4.53k|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9627:13): [True: 2, False: 4.53k]
  ------------------
 9628|      2|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9629|  4.53k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.53k|#define parseContext (*pParseContext)
  ------------------
 9630|  4.53k|        (yyval.interm.type).basicType = EbtDouble;
 9631|  4.53k|        (yyval.interm.type).setMatrix(4, 3);
 9632|  4.53k|    }
 9633|  4.53k|#line 9634 "MachineIndependent/glslang_tab.cpp"
 9634|  4.53k|    break;
 9635|       |
 9636|      0|  case 352: /* type_specifier_nonarray: DMAT4X4  */
  ------------------
  |  Branch (9636:3): [True: 0, False: 292M]
  ------------------
 9637|      0|#line 2549 "MachineIndependent/glslang.y"
 9638|      0|              {
 9639|      0|        parseContext.requireProfile((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, "double matrix");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9640|      0|        if (! parseContext.symbolTable.atBuiltInLevel())
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
  |  Branch (9640:13): [True: 0, False: 0]
  ------------------
 9641|      0|            parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9642|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9643|      0|        (yyval.interm.type).basicType = EbtDouble;
 9644|      0|        (yyval.interm.type).setMatrix(4, 4);
 9645|      0|    }
 9646|      0|#line 9647 "MachineIndependent/glslang_tab.cpp"
 9647|      0|    break;
 9648|       |
 9649|  5.37k|  case 353: /* type_specifier_nonarray: F16MAT2  */
  ------------------
  |  Branch (9649:3): [True: 5.37k, False: 292M]
  ------------------
 9650|  5.37k|#line 2557 "MachineIndependent/glslang.y"
 9651|  5.37k|              {
 9652|  5.37k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
 9653|  5.37k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
 9654|  5.37k|        (yyval.interm.type).basicType = EbtFloat16;
 9655|  5.37k|        (yyval.interm.type).setMatrix(2, 2);
 9656|  5.37k|    }
 9657|  5.37k|#line 9658 "MachineIndependent/glslang_tab.cpp"
 9658|  5.37k|    break;
 9659|       |
 9660|  5.37k|  case 354: /* type_specifier_nonarray: F16MAT3  */
  ------------------
  |  Branch (9660:3): [True: 5.37k, False: 292M]
  ------------------
 9661|  5.37k|#line 2563 "MachineIndependent/glslang.y"
 9662|  5.37k|              {
 9663|  5.37k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
 9664|  5.37k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
 9665|  5.37k|        (yyval.interm.type).basicType = EbtFloat16;
 9666|  5.37k|        (yyval.interm.type).setMatrix(3, 3);
 9667|  5.37k|    }
 9668|  5.37k|#line 9669 "MachineIndependent/glslang_tab.cpp"
 9669|  5.37k|    break;
 9670|       |
 9671|  5.37k|  case 355: /* type_specifier_nonarray: F16MAT4  */
  ------------------
  |  Branch (9671:3): [True: 5.37k, False: 292M]
  ------------------
 9672|  5.37k|#line 2569 "MachineIndependent/glslang.y"
 9673|  5.37k|              {
 9674|  5.37k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
 9675|  5.37k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.37k|#define parseContext (*pParseContext)
  ------------------
 9676|  5.37k|        (yyval.interm.type).basicType = EbtFloat16;
 9677|  5.37k|        (yyval.interm.type).setMatrix(4, 4);
 9678|  5.37k|    }
 9679|  5.37k|#line 9680 "MachineIndependent/glslang_tab.cpp"
 9680|  5.37k|    break;
 9681|       |
 9682|      7|  case 356: /* type_specifier_nonarray: F16MAT2X2  */
  ------------------
  |  Branch (9682:3): [True: 7, False: 292M]
  ------------------
 9683|      7|#line 2575 "MachineIndependent/glslang.y"
 9684|      7|                {
 9685|      7|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      7|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      7|#define parseContext (*pParseContext)
  ------------------
 9686|      7|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      7|#define parseContext (*pParseContext)
  ------------------
 9687|      7|        (yyval.interm.type).basicType = EbtFloat16;
 9688|      7|        (yyval.interm.type).setMatrix(2, 2);
 9689|      7|    }
 9690|      7|#line 9691 "MachineIndependent/glslang_tab.cpp"
 9691|      7|    break;
 9692|       |
 9693|  3.62k|  case 357: /* type_specifier_nonarray: F16MAT2X3  */
  ------------------
  |  Branch (9693:3): [True: 3.62k, False: 292M]
  ------------------
 9694|  3.62k|#line 2581 "MachineIndependent/glslang.y"
 9695|  3.62k|                {
 9696|  3.62k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.62k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.62k|#define parseContext (*pParseContext)
  ------------------
 9697|  3.62k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.62k|#define parseContext (*pParseContext)
  ------------------
 9698|  3.62k|        (yyval.interm.type).basicType = EbtFloat16;
 9699|  3.62k|        (yyval.interm.type).setMatrix(2, 3);
 9700|  3.62k|    }
 9701|  3.62k|#line 9702 "MachineIndependent/glslang_tab.cpp"
 9702|  3.62k|    break;
 9703|       |
 9704|  3.58k|  case 358: /* type_specifier_nonarray: F16MAT2X4  */
  ------------------
  |  Branch (9704:3): [True: 3.58k, False: 292M]
  ------------------
 9705|  3.58k|#line 2587 "MachineIndependent/glslang.y"
 9706|  3.58k|                {
 9707|  3.58k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9708|  3.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9709|  3.58k|        (yyval.interm.type).basicType = EbtFloat16;
 9710|  3.58k|        (yyval.interm.type).setMatrix(2, 4);
 9711|  3.58k|    }
 9712|  3.58k|#line 9713 "MachineIndependent/glslang_tab.cpp"
 9713|  3.58k|    break;
 9714|       |
 9715|  3.58k|  case 359: /* type_specifier_nonarray: F16MAT3X2  */
  ------------------
  |  Branch (9715:3): [True: 3.58k, False: 292M]
  ------------------
 9716|  3.58k|#line 2593 "MachineIndependent/glslang.y"
 9717|  3.58k|                {
 9718|  3.58k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9719|  3.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9720|  3.58k|        (yyval.interm.type).basicType = EbtFloat16;
 9721|  3.58k|        (yyval.interm.type).setMatrix(3, 2);
 9722|  3.58k|    }
 9723|  3.58k|#line 9724 "MachineIndependent/glslang_tab.cpp"
 9724|  3.58k|    break;
 9725|       |
 9726|      0|  case 360: /* type_specifier_nonarray: F16MAT3X3  */
  ------------------
  |  Branch (9726:3): [True: 0, False: 292M]
  ------------------
 9727|      0|#line 2599 "MachineIndependent/glslang.y"
 9728|      0|                {
 9729|      0|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9730|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9731|      0|        (yyval.interm.type).basicType = EbtFloat16;
 9732|      0|        (yyval.interm.type).setMatrix(3, 3);
 9733|      0|    }
 9734|      0|#line 9735 "MachineIndependent/glslang_tab.cpp"
 9735|      0|    break;
 9736|       |
 9737|  3.58k|  case 361: /* type_specifier_nonarray: F16MAT3X4  */
  ------------------
  |  Branch (9737:3): [True: 3.58k, False: 292M]
  ------------------
 9738|  3.58k|#line 2605 "MachineIndependent/glslang.y"
 9739|  3.58k|                {
 9740|  3.58k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9741|  3.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9742|  3.58k|        (yyval.interm.type).basicType = EbtFloat16;
 9743|  3.58k|        (yyval.interm.type).setMatrix(3, 4);
 9744|  3.58k|    }
 9745|  3.58k|#line 9746 "MachineIndependent/glslang_tab.cpp"
 9746|  3.58k|    break;
 9747|       |
 9748|  3.58k|  case 362: /* type_specifier_nonarray: F16MAT4X2  */
  ------------------
  |  Branch (9748:3): [True: 3.58k, False: 292M]
  ------------------
 9749|  3.58k|#line 2611 "MachineIndependent/glslang.y"
 9750|  3.58k|                {
 9751|  3.58k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9752|  3.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9753|  3.58k|        (yyval.interm.type).basicType = EbtFloat16;
 9754|  3.58k|        (yyval.interm.type).setMatrix(4, 2);
 9755|  3.58k|    }
 9756|  3.58k|#line 9757 "MachineIndependent/glslang_tab.cpp"
 9757|  3.58k|    break;
 9758|       |
 9759|  3.58k|  case 363: /* type_specifier_nonarray: F16MAT4X3  */
  ------------------
  |  Branch (9759:3): [True: 3.58k, False: 292M]
  ------------------
 9760|  3.58k|#line 2617 "MachineIndependent/glslang.y"
 9761|  3.58k|                {
 9762|  3.58k|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9763|  3.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.58k|#define parseContext (*pParseContext)
  ------------------
 9764|  3.58k|        (yyval.interm.type).basicType = EbtFloat16;
 9765|  3.58k|        (yyval.interm.type).setMatrix(4, 3);
 9766|  3.58k|    }
 9767|  3.58k|#line 9768 "MachineIndependent/glslang_tab.cpp"
 9768|  3.58k|    break;
 9769|       |
 9770|      0|  case 364: /* type_specifier_nonarray: F16MAT4X4  */
  ------------------
  |  Branch (9770:3): [True: 0, False: 292M]
  ------------------
 9771|      0|#line 2623 "MachineIndependent/glslang.y"
 9772|      0|                {
 9773|      0|        parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16Check((yyvsp[0].lex).loc, "half float matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9774|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9775|      0|        (yyval.interm.type).basicType = EbtFloat16;
 9776|      0|        (yyval.interm.type).setMatrix(4, 4);
 9777|      0|    }
 9778|      0|#line 9779 "MachineIndependent/glslang_tab.cpp"
 9779|      0|    break;
 9780|       |
 9781|      0|  case 365: /* type_specifier_nonarray: F32MAT2  */
  ------------------
  |  Branch (9781:3): [True: 0, False: 292M]
  ------------------
 9782|      0|#line 2629 "MachineIndependent/glslang.y"
 9783|      0|              {
 9784|      0|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9785|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9786|      0|        (yyval.interm.type).basicType = EbtFloat;
 9787|      0|        (yyval.interm.type).setMatrix(2, 2);
 9788|      0|    }
 9789|      0|#line 9790 "MachineIndependent/glslang_tab.cpp"
 9790|      0|    break;
 9791|       |
 9792|      2|  case 366: /* type_specifier_nonarray: F32MAT3  */
  ------------------
  |  Branch (9792:3): [True: 2, False: 292M]
  ------------------
 9793|      2|#line 2635 "MachineIndependent/glslang.y"
 9794|      2|              {
 9795|      2|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9796|      2|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9797|      2|        (yyval.interm.type).basicType = EbtFloat;
 9798|      2|        (yyval.interm.type).setMatrix(3, 3);
 9799|      2|    }
 9800|      2|#line 9801 "MachineIndependent/glslang_tab.cpp"
 9801|      2|    break;
 9802|       |
 9803|      2|  case 367: /* type_specifier_nonarray: F32MAT4  */
  ------------------
  |  Branch (9803:3): [True: 2, False: 292M]
  ------------------
 9804|      2|#line 2641 "MachineIndependent/glslang.y"
 9805|      2|              {
 9806|      2|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9807|      2|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9808|      2|        (yyval.interm.type).basicType = EbtFloat;
 9809|      2|        (yyval.interm.type).setMatrix(4, 4);
 9810|      2|    }
 9811|      2|#line 9812 "MachineIndependent/glslang_tab.cpp"
 9812|      2|    break;
 9813|       |
 9814|      9|  case 368: /* type_specifier_nonarray: F32MAT2X2  */
  ------------------
  |  Branch (9814:3): [True: 9, False: 292M]
  ------------------
 9815|      9|#line 2647 "MachineIndependent/glslang.y"
 9816|      9|                {
 9817|      9|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      9|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      9|#define parseContext (*pParseContext)
  ------------------
 9818|      9|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      9|#define parseContext (*pParseContext)
  ------------------
 9819|      9|        (yyval.interm.type).basicType = EbtFloat;
 9820|      9|        (yyval.interm.type).setMatrix(2, 2);
 9821|      9|    }
 9822|      9|#line 9823 "MachineIndependent/glslang_tab.cpp"
 9823|      9|    break;
 9824|       |
 9825|     20|  case 369: /* type_specifier_nonarray: F32MAT2X3  */
  ------------------
  |  Branch (9825:3): [True: 20, False: 292M]
  ------------------
 9826|     20|#line 2653 "MachineIndependent/glslang.y"
 9827|     20|                {
 9828|     20|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|     20|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|     20|#define parseContext (*pParseContext)
  ------------------
 9829|     20|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|     20|#define parseContext (*pParseContext)
  ------------------
 9830|     20|        (yyval.interm.type).basicType = EbtFloat;
 9831|     20|        (yyval.interm.type).setMatrix(2, 3);
 9832|     20|    }
 9833|     20|#line 9834 "MachineIndependent/glslang_tab.cpp"
 9834|     20|    break;
 9835|       |
 9836|      0|  case 370: /* type_specifier_nonarray: F32MAT2X4  */
  ------------------
  |  Branch (9836:3): [True: 0, False: 292M]
  ------------------
 9837|      0|#line 2659 "MachineIndependent/glslang.y"
 9838|      0|                {
 9839|      0|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9840|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9841|      0|        (yyval.interm.type).basicType = EbtFloat;
 9842|      0|        (yyval.interm.type).setMatrix(2, 4);
 9843|      0|    }
 9844|      0|#line 9845 "MachineIndependent/glslang_tab.cpp"
 9845|      0|    break;
 9846|       |
 9847|      2|  case 371: /* type_specifier_nonarray: F32MAT3X2  */
  ------------------
  |  Branch (9847:3): [True: 2, False: 292M]
  ------------------
 9848|      2|#line 2665 "MachineIndependent/glslang.y"
 9849|      2|                {
 9850|      2|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9851|      2|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
 9852|      2|        (yyval.interm.type).basicType = EbtFloat;
 9853|      2|        (yyval.interm.type).setMatrix(3, 2);
 9854|      2|    }
 9855|      2|#line 9856 "MachineIndependent/glslang_tab.cpp"
 9856|      2|    break;
 9857|       |
 9858|      0|  case 372: /* type_specifier_nonarray: F32MAT3X3  */
  ------------------
  |  Branch (9858:3): [True: 0, False: 292M]
  ------------------
 9859|      0|#line 2671 "MachineIndependent/glslang.y"
 9860|      0|                {
 9861|      0|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9862|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9863|      0|        (yyval.interm.type).basicType = EbtFloat;
 9864|      0|        (yyval.interm.type).setMatrix(3, 3);
 9865|      0|    }
 9866|      0|#line 9867 "MachineIndependent/glslang_tab.cpp"
 9867|      0|    break;
 9868|       |
 9869|      0|  case 373: /* type_specifier_nonarray: F32MAT3X4  */
  ------------------
  |  Branch (9869:3): [True: 0, False: 292M]
  ------------------
 9870|      0|#line 2677 "MachineIndependent/glslang.y"
 9871|      0|                {
 9872|      0|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9873|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9874|      0|        (yyval.interm.type).basicType = EbtFloat;
 9875|      0|        (yyval.interm.type).setMatrix(3, 4);
 9876|      0|    }
 9877|      0|#line 9878 "MachineIndependent/glslang_tab.cpp"
 9878|      0|    break;
 9879|       |
 9880|      0|  case 374: /* type_specifier_nonarray: F32MAT4X2  */
  ------------------
  |  Branch (9880:3): [True: 0, False: 292M]
  ------------------
 9881|      0|#line 2683 "MachineIndependent/glslang.y"
 9882|      0|                {
 9883|      0|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9884|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9885|      0|        (yyval.interm.type).basicType = EbtFloat;
 9886|      0|        (yyval.interm.type).setMatrix(4, 2);
 9887|      0|    }
 9888|      0|#line 9889 "MachineIndependent/glslang_tab.cpp"
 9889|      0|    break;
 9890|       |
 9891|      0|  case 375: /* type_specifier_nonarray: F32MAT4X3  */
  ------------------
  |  Branch (9891:3): [True: 0, False: 292M]
  ------------------
 9892|      0|#line 2689 "MachineIndependent/glslang.y"
 9893|      0|                {
 9894|      0|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9895|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9896|      0|        (yyval.interm.type).basicType = EbtFloat;
 9897|      0|        (yyval.interm.type).setMatrix(4, 3);
 9898|      0|    }
 9899|      0|#line 9900 "MachineIndependent/glslang_tab.cpp"
 9900|      0|    break;
 9901|       |
 9902|      0|  case 376: /* type_specifier_nonarray: F32MAT4X4  */
  ------------------
  |  Branch (9902:3): [True: 0, False: 292M]
  ------------------
 9903|      0|#line 2695 "MachineIndependent/glslang.y"
 9904|      0|                {
 9905|      0|        parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat32Check((yyvsp[0].lex).loc, "float32_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9906|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9907|      0|        (yyval.interm.type).basicType = EbtFloat;
 9908|      0|        (yyval.interm.type).setMatrix(4, 4);
 9909|      0|    }
 9910|      0|#line 9911 "MachineIndependent/glslang_tab.cpp"
 9911|      0|    break;
 9912|       |
 9913|  2.66k|  case 377: /* type_specifier_nonarray: F64MAT2  */
  ------------------
  |  Branch (9913:3): [True: 2.66k, False: 292M]
  ------------------
 9914|  2.66k|#line 2701 "MachineIndependent/glslang.y"
 9915|  2.66k|              {
 9916|  2.66k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
 9917|  2.66k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
 9918|  2.66k|        (yyval.interm.type).basicType = EbtDouble;
 9919|  2.66k|        (yyval.interm.type).setMatrix(2, 2);
 9920|  2.66k|    }
 9921|  2.66k|#line 9922 "MachineIndependent/glslang_tab.cpp"
 9922|  2.66k|    break;
 9923|       |
 9924|  2.66k|  case 378: /* type_specifier_nonarray: F64MAT3  */
  ------------------
  |  Branch (9924:3): [True: 2.66k, False: 292M]
  ------------------
 9925|  2.66k|#line 2707 "MachineIndependent/glslang.y"
 9926|  2.66k|              {
 9927|  2.66k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
 9928|  2.66k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
 9929|  2.66k|        (yyval.interm.type).basicType = EbtDouble;
 9930|  2.66k|        (yyval.interm.type).setMatrix(3, 3);
 9931|  2.66k|    }
 9932|  2.66k|#line 9933 "MachineIndependent/glslang_tab.cpp"
 9933|  2.66k|    break;
 9934|       |
 9935|  2.66k|  case 379: /* type_specifier_nonarray: F64MAT4  */
  ------------------
  |  Branch (9935:3): [True: 2.66k, False: 292M]
  ------------------
 9936|  2.66k|#line 2713 "MachineIndependent/glslang.y"
 9937|  2.66k|              {
 9938|  2.66k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
 9939|  2.66k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.66k|#define parseContext (*pParseContext)
  ------------------
 9940|  2.66k|        (yyval.interm.type).basicType = EbtDouble;
 9941|  2.66k|        (yyval.interm.type).setMatrix(4, 4);
 9942|  2.66k|    }
 9943|  2.66k|#line 9944 "MachineIndependent/glslang_tab.cpp"
 9944|  2.66k|    break;
 9945|       |
 9946|      5|  case 380: /* type_specifier_nonarray: F64MAT2X2  */
  ------------------
  |  Branch (9946:3): [True: 5, False: 292M]
  ------------------
 9947|      5|#line 2719 "MachineIndependent/glslang.y"
 9948|      5|                {
 9949|      5|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      5|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      5|#define parseContext (*pParseContext)
  ------------------
 9950|      5|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      5|#define parseContext (*pParseContext)
  ------------------
 9951|      5|        (yyval.interm.type).basicType = EbtDouble;
 9952|      5|        (yyval.interm.type).setMatrix(2, 2);
 9953|      5|    }
 9954|      5|#line 9955 "MachineIndependent/glslang_tab.cpp"
 9955|      5|    break;
 9956|       |
 9957|  1.79k|  case 381: /* type_specifier_nonarray: F64MAT2X3  */
  ------------------
  |  Branch (9957:3): [True: 1.79k, False: 292M]
  ------------------
 9958|  1.79k|#line 2725 "MachineIndependent/glslang.y"
 9959|  1.79k|                {
 9960|  1.79k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 9961|  1.79k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.79k|#define parseContext (*pParseContext)
  ------------------
 9962|  1.79k|        (yyval.interm.type).basicType = EbtDouble;
 9963|  1.79k|        (yyval.interm.type).setMatrix(2, 3);
 9964|  1.79k|    }
 9965|  1.79k|#line 9966 "MachineIndependent/glslang_tab.cpp"
 9966|  1.79k|    break;
 9967|       |
 9968|  1.77k|  case 382: /* type_specifier_nonarray: F64MAT2X4  */
  ------------------
  |  Branch (9968:3): [True: 1.77k, False: 292M]
  ------------------
 9969|  1.77k|#line 2731 "MachineIndependent/glslang.y"
 9970|  1.77k|                {
 9971|  1.77k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
 9972|  1.77k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
 9973|  1.77k|        (yyval.interm.type).basicType = EbtDouble;
 9974|  1.77k|        (yyval.interm.type).setMatrix(2, 4);
 9975|  1.77k|    }
 9976|  1.77k|#line 9977 "MachineIndependent/glslang_tab.cpp"
 9977|  1.77k|    break;
 9978|       |
 9979|  1.78k|  case 383: /* type_specifier_nonarray: F64MAT3X2  */
  ------------------
  |  Branch (9979:3): [True: 1.78k, False: 292M]
  ------------------
 9980|  1.78k|#line 2737 "MachineIndependent/glslang.y"
 9981|  1.78k|                {
 9982|  1.78k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.78k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.78k|#define parseContext (*pParseContext)
  ------------------
 9983|  1.78k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.78k|#define parseContext (*pParseContext)
  ------------------
 9984|  1.78k|        (yyval.interm.type).basicType = EbtDouble;
 9985|  1.78k|        (yyval.interm.type).setMatrix(3, 2);
 9986|  1.78k|    }
 9987|  1.78k|#line 9988 "MachineIndependent/glslang_tab.cpp"
 9988|  1.78k|    break;
 9989|       |
 9990|      0|  case 384: /* type_specifier_nonarray: F64MAT3X3  */
  ------------------
  |  Branch (9990:3): [True: 0, False: 292M]
  ------------------
 9991|      0|#line 2743 "MachineIndependent/glslang.y"
 9992|      0|                {
 9993|      0|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9994|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
 9995|      0|        (yyval.interm.type).basicType = EbtDouble;
 9996|      0|        (yyval.interm.type).setMatrix(3, 3);
 9997|      0|    }
 9998|      0|#line 9999 "MachineIndependent/glslang_tab.cpp"
 9999|      0|    break;
10000|       |
10001|  1.77k|  case 385: /* type_specifier_nonarray: F64MAT3X4  */
  ------------------
  |  Branch (10001:3): [True: 1.77k, False: 292M]
  ------------------
10002|  1.77k|#line 2749 "MachineIndependent/glslang.y"
10003|  1.77k|                {
10004|  1.77k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
10005|  1.77k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
10006|  1.77k|        (yyval.interm.type).basicType = EbtDouble;
10007|  1.77k|        (yyval.interm.type).setMatrix(3, 4);
10008|  1.77k|    }
10009|  1.77k|#line 10010 "MachineIndependent/glslang_tab.cpp"
10010|  1.77k|    break;
10011|       |
10012|  1.77k|  case 386: /* type_specifier_nonarray: F64MAT4X2  */
  ------------------
  |  Branch (10012:3): [True: 1.77k, False: 292M]
  ------------------
10013|  1.77k|#line 2755 "MachineIndependent/glslang.y"
10014|  1.77k|                {
10015|  1.77k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
10016|  1.77k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
10017|  1.77k|        (yyval.interm.type).basicType = EbtDouble;
10018|  1.77k|        (yyval.interm.type).setMatrix(4, 2);
10019|  1.77k|    }
10020|  1.77k|#line 10021 "MachineIndependent/glslang_tab.cpp"
10021|  1.77k|    break;
10022|       |
10023|  1.77k|  case 387: /* type_specifier_nonarray: F64MAT4X3  */
  ------------------
  |  Branch (10023:3): [True: 1.77k, False: 292M]
  ------------------
10024|  1.77k|#line 2761 "MachineIndependent/glslang.y"
10025|  1.77k|                {
10026|  1.77k|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
10027|  1.77k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.77k|#define parseContext (*pParseContext)
  ------------------
10028|  1.77k|        (yyval.interm.type).basicType = EbtDouble;
10029|  1.77k|        (yyval.interm.type).setMatrix(4, 3);
10030|  1.77k|    }
10031|  1.77k|#line 10032 "MachineIndependent/glslang_tab.cpp"
10032|  1.77k|    break;
10033|       |
10034|      0|  case 388: /* type_specifier_nonarray: F64MAT4X4  */
  ------------------
  |  Branch (10034:3): [True: 0, False: 292M]
  ------------------
10035|      0|#line 2767 "MachineIndependent/glslang.y"
10036|      0|                {
10037|      0|        parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.explicitFloat64Check((yyvsp[0].lex).loc, "float64_t matrix", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
10038|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
10039|      0|        (yyval.interm.type).basicType = EbtDouble;
10040|      0|        (yyval.interm.type).setMatrix(4, 4);
10041|      0|    }
10042|      0|#line 10043 "MachineIndependent/glslang_tab.cpp"
10043|      0|    break;
10044|       |
10045|    270|  case 389: /* type_specifier_nonarray: ACCSTRUCTNV  */
  ------------------
  |  Branch (10045:3): [True: 270, False: 292M]
  ------------------
10046|    270|#line 2773 "MachineIndependent/glslang.y"
10047|    270|                  {
10048|    270|       (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    270|#define parseContext (*pParseContext)
  ------------------
10049|    270|       (yyval.interm.type).basicType = EbtAccStruct;
10050|    270|    }
10051|    270|#line 10052 "MachineIndependent/glslang_tab.cpp"
10052|    270|    break;
10053|       |
10054|  1.75k|  case 390: /* type_specifier_nonarray: ACCSTRUCTEXT  */
  ------------------
  |  Branch (10054:3): [True: 1.75k, False: 292M]
  ------------------
10055|  1.75k|#line 2777 "MachineIndependent/glslang.y"
10056|  1.75k|                   {
10057|  1.75k|       (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.75k|#define parseContext (*pParseContext)
  ------------------
10058|  1.75k|       (yyval.interm.type).basicType = EbtAccStruct;
10059|  1.75k|    }
10060|  1.75k|#line 10061 "MachineIndependent/glslang_tab.cpp"
10061|  1.75k|    break;
10062|       |
10063|  1.72k|  case 391: /* type_specifier_nonarray: RAYQUERYEXT  */
  ------------------
  |  Branch (10063:3): [True: 1.72k, False: 292M]
  ------------------
10064|  1.72k|#line 2781 "MachineIndependent/glslang.y"
10065|  1.72k|                  {
10066|  1.72k|       (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.72k|#define parseContext (*pParseContext)
  ------------------
10067|  1.72k|       (yyval.interm.type).basicType = EbtRayQuery;
10068|  1.72k|    }
10069|  1.72k|#line 10070 "MachineIndependent/glslang_tab.cpp"
10070|  1.72k|    break;
10071|       |
10072|     76|  case 392: /* type_specifier_nonarray: ATOMIC_UINT  */
  ------------------
  |  Branch (10072:3): [True: 76, False: 292M]
  ------------------
10073|     76|#line 2785 "MachineIndependent/glslang.y"
10074|     76|                  {
10075|     76|        parseContext.vulkanRemoved((yyvsp[0].lex).loc, "atomic counter types");
  ------------------
  |  |  783|     76|#define parseContext (*pParseContext)
  ------------------
10076|     76|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|     76|#define parseContext (*pParseContext)
  ------------------
10077|     76|        (yyval.interm.type).basicType = EbtAtomicUint;
10078|     76|    }
10079|     76|#line 10080 "MachineIndependent/glslang_tab.cpp"
10080|     76|    break;
10081|       |
10082|  55.1k|  case 393: /* type_specifier_nonarray: SAMPLER1D  */
  ------------------
  |  Branch (10082:3): [True: 55.1k, False: 292M]
  ------------------
10083|  55.1k|#line 2790 "MachineIndependent/glslang.y"
10084|  55.1k|                {
10085|  55.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  55.1k|#define parseContext (*pParseContext)
  ------------------
10086|  55.1k|        (yyval.interm.type).basicType = EbtSampler;
10087|  55.1k|        (yyval.interm.type).sampler.set(EbtFloat, Esd1D);
10088|  55.1k|    }
10089|  55.1k|#line 10090 "MachineIndependent/glslang_tab.cpp"
10090|  55.1k|    break;
10091|       |
10092|   146k|  case 394: /* type_specifier_nonarray: SAMPLER2D  */
  ------------------
  |  Branch (10092:3): [True: 146k, False: 292M]
  ------------------
10093|   146k|#line 2795 "MachineIndependent/glslang.y"
10094|   146k|                {
10095|   146k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   146k|#define parseContext (*pParseContext)
  ------------------
10096|   146k|        (yyval.interm.type).basicType = EbtSampler;
10097|   146k|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D);
10098|   146k|    }
10099|   146k|#line 10100 "MachineIndependent/glslang_tab.cpp"
10100|   146k|    break;
10101|       |
10102|  56.0k|  case 395: /* type_specifier_nonarray: SAMPLER3D  */
  ------------------
  |  Branch (10102:3): [True: 56.0k, False: 292M]
  ------------------
10103|  56.0k|#line 2800 "MachineIndependent/glslang.y"
10104|  56.0k|                {
10105|  56.0k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  56.0k|#define parseContext (*pParseContext)
  ------------------
10106|  56.0k|        (yyval.interm.type).basicType = EbtSampler;
10107|  56.0k|        (yyval.interm.type).sampler.set(EbtFloat, Esd3D);
10108|  56.0k|    }
10109|  56.0k|#line 10110 "MachineIndependent/glslang_tab.cpp"
10110|  56.0k|    break;
10111|       |
10112|  24.7k|  case 396: /* type_specifier_nonarray: SAMPLERCUBE  */
  ------------------
  |  Branch (10112:3): [True: 24.7k, False: 292M]
  ------------------
10113|  24.7k|#line 2805 "MachineIndependent/glslang.y"
10114|  24.7k|                  {
10115|  24.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  24.7k|#define parseContext (*pParseContext)
  ------------------
10116|  24.7k|        (yyval.interm.type).basicType = EbtSampler;
10117|  24.7k|        (yyval.interm.type).sampler.set(EbtFloat, EsdCube);
10118|  24.7k|    }
10119|  24.7k|#line 10120 "MachineIndependent/glslang_tab.cpp"
10120|  24.7k|    break;
10121|       |
10122|  47.9k|  case 397: /* type_specifier_nonarray: SAMPLER2DSHADOW  */
  ------------------
  |  Branch (10122:3): [True: 47.9k, False: 292M]
  ------------------
10123|  47.9k|#line 2810 "MachineIndependent/glslang.y"
10124|  47.9k|                      {
10125|  47.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  47.9k|#define parseContext (*pParseContext)
  ------------------
10126|  47.9k|        (yyval.interm.type).basicType = EbtSampler;
10127|  47.9k|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D, false, true);
10128|  47.9k|    }
10129|  47.9k|#line 10130 "MachineIndependent/glslang_tab.cpp"
10130|  47.9k|    break;
10131|       |
10132|  18.9k|  case 398: /* type_specifier_nonarray: SAMPLERCUBESHADOW  */
  ------------------
  |  Branch (10132:3): [True: 18.9k, False: 292M]
  ------------------
10133|  18.9k|#line 2815 "MachineIndependent/glslang.y"
10134|  18.9k|                        {
10135|  18.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.9k|#define parseContext (*pParseContext)
  ------------------
10136|  18.9k|        (yyval.interm.type).basicType = EbtSampler;
10137|  18.9k|        (yyval.interm.type).sampler.set(EbtFloat, EsdCube, false, true);
10138|  18.9k|    }
10139|  18.9k|#line 10140 "MachineIndependent/glslang_tab.cpp"
10140|  18.9k|    break;
10141|       |
10142|  84.8k|  case 399: /* type_specifier_nonarray: SAMPLER2DARRAY  */
  ------------------
  |  Branch (10142:3): [True: 84.8k, False: 292M]
  ------------------
10143|  84.8k|#line 2820 "MachineIndependent/glslang.y"
10144|  84.8k|                     {
10145|  84.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  84.8k|#define parseContext (*pParseContext)
  ------------------
10146|  84.8k|        (yyval.interm.type).basicType = EbtSampler;
10147|  84.8k|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D, true);
10148|  84.8k|    }
10149|  84.8k|#line 10150 "MachineIndependent/glslang_tab.cpp"
10150|  84.8k|    break;
10151|       |
10152|  28.9k|  case 400: /* type_specifier_nonarray: SAMPLER2DARRAYSHADOW  */
  ------------------
  |  Branch (10152:3): [True: 28.9k, False: 292M]
  ------------------
10153|  28.9k|#line 2825 "MachineIndependent/glslang.y"
10154|  28.9k|                           {
10155|  28.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  28.9k|#define parseContext (*pParseContext)
  ------------------
10156|  28.9k|        (yyval.interm.type).basicType = EbtSampler;
10157|  28.9k|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D, true, true);
10158|  28.9k|    }
10159|  28.9k|#line 10160 "MachineIndependent/glslang_tab.cpp"
10160|  28.9k|    break;
10161|       |
10162|  31.1k|  case 401: /* type_specifier_nonarray: SAMPLER1DSHADOW  */
  ------------------
  |  Branch (10162:3): [True: 31.1k, False: 292M]
  ------------------
10163|  31.1k|#line 2830 "MachineIndependent/glslang.y"
10164|  31.1k|                      {
10165|  31.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  31.1k|#define parseContext (*pParseContext)
  ------------------
10166|  31.1k|        (yyval.interm.type).basicType = EbtSampler;
10167|  31.1k|        (yyval.interm.type).sampler.set(EbtFloat, Esd1D, false, true);
10168|  31.1k|    }
10169|  31.1k|#line 10170 "MachineIndependent/glslang_tab.cpp"
10170|  31.1k|    break;
10171|       |
10172|  26.5k|  case 402: /* type_specifier_nonarray: SAMPLER1DARRAY  */
  ------------------
  |  Branch (10172:3): [True: 26.5k, False: 292M]
  ------------------
10173|  26.5k|#line 2835 "MachineIndependent/glslang.y"
10174|  26.5k|                     {
10175|  26.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
10176|  26.5k|        (yyval.interm.type).basicType = EbtSampler;
10177|  26.5k|        (yyval.interm.type).sampler.set(EbtFloat, Esd1D, true);
10178|  26.5k|    }
10179|  26.5k|#line 10180 "MachineIndependent/glslang_tab.cpp"
10180|  26.5k|    break;
10181|       |
10182|  19.9k|  case 403: /* type_specifier_nonarray: SAMPLER1DARRAYSHADOW  */
  ------------------
  |  Branch (10182:3): [True: 19.9k, False: 292M]
  ------------------
10183|  19.9k|#line 2840 "MachineIndependent/glslang.y"
10184|  19.9k|                           {
10185|  19.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  19.9k|#define parseContext (*pParseContext)
  ------------------
10186|  19.9k|        (yyval.interm.type).basicType = EbtSampler;
10187|  19.9k|        (yyval.interm.type).sampler.set(EbtFloat, Esd1D, true, true);
10188|  19.9k|    }
10189|  19.9k|#line 10190 "MachineIndependent/glslang_tab.cpp"
10190|  19.9k|    break;
10191|       |
10192|  24.7k|  case 404: /* type_specifier_nonarray: SAMPLERCUBEARRAY  */
  ------------------
  |  Branch (10192:3): [True: 24.7k, False: 292M]
  ------------------
10193|  24.7k|#line 2845 "MachineIndependent/glslang.y"
10194|  24.7k|                       {
10195|  24.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  24.7k|#define parseContext (*pParseContext)
  ------------------
10196|  24.7k|        (yyval.interm.type).basicType = EbtSampler;
10197|  24.7k|        (yyval.interm.type).sampler.set(EbtFloat, EsdCube, true);
10198|  24.7k|    }
10199|  24.7k|#line 10200 "MachineIndependent/glslang_tab.cpp"
10200|  24.7k|    break;
10201|       |
10202|  16.6k|  case 405: /* type_specifier_nonarray: SAMPLERCUBEARRAYSHADOW  */
  ------------------
  |  Branch (10202:3): [True: 16.6k, False: 292M]
  ------------------
10203|  16.6k|#line 2850 "MachineIndependent/glslang.y"
10204|  16.6k|                             {
10205|  16.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  16.6k|#define parseContext (*pParseContext)
  ------------------
10206|  16.6k|        (yyval.interm.type).basicType = EbtSampler;
10207|  16.6k|        (yyval.interm.type).sampler.set(EbtFloat, EsdCube, true, true);
10208|  16.6k|    }
10209|  16.6k|#line 10210 "MachineIndependent/glslang_tab.cpp"
10210|  16.6k|    break;
10211|       |
10212|  33.7k|  case 406: /* type_specifier_nonarray: F16SAMPLER1D  */
  ------------------
  |  Branch (10212:3): [True: 33.7k, False: 292M]
  ------------------
10213|  33.7k|#line 2855 "MachineIndependent/glslang.y"
10214|  33.7k|                   {
10215|  33.7k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  33.7k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  33.7k|#define parseContext (*pParseContext)
  ------------------
10216|  33.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.7k|#define parseContext (*pParseContext)
  ------------------
10217|  33.7k|        (yyval.interm.type).basicType = EbtSampler;
10218|  33.7k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd1D);
10219|  33.7k|    }
10220|  33.7k|#line 10221 "MachineIndependent/glslang_tab.cpp"
10221|  33.7k|    break;
10222|       |
10223|  77.0k|  case 407: /* type_specifier_nonarray: F16SAMPLER2D  */
  ------------------
  |  Branch (10223:3): [True: 77.0k, False: 292M]
  ------------------
10224|  77.0k|#line 2861 "MachineIndependent/glslang.y"
10225|  77.0k|                   {
10226|  77.0k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  77.0k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  77.0k|#define parseContext (*pParseContext)
  ------------------
10227|  77.0k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  77.0k|#define parseContext (*pParseContext)
  ------------------
10228|  77.0k|        (yyval.interm.type).basicType = EbtSampler;
10229|  77.0k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd2D);
10230|  77.0k|    }
10231|  77.0k|#line 10232 "MachineIndependent/glslang_tab.cpp"
10232|  77.0k|    break;
10233|       |
10234|  40.3k|  case 408: /* type_specifier_nonarray: F16SAMPLER3D  */
  ------------------
  |  Branch (10234:3): [True: 40.3k, False: 292M]
  ------------------
10235|  40.3k|#line 2867 "MachineIndependent/glslang.y"
10236|  40.3k|                   {
10237|  40.3k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  40.3k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  40.3k|#define parseContext (*pParseContext)
  ------------------
10238|  40.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  40.3k|#define parseContext (*pParseContext)
  ------------------
10239|  40.3k|        (yyval.interm.type).basicType = EbtSampler;
10240|  40.3k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd3D);
10241|  40.3k|    }
10242|  40.3k|#line 10243 "MachineIndependent/glslang_tab.cpp"
10243|  40.3k|    break;
10244|       |
10245|  25.2k|  case 409: /* type_specifier_nonarray: F16SAMPLERCUBE  */
  ------------------
  |  Branch (10245:3): [True: 25.2k, False: 292M]
  ------------------
10246|  25.2k|#line 2873 "MachineIndependent/glslang.y"
10247|  25.2k|                     {
10248|  25.2k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  25.2k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  25.2k|#define parseContext (*pParseContext)
  ------------------
10249|  25.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  25.2k|#define parseContext (*pParseContext)
  ------------------
10250|  25.2k|        (yyval.interm.type).basicType = EbtSampler;
10251|  25.2k|        (yyval.interm.type).sampler.set(EbtFloat16, EsdCube);
10252|  25.2k|    }
10253|  25.2k|#line 10254 "MachineIndependent/glslang_tab.cpp"
10254|  25.2k|    break;
10255|       |
10256|  21.6k|  case 410: /* type_specifier_nonarray: F16SAMPLER1DSHADOW  */
  ------------------
  |  Branch (10256:3): [True: 21.6k, False: 292M]
  ------------------
10257|  21.6k|#line 2879 "MachineIndependent/glslang.y"
10258|  21.6k|                         {
10259|  21.6k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  21.6k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  21.6k|#define parseContext (*pParseContext)
  ------------------
10260|  21.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  21.6k|#define parseContext (*pParseContext)
  ------------------
10261|  21.6k|        (yyval.interm.type).basicType = EbtSampler;
10262|  21.6k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd1D, false, true);
10263|  21.6k|    }
10264|  21.6k|#line 10265 "MachineIndependent/glslang_tab.cpp"
10265|  21.6k|    break;
10266|       |
10267|  37.3k|  case 411: /* type_specifier_nonarray: F16SAMPLER2DSHADOW  */
  ------------------
  |  Branch (10267:3): [True: 37.3k, False: 292M]
  ------------------
10268|  37.3k|#line 2885 "MachineIndependent/glslang.y"
10269|  37.3k|                         {
10270|  37.3k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  37.3k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  37.3k|#define parseContext (*pParseContext)
  ------------------
10271|  37.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  37.3k|#define parseContext (*pParseContext)
  ------------------
10272|  37.3k|        (yyval.interm.type).basicType = EbtSampler;
10273|  37.3k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd2D, false, true);
10274|  37.3k|    }
10275|  37.3k|#line 10276 "MachineIndependent/glslang_tab.cpp"
10276|  37.3k|    break;
10277|       |
10278|  15.6k|  case 412: /* type_specifier_nonarray: F16SAMPLERCUBESHADOW  */
  ------------------
  |  Branch (10278:3): [True: 15.6k, False: 292M]
  ------------------
10279|  15.6k|#line 2891 "MachineIndependent/glslang.y"
10280|  15.6k|                           {
10281|  15.6k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  15.6k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  15.6k|#define parseContext (*pParseContext)
  ------------------
10282|  15.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  15.6k|#define parseContext (*pParseContext)
  ------------------
10283|  15.6k|        (yyval.interm.type).basicType = EbtSampler;
10284|  15.6k|        (yyval.interm.type).sampler.set(EbtFloat16, EsdCube, false, true);
10285|  15.6k|    }
10286|  15.6k|#line 10287 "MachineIndependent/glslang_tab.cpp"
10287|  15.6k|    break;
10288|       |
10289|  18.0k|  case 413: /* type_specifier_nonarray: F16SAMPLER1DARRAY  */
  ------------------
  |  Branch (10289:3): [True: 18.0k, False: 292M]
  ------------------
10290|  18.0k|#line 2897 "MachineIndependent/glslang.y"
10291|  18.0k|                        {
10292|  18.0k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
10293|  18.0k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
10294|  18.0k|        (yyval.interm.type).basicType = EbtSampler;
10295|  18.0k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd1D, true);
10296|  18.0k|    }
10297|  18.0k|#line 10298 "MachineIndependent/glslang_tab.cpp"
10298|  18.0k|    break;
10299|       |
10300|  61.4k|  case 414: /* type_specifier_nonarray: F16SAMPLER2DARRAY  */
  ------------------
  |  Branch (10300:3): [True: 61.4k, False: 292M]
  ------------------
10301|  61.4k|#line 2903 "MachineIndependent/glslang.y"
10302|  61.4k|                        {
10303|  61.4k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  61.4k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  61.4k|#define parseContext (*pParseContext)
  ------------------
10304|  61.4k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  61.4k|#define parseContext (*pParseContext)
  ------------------
10305|  61.4k|        (yyval.interm.type).basicType = EbtSampler;
10306|  61.4k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd2D, true);
10307|  61.4k|    }
10308|  61.4k|#line 10309 "MachineIndependent/glslang_tab.cpp"
10309|  61.4k|    break;
10310|       |
10311|  15.6k|  case 415: /* type_specifier_nonarray: F16SAMPLER1DARRAYSHADOW  */
  ------------------
  |  Branch (10311:3): [True: 15.6k, False: 292M]
  ------------------
10312|  15.6k|#line 2909 "MachineIndependent/glslang.y"
10313|  15.6k|                              {
10314|  15.6k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  15.6k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  15.6k|#define parseContext (*pParseContext)
  ------------------
10315|  15.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  15.6k|#define parseContext (*pParseContext)
  ------------------
10316|  15.6k|        (yyval.interm.type).basicType = EbtSampler;
10317|  15.6k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd1D, true, true);
10318|  15.6k|    }
10319|  15.6k|#line 10320 "MachineIndependent/glslang_tab.cpp"
10320|  15.6k|    break;
10321|       |
10322|  19.2k|  case 416: /* type_specifier_nonarray: F16SAMPLER2DARRAYSHADOW  */
  ------------------
  |  Branch (10322:3): [True: 19.2k, False: 292M]
  ------------------
10323|  19.2k|#line 2915 "MachineIndependent/glslang.y"
10324|  19.2k|                              {
10325|  19.2k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  19.2k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  19.2k|#define parseContext (*pParseContext)
  ------------------
10326|  19.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  19.2k|#define parseContext (*pParseContext)
  ------------------
10327|  19.2k|        (yyval.interm.type).basicType = EbtSampler;
10328|  19.2k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd2D, true, true);
10329|  19.2k|    }
10330|  19.2k|#line 10331 "MachineIndependent/glslang_tab.cpp"
10331|  19.2k|    break;
10332|       |
10333|  25.2k|  case 417: /* type_specifier_nonarray: F16SAMPLERCUBEARRAY  */
  ------------------
  |  Branch (10333:3): [True: 25.2k, False: 292M]
  ------------------
10334|  25.2k|#line 2921 "MachineIndependent/glslang.y"
10335|  25.2k|                          {
10336|  25.2k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  25.2k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  25.2k|#define parseContext (*pParseContext)
  ------------------
10337|  25.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  25.2k|#define parseContext (*pParseContext)
  ------------------
10338|  25.2k|        (yyval.interm.type).basicType = EbtSampler;
10339|  25.2k|        (yyval.interm.type).sampler.set(EbtFloat16, EsdCube, true);
10340|  25.2k|    }
10341|  25.2k|#line 10342 "MachineIndependent/glslang_tab.cpp"
10342|  25.2k|    break;
10343|       |
10344|  10.8k|  case 418: /* type_specifier_nonarray: F16SAMPLERCUBEARRAYSHADOW  */
  ------------------
  |  Branch (10344:3): [True: 10.8k, False: 292M]
  ------------------
10345|  10.8k|#line 2927 "MachineIndependent/glslang.y"
10346|  10.8k|                                {
10347|  10.8k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  10.8k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  10.8k|#define parseContext (*pParseContext)
  ------------------
10348|  10.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  10.8k|#define parseContext (*pParseContext)
  ------------------
10349|  10.8k|        (yyval.interm.type).basicType = EbtSampler;
10350|  10.8k|        (yyval.interm.type).sampler.set(EbtFloat16, EsdCube, true, true);
10351|  10.8k|    }
10352|  10.8k|#line 10353 "MachineIndependent/glslang_tab.cpp"
10353|  10.8k|    break;
10354|       |
10355|  55.1k|  case 419: /* type_specifier_nonarray: ISAMPLER1D  */
  ------------------
  |  Branch (10355:3): [True: 55.1k, False: 292M]
  ------------------
10356|  55.1k|#line 2933 "MachineIndependent/glslang.y"
10357|  55.1k|                 {
10358|  55.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  55.1k|#define parseContext (*pParseContext)
  ------------------
10359|  55.1k|        (yyval.interm.type).basicType = EbtSampler;
10360|  55.1k|        (yyval.interm.type).sampler.set(EbtInt, Esd1D);
10361|  55.1k|    }
10362|  55.1k|#line 10363 "MachineIndependent/glslang_tab.cpp"
10363|  55.1k|    break;
10364|       |
10365|   122k|  case 420: /* type_specifier_nonarray: ISAMPLER2D  */
  ------------------
  |  Branch (10365:3): [True: 122k, False: 292M]
  ------------------
10366|   122k|#line 2938 "MachineIndependent/glslang.y"
10367|   122k|                 {
10368|   122k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   122k|#define parseContext (*pParseContext)
  ------------------
10369|   122k|        (yyval.interm.type).basicType = EbtSampler;
10370|   122k|        (yyval.interm.type).sampler.set(EbtInt, Esd2D);
10371|   122k|    }
10372|   122k|#line 10373 "MachineIndependent/glslang_tab.cpp"
10373|   122k|    break;
10374|       |
10375|  55.9k|  case 421: /* type_specifier_nonarray: ISAMPLER3D  */
  ------------------
  |  Branch (10375:3): [True: 55.9k, False: 292M]
  ------------------
10376|  55.9k|#line 2943 "MachineIndependent/glslang.y"
10377|  55.9k|                 {
10378|  55.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  55.9k|#define parseContext (*pParseContext)
  ------------------
10379|  55.9k|        (yyval.interm.type).basicType = EbtSampler;
10380|  55.9k|        (yyval.interm.type).sampler.set(EbtInt, Esd3D);
10381|  55.9k|    }
10382|  55.9k|#line 10383 "MachineIndependent/glslang_tab.cpp"
10383|  55.9k|    break;
10384|       |
10385|  24.6k|  case 422: /* type_specifier_nonarray: ISAMPLERCUBE  */
  ------------------
  |  Branch (10385:3): [True: 24.6k, False: 292M]
  ------------------
10386|  24.6k|#line 2948 "MachineIndependent/glslang.y"
10387|  24.6k|                   {
10388|  24.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  24.6k|#define parseContext (*pParseContext)
  ------------------
10389|  24.6k|        (yyval.interm.type).basicType = EbtSampler;
10390|  24.6k|        (yyval.interm.type).sampler.set(EbtInt, EsdCube);
10391|  24.6k|    }
10392|  24.6k|#line 10393 "MachineIndependent/glslang_tab.cpp"
10393|  24.6k|    break;
10394|       |
10395|  83.5k|  case 423: /* type_specifier_nonarray: ISAMPLER2DARRAY  */
  ------------------
  |  Branch (10395:3): [True: 83.5k, False: 292M]
  ------------------
10396|  83.5k|#line 2953 "MachineIndependent/glslang.y"
10397|  83.5k|                      {
10398|  83.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  83.5k|#define parseContext (*pParseContext)
  ------------------
10399|  83.5k|        (yyval.interm.type).basicType = EbtSampler;
10400|  83.5k|        (yyval.interm.type).sampler.set(EbtInt, Esd2D, true);
10401|  83.5k|    }
10402|  83.5k|#line 10403 "MachineIndependent/glslang_tab.cpp"
10403|  83.5k|    break;
10404|       |
10405|   122k|  case 424: /* type_specifier_nonarray: USAMPLER2D  */
  ------------------
  |  Branch (10405:3): [True: 122k, False: 292M]
  ------------------
10406|   122k|#line 2958 "MachineIndependent/glslang.y"
10407|   122k|                 {
10408|   122k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   122k|#define parseContext (*pParseContext)
  ------------------
10409|   122k|        (yyval.interm.type).basicType = EbtSampler;
10410|   122k|        (yyval.interm.type).sampler.set(EbtUint, Esd2D);
10411|   122k|    }
10412|   122k|#line 10413 "MachineIndependent/glslang_tab.cpp"
10413|   122k|    break;
10414|       |
10415|  55.9k|  case 425: /* type_specifier_nonarray: USAMPLER3D  */
  ------------------
  |  Branch (10415:3): [True: 55.9k, False: 292M]
  ------------------
10416|  55.9k|#line 2963 "MachineIndependent/glslang.y"
10417|  55.9k|                 {
10418|  55.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  55.9k|#define parseContext (*pParseContext)
  ------------------
10419|  55.9k|        (yyval.interm.type).basicType = EbtSampler;
10420|  55.9k|        (yyval.interm.type).sampler.set(EbtUint, Esd3D);
10421|  55.9k|    }
10422|  55.9k|#line 10423 "MachineIndependent/glslang_tab.cpp"
10423|  55.9k|    break;
10424|       |
10425|  24.6k|  case 426: /* type_specifier_nonarray: USAMPLERCUBE  */
  ------------------
  |  Branch (10425:3): [True: 24.6k, False: 292M]
  ------------------
10426|  24.6k|#line 2968 "MachineIndependent/glslang.y"
10427|  24.6k|                   {
10428|  24.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  24.6k|#define parseContext (*pParseContext)
  ------------------
10429|  24.6k|        (yyval.interm.type).basicType = EbtSampler;
10430|  24.6k|        (yyval.interm.type).sampler.set(EbtUint, EsdCube);
10431|  24.6k|    }
10432|  24.6k|#line 10433 "MachineIndependent/glslang_tab.cpp"
10433|  24.6k|    break;
10434|       |
10435|  25.0k|  case 427: /* type_specifier_nonarray: ISAMPLER1DARRAY  */
  ------------------
  |  Branch (10435:3): [True: 25.0k, False: 292M]
  ------------------
10436|  25.0k|#line 2973 "MachineIndependent/glslang.y"
10437|  25.0k|                      {
10438|  25.0k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  25.0k|#define parseContext (*pParseContext)
  ------------------
10439|  25.0k|        (yyval.interm.type).basicType = EbtSampler;
10440|  25.0k|        (yyval.interm.type).sampler.set(EbtInt, Esd1D, true);
10441|  25.0k|    }
10442|  25.0k|#line 10443 "MachineIndependent/glslang_tab.cpp"
10443|  25.0k|    break;
10444|       |
10445|  24.7k|  case 428: /* type_specifier_nonarray: ISAMPLERCUBEARRAY  */
  ------------------
  |  Branch (10445:3): [True: 24.7k, False: 292M]
  ------------------
10446|  24.7k|#line 2978 "MachineIndependent/glslang.y"
10447|  24.7k|                        {
10448|  24.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  24.7k|#define parseContext (*pParseContext)
  ------------------
10449|  24.7k|        (yyval.interm.type).basicType = EbtSampler;
10450|  24.7k|        (yyval.interm.type).sampler.set(EbtInt, EsdCube, true);
10451|  24.7k|    }
10452|  24.7k|#line 10453 "MachineIndependent/glslang_tab.cpp"
10453|  24.7k|    break;
10454|       |
10455|  55.1k|  case 429: /* type_specifier_nonarray: USAMPLER1D  */
  ------------------
  |  Branch (10455:3): [True: 55.1k, False: 292M]
  ------------------
10456|  55.1k|#line 2983 "MachineIndependent/glslang.y"
10457|  55.1k|                 {
10458|  55.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  55.1k|#define parseContext (*pParseContext)
  ------------------
10459|  55.1k|        (yyval.interm.type).basicType = EbtSampler;
10460|  55.1k|        (yyval.interm.type).sampler.set(EbtUint, Esd1D);
10461|  55.1k|    }
10462|  55.1k|#line 10463 "MachineIndependent/glslang_tab.cpp"
10463|  55.1k|    break;
10464|       |
10465|  24.9k|  case 430: /* type_specifier_nonarray: USAMPLER1DARRAY  */
  ------------------
  |  Branch (10465:3): [True: 24.9k, False: 292M]
  ------------------
10466|  24.9k|#line 2988 "MachineIndependent/glslang.y"
10467|  24.9k|                      {
10468|  24.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  24.9k|#define parseContext (*pParseContext)
  ------------------
10469|  24.9k|        (yyval.interm.type).basicType = EbtSampler;
10470|  24.9k|        (yyval.interm.type).sampler.set(EbtUint, Esd1D, true);
10471|  24.9k|    }
10472|  24.9k|#line 10473 "MachineIndependent/glslang_tab.cpp"
10473|  24.9k|    break;
10474|       |
10475|  24.7k|  case 431: /* type_specifier_nonarray: USAMPLERCUBEARRAY  */
  ------------------
  |  Branch (10475:3): [True: 24.7k, False: 292M]
  ------------------
10476|  24.7k|#line 2993 "MachineIndependent/glslang.y"
10477|  24.7k|                        {
10478|  24.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  24.7k|#define parseContext (*pParseContext)
  ------------------
10479|  24.7k|        (yyval.interm.type).basicType = EbtSampler;
10480|  24.7k|        (yyval.interm.type).sampler.set(EbtUint, EsdCube, true);
10481|  24.7k|    }
10482|  24.7k|#line 10483 "MachineIndependent/glslang_tab.cpp"
10483|  24.7k|    break;
10484|       |
10485|  2.10k|  case 432: /* type_specifier_nonarray: TEXTURECUBEARRAY  */
  ------------------
  |  Branch (10485:3): [True: 2.10k, False: 292M]
  ------------------
10486|  2.10k|#line 2998 "MachineIndependent/glslang.y"
10487|  2.10k|                       {
10488|  2.10k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.10k|#define parseContext (*pParseContext)
  ------------------
10489|  2.10k|        (yyval.interm.type).basicType = EbtSampler;
10490|  2.10k|        (yyval.interm.type).sampler.setTexture(EbtFloat, EsdCube, true);
10491|  2.10k|    }
10492|  2.10k|#line 10493 "MachineIndependent/glslang_tab.cpp"
10493|  2.10k|    break;
10494|       |
10495|  2.10k|  case 433: /* type_specifier_nonarray: ITEXTURECUBEARRAY  */
  ------------------
  |  Branch (10495:3): [True: 2.10k, False: 292M]
  ------------------
10496|  2.10k|#line 3003 "MachineIndependent/glslang.y"
10497|  2.10k|                        {
10498|  2.10k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.10k|#define parseContext (*pParseContext)
  ------------------
10499|  2.10k|        (yyval.interm.type).basicType = EbtSampler;
10500|  2.10k|        (yyval.interm.type).sampler.setTexture(EbtInt, EsdCube, true);
10501|  2.10k|    }
10502|  2.10k|#line 10503 "MachineIndependent/glslang_tab.cpp"
10503|  2.10k|    break;
10504|       |
10505|  2.10k|  case 434: /* type_specifier_nonarray: UTEXTURECUBEARRAY  */
  ------------------
  |  Branch (10505:3): [True: 2.10k, False: 292M]
  ------------------
10506|  2.10k|#line 3008 "MachineIndependent/glslang.y"
10507|  2.10k|                        {
10508|  2.10k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.10k|#define parseContext (*pParseContext)
  ------------------
10509|  2.10k|        (yyval.interm.type).basicType = EbtSampler;
10510|  2.10k|        (yyval.interm.type).sampler.setTexture(EbtUint, EsdCube, true);
10511|  2.10k|    }
10512|  2.10k|#line 10513 "MachineIndependent/glslang_tab.cpp"
10513|  2.10k|    break;
10514|       |
10515|  83.2k|  case 435: /* type_specifier_nonarray: USAMPLER2DARRAY  */
  ------------------
  |  Branch (10515:3): [True: 83.2k, False: 292M]
  ------------------
10516|  83.2k|#line 3013 "MachineIndependent/glslang.y"
10517|  83.2k|                      {
10518|  83.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  83.2k|#define parseContext (*pParseContext)
  ------------------
10519|  83.2k|        (yyval.interm.type).basicType = EbtSampler;
10520|  83.2k|        (yyval.interm.type).sampler.set(EbtUint, Esd2D, true);
10521|  83.2k|    }
10522|  83.2k|#line 10523 "MachineIndependent/glslang_tab.cpp"
10523|  83.2k|    break;
10524|       |
10525|  5.88k|  case 436: /* type_specifier_nonarray: TEXTURE2D  */
  ------------------
  |  Branch (10525:3): [True: 5.88k, False: 292M]
  ------------------
10526|  5.88k|#line 3018 "MachineIndependent/glslang.y"
10527|  5.88k|                {
10528|  5.88k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.88k|#define parseContext (*pParseContext)
  ------------------
10529|  5.88k|        (yyval.interm.type).basicType = EbtSampler;
10530|  5.88k|        (yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D);
10531|  5.88k|    }
10532|  5.88k|#line 10533 "MachineIndependent/glslang_tab.cpp"
10533|  5.88k|    break;
10534|       |
10535|  5.88k|  case 437: /* type_specifier_nonarray: TEXTURE3D  */
  ------------------
  |  Branch (10535:3): [True: 5.88k, False: 292M]
  ------------------
10536|  5.88k|#line 3023 "MachineIndependent/glslang.y"
10537|  5.88k|                {
10538|  5.88k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.88k|#define parseContext (*pParseContext)
  ------------------
10539|  5.88k|        (yyval.interm.type).basicType = EbtSampler;
10540|  5.88k|        (yyval.interm.type).sampler.setTexture(EbtFloat, Esd3D);
10541|  5.88k|    }
10542|  5.88k|#line 10543 "MachineIndependent/glslang_tab.cpp"
10543|  5.88k|    break;
10544|       |
10545|  5.84k|  case 438: /* type_specifier_nonarray: TEXTURE2DARRAY  */
  ------------------
  |  Branch (10545:3): [True: 5.84k, False: 292M]
  ------------------
10546|  5.84k|#line 3028 "MachineIndependent/glslang.y"
10547|  5.84k|                     {
10548|  5.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.84k|#define parseContext (*pParseContext)
  ------------------
10549|  5.84k|        (yyval.interm.type).basicType = EbtSampler;
10550|  5.84k|        (yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, true);
10551|  5.84k|    }
10552|  5.84k|#line 10553 "MachineIndependent/glslang_tab.cpp"
10553|  5.84k|    break;
10554|       |
10555|  2.11k|  case 439: /* type_specifier_nonarray: TEXTURECUBE  */
  ------------------
  |  Branch (10555:3): [True: 2.11k, False: 292M]
  ------------------
10556|  2.11k|#line 3033 "MachineIndependent/glslang.y"
10557|  2.11k|                  {
10558|  2.11k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.11k|#define parseContext (*pParseContext)
  ------------------
10559|  2.11k|        (yyval.interm.type).basicType = EbtSampler;
10560|  2.11k|        (yyval.interm.type).sampler.setTexture(EbtFloat, EsdCube);
10561|  2.11k|    }
10562|  2.11k|#line 10563 "MachineIndependent/glslang_tab.cpp"
10563|  2.11k|    break;
10564|       |
10565|  5.84k|  case 440: /* type_specifier_nonarray: ITEXTURE2D  */
  ------------------
  |  Branch (10565:3): [True: 5.84k, False: 292M]
  ------------------
10566|  5.84k|#line 3038 "MachineIndependent/glslang.y"
10567|  5.84k|                 {
10568|  5.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.84k|#define parseContext (*pParseContext)
  ------------------
10569|  5.84k|        (yyval.interm.type).basicType = EbtSampler;
10570|  5.84k|        (yyval.interm.type).sampler.setTexture(EbtInt, Esd2D);
10571|  5.84k|    }
10572|  5.84k|#line 10573 "MachineIndependent/glslang_tab.cpp"
10573|  5.84k|    break;
10574|       |
10575|  5.84k|  case 441: /* type_specifier_nonarray: ITEXTURE3D  */
  ------------------
  |  Branch (10575:3): [True: 5.84k, False: 292M]
  ------------------
10576|  5.84k|#line 3043 "MachineIndependent/glslang.y"
10577|  5.84k|                 {
10578|  5.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.84k|#define parseContext (*pParseContext)
  ------------------
10579|  5.84k|        (yyval.interm.type).basicType = EbtSampler;
10580|  5.84k|        (yyval.interm.type).sampler.setTexture(EbtInt, Esd3D);
10581|  5.84k|    }
10582|  5.84k|#line 10583 "MachineIndependent/glslang_tab.cpp"
10583|  5.84k|    break;
10584|       |
10585|  2.10k|  case 442: /* type_specifier_nonarray: ITEXTURECUBE  */
  ------------------
  |  Branch (10585:3): [True: 2.10k, False: 292M]
  ------------------
10586|  2.10k|#line 3048 "MachineIndependent/glslang.y"
10587|  2.10k|                   {
10588|  2.10k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.10k|#define parseContext (*pParseContext)
  ------------------
10589|  2.10k|        (yyval.interm.type).basicType = EbtSampler;
10590|  2.10k|        (yyval.interm.type).sampler.setTexture(EbtInt, EsdCube);
10591|  2.10k|    }
10592|  2.10k|#line 10593 "MachineIndependent/glslang_tab.cpp"
10593|  2.10k|    break;
10594|       |
10595|  5.84k|  case 443: /* type_specifier_nonarray: ITEXTURE2DARRAY  */
  ------------------
  |  Branch (10595:3): [True: 5.84k, False: 292M]
  ------------------
10596|  5.84k|#line 3053 "MachineIndependent/glslang.y"
10597|  5.84k|                      {
10598|  5.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.84k|#define parseContext (*pParseContext)
  ------------------
10599|  5.84k|        (yyval.interm.type).basicType = EbtSampler;
10600|  5.84k|        (yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, true);
10601|  5.84k|    }
10602|  5.84k|#line 10603 "MachineIndependent/glslang_tab.cpp"
10603|  5.84k|    break;
10604|       |
10605|  5.84k|  case 444: /* type_specifier_nonarray: UTEXTURE2D  */
  ------------------
  |  Branch (10605:3): [True: 5.84k, False: 292M]
  ------------------
10606|  5.84k|#line 3058 "MachineIndependent/glslang.y"
10607|  5.84k|                 {
10608|  5.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.84k|#define parseContext (*pParseContext)
  ------------------
10609|  5.84k|        (yyval.interm.type).basicType = EbtSampler;
10610|  5.84k|        (yyval.interm.type).sampler.setTexture(EbtUint, Esd2D);
10611|  5.84k|    }
10612|  5.84k|#line 10613 "MachineIndependent/glslang_tab.cpp"
10613|  5.84k|    break;
10614|       |
10615|  5.84k|  case 445: /* type_specifier_nonarray: UTEXTURE3D  */
  ------------------
  |  Branch (10615:3): [True: 5.84k, False: 292M]
  ------------------
10616|  5.84k|#line 3063 "MachineIndependent/glslang.y"
10617|  5.84k|                 {
10618|  5.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.84k|#define parseContext (*pParseContext)
  ------------------
10619|  5.84k|        (yyval.interm.type).basicType = EbtSampler;
10620|  5.84k|        (yyval.interm.type).sampler.setTexture(EbtUint, Esd3D);
10621|  5.84k|    }
10622|  5.84k|#line 10623 "MachineIndependent/glslang_tab.cpp"
10623|  5.84k|    break;
10624|       |
10625|  2.10k|  case 446: /* type_specifier_nonarray: UTEXTURECUBE  */
  ------------------
  |  Branch (10625:3): [True: 2.10k, False: 292M]
  ------------------
10626|  2.10k|#line 3068 "MachineIndependent/glslang.y"
10627|  2.10k|                   {
10628|  2.10k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.10k|#define parseContext (*pParseContext)
  ------------------
10629|  2.10k|        (yyval.interm.type).basicType = EbtSampler;
10630|  2.10k|        (yyval.interm.type).sampler.setTexture(EbtUint, EsdCube);
10631|  2.10k|    }
10632|  2.10k|#line 10633 "MachineIndependent/glslang_tab.cpp"
10633|  2.10k|    break;
10634|       |
10635|  5.84k|  case 447: /* type_specifier_nonarray: UTEXTURE2DARRAY  */
  ------------------
  |  Branch (10635:3): [True: 5.84k, False: 292M]
  ------------------
10636|  5.84k|#line 3073 "MachineIndependent/glslang.y"
10637|  5.84k|                      {
10638|  5.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.84k|#define parseContext (*pParseContext)
  ------------------
10639|  5.84k|        (yyval.interm.type).basicType = EbtSampler;
10640|  5.84k|        (yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, true);
10641|  5.84k|    }
10642|  5.84k|#line 10643 "MachineIndependent/glslang_tab.cpp"
10643|  5.84k|    break;
10644|       |
10645|     36|  case 448: /* type_specifier_nonarray: SAMPLER  */
  ------------------
  |  Branch (10645:3): [True: 36, False: 292M]
  ------------------
10646|     36|#line 3078 "MachineIndependent/glslang.y"
10647|     36|              {
10648|     36|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|     36|#define parseContext (*pParseContext)
  ------------------
10649|     36|        (yyval.interm.type).basicType = EbtSampler;
10650|     36|        (yyval.interm.type).sampler.setPureSampler(false);
10651|     36|    }
10652|     36|#line 10653 "MachineIndependent/glslang_tab.cpp"
10653|     36|    break;
10654|       |
10655|     19|  case 449: /* type_specifier_nonarray: SAMPLERSHADOW  */
  ------------------
  |  Branch (10655:3): [True: 19, False: 292M]
  ------------------
10656|     19|#line 3083 "MachineIndependent/glslang.y"
10657|     19|                    {
10658|     19|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|     19|#define parseContext (*pParseContext)
  ------------------
10659|     19|        (yyval.interm.type).basicType = EbtSampler;
10660|     19|        (yyval.interm.type).sampler.setPureSampler(true);
10661|     19|    }
10662|     19|#line 10663 "MachineIndependent/glslang_tab.cpp"
10663|     19|    break;
10664|       |
10665|    118|  case 450: /* type_specifier_nonarray: SAMPLER2DRECT  */
  ------------------
  |  Branch (10665:3): [True: 118, False: 292M]
  ------------------
10666|    118|#line 3088 "MachineIndependent/glslang.y"
10667|    118|                    {
10668|    118|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    118|#define parseContext (*pParseContext)
  ------------------
10669|    118|        (yyval.interm.type).basicType = EbtSampler;
10670|    118|        (yyval.interm.type).sampler.set(EbtFloat, EsdRect);
10671|    118|    }
10672|    118|#line 10673 "MachineIndependent/glslang_tab.cpp"
10673|    118|    break;
10674|       |
10675|    115|  case 451: /* type_specifier_nonarray: SAMPLER2DRECTSHADOW  */
  ------------------
  |  Branch (10675:3): [True: 115, False: 292M]
  ------------------
10676|    115|#line 3093 "MachineIndependent/glslang.y"
10677|    115|                          {
10678|    115|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    115|#define parseContext (*pParseContext)
  ------------------
10679|    115|        (yyval.interm.type).basicType = EbtSampler;
10680|    115|        (yyval.interm.type).sampler.set(EbtFloat, EsdRect, false, true);
10681|    115|    }
10682|    115|#line 10683 "MachineIndependent/glslang_tab.cpp"
10683|    115|    break;
10684|       |
10685|      0|  case 452: /* type_specifier_nonarray: F16SAMPLER2DRECT  */
  ------------------
  |  Branch (10685:3): [True: 0, False: 292M]
  ------------------
10686|      0|#line 3098 "MachineIndependent/glslang.y"
10687|      0|                       {
10688|      0|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
10689|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
10690|      0|        (yyval.interm.type).basicType = EbtSampler;
10691|      0|        (yyval.interm.type).sampler.set(EbtFloat16, EsdRect);
10692|      0|    }
10693|      0|#line 10694 "MachineIndependent/glslang_tab.cpp"
10694|      0|    break;
10695|       |
10696|      0|  case 453: /* type_specifier_nonarray: F16SAMPLER2DRECTSHADOW  */
  ------------------
  |  Branch (10696:3): [True: 0, False: 292M]
  ------------------
10697|      0|#line 3104 "MachineIndependent/glslang.y"
10698|      0|                             {
10699|      0|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
10700|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
10701|      0|        (yyval.interm.type).basicType = EbtSampler;
10702|      0|        (yyval.interm.type).sampler.set(EbtFloat16, EsdRect, false, true);
10703|      0|    }
10704|      0|#line 10705 "MachineIndependent/glslang_tab.cpp"
10705|      0|    break;
10706|       |
10707|     84|  case 454: /* type_specifier_nonarray: ISAMPLER2DRECT  */
  ------------------
  |  Branch (10707:3): [True: 84, False: 292M]
  ------------------
10708|     84|#line 3110 "MachineIndependent/glslang.y"
10709|     84|                     {
10710|     84|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|     84|#define parseContext (*pParseContext)
  ------------------
10711|     84|        (yyval.interm.type).basicType = EbtSampler;
10712|     84|        (yyval.interm.type).sampler.set(EbtInt, EsdRect);
10713|     84|    }
10714|     84|#line 10715 "MachineIndependent/glslang_tab.cpp"
10715|     84|    break;
10716|       |
10717|    213|  case 455: /* type_specifier_nonarray: USAMPLER2DRECT  */
  ------------------
  |  Branch (10717:3): [True: 213, False: 292M]
  ------------------
10718|    213|#line 3115 "MachineIndependent/glslang.y"
10719|    213|                     {
10720|    213|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
10721|    213|        (yyval.interm.type).basicType = EbtSampler;
10722|    213|        (yyval.interm.type).sampler.set(EbtUint, EsdRect);
10723|    213|    }
10724|    213|#line 10725 "MachineIndependent/glslang_tab.cpp"
10725|    213|    break;
10726|       |
10727|  3.18k|  case 456: /* type_specifier_nonarray: SAMPLERBUFFER  */
  ------------------
  |  Branch (10727:3): [True: 3.18k, False: 292M]
  ------------------
10728|  3.18k|#line 3120 "MachineIndependent/glslang.y"
10729|  3.18k|                    {
10730|  3.18k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.18k|#define parseContext (*pParseContext)
  ------------------
10731|  3.18k|        (yyval.interm.type).basicType = EbtSampler;
10732|  3.18k|        (yyval.interm.type).sampler.set(EbtFloat, EsdBuffer);
10733|  3.18k|    }
10734|  3.18k|#line 10735 "MachineIndependent/glslang_tab.cpp"
10735|  3.18k|    break;
10736|       |
10737|    904|  case 457: /* type_specifier_nonarray: F16SAMPLERBUFFER  */
  ------------------
  |  Branch (10737:3): [True: 904, False: 292M]
  ------------------
10738|    904|#line 3125 "MachineIndependent/glslang.y"
10739|    904|                       {
10740|    904|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    904|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    904|#define parseContext (*pParseContext)
  ------------------
10741|    904|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    904|#define parseContext (*pParseContext)
  ------------------
10742|    904|        (yyval.interm.type).basicType = EbtSampler;
10743|    904|        (yyval.interm.type).sampler.set(EbtFloat16, EsdBuffer);
10744|    904|    }
10745|    904|#line 10746 "MachineIndependent/glslang_tab.cpp"
10746|    904|    break;
10747|       |
10748|  3.13k|  case 458: /* type_specifier_nonarray: ISAMPLERBUFFER  */
  ------------------
  |  Branch (10748:3): [True: 3.13k, False: 292M]
  ------------------
10749|  3.13k|#line 3131 "MachineIndependent/glslang.y"
10750|  3.13k|                     {
10751|  3.13k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.13k|#define parseContext (*pParseContext)
  ------------------
10752|  3.13k|        (yyval.interm.type).basicType = EbtSampler;
10753|  3.13k|        (yyval.interm.type).sampler.set(EbtInt, EsdBuffer);
10754|  3.13k|    }
10755|  3.13k|#line 10756 "MachineIndependent/glslang_tab.cpp"
10756|  3.13k|    break;
10757|       |
10758|  3.13k|  case 459: /* type_specifier_nonarray: USAMPLERBUFFER  */
  ------------------
  |  Branch (10758:3): [True: 3.13k, False: 292M]
  ------------------
10759|  3.13k|#line 3136 "MachineIndependent/glslang.y"
10760|  3.13k|                     {
10761|  3.13k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.13k|#define parseContext (*pParseContext)
  ------------------
10762|  3.13k|        (yyval.interm.type).basicType = EbtSampler;
10763|  3.13k|        (yyval.interm.type).sampler.set(EbtUint, EsdBuffer);
10764|  3.13k|    }
10765|  3.13k|#line 10766 "MachineIndependent/glslang_tab.cpp"
10766|  3.13k|    break;
10767|       |
10768|  4.67k|  case 460: /* type_specifier_nonarray: SAMPLER2DMS  */
  ------------------
  |  Branch (10768:3): [True: 4.67k, False: 292M]
  ------------------
10769|  4.67k|#line 3141 "MachineIndependent/glslang.y"
10770|  4.67k|                  {
10771|  4.67k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.67k|#define parseContext (*pParseContext)
  ------------------
10772|  4.67k|        (yyval.interm.type).basicType = EbtSampler;
10773|  4.67k|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D, false, false, true);
10774|  4.67k|    }
10775|  4.67k|#line 10776 "MachineIndependent/glslang_tab.cpp"
10776|  4.67k|    break;
10777|       |
10778|  1.80k|  case 461: /* type_specifier_nonarray: F16SAMPLER2DMS  */
  ------------------
  |  Branch (10778:3): [True: 1.80k, False: 292M]
  ------------------
10779|  1.80k|#line 3146 "MachineIndependent/glslang.y"
10780|  1.80k|                     {
10781|  1.80k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10782|  1.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10783|  1.80k|        (yyval.interm.type).basicType = EbtSampler;
10784|  1.80k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd2D, false, false, true);
10785|  1.80k|    }
10786|  1.80k|#line 10787 "MachineIndependent/glslang_tab.cpp"
10787|  1.80k|    break;
10788|       |
10789|  4.57k|  case 462: /* type_specifier_nonarray: ISAMPLER2DMS  */
  ------------------
  |  Branch (10789:3): [True: 4.57k, False: 292M]
  ------------------
10790|  4.57k|#line 3152 "MachineIndependent/glslang.y"
10791|  4.57k|                   {
10792|  4.57k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.57k|#define parseContext (*pParseContext)
  ------------------
10793|  4.57k|        (yyval.interm.type).basicType = EbtSampler;
10794|  4.57k|        (yyval.interm.type).sampler.set(EbtInt, Esd2D, false, false, true);
10795|  4.57k|    }
10796|  4.57k|#line 10797 "MachineIndependent/glslang_tab.cpp"
10797|  4.57k|    break;
10798|       |
10799|  4.57k|  case 463: /* type_specifier_nonarray: USAMPLER2DMS  */
  ------------------
  |  Branch (10799:3): [True: 4.57k, False: 292M]
  ------------------
10800|  4.57k|#line 3157 "MachineIndependent/glslang.y"
10801|  4.57k|                   {
10802|  4.57k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.57k|#define parseContext (*pParseContext)
  ------------------
10803|  4.57k|        (yyval.interm.type).basicType = EbtSampler;
10804|  4.57k|        (yyval.interm.type).sampler.set(EbtUint, Esd2D, false, false, true);
10805|  4.57k|    }
10806|  4.57k|#line 10807 "MachineIndependent/glslang_tab.cpp"
10807|  4.57k|    break;
10808|       |
10809|  4.58k|  case 464: /* type_specifier_nonarray: SAMPLER2DMSARRAY  */
  ------------------
  |  Branch (10809:3): [True: 4.58k, False: 292M]
  ------------------
10810|  4.58k|#line 3162 "MachineIndependent/glslang.y"
10811|  4.58k|                       {
10812|  4.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.58k|#define parseContext (*pParseContext)
  ------------------
10813|  4.58k|        (yyval.interm.type).basicType = EbtSampler;
10814|  4.58k|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D, true, false, true);
10815|  4.58k|    }
10816|  4.58k|#line 10817 "MachineIndependent/glslang_tab.cpp"
10817|  4.58k|    break;
10818|       |
10819|  1.80k|  case 465: /* type_specifier_nonarray: F16SAMPLER2DMSARRAY  */
  ------------------
  |  Branch (10819:3): [True: 1.80k, False: 292M]
  ------------------
10820|  1.80k|#line 3167 "MachineIndependent/glslang.y"
10821|  1.80k|                          {
10822|  1.80k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float sampler", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10823|  1.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10824|  1.80k|        (yyval.interm.type).basicType = EbtSampler;
10825|  1.80k|        (yyval.interm.type).sampler.set(EbtFloat16, Esd2D, true, false, true);
10826|  1.80k|    }
10827|  1.80k|#line 10828 "MachineIndependent/glslang_tab.cpp"
10828|  1.80k|    break;
10829|       |
10830|  4.58k|  case 466: /* type_specifier_nonarray: ISAMPLER2DMSARRAY  */
  ------------------
  |  Branch (10830:3): [True: 4.58k, False: 292M]
  ------------------
10831|  4.58k|#line 3173 "MachineIndependent/glslang.y"
10832|  4.58k|                        {
10833|  4.58k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.58k|#define parseContext (*pParseContext)
  ------------------
10834|  4.58k|        (yyval.interm.type).basicType = EbtSampler;
10835|  4.58k|        (yyval.interm.type).sampler.set(EbtInt, Esd2D, true, false, true);
10836|  4.58k|    }
10837|  4.58k|#line 10838 "MachineIndependent/glslang_tab.cpp"
10838|  4.58k|    break;
10839|       |
10840|  4.57k|  case 467: /* type_specifier_nonarray: USAMPLER2DMSARRAY  */
  ------------------
  |  Branch (10840:3): [True: 4.57k, False: 292M]
  ------------------
10841|  4.57k|#line 3178 "MachineIndependent/glslang.y"
10842|  4.57k|                        {
10843|  4.57k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.57k|#define parseContext (*pParseContext)
  ------------------
10844|  4.57k|        (yyval.interm.type).basicType = EbtSampler;
10845|  4.57k|        (yyval.interm.type).sampler.set(EbtUint, Esd2D, true, false, true);
10846|  4.57k|    }
10847|  4.57k|#line 10848 "MachineIndependent/glslang_tab.cpp"
10848|  4.57k|    break;
10849|       |
10850|  4.35k|  case 468: /* type_specifier_nonarray: TEXTURE1D  */
  ------------------
  |  Branch (10850:3): [True: 4.35k, False: 292M]
  ------------------
10851|  4.35k|#line 3183 "MachineIndependent/glslang.y"
10852|  4.35k|                {
10853|  4.35k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.35k|#define parseContext (*pParseContext)
  ------------------
10854|  4.35k|        (yyval.interm.type).basicType = EbtSampler;
10855|  4.35k|        (yyval.interm.type).sampler.setTexture(EbtFloat, Esd1D);
10856|  4.35k|    }
10857|  4.35k|#line 10858 "MachineIndependent/glslang_tab.cpp"
10858|  4.35k|    break;
10859|       |
10860|  1.80k|  case 469: /* type_specifier_nonarray: F16TEXTURE1D  */
  ------------------
  |  Branch (10860:3): [True: 1.80k, False: 292M]
  ------------------
10861|  1.80k|#line 3188 "MachineIndependent/glslang.y"
10862|  1.80k|                   {
10863|  1.80k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10864|  1.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10865|  1.80k|        (yyval.interm.type).basicType = EbtSampler;
10866|  1.80k|        (yyval.interm.type).sampler.setTexture(EbtFloat16, Esd1D);
10867|  1.80k|    }
10868|  1.80k|#line 10869 "MachineIndependent/glslang_tab.cpp"
10869|  1.80k|    break;
10870|       |
10871|  3.01k|  case 470: /* type_specifier_nonarray: F16TEXTURE2D  */
  ------------------
  |  Branch (10871:3): [True: 3.01k, False: 292M]
  ------------------
10872|  3.01k|#line 3194 "MachineIndependent/glslang.y"
10873|  3.01k|                   {
10874|  3.01k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
10875|  3.01k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
10876|  3.01k|        (yyval.interm.type).basicType = EbtSampler;
10877|  3.01k|        (yyval.interm.type).sampler.setTexture(EbtFloat16, Esd2D);
10878|  3.01k|    }
10879|  3.01k|#line 10880 "MachineIndependent/glslang_tab.cpp"
10880|  3.01k|    break;
10881|       |
10882|  3.01k|  case 471: /* type_specifier_nonarray: F16TEXTURE3D  */
  ------------------
  |  Branch (10882:3): [True: 3.01k, False: 292M]
  ------------------
10883|  3.01k|#line 3200 "MachineIndependent/glslang.y"
10884|  3.01k|                   {
10885|  3.01k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
10886|  3.01k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
10887|  3.01k|        (yyval.interm.type).basicType = EbtSampler;
10888|  3.01k|        (yyval.interm.type).sampler.setTexture(EbtFloat16, Esd3D);
10889|  3.01k|    }
10890|  3.01k|#line 10891 "MachineIndependent/glslang_tab.cpp"
10891|  3.01k|    break;
10892|       |
10893|    603|  case 472: /* type_specifier_nonarray: F16TEXTURECUBE  */
  ------------------
  |  Branch (10893:3): [True: 603, False: 292M]
  ------------------
10894|    603|#line 3206 "MachineIndependent/glslang.y"
10895|    603|                     {
10896|    603|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    603|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    603|#define parseContext (*pParseContext)
  ------------------
10897|    603|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    603|#define parseContext (*pParseContext)
  ------------------
10898|    603|        (yyval.interm.type).basicType = EbtSampler;
10899|    603|        (yyval.interm.type).sampler.setTexture(EbtFloat16, EsdCube);
10900|    603|    }
10901|    603|#line 10902 "MachineIndependent/glslang_tab.cpp"
10902|    603|    break;
10903|       |
10904|  4.35k|  case 473: /* type_specifier_nonarray: TEXTURE1DARRAY  */
  ------------------
  |  Branch (10904:3): [True: 4.35k, False: 292M]
  ------------------
10905|  4.35k|#line 3212 "MachineIndependent/glslang.y"
10906|  4.35k|                     {
10907|  4.35k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.35k|#define parseContext (*pParseContext)
  ------------------
10908|  4.35k|        (yyval.interm.type).basicType = EbtSampler;
10909|  4.35k|        (yyval.interm.type).sampler.setTexture(EbtFloat, Esd1D, true);
10910|  4.35k|    }
10911|  4.35k|#line 10912 "MachineIndependent/glslang_tab.cpp"
10912|  4.35k|    break;
10913|       |
10914|  1.80k|  case 474: /* type_specifier_nonarray: F16TEXTURE1DARRAY  */
  ------------------
  |  Branch (10914:3): [True: 1.80k, False: 292M]
  ------------------
10915|  1.80k|#line 3217 "MachineIndependent/glslang.y"
10916|  1.80k|                        {
10917|  1.80k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10918|  1.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
10919|  1.80k|        (yyval.interm.type).basicType = EbtSampler;
10920|  1.80k|        (yyval.interm.type).sampler.setTexture(EbtFloat16, Esd1D, true);
10921|  1.80k|    }
10922|  1.80k|#line 10923 "MachineIndependent/glslang_tab.cpp"
10923|  1.80k|    break;
10924|       |
10925|  3.01k|  case 475: /* type_specifier_nonarray: F16TEXTURE2DARRAY  */
  ------------------
  |  Branch (10925:3): [True: 3.01k, False: 292M]
  ------------------
10926|  3.01k|#line 3223 "MachineIndependent/glslang.y"
10927|  3.01k|                        {
10928|  3.01k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
10929|  3.01k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.01k|#define parseContext (*pParseContext)
  ------------------
10930|  3.01k|        (yyval.interm.type).basicType = EbtSampler;
10931|  3.01k|        (yyval.interm.type).sampler.setTexture(EbtFloat16, Esd2D, true);
10932|  3.01k|    }
10933|  3.01k|#line 10934 "MachineIndependent/glslang_tab.cpp"
10934|  3.01k|    break;
10935|       |
10936|    603|  case 476: /* type_specifier_nonarray: F16TEXTURECUBEARRAY  */
  ------------------
  |  Branch (10936:3): [True: 603, False: 292M]
  ------------------
10937|    603|#line 3229 "MachineIndependent/glslang.y"
10938|    603|                          {
10939|    603|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    603|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    603|#define parseContext (*pParseContext)
  ------------------
10940|    603|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    603|#define parseContext (*pParseContext)
  ------------------
10941|    603|        (yyval.interm.type).basicType = EbtSampler;
10942|    603|        (yyval.interm.type).sampler.setTexture(EbtFloat16, EsdCube, true);
10943|    603|    }
10944|    603|#line 10945 "MachineIndependent/glslang_tab.cpp"
10945|    603|    break;
10946|       |
10947|  4.35k|  case 477: /* type_specifier_nonarray: ITEXTURE1D  */
  ------------------
  |  Branch (10947:3): [True: 4.35k, False: 292M]
  ------------------
10948|  4.35k|#line 3235 "MachineIndependent/glslang.y"
10949|  4.35k|                 {
10950|  4.35k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.35k|#define parseContext (*pParseContext)
  ------------------
10951|  4.35k|        (yyval.interm.type).basicType = EbtSampler;
10952|  4.35k|        (yyval.interm.type).sampler.setTexture(EbtInt, Esd1D);
10953|  4.35k|    }
10954|  4.35k|#line 10955 "MachineIndependent/glslang_tab.cpp"
10955|  4.35k|    break;
10956|       |
10957|  4.35k|  case 478: /* type_specifier_nonarray: ITEXTURE1DARRAY  */
  ------------------
  |  Branch (10957:3): [True: 4.35k, False: 292M]
  ------------------
10958|  4.35k|#line 3240 "MachineIndependent/glslang.y"
10959|  4.35k|                      {
10960|  4.35k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.35k|#define parseContext (*pParseContext)
  ------------------
10961|  4.35k|        (yyval.interm.type).basicType = EbtSampler;
10962|  4.35k|        (yyval.interm.type).sampler.setTexture(EbtInt, Esd1D, true);
10963|  4.35k|    }
10964|  4.35k|#line 10965 "MachineIndependent/glslang_tab.cpp"
10965|  4.35k|    break;
10966|       |
10967|  4.35k|  case 479: /* type_specifier_nonarray: UTEXTURE1D  */
  ------------------
  |  Branch (10967:3): [True: 4.35k, False: 292M]
  ------------------
10968|  4.35k|#line 3245 "MachineIndependent/glslang.y"
10969|  4.35k|                 {
10970|  4.35k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.35k|#define parseContext (*pParseContext)
  ------------------
10971|  4.35k|        (yyval.interm.type).basicType = EbtSampler;
10972|  4.35k|        (yyval.interm.type).sampler.setTexture(EbtUint, Esd1D);
10973|  4.35k|    }
10974|  4.35k|#line 10975 "MachineIndependent/glslang_tab.cpp"
10975|  4.35k|    break;
10976|       |
10977|  4.35k|  case 480: /* type_specifier_nonarray: UTEXTURE1DARRAY  */
  ------------------
  |  Branch (10977:3): [True: 4.35k, False: 292M]
  ------------------
10978|  4.35k|#line 3250 "MachineIndependent/glslang.y"
10979|  4.35k|                      {
10980|  4.35k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.35k|#define parseContext (*pParseContext)
  ------------------
10981|  4.35k|        (yyval.interm.type).basicType = EbtSampler;
10982|  4.35k|        (yyval.interm.type).sampler.setTexture(EbtUint, Esd1D, true);
10983|  4.35k|    }
10984|  4.35k|#line 10985 "MachineIndependent/glslang_tab.cpp"
10985|  4.35k|    break;
10986|       |
10987|      0|  case 481: /* type_specifier_nonarray: TEXTURE2DRECT  */
  ------------------
  |  Branch (10987:3): [True: 0, False: 292M]
  ------------------
10988|      0|#line 3255 "MachineIndependent/glslang.y"
10989|      0|                    {
10990|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
10991|      0|        (yyval.interm.type).basicType = EbtSampler;
10992|      0|        (yyval.interm.type).sampler.setTexture(EbtFloat, EsdRect);
10993|      0|    }
10994|      0|#line 10995 "MachineIndependent/glslang_tab.cpp"
10995|      0|    break;
10996|       |
10997|      0|  case 482: /* type_specifier_nonarray: F16TEXTURE2DRECT  */
  ------------------
  |  Branch (10997:3): [True: 0, False: 292M]
  ------------------
10998|      0|#line 3260 "MachineIndependent/glslang.y"
10999|      0|                       {
11000|      0|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11001|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11002|      0|        (yyval.interm.type).basicType = EbtSampler;
11003|      0|        (yyval.interm.type).sampler.setTexture(EbtFloat16, EsdRect);
11004|      0|    }
11005|      0|#line 11006 "MachineIndependent/glslang_tab.cpp"
11006|      0|    break;
11007|       |
11008|      0|  case 483: /* type_specifier_nonarray: ITEXTURE2DRECT  */
  ------------------
  |  Branch (11008:3): [True: 0, False: 292M]
  ------------------
11009|      0|#line 3266 "MachineIndependent/glslang.y"
11010|      0|                     {
11011|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11012|      0|        (yyval.interm.type).basicType = EbtSampler;
11013|      0|        (yyval.interm.type).sampler.setTexture(EbtInt, EsdRect);
11014|      0|    }
11015|      0|#line 11016 "MachineIndependent/glslang_tab.cpp"
11016|      0|    break;
11017|       |
11018|      0|  case 484: /* type_specifier_nonarray: UTEXTURE2DRECT  */
  ------------------
  |  Branch (11018:3): [True: 0, False: 292M]
  ------------------
11019|      0|#line 3271 "MachineIndependent/glslang.y"
11020|      0|                     {
11021|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11022|      0|        (yyval.interm.type).basicType = EbtSampler;
11023|      0|        (yyval.interm.type).sampler.setTexture(EbtUint, EsdRect);
11024|      0|    }
11025|      0|#line 11026 "MachineIndependent/glslang_tab.cpp"
11026|      0|    break;
11027|       |
11028|  3.14k|  case 485: /* type_specifier_nonarray: TEXTUREBUFFER  */
  ------------------
  |  Branch (11028:3): [True: 3.14k, False: 292M]
  ------------------
11029|  3.14k|#line 3276 "MachineIndependent/glslang.y"
11030|  3.14k|                    {
11031|  3.14k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.14k|#define parseContext (*pParseContext)
  ------------------
11032|  3.14k|        (yyval.interm.type).basicType = EbtSampler;
11033|  3.14k|        (yyval.interm.type).sampler.setTexture(EbtFloat, EsdBuffer);
11034|  3.14k|    }
11035|  3.14k|#line 11036 "MachineIndependent/glslang_tab.cpp"
11036|  3.14k|    break;
11037|       |
11038|    904|  case 486: /* type_specifier_nonarray: F16TEXTUREBUFFER  */
  ------------------
  |  Branch (11038:3): [True: 904, False: 292M]
  ------------------
11039|    904|#line 3281 "MachineIndependent/glslang.y"
11040|    904|                       {
11041|    904|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    904|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    904|#define parseContext (*pParseContext)
  ------------------
11042|    904|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    904|#define parseContext (*pParseContext)
  ------------------
11043|    904|        (yyval.interm.type).basicType = EbtSampler;
11044|    904|        (yyval.interm.type).sampler.setTexture(EbtFloat16, EsdBuffer);
11045|    904|    }
11046|    904|#line 11047 "MachineIndependent/glslang_tab.cpp"
11047|    904|    break;
11048|       |
11049|  3.13k|  case 487: /* type_specifier_nonarray: ITEXTUREBUFFER  */
  ------------------
  |  Branch (11049:3): [True: 3.13k, False: 292M]
  ------------------
11050|  3.13k|#line 3287 "MachineIndependent/glslang.y"
11051|  3.13k|                     {
11052|  3.13k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.13k|#define parseContext (*pParseContext)
  ------------------
11053|  3.13k|        (yyval.interm.type).basicType = EbtSampler;
11054|  3.13k|        (yyval.interm.type).sampler.setTexture(EbtInt, EsdBuffer);
11055|  3.13k|    }
11056|  3.13k|#line 11057 "MachineIndependent/glslang_tab.cpp"
11057|  3.13k|    break;
11058|       |
11059|  3.13k|  case 488: /* type_specifier_nonarray: UTEXTUREBUFFER  */
  ------------------
  |  Branch (11059:3): [True: 3.13k, False: 292M]
  ------------------
11060|  3.13k|#line 3292 "MachineIndependent/glslang.y"
11061|  3.13k|                     {
11062|  3.13k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.13k|#define parseContext (*pParseContext)
  ------------------
11063|  3.13k|        (yyval.interm.type).basicType = EbtSampler;
11064|  3.13k|        (yyval.interm.type).sampler.setTexture(EbtUint, EsdBuffer);
11065|  3.13k|    }
11066|  3.13k|#line 11067 "MachineIndependent/glslang_tab.cpp"
11067|  3.13k|    break;
11068|       |
11069|  3.97k|  case 489: /* type_specifier_nonarray: TEXTURE2DMS  */
  ------------------
  |  Branch (11069:3): [True: 3.97k, False: 292M]
  ------------------
11070|  3.97k|#line 3297 "MachineIndependent/glslang.y"
11071|  3.97k|                  {
11072|  3.97k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.97k|#define parseContext (*pParseContext)
  ------------------
11073|  3.97k|        (yyval.interm.type).basicType = EbtSampler;
11074|  3.97k|        (yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, false, false, true);
11075|  3.97k|    }
11076|  3.97k|#line 11077 "MachineIndependent/glslang_tab.cpp"
11077|  3.97k|    break;
11078|       |
11079|  1.80k|  case 490: /* type_specifier_nonarray: F16TEXTURE2DMS  */
  ------------------
  |  Branch (11079:3): [True: 1.80k, False: 292M]
  ------------------
11080|  1.80k|#line 3302 "MachineIndependent/glslang.y"
11081|  1.80k|                     {
11082|  1.80k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
11083|  1.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
11084|  1.80k|        (yyval.interm.type).basicType = EbtSampler;
11085|  1.80k|        (yyval.interm.type).sampler.setTexture(EbtFloat16, Esd2D, false, false, true);
11086|  1.80k|    }
11087|  1.80k|#line 11088 "MachineIndependent/glslang_tab.cpp"
11088|  1.80k|    break;
11089|       |
11090|  3.97k|  case 491: /* type_specifier_nonarray: ITEXTURE2DMS  */
  ------------------
  |  Branch (11090:3): [True: 3.97k, False: 292M]
  ------------------
11091|  3.97k|#line 3308 "MachineIndependent/glslang.y"
11092|  3.97k|                   {
11093|  3.97k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.97k|#define parseContext (*pParseContext)
  ------------------
11094|  3.97k|        (yyval.interm.type).basicType = EbtSampler;
11095|  3.97k|        (yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, false, false, true);
11096|  3.97k|    }
11097|  3.97k|#line 11098 "MachineIndependent/glslang_tab.cpp"
11098|  3.97k|    break;
11099|       |
11100|  3.97k|  case 492: /* type_specifier_nonarray: UTEXTURE2DMS  */
  ------------------
  |  Branch (11100:3): [True: 3.97k, False: 292M]
  ------------------
11101|  3.97k|#line 3313 "MachineIndependent/glslang.y"
11102|  3.97k|                   {
11103|  3.97k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.97k|#define parseContext (*pParseContext)
  ------------------
11104|  3.97k|        (yyval.interm.type).basicType = EbtSampler;
11105|  3.97k|        (yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, false, false, true);
11106|  3.97k|    }
11107|  3.97k|#line 11108 "MachineIndependent/glslang_tab.cpp"
11108|  3.97k|    break;
11109|       |
11110|  3.97k|  case 493: /* type_specifier_nonarray: TEXTURE2DMSARRAY  */
  ------------------
  |  Branch (11110:3): [True: 3.97k, False: 292M]
  ------------------
11111|  3.97k|#line 3318 "MachineIndependent/glslang.y"
11112|  3.97k|                       {
11113|  3.97k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.97k|#define parseContext (*pParseContext)
  ------------------
11114|  3.97k|        (yyval.interm.type).basicType = EbtSampler;
11115|  3.97k|        (yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, true, false, true);
11116|  3.97k|    }
11117|  3.97k|#line 11118 "MachineIndependent/glslang_tab.cpp"
11118|  3.97k|    break;
11119|       |
11120|  1.80k|  case 494: /* type_specifier_nonarray: F16TEXTURE2DMSARRAY  */
  ------------------
  |  Branch (11120:3): [True: 1.80k, False: 292M]
  ------------------
11121|  1.80k|#line 3323 "MachineIndependent/glslang.y"
11122|  1.80k|                          {
11123|  1.80k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float texture", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
11124|  1.80k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.80k|#define parseContext (*pParseContext)
  ------------------
11125|  1.80k|        (yyval.interm.type).basicType = EbtSampler;
11126|  1.80k|        (yyval.interm.type).sampler.setTexture(EbtFloat16, Esd2D, true, false, true);
11127|  1.80k|    }
11128|  1.80k|#line 11129 "MachineIndependent/glslang_tab.cpp"
11129|  1.80k|    break;
11130|       |
11131|  3.97k|  case 495: /* type_specifier_nonarray: ITEXTURE2DMSARRAY  */
  ------------------
  |  Branch (11131:3): [True: 3.97k, False: 292M]
  ------------------
11132|  3.97k|#line 3329 "MachineIndependent/glslang.y"
11133|  3.97k|                        {
11134|  3.97k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.97k|#define parseContext (*pParseContext)
  ------------------
11135|  3.97k|        (yyval.interm.type).basicType = EbtSampler;
11136|  3.97k|        (yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, true, false, true);
11137|  3.97k|    }
11138|  3.97k|#line 11139 "MachineIndependent/glslang_tab.cpp"
11139|  3.97k|    break;
11140|       |
11141|  3.97k|  case 496: /* type_specifier_nonarray: UTEXTURE2DMSARRAY  */
  ------------------
  |  Branch (11141:3): [True: 3.97k, False: 292M]
  ------------------
11142|  3.97k|#line 3334 "MachineIndependent/glslang.y"
11143|  3.97k|                        {
11144|  3.97k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  3.97k|#define parseContext (*pParseContext)
  ------------------
11145|  3.97k|        (yyval.interm.type).basicType = EbtSampler;
11146|  3.97k|        (yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, true, false, true);
11147|  3.97k|    }
11148|  3.97k|#line 11149 "MachineIndependent/glslang_tab.cpp"
11149|  3.97k|    break;
11150|       |
11151|  11.0k|  case 497: /* type_specifier_nonarray: IMAGE1D  */
  ------------------
  |  Branch (11151:3): [True: 11.0k, False: 292M]
  ------------------
11152|  11.0k|#line 3339 "MachineIndependent/glslang.y"
11153|  11.0k|              {
11154|  11.0k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.0k|#define parseContext (*pParseContext)
  ------------------
11155|  11.0k|        (yyval.interm.type).basicType = EbtSampler;
11156|  11.0k|        (yyval.interm.type).sampler.setImage(EbtFloat, Esd1D);
11157|  11.0k|    }
11158|  11.0k|#line 11159 "MachineIndependent/glslang_tab.cpp"
11159|  11.0k|    break;
11160|       |
11161|  6.92k|  case 498: /* type_specifier_nonarray: F16IMAGE1D  */
  ------------------
  |  Branch (11161:3): [True: 6.92k, False: 292M]
  ------------------
11162|  6.92k|#line 3344 "MachineIndependent/glslang.y"
11163|  6.92k|                 {
11164|  6.92k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11165|  6.92k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11166|  6.92k|        (yyval.interm.type).basicType = EbtSampler;
11167|  6.92k|        (yyval.interm.type).sampler.setImage(EbtFloat16, Esd1D);
11168|  6.92k|    }
11169|  6.92k|#line 11170 "MachineIndependent/glslang_tab.cpp"
11170|  6.92k|    break;
11171|       |
11172|  26.5k|  case 499: /* type_specifier_nonarray: IIMAGE1D  */
  ------------------
  |  Branch (11172:3): [True: 26.5k, False: 292M]
  ------------------
11173|  26.5k|#line 3350 "MachineIndependent/glslang.y"
11174|  26.5k|               {
11175|  26.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
11176|  26.5k|        (yyval.interm.type).basicType = EbtSampler;
11177|  26.5k|        (yyval.interm.type).sampler.setImage(EbtInt, Esd1D);
11178|  26.5k|    }
11179|  26.5k|#line 11180 "MachineIndependent/glslang_tab.cpp"
11180|  26.5k|    break;
11181|       |
11182|  26.5k|  case 500: /* type_specifier_nonarray: UIMAGE1D  */
  ------------------
  |  Branch (11182:3): [True: 26.5k, False: 292M]
  ------------------
11183|  26.5k|#line 3355 "MachineIndependent/glslang.y"
11184|  26.5k|               {
11185|  26.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
11186|  26.5k|        (yyval.interm.type).basicType = EbtSampler;
11187|  26.5k|        (yyval.interm.type).sampler.setImage(EbtUint, Esd1D);
11188|  26.5k|    }
11189|  26.5k|#line 11190 "MachineIndependent/glslang_tab.cpp"
11190|  26.5k|    break;
11191|       |
11192|  13.3k|  case 501: /* type_specifier_nonarray: IMAGE2D  */
  ------------------
  |  Branch (11192:3): [True: 13.3k, False: 292M]
  ------------------
11193|  13.3k|#line 3360 "MachineIndependent/glslang.y"
11194|  13.3k|              {
11195|  13.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  13.3k|#define parseContext (*pParseContext)
  ------------------
11196|  13.3k|        (yyval.interm.type).basicType = EbtSampler;
11197|  13.3k|        (yyval.interm.type).sampler.setImage(EbtFloat, Esd2D);
11198|  13.3k|    }
11199|  13.3k|#line 11200 "MachineIndependent/glslang_tab.cpp"
11200|  13.3k|    break;
11201|       |
11202|  7.52k|  case 502: /* type_specifier_nonarray: F16IMAGE2D  */
  ------------------
  |  Branch (11202:3): [True: 7.52k, False: 292M]
  ------------------
11203|  7.52k|#line 3365 "MachineIndependent/glslang.y"
11204|  7.52k|                 {
11205|  7.52k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11206|  7.52k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11207|  7.52k|        (yyval.interm.type).basicType = EbtSampler;
11208|  7.52k|        (yyval.interm.type).sampler.setImage(EbtFloat16, Esd2D);
11209|  7.52k|    }
11210|  7.52k|#line 11211 "MachineIndependent/glslang_tab.cpp"
11211|  7.52k|    break;
11212|       |
11213|  33.5k|  case 503: /* type_specifier_nonarray: IIMAGE2D  */
  ------------------
  |  Branch (11213:3): [True: 33.5k, False: 292M]
  ------------------
11214|  33.5k|#line 3371 "MachineIndependent/glslang.y"
11215|  33.5k|               {
11216|  33.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.5k|#define parseContext (*pParseContext)
  ------------------
11217|  33.5k|        (yyval.interm.type).basicType = EbtSampler;
11218|  33.5k|        (yyval.interm.type).sampler.setImage(EbtInt, Esd2D);
11219|  33.5k|    }
11220|  33.5k|#line 11221 "MachineIndependent/glslang_tab.cpp"
11221|  33.5k|    break;
11222|       |
11223|  33.4k|  case 504: /* type_specifier_nonarray: UIMAGE2D  */
  ------------------
  |  Branch (11223:3): [True: 33.4k, False: 292M]
  ------------------
11224|  33.4k|#line 3376 "MachineIndependent/glslang.y"
11225|  33.4k|               {
11226|  33.4k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.4k|#define parseContext (*pParseContext)
  ------------------
11227|  33.4k|        (yyval.interm.type).basicType = EbtSampler;
11228|  33.4k|        (yyval.interm.type).sampler.setImage(EbtUint, Esd2D);
11229|  33.4k|    }
11230|  33.4k|#line 11231 "MachineIndependent/glslang_tab.cpp"
11231|  33.4k|    break;
11232|       |
11233|  12.9k|  case 505: /* type_specifier_nonarray: IMAGE3D  */
  ------------------
  |  Branch (11233:3): [True: 12.9k, False: 292M]
  ------------------
11234|  12.9k|#line 3381 "MachineIndependent/glslang.y"
11235|  12.9k|              {
11236|  12.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.9k|#define parseContext (*pParseContext)
  ------------------
11237|  12.9k|        (yyval.interm.type).basicType = EbtSampler;
11238|  12.9k|        (yyval.interm.type).sampler.setImage(EbtFloat, Esd3D);
11239|  12.9k|    }
11240|  12.9k|#line 11241 "MachineIndependent/glslang_tab.cpp"
11241|  12.9k|    break;
11242|       |
11243|  7.52k|  case 506: /* type_specifier_nonarray: F16IMAGE3D  */
  ------------------
  |  Branch (11243:3): [True: 7.52k, False: 292M]
  ------------------
11244|  7.52k|#line 3386 "MachineIndependent/glslang.y"
11245|  7.52k|                 {
11246|  7.52k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11247|  7.52k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11248|  7.52k|        (yyval.interm.type).basicType = EbtSampler;
11249|  7.52k|        (yyval.interm.type).sampler.setImage(EbtFloat16, Esd3D);
11250|  7.52k|    }
11251|  7.52k|#line 11252 "MachineIndependent/glslang_tab.cpp"
11252|  7.52k|    break;
11253|       |
11254|  33.3k|  case 507: /* type_specifier_nonarray: IIMAGE3D  */
  ------------------
  |  Branch (11254:3): [True: 33.3k, False: 292M]
  ------------------
11255|  33.3k|#line 3392 "MachineIndependent/glslang.y"
11256|  33.3k|               {
11257|  33.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.3k|#define parseContext (*pParseContext)
  ------------------
11258|  33.3k|        (yyval.interm.type).basicType = EbtSampler;
11259|  33.3k|        (yyval.interm.type).sampler.setImage(EbtInt, Esd3D);
11260|  33.3k|    }
11261|  33.3k|#line 11262 "MachineIndependent/glslang_tab.cpp"
11262|  33.3k|    break;
11263|       |
11264|  33.3k|  case 508: /* type_specifier_nonarray: UIMAGE3D  */
  ------------------
  |  Branch (11264:3): [True: 33.3k, False: 292M]
  ------------------
11265|  33.3k|#line 3397 "MachineIndependent/glslang.y"
11266|  33.3k|               {
11267|  33.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.3k|#define parseContext (*pParseContext)
  ------------------
11268|  33.3k|        (yyval.interm.type).basicType = EbtSampler;
11269|  33.3k|        (yyval.interm.type).sampler.setImage(EbtUint, Esd3D);
11270|  33.3k|    }
11271|  33.3k|#line 11272 "MachineIndependent/glslang_tab.cpp"
11272|  33.3k|    break;
11273|       |
11274|      5|  case 509: /* type_specifier_nonarray: IMAGE2DRECT  */
  ------------------
  |  Branch (11274:3): [True: 5, False: 292M]
  ------------------
11275|      5|#line 3402 "MachineIndependent/glslang.y"
11276|      5|                  {
11277|      5|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      5|#define parseContext (*pParseContext)
  ------------------
11278|      5|        (yyval.interm.type).basicType = EbtSampler;
11279|      5|        (yyval.interm.type).sampler.setImage(EbtFloat, EsdRect);
11280|      5|    }
11281|      5|#line 11282 "MachineIndependent/glslang_tab.cpp"
11282|      5|    break;
11283|       |
11284|      0|  case 510: /* type_specifier_nonarray: F16IMAGE2DRECT  */
  ------------------
  |  Branch (11284:3): [True: 0, False: 292M]
  ------------------
11285|      0|#line 3407 "MachineIndependent/glslang.y"
11286|      0|                     {
11287|      0|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11288|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11289|      0|        (yyval.interm.type).basicType = EbtSampler;
11290|      0|        (yyval.interm.type).sampler.setImage(EbtFloat16, EsdRect);
11291|      0|    }
11292|      0|#line 11293 "MachineIndependent/glslang_tab.cpp"
11293|      0|    break;
11294|       |
11295|      0|  case 511: /* type_specifier_nonarray: IIMAGE2DRECT  */
  ------------------
  |  Branch (11295:3): [True: 0, False: 292M]
  ------------------
11296|      0|#line 3413 "MachineIndependent/glslang.y"
11297|      0|                   {
11298|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11299|      0|        (yyval.interm.type).basicType = EbtSampler;
11300|      0|        (yyval.interm.type).sampler.setImage(EbtInt, EsdRect);
11301|      0|    }
11302|      0|#line 11303 "MachineIndependent/glslang_tab.cpp"
11303|      0|    break;
11304|       |
11305|      0|  case 512: /* type_specifier_nonarray: UIMAGE2DRECT  */
  ------------------
  |  Branch (11305:3): [True: 0, False: 292M]
  ------------------
11306|      0|#line 3418 "MachineIndependent/glslang.y"
11307|      0|                   {
11308|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11309|      0|        (yyval.interm.type).basicType = EbtSampler;
11310|      0|        (yyval.interm.type).sampler.setImage(EbtUint, EsdRect);
11311|      0|    }
11312|      0|#line 11313 "MachineIndependent/glslang_tab.cpp"
11313|      0|    break;
11314|       |
11315|  12.9k|  case 513: /* type_specifier_nonarray: IMAGECUBE  */
  ------------------
  |  Branch (11315:3): [True: 12.9k, False: 292M]
  ------------------
11316|  12.9k|#line 3423 "MachineIndependent/glslang.y"
11317|  12.9k|                {
11318|  12.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.9k|#define parseContext (*pParseContext)
  ------------------
11319|  12.9k|        (yyval.interm.type).basicType = EbtSampler;
11320|  12.9k|        (yyval.interm.type).sampler.setImage(EbtFloat, EsdCube);
11321|  12.9k|    }
11322|  12.9k|#line 11323 "MachineIndependent/glslang_tab.cpp"
11323|  12.9k|    break;
11324|       |
11325|  7.52k|  case 514: /* type_specifier_nonarray: F16IMAGECUBE  */
  ------------------
  |  Branch (11325:3): [True: 7.52k, False: 292M]
  ------------------
11326|  7.52k|#line 3428 "MachineIndependent/glslang.y"
11327|  7.52k|                   {
11328|  7.52k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11329|  7.52k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11330|  7.52k|        (yyval.interm.type).basicType = EbtSampler;
11331|  7.52k|        (yyval.interm.type).sampler.setImage(EbtFloat16, EsdCube);
11332|  7.52k|    }
11333|  7.52k|#line 11334 "MachineIndependent/glslang_tab.cpp"
11334|  7.52k|    break;
11335|       |
11336|  33.3k|  case 515: /* type_specifier_nonarray: IIMAGECUBE  */
  ------------------
  |  Branch (11336:3): [True: 33.3k, False: 292M]
  ------------------
11337|  33.3k|#line 3434 "MachineIndependent/glslang.y"
11338|  33.3k|                 {
11339|  33.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.3k|#define parseContext (*pParseContext)
  ------------------
11340|  33.3k|        (yyval.interm.type).basicType = EbtSampler;
11341|  33.3k|        (yyval.interm.type).sampler.setImage(EbtInt, EsdCube);
11342|  33.3k|    }
11343|  33.3k|#line 11344 "MachineIndependent/glslang_tab.cpp"
11344|  33.3k|    break;
11345|       |
11346|  33.3k|  case 516: /* type_specifier_nonarray: UIMAGECUBE  */
  ------------------
  |  Branch (11346:3): [True: 33.3k, False: 292M]
  ------------------
11347|  33.3k|#line 3439 "MachineIndependent/glslang.y"
11348|  33.3k|                 {
11349|  33.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.3k|#define parseContext (*pParseContext)
  ------------------
11350|  33.3k|        (yyval.interm.type).basicType = EbtSampler;
11351|  33.3k|        (yyval.interm.type).sampler.setImage(EbtUint, EsdCube);
11352|  33.3k|    }
11353|  33.3k|#line 11354 "MachineIndependent/glslang_tab.cpp"
11354|  33.3k|    break;
11355|       |
11356|  11.5k|  case 517: /* type_specifier_nonarray: IMAGEBUFFER  */
  ------------------
  |  Branch (11356:3): [True: 11.5k, False: 292M]
  ------------------
11357|  11.5k|#line 3444 "MachineIndependent/glslang.y"
11358|  11.5k|                  {
11359|  11.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.5k|#define parseContext (*pParseContext)
  ------------------
11360|  11.5k|        (yyval.interm.type).basicType = EbtSampler;
11361|  11.5k|        (yyval.interm.type).sampler.setImage(EbtFloat, EsdBuffer);
11362|  11.5k|    }
11363|  11.5k|#line 11364 "MachineIndependent/glslang_tab.cpp"
11364|  11.5k|    break;
11365|       |
11366|  6.32k|  case 518: /* type_specifier_nonarray: F16IMAGEBUFFER  */
  ------------------
  |  Branch (11366:3): [True: 6.32k, False: 292M]
  ------------------
11367|  6.32k|#line 3449 "MachineIndependent/glslang.y"
11368|  6.32k|                     {
11369|  6.32k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.32k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.32k|#define parseContext (*pParseContext)
  ------------------
11370|  6.32k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.32k|#define parseContext (*pParseContext)
  ------------------
11371|  6.32k|        (yyval.interm.type).basicType = EbtSampler;
11372|  6.32k|        (yyval.interm.type).sampler.setImage(EbtFloat16, EsdBuffer);
11373|  6.32k|    }
11374|  6.32k|#line 11375 "MachineIndependent/glslang_tab.cpp"
11375|  6.32k|    break;
11376|       |
11377|  32.1k|  case 519: /* type_specifier_nonarray: IIMAGEBUFFER  */
  ------------------
  |  Branch (11377:3): [True: 32.1k, False: 292M]
  ------------------
11378|  32.1k|#line 3455 "MachineIndependent/glslang.y"
11379|  32.1k|                   {
11380|  32.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  32.1k|#define parseContext (*pParseContext)
  ------------------
11381|  32.1k|        (yyval.interm.type).basicType = EbtSampler;
11382|  32.1k|        (yyval.interm.type).sampler.setImage(EbtInt, EsdBuffer);
11383|  32.1k|    }
11384|  32.1k|#line 11385 "MachineIndependent/glslang_tab.cpp"
11385|  32.1k|    break;
11386|       |
11387|  32.1k|  case 520: /* type_specifier_nonarray: UIMAGEBUFFER  */
  ------------------
  |  Branch (11387:3): [True: 32.1k, False: 292M]
  ------------------
11388|  32.1k|#line 3460 "MachineIndependent/glslang.y"
11389|  32.1k|                   {
11390|  32.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  32.1k|#define parseContext (*pParseContext)
  ------------------
11391|  32.1k|        (yyval.interm.type).basicType = EbtSampler;
11392|  32.1k|        (yyval.interm.type).sampler.setImage(EbtUint, EsdBuffer);
11393|  32.1k|    }
11394|  32.1k|#line 11395 "MachineIndependent/glslang_tab.cpp"
11395|  32.1k|    break;
11396|       |
11397|  11.0k|  case 521: /* type_specifier_nonarray: IMAGE1DARRAY  */
  ------------------
  |  Branch (11397:3): [True: 11.0k, False: 292M]
  ------------------
11398|  11.0k|#line 3465 "MachineIndependent/glslang.y"
11399|  11.0k|                   {
11400|  11.0k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.0k|#define parseContext (*pParseContext)
  ------------------
11401|  11.0k|        (yyval.interm.type).basicType = EbtSampler;
11402|  11.0k|        (yyval.interm.type).sampler.setImage(EbtFloat, Esd1D, true);
11403|  11.0k|    }
11404|  11.0k|#line 11405 "MachineIndependent/glslang_tab.cpp"
11405|  11.0k|    break;
11406|       |
11407|  6.92k|  case 522: /* type_specifier_nonarray: F16IMAGE1DARRAY  */
  ------------------
  |  Branch (11407:3): [True: 6.92k, False: 292M]
  ------------------
11408|  6.92k|#line 3470 "MachineIndependent/glslang.y"
11409|  6.92k|                      {
11410|  6.92k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11411|  6.92k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11412|  6.92k|        (yyval.interm.type).basicType = EbtSampler;
11413|  6.92k|        (yyval.interm.type).sampler.setImage(EbtFloat16, Esd1D, true);
11414|  6.92k|    }
11415|  6.92k|#line 11416 "MachineIndependent/glslang_tab.cpp"
11416|  6.92k|    break;
11417|       |
11418|  26.5k|  case 523: /* type_specifier_nonarray: IIMAGE1DARRAY  */
  ------------------
  |  Branch (11418:3): [True: 26.5k, False: 292M]
  ------------------
11419|  26.5k|#line 3476 "MachineIndependent/glslang.y"
11420|  26.5k|                    {
11421|  26.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
11422|  26.5k|        (yyval.interm.type).basicType = EbtSampler;
11423|  26.5k|        (yyval.interm.type).sampler.setImage(EbtInt, Esd1D, true);
11424|  26.5k|    }
11425|  26.5k|#line 11426 "MachineIndependent/glslang_tab.cpp"
11426|  26.5k|    break;
11427|       |
11428|  26.5k|  case 524: /* type_specifier_nonarray: UIMAGE1DARRAY  */
  ------------------
  |  Branch (11428:3): [True: 26.5k, False: 292M]
  ------------------
11429|  26.5k|#line 3481 "MachineIndependent/glslang.y"
11430|  26.5k|                    {
11431|  26.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.5k|#define parseContext (*pParseContext)
  ------------------
11432|  26.5k|        (yyval.interm.type).basicType = EbtSampler;
11433|  26.5k|        (yyval.interm.type).sampler.setImage(EbtUint, Esd1D, true);
11434|  26.5k|    }
11435|  26.5k|#line 11436 "MachineIndependent/glslang_tab.cpp"
11436|  26.5k|    break;
11437|       |
11438|  12.9k|  case 525: /* type_specifier_nonarray: IMAGE2DARRAY  */
  ------------------
  |  Branch (11438:3): [True: 12.9k, False: 292M]
  ------------------
11439|  12.9k|#line 3486 "MachineIndependent/glslang.y"
11440|  12.9k|                   {
11441|  12.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.9k|#define parseContext (*pParseContext)
  ------------------
11442|  12.9k|        (yyval.interm.type).basicType = EbtSampler;
11443|  12.9k|        (yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, true);
11444|  12.9k|    }
11445|  12.9k|#line 11446 "MachineIndependent/glslang_tab.cpp"
11446|  12.9k|    break;
11447|       |
11448|  7.52k|  case 526: /* type_specifier_nonarray: F16IMAGE2DARRAY  */
  ------------------
  |  Branch (11448:3): [True: 7.52k, False: 292M]
  ------------------
11449|  7.52k|#line 3491 "MachineIndependent/glslang.y"
11450|  7.52k|                      {
11451|  7.52k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11452|  7.52k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11453|  7.52k|        (yyval.interm.type).basicType = EbtSampler;
11454|  7.52k|        (yyval.interm.type).sampler.setImage(EbtFloat16, Esd2D, true);
11455|  7.52k|    }
11456|  7.52k|#line 11457 "MachineIndependent/glslang_tab.cpp"
11457|  7.52k|    break;
11458|       |
11459|  33.3k|  case 527: /* type_specifier_nonarray: IIMAGE2DARRAY  */
  ------------------
  |  Branch (11459:3): [True: 33.3k, False: 292M]
  ------------------
11460|  33.3k|#line 3497 "MachineIndependent/glslang.y"
11461|  33.3k|                    {
11462|  33.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.3k|#define parseContext (*pParseContext)
  ------------------
11463|  33.3k|        (yyval.interm.type).basicType = EbtSampler;
11464|  33.3k|        (yyval.interm.type).sampler.setImage(EbtInt, Esd2D, true);
11465|  33.3k|    }
11466|  33.3k|#line 11467 "MachineIndependent/glslang_tab.cpp"
11467|  33.3k|    break;
11468|       |
11469|  33.3k|  case 528: /* type_specifier_nonarray: UIMAGE2DARRAY  */
  ------------------
  |  Branch (11469:3): [True: 33.3k, False: 292M]
  ------------------
11470|  33.3k|#line 3502 "MachineIndependent/glslang.y"
11471|  33.3k|                    {
11472|  33.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.3k|#define parseContext (*pParseContext)
  ------------------
11473|  33.3k|        (yyval.interm.type).basicType = EbtSampler;
11474|  33.3k|        (yyval.interm.type).sampler.setImage(EbtUint, Esd2D, true);
11475|  33.3k|    }
11476|  33.3k|#line 11477 "MachineIndependent/glslang_tab.cpp"
11477|  33.3k|    break;
11478|       |
11479|  12.9k|  case 529: /* type_specifier_nonarray: IMAGECUBEARRAY  */
  ------------------
  |  Branch (11479:3): [True: 12.9k, False: 292M]
  ------------------
11480|  12.9k|#line 3507 "MachineIndependent/glslang.y"
11481|  12.9k|                     {
11482|  12.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.9k|#define parseContext (*pParseContext)
  ------------------
11483|  12.9k|        (yyval.interm.type).basicType = EbtSampler;
11484|  12.9k|        (yyval.interm.type).sampler.setImage(EbtFloat, EsdCube, true);
11485|  12.9k|    }
11486|  12.9k|#line 11487 "MachineIndependent/glslang_tab.cpp"
11487|  12.9k|    break;
11488|       |
11489|  7.52k|  case 530: /* type_specifier_nonarray: F16IMAGECUBEARRAY  */
  ------------------
  |  Branch (11489:3): [True: 7.52k, False: 292M]
  ------------------
11490|  7.52k|#line 3512 "MachineIndependent/glslang.y"
11491|  7.52k|                        {
11492|  7.52k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11493|  7.52k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  7.52k|#define parseContext (*pParseContext)
  ------------------
11494|  7.52k|        (yyval.interm.type).basicType = EbtSampler;
11495|  7.52k|        (yyval.interm.type).sampler.setImage(EbtFloat16, EsdCube, true);
11496|  7.52k|    }
11497|  7.52k|#line 11498 "MachineIndependent/glslang_tab.cpp"
11498|  7.52k|    break;
11499|       |
11500|  33.5k|  case 531: /* type_specifier_nonarray: IIMAGECUBEARRAY  */
  ------------------
  |  Branch (11500:3): [True: 33.5k, False: 292M]
  ------------------
11501|  33.5k|#line 3518 "MachineIndependent/glslang.y"
11502|  33.5k|                      {
11503|  33.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.5k|#define parseContext (*pParseContext)
  ------------------
11504|  33.5k|        (yyval.interm.type).basicType = EbtSampler;
11505|  33.5k|        (yyval.interm.type).sampler.setImage(EbtInt, EsdCube, true);
11506|  33.5k|    }
11507|  33.5k|#line 11508 "MachineIndependent/glslang_tab.cpp"
11508|  33.5k|    break;
11509|       |
11510|  33.5k|  case 532: /* type_specifier_nonarray: UIMAGECUBEARRAY  */
  ------------------
  |  Branch (11510:3): [True: 33.5k, False: 292M]
  ------------------
11511|  33.5k|#line 3523 "MachineIndependent/glslang.y"
11512|  33.5k|                      {
11513|  33.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.5k|#define parseContext (*pParseContext)
  ------------------
11514|  33.5k|        (yyval.interm.type).basicType = EbtSampler;
11515|  33.5k|        (yyval.interm.type).sampler.setImage(EbtUint, EsdCube, true);
11516|  33.5k|    }
11517|  33.5k|#line 11518 "MachineIndependent/glslang_tab.cpp"
11518|  33.5k|    break;
11519|       |
11520|  11.2k|  case 533: /* type_specifier_nonarray: IMAGE2DMS  */
  ------------------
  |  Branch (11520:3): [True: 11.2k, False: 292M]
  ------------------
11521|  11.2k|#line 3528 "MachineIndependent/glslang.y"
11522|  11.2k|                {
11523|  11.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.2k|#define parseContext (*pParseContext)
  ------------------
11524|  11.2k|        (yyval.interm.type).basicType = EbtSampler;
11525|  11.2k|        (yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, false, false, true);
11526|  11.2k|    }
11527|  11.2k|#line 11528 "MachineIndependent/glslang_tab.cpp"
11528|  11.2k|    break;
11529|       |
11530|  6.92k|  case 534: /* type_specifier_nonarray: F16IMAGE2DMS  */
  ------------------
  |  Branch (11530:3): [True: 6.92k, False: 292M]
  ------------------
11531|  6.92k|#line 3533 "MachineIndependent/glslang.y"
11532|  6.92k|                   {
11533|  6.92k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11534|  6.92k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11535|  6.92k|        (yyval.interm.type).basicType = EbtSampler;
11536|  6.92k|        (yyval.interm.type).sampler.setImage(EbtFloat16, Esd2D, false, false, true);
11537|  6.92k|    }
11538|  6.92k|#line 11539 "MachineIndependent/glslang_tab.cpp"
11539|  6.92k|    break;
11540|       |
11541|  26.8k|  case 535: /* type_specifier_nonarray: IIMAGE2DMS  */
  ------------------
  |  Branch (11541:3): [True: 26.8k, False: 292M]
  ------------------
11542|  26.8k|#line 3539 "MachineIndependent/glslang.y"
11543|  26.8k|                 {
11544|  26.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.8k|#define parseContext (*pParseContext)
  ------------------
11545|  26.8k|        (yyval.interm.type).basicType = EbtSampler;
11546|  26.8k|        (yyval.interm.type).sampler.setImage(EbtInt, Esd2D, false, false, true);
11547|  26.8k|    }
11548|  26.8k|#line 11549 "MachineIndependent/glslang_tab.cpp"
11549|  26.8k|    break;
11550|       |
11551|  26.8k|  case 536: /* type_specifier_nonarray: UIMAGE2DMS  */
  ------------------
  |  Branch (11551:3): [True: 26.8k, False: 292M]
  ------------------
11552|  26.8k|#line 3544 "MachineIndependent/glslang.y"
11553|  26.8k|                 {
11554|  26.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.8k|#define parseContext (*pParseContext)
  ------------------
11555|  26.8k|        (yyval.interm.type).basicType = EbtSampler;
11556|  26.8k|        (yyval.interm.type).sampler.setImage(EbtUint, Esd2D, false, false, true);
11557|  26.8k|    }
11558|  26.8k|#line 11559 "MachineIndependent/glslang_tab.cpp"
11559|  26.8k|    break;
11560|       |
11561|  11.2k|  case 537: /* type_specifier_nonarray: IMAGE2DMSARRAY  */
  ------------------
  |  Branch (11561:3): [True: 11.2k, False: 292M]
  ------------------
11562|  11.2k|#line 3549 "MachineIndependent/glslang.y"
11563|  11.2k|                     {
11564|  11.2k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.2k|#define parseContext (*pParseContext)
  ------------------
11565|  11.2k|        (yyval.interm.type).basicType = EbtSampler;
11566|  11.2k|        (yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, true, false, true);
11567|  11.2k|    }
11568|  11.2k|#line 11569 "MachineIndependent/glslang_tab.cpp"
11569|  11.2k|    break;
11570|       |
11571|  6.92k|  case 538: /* type_specifier_nonarray: F16IMAGE2DMSARRAY  */
  ------------------
  |  Branch (11571:3): [True: 6.92k, False: 292M]
  ------------------
11572|  6.92k|#line 3554 "MachineIndependent/glslang.y"
11573|  6.92k|                        {
11574|  6.92k|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float image", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11575|  6.92k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.92k|#define parseContext (*pParseContext)
  ------------------
11576|  6.92k|        (yyval.interm.type).basicType = EbtSampler;
11577|  6.92k|        (yyval.interm.type).sampler.setImage(EbtFloat16, Esd2D, true, false, true);
11578|  6.92k|    }
11579|  6.92k|#line 11580 "MachineIndependent/glslang_tab.cpp"
11580|  6.92k|    break;
11581|       |
11582|  26.8k|  case 539: /* type_specifier_nonarray: IIMAGE2DMSARRAY  */
  ------------------
  |  Branch (11582:3): [True: 26.8k, False: 292M]
  ------------------
11583|  26.8k|#line 3560 "MachineIndependent/glslang.y"
11584|  26.8k|                      {
11585|  26.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.8k|#define parseContext (*pParseContext)
  ------------------
11586|  26.8k|        (yyval.interm.type).basicType = EbtSampler;
11587|  26.8k|        (yyval.interm.type).sampler.setImage(EbtInt, Esd2D, true, false, true);
11588|  26.8k|    }
11589|  26.8k|#line 11590 "MachineIndependent/glslang_tab.cpp"
11590|  26.8k|    break;
11591|       |
11592|  26.8k|  case 540: /* type_specifier_nonarray: UIMAGE2DMSARRAY  */
  ------------------
  |  Branch (11592:3): [True: 26.8k, False: 292M]
  ------------------
11593|  26.8k|#line 3565 "MachineIndependent/glslang.y"
11594|  26.8k|                      {
11595|  26.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  26.8k|#define parseContext (*pParseContext)
  ------------------
11596|  26.8k|        (yyval.interm.type).basicType = EbtSampler;
11597|  26.8k|        (yyval.interm.type).sampler.setImage(EbtUint, Esd2D, true, false, true);
11598|  26.8k|    }
11599|  26.8k|#line 11600 "MachineIndependent/glslang_tab.cpp"
11600|  26.8k|    break;
11601|       |
11602|  11.9k|  case 541: /* type_specifier_nonarray: I64IMAGE1D  */
  ------------------
  |  Branch (11602:3): [True: 11.9k, False: 292M]
  ------------------
11603|  11.9k|#line 3570 "MachineIndependent/glslang.y"
11604|  11.9k|                 {
11605|  11.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.9k|#define parseContext (*pParseContext)
  ------------------
11606|  11.9k|        (yyval.interm.type).basicType = EbtSampler;
11607|  11.9k|        (yyval.interm.type).sampler.setImage(EbtInt64, Esd1D);
11608|  11.9k|    }
11609|  11.9k|#line 11610 "MachineIndependent/glslang_tab.cpp"
11610|  11.9k|    break;
11611|       |
11612|  11.8k|  case 542: /* type_specifier_nonarray: U64IMAGE1D  */
  ------------------
  |  Branch (11612:3): [True: 11.8k, False: 292M]
  ------------------
11613|  11.8k|#line 3575 "MachineIndependent/glslang.y"
11614|  11.8k|                 {
11615|  11.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.8k|#define parseContext (*pParseContext)
  ------------------
11616|  11.8k|        (yyval.interm.type).basicType = EbtSampler;
11617|  11.8k|        (yyval.interm.type).sampler.setImage(EbtUint64, Esd1D);
11618|  11.8k|    }
11619|  11.8k|#line 11620 "MachineIndependent/glslang_tab.cpp"
11620|  11.8k|    break;
11621|       |
11622|  18.6k|  case 543: /* type_specifier_nonarray: I64IMAGE2D  */
  ------------------
  |  Branch (11622:3): [True: 18.6k, False: 292M]
  ------------------
11623|  18.6k|#line 3580 "MachineIndependent/glslang.y"
11624|  18.6k|                 {
11625|  18.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.6k|#define parseContext (*pParseContext)
  ------------------
11626|  18.6k|        (yyval.interm.type).basicType = EbtSampler;
11627|  18.6k|        (yyval.interm.type).sampler.setImage(EbtInt64, Esd2D);
11628|  18.6k|    }
11629|  18.6k|#line 11630 "MachineIndependent/glslang_tab.cpp"
11630|  18.6k|    break;
11631|       |
11632|  18.7k|  case 544: /* type_specifier_nonarray: U64IMAGE2D  */
  ------------------
  |  Branch (11632:3): [True: 18.7k, False: 292M]
  ------------------
11633|  18.7k|#line 3585 "MachineIndependent/glslang.y"
11634|  18.7k|                 {
11635|  18.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.7k|#define parseContext (*pParseContext)
  ------------------
11636|  18.7k|        (yyval.interm.type).basicType = EbtSampler;
11637|  18.7k|        (yyval.interm.type).sampler.setImage(EbtUint64, Esd2D);
11638|  18.7k|    }
11639|  18.7k|#line 11640 "MachineIndependent/glslang_tab.cpp"
11640|  18.7k|    break;
11641|       |
11642|  18.7k|  case 545: /* type_specifier_nonarray: I64IMAGE3D  */
  ------------------
  |  Branch (11642:3): [True: 18.7k, False: 292M]
  ------------------
11643|  18.7k|#line 3590 "MachineIndependent/glslang.y"
11644|  18.7k|                 {
11645|  18.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.7k|#define parseContext (*pParseContext)
  ------------------
11646|  18.7k|        (yyval.interm.type).basicType = EbtSampler;
11647|  18.7k|        (yyval.interm.type).sampler.setImage(EbtInt64, Esd3D);
11648|  18.7k|    }
11649|  18.7k|#line 11650 "MachineIndependent/glslang_tab.cpp"
11650|  18.7k|    break;
11651|       |
11652|  18.6k|  case 546: /* type_specifier_nonarray: U64IMAGE3D  */
  ------------------
  |  Branch (11652:3): [True: 18.6k, False: 292M]
  ------------------
11653|  18.6k|#line 3595 "MachineIndependent/glslang.y"
11654|  18.6k|                 {
11655|  18.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.6k|#define parseContext (*pParseContext)
  ------------------
11656|  18.6k|        (yyval.interm.type).basicType = EbtSampler;
11657|  18.6k|        (yyval.interm.type).sampler.setImage(EbtUint64, Esd3D);
11658|  18.6k|    }
11659|  18.6k|#line 11660 "MachineIndependent/glslang_tab.cpp"
11660|  18.6k|    break;
11661|       |
11662|      0|  case 547: /* type_specifier_nonarray: I64IMAGE2DRECT  */
  ------------------
  |  Branch (11662:3): [True: 0, False: 292M]
  ------------------
11663|      0|#line 3600 "MachineIndependent/glslang.y"
11664|      0|                     {
11665|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11666|      0|        (yyval.interm.type).basicType = EbtSampler;
11667|      0|        (yyval.interm.type).sampler.setImage(EbtInt64, EsdRect);
11668|      0|    }
11669|      0|#line 11670 "MachineIndependent/glslang_tab.cpp"
11670|      0|    break;
11671|       |
11672|      0|  case 548: /* type_specifier_nonarray: U64IMAGE2DRECT  */
  ------------------
  |  Branch (11672:3): [True: 0, False: 292M]
  ------------------
11673|      0|#line 3605 "MachineIndependent/glslang.y"
11674|      0|                     {
11675|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11676|      0|        (yyval.interm.type).basicType = EbtSampler;
11677|      0|        (yyval.interm.type).sampler.setImage(EbtUint64, EsdRect);
11678|      0|    }
11679|      0|#line 11680 "MachineIndependent/glslang_tab.cpp"
11680|      0|    break;
11681|       |
11682|  18.6k|  case 549: /* type_specifier_nonarray: I64IMAGECUBE  */
  ------------------
  |  Branch (11682:3): [True: 18.6k, False: 292M]
  ------------------
11683|  18.6k|#line 3610 "MachineIndependent/glslang.y"
11684|  18.6k|                   {
11685|  18.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.6k|#define parseContext (*pParseContext)
  ------------------
11686|  18.6k|        (yyval.interm.type).basicType = EbtSampler;
11687|  18.6k|        (yyval.interm.type).sampler.setImage(EbtInt64, EsdCube);
11688|  18.6k|    }
11689|  18.6k|#line 11690 "MachineIndependent/glslang_tab.cpp"
11690|  18.6k|    break;
11691|       |
11692|  18.7k|  case 550: /* type_specifier_nonarray: U64IMAGECUBE  */
  ------------------
  |  Branch (11692:3): [True: 18.7k, False: 292M]
  ------------------
11693|  18.7k|#line 3615 "MachineIndependent/glslang.y"
11694|  18.7k|                   {
11695|  18.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.7k|#define parseContext (*pParseContext)
  ------------------
11696|  18.7k|        (yyval.interm.type).basicType = EbtSampler;
11697|  18.7k|        (yyval.interm.type).sampler.setImage(EbtUint64, EsdCube);
11698|  18.7k|    }
11699|  18.7k|#line 11700 "MachineIndependent/glslang_tab.cpp"
11700|  18.7k|    break;
11701|       |
11702|  17.5k|  case 551: /* type_specifier_nonarray: I64IMAGEBUFFER  */
  ------------------
  |  Branch (11702:3): [True: 17.5k, False: 292M]
  ------------------
11703|  17.5k|#line 3620 "MachineIndependent/glslang.y"
11704|  17.5k|                     {
11705|  17.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  17.5k|#define parseContext (*pParseContext)
  ------------------
11706|  17.5k|        (yyval.interm.type).basicType = EbtSampler;
11707|  17.5k|        (yyval.interm.type).sampler.setImage(EbtInt64, EsdBuffer);
11708|  17.5k|    }
11709|  17.5k|#line 11710 "MachineIndependent/glslang_tab.cpp"
11710|  17.5k|    break;
11711|       |
11712|  17.4k|  case 552: /* type_specifier_nonarray: U64IMAGEBUFFER  */
  ------------------
  |  Branch (11712:3): [True: 17.4k, False: 292M]
  ------------------
11713|  17.4k|#line 3625 "MachineIndependent/glslang.y"
11714|  17.4k|                     {
11715|  17.4k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  17.4k|#define parseContext (*pParseContext)
  ------------------
11716|  17.4k|        (yyval.interm.type).basicType = EbtSampler;
11717|  17.4k|        (yyval.interm.type).sampler.setImage(EbtUint64, EsdBuffer);
11718|  17.4k|    }
11719|  17.4k|#line 11720 "MachineIndependent/glslang_tab.cpp"
11720|  17.4k|    break;
11721|       |
11722|  11.8k|  case 553: /* type_specifier_nonarray: I64IMAGE1DARRAY  */
  ------------------
  |  Branch (11722:3): [True: 11.8k, False: 292M]
  ------------------
11723|  11.8k|#line 3630 "MachineIndependent/glslang.y"
11724|  11.8k|                      {
11725|  11.8k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.8k|#define parseContext (*pParseContext)
  ------------------
11726|  11.8k|        (yyval.interm.type).basicType = EbtSampler;
11727|  11.8k|        (yyval.interm.type).sampler.setImage(EbtInt64, Esd1D, true);
11728|  11.8k|    }
11729|  11.8k|#line 11730 "MachineIndependent/glslang_tab.cpp"
11730|  11.8k|    break;
11731|       |
11732|  11.9k|  case 554: /* type_specifier_nonarray: U64IMAGE1DARRAY  */
  ------------------
  |  Branch (11732:3): [True: 11.9k, False: 292M]
  ------------------
11733|  11.9k|#line 3635 "MachineIndependent/glslang.y"
11734|  11.9k|                      {
11735|  11.9k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.9k|#define parseContext (*pParseContext)
  ------------------
11736|  11.9k|        (yyval.interm.type).basicType = EbtSampler;
11737|  11.9k|        (yyval.interm.type).sampler.setImage(EbtUint64, Esd1D, true);
11738|  11.9k|    }
11739|  11.9k|#line 11740 "MachineIndependent/glslang_tab.cpp"
11740|  11.9k|    break;
11741|       |
11742|  18.7k|  case 555: /* type_specifier_nonarray: I64IMAGE2DARRAY  */
  ------------------
  |  Branch (11742:3): [True: 18.7k, False: 292M]
  ------------------
11743|  18.7k|#line 3640 "MachineIndependent/glslang.y"
11744|  18.7k|                      {
11745|  18.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.7k|#define parseContext (*pParseContext)
  ------------------
11746|  18.7k|        (yyval.interm.type).basicType = EbtSampler;
11747|  18.7k|        (yyval.interm.type).sampler.setImage(EbtInt64, Esd2D, true);
11748|  18.7k|    }
11749|  18.7k|#line 11750 "MachineIndependent/glslang_tab.cpp"
11750|  18.7k|    break;
11751|       |
11752|  18.6k|  case 556: /* type_specifier_nonarray: U64IMAGE2DARRAY  */
  ------------------
  |  Branch (11752:3): [True: 18.6k, False: 292M]
  ------------------
11753|  18.6k|#line 3645 "MachineIndependent/glslang.y"
11754|  18.6k|                      {
11755|  18.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.6k|#define parseContext (*pParseContext)
  ------------------
11756|  18.6k|        (yyval.interm.type).basicType = EbtSampler;
11757|  18.6k|        (yyval.interm.type).sampler.setImage(EbtUint64, Esd2D, true);
11758|  18.6k|    }
11759|  18.6k|#line 11760 "MachineIndependent/glslang_tab.cpp"
11760|  18.6k|    break;
11761|       |
11762|  18.6k|  case 557: /* type_specifier_nonarray: I64IMAGECUBEARRAY  */
  ------------------
  |  Branch (11762:3): [True: 18.6k, False: 292M]
  ------------------
11763|  18.6k|#line 3650 "MachineIndependent/glslang.y"
11764|  18.6k|                        {
11765|  18.6k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.6k|#define parseContext (*pParseContext)
  ------------------
11766|  18.6k|        (yyval.interm.type).basicType = EbtSampler;
11767|  18.6k|        (yyval.interm.type).sampler.setImage(EbtInt64, EsdCube, true);
11768|  18.6k|    }
11769|  18.6k|#line 11770 "MachineIndependent/glslang_tab.cpp"
11770|  18.6k|    break;
11771|       |
11772|  18.7k|  case 558: /* type_specifier_nonarray: U64IMAGECUBEARRAY  */
  ------------------
  |  Branch (11772:3): [True: 18.7k, False: 292M]
  ------------------
11773|  18.7k|#line 3655 "MachineIndependent/glslang.y"
11774|  18.7k|                        {
11775|  18.7k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.7k|#define parseContext (*pParseContext)
  ------------------
11776|  18.7k|        (yyval.interm.type).basicType = EbtSampler;
11777|  18.7k|        (yyval.interm.type).sampler.setImage(EbtUint64, EsdCube, true);
11778|  18.7k|    }
11779|  18.7k|#line 11780 "MachineIndependent/glslang_tab.cpp"
11780|  18.7k|    break;
11781|       |
11782|  18.3k|  case 559: /* type_specifier_nonarray: I64IMAGE2DMS  */
  ------------------
  |  Branch (11782:3): [True: 18.3k, False: 292M]
  ------------------
11783|  18.3k|#line 3660 "MachineIndependent/glslang.y"
11784|  18.3k|                   {
11785|  18.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.3k|#define parseContext (*pParseContext)
  ------------------
11786|  18.3k|        (yyval.interm.type).basicType = EbtSampler;
11787|  18.3k|        (yyval.interm.type).sampler.setImage(EbtInt64, Esd2D, false, false, true);
11788|  18.3k|    }
11789|  18.3k|#line 11790 "MachineIndependent/glslang_tab.cpp"
11790|  18.3k|    break;
11791|       |
11792|  18.3k|  case 560: /* type_specifier_nonarray: U64IMAGE2DMS  */
  ------------------
  |  Branch (11792:3): [True: 18.3k, False: 292M]
  ------------------
11793|  18.3k|#line 3665 "MachineIndependent/glslang.y"
11794|  18.3k|                   {
11795|  18.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.3k|#define parseContext (*pParseContext)
  ------------------
11796|  18.3k|        (yyval.interm.type).basicType = EbtSampler;
11797|  18.3k|        (yyval.interm.type).sampler.setImage(EbtUint64, Esd2D, false, false, true);
11798|  18.3k|    }
11799|  18.3k|#line 11800 "MachineIndependent/glslang_tab.cpp"
11800|  18.3k|    break;
11801|       |
11802|  18.3k|  case 561: /* type_specifier_nonarray: I64IMAGE2DMSARRAY  */
  ------------------
  |  Branch (11802:3): [True: 18.3k, False: 292M]
  ------------------
11803|  18.3k|#line 3670 "MachineIndependent/glslang.y"
11804|  18.3k|                        {
11805|  18.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.3k|#define parseContext (*pParseContext)
  ------------------
11806|  18.3k|        (yyval.interm.type).basicType = EbtSampler;
11807|  18.3k|        (yyval.interm.type).sampler.setImage(EbtInt64, Esd2D, true, false, true);
11808|  18.3k|    }
11809|  18.3k|#line 11810 "MachineIndependent/glslang_tab.cpp"
11810|  18.3k|    break;
11811|       |
11812|  18.3k|  case 562: /* type_specifier_nonarray: U64IMAGE2DMSARRAY  */
  ------------------
  |  Branch (11812:3): [True: 18.3k, False: 292M]
  ------------------
11813|  18.3k|#line 3675 "MachineIndependent/glslang.y"
11814|  18.3k|                        {
11815|  18.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.3k|#define parseContext (*pParseContext)
  ------------------
11816|  18.3k|        (yyval.interm.type).basicType = EbtSampler;
11817|  18.3k|        (yyval.interm.type).sampler.setImage(EbtUint64, Esd2D, true, false, true);
11818|  18.3k|    }
11819|  18.3k|#line 11820 "MachineIndependent/glslang_tab.cpp"
11820|  18.3k|    break;
11821|       |
11822|     20|  case 563: /* type_specifier_nonarray: SAMPLEREXTERNALOES  */
  ------------------
  |  Branch (11822:3): [True: 20, False: 292M]
  ------------------
11823|     20|#line 3680 "MachineIndependent/glslang.y"
11824|     20|                         {  // GL_OES_EGL_image_external
11825|     20|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|     20|#define parseContext (*pParseContext)
  ------------------
11826|     20|        (yyval.interm.type).basicType = EbtSampler;
11827|     20|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D);
11828|     20|        (yyval.interm.type).sampler.external = true;
11829|     20|    }
11830|     20|#line 11831 "MachineIndependent/glslang_tab.cpp"
11831|     20|    break;
11832|       |
11833|      0|  case 564: /* type_specifier_nonarray: SAMPLEREXTERNAL2DY2YEXT  */
  ------------------
  |  Branch (11833:3): [True: 0, False: 292M]
  ------------------
11834|      0|#line 3686 "MachineIndependent/glslang.y"
11835|      0|                              { // GL_EXT_YUV_target
11836|      0|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
11837|      0|        (yyval.interm.type).basicType = EbtSampler;
11838|      0|        (yyval.interm.type).sampler.set(EbtFloat, Esd2D);
11839|      0|        (yyval.interm.type).sampler.yuv = true;
11840|      0|    }
11841|      0|#line 11842 "MachineIndependent/glslang_tab.cpp"
11842|      0|    break;
11843|       |
11844|  2.84k|  case 565: /* type_specifier_nonarray: ATTACHMENTEXT  */
  ------------------
  |  Branch (11844:3): [True: 2.84k, False: 292M]
  ------------------
11845|  2.84k|#line 3692 "MachineIndependent/glslang.y"
11846|  2.84k|                    {
11847|  2.84k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "attachmentEXT input");
  ------------------
  |  |  783|  2.84k|#define parseContext (*pParseContext)
  ------------------
11848|  2.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.84k|#define parseContext (*pParseContext)
  ------------------
11849|  2.84k|        (yyval.interm.type).basicType = EbtSampler;
11850|  2.84k|        (yyval.interm.type).sampler.setAttachmentEXT(EbtFloat);
11851|  2.84k|    }
11852|  2.84k|#line 11853 "MachineIndependent/glslang_tab.cpp"
11853|  2.84k|    break;
11854|       |
11855|  2.84k|  case 566: /* type_specifier_nonarray: IATTACHMENTEXT  */
  ------------------
  |  Branch (11855:3): [True: 2.84k, False: 292M]
  ------------------
11856|  2.84k|#line 3698 "MachineIndependent/glslang.y"
11857|  2.84k|                     {
11858|  2.84k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "attachmentEXT input");
  ------------------
  |  |  783|  2.84k|#define parseContext (*pParseContext)
  ------------------
11859|  2.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.84k|#define parseContext (*pParseContext)
  ------------------
11860|  2.84k|        (yyval.interm.type).basicType = EbtSampler;
11861|  2.84k|        (yyval.interm.type).sampler.setAttachmentEXT(EbtInt);
11862|  2.84k|    }
11863|  2.84k|#line 11864 "MachineIndependent/glslang_tab.cpp"
11864|  2.84k|    break;
11865|       |
11866|  2.84k|  case 567: /* type_specifier_nonarray: UATTACHMENTEXT  */
  ------------------
  |  Branch (11866:3): [True: 2.84k, False: 292M]
  ------------------
11867|  2.84k|#line 3704 "MachineIndependent/glslang.y"
11868|  2.84k|                     {
11869|  2.84k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "attachmentEXT input");
  ------------------
  |  |  783|  2.84k|#define parseContext (*pParseContext)
  ------------------
11870|  2.84k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.84k|#define parseContext (*pParseContext)
  ------------------
11871|  2.84k|        (yyval.interm.type).basicType = EbtSampler;
11872|  2.84k|        (yyval.interm.type).sampler.setAttachmentEXT(EbtUint);
11873|  2.84k|    }
11874|  2.84k|#line 11875 "MachineIndependent/glslang_tab.cpp"
11875|  2.84k|    break;
11876|       |
11877|  1.43k|  case 568: /* type_specifier_nonarray: SUBPASSINPUT  */
  ------------------
  |  Branch (11877:3): [True: 1.43k, False: 292M]
  ------------------
11878|  1.43k|#line 3710 "MachineIndependent/glslang.y"
11879|  1.43k|                   {
11880|  1.43k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|  1.43k|#define parseContext (*pParseContext)
  ------------------
11881|  1.43k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.43k|#define parseContext (*pParseContext)
  ------------------
11882|  1.43k|        (yyval.interm.type).basicType = EbtSampler;
11883|  1.43k|        (yyval.interm.type).sampler.setSubpass(EbtFloat);
11884|  1.43k|    }
11885|  1.43k|#line 11886 "MachineIndependent/glslang_tab.cpp"
11886|  1.43k|    break;
11887|       |
11888|  2.03k|  case 569: /* type_specifier_nonarray: SUBPASSINPUTMS  */
  ------------------
  |  Branch (11888:3): [True: 2.03k, False: 292M]
  ------------------
11889|  2.03k|#line 3716 "MachineIndependent/glslang.y"
11890|  2.03k|                     {
11891|  2.03k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|  2.03k|#define parseContext (*pParseContext)
  ------------------
11892|  2.03k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.03k|#define parseContext (*pParseContext)
  ------------------
11893|  2.03k|        (yyval.interm.type).basicType = EbtSampler;
11894|  2.03k|        (yyval.interm.type).sampler.setSubpass(EbtFloat, true);
11895|  2.03k|    }
11896|  2.03k|#line 11897 "MachineIndependent/glslang_tab.cpp"
11897|  2.03k|    break;
11898|       |
11899|    302|  case 570: /* type_specifier_nonarray: F16SUBPASSINPUT  */
  ------------------
  |  Branch (11899:3): [True: 302, False: 292M]
  ------------------
11900|    302|#line 3722 "MachineIndependent/glslang.y"
11901|    302|                      {
11902|    302|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float subpass input", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float subpass input", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
11903|    302|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
11904|    302|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
11905|    302|        (yyval.interm.type).basicType = EbtSampler;
11906|    302|        (yyval.interm.type).sampler.setSubpass(EbtFloat16);
11907|    302|    }
11908|    302|#line 11909 "MachineIndependent/glslang_tab.cpp"
11909|    302|    break;
11910|       |
11911|    302|  case 571: /* type_specifier_nonarray: F16SUBPASSINPUTMS  */
  ------------------
  |  Branch (11911:3): [True: 302, False: 292M]
  ------------------
11912|    302|#line 3729 "MachineIndependent/glslang.y"
11913|    302|                        {
11914|    302|        parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float subpass input", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
                      parseContext.float16OpaqueCheck((yyvsp[0].lex).loc, "half float subpass input", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
11915|    302|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
11916|    302|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|    302|#define parseContext (*pParseContext)
  ------------------
11917|    302|        (yyval.interm.type).basicType = EbtSampler;
11918|    302|        (yyval.interm.type).sampler.setSubpass(EbtFloat16, true);
11919|    302|    }
11920|    302|#line 11921 "MachineIndependent/glslang_tab.cpp"
11921|    302|    break;
11922|       |
11923|  1.42k|  case 572: /* type_specifier_nonarray: ISUBPASSINPUT  */
  ------------------
  |  Branch (11923:3): [True: 1.42k, False: 292M]
  ------------------
11924|  1.42k|#line 3736 "MachineIndependent/glslang.y"
11925|  1.42k|                    {
11926|  1.42k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|  1.42k|#define parseContext (*pParseContext)
  ------------------
11927|  1.42k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.42k|#define parseContext (*pParseContext)
  ------------------
11928|  1.42k|        (yyval.interm.type).basicType = EbtSampler;
11929|  1.42k|        (yyval.interm.type).sampler.setSubpass(EbtInt);
11930|  1.42k|    }
11931|  1.42k|#line 11932 "MachineIndependent/glslang_tab.cpp"
11932|  1.42k|    break;
11933|       |
11934|  2.02k|  case 573: /* type_specifier_nonarray: ISUBPASSINPUTMS  */
  ------------------
  |  Branch (11934:3): [True: 2.02k, False: 292M]
  ------------------
11935|  2.02k|#line 3742 "MachineIndependent/glslang.y"
11936|  2.02k|                      {
11937|  2.02k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|  2.02k|#define parseContext (*pParseContext)
  ------------------
11938|  2.02k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.02k|#define parseContext (*pParseContext)
  ------------------
11939|  2.02k|        (yyval.interm.type).basicType = EbtSampler;
11940|  2.02k|        (yyval.interm.type).sampler.setSubpass(EbtInt, true);
11941|  2.02k|    }
11942|  2.02k|#line 11943 "MachineIndependent/glslang_tab.cpp"
11943|  2.02k|    break;
11944|       |
11945|  1.42k|  case 574: /* type_specifier_nonarray: USUBPASSINPUT  */
  ------------------
  |  Branch (11945:3): [True: 1.42k, False: 292M]
  ------------------
11946|  1.42k|#line 3748 "MachineIndependent/glslang.y"
11947|  1.42k|                    {
11948|  1.42k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|  1.42k|#define parseContext (*pParseContext)
  ------------------
11949|  1.42k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.42k|#define parseContext (*pParseContext)
  ------------------
11950|  1.42k|        (yyval.interm.type).basicType = EbtSampler;
11951|  1.42k|        (yyval.interm.type).sampler.setSubpass(EbtUint);
11952|  1.42k|    }
11953|  1.42k|#line 11954 "MachineIndependent/glslang_tab.cpp"
11954|  1.42k|    break;
11955|       |
11956|  2.02k|  case 575: /* type_specifier_nonarray: USUBPASSINPUTMS  */
  ------------------
  |  Branch (11956:3): [True: 2.02k, False: 292M]
  ------------------
11957|  2.02k|#line 3754 "MachineIndependent/glslang.y"
11958|  2.02k|                      {
11959|  2.02k|        parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
  ------------------
  |  |  783|  2.02k|#define parseContext (*pParseContext)
  ------------------
11960|  2.02k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  2.02k|#define parseContext (*pParseContext)
  ------------------
11961|  2.02k|        (yyval.interm.type).basicType = EbtSampler;
11962|  2.02k|        (yyval.interm.type).sampler.setSubpass(EbtUint, true);
11963|  2.02k|    }
11964|  2.02k|#line 11965 "MachineIndependent/glslang_tab.cpp"
11965|  2.02k|    break;
11966|       |
11967|  6.32k|  case 576: /* type_specifier_nonarray: FCOOPMATNV  */
  ------------------
  |  Branch (11967:3): [True: 6.32k, False: 292M]
  ------------------
11968|  6.32k|#line 3760 "MachineIndependent/glslang.y"
11969|  6.32k|                 {
11970|  6.32k|        parseContext.fcoopmatCheckNV((yyvsp[0].lex).loc, "fcoopmatNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.32k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.fcoopmatCheckNV((yyvsp[0].lex).loc, "fcoopmatNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  6.32k|#define parseContext (*pParseContext)
  ------------------
11971|  6.32k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  6.32k|#define parseContext (*pParseContext)
  ------------------
11972|  6.32k|        (yyval.interm.type).basicType = EbtFloat;
11973|  6.32k|        (yyval.interm.type).coopmatNV = true;
11974|  6.32k|        (yyval.interm.type).coopmatKHR = false;
11975|  6.32k|    }
11976|  6.32k|#line 11977 "MachineIndependent/glslang_tab.cpp"
11977|  6.32k|    break;
11978|       |
11979|  8.42k|  case 577: /* type_specifier_nonarray: ICOOPMATNV  */
  ------------------
  |  Branch (11979:3): [True: 8.42k, False: 292M]
  ------------------
11980|  8.42k|#line 3767 "MachineIndependent/glslang.y"
11981|  8.42k|                 {
11982|  8.42k|        parseContext.intcoopmatCheckNV((yyvsp[0].lex).loc, "icoopmatNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  8.42k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.intcoopmatCheckNV((yyvsp[0].lex).loc, "icoopmatNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  8.42k|#define parseContext (*pParseContext)
  ------------------
11983|  8.42k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  8.42k|#define parseContext (*pParseContext)
  ------------------
11984|  8.42k|        (yyval.interm.type).basicType = EbtInt;
11985|  8.42k|        (yyval.interm.type).coopmatNV = true;
11986|  8.42k|        (yyval.interm.type).coopmatKHR = false;
11987|  8.42k|    }
11988|  8.42k|#line 11989 "MachineIndependent/glslang_tab.cpp"
11989|  8.42k|    break;
11990|       |
11991|  8.42k|  case 578: /* type_specifier_nonarray: UCOOPMATNV  */
  ------------------
  |  Branch (11991:3): [True: 8.42k, False: 292M]
  ------------------
11992|  8.42k|#line 3774 "MachineIndependent/glslang.y"
11993|  8.42k|                 {
11994|  8.42k|        parseContext.intcoopmatCheckNV((yyvsp[0].lex).loc, "ucoopmatNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  8.42k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.intcoopmatCheckNV((yyvsp[0].lex).loc, "ucoopmatNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  8.42k|#define parseContext (*pParseContext)
  ------------------
11995|  8.42k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  8.42k|#define parseContext (*pParseContext)
  ------------------
11996|  8.42k|        (yyval.interm.type).basicType = EbtUint;
11997|  8.42k|        (yyval.interm.type).coopmatNV = true;
11998|  8.42k|        (yyval.interm.type).coopmatKHR = false;
11999|  8.42k|    }
12000|  8.42k|#line 12001 "MachineIndependent/glslang_tab.cpp"
12001|  8.42k|    break;
12002|       |
12003|  65.3k|  case 579: /* type_specifier_nonarray: COOPMAT  */
  ------------------
  |  Branch (12003:3): [True: 65.3k, False: 292M]
  ------------------
12004|  65.3k|#line 3781 "MachineIndependent/glslang.y"
12005|  65.3k|              {
12006|  65.3k|        parseContext.coopmatCheck((yyvsp[0].lex).loc, "coopmat", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  65.3k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.coopmatCheck((yyvsp[0].lex).loc, "coopmat", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  65.3k|#define parseContext (*pParseContext)
  ------------------
12007|  65.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  65.3k|#define parseContext (*pParseContext)
  ------------------
12008|  65.3k|        (yyval.interm.type).basicType = EbtCoopmat;
12009|  65.3k|        (yyval.interm.type).coopmatNV = false;
12010|  65.3k|        (yyval.interm.type).coopmatKHR = true;
12011|  65.3k|    }
12012|  65.3k|#line 12013 "MachineIndependent/glslang_tab.cpp"
12013|  65.3k|    break;
12014|       |
12015|  18.0k|  case 580: /* type_specifier_nonarray: TENSORLAYOUTNV  */
  ------------------
  |  Branch (12015:3): [True: 18.0k, False: 292M]
  ------------------
12016|  18.0k|#line 3788 "MachineIndependent/glslang.y"
12017|  18.0k|                     {
12018|  18.0k|        parseContext.tensorLayoutViewCheck((yyvsp[0].lex).loc, "tensorLayoutNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.tensorLayoutViewCheck((yyvsp[0].lex).loc, "tensorLayoutNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
12019|  18.0k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.0k|#define parseContext (*pParseContext)
  ------------------
12020|  18.0k|        (yyval.interm.type).basicType = EbtTensorLayoutNV;
12021|  18.0k|    }
12022|  18.0k|#line 12023 "MachineIndependent/glslang_tab.cpp"
12023|  18.0k|    break;
12024|       |
12025|  11.1k|  case 581: /* type_specifier_nonarray: TENSORVIEWNV  */
  ------------------
  |  Branch (12025:3): [True: 11.1k, False: 292M]
  ------------------
12026|  11.1k|#line 3793 "MachineIndependent/glslang.y"
12027|  11.1k|                   {
12028|  11.1k|        parseContext.tensorLayoutViewCheck((yyvsp[0].lex).loc, "tensorViewNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  11.1k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.tensorLayoutViewCheck((yyvsp[0].lex).loc, "tensorViewNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  11.1k|#define parseContext (*pParseContext)
  ------------------
12029|  11.1k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  11.1k|#define parseContext (*pParseContext)
  ------------------
12030|  11.1k|        (yyval.interm.type).basicType = EbtTensorViewNV;
12031|  11.1k|    }
12032|  11.1k|#line 12033 "MachineIndependent/glslang_tab.cpp"
12033|  11.1k|    break;
12034|       |
12035|  4.21k|  case 582: /* type_specifier_nonarray: FUNCTION  */
  ------------------
  |  Branch (12035:3): [True: 4.21k, False: 292M]
  ------------------
12036|  4.21k|#line 3798 "MachineIndependent/glslang.y"
12037|  4.21k|               {
12038|  4.21k|        (yyval.interm.type).init((yyvsp[0].lex).loc);
12039|  4.21k|        (yyval.interm.type).basicType = EbtFunction;
12040|  4.21k|    }
12041|  4.21k|#line 12042 "MachineIndependent/glslang_tab.cpp"
12042|  4.21k|    break;
12043|       |
12044|   239k|  case 583: /* type_specifier_nonarray: COOPVECNV  */
  ------------------
  |  Branch (12044:3): [True: 239k, False: 291M]
  ------------------
12045|   239k|#line 3802 "MachineIndependent/glslang.y"
12046|   239k|                {
12047|   239k|        parseContext.coopvecCheck((yyvsp[0].lex).loc, "coopvecNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   239k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.coopvecCheck((yyvsp[0].lex).loc, "coopvecNV", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   239k|#define parseContext (*pParseContext)
  ------------------
12048|   239k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   239k|#define parseContext (*pParseContext)
  ------------------
12049|   239k|        (yyval.interm.type).basicType = EbtCoopvecNV;
12050|   239k|        (yyval.interm.type).coopvecNV = true;
12051|   239k|    }
12052|   239k|#line 12053 "MachineIndependent/glslang_tab.cpp"
12053|   239k|    break;
12054|       |
12055|  18.3k|  case 584: /* type_specifier_nonarray: TENSORARM  */
  ------------------
  |  Branch (12055:3): [True: 18.3k, False: 292M]
  ------------------
12056|  18.3k|#line 3808 "MachineIndependent/glslang.y"
12057|  18.3k|                {
12058|  18.3k|        parseContext.tensorCheckARM((yyvsp[0].lex).loc, "tensorARM", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  18.3k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.tensorCheckARM((yyvsp[0].lex).loc, "tensorARM", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|  18.3k|#define parseContext (*pParseContext)
  ------------------
12059|  18.3k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  18.3k|#define parseContext (*pParseContext)
  ------------------
12060|  18.3k|        (yyval.interm.type).tensorRankARM = 1; // placeholder value
12061|  18.3k|        (yyval.interm.type).basicType = EbtTensorARM;
12062|  18.3k|    }
12063|  18.3k|#line 12064 "MachineIndependent/glslang_tab.cpp"
12064|  18.3k|    break;
12065|       |
12066|   576k|  case 585: /* type_specifier_nonarray: VECTOR  */
  ------------------
  |  Branch (12066:3): [True: 576k, False: 291M]
  ------------------
12067|   576k|#line 3814 "MachineIndependent/glslang.y"
12068|   576k|             {
12069|   576k|        parseContext.longVectorCheck((yyvsp[0].lex).loc, "vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   576k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.longVectorCheck((yyvsp[0].lex).loc, "vector", parseContext.symbolTable.atBuiltInLevel());
  ------------------
  |  |  783|   576k|#define parseContext (*pParseContext)
  ------------------
12070|   576k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|   576k|#define parseContext (*pParseContext)
  ------------------
12071|   576k|        (yyval.interm.type).basicType = EbtLongVector;
12072|   576k|        (yyval.interm.type).longVector = true;
12073|   576k|    }
12074|   576k|#line 12075 "MachineIndependent/glslang_tab.cpp"
12075|   576k|    break;
12076|       |
12077|      0|  case 586: /* type_specifier_nonarray: spirv_type_specifier  */
  ------------------
  |  Branch (12077:3): [True: 0, False: 292M]
  ------------------
12078|      0|#line 3820 "MachineIndependent/glslang.y"
12079|      0|                           {
12080|      0|        parseContext.requireExtensions((yyvsp[0].interm.type).loc, 1, &E_GL_EXT_spirv_intrinsics, "SPIR-V type specifier");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12081|      0|        (yyval.interm.type) = (yyvsp[0].interm.type);
12082|      0|    }
12083|      0|#line 12084 "MachineIndependent/glslang_tab.cpp"
12084|      0|    break;
12085|       |
12086|  5.08k|  case 587: /* type_specifier_nonarray: HITOBJECTNV  */
  ------------------
  |  Branch (12086:3): [True: 5.08k, False: 292M]
  ------------------
12087|  5.08k|#line 3824 "MachineIndependent/glslang.y"
12088|  5.08k|                  {
12089|  5.08k|       (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  5.08k|#define parseContext (*pParseContext)
  ------------------
12090|  5.08k|       (yyval.interm.type).basicType = EbtHitObjectNV;
12091|  5.08k|    }
12092|  5.08k|#line 12093 "MachineIndependent/glslang_tab.cpp"
12093|  5.08k|    break;
12094|       |
12095|  4.54k|  case 588: /* type_specifier_nonarray: HITOBJECTEXT  */
  ------------------
  |  Branch (12095:3): [True: 4.54k, False: 292M]
  ------------------
12096|  4.54k|#line 3828 "MachineIndependent/glslang.y"
12097|  4.54k|                   {
12098|  4.54k|       (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  4.54k|#define parseContext (*pParseContext)
  ------------------
12099|  4.54k|       (yyval.interm.type).basicType = EbtHitObjectEXT;
12100|  4.54k|    }
12101|  4.54k|#line 12102 "MachineIndependent/glslang_tab.cpp"
12102|  4.54k|    break;
12103|       |
12104|  1.33k|  case 589: /* type_specifier_nonarray: struct_specifier  */
  ------------------
  |  Branch (12104:3): [True: 1.33k, False: 292M]
  ------------------
12105|  1.33k|#line 3832 "MachineIndependent/glslang.y"
12106|  1.33k|                       {
12107|  1.33k|        (yyval.interm.type) = (yyvsp[0].interm.type);
12108|  1.33k|        (yyval.interm.type).qualifier.storage = parseContext.symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary;
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12108:49): [True: 1.31k, False: 16]
  ------------------
12109|  1.33k|        parseContext.structTypeCheck((yyval.interm.type).loc, (yyval.interm.type));
  ------------------
  |  |  783|  1.33k|#define parseContext (*pParseContext)
  ------------------
12110|  1.33k|    }
12111|  1.33k|#line 12112 "MachineIndependent/glslang_tab.cpp"
12112|  1.33k|    break;
12113|       |
12114|  12.4k|  case 590: /* type_specifier_nonarray: TYPE_NAME  */
  ------------------
  |  Branch (12114:3): [True: 12.4k, False: 292M]
  ------------------
12115|  12.4k|#line 3837 "MachineIndependent/glslang.y"
12116|  12.4k|                {
12117|       |        //
12118|       |        // This is for user defined type names.  The lexical phase looked up the
12119|       |        // type.
12120|       |        //
12121|  12.4k|        if (const TVariable* variable = ((yyvsp[0].lex).symbol)->getAsVariable()) {
  ------------------
  |  Branch (12121:30): [True: 12.4k, False: 0]
  ------------------
12122|  12.4k|            const TType& structure = variable->getType();
12123|  12.4k|            (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  12.4k|#define parseContext (*pParseContext)
  ------------------
12124|  12.4k|            (yyval.interm.type).basicType = EbtStruct;
12125|  12.4k|            (yyval.interm.type).userDef = &structure;
12126|  12.4k|            if (structure.getQualifier().isBufferType())
  ------------------
  |  Branch (12126:17): [True: 0, False: 12.4k]
  ------------------
12127|      0|                (yyval.interm.type).qualifier = structure.getQualifier();
12128|  12.4k|        } else
12129|      0|            parseContext.error((yyvsp[0].lex).loc, "expected type name", (yyvsp[0].lex).string->c_str(), "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12130|  12.4k|    }
12131|  12.4k|#line 12132 "MachineIndependent/glslang_tab.cpp"
12132|  12.4k|    break;
12133|       |
12134|  1.94M|  case 591: /* precision_qualifier: HIGH_PRECISION  */
  ------------------
  |  Branch (12134:3): [True: 1.94M, False: 290M]
  ------------------
12135|  1.94M|#line 3855 "MachineIndependent/glslang.y"
12136|  1.94M|                     {
12137|  1.94M|        parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "highp precision qualifier");
  ------------------
  |  |  783|  1.94M|#define parseContext (*pParseContext)
  ------------------
12138|  1.94M|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  1.94M|#define parseContext (*pParseContext)
  ------------------
12139|  1.94M|        parseContext.handlePrecisionQualifier((yyvsp[0].lex).loc, (yyval.interm.type).qualifier, EpqHigh);
  ------------------
  |  |  783|  1.94M|#define parseContext (*pParseContext)
  ------------------
12140|  1.94M|    }
12141|  1.94M|#line 12142 "MachineIndependent/glslang_tab.cpp"
12142|  1.94M|    break;
12143|       |
12144|  33.5k|  case 592: /* precision_qualifier: MEDIUM_PRECISION  */
  ------------------
  |  Branch (12144:3): [True: 33.5k, False: 292M]
  ------------------
12145|  33.5k|#line 3860 "MachineIndependent/glslang.y"
12146|  33.5k|                       {
12147|  33.5k|        parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "mediump precision qualifier");
  ------------------
  |  |  783|  33.5k|#define parseContext (*pParseContext)
  ------------------
12148|  33.5k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  33.5k|#define parseContext (*pParseContext)
  ------------------
12149|  33.5k|        parseContext.handlePrecisionQualifier((yyvsp[0].lex).loc, (yyval.interm.type).qualifier, EpqMedium);
  ------------------
  |  |  783|  33.5k|#define parseContext (*pParseContext)
  ------------------
12150|  33.5k|    }
12151|  33.5k|#line 12152 "MachineIndependent/glslang_tab.cpp"
12152|  33.5k|    break;
12153|       |
12154|  19.4k|  case 593: /* precision_qualifier: LOW_PRECISION  */
  ------------------
  |  Branch (12154:3): [True: 19.4k, False: 292M]
  ------------------
12155|  19.4k|#line 3865 "MachineIndependent/glslang.y"
12156|  19.4k|                    {
12157|  19.4k|        parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "lowp precision qualifier");
  ------------------
  |  |  783|  19.4k|#define parseContext (*pParseContext)
  ------------------
12158|  19.4k|        (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|  19.4k|#define parseContext (*pParseContext)
  ------------------
12159|  19.4k|        parseContext.handlePrecisionQualifier((yyvsp[0].lex).loc, (yyval.interm.type).qualifier, EpqLow);
  ------------------
  |  |  783|  19.4k|#define parseContext (*pParseContext)
  ------------------
12160|  19.4k|    }
12161|  19.4k|#line 12162 "MachineIndependent/glslang_tab.cpp"
12162|  19.4k|    break;
12163|       |
12164|  1.24k|  case 594: /* $@3: %empty  */
  ------------------
  |  Branch (12164:3): [True: 1.24k, False: 292M]
  ------------------
12165|  1.24k|#line 3873 "MachineIndependent/glslang.y"
12166|  1.24k|                                   { parseContext.nestedStructCheck((yyvsp[-2].lex).loc); }
  ------------------
  |  |  783|  1.24k|#define parseContext (*pParseContext)
  ------------------
12167|  1.24k|#line 12168 "MachineIndependent/glslang_tab.cpp"
12168|  1.24k|    break;
12169|       |
12170|  1.24k|  case 595: /* struct_specifier: STRUCT IDENTIFIER LEFT_BRACE $@3 struct_declaration_list RIGHT_BRACE  */
  ------------------
  |  Branch (12170:3): [True: 1.24k, False: 292M]
  ------------------
12171|  1.24k|#line 3873 "MachineIndependent/glslang.y"
12172|  1.24k|                                                                                                                   {
12173|  1.24k|        TType* structure = new TType((yyvsp[-1].interm.typeList), *(yyvsp[-4].lex).string);
12174|  1.24k|        parseContext.structArrayCheck((yyvsp[-4].lex).loc, *structure);
  ------------------
  |  |  783|  1.24k|#define parseContext (*pParseContext)
  ------------------
12175|       |
12176|  1.24k|        TVariable* userTypeDef = new TVariable((yyvsp[-4].lex).string, *structure, true);
12177|  1.24k|        if (! parseContext.symbolTable.insert(*userTypeDef))
  ------------------
  |  |  783|  1.24k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12177:13): [True: 26, False: 1.21k]
  ------------------
12178|     26|            parseContext.error((yyvsp[-4].lex).loc, "redefinition", (yyvsp[-4].lex).string->c_str(), "struct");
  ------------------
  |  |  783|     26|#define parseContext (*pParseContext)
  ------------------
12179|  1.21k|        else if (parseContext.spvVersion.vulkanRelaxed
  ------------------
  |  |  783|  1.21k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12179:18): [True: 0, False: 1.21k]
  ------------------
12180|      0|                 && structure->containsOpaque())
  ------------------
  |  Branch (12180:21): [True: 0, False: 0]
  ------------------
12181|      0|            parseContext.relaxedSymbols.push_back(structure->getTypeName());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12182|       |
12183|  1.24k|        (yyval.interm.type).init((yyvsp[-5].lex).loc);
12184|  1.24k|        (yyval.interm.type).basicType = EbtStruct;
12185|  1.24k|        (yyval.interm.type).userDef = structure;
12186|  1.24k|        --parseContext.structNestingLevel;
  ------------------
  |  |  783|  1.24k|#define parseContext (*pParseContext)
  ------------------
12187|  1.24k|    }
12188|  1.24k|#line 12189 "MachineIndependent/glslang_tab.cpp"
12189|  1.24k|    break;
12190|       |
12191|     86|  case 596: /* $@4: %empty  */
  ------------------
  |  Branch (12191:3): [True: 86, False: 292M]
  ------------------
12192|     86|#line 3889 "MachineIndependent/glslang.y"
12193|     86|                        { parseContext.nestedStructCheck((yyvsp[-1].lex).loc); }
  ------------------
  |  |  783|     86|#define parseContext (*pParseContext)
  ------------------
12194|     86|#line 12195 "MachineIndependent/glslang_tab.cpp"
12195|     86|    break;
12196|       |
12197|     86|  case 597: /* struct_specifier: STRUCT LEFT_BRACE $@4 struct_declaration_list RIGHT_BRACE  */
  ------------------
  |  Branch (12197:3): [True: 86, False: 292M]
  ------------------
12198|     86|#line 3889 "MachineIndependent/glslang.y"
12199|     86|                                                                                                        {
12200|     86|        TType* structure = new TType((yyvsp[-1].interm.typeList), TString(""));
12201|     86|        (yyval.interm.type).init((yyvsp[-4].lex).loc);
12202|     86|        (yyval.interm.type).basicType = EbtStruct;
12203|     86|        (yyval.interm.type).userDef = structure;
12204|     86|        --parseContext.structNestingLevel;
  ------------------
  |  |  783|     86|#define parseContext (*pParseContext)
  ------------------
12205|     86|    }
12206|     86|#line 12207 "MachineIndependent/glslang_tab.cpp"
12207|     86|    break;
12208|       |
12209|  9.45k|  case 598: /* struct_declaration_list: struct_declaration  */
  ------------------
  |  Branch (12209:3): [True: 9.45k, False: 292M]
  ------------------
12210|  9.45k|#line 3899 "MachineIndependent/glslang.y"
12211|  9.45k|                         {
12212|  9.45k|        (yyval.interm.typeList) = (yyvsp[0].interm.typeList);
12213|  9.45k|    }
12214|  9.45k|#line 12215 "MachineIndependent/glslang_tab.cpp"
12215|  9.45k|    break;
12216|       |
12217|  28.8k|  case 599: /* struct_declaration_list: struct_declaration_list struct_declaration  */
  ------------------
  |  Branch (12217:3): [True: 28.8k, False: 292M]
  ------------------
12218|  28.8k|#line 3902 "MachineIndependent/glslang.y"
12219|  28.8k|                                                 {
12220|  28.8k|        (yyval.interm.typeList) = (yyvsp[-1].interm.typeList);
12221|  57.7k|        for (unsigned int i = 0; i < (yyvsp[0].interm.typeList)->size(); ++i) {
  ------------------
  |  Branch (12221:34): [True: 28.8k, False: 28.8k]
  ------------------
12222|   112k|            for (unsigned int j = 0; j < (yyval.interm.typeList)->size(); ++j) {
  ------------------
  |  Branch (12222:38): [True: 83.3k, False: 28.8k]
  ------------------
12223|  83.3k|                if ((*(yyval.interm.typeList))[j].type->getFieldName() == (*(yyvsp[0].interm.typeList))[i].type->getFieldName())
  ------------------
  |  Branch (12223:21): [True: 4, False: 83.3k]
  ------------------
12224|      4|                    parseContext.error((*(yyvsp[0].interm.typeList))[i].loc, "duplicate member name:", "", "%s", (*(yyvsp[0].interm.typeList))[i].type->getFieldName().c_str());
  ------------------
  |  |  783|      4|#define parseContext (*pParseContext)
  ------------------
12225|  83.3k|            }
12226|  28.8k|            (yyval.interm.typeList)->push_back((*(yyvsp[0].interm.typeList))[i]);
12227|  28.8k|        }
12228|  28.8k|    }
12229|  28.8k|#line 12230 "MachineIndependent/glslang_tab.cpp"
12230|  28.8k|    break;
12231|       |
12232|  38.3k|  case 600: /* struct_declaration: struct_declaration_no_inline_block  */
  ------------------
  |  Branch (12232:3): [True: 38.3k, False: 292M]
  ------------------
12233|  38.3k|#line 3915 "MachineIndependent/glslang.y"
12234|  38.3k|                                         {
12235|  38.3k|        (yyval.interm.typeList) = (yyvsp[0].interm.typeList);
12236|  38.3k|    }
12237|  38.3k|#line 12238 "MachineIndependent/glslang_tab.cpp"
12238|  38.3k|    break;
12239|       |
12240|      0|  case 601: /* struct_declaration: block_heap_inner_structure struct_declarator_list SEMICOLON  */
  ------------------
  |  Branch (12240:3): [True: 0, False: 292M]
  ------------------
12241|      0|#line 3918 "MachineIndependent/glslang.y"
12242|      0|                                                                  {
12243|      0|        (yyval.interm.typeList) = (yyvsp[-1].interm.typeList);
12244|      0|        parseContext.voidErrorCheck((yyvsp[-2].interm.type).loc, (*(yyvsp[-1].interm.typeList))[0].type->getFieldName(), (yyvsp[-2].interm.type).basicType);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12245|      0|        parseContext.precisionQualifierCheck((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).basicType, (yyvsp[-2].interm.type).qualifier, (yyvsp[-2].interm.type).hasTypeParameter());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12246|       |
12247|      0|        for (unsigned int i = 0; i < (yyval.interm.typeList)->size(); ++i) {
  ------------------
  |  Branch (12247:34): [True: 0, False: 0]
  ------------------
12248|      0|            TType type((yyvsp[-2].interm.type));
12249|      0|            type.setFieldName((*(yyval.interm.typeList))[i].type->getFieldName());
12250|      0|            type.transferArraySizes((*(yyval.interm.typeList))[i].type->getArraySizes());
12251|      0|            type.copyArrayInnerSizes((yyvsp[-2].interm.type).arraySizes);
12252|      0|            parseContext.arrayOfArrayVersionCheck((*(yyval.interm.typeList))[i].loc, type.getArraySizes());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12253|      0|            (*(yyval.interm.typeList))[i].type->shallowCopy(type);
12254|      0|        }
12255|      0|    }
12256|      0|#line 12257 "MachineIndependent/glslang_tab.cpp"
12257|      0|    break;
12258|       |
12259|      0|  case 602: /* $@5: %empty  */
  ------------------
  |  Branch (12259:3): [True: 0, False: 292M]
  ------------------
12260|      0|#line 3935 "MachineIndependent/glslang.y"
12261|      0|                                { parseContext.nestedBlockCheck((yyvsp[-1].interm.type).loc, true); }
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12262|      0|#line 12263 "MachineIndependent/glslang_tab.cpp"
12263|      0|    break;
12264|       |
12265|      0|  case 603: /* block_heap_inner_structure: type_qualifier LEFT_BRACE $@5 struct_declaration_no_inline_block_list RIGHT_BRACE  */
  ------------------
  |  Branch (12265:3): [True: 0, False: 292M]
  ------------------
12266|      0|#line 3935 "MachineIndependent/glslang.y"
12267|      0|                                                                                                                                     {
12268|      0|        --parseContext.blockNestingLevel;
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12269|      0|        parseContext.globalQualifierFixCheck((yyvsp[-4].interm.type).loc, (yyvsp[-4].interm.type).qualifier);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12270|      0|        parseContext.checkNoShaderLayouts((yyvsp[-4].interm.type).loc, (yyvsp[-4].interm.type).shaderQualifiers);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12271|      0|        (yyval.interm.type).init((yyvsp[-4].interm.type).loc);
12272|      0|        TType* innerStructure = new TType((yyvsp[-1].interm.typeList), TString(""), (yyvsp[-4].interm.type).qualifier);
12273|      0|        if (! (yyvsp[-4].interm.type).qualifier.hasBufferReference())
  ------------------
  |  Branch (12273:13): [True: 0, False: 0]
  ------------------
12274|      0|            parseContext.error((yyvsp[-4].interm.type).loc, "only buffer_reference blocks can be declared inline inside a heap block", "", "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12275|      0|        TType* referenceType = new TType(EbtReference, *innerStructure, TString(""));
12276|      0|        (yyval.interm.type).basicType = EbtReference;
12277|      0|        (yyval.interm.type).userDef = referenceType;
12278|      0|        (yyval.interm.type).qualifier.layoutDescriptorHeap = true;
12279|      0|    }
12280|      0|#line 12281 "MachineIndependent/glslang_tab.cpp"
12281|      0|    break;
12282|       |
12283|      0|  case 604: /* struct_declaration_no_inline_block_list: struct_declaration_no_inline_block  */
  ------------------
  |  Branch (12283:3): [True: 0, False: 292M]
  ------------------
12284|      0|#line 3951 "MachineIndependent/glslang.y"
12285|      0|                                         {
12286|      0|        (yyval.interm.typeList) = (yyvsp[0].interm.typeList);
12287|      0|    }
12288|      0|#line 12289 "MachineIndependent/glslang_tab.cpp"
12289|      0|    break;
12290|       |
12291|      0|  case 605: /* struct_declaration_no_inline_block_list: struct_declaration_no_inline_block_list struct_declaration_no_inline_block  */
  ------------------
  |  Branch (12291:3): [True: 0, False: 292M]
  ------------------
12292|      0|#line 3954 "MachineIndependent/glslang.y"
12293|      0|                                                                                 {
12294|      0|        (yyval.interm.typeList) = (yyvsp[-1].interm.typeList);
12295|      0|        for (unsigned int i = 0; i < (yyvsp[0].interm.typeList)->size(); ++i) {
  ------------------
  |  Branch (12295:34): [True: 0, False: 0]
  ------------------
12296|      0|            for (unsigned int j = 0; j < (yyval.interm.typeList)->size(); ++j) {
  ------------------
  |  Branch (12296:38): [True: 0, False: 0]
  ------------------
12297|      0|                if ((*(yyval.interm.typeList))[j].type->getFieldName() == (*(yyvsp[0].interm.typeList))[i].type->getFieldName())
  ------------------
  |  Branch (12297:21): [True: 0, False: 0]
  ------------------
12298|      0|                    parseContext.error((*(yyvsp[0].interm.typeList))[i].loc, "duplicate member name:", "", "%s", (*(yyvsp[0].interm.typeList))[i].type->getFieldName().c_str());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12299|      0|            }
12300|      0|            (yyval.interm.typeList)->push_back((*(yyvsp[0].interm.typeList))[i]);
12301|      0|        }
12302|      0|    }
12303|      0|#line 12304 "MachineIndependent/glslang_tab.cpp"
12304|      0|    break;
12305|       |
12306|  32.7k|  case 606: /* struct_declaration_no_inline_block: type_specifier struct_declarator_list SEMICOLON  */
  ------------------
  |  Branch (12306:3): [True: 32.7k, False: 292M]
  ------------------
12307|  32.7k|#line 3967 "MachineIndependent/glslang.y"
12308|  32.7k|                                                      {
12309|  32.7k|        if ((yyvsp[-2].interm.type).arraySizes) {
  ------------------
  |  Branch (12309:13): [True: 11, False: 32.7k]
  ------------------
12310|     11|            parseContext.profileRequires((yyvsp[-2].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
  ------------------
  |  |  783|     11|#define parseContext (*pParseContext)
  ------------------
12311|     11|            parseContext.profileRequires((yyvsp[-2].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
  ------------------
  |  |  783|     11|#define parseContext (*pParseContext)
  ------------------
12312|     11|            if (parseContext.isEsProfile())
  ------------------
  |  |  783|     11|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12312:17): [True: 3, False: 8]
  ------------------
12313|      3|                parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].interm.type).arraySizes);
  ------------------
  |  |  783|      3|#define parseContext (*pParseContext)
  ------------------
12314|     11|        }
12315|       |
12316|  32.7k|        (yyval.interm.typeList) = (yyvsp[-1].interm.typeList);
12317|       |
12318|  32.7k|        parseContext.voidErrorCheck((yyvsp[-2].interm.type).loc, (*(yyvsp[-1].interm.typeList))[0].type->getFieldName(), (yyvsp[-2].interm.type).basicType);
  ------------------
  |  |  783|  32.7k|#define parseContext (*pParseContext)
  ------------------
12319|  32.7k|        parseContext.precisionQualifierCheck((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).basicType, (yyvsp[-2].interm.type).qualifier, (yyvsp[-2].interm.type).hasTypeParameter());
  ------------------
  |  |  783|  32.7k|#define parseContext (*pParseContext)
  ------------------
12320|       |
12321|  65.5k|        for (unsigned int i = 0; i < (yyval.interm.typeList)->size(); ++i) {
  ------------------
  |  Branch (12321:34): [True: 32.7k, False: 32.7k]
  ------------------
12322|  32.7k|            TType type((yyvsp[-2].interm.type));
12323|  32.7k|            type.setFieldName((*(yyval.interm.typeList))[i].type->getFieldName());
12324|  32.7k|            type.transferArraySizes((*(yyval.interm.typeList))[i].type->getArraySizes());
12325|  32.7k|            type.copyArrayInnerSizes((yyvsp[-2].interm.type).arraySizes);
12326|  32.7k|            parseContext.arrayOfArrayVersionCheck((*(yyval.interm.typeList))[i].loc, type.getArraySizes());
  ------------------
  |  |  783|  32.7k|#define parseContext (*pParseContext)
  ------------------
12327|  32.7k|            (*(yyval.interm.typeList))[i].type->shallowCopy(type);
12328|  32.7k|        }
12329|  32.7k|    }
12330|  32.7k|#line 12331 "MachineIndependent/glslang_tab.cpp"
12331|  32.7k|    break;
12332|       |
12333|  5.53k|  case 607: /* struct_declaration_no_inline_block: type_qualifier type_specifier struct_declarator_list SEMICOLON  */
  ------------------
  |  Branch (12333:3): [True: 5.53k, False: 292M]
  ------------------
12334|  5.53k|#line 3989 "MachineIndependent/glslang.y"
12335|  5.53k|                                                                     {
12336|  5.53k|        if ((yyvsp[-2].interm.type).arraySizes) {
  ------------------
  |  Branch (12336:13): [True: 0, False: 5.53k]
  ------------------
12337|      0|            parseContext.profileRequires((yyvsp[-2].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12338|      0|            parseContext.profileRequires((yyvsp[-2].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12339|      0|            if (parseContext.isEsProfile())
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12339:17): [True: 0, False: 0]
  ------------------
12340|      0|                parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].interm.type).arraySizes);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12341|      0|        }
12342|       |
12343|  5.53k|        (yyval.interm.typeList) = (yyvsp[-1].interm.typeList);
12344|       |
12345|  5.53k|        parseContext.memberQualifierCheck((yyvsp[-3].interm.type));
  ------------------
  |  |  783|  5.53k|#define parseContext (*pParseContext)
  ------------------
12346|  5.53k|        parseContext.voidErrorCheck((yyvsp[-2].interm.type).loc, (*(yyvsp[-1].interm.typeList))[0].type->getFieldName(), (yyvsp[-2].interm.type).basicType);
  ------------------
  |  |  783|  5.53k|#define parseContext (*pParseContext)
  ------------------
12347|  5.53k|        parseContext.mergeQualifiers((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).qualifier, (yyvsp[-3].interm.type).qualifier, true);
  ------------------
  |  |  783|  5.53k|#define parseContext (*pParseContext)
  ------------------
12348|  5.53k|        parseContext.precisionQualifierCheck((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).basicType, (yyvsp[-2].interm.type).qualifier, (yyvsp[-2].interm.type).hasTypeParameter());
  ------------------
  |  |  783|  5.53k|#define parseContext (*pParseContext)
  ------------------
12349|       |
12350|  11.0k|        for (unsigned int i = 0; i < (yyval.interm.typeList)->size(); ++i) {
  ------------------
  |  Branch (12350:34): [True: 5.53k, False: 5.53k]
  ------------------
12351|  5.53k|            TType type((yyvsp[-2].interm.type));
12352|  5.53k|            type.setFieldName((*(yyval.interm.typeList))[i].type->getFieldName());
12353|  5.53k|            type.transferArraySizes((*(yyval.interm.typeList))[i].type->getArraySizes());
12354|  5.53k|            type.copyArrayInnerSizes((yyvsp[-2].interm.type).arraySizes);
12355|  5.53k|            parseContext.arrayOfArrayVersionCheck((*(yyval.interm.typeList))[i].loc, type.getArraySizes());
  ------------------
  |  |  783|  5.53k|#define parseContext (*pParseContext)
  ------------------
12356|  5.53k|            (*(yyval.interm.typeList))[i].type->shallowCopy(type);
12357|  5.53k|        }
12358|  5.53k|    }
12359|  5.53k|#line 12360 "MachineIndependent/glslang_tab.cpp"
12360|  5.53k|    break;
12361|       |
12362|  38.3k|  case 608: /* struct_declarator_list: struct_declarator  */
  ------------------
  |  Branch (12362:3): [True: 38.3k, False: 292M]
  ------------------
12363|  38.3k|#line 4016 "MachineIndependent/glslang.y"
12364|  38.3k|                        {
12365|  38.3k|        (yyval.interm.typeList) = new TTypeList;
12366|  38.3k|        (yyval.interm.typeList)->push_back((yyvsp[0].interm.typeLine));
12367|  38.3k|    }
12368|  38.3k|#line 12369 "MachineIndependent/glslang_tab.cpp"
12369|  38.3k|    break;
12370|       |
12371|      3|  case 609: /* struct_declarator_list: struct_declarator_list COMMA struct_declarator  */
  ------------------
  |  Branch (12371:3): [True: 3, False: 292M]
  ------------------
12372|      3|#line 4020 "MachineIndependent/glslang.y"
12373|      3|                                                     {
12374|      3|        (yyval.interm.typeList)->push_back((yyvsp[0].interm.typeLine));
12375|      3|    }
12376|      3|#line 12377 "MachineIndependent/glslang_tab.cpp"
12377|      3|    break;
12378|       |
12379|  23.8k|  case 610: /* struct_declarator: IDENTIFIER  */
  ------------------
  |  Branch (12379:3): [True: 23.8k, False: 292M]
  ------------------
12380|  23.8k|#line 4026 "MachineIndependent/glslang.y"
12381|  23.8k|                 {
12382|  23.8k|        (yyval.interm.typeLine).type = new TType(EbtVoid);
12383|  23.8k|        (yyval.interm.typeLine).loc = (yyvsp[0].lex).loc;
12384|  23.8k|        (yyval.interm.typeLine).type->setFieldName(*(yyvsp[0].lex).string);
12385|  23.8k|    }
12386|  23.8k|#line 12387 "MachineIndependent/glslang_tab.cpp"
12387|  23.8k|    break;
12388|       |
12389|  14.5k|  case 611: /* struct_declarator: IDENTIFIER array_specifier  */
  ------------------
  |  Branch (12389:3): [True: 14.5k, False: 292M]
  ------------------
12390|  14.5k|#line 4031 "MachineIndependent/glslang.y"
12391|  14.5k|                                 {
12392|  14.5k|        parseContext.arrayOfArrayVersionCheck((yyvsp[-1].lex).loc, (yyvsp[0].interm).arraySizes);
  ------------------
  |  |  783|  14.5k|#define parseContext (*pParseContext)
  ------------------
12393|       |
12394|  14.5k|        (yyval.interm.typeLine).type = new TType(EbtVoid);
12395|  14.5k|        (yyval.interm.typeLine).loc = (yyvsp[-1].lex).loc;
12396|  14.5k|        (yyval.interm.typeLine).type->setFieldName(*(yyvsp[-1].lex).string);
12397|  14.5k|        (yyval.interm.typeLine).type->transferArraySizes((yyvsp[0].interm).arraySizes);
12398|  14.5k|    }
12399|  14.5k|#line 12400 "MachineIndependent/glslang_tab.cpp"
12400|  14.5k|    break;
12401|       |
12402|   412k|  case 612: /* initializer: assignment_expression  */
  ------------------
  |  Branch (12402:3): [True: 412k, False: 291M]
  ------------------
12403|   412k|#line 4042 "MachineIndependent/glslang.y"
12404|   412k|                            {
12405|   412k|        (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
12406|   412k|    }
12407|   412k|#line 12408 "MachineIndependent/glslang_tab.cpp"
12408|   412k|    break;
12409|       |
12410|    222|  case 613: /* initializer: LEFT_BRACE initializer_list RIGHT_BRACE  */
  ------------------
  |  Branch (12410:3): [True: 222, False: 292M]
  ------------------
12411|    222|#line 4045 "MachineIndependent/glslang.y"
12412|    222|                                              {
12413|    222|        const char* initFeature = "{ } style initializers";
12414|    222|        parseContext.requireProfile((yyvsp[-2].lex).loc, ~EEsProfile, initFeature);
  ------------------
  |  |  783|    222|#define parseContext (*pParseContext)
  ------------------
12415|    222|        parseContext.profileRequires((yyvsp[-2].lex).loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, initFeature);
  ------------------
  |  |  783|    222|#define parseContext (*pParseContext)
  ------------------
12416|    222|        (yyval.interm.intermTypedNode) = (yyvsp[-1].interm.intermTypedNode);
12417|    222|    }
12418|    222|#line 12419 "MachineIndependent/glslang_tab.cpp"
12419|    222|    break;
12420|       |
12421|    339|  case 614: /* initializer: LEFT_BRACE initializer_list COMMA RIGHT_BRACE  */
  ------------------
  |  Branch (12421:3): [True: 339, False: 292M]
  ------------------
12422|    339|#line 4051 "MachineIndependent/glslang.y"
12423|    339|                                                    {
12424|    339|        const char* initFeature = "{ } style initializers";
12425|    339|        parseContext.requireProfile((yyvsp[-3].lex).loc, ~EEsProfile, initFeature);
  ------------------
  |  |  783|    339|#define parseContext (*pParseContext)
  ------------------
12426|    339|        parseContext.profileRequires((yyvsp[-3].lex).loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, initFeature);
  ------------------
  |  |  783|    339|#define parseContext (*pParseContext)
  ------------------
12427|    339|        (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
12428|    339|    }
12429|    339|#line 12430 "MachineIndependent/glslang_tab.cpp"
12430|    339|    break;
12431|       |
12432|      0|  case 615: /* initializer: LEFT_BRACE RIGHT_BRACE  */
  ------------------
  |  Branch (12432:3): [True: 0, False: 292M]
  ------------------
12433|      0|#line 4057 "MachineIndependent/glslang.y"
12434|      0|                             {
12435|      0|        const char* initFeature = "empty { } initializer";
12436|      0|        parseContext.profileRequires((yyvsp[-1].lex).loc, EEsProfile, 0, E_GL_EXT_null_initializer, initFeature);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12437|      0|        parseContext.profileRequires((yyvsp[-1].lex).loc, ~EEsProfile, 0, E_GL_EXT_null_initializer, initFeature);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12438|      0|        (yyval.interm.intermTypedNode) = parseContext.intermediate.makeAggregate((yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12439|      0|    }
12440|      0|#line 12441 "MachineIndependent/glslang_tab.cpp"
12441|      0|    break;
12442|       |
12443|    567|  case 616: /* initializer_list: initializer  */
  ------------------
  |  Branch (12443:3): [True: 567, False: 292M]
  ------------------
12444|    567|#line 4066 "MachineIndependent/glslang.y"
12445|    567|                  {
12446|    567|        (yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate(0, (yyvsp[0].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode)->getLoc());
  ------------------
  |  |  783|    567|#define parseContext (*pParseContext)
  ------------------
12447|    567|    }
12448|    567|#line 12449 "MachineIndependent/glslang_tab.cpp"
12449|    567|    break;
12450|       |
12451|  1.15k|  case 617: /* initializer_list: initializer_list COMMA initializer  */
  ------------------
  |  Branch (12451:3): [True: 1.15k, False: 292M]
  ------------------
12452|  1.15k|#line 4069 "MachineIndependent/glslang.y"
12453|  1.15k|                                         {
12454|  1.15k|        (yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|  1.15k|#define parseContext (*pParseContext)
  ------------------
12455|  1.15k|    }
12456|  1.15k|#line 12457 "MachineIndependent/glslang_tab.cpp"
12457|  1.15k|    break;
12458|       |
12459|   113k|  case 618: /* declaration_statement: declaration  */
  ------------------
  |  Branch (12459:3): [True: 113k, False: 292M]
  ------------------
12460|   113k|#line 4075 "MachineIndependent/glslang.y"
12461|   113k|                  { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12462|   113k|#line 12463 "MachineIndependent/glslang_tab.cpp"
12463|   113k|    break;
12464|       |
12465|    105|  case 619: /* statement: compound_statement  */
  ------------------
  |  Branch (12465:3): [True: 105, False: 292M]
  ------------------
12466|    105|#line 4079 "MachineIndependent/glslang.y"
12467|    105|                          { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12468|    105|#line 12469 "MachineIndependent/glslang_tab.cpp"
12469|    105|    break;
12470|       |
12471|   164k|  case 620: /* statement: simple_statement  */
  ------------------
  |  Branch (12471:3): [True: 164k, False: 292M]
  ------------------
12472|   164k|#line 4080 "MachineIndependent/glslang.y"
12473|   164k|                          { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12474|   164k|#line 12475 "MachineIndependent/glslang_tab.cpp"
12475|   164k|    break;
12476|       |
12477|   113k|  case 621: /* simple_statement: declaration_statement  */
  ------------------
  |  Branch (12477:3): [True: 113k, False: 292M]
  ------------------
12478|   113k|#line 4086 "MachineIndependent/glslang.y"
12479|   113k|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12480|   113k|#line 12481 "MachineIndependent/glslang_tab.cpp"
12481|   113k|    break;
12482|       |
12483|  48.8k|  case 622: /* simple_statement: expression_statement  */
  ------------------
  |  Branch (12483:3): [True: 48.8k, False: 292M]
  ------------------
12484|  48.8k|#line 4087 "MachineIndependent/glslang.y"
12485|  48.8k|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12486|  48.8k|#line 12487 "MachineIndependent/glslang_tab.cpp"
12487|  48.8k|    break;
12488|       |
12489|    617|  case 623: /* simple_statement: selection_statement  */
  ------------------
  |  Branch (12489:3): [True: 617, False: 292M]
  ------------------
12490|    617|#line 4088 "MachineIndependent/glslang.y"
12491|    617|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12492|    617|#line 12493 "MachineIndependent/glslang_tab.cpp"
12493|    617|    break;
12494|       |
12495|     87|  case 624: /* simple_statement: switch_statement  */
  ------------------
  |  Branch (12495:3): [True: 87, False: 292M]
  ------------------
12496|     87|#line 4089 "MachineIndependent/glslang.y"
12497|     87|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12498|     87|#line 12499 "MachineIndependent/glslang_tab.cpp"
12499|     87|    break;
12500|       |
12501|    193|  case 625: /* simple_statement: case_label  */
  ------------------
  |  Branch (12501:3): [True: 193, False: 292M]
  ------------------
12502|    193|#line 4090 "MachineIndependent/glslang.y"
12503|    193|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12504|    193|#line 12505 "MachineIndependent/glslang_tab.cpp"
12505|    193|    break;
12506|       |
12507|     80|  case 626: /* simple_statement: iteration_statement  */
  ------------------
  |  Branch (12507:3): [True: 80, False: 292M]
  ------------------
12508|     80|#line 4091 "MachineIndependent/glslang.y"
12509|     80|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12510|     80|#line 12511 "MachineIndependent/glslang_tab.cpp"
12511|     80|    break;
12512|       |
12513|    954|  case 627: /* simple_statement: jump_statement  */
  ------------------
  |  Branch (12513:3): [True: 954, False: 292M]
  ------------------
12514|    954|#line 4092 "MachineIndependent/glslang.y"
12515|    954|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12516|    954|#line 12517 "MachineIndependent/glslang_tab.cpp"
12517|    954|    break;
12518|       |
12519|      0|  case 628: /* simple_statement: demote_statement  */
  ------------------
  |  Branch (12519:3): [True: 0, False: 292M]
  ------------------
12520|      0|#line 4093 "MachineIndependent/glslang.y"
12521|      0|                            { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12522|      0|#line 12523 "MachineIndependent/glslang_tab.cpp"
12523|      0|    break;
12524|       |
12525|      0|  case 629: /* demote_statement: DEMOTE SEMICOLON  */
  ------------------
  |  Branch (12525:3): [True: 0, False: 292M]
  ------------------
12526|      0|#line 4097 "MachineIndependent/glslang.y"
12527|      0|                       {
12528|      0|        parseContext.requireStage((yyvsp[-1].lex).loc, EShLangFragment, "demote");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12529|      0|        parseContext.requireExtensions((yyvsp[-1].lex).loc, 1, &E_GL_EXT_demote_to_helper_invocation, "demote");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12530|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpDemote, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12531|      0|    }
12532|      0|#line 12533 "MachineIndependent/glslang_tab.cpp"
12533|      0|    break;
12534|       |
12535|      1|  case 630: /* compound_statement: LEFT_BRACE RIGHT_BRACE  */
  ------------------
  |  Branch (12535:3): [True: 1, False: 292M]
  ------------------
12536|      1|#line 4105 "MachineIndependent/glslang.y"
12537|      1|                             { (yyval.interm.intermNode) = 0; }
12538|      1|#line 12539 "MachineIndependent/glslang_tab.cpp"
12539|      1|    break;
12540|       |
12541|    533|  case 631: /* $@6: %empty  */
  ------------------
  |  Branch (12541:3): [True: 533, False: 292M]
  ------------------
12542|    533|#line 4106 "MachineIndependent/glslang.y"
12543|    533|                 {
12544|    533|        parseContext.symbolTable.push();
  ------------------
  |  |  783|    533|#define parseContext (*pParseContext)
  ------------------
12545|    533|        ++parseContext.statementNestingLevel;
  ------------------
  |  |  783|    533|#define parseContext (*pParseContext)
  ------------------
12546|    533|    }
12547|    533|#line 12548 "MachineIndependent/glslang_tab.cpp"
12548|    533|    break;
12549|       |
12550|    525|  case 632: /* $@7: %empty  */
  ------------------
  |  Branch (12550:3): [True: 525, False: 292M]
  ------------------
12551|    525|#line 4110 "MachineIndependent/glslang.y"
12552|    525|                     {
12553|    525|        parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|    525|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|    525|#define parseContext (*pParseContext)
  ------------------
12554|    525|        --parseContext.statementNestingLevel;
  ------------------
  |  |  783|    525|#define parseContext (*pParseContext)
  ------------------
12555|    525|    }
12556|    525|#line 12557 "MachineIndependent/glslang_tab.cpp"
12557|    525|    break;
12558|       |
12559|    524|  case 633: /* compound_statement: LEFT_BRACE $@6 statement_list $@7 RIGHT_BRACE  */
  ------------------
  |  Branch (12559:3): [True: 524, False: 292M]
  ------------------
12560|    524|#line 4114 "MachineIndependent/glslang.y"
12561|    524|                  {
12562|    524|        if ((yyvsp[-2].interm.intermNode) && (yyvsp[-2].interm.intermNode)->getAsAggregate()) {
  ------------------
  |  Branch (12562:13): [True: 518, False: 6]
  |  Branch (12562:46): [True: 518, False: 0]
  ------------------
12563|    518|            (yyvsp[-2].interm.intermNode)->getAsAggregate()->setOperator(parseContext.intermediate.getDebugInfo() ? EOpScope : EOpSequence);
  ------------------
  |  |  783|    518|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12563:74): [True: 0, False: 518]
  ------------------
12564|    518|            (yyvsp[-2].interm.intermNode)->getAsAggregate()->setEndLoc((yyvsp[0].lex).loc);
12565|    518|        }
12566|    524|        (yyval.interm.intermNode) = (yyvsp[-2].interm.intermNode);
12567|    524|    }
12568|    524|#line 12569 "MachineIndependent/glslang_tab.cpp"
12569|    524|    break;
12570|       |
12571|     66|  case 634: /* statement_no_new_scope: compound_statement_no_new_scope  */
  ------------------
  |  Branch (12571:3): [True: 66, False: 292M]
  ------------------
12572|     66|#line 4124 "MachineIndependent/glslang.y"
12573|     66|                                      { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12574|     66|#line 12575 "MachineIndependent/glslang_tab.cpp"
12575|     66|    break;
12576|       |
12577|      6|  case 635: /* statement_no_new_scope: simple_statement  */
  ------------------
  |  Branch (12577:3): [True: 6, False: 292M]
  ------------------
12578|      6|#line 4125 "MachineIndependent/glslang.y"
12579|      6|                                      { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
12580|      6|#line 12581 "MachineIndependent/glslang_tab.cpp"
12581|      6|    break;
12582|       |
12583|    422|  case 636: /* $@8: %empty  */
  ------------------
  |  Branch (12583:3): [True: 422, False: 292M]
  ------------------
12584|    422|#line 4129 "MachineIndependent/glslang.y"
12585|    422|      {
12586|    422|        ++parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|    422|#define parseContext (*pParseContext)
  ------------------
12587|    422|    }
12588|    422|#line 12589 "MachineIndependent/glslang_tab.cpp"
12589|    422|    break;
12590|       |
12591|    420|  case 637: /* statement_scoped: $@8 compound_statement  */
  ------------------
  |  Branch (12591:3): [True: 420, False: 292M]
  ------------------
12592|    420|#line 4132 "MachineIndependent/glslang.y"
12593|    420|                          {
12594|    420|        --parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|    420|#define parseContext (*pParseContext)
  ------------------
12595|    420|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12596|    420|    }
12597|    420|#line 12598 "MachineIndependent/glslang_tab.cpp"
12598|    420|    break;
12599|       |
12600|    213|  case 638: /* $@9: %empty  */
  ------------------
  |  Branch (12600:3): [True: 213, False: 292M]
  ------------------
12601|    213|#line 4136 "MachineIndependent/glslang.y"
12602|    213|      {
12603|    213|        parseContext.symbolTable.push();
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
12604|    213|        ++parseContext.statementNestingLevel;
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
12605|    213|        ++parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
12606|    213|    }
12607|    213|#line 12608 "MachineIndependent/glslang_tab.cpp"
12608|    213|    break;
12609|       |
12610|    213|  case 639: /* statement_scoped: $@9 simple_statement  */
  ------------------
  |  Branch (12610:3): [True: 213, False: 292M]
  ------------------
12611|    213|#line 4141 "MachineIndependent/glslang.y"
12612|    213|                       {
12613|    213|        parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
12614|    213|        --parseContext.statementNestingLevel;
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
12615|    213|        --parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|    213|#define parseContext (*pParseContext)
  ------------------
12616|    213|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12617|    213|    }
12618|    213|#line 12619 "MachineIndependent/glslang_tab.cpp"
12619|    213|    break;
12620|       |
12621|  1.13k|  case 640: /* compound_statement_no_new_scope: LEFT_BRACE RIGHT_BRACE  */
  ------------------
  |  Branch (12621:3): [True: 1.13k, False: 292M]
  ------------------
12622|  1.13k|#line 4150 "MachineIndependent/glslang.y"
12623|  1.13k|                             {
12624|  1.13k|        (yyval.interm.intermNode) = 0;
12625|  1.13k|    }
12626|  1.13k|#line 12627 "MachineIndependent/glslang_tab.cpp"
12627|  1.13k|    break;
12628|       |
12629|  4.19k|  case 641: /* compound_statement_no_new_scope: LEFT_BRACE statement_list RIGHT_BRACE  */
  ------------------
  |  Branch (12629:3): [True: 4.19k, False: 292M]
  ------------------
12630|  4.19k|#line 4153 "MachineIndependent/glslang.y"
12631|  4.19k|                                            {
12632|  4.19k|        if ((yyvsp[-1].interm.intermNode) && (yyvsp[-1].interm.intermNode)->getAsAggregate()) {
  ------------------
  |  Branch (12632:13): [True: 4.16k, False: 30]
  |  Branch (12632:46): [True: 4.16k, False: 0]
  ------------------
12633|  4.16k|            (yyvsp[-1].interm.intermNode)->getAsAggregate()->setOperator(EOpSequence);
12634|  4.16k|            (yyvsp[-1].interm.intermNode)->getAsAggregate()->setEndLoc((yyvsp[0].lex).loc);
12635|  4.16k|        }
12636|  4.19k|        (yyval.interm.intermNode) = (yyvsp[-1].interm.intermNode);
12637|  4.19k|    }
12638|  4.19k|#line 12639 "MachineIndependent/glslang_tab.cpp"
12639|  4.19k|    break;
12640|       |
12641|  5.46k|  case 642: /* statement_list: statement  */
  ------------------
  |  Branch (12641:3): [True: 5.46k, False: 292M]
  ------------------
12642|  5.46k|#line 4163 "MachineIndependent/glslang.y"
12643|  5.46k|                {
12644|  5.46k|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|  5.46k|#define parseContext (*pParseContext)
  ------------------
12645|  5.46k|        if ((yyvsp[0].interm.intermNode) && (yyvsp[0].interm.intermNode)->getAsBranchNode() && ((yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpCase ||
  ------------------
  |  Branch (12645:13): [True: 3.82k, False: 1.64k]
  |  Branch (12645:45): [True: 238, False: 3.58k]
  |  Branch (12645:97): [True: 52, False: 186]
  ------------------
12646|    186|                                            (yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpDefault)) {
  ------------------
  |  Branch (12646:45): [True: 41, False: 145]
  ------------------
12647|     93|            parseContext.wrapupSwitchSubsequence(0, (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|     93|#define parseContext (*pParseContext)
  ------------------
12648|     93|            (yyval.interm.intermNode) = 0;  // start a fresh subsequence for what's after this case
12649|     93|        }
12650|  5.46k|    }
12651|  5.46k|#line 12652 "MachineIndependent/glslang_tab.cpp"
12652|  5.46k|    break;
12653|       |
12654|   159k|  case 643: /* statement_list: statement_list statement  */
  ------------------
  |  Branch (12654:3): [True: 159k, False: 292M]
  ------------------
12655|   159k|#line 4171 "MachineIndependent/glslang.y"
12656|   159k|                               {
12657|   159k|        if ((yyvsp[0].interm.intermNode) && (yyvsp[0].interm.intermNode)->getAsBranchNode() && ((yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpCase ||
  ------------------
  |  Branch (12657:13): [True: 96.1k, False: 62.8k]
  |  Branch (12657:45): [True: 876, False: 95.2k]
  |  Branch (12657:97): [True: 82, False: 794]
  ------------------
12658|    794|                                            (yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpDefault)) {
  ------------------
  |  Branch (12658:45): [True: 3, False: 791]
  ------------------
12659|     85|            parseContext.wrapupSwitchSubsequence((yyvsp[-1].interm.intermNode) ? (yyvsp[-1].interm.intermNode)->getAsAggregate() : 0, (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|     85|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12659:50): [True: 83, False: 2]
  ------------------
12660|     85|            (yyval.interm.intermNode) = 0;  // start a fresh subsequence for what's after this case
12661|     85|        } else
12662|   158k|            (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-1].interm.intermNode), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|   158k|#define parseContext (*pParseContext)
  ------------------
12663|   159k|    }
12664|   159k|#line 12665 "MachineIndependent/glslang_tab.cpp"
12665|   159k|    break;
12666|       |
12667|    193|  case 644: /* expression_statement: SEMICOLON  */
  ------------------
  |  Branch (12667:3): [True: 193, False: 292M]
  ------------------
12668|    193|#line 4182 "MachineIndependent/glslang.y"
12669|    193|                 { (yyval.interm.intermNode) = 0; }
12670|    193|#line 12671 "MachineIndependent/glslang_tab.cpp"
12671|    193|    break;
12672|       |
12673|  48.6k|  case 645: /* expression_statement: expression SEMICOLON  */
  ------------------
  |  Branch (12673:3): [True: 48.6k, False: 292M]
  ------------------
12674|  48.6k|#line 4183 "MachineIndependent/glslang.y"
12675|  48.6k|                            { (yyval.interm.intermNode) = static_cast<TIntermNode*>((yyvsp[-1].interm.intermTypedNode)); }
12676|  48.6k|#line 12677 "MachineIndependent/glslang_tab.cpp"
12677|  48.6k|    break;
12678|       |
12679|    617|  case 646: /* selection_statement: selection_statement_nonattributed  */
  ------------------
  |  Branch (12679:3): [True: 617, False: 292M]
  ------------------
12680|    617|#line 4187 "MachineIndependent/glslang.y"
12681|    617|                                        {
12682|    617|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12683|    617|    }
12684|    617|#line 12685 "MachineIndependent/glslang_tab.cpp"
12685|    617|    break;
12686|       |
12687|      0|  case 647: /* selection_statement: attribute selection_statement_nonattributed  */
  ------------------
  |  Branch (12687:3): [True: 0, False: 292M]
  ------------------
12688|      0|#line 4190 "MachineIndependent/glslang.y"
12689|      0|                                                  {
12690|      0|        parseContext.requireExtensions((yyvsp[0].interm.intermNode)->getLoc(), 1, &E_GL_EXT_control_flow_attributes, "attribute");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12691|      0|        parseContext.handleSelectionAttributes(*(yyvsp[-1].interm.attributes), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12692|      0|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12693|      0|    }
12694|      0|#line 12695 "MachineIndependent/glslang_tab.cpp"
12695|      0|    break;
12696|       |
12697|    617|  case 648: /* selection_statement_nonattributed: IF LEFT_PAREN expression RIGHT_PAREN selection_rest_statement  */
  ------------------
  |  Branch (12697:3): [True: 617, False: 292M]
  ------------------
12698|    617|#line 4197 "MachineIndependent/glslang.y"
12699|    617|                                                                    {
12700|    617|        parseContext.boolCheck((yyvsp[-4].lex).loc, (yyvsp[-2].interm.intermTypedNode));
  ------------------
  |  |  783|    617|#define parseContext (*pParseContext)
  ------------------
12701|    617|        (yyval.interm.intermNode) = parseContext.intermediate.addSelection((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.nodePair), (yyvsp[-4].lex).loc);
  ------------------
  |  |  783|    617|#define parseContext (*pParseContext)
  ------------------
12702|    617|    }
12703|    617|#line 12704 "MachineIndependent/glslang_tab.cpp"
12704|    617|    break;
12705|       |
12706|     16|  case 649: /* selection_rest_statement: statement_scoped ELSE statement_scoped  */
  ------------------
  |  Branch (12706:3): [True: 16, False: 292M]
  ------------------
12707|     16|#line 4204 "MachineIndependent/glslang.y"
12708|     16|                                             {
12709|     16|        (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermNode);
12710|     16|        (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermNode);
12711|     16|    }
12712|     16|#line 12713 "MachineIndependent/glslang_tab.cpp"
12713|     16|    break;
12714|       |
12715|    601|  case 650: /* selection_rest_statement: statement_scoped  */
  ------------------
  |  Branch (12715:3): [True: 601, False: 292M]
  ------------------
12716|    601|#line 4208 "MachineIndependent/glslang.y"
12717|    601|                       {
12718|    601|        (yyval.interm.nodePair).node1 = (yyvsp[0].interm.intermNode);
12719|    601|        (yyval.interm.nodePair).node2 = 0;
12720|    601|    }
12721|    601|#line 12722 "MachineIndependent/glslang_tab.cpp"
12722|    601|    break;
12723|       |
12724|     75|  case 651: /* condition: expression  */
  ------------------
  |  Branch (12724:3): [True: 75, False: 292M]
  ------------------
12725|     75|#line 4216 "MachineIndependent/glslang.y"
12726|     75|                 {
12727|     75|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermTypedNode);
12728|     75|        parseContext.boolCheck((yyvsp[0].interm.intermTypedNode)->getLoc(), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|     75|#define parseContext (*pParseContext)
  ------------------
12729|     75|    }
12730|     75|#line 12731 "MachineIndependent/glslang_tab.cpp"
12731|     75|    break;
12732|       |
12733|      0|  case 652: /* condition: fully_specified_type IDENTIFIER EQUAL initializer  */
  ------------------
  |  Branch (12733:3): [True: 0, False: 292M]
  ------------------
12734|      0|#line 4220 "MachineIndependent/glslang.y"
12735|      0|                                                        {
12736|      0|        parseContext.boolCheck((yyvsp[-2].lex).loc, (yyvsp[-3].interm.type));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12737|       |
12738|      0|        TType type((yyvsp[-3].interm.type));
12739|      0|        (yyval.interm.intermNode) = parseContext.declareVariable((yyvsp[-2].lex).loc, *(yyvsp[-2].lex).string, (yyvsp[-3].interm.type), 0, (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12740|      0|    }
12741|      0|#line 12742 "MachineIndependent/glslang_tab.cpp"
12742|      0|    break;
12743|       |
12744|     87|  case 653: /* switch_statement: switch_statement_nonattributed  */
  ------------------
  |  Branch (12744:3): [True: 87, False: 292M]
  ------------------
12745|     87|#line 4229 "MachineIndependent/glslang.y"
12746|     87|                                     {
12747|     87|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12748|     87|    }
12749|     87|#line 12750 "MachineIndependent/glslang_tab.cpp"
12750|     87|    break;
12751|       |
12752|      0|  case 654: /* switch_statement: attribute switch_statement_nonattributed  */
  ------------------
  |  Branch (12752:3): [True: 0, False: 292M]
  ------------------
12753|      0|#line 4232 "MachineIndependent/glslang.y"
12754|      0|                                               {
12755|      0|        parseContext.requireExtensions((yyvsp[0].interm.intermNode)->getLoc(), 1, &E_GL_EXT_control_flow_attributes, "attribute");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12756|      0|        parseContext.handleSwitchAttributes(*(yyvsp[-1].interm.attributes), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12757|      0|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12758|      0|    }
12759|      0|#line 12760 "MachineIndependent/glslang_tab.cpp"
12760|      0|    break;
12761|       |
12762|     99|  case 655: /* $@10: %empty  */
  ------------------
  |  Branch (12762:3): [True: 99, False: 292M]
  ------------------
12763|     99|#line 4239 "MachineIndependent/glslang.y"
12764|     99|                                               {
12765|       |        // start new switch sequence on the switch stack
12766|     99|        ++parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     99|#define parseContext (*pParseContext)
  ------------------
12767|     99|        ++parseContext.statementNestingLevel;
  ------------------
  |  |  783|     99|#define parseContext (*pParseContext)
  ------------------
12768|     99|        parseContext.switchSequenceStack.push_back(new TIntermSequence);
  ------------------
  |  |  783|     99|#define parseContext (*pParseContext)
  ------------------
12769|     99|        parseContext.switchLevel.push_back(parseContext.statementNestingLevel);
  ------------------
  |  |  783|     99|#define parseContext (*pParseContext)
  ------------------
                      parseContext.switchLevel.push_back(parseContext.statementNestingLevel);
  ------------------
  |  |  783|     99|#define parseContext (*pParseContext)
  ------------------
12770|     99|        parseContext.symbolTable.push();
  ------------------
  |  |  783|     99|#define parseContext (*pParseContext)
  ------------------
12771|     99|    }
12772|     99|#line 12773 "MachineIndependent/glslang_tab.cpp"
12773|     99|    break;
12774|       |
12775|     87|  case 656: /* switch_statement_nonattributed: SWITCH LEFT_PAREN expression RIGHT_PAREN $@10 LEFT_BRACE switch_statement_list RIGHT_BRACE  */
  ------------------
  |  Branch (12775:3): [True: 87, False: 292M]
  ------------------
12776|     87|#line 4247 "MachineIndependent/glslang.y"
12777|     87|                                                 {
12778|     87|        (yyval.interm.intermNode) = parseContext.addSwitch((yyvsp[-7].lex).loc, (yyvsp[-5].interm.intermTypedNode), (yyvsp[-1].interm.intermNode) ? (yyvsp[-1].interm.intermNode)->getAsAggregate() : 0);
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12778:117): [True: 79, False: 8]
  ------------------
12779|     87|        delete parseContext.switchSequenceStack.back();
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
12780|     87|        parseContext.switchSequenceStack.pop_back();
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
12781|     87|        parseContext.switchLevel.pop_back();
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
12782|     87|        parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
12783|     87|        --parseContext.statementNestingLevel;
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
12784|     87|        --parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     87|#define parseContext (*pParseContext)
  ------------------
12785|     87|    }
12786|     87|#line 12787 "MachineIndependent/glslang_tab.cpp"
12787|     87|    break;
12788|       |
12789|      5|  case 657: /* switch_statement_list: %empty  */
  ------------------
  |  Branch (12789:3): [True: 5, False: 292M]
  ------------------
12790|      5|#line 4259 "MachineIndependent/glslang.y"
12791|      5|                    {
12792|      5|        (yyval.interm.intermNode) = 0;
12793|      5|    }
12794|      5|#line 12795 "MachineIndependent/glslang_tab.cpp"
12795|      5|    break;
12796|       |
12797|     83|  case 658: /* switch_statement_list: statement_list  */
  ------------------
  |  Branch (12797:3): [True: 83, False: 292M]
  ------------------
12798|     83|#line 4262 "MachineIndependent/glslang.y"
12799|     83|                     {
12800|     83|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12801|     83|    }
12802|     83|#line 12803 "MachineIndependent/glslang_tab.cpp"
12803|     83|    break;
12804|       |
12805|    147|  case 659: /* case_label: CASE expression COLON  */
  ------------------
  |  Branch (12805:3): [True: 147, False: 292M]
  ------------------
12806|    147|#line 4268 "MachineIndependent/glslang.y"
12807|    147|                            {
12808|    147|        (yyval.interm.intermNode) = 0;
12809|    147|        if (parseContext.switchLevel.size() == 0)
  ------------------
  |  |  783|    147|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12809:13): [True: 1, False: 146]
  ------------------
12810|      1|            parseContext.error((yyvsp[-2].lex).loc, "cannot appear outside switch statement", "case", "");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
12811|    146|        else if (parseContext.switchLevel.back() != parseContext.statementNestingLevel)
  ------------------
  |  |  783|    146|#define parseContext (*pParseContext)
  ------------------
                      else if (parseContext.switchLevel.back() != parseContext.statementNestingLevel)
  ------------------
  |  |  783|    146|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12811:18): [True: 12, False: 134]
  ------------------
12812|     12|            parseContext.error((yyvsp[-2].lex).loc, "cannot be nested inside control flow", "case", "");
  ------------------
  |  |  783|     12|#define parseContext (*pParseContext)
  ------------------
12813|    134|        else {
12814|    134|            parseContext.constantValueCheck((yyvsp[-1].interm.intermTypedNode), "case");
  ------------------
  |  |  783|    134|#define parseContext (*pParseContext)
  ------------------
12815|    134|            parseContext.integerCheck((yyvsp[-1].interm.intermTypedNode), "case");
  ------------------
  |  |  783|    134|#define parseContext (*pParseContext)
  ------------------
12816|    134|            (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpCase, (yyvsp[-1].interm.intermTypedNode), (yyvsp[-2].lex).loc);
  ------------------
  |  |  783|    134|#define parseContext (*pParseContext)
  ------------------
12817|    134|        }
12818|    147|    }
12819|    147|#line 12820 "MachineIndependent/glslang_tab.cpp"
12820|    147|    break;
12821|       |
12822|     46|  case 660: /* case_label: DEFAULT COLON  */
  ------------------
  |  Branch (12822:3): [True: 46, False: 292M]
  ------------------
12823|     46|#line 4280 "MachineIndependent/glslang.y"
12824|     46|                    {
12825|     46|        (yyval.interm.intermNode) = 0;
12826|     46|        if (parseContext.switchLevel.size() == 0)
  ------------------
  |  |  783|     46|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12826:13): [True: 1, False: 45]
  ------------------
12827|      1|            parseContext.error((yyvsp[-1].lex).loc, "cannot appear outside switch statement", "default", "");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
12828|     45|        else if (parseContext.switchLevel.back() != parseContext.statementNestingLevel)
  ------------------
  |  |  783|     45|#define parseContext (*pParseContext)
  ------------------
                      else if (parseContext.switchLevel.back() != parseContext.statementNestingLevel)
  ------------------
  |  |  783|     45|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12828:18): [True: 1, False: 44]
  ------------------
12829|      1|            parseContext.error((yyvsp[-1].lex).loc, "cannot be nested inside control flow", "default", "");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
12830|     44|        else
12831|     44|            (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpDefault, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     44|#define parseContext (*pParseContext)
  ------------------
12832|     46|    }
12833|     46|#line 12834 "MachineIndependent/glslang_tab.cpp"
12834|     46|    break;
12835|       |
12836|     80|  case 661: /* iteration_statement: iteration_statement_nonattributed  */
  ------------------
  |  Branch (12836:3): [True: 80, False: 292M]
  ------------------
12837|     80|#line 4292 "MachineIndependent/glslang.y"
12838|     80|                                        {
12839|     80|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12840|     80|    }
12841|     80|#line 12842 "MachineIndependent/glslang_tab.cpp"
12842|     80|    break;
12843|       |
12844|      0|  case 662: /* iteration_statement: attribute iteration_statement_nonattributed  */
  ------------------
  |  Branch (12844:3): [True: 0, False: 292M]
  ------------------
12845|      0|#line 4295 "MachineIndependent/glslang.y"
12846|      0|                                                  {
12847|      0|        const char * extensions[3] = { E_GL_EXT_control_flow_attributes, E_GL_EXT_control_flow_attributes2, E_GL_QCOM_multiple_wait_queues };
12848|      0|        parseContext.requireExtensions((yyvsp[0].interm.intermNode)->getLoc(), 3, extensions, "attribute");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12849|      0|        parseContext.handleLoopAttributes(*(yyvsp[-1].interm.attributes), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12850|      0|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12851|      0|    }
12852|      0|#line 12853 "MachineIndependent/glslang_tab.cpp"
12853|      0|    break;
12854|       |
12855|     49|  case 663: /* $@11: %empty  */
  ------------------
  |  Branch (12855:3): [True: 49, False: 292M]
  ------------------
12856|     49|#line 4303 "MachineIndependent/glslang.y"
12857|     49|                       {
12858|     49|        if (! parseContext.limits.whileLoops)
  ------------------
  |  |  783|     49|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12858:13): [True: 0, False: 49]
  ------------------
12859|      0|            parseContext.error((yyvsp[-1].lex).loc, "while loops not available", "limitation", "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12860|     49|        parseContext.symbolTable.push();
  ------------------
  |  |  783|     49|#define parseContext (*pParseContext)
  ------------------
12861|     49|        ++parseContext.loopNestingLevel;
  ------------------
  |  |  783|     49|#define parseContext (*pParseContext)
  ------------------
12862|     49|        ++parseContext.statementNestingLevel;
  ------------------
  |  |  783|     49|#define parseContext (*pParseContext)
  ------------------
12863|     49|        ++parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     49|#define parseContext (*pParseContext)
  ------------------
12864|     49|    }
12865|     49|#line 12866 "MachineIndependent/glslang_tab.cpp"
12866|     49|    break;
12867|       |
12868|     47|  case 664: /* iteration_statement_nonattributed: WHILE LEFT_PAREN $@11 condition RIGHT_PAREN statement_no_new_scope  */
  ------------------
  |  Branch (12868:3): [True: 47, False: 292M]
  ------------------
12869|     47|#line 4311 "MachineIndependent/glslang.y"
12870|     47|                                                   {
12871|     47|        parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
12872|     47|        (yyval.interm.intermNode) = parseContext.intermediate.addLoop((yyvsp[0].interm.intermNode), (yyvsp[-2].interm.intermNode), 0, true, (yyvsp[-5].lex).loc);
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
12873|     47|        if (parseContext.intermediate.getDebugInfo()) {
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12873:13): [True: 0, False: 47]
  ------------------
12874|      0|            (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyval.interm.intermNode), (yyvsp[-5].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12875|      0|            (yyval.interm.intermNode)->getAsAggregate()->setOperator(EOpScope);
12876|      0|        }
12877|     47|        --parseContext.loopNestingLevel;
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
12878|     47|        --parseContext.statementNestingLevel;
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
12879|     47|        --parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     47|#define parseContext (*pParseContext)
  ------------------
12880|     47|    }
12881|     47|#line 12882 "MachineIndependent/glslang_tab.cpp"
12882|     47|    break;
12883|       |
12884|     12|  case 665: /* $@12: %empty  */
  ------------------
  |  Branch (12884:3): [True: 12, False: 292M]
  ------------------
12885|     12|#line 4322 "MachineIndependent/glslang.y"
12886|     12|         {
12887|     12|        parseContext.symbolTable.push();
  ------------------
  |  |  783|     12|#define parseContext (*pParseContext)
  ------------------
12888|     12|        ++parseContext.loopNestingLevel;
  ------------------
  |  |  783|     12|#define parseContext (*pParseContext)
  ------------------
12889|     12|        ++parseContext.statementNestingLevel;
  ------------------
  |  |  783|     12|#define parseContext (*pParseContext)
  ------------------
12890|     12|        ++parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     12|#define parseContext (*pParseContext)
  ------------------
12891|     12|    }
12892|     12|#line 12893 "MachineIndependent/glslang_tab.cpp"
12893|     12|    break;
12894|       |
12895|      8|  case 666: /* iteration_statement_nonattributed: DO $@12 statement WHILE LEFT_PAREN expression RIGHT_PAREN SEMICOLON  */
  ------------------
  |  Branch (12895:3): [True: 8, False: 292M]
  ------------------
12896|      8|#line 4328 "MachineIndependent/glslang.y"
12897|      8|                                                                  {
12898|      8|        if (! parseContext.limits.whileLoops)
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12898:13): [True: 0, False: 8]
  ------------------
12899|      0|            parseContext.error((yyvsp[-7].lex).loc, "do-while loops not available", "limitation", "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12900|       |
12901|      8|        parseContext.boolCheck((yyvsp[0].lex).loc, (yyvsp[-2].interm.intermTypedNode));
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
12902|       |
12903|      8|        (yyval.interm.intermNode) = parseContext.intermediate.addLoop((yyvsp[-5].interm.intermNode), (yyvsp[-2].interm.intermTypedNode), 0, false, (yyvsp[-4].lex).loc);
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
12904|      8|        if (parseContext.intermediate.getDebugInfo()) {
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12904:13): [True: 0, False: 8]
  ------------------
12905|      0|            (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyval.interm.intermNode), (yyvsp[-4].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12906|      0|            (yyval.interm.intermNode)->getAsAggregate()->setOperator(EOpScope);
12907|      0|        }
12908|      8|        parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
12909|      8|        --parseContext.loopNestingLevel;
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
12910|      8|        --parseContext.statementNestingLevel;
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
12911|      8|        --parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|      8|#define parseContext (*pParseContext)
  ------------------
12912|      8|    }
12913|      8|#line 12914 "MachineIndependent/glslang_tab.cpp"
12914|      8|    break;
12915|       |
12916|     26|  case 667: /* $@13: %empty  */
  ------------------
  |  Branch (12916:3): [True: 26, False: 292M]
  ------------------
12917|     26|#line 4344 "MachineIndependent/glslang.y"
12918|     26|                     {
12919|     26|        parseContext.symbolTable.push();
  ------------------
  |  |  783|     26|#define parseContext (*pParseContext)
  ------------------
12920|     26|        ++parseContext.loopNestingLevel;
  ------------------
  |  |  783|     26|#define parseContext (*pParseContext)
  ------------------
12921|     26|        ++parseContext.statementNestingLevel;
  ------------------
  |  |  783|     26|#define parseContext (*pParseContext)
  ------------------
12922|     26|        ++parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     26|#define parseContext (*pParseContext)
  ------------------
12923|     26|    }
12924|     26|#line 12925 "MachineIndependent/glslang_tab.cpp"
12925|     26|    break;
12926|       |
12927|     25|  case 668: /* iteration_statement_nonattributed: FOR LEFT_PAREN $@13 for_init_statement for_rest_statement RIGHT_PAREN statement_no_new_scope  */
  ------------------
  |  Branch (12927:3): [True: 25, False: 292M]
  ------------------
12928|     25|#line 4350 "MachineIndependent/glslang.y"
12929|     25|                                                                               {
12930|     25|        parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
12931|     25|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[-3].interm.intermNode), (yyvsp[-5].lex).loc);
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
12932|     25|        TIntermLoop* forLoop = parseContext.intermediate.addLoop((yyvsp[0].interm.intermNode), reinterpret_cast<TIntermTyped*>((yyvsp[-2].interm.nodePair).node1), reinterpret_cast<TIntermTyped*>((yyvsp[-2].interm.nodePair).node2), true, (yyvsp[-6].lex).loc);
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
12933|     25|        if (! parseContext.limits.nonInductiveForLoops)
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12933:13): [True: 0, False: 25]
  ------------------
12934|      0|            parseContext.inductiveLoopCheck((yyvsp[-6].lex).loc, (yyvsp[-3].interm.intermNode), forLoop);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12935|     25|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyval.interm.intermNode), forLoop, (yyvsp[-6].lex).loc);
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
12936|     25|        (yyval.interm.intermNode)->getAsAggregate()->setOperator(parseContext.intermediate.getDebugInfo() ? EOpScope : EOpSequence);
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12936:66): [True: 0, False: 25]
  ------------------
12937|     25|        --parseContext.loopNestingLevel;
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
12938|     25|        --parseContext.statementNestingLevel;
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
12939|     25|        --parseContext.controlFlowNestingLevel;
  ------------------
  |  |  783|     25|#define parseContext (*pParseContext)
  ------------------
12940|     25|    }
12941|     25|#line 12942 "MachineIndependent/glslang_tab.cpp"
12942|     25|    break;
12943|       |
12944|      0|  case 669: /* for_init_statement: expression_statement  */
  ------------------
  |  Branch (12944:3): [True: 0, False: 292M]
  ------------------
12945|      0|#line 4365 "MachineIndependent/glslang.y"
12946|      0|                           {
12947|      0|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12948|      0|    }
12949|      0|#line 12950 "MachineIndependent/glslang_tab.cpp"
12950|      0|    break;
12951|       |
12952|     26|  case 670: /* for_init_statement: declaration_statement  */
  ------------------
  |  Branch (12952:3): [True: 26, False: 292M]
  ------------------
12953|     26|#line 4368 "MachineIndependent/glslang.y"
12954|     26|                            {
12955|     26|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12956|     26|    }
12957|     26|#line 12958 "MachineIndependent/glslang_tab.cpp"
12958|     26|    break;
12959|       |
12960|     26|  case 671: /* conditionopt: condition  */
  ------------------
  |  Branch (12960:3): [True: 26, False: 292M]
  ------------------
12961|     26|#line 4374 "MachineIndependent/glslang.y"
12962|     26|                {
12963|     26|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
12964|     26|    }
12965|     26|#line 12966 "MachineIndependent/glslang_tab.cpp"
12966|     26|    break;
12967|       |
12968|      0|  case 672: /* conditionopt: %empty  */
  ------------------
  |  Branch (12968:3): [True: 0, False: 292M]
  ------------------
12969|      0|#line 4377 "MachineIndependent/glslang.y"
12970|      0|                        {
12971|      0|        (yyval.interm.intermNode) = 0;
12972|      0|    }
12973|      0|#line 12974 "MachineIndependent/glslang_tab.cpp"
12974|      0|    break;
12975|       |
12976|      0|  case 673: /* for_rest_statement: conditionopt SEMICOLON  */
  ------------------
  |  Branch (12976:3): [True: 0, False: 292M]
  ------------------
12977|      0|#line 4383 "MachineIndependent/glslang.y"
12978|      0|                             {
12979|      0|        (yyval.interm.nodePair).node1 = (yyvsp[-1].interm.intermNode);
12980|      0|        (yyval.interm.nodePair).node2 = 0;
12981|      0|    }
12982|      0|#line 12983 "MachineIndependent/glslang_tab.cpp"
12983|      0|    break;
12984|       |
12985|     26|  case 674: /* for_rest_statement: conditionopt SEMICOLON expression  */
  ------------------
  |  Branch (12985:3): [True: 26, False: 292M]
  ------------------
12986|     26|#line 4387 "MachineIndependent/glslang.y"
12987|     26|                                         {
12988|     26|        (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermNode);
12989|     26|        (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermTypedNode);
12990|     26|    }
12991|     26|#line 12992 "MachineIndependent/glslang_tab.cpp"
12992|     26|    break;
12993|       |
12994|      7|  case 675: /* jump_statement: CONTINUE SEMICOLON  */
  ------------------
  |  Branch (12994:3): [True: 7, False: 292M]
  ------------------
12995|      7|#line 4394 "MachineIndependent/glslang.y"
12996|      7|                         {
12997|      7|        if (parseContext.loopNestingLevel <= 0)
  ------------------
  |  |  783|      7|#define parseContext (*pParseContext)
  ------------------
  |  Branch (12997:13): [True: 0, False: 7]
  ------------------
12998|      0|            parseContext.error((yyvsp[-1].lex).loc, "continue statement only allowed in loops", "", "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
12999|      7|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpContinue, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      7|#define parseContext (*pParseContext)
  ------------------
13000|      7|    }
13001|      7|#line 13002 "MachineIndependent/glslang_tab.cpp"
13002|      7|    break;
13003|       |
13004|    193|  case 676: /* jump_statement: BREAK SEMICOLON  */
  ------------------
  |  Branch (13004:3): [True: 193, False: 292M]
  ------------------
13005|    193|#line 4399 "MachineIndependent/glslang.y"
13006|    193|                      {
13007|    193|        if (parseContext.loopNestingLevel + parseContext.switchSequenceStack.size() <= 0)
  ------------------
  |  |  783|    193|#define parseContext (*pParseContext)
  ------------------
                      if (parseContext.loopNestingLevel + parseContext.switchSequenceStack.size() <= 0)
  ------------------
  |  |  783|    193|#define parseContext (*pParseContext)
  ------------------
  |  Branch (13007:13): [True: 3, False: 190]
  ------------------
13008|      3|            parseContext.error((yyvsp[-1].lex).loc, "break statement only allowed in switch and loops", "", "");
  ------------------
  |  |  783|      3|#define parseContext (*pParseContext)
  ------------------
13009|    193|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpBreak, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|    193|#define parseContext (*pParseContext)
  ------------------
13010|    193|    }
13011|    193|#line 13012 "MachineIndependent/glslang_tab.cpp"
13012|    193|    break;
13013|       |
13014|     10|  case 677: /* jump_statement: RETURN SEMICOLON  */
  ------------------
  |  Branch (13014:3): [True: 10, False: 292M]
  ------------------
13015|     10|#line 4404 "MachineIndependent/glslang.y"
13016|     10|                       {
13017|     10|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|     10|#define parseContext (*pParseContext)
  ------------------
13018|     10|        if (parseContext.currentFunctionType->getBasicType() != EbtVoid)
  ------------------
  |  |  783|     10|#define parseContext (*pParseContext)
  ------------------
  |  Branch (13018:13): [True: 0, False: 10]
  ------------------
13019|      0|            parseContext.error((yyvsp[-1].lex).loc, "non-void function must return a value", "return", "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13020|     10|        if (parseContext.inMain)
  ------------------
  |  |  783|     10|#define parseContext (*pParseContext)
  ------------------
  |  Branch (13020:13): [True: 10, False: 0]
  ------------------
13021|     10|            parseContext.postEntryPointReturn = true;
  ------------------
  |  |  783|     10|#define parseContext (*pParseContext)
  ------------------
13022|     10|    }
13023|     10|#line 13024 "MachineIndependent/glslang_tab.cpp"
13024|     10|    break;
13025|       |
13026|    743|  case 678: /* jump_statement: RETURN expression SEMICOLON  */
  ------------------
  |  Branch (13026:3): [True: 743, False: 292M]
  ------------------
13027|    743|#line 4411 "MachineIndependent/glslang.y"
13028|    743|                                  {
13029|    743|        (yyval.interm.intermNode) = parseContext.handleReturnValue((yyvsp[-2].lex).loc, (yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|    743|#define parseContext (*pParseContext)
  ------------------
13030|    743|    }
13031|    743|#line 13032 "MachineIndependent/glslang_tab.cpp"
13032|    743|    break;
13033|       |
13034|      1|  case 679: /* jump_statement: DISCARD SEMICOLON  */
  ------------------
  |  Branch (13034:3): [True: 1, False: 292M]
  ------------------
13035|      1|#line 4414 "MachineIndependent/glslang.y"
13036|      1|                        {
13037|      1|        parseContext.requireStage((yyvsp[-1].lex).loc, EShLangFragment, "discard");
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
13038|      1|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpKill, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
13039|      1|    }
13040|      1|#line 13041 "MachineIndependent/glslang_tab.cpp"
13041|      1|    break;
13042|       |
13043|      0|  case 680: /* jump_statement: TERMINATE_INVOCATION SEMICOLON  */
  ------------------
  |  Branch (13043:3): [True: 0, False: 292M]
  ------------------
13044|      0|#line 4418 "MachineIndependent/glslang.y"
13045|      0|                                     {
13046|      0|        parseContext.requireStage((yyvsp[-1].lex).loc, EShLangFragment, "terminateInvocation");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13047|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpTerminateInvocation, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13048|      0|    }
13049|      0|#line 13050 "MachineIndependent/glslang_tab.cpp"
13050|      0|    break;
13051|       |
13052|      0|  case 681: /* jump_statement: TERMINATE_RAY SEMICOLON  */
  ------------------
  |  Branch (13052:3): [True: 0, False: 292M]
  ------------------
13053|      0|#line 4422 "MachineIndependent/glslang.y"
13054|      0|                              {
13055|      0|        parseContext.requireStage((yyvsp[-1].lex).loc, EShLangAnyHit, "terminateRayEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13056|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpTerminateRayKHR, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13057|      0|    }
13058|      0|#line 13059 "MachineIndependent/glslang_tab.cpp"
13059|      0|    break;
13060|       |
13061|      0|  case 682: /* jump_statement: IGNORE_INTERSECTION SEMICOLON  */
  ------------------
  |  Branch (13061:3): [True: 0, False: 292M]
  ------------------
13062|      0|#line 4426 "MachineIndependent/glslang.y"
13063|      0|                                    {
13064|      0|        parseContext.requireStage((yyvsp[-1].lex).loc, EShLangAnyHit, "ignoreIntersectionEXT");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13065|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpIgnoreIntersectionKHR, (yyvsp[-1].lex).loc);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13066|      0|    }
13067|      0|#line 13068 "MachineIndependent/glslang_tab.cpp"
13068|      0|    break;
13069|       |
13070|  15.5k|  case 683: /* translation_unit: external_declaration  */
  ------------------
  |  Branch (13070:3): [True: 15.5k, False: 292M]
  ------------------
13071|  15.5k|#line 4435 "MachineIndependent/glslang.y"
13072|  15.5k|                           {
13073|  15.5k|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
13074|  15.5k|        parseContext.intermediate.setTreeRoot((yyval.interm.intermNode));
  ------------------
  |  |  783|  15.5k|#define parseContext (*pParseContext)
  ------------------
13075|  15.5k|    }
13076|  15.5k|#line 13077 "MachineIndependent/glslang_tab.cpp"
13077|  15.5k|    break;
13078|       |
13079|  10.5M|  case 684: /* translation_unit: translation_unit external_declaration  */
  ------------------
  |  Branch (13079:3): [True: 10.5M, False: 281M]
  ------------------
13080|  10.5M|#line 4439 "MachineIndependent/glslang.y"
13081|  10.5M|                                            {
13082|  10.5M|        if ((yyvsp[0].interm.intermNode) != nullptr) {
  ------------------
  |  Branch (13082:13): [True: 5.81k, False: 10.5M]
  ------------------
13083|  5.81k|            (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-1].interm.intermNode), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|  5.81k|#define parseContext (*pParseContext)
  ------------------
13084|  5.81k|            parseContext.intermediate.setTreeRoot((yyval.interm.intermNode));
  ------------------
  |  |  783|  5.81k|#define parseContext (*pParseContext)
  ------------------
13085|  5.81k|        }
13086|  10.5M|    }
13087|  10.5M|#line 13088 "MachineIndependent/glslang_tab.cpp"
13088|  10.5M|    break;
13089|       |
13090|  5.26k|  case 685: /* external_declaration: function_definition  */
  ------------------
  |  Branch (13090:3): [True: 5.26k, False: 292M]
  ------------------
13091|  5.26k|#line 4448 "MachineIndependent/glslang.y"
13092|  5.26k|                          {
13093|  5.26k|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
13094|  5.26k|    }
13095|  5.26k|#line 13096 "MachineIndependent/glslang_tab.cpp"
13096|  5.26k|    break;
13097|       |
13098|  10.5M|  case 686: /* external_declaration: declaration  */
  ------------------
  |  Branch (13098:3): [True: 10.5M, False: 281M]
  ------------------
13099|  10.5M|#line 4451 "MachineIndependent/glslang.y"
13100|  10.5M|                  {
13101|  10.5M|        (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
13102|  10.5M|    }
13103|  10.5M|#line 13104 "MachineIndependent/glslang_tab.cpp"
13104|  10.5M|    break;
13105|       |
13106|     19|  case 687: /* external_declaration: SEMICOLON  */
  ------------------
  |  Branch (13106:3): [True: 19, False: 292M]
  ------------------
13107|     19|#line 4454 "MachineIndependent/glslang.y"
13108|     19|                {
13109|     19|        parseContext.requireProfile((yyvsp[0].lex).loc, ~EEsProfile, "extraneous semicolon");
  ------------------
  |  |  783|     19|#define parseContext (*pParseContext)
  ------------------
13110|     19|        parseContext.profileRequires((yyvsp[0].lex).loc, ~EEsProfile, 460, nullptr, "extraneous semicolon");
  ------------------
  |  |  783|     19|#define parseContext (*pParseContext)
  ------------------
13111|     19|        (yyval.interm.intermNode) = nullptr;
13112|     19|    }
13113|     19|#line 13114 "MachineIndependent/glslang_tab.cpp"
13114|     19|    break;
13115|       |
13116|  5.91k|  case 688: /* $@14: %empty  */
  ------------------
  |  Branch (13116:3): [True: 5.91k, False: 292M]
  ------------------
13117|  5.91k|#line 4462 "MachineIndependent/glslang.y"
13118|  5.91k|                         {
13119|  5.91k|        (yyvsp[0].interm).function = parseContext.handleFunctionDeclarator((yyvsp[0].interm).loc, *(yyvsp[0].interm).function, false /* not prototype */);
  ------------------
  |  |  783|  5.91k|#define parseContext (*pParseContext)
  ------------------
13120|  5.91k|        (yyvsp[0].interm).intermNode = parseContext.handleFunctionDefinition((yyvsp[0].interm).loc, *(yyvsp[0].interm).function);
  ------------------
  |  |  783|  5.91k|#define parseContext (*pParseContext)
  ------------------
13121|       |
13122|       |        // For ES 100 only, according to ES shading language 100 spec: A function
13123|       |        // body has a scope nested inside the function's definition.
13124|  5.91k|        if (parseContext.profile == EEsProfile && parseContext.version == 100)
  ------------------
  |  |  783|  5.91k|#define parseContext (*pParseContext)
  ------------------
                      if (parseContext.profile == EEsProfile && parseContext.version == 100)
  ------------------
  |  |  783|  1.17k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (13124:13): [True: 1.17k, False: 4.73k]
  |  Branch (13124:51): [True: 0, False: 1.17k]
  ------------------
13125|      0|        {
13126|      0|            parseContext.symbolTable.push();
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13127|      0|            ++parseContext.statementNestingLevel;
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13128|      0|        }
13129|  5.91k|    }
13130|  5.91k|#line 13131 "MachineIndependent/glslang_tab.cpp"
13131|  5.91k|    break;
13132|       |
13133|  5.26k|  case 689: /* function_definition: function_prototype $@14 compound_statement_no_new_scope  */
  ------------------
  |  Branch (13133:3): [True: 5.26k, False: 292M]
  ------------------
13134|  5.26k|#line 4474 "MachineIndependent/glslang.y"
13135|  5.26k|                                    {
13136|       |        //   May be best done as post process phase on intermediate code
13137|  5.26k|        if (parseContext.currentFunctionType->getBasicType() != EbtVoid && ! parseContext.functionReturnsValue)
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
                      if (parseContext.currentFunctionType->getBasicType() != EbtVoid && ! parseContext.functionReturnsValue)
  ------------------
  |  |  783|    598|#define parseContext (*pParseContext)
  ------------------
  |  Branch (13137:13): [True: 598, False: 4.66k]
  |  Branch (13137:76): [True: 2, False: 596]
  ------------------
13138|      2|            parseContext.error((yyvsp[-2].interm).loc, "function does not return a value:", "", "%s", (yyvsp[-2].interm).function->getName().c_str());
  ------------------
  |  |  783|      2|#define parseContext (*pParseContext)
  ------------------
13139|  5.26k|        parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
                      parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
13140|  5.26k|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm).intermNode, (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
13141|  5.26k|        (yyval.interm.intermNode)->getAsAggregate()->setLinkType((yyvsp[-2].interm).function->getLinkType());
13142|  5.26k|        (yyval.interm.intermNode)->getAsAggregate()->setFunctionControl((yyvsp[-2].interm).function->getFunctionControl());
13143|  5.26k|        parseContext.intermediate.setAggregateOperator((yyval.interm.intermNode), EOpFunction, (yyvsp[-2].interm).function->getType(), (yyvsp[-2].interm).loc);
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
13144|  5.26k|        (yyval.interm.intermNode)->getAsAggregate()->setName((yyvsp[-2].interm).function->getMangledName().c_str());
13145|       |
13146|       |        // store the pragma information for debug and optimize and other vendor specific
13147|       |        // information. This information can be queried from the parse tree
13148|  5.26k|        (yyval.interm.intermNode)->getAsAggregate()->setOptimize(parseContext.contextPragma.optimize);
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
13149|  5.26k|        (yyval.interm.intermNode)->getAsAggregate()->setDebug(parseContext.contextPragma.debug);
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
13150|  5.26k|        (yyval.interm.intermNode)->getAsAggregate()->setPragmaTable(parseContext.contextPragma.pragmaTable);
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
13151|       |
13152|       |        // Set currentFunctionType to empty pointer when goes outside of the function
13153|  5.26k|        parseContext.currentFunctionType = nullptr;
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
13154|       |
13155|       |        // For ES 100 only, according to ES shading language 100 spec: A function
13156|       |        // body has a scope nested inside the function's definition.
13157|  5.26k|        if (parseContext.profile == EEsProfile && parseContext.version == 100)
  ------------------
  |  |  783|  5.26k|#define parseContext (*pParseContext)
  ------------------
                      if (parseContext.profile == EEsProfile && parseContext.version == 100)
  ------------------
  |  |  783|  1.11k|#define parseContext (*pParseContext)
  ------------------
  |  Branch (13157:13): [True: 1.11k, False: 4.14k]
  |  Branch (13157:51): [True: 0, False: 1.11k]
  ------------------
13158|      0|        {
13159|      0|            parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                          parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13160|      0|            --parseContext.statementNestingLevel;
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13161|      0|        }
13162|  5.26k|    }
13163|  5.26k|#line 13164 "MachineIndependent/glslang_tab.cpp"
13164|  5.26k|    break;
13165|       |
13166|      0|  case 690: /* attribute: LEFT_BRACKET LEFT_BRACKET attribute_list RIGHT_BRACKET RIGHT_BRACKET  */
  ------------------
  |  Branch (13166:3): [True: 0, False: 292M]
  ------------------
13167|      0|#line 4505 "MachineIndependent/glslang.y"
13168|      0|                                                                           {
13169|      0|        (yyval.interm.attributes) = (yyvsp[-2].interm.attributes);
13170|      0|    }
13171|      0|#line 13172 "MachineIndependent/glslang_tab.cpp"
13172|      0|    break;
13173|       |
13174|      1|  case 691: /* attribute_list: single_attribute  */
  ------------------
  |  Branch (13174:3): [True: 1, False: 292M]
  ------------------
13175|      1|#line 4510 "MachineIndependent/glslang.y"
13176|      1|                       {
13177|      1|        (yyval.interm.attributes) = (yyvsp[0].interm.attributes);
13178|      1|    }
13179|      1|#line 13180 "MachineIndependent/glslang_tab.cpp"
13180|      1|    break;
13181|       |
13182|      0|  case 692: /* attribute_list: attribute_list COMMA single_attribute  */
  ------------------
  |  Branch (13182:3): [True: 0, False: 292M]
  ------------------
13183|      0|#line 4513 "MachineIndependent/glslang.y"
13184|      0|                                            {
13185|      0|        (yyval.interm.attributes) = parseContext.mergeAttributes((yyvsp[-2].interm.attributes), (yyvsp[0].interm.attributes));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13186|      0|    }
13187|      0|#line 13188 "MachineIndependent/glslang_tab.cpp"
13188|      0|    break;
13189|       |
13190|      1|  case 693: /* single_attribute: IDENTIFIER  */
  ------------------
  |  Branch (13190:3): [True: 1, False: 292M]
  ------------------
13191|      1|#line 4518 "MachineIndependent/glslang.y"
13192|      1|                 {
13193|      1|        (yyval.interm.attributes) = parseContext.makeAttributes(*(yyvsp[0].lex).string);
  ------------------
  |  |  783|      1|#define parseContext (*pParseContext)
  ------------------
13194|      1|    }
13195|      1|#line 13196 "MachineIndependent/glslang_tab.cpp"
13196|      1|    break;
13197|       |
13198|      0|  case 694: /* single_attribute: IDENTIFIER LEFT_PAREN constant_expression RIGHT_PAREN  */
  ------------------
  |  Branch (13198:3): [True: 0, False: 292M]
  ------------------
13199|      0|#line 4521 "MachineIndependent/glslang.y"
13200|      0|                                                            {
13201|      0|        (yyval.interm.attributes) = parseContext.makeAttributes(*(yyvsp[-3].lex).string, (yyvsp[-1].interm.intermTypedNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13202|      0|    }
13203|      0|#line 13204 "MachineIndependent/glslang_tab.cpp"
13204|      0|    break;
13205|       |
13206|      0|  case 695: /* single_attribute: INLINE  */
  ------------------
  |  Branch (13206:3): [True: 0, False: 292M]
  ------------------
13207|      0|#line 4524 "MachineIndependent/glslang.y"
13208|      0|             {
13209|      0|        (yyval.interm.attributes) = parseContext.makeAttributes(TString("inline"));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13210|      0|    }
13211|      0|#line 13212 "MachineIndependent/glslang_tab.cpp"
13212|      0|    break;
13213|       |
13214|      0|  case 696: /* single_attribute: NOINLINE  */
  ------------------
  |  Branch (13214:3): [True: 0, False: 292M]
  ------------------
13215|      0|#line 4527 "MachineIndependent/glslang.y"
13216|      0|               {
13217|      0|        (yyval.interm.attributes) = parseContext.makeAttributes(TString("noinline"));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13218|      0|    }
13219|      0|#line 13220 "MachineIndependent/glslang_tab.cpp"
13220|      0|    break;
13221|       |
13222|      0|  case 697: /* spirv_requirements_list: spirv_requirements_parameter  */
  ------------------
  |  Branch (13222:3): [True: 0, False: 292M]
  ------------------
13223|      0|#line 4532 "MachineIndependent/glslang.y"
13224|      0|                                   {
13225|      0|        (yyval.interm.spirvReq) = (yyvsp[0].interm.spirvReq);
13226|      0|    }
13227|      0|#line 13228 "MachineIndependent/glslang_tab.cpp"
13228|      0|    break;
13229|       |
13230|      0|  case 698: /* spirv_requirements_list: spirv_requirements_list COMMA spirv_requirements_parameter  */
  ------------------
  |  Branch (13230:3): [True: 0, False: 292M]
  ------------------
13231|      0|#line 4535 "MachineIndependent/glslang.y"
13232|      0|                                                                 {
13233|      0|        (yyval.interm.spirvReq) = parseContext.mergeSpirvRequirements((yyvsp[-1].lex).loc, (yyvsp[-2].interm.spirvReq), (yyvsp[0].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13234|      0|    }
13235|      0|#line 13236 "MachineIndependent/glslang_tab.cpp"
13236|      0|    break;
13237|       |
13238|      0|  case 699: /* spirv_requirements_parameter: IDENTIFIER EQUAL LEFT_BRACKET spirv_extension_list RIGHT_BRACKET  */
  ------------------
  |  Branch (13238:3): [True: 0, False: 292M]
  ------------------
13239|      0|#line 4540 "MachineIndependent/glslang.y"
13240|      0|                                                                       {
13241|      0|        (yyval.interm.spirvReq) = parseContext.makeSpirvRequirement((yyvsp[-3].lex).loc, *(yyvsp[-4].lex).string, (yyvsp[-1].interm.intermNode)->getAsAggregate(), nullptr);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13242|      0|    }
13243|      0|#line 13244 "MachineIndependent/glslang_tab.cpp"
13244|      0|    break;
13245|       |
13246|      0|  case 700: /* spirv_requirements_parameter: IDENTIFIER EQUAL LEFT_BRACKET spirv_capability_list RIGHT_BRACKET  */
  ------------------
  |  Branch (13246:3): [True: 0, False: 292M]
  ------------------
13247|      0|#line 4543 "MachineIndependent/glslang.y"
13248|      0|                                                                        {
13249|      0|        (yyval.interm.spirvReq) = parseContext.makeSpirvRequirement((yyvsp[-3].lex).loc, *(yyvsp[-4].lex).string, nullptr, (yyvsp[-1].interm.intermNode)->getAsAggregate());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13250|      0|    }
13251|      0|#line 13252 "MachineIndependent/glslang_tab.cpp"
13252|      0|    break;
13253|       |
13254|      0|  case 701: /* spirv_extension_list: STRING_LITERAL  */
  ------------------
  |  Branch (13254:3): [True: 0, False: 292M]
  ------------------
13255|      0|#line 4548 "MachineIndependent/glslang.y"
13256|      0|                     {
13257|      0|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate(parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate(parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13258|      0|    }
13259|      0|#line 13260 "MachineIndependent/glslang_tab.cpp"
13260|      0|    break;
13261|       |
13262|      0|  case 702: /* spirv_extension_list: spirv_extension_list COMMA STRING_LITERAL  */
  ------------------
  |  Branch (13262:3): [True: 0, False: 292M]
  ------------------
13263|      0|#line 4551 "MachineIndependent/glslang.y"
13264|      0|                                                {
13265|      0|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13266|      0|    }
13267|      0|#line 13268 "MachineIndependent/glslang_tab.cpp"
13268|      0|    break;
13269|       |
13270|      0|  case 703: /* spirv_capability_list: INTCONSTANT  */
  ------------------
  |  Branch (13270:3): [True: 0, False: 292M]
  ------------------
13271|      0|#line 4556 "MachineIndependent/glslang.y"
13272|      0|                  {
13273|      0|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate(parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate(parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13274|      0|    }
13275|      0|#line 13276 "MachineIndependent/glslang_tab.cpp"
13276|      0|    break;
13277|       |
13278|      0|  case 704: /* spirv_capability_list: spirv_capability_list COMMA INTCONSTANT  */
  ------------------
  |  Branch (13278:3): [True: 0, False: 292M]
  ------------------
13279|      0|#line 4559 "MachineIndependent/glslang.y"
13280|      0|                                              {
13281|      0|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13282|      0|    }
13283|      0|#line 13284 "MachineIndependent/glslang_tab.cpp"
13284|      0|    break;
13285|       |
13286|      0|  case 705: /* spirv_execution_mode_qualifier: SPIRV_EXECUTION_MODE LEFT_PAREN INTCONSTANT RIGHT_PAREN  */
  ------------------
  |  Branch (13286:3): [True: 0, False: 292M]
  ------------------
13287|      0|#line 4564 "MachineIndependent/glslang.y"
13288|      0|                                                              {
13289|      0|        parseContext.intermediate.insertSpirvExecutionMode((yyvsp[-1].lex).i);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13290|      0|        (yyval.interm.intermNode) = 0;
13291|      0|    }
13292|      0|#line 13293 "MachineIndependent/glslang_tab.cpp"
13293|      0|    break;
13294|       |
13295|      0|  case 706: /* spirv_execution_mode_qualifier: SPIRV_EXECUTION_MODE LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT RIGHT_PAREN  */
  ------------------
  |  Branch (13295:3): [True: 0, False: 292M]
  ------------------
13296|      0|#line 4568 "MachineIndependent/glslang.y"
13297|      0|                                                                                            {
13298|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-3].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13299|      0|        parseContext.intermediate.insertSpirvExecutionMode((yyvsp[-1].lex).i);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13300|      0|        (yyval.interm.intermNode) = 0;
13301|      0|    }
13302|      0|#line 13303 "MachineIndependent/glslang_tab.cpp"
13303|      0|    break;
13304|       |
13305|      0|  case 707: /* spirv_execution_mode_qualifier: SPIRV_EXECUTION_MODE LEFT_PAREN INTCONSTANT COMMA spirv_execution_mode_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13305:3): [True: 0, False: 292M]
  ------------------
13306|      0|#line 4573 "MachineIndependent/glslang.y"
13307|      0|                                                                                                        {
13308|      0|        parseContext.intermediate.insertSpirvExecutionMode((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13309|      0|        (yyval.interm.intermNode) = 0;
13310|      0|    }
13311|      0|#line 13312 "MachineIndependent/glslang_tab.cpp"
13312|      0|    break;
13313|       |
13314|      0|  case 708: /* spirv_execution_mode_qualifier: SPIRV_EXECUTION_MODE LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT COMMA spirv_execution_mode_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13314:3): [True: 0, False: 292M]
  ------------------
13315|      0|#line 4577 "MachineIndependent/glslang.y"
13316|      0|                                                                                                                                      {
13317|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-5].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13318|      0|        parseContext.intermediate.insertSpirvExecutionMode((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13319|      0|        (yyval.interm.intermNode) = 0;
13320|      0|    }
13321|      0|#line 13322 "MachineIndependent/glslang_tab.cpp"
13322|      0|    break;
13323|       |
13324|      0|  case 709: /* spirv_execution_mode_qualifier: SPIRV_EXECUTION_MODE_ID LEFT_PAREN INTCONSTANT COMMA spirv_execution_mode_id_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13324:3): [True: 0, False: 292M]
  ------------------
13325|      0|#line 4582 "MachineIndependent/glslang.y"
13326|      0|                                                                                                              {
13327|      0|        parseContext.intermediate.insertSpirvExecutionModeId((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13328|      0|        (yyval.interm.intermNode) = 0;
13329|      0|    }
13330|      0|#line 13331 "MachineIndependent/glslang_tab.cpp"
13331|      0|    break;
13332|       |
13333|      0|  case 710: /* spirv_execution_mode_qualifier: SPIRV_EXECUTION_MODE_ID LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT COMMA spirv_execution_mode_id_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13333:3): [True: 0, False: 292M]
  ------------------
13334|      0|#line 4586 "MachineIndependent/glslang.y"
13335|      0|                                                                                                                                            {
13336|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-5].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13337|      0|        parseContext.intermediate.insertSpirvExecutionModeId((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13338|      0|        (yyval.interm.intermNode) = 0;
13339|      0|    }
13340|      0|#line 13341 "MachineIndependent/glslang_tab.cpp"
13341|      0|    break;
13342|       |
13343|      0|  case 711: /* spirv_execution_mode_parameter_list: spirv_execution_mode_parameter  */
  ------------------
  |  Branch (13343:3): [True: 0, False: 292M]
  ------------------
13344|      0|#line 4593 "MachineIndependent/glslang.y"
13345|      0|                                     {
13346|      0|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13347|      0|    }
13348|      0|#line 13349 "MachineIndependent/glslang_tab.cpp"
13349|      0|    break;
13350|       |
13351|      0|  case 712: /* spirv_execution_mode_parameter_list: spirv_execution_mode_parameter_list COMMA spirv_execution_mode_parameter  */
  ------------------
  |  Branch (13351:3): [True: 0, False: 292M]
  ------------------
13352|      0|#line 4596 "MachineIndependent/glslang.y"
13353|      0|                                                                               {
13354|      0|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13355|      0|    }
13356|      0|#line 13357 "MachineIndependent/glslang_tab.cpp"
13357|      0|    break;
13358|       |
13359|      0|  case 713: /* spirv_execution_mode_parameter: FLOATCONSTANT  */
  ------------------
  |  Branch (13359:3): [True: 0, False: 292M]
  ------------------
13360|      0|#line 4601 "MachineIndependent/glslang.y"
13361|      0|                    {
13362|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13363|      0|    }
13364|      0|#line 13365 "MachineIndependent/glslang_tab.cpp"
13365|      0|    break;
13366|       |
13367|      0|  case 714: /* spirv_execution_mode_parameter: INTCONSTANT  */
  ------------------
  |  Branch (13367:3): [True: 0, False: 292M]
  ------------------
13368|      0|#line 4604 "MachineIndependent/glslang.y"
13369|      0|                  {
13370|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13371|      0|    }
13372|      0|#line 13373 "MachineIndependent/glslang_tab.cpp"
13373|      0|    break;
13374|       |
13375|      0|  case 715: /* spirv_execution_mode_parameter: UINTCONSTANT  */
  ------------------
  |  Branch (13375:3): [True: 0, False: 292M]
  ------------------
13376|      0|#line 4607 "MachineIndependent/glslang.y"
13377|      0|                   {
13378|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13379|      0|    }
13380|      0|#line 13381 "MachineIndependent/glslang_tab.cpp"
13381|      0|    break;
13382|       |
13383|      0|  case 716: /* spirv_execution_mode_parameter: BOOLCONSTANT  */
  ------------------
  |  Branch (13383:3): [True: 0, False: 292M]
  ------------------
13384|      0|#line 4610 "MachineIndependent/glslang.y"
13385|      0|                   {
13386|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13387|      0|    }
13388|      0|#line 13389 "MachineIndependent/glslang_tab.cpp"
13389|      0|    break;
13390|       |
13391|      0|  case 717: /* spirv_execution_mode_parameter: STRING_LITERAL  */
  ------------------
  |  Branch (13391:3): [True: 0, False: 292M]
  ------------------
13392|      0|#line 4613 "MachineIndependent/glslang.y"
13393|      0|                     {
13394|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13395|      0|    }
13396|      0|#line 13397 "MachineIndependent/glslang_tab.cpp"
13397|      0|    break;
13398|       |
13399|      0|  case 718: /* spirv_execution_mode_id_parameter_list: constant_expression  */
  ------------------
  |  Branch (13399:3): [True: 0, False: 292M]
  ------------------
13400|      0|#line 4618 "MachineIndependent/glslang.y"
13401|      0|                          {
13402|      0|        if ((yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtFloat &&
  ------------------
  |  Branch (13402:13): [True: 0, False: 0]
  ------------------
13403|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtInt &&
  ------------------
  |  Branch (13403:13): [True: 0, False: 0]
  ------------------
13404|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtUint &&
  ------------------
  |  Branch (13404:13): [True: 0, False: 0]
  ------------------
13405|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtBool &&
  ------------------
  |  Branch (13405:13): [True: 0, False: 0]
  ------------------
13406|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtString)
  ------------------
  |  Branch (13406:13): [True: 0, False: 0]
  ------------------
13407|      0|            parseContext.error((yyvsp[0].interm.intermTypedNode)->getLoc(), "this type not allowed", (yyvsp[0].interm.intermTypedNode)->getType().getBasicString(), "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13408|      0|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13409|      0|    }
13410|      0|#line 13411 "MachineIndependent/glslang_tab.cpp"
13411|      0|    break;
13412|       |
13413|      0|  case 719: /* spirv_execution_mode_id_parameter_list: spirv_execution_mode_id_parameter_list COMMA constant_expression  */
  ------------------
  |  Branch (13413:3): [True: 0, False: 292M]
  ------------------
13414|      0|#line 4627 "MachineIndependent/glslang.y"
13415|      0|                                                                       {
13416|      0|        if ((yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtFloat &&
  ------------------
  |  Branch (13416:13): [True: 0, False: 0]
  ------------------
13417|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtInt &&
  ------------------
  |  Branch (13417:13): [True: 0, False: 0]
  ------------------
13418|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtUint &&
  ------------------
  |  Branch (13418:13): [True: 0, False: 0]
  ------------------
13419|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtBool &&
  ------------------
  |  Branch (13419:13): [True: 0, False: 0]
  ------------------
13420|      0|            (yyvsp[0].interm.intermTypedNode)->getBasicType() != EbtString)
  ------------------
  |  Branch (13420:13): [True: 0, False: 0]
  ------------------
13421|      0|            parseContext.error((yyvsp[0].interm.intermTypedNode)->getLoc(), "this type not allowed", (yyvsp[0].interm.intermTypedNode)->getType().getBasicString(), "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13422|      0|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), (yyvsp[0].interm.intermTypedNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13423|      0|    }
13424|      0|#line 13425 "MachineIndependent/glslang_tab.cpp"
13425|      0|    break;
13426|       |
13427|      0|  case 720: /* spirv_storage_class_qualifier: SPIRV_STORAGE_CLASS LEFT_PAREN INTCONSTANT RIGHT_PAREN  */
  ------------------
  |  Branch (13427:3): [True: 0, False: 292M]
  ------------------
13428|      0|#line 4638 "MachineIndependent/glslang.y"
13429|      0|                                                             {
13430|      0|        (yyval.interm.type).init((yyvsp[-3].lex).loc);
13431|      0|        (yyval.interm.type).qualifier.storage = EvqSpirvStorageClass;
13432|      0|        (yyval.interm.type).qualifier.spirvStorageClass = (yyvsp[-1].lex).i;
13433|      0|    }
13434|      0|#line 13435 "MachineIndependent/glslang_tab.cpp"
13435|      0|    break;
13436|       |
13437|      0|  case 721: /* spirv_storage_class_qualifier: SPIRV_STORAGE_CLASS LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT RIGHT_PAREN  */
  ------------------
  |  Branch (13437:3): [True: 0, False: 292M]
  ------------------
13438|      0|#line 4643 "MachineIndependent/glslang.y"
13439|      0|                                                                                           {
13440|      0|        (yyval.interm.type).init((yyvsp[-5].lex).loc);
13441|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-3].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13442|      0|        (yyval.interm.type).qualifier.storage = EvqSpirvStorageClass;
13443|      0|        (yyval.interm.type).qualifier.spirvStorageClass = (yyvsp[-1].lex).i;
13444|      0|    }
13445|      0|#line 13446 "MachineIndependent/glslang_tab.cpp"
13446|      0|    break;
13447|       |
13448|      0|  case 722: /* spirv_decorate_qualifier: SPIRV_DECORATE LEFT_PAREN INTCONSTANT RIGHT_PAREN  */
  ------------------
  |  Branch (13448:3): [True: 0, False: 292M]
  ------------------
13449|      0|#line 4651 "MachineIndependent/glslang.y"
13450|      0|                                                       {
13451|      0|        (yyval.interm.type).init((yyvsp[-3].lex).loc);
13452|      0|        (yyval.interm.type).qualifier.setSpirvDecorate((yyvsp[-1].lex).i);
13453|      0|    }
13454|      0|#line 13455 "MachineIndependent/glslang_tab.cpp"
13455|      0|    break;
13456|       |
13457|      0|  case 723: /* spirv_decorate_qualifier: SPIRV_DECORATE LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT RIGHT_PAREN  */
  ------------------
  |  Branch (13457:3): [True: 0, False: 292M]
  ------------------
13458|      0|#line 4655 "MachineIndependent/glslang.y"
13459|      0|                                                                                     {
13460|      0|        (yyval.interm.type).init((yyvsp[-5].lex).loc);
13461|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-3].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13462|      0|        (yyval.interm.type).qualifier.setSpirvDecorate((yyvsp[-1].lex).i);
13463|      0|    }
13464|      0|#line 13465 "MachineIndependent/glslang_tab.cpp"
13465|      0|    break;
13466|       |
13467|      0|  case 724: /* spirv_decorate_qualifier: SPIRV_DECORATE LEFT_PAREN INTCONSTANT COMMA spirv_decorate_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13467:3): [True: 0, False: 292M]
  ------------------
13468|      0|#line 4660 "MachineIndependent/glslang.y"
13469|      0|                                                                                            {
13470|      0|        (yyval.interm.type).init((yyvsp[-5].lex).loc);
13471|      0|        (yyval.interm.type).qualifier.setSpirvDecorate((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
13472|      0|    }
13473|      0|#line 13474 "MachineIndependent/glslang_tab.cpp"
13474|      0|    break;
13475|       |
13476|      0|  case 725: /* spirv_decorate_qualifier: SPIRV_DECORATE LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT COMMA spirv_decorate_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13476:3): [True: 0, False: 292M]
  ------------------
13477|      0|#line 4664 "MachineIndependent/glslang.y"
13478|      0|                                                                                                                          {
13479|      0|        (yyval.interm.type).init((yyvsp[-7].lex).loc);
13480|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-5].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13481|      0|        (yyval.interm.type).qualifier.setSpirvDecorate((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
13482|      0|    }
13483|      0|#line 13484 "MachineIndependent/glslang_tab.cpp"
13484|      0|    break;
13485|       |
13486|      0|  case 726: /* spirv_decorate_qualifier: SPIRV_DECORATE_ID LEFT_PAREN INTCONSTANT COMMA spirv_decorate_id_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13486:3): [True: 0, False: 292M]
  ------------------
13487|      0|#line 4669 "MachineIndependent/glslang.y"
13488|      0|                                                                                                  {
13489|      0|        (yyval.interm.type).init((yyvsp[-5].lex).loc);
13490|      0|        (yyval.interm.type).qualifier.setSpirvDecorateId((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
13491|      0|    }
13492|      0|#line 13493 "MachineIndependent/glslang_tab.cpp"
13493|      0|    break;
13494|       |
13495|      0|  case 727: /* spirv_decorate_qualifier: SPIRV_DECORATE_ID LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT COMMA spirv_decorate_id_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13495:3): [True: 0, False: 292M]
  ------------------
13496|      0|#line 4673 "MachineIndependent/glslang.y"
13497|      0|                                                                                                                                {
13498|      0|        (yyval.interm.type).init((yyvsp[-7].lex).loc);
13499|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-5].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13500|      0|        (yyval.interm.type).qualifier.setSpirvDecorateId((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
13501|      0|    }
13502|      0|#line 13503 "MachineIndependent/glslang_tab.cpp"
13503|      0|    break;
13504|       |
13505|      0|  case 728: /* spirv_decorate_qualifier: SPIRV_DECORATE_STRING LEFT_PAREN INTCONSTANT COMMA spirv_decorate_string_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13505:3): [True: 0, False: 292M]
  ------------------
13506|      0|#line 4678 "MachineIndependent/glslang.y"
13507|      0|                                                                                                          {
13508|      0|        (yyval.interm.type).init((yyvsp[-5].lex).loc);
13509|      0|        (yyval.interm.type).qualifier.setSpirvDecorateString((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
13510|      0|    }
13511|      0|#line 13512 "MachineIndependent/glslang_tab.cpp"
13512|      0|    break;
13513|       |
13514|      0|  case 729: /* spirv_decorate_qualifier: SPIRV_DECORATE_STRING LEFT_PAREN spirv_requirements_list COMMA INTCONSTANT COMMA spirv_decorate_string_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13514:3): [True: 0, False: 292M]
  ------------------
13515|      0|#line 4682 "MachineIndependent/glslang.y"
13516|      0|                                                                                                                                        {
13517|      0|        (yyval.interm.type).init((yyvsp[-7].lex).loc);
13518|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-5].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13519|      0|        (yyval.interm.type).qualifier.setSpirvDecorateString((yyvsp[-3].lex).i, (yyvsp[-1].interm.intermNode)->getAsAggregate());
13520|      0|    }
13521|      0|#line 13522 "MachineIndependent/glslang_tab.cpp"
13522|      0|    break;
13523|       |
13524|      0|  case 730: /* spirv_decorate_parameter_list: spirv_decorate_parameter  */
  ------------------
  |  Branch (13524:3): [True: 0, False: 292M]
  ------------------
13525|      0|#line 4689 "MachineIndependent/glslang.y"
13526|      0|                               {
13527|      0|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13528|      0|    }
13529|      0|#line 13530 "MachineIndependent/glslang_tab.cpp"
13530|      0|    break;
13531|       |
13532|      0|  case 731: /* spirv_decorate_parameter_list: spirv_decorate_parameter_list COMMA spirv_decorate_parameter  */
  ------------------
  |  Branch (13532:3): [True: 0, False: 292M]
  ------------------
13533|      0|#line 4692 "MachineIndependent/glslang.y"
13534|      0|                                                                   {
13535|      0|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13536|      0|    }
13537|      0|#line 13538 "MachineIndependent/glslang_tab.cpp"
13538|      0|    break;
13539|       |
13540|      0|  case 732: /* spirv_decorate_parameter: FLOATCONSTANT  */
  ------------------
  |  Branch (13540:3): [True: 0, False: 292M]
  ------------------
13541|      0|#line 4697 "MachineIndependent/glslang.y"
13542|      0|                    {
13543|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13544|      0|    }
13545|      0|#line 13546 "MachineIndependent/glslang_tab.cpp"
13546|      0|    break;
13547|       |
13548|      0|  case 733: /* spirv_decorate_parameter: INTCONSTANT  */
  ------------------
  |  Branch (13548:3): [True: 0, False: 292M]
  ------------------
13549|      0|#line 4700 "MachineIndependent/glslang.y"
13550|      0|                  {
13551|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13552|      0|    }
13553|      0|#line 13554 "MachineIndependent/glslang_tab.cpp"
13554|      0|    break;
13555|       |
13556|      0|  case 734: /* spirv_decorate_parameter: UINTCONSTANT  */
  ------------------
  |  Branch (13556:3): [True: 0, False: 292M]
  ------------------
13557|      0|#line 4703 "MachineIndependent/glslang.y"
13558|      0|                   {
13559|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13560|      0|    }
13561|      0|#line 13562 "MachineIndependent/glslang_tab.cpp"
13562|      0|    break;
13563|       |
13564|      0|  case 735: /* spirv_decorate_parameter: BOOLCONSTANT  */
  ------------------
  |  Branch (13564:3): [True: 0, False: 292M]
  ------------------
13565|      0|#line 4706 "MachineIndependent/glslang.y"
13566|      0|                   {
13567|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13568|      0|    }
13569|      0|#line 13570 "MachineIndependent/glslang_tab.cpp"
13570|      0|    break;
13571|       |
13572|      0|  case 736: /* spirv_decorate_id_parameter_list: spirv_decorate_id_parameter  */
  ------------------
  |  Branch (13572:3): [True: 0, False: 292M]
  ------------------
13573|      0|#line 4711 "MachineIndependent/glslang.y"
13574|      0|                                  {
13575|      0|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13576|      0|    }
13577|      0|#line 13578 "MachineIndependent/glslang_tab.cpp"
13578|      0|    break;
13579|       |
13580|      0|  case 737: /* spirv_decorate_id_parameter_list: spirv_decorate_id_parameter_list COMMA spirv_decorate_id_parameter  */
  ------------------
  |  Branch (13580:3): [True: 0, False: 292M]
  ------------------
13581|      0|#line 4714 "MachineIndependent/glslang.y"
13582|      0|                                                                         {
13583|      0|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), (yyvsp[0].interm.intermNode));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13584|      0|    }
13585|      0|#line 13586 "MachineIndependent/glslang_tab.cpp"
13586|      0|    break;
13587|       |
13588|      0|  case 738: /* spirv_decorate_id_parameter: variable_identifier  */
  ------------------
  |  Branch (13588:3): [True: 0, False: 292M]
  ------------------
13589|      0|#line 4719 "MachineIndependent/glslang.y"
13590|      0|                          {
13591|      0|        if ((yyvsp[0].interm.intermTypedNode)->getAsConstantUnion() || (yyvsp[0].interm.intermTypedNode)->getAsSymbolNode())
  ------------------
  |  Branch (13591:13): [True: 0, False: 0]
  |  Branch (13591:72): [True: 0, False: 0]
  ------------------
13592|      0|            (yyval.interm.intermNode) = (yyvsp[0].interm.intermTypedNode);
13593|      0|        else
13594|      0|            parseContext.error((yyvsp[0].interm.intermTypedNode)->getLoc(), "only allow constants or variables which are not elements of a composite", "", "");
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13595|      0|    }
13596|      0|#line 13597 "MachineIndependent/glslang_tab.cpp"
13597|      0|    break;
13598|       |
13599|      0|  case 739: /* spirv_decorate_id_parameter: FLOATCONSTANT  */
  ------------------
  |  Branch (13599:3): [True: 0, False: 292M]
  ------------------
13600|      0|#line 4725 "MachineIndependent/glslang.y"
13601|      0|                    {
13602|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13603|      0|    }
13604|      0|#line 13605 "MachineIndependent/glslang_tab.cpp"
13605|      0|    break;
13606|       |
13607|      0|  case 740: /* spirv_decorate_id_parameter: INTCONSTANT  */
  ------------------
  |  Branch (13607:3): [True: 0, False: 292M]
  ------------------
13608|      0|#line 4728 "MachineIndependent/glslang.y"
13609|      0|                  {
13610|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13611|      0|    }
13612|      0|#line 13613 "MachineIndependent/glslang_tab.cpp"
13613|      0|    break;
13614|       |
13615|      0|  case 741: /* spirv_decorate_id_parameter: UINTCONSTANT  */
  ------------------
  |  Branch (13615:3): [True: 0, False: 292M]
  ------------------
13616|      0|#line 4731 "MachineIndependent/glslang.y"
13617|      0|                   {
13618|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13619|      0|    }
13620|      0|#line 13621 "MachineIndependent/glslang_tab.cpp"
13621|      0|    break;
13622|       |
13623|      0|  case 742: /* spirv_decorate_id_parameter: BOOLCONSTANT  */
  ------------------
  |  Branch (13623:3): [True: 0, False: 292M]
  ------------------
13624|      0|#line 4734 "MachineIndependent/glslang.y"
13625|      0|                   {
13626|      0|        (yyval.interm.intermNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyvsp[0].lex).loc, true);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13627|      0|    }
13628|      0|#line 13629 "MachineIndependent/glslang_tab.cpp"
13629|      0|    break;
13630|       |
13631|      0|  case 743: /* spirv_decorate_string_parameter_list: STRING_LITERAL  */
  ------------------
  |  Branch (13631:3): [True: 0, False: 292M]
  ------------------
13632|      0|#line 4739 "MachineIndependent/glslang.y"
13633|      0|                     {
13634|      0|        (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate(
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13635|      0|            parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13636|      0|    }
13637|      0|#line 13638 "MachineIndependent/glslang_tab.cpp"
13638|      0|    break;
13639|       |
13640|      0|  case 744: /* spirv_decorate_string_parameter_list: spirv_decorate_string_parameter_list COMMA STRING_LITERAL  */
  ------------------
  |  Branch (13640:3): [True: 0, False: 292M]
  ------------------
13641|      0|#line 4743 "MachineIndependent/glslang.y"
13642|      0|                                                                {
13643|      0|        (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
                      (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermNode), parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string, (yyvsp[0].lex).loc, true));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13644|      0|    }
13645|      0|#line 13646 "MachineIndependent/glslang_tab.cpp"
13646|      0|    break;
13647|       |
13648|      0|  case 745: /* spirv_type_specifier: SPIRV_TYPE LEFT_PAREN spirv_instruction_qualifier_list COMMA spirv_type_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13648:3): [True: 0, False: 292M]
  ------------------
13649|      0|#line 4748 "MachineIndependent/glslang.y"
13650|      0|                                                                                                         {
13651|      0|        (yyval.interm.type).init((yyvsp[-5].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13652|      0|        (yyval.interm.type).setSpirvType(*(yyvsp[-3].interm.spirvInst), (yyvsp[-1].interm.spirvTypeParams));
13653|      0|    }
13654|      0|#line 13655 "MachineIndependent/glslang_tab.cpp"
13655|      0|    break;
13656|       |
13657|      0|  case 746: /* spirv_type_specifier: SPIRV_TYPE LEFT_PAREN spirv_requirements_list COMMA spirv_instruction_qualifier_list COMMA spirv_type_parameter_list RIGHT_PAREN  */
  ------------------
  |  Branch (13657:3): [True: 0, False: 292M]
  ------------------
13658|      0|#line 4752 "MachineIndependent/glslang.y"
13659|      0|                                                                                                                                       {
13660|      0|        (yyval.interm.type).init((yyvsp[-7].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13661|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-5].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13662|      0|        (yyval.interm.type).setSpirvType(*(yyvsp[-3].interm.spirvInst), (yyvsp[-1].interm.spirvTypeParams));
13663|      0|    }
13664|      0|#line 13665 "MachineIndependent/glslang_tab.cpp"
13665|      0|    break;
13666|       |
13667|      0|  case 747: /* spirv_type_specifier: SPIRV_TYPE LEFT_PAREN spirv_instruction_qualifier_list RIGHT_PAREN  */
  ------------------
  |  Branch (13667:3): [True: 0, False: 292M]
  ------------------
13668|      0|#line 4757 "MachineIndependent/glslang.y"
13669|      0|                                                                         {
13670|      0|        (yyval.interm.type).init((yyvsp[-3].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13671|      0|        (yyval.interm.type).setSpirvType(*(yyvsp[-1].interm.spirvInst));
13672|      0|    }
13673|      0|#line 13674 "MachineIndependent/glslang_tab.cpp"
13674|      0|    break;
13675|       |
13676|      0|  case 748: /* spirv_type_specifier: SPIRV_TYPE LEFT_PAREN spirv_requirements_list COMMA spirv_instruction_qualifier_list RIGHT_PAREN  */
  ------------------
  |  Branch (13676:3): [True: 0, False: 292M]
  ------------------
13677|      0|#line 4761 "MachineIndependent/glslang.y"
13678|      0|                                                                                                       {
13679|      0|        (yyval.interm.type).init((yyvsp[-5].lex).loc, parseContext.symbolTable.atGlobalLevel());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13680|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-3].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13681|      0|        (yyval.interm.type).setSpirvType(*(yyvsp[-1].interm.spirvInst));
13682|      0|    }
13683|      0|#line 13684 "MachineIndependent/glslang_tab.cpp"
13684|      0|    break;
13685|       |
13686|      0|  case 749: /* spirv_type_parameter_list: spirv_type_parameter  */
  ------------------
  |  Branch (13686:3): [True: 0, False: 292M]
  ------------------
13687|      0|#line 4768 "MachineIndependent/glslang.y"
13688|      0|                           {
13689|      0|        (yyval.interm.spirvTypeParams) = (yyvsp[0].interm.spirvTypeParams);
13690|      0|    }
13691|      0|#line 13692 "MachineIndependent/glslang_tab.cpp"
13692|      0|    break;
13693|       |
13694|      0|  case 750: /* spirv_type_parameter_list: spirv_type_parameter_list COMMA spirv_type_parameter  */
  ------------------
  |  Branch (13694:3): [True: 0, False: 292M]
  ------------------
13695|      0|#line 4771 "MachineIndependent/glslang.y"
13696|      0|                                                           {
13697|      0|        (yyval.interm.spirvTypeParams) = parseContext.mergeSpirvTypeParameters((yyvsp[-2].interm.spirvTypeParams), (yyvsp[0].interm.spirvTypeParams));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13698|      0|    }
13699|      0|#line 13700 "MachineIndependent/glslang_tab.cpp"
13700|      0|    break;
13701|       |
13702|      0|  case 751: /* spirv_type_parameter: constant_expression  */
  ------------------
  |  Branch (13702:3): [True: 0, False: 292M]
  ------------------
13703|      0|#line 4776 "MachineIndependent/glslang.y"
13704|      0|                          {
13705|      0|        (yyval.interm.spirvTypeParams) = parseContext.makeSpirvTypeParameters((yyvsp[0].interm.intermTypedNode)->getLoc(), (yyvsp[0].interm.intermTypedNode)->getAsConstantUnion());
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13706|      0|    }
13707|      0|#line 13708 "MachineIndependent/glslang_tab.cpp"
13708|      0|    break;
13709|       |
13710|      0|  case 752: /* spirv_type_parameter: type_specifier_nonarray  */
  ------------------
  |  Branch (13710:3): [True: 0, False: 292M]
  ------------------
13711|      0|#line 4779 "MachineIndependent/glslang.y"
13712|      0|                              {
13713|      0|        (yyval.interm.spirvTypeParams) = parseContext.makeSpirvTypeParameters((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13714|      0|    }
13715|      0|#line 13716 "MachineIndependent/glslang_tab.cpp"
13716|      0|    break;
13717|       |
13718|      0|  case 753: /* spirv_instruction_qualifier: SPIRV_INSTRUCTION LEFT_PAREN spirv_instruction_qualifier_list RIGHT_PAREN  */
  ------------------
  |  Branch (13718:3): [True: 0, False: 292M]
  ------------------
13719|      0|#line 4784 "MachineIndependent/glslang.y"
13720|      0|                                                                                {
13721|      0|        (yyval.interm.spirvInst) = (yyvsp[-1].interm.spirvInst);
13722|      0|    }
13723|      0|#line 13724 "MachineIndependent/glslang_tab.cpp"
13724|      0|    break;
13725|       |
13726|      0|  case 754: /* spirv_instruction_qualifier: SPIRV_INSTRUCTION LEFT_PAREN spirv_requirements_list COMMA spirv_instruction_qualifier_list RIGHT_PAREN  */
  ------------------
  |  Branch (13726:3): [True: 0, False: 292M]
  ------------------
13727|      0|#line 4787 "MachineIndependent/glslang.y"
13728|      0|                                                                                                              {
13729|      0|        parseContext.intermediate.insertSpirvRequirement((yyvsp[-3].interm.spirvReq));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13730|      0|        (yyval.interm.spirvInst) = (yyvsp[-1].interm.spirvInst);
13731|      0|    }
13732|      0|#line 13733 "MachineIndependent/glslang_tab.cpp"
13733|      0|    break;
13734|       |
13735|      0|  case 755: /* spirv_instruction_qualifier_list: spirv_instruction_qualifier_id  */
  ------------------
  |  Branch (13735:3): [True: 0, False: 292M]
  ------------------
13736|      0|#line 4793 "MachineIndependent/glslang.y"
13737|      0|                                     {
13738|      0|        (yyval.interm.spirvInst) = (yyvsp[0].interm.spirvInst);
13739|      0|    }
13740|      0|#line 13741 "MachineIndependent/glslang_tab.cpp"
13741|      0|    break;
13742|       |
13743|      0|  case 756: /* spirv_instruction_qualifier_list: spirv_instruction_qualifier_list COMMA spirv_instruction_qualifier_id  */
  ------------------
  |  Branch (13743:3): [True: 0, False: 292M]
  ------------------
13744|      0|#line 4796 "MachineIndependent/glslang.y"
13745|      0|                                                                            {
13746|      0|        (yyval.interm.spirvInst) = parseContext.mergeSpirvInstruction((yyvsp[-1].lex).loc, (yyvsp[-2].interm.spirvInst), (yyvsp[0].interm.spirvInst));
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13747|      0|    }
13748|      0|#line 13749 "MachineIndependent/glslang_tab.cpp"
13749|      0|    break;
13750|       |
13751|      0|  case 757: /* spirv_instruction_qualifier_id: IDENTIFIER EQUAL STRING_LITERAL  */
  ------------------
  |  Branch (13751:3): [True: 0, False: 292M]
  ------------------
13752|      0|#line 4801 "MachineIndependent/glslang.y"
13753|      0|                                      {
13754|      0|        (yyval.interm.spirvInst) = parseContext.makeSpirvInstruction((yyvsp[-1].lex).loc, *(yyvsp[-2].lex).string, *(yyvsp[0].lex).string);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13755|      0|    }
13756|      0|#line 13757 "MachineIndependent/glslang_tab.cpp"
13757|      0|    break;
13758|       |
13759|      0|  case 758: /* spirv_instruction_qualifier_id: IDENTIFIER EQUAL INTCONSTANT  */
  ------------------
  |  Branch (13759:3): [True: 0, False: 292M]
  ------------------
13760|      0|#line 4804 "MachineIndependent/glslang.y"
13761|      0|                                   {
13762|      0|        (yyval.interm.spirvInst) = parseContext.makeSpirvInstruction((yyvsp[-1].lex).loc, *(yyvsp[-2].lex).string, (yyvsp[0].lex).i);
  ------------------
  |  |  783|      0|#define parseContext (*pParseContext)
  ------------------
13763|      0|    }
13764|      0|#line 13765 "MachineIndependent/glslang_tab.cpp"
13765|      0|    break;
13766|       |
13767|       |
13768|      0|#line 13769 "MachineIndependent/glslang_tab.cpp"
13769|       |
13770|      0|      default: break;
  ------------------
  |  Branch (13770:7): [True: 0, False: 292M]
  ------------------
13771|   292M|    }
13772|       |  /* User semantic actions sometimes alter yychar, and that requires
13773|       |     that yytoken be updated with the new translation.  We take the
13774|       |     approach of translating immediately before every use of yytoken.
13775|       |     One alternative is translating here after every semantic action,
13776|       |     but that translation would be missed if the semantic action invokes
13777|       |     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
13778|       |     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
13779|       |     incorrect destructor might then be invoked immediately.  In the
13780|       |     case of YYERROR or YYBACKUP, subsequent parser actions might lead
13781|       |     to an incorrect destructor call or verbose syntax error message
13782|       |     before the lookahead is translated.  */
13783|   292M|  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
  ------------------
  |  | 5208|   292M|# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
  |  | 5209|   292M|do {                                                                      \
  |  | 5210|   292M|  if (yydebug)                                                            \
  |  |  ------------------
  |  |  |  Branch (5210:7): [True: 0, False: 292M]
  |  |  ------------------
  |  | 5211|   292M|    {                                                                     \
  |  | 5212|      0|      YYFPRINTF (stderr, "%s ", Title);                                   \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5213|      0|      yy_symbol_print (stderr,                                            \
  |  | 5214|      0|                  Kind, Value, pParseContext); \
  |  | 5215|      0|      YYFPRINTF (stderr, "\n");                                           \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5216|      0|    }                                                                     \
  |  | 5217|   292M|} while (0)
  |  |  ------------------
  |  |  |  Branch (5217:10): [Folded, False: 292M]
  |  |  ------------------
  ------------------
13784|       |
13785|   292M|  YYPOPSTACK (yylen);
  ------------------
  |  | 5685|   292M|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
  ------------------
13786|   292M|  yylen = 0;
13787|       |
13788|   292M|  *++yyvsp = yyval;
13789|       |
13790|       |  /* Now 'shift' the result of the reduction.  Determine what state
13791|       |     that goes to, based on the state we popped back to and the rule
13792|       |     number reduced by.  */
13793|   292M|  {
13794|   292M|    const int yylhs = yyr1[yyn] - YYNTOKENS;
  ------------------
  |  | 1116|   292M|#define YYNTOKENS  515
  ------------------
13795|   292M|    const int yyi = yypgoto[yylhs] + *yyssp;
13796|   292M|    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
  ------------------
  |  | 1113|   445M|#define YYLAST   15602
  ------------------
  |  Branch (13796:16): [True: 153M, False: 139M]
  |  Branch (13796:28): [True: 153M, False: 0]
  |  Branch (13796:45): [True: 94.7M, False: 58.3M]
  ------------------
13797|   292M|               ? yytable[yyi]
13798|   292M|               : yydefgoto[yylhs]);
13799|   292M|  }
13800|       |
13801|   292M|  goto yynewstate;
13802|       |
13803|       |
13804|       |/*--------------------------------------.
13805|       || yyerrlab -- here on detecting error.  |
13806|       |`--------------------------------------*/
13807|  1.23k|yyerrlab:
13808|       |  /* Make sure we have latest lookahead translation.  See comments at
13809|       |     user semantic actions for why this is necessary.  */
13810|  1.23k|  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
  ------------------
  |  | 1131|  2.46k|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  | 1125|  1.23k|#define YYMAXUTOK   769
  |  |  ------------------
  |  |  |  Branch (1131:4): [True: 1.23k, False: 0]
  |  |  |  Branch (1131:18): [True: 1.23k, False: 0]
  |  |  ------------------
  |  | 1132|  2.46k|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  100|  1.23k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  ------------------
  |  | 1133|  2.46k|   : YYSYMBOL_YYUNDEF)
  ------------------
  |  Branch (13810:13): [True: 0, False: 1.23k]
  ------------------
13811|       |  /* If not already recovering from an error, report this error.  */
13812|  1.23k|  if (!yyerrstatus)
  ------------------
  |  Branch (13812:7): [True: 1.23k, False: 0]
  ------------------
13813|  1.23k|    {
13814|  1.23k|      ++yynerrs;
13815|  1.23k|      {
13816|  1.23k|        yypcontext_t yyctx
13817|  1.23k|          = {yyssp, yytoken};
13818|  1.23k|        char const *yymsgp = YY_("syntax error");
  ------------------
  |  |  915|  1.23k|#  define YY_(Msgid) Msgid
  ------------------
13819|  1.23k|        int yysyntax_error_status;
13820|  1.23k|        yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
13821|  1.23k|        if (yysyntax_error_status == 0)
  ------------------
  |  Branch (13821:13): [True: 1.23k, False: 0]
  ------------------
13822|  1.23k|          yymsgp = yymsg;
13823|      0|        else if (yysyntax_error_status == -1)
  ------------------
  |  Branch (13823:18): [True: 0, False: 0]
  ------------------
13824|      0|          {
13825|      0|            if (yymsg != yymsgbuf)
  ------------------
  |  Branch (13825:17): [True: 0, False: 0]
  ------------------
13826|      0|              YYSTACK_FREE (yymsg);
  ------------------
  |  | 1023|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  | 1042|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
13827|      0|            yymsg = YY_CAST (char *,
  ------------------
  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  ------------------
13828|      0|                             YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
13829|      0|            if (yymsg)
  ------------------
  |  Branch (13829:17): [True: 0, False: 0]
  ------------------
13830|      0|              {
13831|      0|                yysyntax_error_status
13832|      0|                  = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
13833|      0|                yymsgp = yymsg;
13834|      0|              }
13835|      0|            else
13836|      0|              {
13837|      0|                yymsg = yymsgbuf;
13838|      0|                yymsg_alloc = sizeof yymsgbuf;
13839|      0|                yysyntax_error_status = YYENOMEM;
13840|      0|              }
13841|      0|          }
13842|  1.23k|        yyerror (pParseContext, yymsgp);
  ------------------
  |  |  784|  1.23k|#define yyerror(context, msg) context->parserError(msg)
  ------------------
13843|  1.23k|        if (yysyntax_error_status == YYENOMEM)
  ------------------
  |  Branch (13843:13): [True: 0, False: 1.23k]
  ------------------
13844|      0|          YYNOMEM;
  ------------------
  |  | 5164|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
13845|  1.23k|      }
13846|  1.23k|    }
13847|       |
13848|  1.23k|  if (yyerrstatus == 3)
  ------------------
  |  Branch (13848:7): [True: 0, False: 1.23k]
  ------------------
13849|      0|    {
13850|       |      /* If just tried and failed to reuse lookahead token after an
13851|       |         error, discard it.  */
13852|       |
13853|      0|      if (yychar <= YYEOF)
  ------------------
  |  Branch (13853:11): [True: 0, False: 0]
  ------------------
13854|      0|        {
13855|       |          /* Return failure if at end of input.  */
13856|      0|          if (yychar == YYEOF)
  ------------------
  |  Branch (13856:15): [True: 0, False: 0]
  ------------------
13857|      0|            YYABORT;
  ------------------
  |  | 5162|      0|#define YYABORT         goto yyabortlab
  ------------------
13858|      0|        }
13859|      0|      else
13860|      0|        {
13861|      0|          yydestruct ("Error: discarding",
13862|      0|                      yytoken, &yylval, pParseContext);
13863|      0|          yychar = YYEMPTY;
13864|      0|        }
13865|      0|    }
13866|       |
13867|       |  /* Else will try to reuse lookahead token after shifting the error
13868|       |     token.  */
13869|  1.23k|  goto yyerrlab1;
13870|       |
13871|       |
13872|       |/*---------------------------------------------------.
13873|       || yyerrorlab -- error raised explicitly by YYERROR.  |
13874|       |`---------------------------------------------------*/
13875|  1.23k|yyerrorlab:
13876|       |  /* Pacify compilers when the user code never invokes YYERROR and the
13877|       |     label yyerrorlab therefore never appears in user code.  */
13878|      0|  if (0)
  ------------------
  |  Branch (13878:7): [Folded, False: 0]
  ------------------
13879|      0|    YYERROR;
  ------------------
  |  | 5163|      0|#define YYERROR         goto yyerrorlab
  ------------------
13880|      0|  ++yynerrs;
13881|       |
13882|       |  /* Do not reclaim the symbols of the rule whose action triggered
13883|       |     this YYERROR.  */
13884|      0|  YYPOPSTACK (yylen);
  ------------------
  |  | 5685|      0|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
  ------------------
13885|      0|  yylen = 0;
13886|      0|  YY_STACK_PRINT (yyss, yyssp);
  ------------------
  |  | 5271|      0|# define YY_STACK_PRINT(Bottom, Top)                            \
  |  | 5272|      0|do {                                                            \
  |  | 5273|      0|  if (yydebug)                                                  \
  |  |  ------------------
  |  |  |  Branch (5273:7): [True: 0, False: 0]
  |  |  ------------------
  |  | 5274|      0|    yy_stack_print ((Bottom), (Top));                           \
  |  | 5275|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (5275:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
13887|      0|  yystate = *yyssp;
13888|      0|  goto yyerrlab1;
13889|       |
13890|       |
13891|       |/*-------------------------------------------------------------.
13892|       || yyerrlab1 -- common code for both syntax error and YYERROR.  |
13893|       |`-------------------------------------------------------------*/
13894|  1.23k|yyerrlab1:
13895|  1.23k|  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
13896|       |
13897|       |  /* Pop stack until we find a state that shifts the error token.  */
13898|  1.23k|  for (;;)
13899|  6.61k|    {
13900|  6.61k|      yyn = yypact[yystate];
13901|  6.61k|      if (!yypact_value_is_default (yyn))
  ------------------
  |  | 1490|  6.61k|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  | 1487|  6.61k|#define YYPACT_NINF (-901)
  |  |  ------------------
  ------------------
  |  Branch (13901:11): [True: 6.56k, False: 46]
  ------------------
13902|  6.56k|        {
13903|  6.56k|          yyn += YYSYMBOL_YYerror;
13904|  6.56k|          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
  ------------------
  |  | 1113|  10.5k|#define YYLAST   15602
  ------------------
  |  Branch (13904:15): [True: 4.01k, False: 2.55k]
  |  Branch (13904:27): [True: 4.01k, False: 0]
  |  Branch (13904:44): [True: 0, False: 4.01k]
  ------------------
13905|      0|            {
13906|      0|              yyn = yytable[yyn];
13907|      0|              if (0 < yyn)
  ------------------
  |  Branch (13907:19): [True: 0, False: 0]
  ------------------
13908|      0|                break;
13909|      0|            }
13910|  6.56k|        }
13911|       |
13912|       |      /* Pop the current state because it cannot handle the error token.  */
13913|  6.61k|      if (yyssp == yyss)
  ------------------
  |  Branch (13913:11): [True: 1.23k, False: 5.38k]
  ------------------
13914|  1.23k|        YYABORT;
  ------------------
  |  | 5162|  1.23k|#define YYABORT         goto yyabortlab
  ------------------
13915|       |
13916|       |
13917|  5.38k|      yydestruct ("Error: popping",
13918|  5.38k|                  YY_ACCESSING_SYMBOL (yystate), yyvsp, pParseContext);
  ------------------
  |  | 1302|  5.38k|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  100|  5.38k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  ------------------
  ------------------
13919|  5.38k|      YYPOPSTACK (1);
  ------------------
  |  | 5685|  5.38k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
  ------------------
13920|  5.38k|      yystate = *yyssp;
13921|  5.38k|      YY_STACK_PRINT (yyss, yyssp);
  ------------------
  |  | 5271|  5.38k|# define YY_STACK_PRINT(Bottom, Top)                            \
  |  | 5272|  5.38k|do {                                                            \
  |  | 5273|  5.38k|  if (yydebug)                                                  \
  |  |  ------------------
  |  |  |  Branch (5273:7): [True: 0, False: 5.38k]
  |  |  ------------------
  |  | 5274|  5.38k|    yy_stack_print ((Bottom), (Top));                           \
  |  | 5275|  5.38k|} while (0)
  |  |  ------------------
  |  |  |  Branch (5275:10): [Folded, False: 5.38k]
  |  |  ------------------
  ------------------
13922|  5.38k|    }
13923|       |
13924|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
13925|      0|  *++yyvsp = yylval;
13926|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_END
13927|       |
13928|       |
13929|       |  /* Shift the error token.  */
13930|      0|  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
  ------------------
  |  | 5208|      0|# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
  |  | 5209|      0|do {                                                                      \
  |  | 5210|      0|  if (yydebug)                                                            \
  |  |  ------------------
  |  |  |  Branch (5210:7): [True: 0, False: 0]
  |  |  ------------------
  |  | 5211|      0|    {                                                                     \
  |  | 5212|      0|      YYFPRINTF (stderr, "%s ", Title);                                   \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5213|      0|      yy_symbol_print (stderr,                                            \
  |  | 5214|      0|                  Kind, Value, pParseContext); \
  |  | 5215|      0|      YYFPRINTF (stderr, "\n");                                           \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5216|      0|    }                                                                     \
  |  | 5217|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (5217:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
13931|       |
13932|      0|  yystate = yyn;
13933|      0|  goto yynewstate;
13934|       |
13935|       |
13936|       |/*-------------------------------------.
13937|       || yyacceptlab -- YYACCEPT comes here.  |
13938|       |`-------------------------------------*/
13939|  14.6k|yyacceptlab:
13940|  14.6k|  yyresult = 0;
13941|  14.6k|  goto yyreturnlab;
13942|       |
13943|       |
13944|       |/*-----------------------------------.
13945|       || yyabortlab -- YYABORT comes here.  |
13946|       |`-----------------------------------*/
13947|  1.23k|yyabortlab:
13948|  1.23k|  yyresult = 1;
13949|  1.23k|  goto yyreturnlab;
13950|       |
13951|       |
13952|       |/*-----------------------------------------------------------.
13953|       || yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here.  |
13954|       |`-----------------------------------------------------------*/
13955|      0|yyexhaustedlab:
13956|      0|  yyerror (pParseContext, YY_("memory exhausted"));
  ------------------
  |  |  784|      0|#define yyerror(context, msg) context->parserError(msg)
  ------------------
13957|      0|  yyresult = 2;
13958|      0|  goto yyreturnlab;
13959|       |
13960|       |
13961|       |/*----------------------------------------------------------.
13962|       || yyreturnlab -- parsing is finished, clean up and return.  |
13963|       |`----------------------------------------------------------*/
13964|  15.9k|yyreturnlab:
13965|  15.9k|  if (yychar != YYEMPTY)
  ------------------
  |  Branch (13965:7): [True: 1.23k, False: 14.6k]
  ------------------
13966|  1.23k|    {
13967|       |      /* Make sure we have latest lookahead translation.  See comments at
13968|       |         user semantic actions for why this is necessary.  */
13969|  1.23k|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  | 1131|  1.23k|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  | 1125|  1.23k|#define YYMAXUTOK   769
  |  |  ------------------
  |  |  |  Branch (1131:4): [True: 1.23k, False: 0]
  |  |  |  Branch (1131:18): [True: 1.23k, False: 0]
  |  |  ------------------
  |  | 1132|  1.23k|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  100|  1.23k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  ------------------
  |  | 1133|  1.23k|   : YYSYMBOL_YYUNDEF)
  ------------------
13970|  1.23k|      yydestruct ("Cleanup: discarding lookahead",
13971|  1.23k|                  yytoken, &yylval, pParseContext);
13972|  1.23k|    }
13973|       |  /* Do not reclaim the symbols of the rule whose action triggered
13974|       |     this YYABORT or YYACCEPT.  */
13975|  15.9k|  YYPOPSTACK (yylen);
  ------------------
  |  | 5685|  15.9k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
  ------------------
13976|  15.9k|  YY_STACK_PRINT (yyss, yyssp);
  ------------------
  |  | 5271|  15.9k|# define YY_STACK_PRINT(Bottom, Top)                            \
  |  | 5272|  15.9k|do {                                                            \
  |  | 5273|  15.9k|  if (yydebug)                                                  \
  |  |  ------------------
  |  |  |  Branch (5273:7): [True: 0, False: 15.9k]
  |  |  ------------------
  |  | 5274|  15.9k|    yy_stack_print ((Bottom), (Top));                           \
  |  | 5275|  15.9k|} while (0)
  |  |  ------------------
  |  |  |  Branch (5275:10): [Folded, False: 15.9k]
  |  |  ------------------
  ------------------
13977|  45.2k|  while (yyssp != yyss)
  ------------------
  |  Branch (13977:10): [True: 29.3k, False: 15.9k]
  ------------------
13978|  29.3k|    {
13979|  29.3k|      yydestruct ("Cleanup: popping",
13980|  29.3k|                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, pParseContext);
  ------------------
  |  | 1302|  29.3k|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  100|  29.3k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  ------------------
  ------------------
13981|  29.3k|      YYPOPSTACK (1);
  ------------------
  |  | 5685|  29.3k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
  ------------------
13982|  29.3k|    }
13983|  15.9k|#ifndef yyoverflow
13984|  15.9k|  if (yyss != yyssa)
  ------------------
  |  Branch (13984:7): [True: 0, False: 15.9k]
  ------------------
13985|      0|    YYSTACK_FREE (yyss);
  ------------------
  |  | 1023|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  | 1042|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
13986|  15.9k|#endif
13987|  15.9k|  if (yymsg != yymsgbuf)
  ------------------
  |  Branch (13987:7): [True: 0, False: 15.9k]
  ------------------
13988|      0|    YYSTACK_FREE (yymsg);
  ------------------
  |  | 1023|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  | 1042|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
13989|  15.9k|  return yyresult;
13990|  1.23k|}
glslang_tab.cpp:_ZL14yysyntax_errorPlPPcPK12yypcontext_t:
 5529|  1.23k|{
 5530|  1.23k|  enum { YYARGS_MAX = 5 };
 5531|       |  /* Internationalized format string. */
 5532|  1.23k|  const char *yyformat = YY_NULLPTR;
  ------------------
  |  |  110|  1.23k|#    define YY_NULLPTR nullptr
  ------------------
 5533|       |  /* Arguments of yyformat: reported tokens (one for the "unexpected",
 5534|       |     one per "expected"). */
 5535|  1.23k|  yysymbol_kind_t yyarg[YYARGS_MAX];
 5536|       |  /* Cumulated lengths of YYARG.  */
 5537|  1.23k|  YYPTRDIFF_T yysize = 0;
  ------------------
  |  |  865|  1.23k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 5538|       |
 5539|       |  /* Actual size of YYARG. */
 5540|  1.23k|  int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX);
 5541|  1.23k|  if (yycount == YYENOMEM)
  ------------------
  |  Branch (5541:7): [True: 0, False: 1.23k]
  ------------------
 5542|      0|    return YYENOMEM;
 5543|       |
 5544|  1.23k|  switch (yycount)
 5545|  1.23k|    {
 5546|      0|#define YYCASE_(N, S)                       \
 5547|      0|      case N:                               \
 5548|      0|        yyformat = S;                       \
 5549|      0|        break
 5550|      0|    default: /* Avoid compiler warnings. */
  ------------------
  |  Branch (5550:5): [True: 0, False: 1.23k]
  ------------------
 5551|      0|      YYCASE_(0, YY_("syntax error"));
  ------------------
  |  | 5547|      0|      case N:                               \
  |  |  ------------------
  |  |  |  Branch (5547:7): [True: 0, False: 1.23k]
  |  |  ------------------
  |  | 5548|      0|        yyformat = S;                       \
  |  | 5549|      0|        break
  ------------------
 5552|    496|      YYCASE_(1, YY_("syntax error, unexpected %s"));
  ------------------
  |  | 5547|    496|      case N:                               \
  |  |  ------------------
  |  |  |  Branch (5547:7): [True: 496, False: 736]
  |  |  ------------------
  |  | 5548|    496|        yyformat = S;                       \
  |  | 5549|    496|        break
  ------------------
 5553|    146|      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
  ------------------
  |  | 5547|    146|      case N:                               \
  |  |  ------------------
  |  |  |  Branch (5547:7): [True: 146, False: 1.08k]
  |  |  ------------------
  |  | 5548|    146|        yyformat = S;                       \
  |  | 5549|    146|        break
  ------------------
 5554|    586|      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
  ------------------
  |  | 5547|    586|      case N:                               \
  |  |  ------------------
  |  |  |  Branch (5547:7): [True: 586, False: 646]
  |  |  ------------------
  |  | 5548|    586|        yyformat = S;                       \
  |  | 5549|    586|        break
  ------------------
 5555|      4|      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
  ------------------
  |  | 5547|      4|      case N:                               \
  |  |  ------------------
  |  |  |  Branch (5547:7): [True: 4, False: 1.22k]
  |  |  ------------------
  |  | 5548|      4|        yyformat = S;                       \
  |  | 5549|      4|        break
  ------------------
 5556|  1.23k|      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
  ------------------
  |  | 5547|      0|      case N:                               \
  |  |  ------------------
  |  |  |  Branch (5547:7): [True: 0, False: 1.23k]
  |  |  ------------------
  |  | 5548|      0|        yyformat = S;                       \
  |  | 5549|      0|        break
  ------------------
 5557|  1.23k|#undef YYCASE_
 5558|  1.23k|    }
 5559|       |
 5560|       |  /* Compute error message size.  Don't count the "%s"s, but reserve
 5561|       |     room for the terminator.  */
 5562|  1.23k|  yysize = yystrlen (yyformat) - 2 * yycount + 1;
  ------------------
  |  | 5388|  1.23k|#  define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
  |  |  ------------------
  |  |  |  |  100|  1.23k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  ------------------
  ------------------
 5563|  1.23k|  {
 5564|  1.23k|    int yyi;
 5565|  3.79k|    for (yyi = 0; yyi < yycount; ++yyi)
  ------------------
  |  Branch (5565:19): [True: 2.56k, False: 1.23k]
  ------------------
 5566|  2.56k|      {
 5567|  2.56k|        YYPTRDIFF_T yysize1
  ------------------
  |  |  865|  2.56k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 5568|  2.56k|          = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]);
  ------------------
  |  |  110|  2.56k|#    define YY_NULLPTR nullptr
  ------------------
 5569|  2.56k|        if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
  ------------------
  |  | 1025|  2.56k|#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  |  |  ------------------
  |  |  |  |  893|  2.56k|  YY_CAST (YYPTRDIFF_T,                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|  5.12k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (100:50): [True: 2.56k, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (5569:13): [True: 2.56k, False: 0]
  |  Branch (5569:34): [True: 2.56k, False: 0]
  ------------------
 5570|  2.56k|          yysize = yysize1;
 5571|      0|        else
 5572|      0|          return YYENOMEM;
 5573|  2.56k|      }
 5574|  1.23k|  }
 5575|       |
 5576|  1.23k|  if (*yymsg_alloc < yysize)
  ------------------
  |  Branch (5576:7): [True: 0, False: 1.23k]
  ------------------
 5577|      0|    {
 5578|      0|      *yymsg_alloc = 2 * yysize;
 5579|      0|      if (! (yysize <= *yymsg_alloc
  ------------------
  |  Branch (5579:14): [True: 0, False: 0]
  ------------------
 5580|      0|             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
  ------------------
  |  | 1025|      0|#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  |  |  ------------------
  |  |  |  |  893|      0|  YY_CAST (YYPTRDIFF_T,                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (100:50): [True: 0, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (5580:17): [True: 0, False: 0]
  ------------------
 5581|      0|        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
  ------------------
  |  | 1025|      0|#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
  |  |  ------------------
  |  |  |  |  893|      0|  YY_CAST (YYPTRDIFF_T,                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  |  100|      0|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (100:50): [True: 0, Folded]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 5582|      0|      return -1;
 5583|      0|    }
 5584|       |
 5585|       |  /* Avoid sprintf, as that infringes on the user's name space.
 5586|       |     Don't have undefined behavior even if the translation
 5587|       |     produced a string with the wrong number of "%s"s.  */
 5588|  1.23k|  {
 5589|  1.23k|    char *yyp = *yymsg;
 5590|  1.23k|    int yyi = 0;
 5591|  45.8k|    while ((*yyp = *yyformat) != '\0')
  ------------------
  |  Branch (5591:12): [True: 44.5k, False: 1.23k]
  ------------------
 5592|  44.5k|      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
  ------------------
  |  Branch (5592:11): [True: 2.56k, False: 42.0k]
  |  Branch (5592:26): [True: 2.56k, False: 0]
  |  Branch (5592:48): [True: 2.56k, False: 0]
  ------------------
 5593|  2.56k|        {
 5594|  2.56k|          yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]);
 5595|  2.56k|          yyformat += 2;
 5596|  2.56k|        }
 5597|  42.0k|      else
 5598|  42.0k|        {
 5599|  42.0k|          ++yyp;
 5600|  42.0k|          ++yyformat;
 5601|  42.0k|        }
 5602|  1.23k|  }
 5603|  1.23k|  return 0;
 5604|  1.23k|}
glslang_tab.cpp:_ZL25yy_syntax_error_argumentsPK12yypcontext_tP15yysymbol_kind_ti:
 5476|  1.23k|{
 5477|       |  /* Actual size of YYARG. */
 5478|  1.23k|  int yycount = 0;
 5479|       |  /* There are many possibilities here to consider:
 5480|       |     - If this state is a consistent state with a default action, then
 5481|       |       the only way this function was invoked is if the default action
 5482|       |       is an error action.  In that case, don't check for expected
 5483|       |       tokens because there are none.
 5484|       |     - The only way there can be no lookahead present (in yychar) is if
 5485|       |       this state is a consistent state with a default action.  Thus,
 5486|       |       detecting the absence of a lookahead is sufficient to determine
 5487|       |       that there is no unexpected or expected token to report.  In that
 5488|       |       case, just report a simple "syntax error".
 5489|       |     - Don't assume there isn't a lookahead just because this state is a
 5490|       |       consistent state with a default action.  There might have been a
 5491|       |       previous inconsistent state, consistent state with a non-default
 5492|       |       action, or user semantic action that manipulated yychar.
 5493|       |     - Of course, the expected token list depends on states to have
 5494|       |       correct lookahead information, and it depends on the parser not
 5495|       |       to perform extra reductions after fetching a lookahead from the
 5496|       |       scanner and before detecting a syntax error.  Thus, state merging
 5497|       |       (from LALR or IELR) and default reductions corrupt the expected
 5498|       |       token list.  However, the list is correct for canonical LR with
 5499|       |       one exception: it will still contain any token that will not be
 5500|       |       accepted due to an error action in a later state.
 5501|       |  */
 5502|  1.23k|  if (yyctx->yytoken != YYSYMBOL_YYEMPTY)
  ------------------
  |  Branch (5502:7): [True: 1.23k, False: 0]
  ------------------
 5503|  1.23k|    {
 5504|  1.23k|      int yyn;
 5505|  1.23k|      if (yyarg)
  ------------------
  |  Branch (5505:11): [True: 1.23k, False: 0]
  ------------------
 5506|  1.23k|        yyarg[yycount] = yyctx->yytoken;
 5507|  1.23k|      ++yycount;
 5508|  1.23k|      yyn = yypcontext_expected_tokens (yyctx,
 5509|  1.23k|                                        yyarg ? yyarg + 1 : yyarg, yyargn - 1);
  ------------------
  |  Branch (5509:41): [True: 1.23k, False: 0]
  ------------------
 5510|  1.23k|      if (yyn == YYENOMEM)
  ------------------
  |  Branch (5510:11): [True: 0, False: 1.23k]
  ------------------
 5511|      0|        return YYENOMEM;
 5512|  1.23k|      else
 5513|  1.23k|        yycount += yyn;
 5514|  1.23k|    }
 5515|  1.23k|  return yycount;
 5516|  1.23k|}
glslang_tab.cpp:_ZL26yypcontext_expected_tokensPK12yypcontext_tP15yysymbol_kind_ti:
 5352|  1.23k|{
 5353|       |  /* Actual size of YYARG. */
 5354|  1.23k|  int yycount = 0;
 5355|  1.23k|  int yyn = yypact[+*yyctx->yyssp];
 5356|  1.23k|  if (!yypact_value_is_default (yyn))
  ------------------
  |  | 1490|  1.23k|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  | 1487|  1.23k|#define YYPACT_NINF (-901)
  |  |  ------------------
  ------------------
  |  Branch (5356:7): [True: 1.23k, False: 0]
  ------------------
 5357|  1.23k|    {
 5358|       |      /* Start YYX at -YYN if negative to avoid negative indexes in
 5359|       |         YYCHECK.  In other words, skip the first -YYN actions for
 5360|       |         this state because they are default actions.  */
 5361|  1.23k|      int yyxbegin = yyn < 0 ? -yyn : 0;
  ------------------
  |  Branch (5361:22): [True: 726, False: 506]
  ------------------
 5362|       |      /* Stay within bounds of both yycheck and yytname.  */
 5363|  1.23k|      int yychecklim = YYLAST - yyn + 1;
  ------------------
  |  | 1113|  1.23k|#define YYLAST   15602
  ------------------
 5364|  1.23k|      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  ------------------
  |  | 1116|  1.23k|#define YYNTOKENS  515
  ------------------
                    int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  ------------------
  |  | 1116|  1.23k|#define YYNTOKENS  515
  ------------------
  |  Branch (5364:20): [True: 1, False: 1.23k]
  ------------------
 5365|  1.23k|      int yyx;
 5366|   264k|      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  ------------------
  |  Branch (5366:28): [True: 263k, False: 736]
  ------------------
 5367|   263k|        if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
  ------------------
  |  Branch (5367:13): [True: 3.81k, False: 259k]
  |  Branch (5367:42): [True: 3.81k, False: 0]
  ------------------
 5368|      0|            && !yytable_value_is_error (yytable[yyx + yyn]))
  ------------------
  |  | 1495|      0|  0
  ------------------
  |  Branch (5368:16): [True: 0, Folded]
  ------------------
 5369|  3.81k|          {
 5370|  3.81k|            if (!yyarg)
  ------------------
  |  Branch (5370:17): [True: 0, False: 3.81k]
  ------------------
 5371|      0|              ++yycount;
 5372|  3.81k|            else if (yycount == yyargn)
  ------------------
  |  Branch (5372:22): [True: 496, False: 3.31k]
  ------------------
 5373|    496|              return 0;
 5374|  3.31k|            else
 5375|  3.31k|              yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
  ------------------
  |  |  100|  3.31k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  ------------------
 5376|  3.81k|          }
 5377|  1.23k|    }
 5378|    736|  if (yyarg && yycount == 0 && 0 < yyargn)
  ------------------
  |  Branch (5378:7): [True: 736, False: 0]
  |  Branch (5378:16): [True: 0, False: 736]
  |  Branch (5378:32): [True: 0, False: 0]
  ------------------
 5379|      0|    yyarg[0] = YYSYMBOL_YYEMPTY;
 5380|    736|  return yycount;
 5381|  1.23k|}
glslang_tab.cpp:_ZL9yytnamerrPcPKc:
 5432|  5.12k|{
 5433|  5.12k|  if (*yystr == '"')
  ------------------
  |  Branch (5433:7): [True: 152, False: 4.97k]
  ------------------
 5434|    152|    {
 5435|    152|      YYPTRDIFF_T yyn = 0;
  ------------------
  |  |  865|    152|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 5436|    152|      char const *yyp = yystr;
 5437|    152|      for (;;)
 5438|  1.82k|        switch (*++yyp)
 5439|  1.82k|          {
 5440|      0|          case '\'':
  ------------------
  |  Branch (5440:11): [True: 0, False: 1.82k]
  ------------------
 5441|      0|          case ',':
  ------------------
  |  Branch (5441:11): [True: 0, False: 1.82k]
  ------------------
 5442|      0|            goto do_not_strip_quotes;
 5443|       |
 5444|      0|          case '\\':
  ------------------
  |  Branch (5444:11): [True: 0, False: 1.82k]
  ------------------
 5445|      0|            if (*++yyp != '\\')
  ------------------
  |  Branch (5445:17): [True: 0, False: 0]
  ------------------
 5446|      0|              goto do_not_strip_quotes;
 5447|      0|            else
 5448|      0|              goto append;
 5449|       |
 5450|      0|          append:
 5451|  1.67k|          default:
  ------------------
  |  Branch (5451:11): [True: 1.67k, False: 152]
  ------------------
 5452|  1.67k|            if (yyres)
  ------------------
  |  Branch (5452:17): [True: 836, False: 836]
  ------------------
 5453|    836|              yyres[yyn] = *yyp;
 5454|  1.67k|            yyn++;
 5455|  1.67k|            break;
 5456|       |
 5457|    152|          case '"':
  ------------------
  |  Branch (5457:11): [True: 152, False: 1.67k]
  ------------------
 5458|    152|            if (yyres)
  ------------------
  |  Branch (5458:17): [True: 76, False: 76]
  ------------------
 5459|     76|              yyres[yyn] = '\0';
 5460|    152|            return yyn;
 5461|  1.82k|          }
 5462|      0|    do_not_strip_quotes: ;
 5463|      0|    }
 5464|       |
 5465|  4.97k|  if (yyres)
  ------------------
  |  Branch (5465:7): [True: 2.48k, False: 2.48k]
  ------------------
 5466|  2.48k|    return yystpcpy (yyres, yystr) - yyres;
  ------------------
  |  | 5404|  2.48k|#  define yystpcpy stpcpy
  ------------------
 5467|  2.48k|  else
 5468|  2.48k|    return yystrlen (yystr);
  ------------------
  |  | 5388|  2.48k|#  define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
  |  |  ------------------
  |  |  |  |  100|  2.48k|#   define YY_CAST(Type, Val) static_cast<Type> (Val)
  |  |  ------------------
  ------------------
 5469|  4.97k|}
glslang_tab.cpp:_ZL10yydestructPKc15yysymbol_kind_tP7YYSTYPEPN7glslang13TParseContextE:
 5614|  35.9k|{
 5615|  35.9k|  YY_USE (yyvaluep);
  ------------------
  |  |  938|  35.9k|# define YY_USE(E) ((void) (E))
  ------------------
 5616|  35.9k|  YY_USE (pParseContext);
  ------------------
  |  |  938|  35.9k|# define YY_USE(E) ((void) (E))
  ------------------
 5617|  35.9k|  if (!yymsg)
  ------------------
  |  Branch (5617:7): [True: 0, False: 35.9k]
  ------------------
 5618|      0|    yymsg = "Deleting";
 5619|  35.9k|  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
  ------------------
  |  | 5208|  35.9k|# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
  |  | 5209|  35.9k|do {                                                                      \
  |  | 5210|  35.9k|  if (yydebug)                                                            \
  |  |  ------------------
  |  |  |  Branch (5210:7): [True: 0, False: 35.9k]
  |  |  ------------------
  |  | 5211|  35.9k|    {                                                                     \
  |  | 5212|      0|      YYFPRINTF (stderr, "%s ", Title);                                   \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5213|      0|      yy_symbol_print (stderr,                                            \
  |  | 5214|      0|                  Kind, Value, pParseContext); \
  |  | 5215|      0|      YYFPRINTF (stderr, "\n");                                           \
  |  |  ------------------
  |  |  |  | 5196|      0|#  define YYFPRINTF fprintf
  |  |  ------------------
  |  | 5216|      0|    }                                                                     \
  |  | 5217|  35.9k|} while (0)
  |  |  ------------------
  |  |  |  Branch (5217:10): [Folded, False: 35.9k]
  |  |  ------------------
  ------------------
 5620|       |
 5621|  35.9k|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 5622|  35.9k|  YY_USE (yykind);
  ------------------
  |  |  938|  35.9k|# define YY_USE(E) ((void) (E))
  ------------------
 5623|  35.9k|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 5624|  35.9k|}

_ZN7glslang9TIoMapper8addStageE11EShLanguageRNS_13TIntermediateER9TInfoSinkPNS_14TIoMapResolverE:
 1515|     42|bool TIoMapper::addStage(EShLanguage stage, TIntermediate& intermediate, TInfoSink& infoSink, TIoMapResolver* resolver) {
 1516|     42|    bool somethingToDo = ! intermediate.getResourceSetBinding().empty() || intermediate.getAutoMapBindings() ||
  ------------------
  |  Branch (1516:26): [True: 0, False: 42]
  |  Branch (1516:76): [True: 0, False: 42]
  ------------------
 1517|     42|                         intermediate.getAutoMapLocations();
  ------------------
  |  Branch (1517:26): [True: 0, False: 42]
  ------------------
 1518|       |    // Restrict the stricter condition to further check 'somethingToDo' only if 'somethingToDo' has not been set, reduce
 1519|       |    // unnecessary or insignificant for-loop operation after 'somethingToDo' have been true.
 1520|    420|    for (int res = 0; (res < EResCount && !somethingToDo); ++res) {
  ------------------
  |  Branch (1520:24): [True: 378, False: 42]
  |  Branch (1520:43): [True: 378, False: 0]
  ------------------
 1521|    378|        somethingToDo = somethingToDo || (intermediate.getShiftBinding(TResourceType(res)) != 0) ||
  ------------------
  |  Branch (1521:25): [True: 0, False: 378]
  |  Branch (1521:42): [True: 0, False: 378]
  ------------------
 1522|    378|                        intermediate.hasShiftBindingForSet(TResourceType(res));
  ------------------
  |  Branch (1522:25): [True: 0, False: 378]
  ------------------
 1523|    378|    }
 1524|     42|    if (! somethingToDo && resolver == nullptr)
  ------------------
  |  Branch (1524:9): [True: 42, False: 0]
  |  Branch (1524:28): [True: 42, False: 0]
  ------------------
 1525|     42|        return true;
 1526|      0|    if (intermediate.getNumEntryPoints() != 1 || intermediate.isRecursive())
  ------------------
  |  Branch (1526:9): [True: 0, False: 0]
  |  Branch (1526:50): [True: 0, False: 0]
  ------------------
 1527|      0|        return false;
 1528|      0|    TIntermNode* root = intermediate.getTreeRoot();
 1529|      0|    if (root == nullptr)
  ------------------
  |  Branch (1529:9): [True: 0, False: 0]
  ------------------
 1530|      0|        return false;
 1531|       |    // if no resolver is provided, use the default resolver with the given shifts and auto map settings
 1532|      0|    TDefaultIoResolver defaultResolver(intermediate);
 1533|      0|#ifdef ENABLE_HLSL
 1534|      0|    TDefaultHlslIoResolver defaultHlslResolver(intermediate);
 1535|      0|    if (resolver == nullptr) {
  ------------------
  |  Branch (1535:9): [True: 0, False: 0]
  ------------------
 1536|       |        // TODO: use a passed in IO mapper for this
 1537|      0|        if (intermediate.usingHlslIoMapping())
  ------------------
  |  Branch (1537:13): [True: 0, False: 0]
  ------------------
 1538|      0|            resolver = &defaultHlslResolver;
 1539|      0|        else
 1540|      0|            resolver = &defaultResolver;
 1541|      0|    }
 1542|       |#else
 1543|       |    resolver = &defaultResolver;
 1544|       |#endif
 1545|      0|    resolver->addStage(stage, intermediate);
 1546|       |
 1547|      0|    TVarLiveMap inVarMap, outVarMap, uniformVarMap;
 1548|      0|    TVarLiveVector inVector, outVector, uniformVector;
 1549|      0|    TVarGatherTraverser iter_binding_all(intermediate, true, inVarMap, outVarMap, uniformVarMap);
 1550|      0|    TVarGatherTraverser iter_binding_live(intermediate, false, inVarMap, outVarMap, uniformVarMap);
 1551|      0|    root->traverse(&iter_binding_all);
 1552|      0|    iter_binding_live.pushFunction(intermediate.getEntryPointMangledName().c_str());
 1553|      0|    while (! iter_binding_live.destinations.empty()) {
  ------------------
  |  Branch (1553:12): [True: 0, False: 0]
  ------------------
 1554|      0|        TIntermNode* destination = iter_binding_live.destinations.back();
 1555|      0|        iter_binding_live.destinations.pop_back();
 1556|      0|        destination->traverse(&iter_binding_live);
 1557|      0|    }
 1558|       |
 1559|       |    // sort entries by priority. see TVarEntryInfo::TOrderByPriority for info.
 1560|      0|    for (auto& var : inVarMap) { inVector.push_back(var); }
  ------------------
  |  Branch (1560:20): [True: 0, False: 0]
  ------------------
 1561|      0|    std::sort(inVector.begin(), inVector.end(), [](const TVarLivePair& p1, const TVarLivePair& p2) -> bool {
 1562|      0|        return TVarEntryInfo::TOrderByPriority()(p1.second, p2.second);
 1563|      0|    });
 1564|      0|    for (auto& var : outVarMap) { outVector.push_back(var); }
  ------------------
  |  Branch (1564:20): [True: 0, False: 0]
  ------------------
 1565|      0|    std::sort(outVector.begin(), outVector.end(), [](const TVarLivePair& p1, const TVarLivePair& p2) -> bool {
 1566|      0|        return TVarEntryInfo::TOrderByPriority()(p1.second, p2.second);
 1567|      0|    });
 1568|      0|    for (auto& var : uniformVarMap) { uniformVector.push_back(var); }
  ------------------
  |  Branch (1568:20): [True: 0, False: 0]
  ------------------
 1569|      0|    std::sort(uniformVector.begin(), uniformVector.end(), [](const TVarLivePair& p1, const TVarLivePair& p2) -> bool {
 1570|      0|        return TVarEntryInfo::TOrderByPriority()(p1.second, p2.second);
 1571|      0|    });
 1572|      0|    bool hadError = false;
 1573|      0|    TVarLiveMap* dummyUniformVarMap[EShLangCount] = {};
 1574|      0|    TNotifyInOutAdaptor inOutNotify(stage, *resolver);
 1575|      0|    TNotifyUniformAdaptor uniformNotify(stage, *resolver);
 1576|      0|    TResolverUniformAdaptor uniformResolve(stage, *resolver, dummyUniformVarMap, infoSink, hadError,
 1577|      0|                                           intermediate.getRelaxSetBindingLimits());
 1578|      0|    TResolverInOutAdaptor inOutResolve(stage, *resolver, infoSink, hadError);
 1579|      0|    resolver->beginNotifications(stage);
 1580|      0|    std::for_each(inVector.begin(), inVector.end(), inOutNotify);
 1581|      0|    std::for_each(outVector.begin(), outVector.end(), inOutNotify);
 1582|      0|    std::for_each(uniformVector.begin(), uniformVector.end(), uniformNotify);
 1583|      0|    resolver->endNotifications(stage);
 1584|      0|    resolver->beginResolve(stage);
 1585|      0|    for (auto& var : inVector) { inOutResolve(var); }
  ------------------
  |  Branch (1585:20): [True: 0, False: 0]
  ------------------
 1586|      0|    std::for_each(inVector.begin(), inVector.end(), [&inVarMap](TVarLivePair p) {
 1587|      0|        auto at = inVarMap.find(p.second.symbol->getAccessName());
 1588|      0|        if (at != inVarMap.end() && p.second.id == at->second.id)
 1589|      0|            at->second = p.second;
 1590|      0|    });
 1591|      0|    for (auto& var : outVector) { inOutResolve(var); }
  ------------------
  |  Branch (1591:20): [True: 0, False: 0]
  ------------------
 1592|      0|    std::for_each(outVector.begin(), outVector.end(), [&outVarMap](TVarLivePair p) {
 1593|      0|        auto at = outVarMap.find(p.second.symbol->getAccessName());
 1594|      0|        if (at != outVarMap.end() && p.second.id == at->second.id)
 1595|      0|            at->second = p.second;
 1596|      0|    });
 1597|      0|    std::for_each(uniformVector.begin(), uniformVector.end(), uniformResolve);
 1598|      0|    std::for_each(uniformVector.begin(), uniformVector.end(), [&uniformVarMap](TVarLivePair p) {
 1599|      0|        auto at = uniformVarMap.find(p.second.symbol->getAccessName());
 1600|      0|        if (at != uniformVarMap.end() && p.second.id == at->second.id)
 1601|      0|            at->second = p.second;
 1602|      0|    });
 1603|      0|    resolver->endResolve(stage);
 1604|      0|    if (!hadError) {
  ------------------
  |  Branch (1604:9): [True: 0, False: 0]
  ------------------
 1605|      0|        TVarSetTraverser iter_iomap(intermediate, inVarMap, outVarMap, uniformVarMap);
 1606|      0|        root->traverse(&iter_iomap);
 1607|      0|    }
 1608|      0|    return !hadError;
 1609|      0|}

_ZN7glslang13TIntermediate5errorER9TInfoSinkPKNS_10TSourceLocE11EShMessagesPKc11EShLanguage:
   62|      1|{
   63|      1|    infoSink.info.prefix(EPrefixError);
   64|      1|    if (loc)
  ------------------
  |  Branch (64:9): [True: 0, False: 1]
  ------------------
   65|      0|        infoSink.info.location(*loc, messages & EShMsgAbsolutePath, messages & EShMsgDisplayErrorColumn);
   66|      1|    if (unitStage == EShLangCount)
  ------------------
  |  Branch (66:9): [True: 1, False: 0]
  ------------------
   67|      1|        infoSink.info << "Linking " << StageName(language) << " stage: " << message << "\n";
   68|      0|    else if (language == EShLangCount)
  ------------------
  |  Branch (68:14): [True: 0, False: 0]
  ------------------
   69|      0|        infoSink.info << "Linking " << StageName(unitStage) << " stage: " << message << "\n";
   70|      0|    else
   71|      0|        infoSink.info << "Linking " << StageName(language) << " and " << StageName(unitStage) << " stages: " << message << "\n";
   72|       |
   73|      1|    ++numErrors;
   74|      1|}
_ZN7glslang13TIntermediate10finalCheckER9TInfoSinkb:
 1578|     43|{
 1579|     43|    if (getTreeRoot() == nullptr)
  ------------------
  |  Branch (1579:9): [True: 0, False: 43]
  ------------------
 1580|      0|        return;
 1581|       |
 1582|     43|    if (numEntryPoints < 1) {
  ------------------
  |  Branch (1582:9): [True: 1, False: 42]
  ------------------
 1583|      1|        if (getSource() == EShSourceGlsl)
  ------------------
  |  Branch (1583:13): [True: 1, False: 0]
  ------------------
 1584|      1|            error(infoSink, "Missing entry point: Each stage requires one entry point");
 1585|      0|        else
 1586|      0|            warn(infoSink, "Entry point not found");
 1587|      1|    }
 1588|       |
 1589|       |    // recursion and missing body checking
 1590|     43|    checkCallGraphCycles(infoSink);
 1591|     43|    checkCallGraphBodies(infoSink, keepUncalled);
 1592|       |
 1593|       |    // overlap/alias/missing I/O, etc.
 1594|     43|    inOutLocationCheck(infoSink);
 1595|       |
 1596|     43|    if (!IsRequestedExtension(glslang::E_GL_NV_push_constant_bank) && (getNumPushConstants() > 1))
  ------------------
  |  Branch (1596:9): [True: 43, False: 0]
  |  Branch (1596:71): [True: 0, False: 43]
  ------------------
 1597|      0|        error(infoSink, "Only one push_constant block is allowed per stage");
 1598|       |
 1599|       |    // invocations
 1600|     43|    if (invocations == TQualifier::layoutNotSet)
  ------------------
  |  Branch (1600:9): [True: 43, False: 0]
  ------------------
 1601|     43|        invocations = 1;
 1602|       |
 1603|     43|    if (inIoAccessed("gl_ClipDistance") && inIoAccessed("gl_ClipVertex"))
  ------------------
  |  Branch (1603:9): [True: 0, False: 43]
  |  Branch (1603:9): [True: 0, False: 43]
  |  Branch (1603:44): [True: 0, False: 0]
  ------------------
 1604|      0|        error(infoSink, "Can only use one of gl_ClipDistance or gl_ClipVertex (gl_ClipDistance is preferred)");
 1605|     43|    if (inIoAccessed("gl_CullDistance") && inIoAccessed("gl_ClipVertex"))
  ------------------
  |  Branch (1605:9): [True: 0, False: 43]
  |  Branch (1605:9): [True: 0, False: 43]
  |  Branch (1605:44): [True: 0, False: 0]
  ------------------
 1606|      0|        error(infoSink, "Can only use one of gl_CullDistance or gl_ClipVertex (gl_ClipDistance is preferred)");
 1607|       |
 1608|     43|    if (userOutputUsed() && (inIoAccessed("gl_FragColor") || inIoAccessed("gl_FragData")))
  ------------------
  |  Branch (1608:9): [True: 7, False: 36]
  |  Branch (1608:9): [True: 0, False: 43]
  |  Branch (1608:30): [True: 0, False: 7]
  |  Branch (1608:62): [True: 0, False: 7]
  ------------------
 1609|      0|        error(infoSink, "Cannot use gl_FragColor or gl_FragData when using user-defined outputs");
 1610|     43|    if (inIoAccessed("gl_FragColor") && inIoAccessed("gl_FragData"))
  ------------------
  |  Branch (1610:9): [True: 0, False: 43]
  |  Branch (1610:9): [True: 0, False: 43]
  |  Branch (1610:41): [True: 0, False: 0]
  ------------------
 1611|      0|        error(infoSink, "Cannot use both gl_FragColor and gl_FragData");
 1612|       |
 1613|    688|    for (size_t b = 0; b < xfbBuffers.size(); ++b) {
  ------------------
  |  Branch (1613:24): [True: 645, False: 43]
  ------------------
 1614|    645|        if (xfbBuffers[b].contains64BitType)
  ------------------
  |  Branch (1614:13): [True: 0, False: 645]
  ------------------
 1615|      0|            RoundToPow2(xfbBuffers[b].implicitStride, 8);
 1616|    645|        else if (xfbBuffers[b].contains32BitType)
  ------------------
  |  Branch (1616:18): [True: 0, False: 645]
  ------------------
 1617|      0|            RoundToPow2(xfbBuffers[b].implicitStride, 4);
 1618|    645|        else if (xfbBuffers[b].contains16BitType)
  ------------------
  |  Branch (1618:18): [True: 0, False: 645]
  ------------------
 1619|      0|            RoundToPow2(xfbBuffers[b].implicitStride, 2);
 1620|       |
 1621|       |        // "It is a compile-time or link-time error to have
 1622|       |        // any xfb_offset that overflows xfb_stride, whether stated on declarations before or after the xfb_stride, or
 1623|       |        // in different compilation units. While xfb_stride can be declared multiple times for the same buffer, it is a
 1624|       |        // compile-time or link-time error to have different values specified for the stride for the same buffer."
 1625|    645|        if (xfbBuffers[b].stride != TQualifier::layoutXfbStrideEnd && xfbBuffers[b].implicitStride > xfbBuffers[b].stride) {
  ------------------
  |  Branch (1625:13): [True: 0, False: 645]
  |  Branch (1625:71): [True: 0, False: 0]
  ------------------
 1626|      0|            error(infoSink, "xfb_stride is too small to hold all buffer entries:");
 1627|      0|            infoSink.info.prefix(EPrefixError);
 1628|      0|            infoSink.info << "    xfb_buffer " << (unsigned int)b << ", xfb_stride " << xfbBuffers[b].stride << ", minimum stride needed: " << xfbBuffers[b].implicitStride << "\n";
 1629|      0|        }
 1630|    645|        if (xfbBuffers[b].stride == TQualifier::layoutXfbStrideEnd)
  ------------------
  |  Branch (1630:13): [True: 645, False: 0]
  ------------------
 1631|    645|            xfbBuffers[b].stride = xfbBuffers[b].implicitStride;
 1632|       |
 1633|       |        // "If the buffer is capturing any
 1634|       |        // outputs with double-precision or 64-bit integer components, the stride must be a multiple of 8, otherwise it must be a
 1635|       |        // multiple of 4, or a compile-time or link-time error results."
 1636|    645|        if (xfbBuffers[b].contains64BitType && ! IsMultipleOfPow2(xfbBuffers[b].stride, 8)) {
  ------------------
  |  Branch (1636:13): [True: 0, False: 645]
  |  Branch (1636:48): [True: 0, False: 0]
  ------------------
 1637|      0|            error(infoSink, "xfb_stride must be multiple of 8 for buffer holding a double or 64-bit integer:");
 1638|      0|            infoSink.info.prefix(EPrefixError);
 1639|      0|            infoSink.info << "    xfb_buffer " << (unsigned int)b << ", xfb_stride " << xfbBuffers[b].stride << "\n";
 1640|    645|        } else if (xfbBuffers[b].contains32BitType && ! IsMultipleOfPow2(xfbBuffers[b].stride, 4)) {
  ------------------
  |  Branch (1640:20): [True: 0, False: 645]
  |  Branch (1640:55): [True: 0, False: 0]
  ------------------
 1641|      0|            error(infoSink, "xfb_stride must be multiple of 4:");
 1642|      0|            infoSink.info.prefix(EPrefixError);
 1643|      0|            infoSink.info << "    xfb_buffer " << (unsigned int)b << ", xfb_stride " << xfbBuffers[b].stride << "\n";
 1644|      0|        }
 1645|       |        // "If the buffer is capturing any
 1646|       |        // outputs with half-precision or 16-bit integer components, the stride must be a multiple of 2"
 1647|    645|        else if (xfbBuffers[b].contains16BitType && ! IsMultipleOfPow2(xfbBuffers[b].stride, 2)) {
  ------------------
  |  Branch (1647:18): [True: 0, False: 645]
  |  Branch (1647:53): [True: 0, False: 0]
  ------------------
 1648|      0|            error(infoSink, "xfb_stride must be multiple of 2 for buffer holding a half float or 16-bit integer:");
 1649|      0|            infoSink.info.prefix(EPrefixError);
 1650|      0|            infoSink.info << "    xfb_buffer " << (unsigned int)b << ", xfb_stride " << xfbBuffers[b].stride << "\n";
 1651|      0|        }
 1652|       |
 1653|       |        // "The resulting stride (implicit or explicit), when divided by 4, must be less than or equal to the
 1654|       |        // implementation-dependent constant gl_MaxTransformFeedbackInterleavedComponents."
 1655|    645|        if (xfbBuffers[b].stride > (unsigned int)(4 * resources->maxTransformFeedbackInterleavedComponents)) {
  ------------------
  |  Branch (1655:13): [True: 0, False: 645]
  ------------------
 1656|      0|            error(infoSink, "xfb_stride is too large:");
 1657|      0|            infoSink.info.prefix(EPrefixError);
 1658|      0|            infoSink.info << "    xfb_buffer " << (unsigned int)b << ", components (1/4 stride) needed are " << xfbBuffers[b].stride/4 << ", gl_MaxTransformFeedbackInterleavedComponents is " << resources->maxTransformFeedbackInterleavedComponents << "\n";
 1659|      0|        }
 1660|    645|    }
 1661|       |
 1662|     43|    switch (language) {
 1663|      0|    case EShLangVertex:
  ------------------
  |  Branch (1663:5): [True: 0, False: 43]
  ------------------
 1664|      0|        break;
 1665|      0|    case EShLangTessControl:
  ------------------
  |  Branch (1665:5): [True: 0, False: 43]
  ------------------
 1666|      0|        if (vertices == TQualifier::layoutNotSet)
  ------------------
  |  Branch (1666:13): [True: 0, False: 0]
  ------------------
 1667|      0|            error(infoSink, "At least one shader must specify an output layout(vertices=...)");
 1668|      0|        break;
 1669|      0|    case EShLangTessEvaluation:
  ------------------
  |  Branch (1669:5): [True: 0, False: 43]
  ------------------
 1670|      0|        if (getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (1670:13): [True: 0, False: 0]
  ------------------
 1671|      0|            if (inputPrimitive == ElgNone)
  ------------------
  |  Branch (1671:17): [True: 0, False: 0]
  ------------------
 1672|      0|                error(infoSink, "At least one shader must specify an input layout primitive");
 1673|      0|            if (vertexSpacing == EvsNone)
  ------------------
  |  Branch (1673:17): [True: 0, False: 0]
  ------------------
 1674|      0|                vertexSpacing = EvsEqual;
 1675|      0|            if (vertexOrder == EvoNone)
  ------------------
  |  Branch (1675:17): [True: 0, False: 0]
  ------------------
 1676|      0|                vertexOrder = EvoCcw;
 1677|      0|        }
 1678|      0|        break;
 1679|      0|    case EShLangGeometry:
  ------------------
  |  Branch (1679:5): [True: 0, False: 43]
  ------------------
 1680|      0|        if (inputPrimitive == ElgNone)
  ------------------
  |  Branch (1680:13): [True: 0, False: 0]
  ------------------
 1681|      0|            error(infoSink, "At least one shader must specify an input layout primitive");
 1682|      0|        if (outputPrimitive == ElgNone)
  ------------------
  |  Branch (1682:13): [True: 0, False: 0]
  ------------------
 1683|      0|            error(infoSink, "At least one shader must specify an output layout primitive");
 1684|      0|        if (vertices == TQualifier::layoutNotSet)
  ------------------
  |  Branch (1684:13): [True: 0, False: 0]
  ------------------
 1685|      0|            error(infoSink, "At least one shader must specify a layout(max_vertices = value)");
 1686|      0|        break;
 1687|     43|    case EShLangFragment:
  ------------------
  |  Branch (1687:5): [True: 43, False: 0]
  ------------------
 1688|       |        // for GL_ARB_post_depth_coverage, EarlyFragmentTest is set automatically in
 1689|       |        // ParseHelper.cpp. So if we reach here, this must be GL_EXT_post_depth_coverage
 1690|       |        // requiring explicit early_fragment_tests
 1691|     43|        if (getPostDepthCoverage() && !getEarlyFragmentTests())
  ------------------
  |  Branch (1691:13): [True: 0, False: 43]
  |  Branch (1691:39): [True: 0, False: 0]
  ------------------
 1692|      0|            error(infoSink, "post_depth_coverage requires early_fragment_tests");
 1693|     43|        break;
 1694|      0|    case EShLangCompute:
  ------------------
  |  Branch (1694:5): [True: 0, False: 43]
  ------------------
 1695|      0|        sharedBlockCheck(infoSink);
 1696|      0|        break;
 1697|      0|    case EShLangRayGen:
  ------------------
  |  Branch (1697:5): [True: 0, False: 43]
  ------------------
 1698|      0|    case EShLangIntersect:
  ------------------
  |  Branch (1698:5): [True: 0, False: 43]
  ------------------
 1699|      0|    case EShLangAnyHit:
  ------------------
  |  Branch (1699:5): [True: 0, False: 43]
  ------------------
 1700|      0|    case EShLangClosestHit:
  ------------------
  |  Branch (1700:5): [True: 0, False: 43]
  ------------------
 1701|      0|    case EShLangMiss:
  ------------------
  |  Branch (1701:5): [True: 0, False: 43]
  ------------------
 1702|      0|    case EShLangCallable:
  ------------------
  |  Branch (1702:5): [True: 0, False: 43]
  ------------------
 1703|      0|        if (numShaderRecordBlocks > 1)
  ------------------
  |  Branch (1703:13): [True: 0, False: 0]
  ------------------
 1704|      0|            error(infoSink, "Only one shaderRecordNV buffer block is allowed per stage");
 1705|      0|        break;
 1706|      0|    case EShLangMesh:
  ------------------
  |  Branch (1706:5): [True: 0, False: 43]
  ------------------
 1707|       |        // NV_mesh_shader doesn't allow use of both single-view and per-view builtins.
 1708|      0|        if (inIoAccessed("gl_Position") && inIoAccessed("gl_PositionPerViewNV"))
  ------------------
  |  Branch (1708:13): [True: 0, False: 0]
  |  Branch (1708:13): [True: 0, False: 0]
  |  Branch (1708:44): [True: 0, False: 0]
  ------------------
 1709|      0|            error(infoSink, "Can only use one of gl_Position or gl_PositionPerViewNV");
 1710|      0|        if (inIoAccessed("gl_ClipDistance") && inIoAccessed("gl_ClipDistancePerViewNV"))
  ------------------
  |  Branch (1710:13): [True: 0, False: 0]
  |  Branch (1710:13): [True: 0, False: 0]
  |  Branch (1710:48): [True: 0, False: 0]
  ------------------
 1711|      0|            error(infoSink, "Can only use one of gl_ClipDistance or gl_ClipDistancePerViewNV");
 1712|      0|        if (inIoAccessed("gl_CullDistance") && inIoAccessed("gl_CullDistancePerViewNV"))
  ------------------
  |  Branch (1712:13): [True: 0, False: 0]
  |  Branch (1712:13): [True: 0, False: 0]
  |  Branch (1712:48): [True: 0, False: 0]
  ------------------
 1713|      0|            error(infoSink, "Can only use one of gl_CullDistance or gl_CullDistancePerViewNV");
 1714|      0|        if (inIoAccessed("gl_Layer") && inIoAccessed("gl_LayerPerViewNV"))
  ------------------
  |  Branch (1714:13): [True: 0, False: 0]
  |  Branch (1714:13): [True: 0, False: 0]
  |  Branch (1714:41): [True: 0, False: 0]
  ------------------
 1715|      0|            error(infoSink, "Can only use one of gl_Layer or gl_LayerPerViewNV");
 1716|      0|        if (inIoAccessed("gl_ViewportMask") && inIoAccessed("gl_ViewportMaskPerViewNV"))
  ------------------
  |  Branch (1716:13): [True: 0, False: 0]
  |  Branch (1716:13): [True: 0, False: 0]
  |  Branch (1716:48): [True: 0, False: 0]
  ------------------
 1717|      0|            error(infoSink, "Can only use one of gl_ViewportMask or gl_ViewportMaskPerViewNV");
 1718|      0|        if (outputPrimitive == ElgNone)
  ------------------
  |  Branch (1718:13): [True: 0, False: 0]
  ------------------
 1719|      0|            error(infoSink, "At least one shader must specify an output layout primitive");
 1720|      0|        if (vertices == TQualifier::layoutNotSet)
  ------------------
  |  Branch (1720:13): [True: 0, False: 0]
  ------------------
 1721|      0|            error(infoSink, "At least one shader must specify a layout(max_vertices = value)");
 1722|      0|        if (primitives == TQualifier::layoutNotSet)
  ------------------
  |  Branch (1722:13): [True: 0, False: 0]
  ------------------
 1723|      0|            error(infoSink, "At least one shader must specify a layout(max_primitives = value)");
 1724|      0|        [[fallthrough]];
 1725|      0|    case EShLangTask:
  ------------------
  |  Branch (1725:5): [True: 0, False: 43]
  ------------------
 1726|      0|        if (numTaskNVBlocks > 1)
  ------------------
  |  Branch (1726:13): [True: 0, False: 0]
  ------------------
 1727|      0|            error(infoSink, "Only one taskNV interface block is allowed per shader");
 1728|      0|        if (numTaskEXTPayloads > 1)
  ------------------
  |  Branch (1728:13): [True: 0, False: 0]
  ------------------
 1729|      0|            error(infoSink, "Only single variable of type taskPayloadSharedEXT is allowed per shader");
 1730|      0|        sharedBlockCheck(infoSink);
 1731|      0|        break;
 1732|      0|    default:
  ------------------
  |  Branch (1732:5): [True: 0, False: 43]
  ------------------
 1733|      0|        error(infoSink, "Unknown Stage.");
 1734|      0|        break;
 1735|     43|    }
 1736|     43|}
_ZN7glslang13TIntermediate20checkCallGraphCyclesER9TInfoSink:
 1743|     43|{
 1744|       |    // Clear fields we'll use for this.
 1745|    203|    for (TGraph::iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
  ------------------
  |  Branch (1745:53): [True: 160, False: 43]
  ------------------
 1746|    160|        call->visited = false;
 1747|    160|        call->currentPath = false;
 1748|    160|        call->errorGiven = false;
 1749|    160|    }
 1750|       |
 1751|       |    //
 1752|       |    // Loop, looking for a new connected subgraph.  One subgraph is handled per loop iteration.
 1753|       |    //
 1754|       |
 1755|     43|    TCall* newRoot;
 1756|    200|    do {
 1757|       |        // See if we have unvisited parts of the graph.
 1758|    200|        newRoot = nullptr;
 1759|  2.60k|        for (TGraph::iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
  ------------------
  |  Branch (1759:57): [True: 2.55k, False: 43]
  ------------------
 1760|  2.55k|            if (! call->visited) {
  ------------------
  |  Branch (1760:17): [True: 157, False: 2.40k]
  ------------------
 1761|    157|                newRoot = &(*call);
 1762|    157|                break;
 1763|    157|            }
 1764|  2.55k|        }
 1765|       |
 1766|       |        // If not, we are done.
 1767|    200|        if (! newRoot)
  ------------------
  |  Branch (1767:13): [True: 43, False: 157]
  ------------------
 1768|     43|            break;
 1769|       |
 1770|       |        // Otherwise, we found a new subgraph, process it:
 1771|       |        // See what all can be reached by this new root, and if any of
 1772|       |        // that is recursive.  This is done by depth-first traversals, seeing
 1773|       |        // if a new call is found that was already in the currentPath (a back edge),
 1774|       |        // thereby detecting recursion.
 1775|    157|        std::list<TCall*> stack;
 1776|    157|        newRoot->currentPath = true; // currentPath will be true iff it is on the stack
 1777|    157|        stack.push_back(newRoot);
 1778|    320|        while (! stack.empty()) {
  ------------------
  |  Branch (1778:16): [True: 163, False: 157]
  ------------------
 1779|       |            // get a caller
 1780|    163|            TCall* call = stack.back();
 1781|       |
 1782|       |            // Add to the stack just one callee.
 1783|       |            // This algorithm always terminates, because only !visited and !currentPath causes a push
 1784|       |            // and all pushes change currentPath to true, and all pops change visited to true.
 1785|    163|            TGraph::iterator child = callGraph.begin();
 1786|  4.81k|            for (; child != callGraph.end(); ++child) {
  ------------------
  |  Branch (1786:20): [True: 4.65k, False: 160]
  ------------------
 1787|       |
 1788|       |                // If we already visited this node, its whole subgraph has already been processed, so skip it.
 1789|  4.65k|                if (child->visited)
  ------------------
  |  Branch (1789:21): [True: 2.24k, False: 2.41k]
  ------------------
 1790|  2.24k|                    continue;
 1791|       |
 1792|  2.41k|                if (call->callee == child->caller) {
  ------------------
  |  Branch (1792:21): [True: 3, False: 2.41k]
  ------------------
 1793|      3|                    if (child->currentPath) {
  ------------------
  |  Branch (1793:25): [True: 0, False: 3]
  ------------------
 1794|       |                        // Then, we found a back edge
 1795|      0|                        if (! child->errorGiven) {
  ------------------
  |  Branch (1795:29): [True: 0, False: 0]
  ------------------
 1796|      0|                            error(infoSink, "Recursion detected:");
 1797|      0|                            infoSink.info << "    " << call->callee << " calling " << child->callee << "\n";
 1798|      0|                            child->errorGiven = true;
 1799|      0|                            recursive = true;
 1800|      0|                        }
 1801|      3|                    } else {
 1802|      3|                        child->currentPath = true;
 1803|      3|                        stack.push_back(&(*child));
 1804|      3|                        break;
 1805|      3|                    }
 1806|      3|                }
 1807|  2.41k|            }
 1808|    163|            if (child == callGraph.end()) {
  ------------------
  |  Branch (1808:17): [True: 160, False: 3]
  ------------------
 1809|       |                // no more callees, we bottomed out, never look at this node again
 1810|    160|                stack.back()->currentPath = false;
 1811|    160|                stack.back()->visited = true;
 1812|    160|                stack.pop_back();
 1813|    160|            }
 1814|    163|        }  // end while, meaning nothing left to process in this subtree
 1815|       |
 1816|    157|    } while (newRoot);  // redundant loop check; should always exit via the 'break' above
  ------------------
  |  Branch (1816:14): [True: 157, False: 0]
  ------------------
 1817|     43|}
_ZN7glslang13TIntermediate20checkCallGraphBodiesER9TInfoSinkb:
 1825|     43|{
 1826|       |    // Clear fields we'll use for this.
 1827|    203|    for (TGraph::iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
  ------------------
  |  Branch (1827:53): [True: 160, False: 43]
  ------------------
 1828|    160|        call->visited = false;
 1829|    160|        call->calleeBodyPosition = -1;
 1830|    160|    }
 1831|       |
 1832|       |    // The top level of the AST includes function definitions (bodies).
 1833|       |    // Compare these to function calls in the call graph.
 1834|       |    // We'll end up knowing which have bodies, and if so,
 1835|       |    // how to map the call-graph node to the location in the AST.
 1836|     43|    TIntermSequence &functionSequence = getTreeRoot()->getAsAggregate()->getSequence();
 1837|     43|    std::vector<bool> reachable(functionSequence.size(), true); // so that non-functions are reachable
 1838|    349|    for (int f = 0; f < (int)functionSequence.size(); ++f) {
  ------------------
  |  Branch (1838:21): [True: 306, False: 43]
  ------------------
 1839|    306|        glslang::TIntermAggregate* node = functionSequence[f]->getAsAggregate();
 1840|    306|        if (node && (node->getOp() == glslang::EOpFunction)) {
  ------------------
  |  Branch (1840:13): [True: 306, False: 0]
  |  Branch (1840:21): [True: 253, False: 53]
  ------------------
 1841|    253|            if (node->getName().compare(getEntryPointMangledName().c_str()) != 0)
  ------------------
  |  Branch (1841:17): [True: 211, False: 42]
  ------------------
 1842|    211|                reachable[f] = false; // so that function bodies are unreachable, until proven otherwise
 1843|  5.34k|            for (TGraph::iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
  ------------------
  |  Branch (1843:61): [True: 5.09k, False: 253]
  ------------------
 1844|  5.09k|                if (call->callee == node->getName())
  ------------------
  |  Branch (1844:21): [True: 160, False: 4.93k]
  ------------------
 1845|    160|                    call->calleeBodyPosition = f;
 1846|  5.09k|            }
 1847|    253|        }
 1848|    306|    }
 1849|       |
 1850|       |    // Start call-graph traversal by visiting the entry point nodes.
 1851|    203|    for (TGraph::iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
  ------------------
  |  Branch (1851:53): [True: 160, False: 43]
  ------------------
 1852|    160|        if (call->caller.compare(getEntryPointMangledName().c_str()) == 0)
  ------------------
  |  Branch (1852:13): [True: 154, False: 6]
  ------------------
 1853|    154|            call->visited = true;
 1854|    160|    }
 1855|       |
 1856|       |    // Propagate 'visited' through the call-graph to every part of the graph it
 1857|       |    // can reach (seeded with the entry-point setting above).
 1858|     43|    bool changed;
 1859|     45|    do {
 1860|     45|        changed = false;
 1861|    211|        for (auto call1 = callGraph.begin(); call1 != callGraph.end(); ++call1) {
  ------------------
  |  Branch (1861:46): [True: 166, False: 45]
  ------------------
 1862|    166|            if (call1->visited) {
  ------------------
  |  Branch (1862:17): [True: 162, False: 4]
  ------------------
 1863|  4.82k|                for (TGraph::iterator call2 = callGraph.begin(); call2 != callGraph.end(); ++call2) {
  ------------------
  |  Branch (1863:66): [True: 4.66k, False: 162]
  ------------------
 1864|  4.66k|                    if (! call2->visited) {
  ------------------
  |  Branch (1864:25): [True: 8, False: 4.65k]
  ------------------
 1865|      8|                        if (call1->callee == call2->caller) {
  ------------------
  |  Branch (1865:29): [True: 3, False: 5]
  ------------------
 1866|      3|                            changed = true;
 1867|      3|                            call2->visited = true;
 1868|      3|                        }
 1869|      8|                    }
 1870|  4.66k|                }
 1871|    162|            }
 1872|    166|        }
 1873|     45|    } while (changed);
  ------------------
  |  Branch (1873:14): [True: 2, False: 43]
  ------------------
 1874|       |
 1875|       |    // Any call-graph node set to visited but without a callee body is an error.
 1876|    203|    for (TGraph::iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
  ------------------
  |  Branch (1876:53): [True: 160, False: 43]
  ------------------
 1877|    160|        if (call->visited) {
  ------------------
  |  Branch (1877:13): [True: 157, False: 3]
  ------------------
 1878|    157|            if (call->calleeBodyPosition == -1) {
  ------------------
  |  Branch (1878:17): [True: 0, False: 157]
  ------------------
 1879|      0|                error(infoSink, "No function definition (body) found: ");
 1880|      0|                infoSink.info << "    " << call->callee << "\n";
 1881|      0|            } else
 1882|    157|                reachable[call->calleeBodyPosition] = true;
 1883|    157|        }
 1884|    160|    }
 1885|       |
 1886|       |    // Bodies in the AST not reached by the call graph are dead;
 1887|       |    // clear them out, since they can't be reached and also can't
 1888|       |    // be translated further due to possibility of being ill defined.
 1889|     43|    if (! keepUncalled) {
  ------------------
  |  Branch (1889:9): [True: 43, False: 0]
  ------------------
 1890|    349|        for (int f = 0; f < (int)functionSequence.size(); ++f) {
  ------------------
  |  Branch (1890:25): [True: 306, False: 43]
  ------------------
 1891|    306|            if (! reachable[f])
  ------------------
  |  Branch (1891:17): [True: 54, False: 252]
  ------------------
 1892|     54|            {
 1893|     54|                resetTopLevelUncalledStatus(functionSequence[f]->getAsAggregate()->getName());
 1894|     54|                functionSequence[f] = nullptr;
 1895|     54|            }
 1896|    306|        }
 1897|     43|        functionSequence.erase(std::remove(functionSequence.begin(), functionSequence.end(), nullptr), functionSequence.end());
 1898|     43|    }
 1899|     43|}
_ZN7glslang13TIntermediate18inOutLocationCheckER9TInfoSink:
 1905|     43|{
 1906|       |    // ES 3.0 requires all outputs to have location qualifiers if there is more than one output
 1907|     43|    bool fragOutWithNoLocation = false;
 1908|     43|    int numFragOut = 0;
 1909|       |
 1910|       |    // TODO: linker functionality: location collision checking
 1911|       |
 1912|     43|    TIntermSequence& linkObjects = findLinkerObjects()->getSequence();
 1913|    753|    for (size_t i = 0; i < linkObjects.size(); ++i) {
  ------------------
  |  Branch (1913:24): [True: 710, False: 43]
  ------------------
 1914|    710|        const TType& type = linkObjects[i]->getAsTyped()->getType();
 1915|    710|        const TQualifier& qualifier = type.getQualifier();
 1916|    710|        if (language == EShLangFragment) {
  ------------------
  |  Branch (1916:13): [True: 710, False: 0]
  ------------------
 1917|    710|            if (qualifier.storage == EvqVaryingOut && qualifier.builtIn == EbvNone) {
  ------------------
  |  Branch (1917:17): [True: 7, False: 703]
  |  Branch (1917:55): [True: 7, False: 0]
  ------------------
 1918|      7|                ++numFragOut;
 1919|      7|                if (!qualifier.hasAnyLocation())
  ------------------
  |  Branch (1919:21): [True: 0, False: 7]
  ------------------
 1920|      0|                    fragOutWithNoLocation = true;
 1921|      7|            }
 1922|    710|        }
 1923|    710|    }
 1924|       |
 1925|     43|    if (isEsProfile()) {
  ------------------
  |  Branch (1925:9): [True: 2, False: 41]
  ------------------
 1926|      2|        if (numFragOut > 1 && fragOutWithNoLocation)
  ------------------
  |  Branch (1926:13): [True: 0, False: 2]
  |  Branch (1926:31): [True: 0, False: 0]
  ------------------
 1927|      0|            error(infoSink, "when more than one fragment shader output, all must have location qualifiers");
 1928|      2|    }
 1929|     43|}
_ZNK7glslang13TIntermediate17findLinkerObjectsEv:
 1932|     86|{
 1933|       |    // Get the top-level globals
 1934|     86|    TIntermSequence& globals = treeRoot->getAsAggregate()->getSequence();
 1935|       |
 1936|       |    // Get the last member of the sequences, expected to be the linker-object lists
 1937|     86|    assert(globals.back()->getAsAggregate()->getOp() == EOpLinkerObjects);
 1938|       |
 1939|     86|    return globals.back()->getAsAggregate();
 1940|     86|}
_ZNK7glslang13TIntermediate14userOutputUsedEv:
 1946|     43|{
 1947|     43|    const TIntermSequence& linkerObjects = findLinkerObjects()->getSequence();
 1948|       |
 1949|     43|    bool found = false;
 1950|    724|    for (size_t i = 0; i < linkerObjects.size(); ++i) {
  ------------------
  |  Branch (1950:24): [True: 688, False: 36]
  ------------------
 1951|    688|        const TIntermSymbol& symbolNode = *linkerObjects[i]->getAsSymbolNode();
 1952|    688|        if (symbolNode.getQualifier().storage == EvqVaryingOut &&
  ------------------
  |  Branch (1952:13): [True: 7, False: 681]
  ------------------
 1953|      7|            symbolNode.getName().compare(0, 3, "gl_") != 0 &&
  ------------------
  |  Branch (1953:13): [True: 7, False: 0]
  ------------------
 1954|      7|            inIoAccessed(symbolNode.getName())) {
  ------------------
  |  Branch (1954:13): [True: 7, False: 0]
  ------------------
 1955|      7|            found = true;
 1956|      7|            break;
 1957|      7|        }
 1958|    688|    }
 1959|       |
 1960|     43|    return found;
 1961|     43|}
_ZN7glslang13TIntermediate15addUsedLocationERKNS_10TQualifierERKNS_5TTypeERb:
 1972|  2.09k|{
 1973|  2.09k|    typeCollision = false;
 1974|       |
 1975|  2.09k|    int set;
 1976|  2.09k|    if (qualifier.isPipeInput())
  ------------------
  |  Branch (1976:9): [True: 1.53k, False: 557]
  ------------------
 1977|  1.53k|        set = 0;
 1978|    557|    else if (qualifier.isPipeOutput())
  ------------------
  |  Branch (1978:14): [True: 430, False: 127]
  ------------------
 1979|    430|        set = 1;
 1980|    127|    else if (qualifier.storage == EvqUniform)
  ------------------
  |  Branch (1980:14): [True: 121, False: 6]
  ------------------
 1981|    121|        set = 2;
 1982|      6|    else if (qualifier.storage == EvqBuffer)
  ------------------
  |  Branch (1982:14): [True: 0, False: 6]
  ------------------
 1983|      0|        set = 3;
 1984|      6|    else if (qualifier.storage == EvqTileImageEXT)
  ------------------
  |  Branch (1984:14): [True: 0, False: 6]
  ------------------
 1985|      0|        set = 4;
 1986|      6|    else if (qualifier.isAnyPayload())
  ------------------
  |  Branch (1986:14): [True: 0, False: 6]
  ------------------
 1987|      0|        set = 0;
 1988|      6|    else if (qualifier.isAnyCallable())
  ------------------
  |  Branch (1988:14): [True: 0, False: 6]
  ------------------
 1989|      0|        set = 1;
 1990|      6|    else if (qualifier.isHitObjectAttrNV())
  ------------------
  |  Branch (1990:14): [True: 0, False: 6]
  ------------------
 1991|      0|        set = 2;
 1992|      6|    else if (qualifier.isHitObjectAttrEXT())
  ------------------
  |  Branch (1992:14): [True: 0, False: 6]
  ------------------
 1993|      0|        set = 2;
 1994|      6|    else
 1995|      6|        return -1;
 1996|       |
 1997|  2.08k|    int size;
 1998|  2.08k|    if (qualifier.isAnyPayload() || qualifier.isAnyCallable()) {
  ------------------
  |  Branch (1998:9): [True: 0, False: 2.08k]
  |  Branch (1998:37): [True: 0, False: 2.08k]
  ------------------
 1999|      0|        size = 1;
 2000|  2.08k|    } else if (qualifier.isUniformOrBuffer() || qualifier.isTaskMemory()) {
  ------------------
  |  Branch (2000:16): [True: 121, False: 1.96k]
  |  Branch (2000:49): [True: 0, False: 1.96k]
  ------------------
 2001|    121|        if (type.isSizedArray())
  ------------------
  |  Branch (2001:13): [True: 0, False: 121]
  ------------------
 2002|      0|            size = type.getCumulativeArraySize();
 2003|    121|        else
 2004|    121|            size = 1;
 2005|  1.96k|    } else {
 2006|       |        // Strip off the outer array dimension for those having an extra one.
 2007|  1.96k|        if (type.isArray() && qualifier.isArrayedIo(language)) {
  ------------------
  |  Branch (2007:13): [True: 94, False: 1.87k]
  |  Branch (2007:31): [True: 0, False: 94]
  ------------------
 2008|      0|            TType elementType(type, 0);
 2009|      0|            size = computeTypeLocationSize(elementType, language);
 2010|      0|        } else
 2011|  1.96k|            size = computeTypeLocationSize(type, language);
 2012|  1.96k|    }
 2013|       |
 2014|       |    // Locations, and components within locations.
 2015|       |    //
 2016|       |    // Almost always, dealing with components means a single location is involved.
 2017|       |    // The exception is a dvec3. From the spec:
 2018|       |    //
 2019|       |    // "A dvec3 will consume all four components of the first location and components 0 and 1 of
 2020|       |    // the second location. This leaves components 2 and 3 available for other component-qualified
 2021|       |    // declarations."
 2022|       |    //
 2023|       |    // That means, without ever mentioning a component, a component range
 2024|       |    // for a different location gets specified, if it's not a vertex shader input. (!)
 2025|       |    // (A vertex shader input will show using only one location, even for a dvec3/4.)
 2026|       |    //
 2027|       |    // So, for the case of dvec3, we need two independent ioRanges.
 2028|       |    //
 2029|       |    // For raytracing IO (payloads and callabledata) each declaration occupies a single
 2030|       |    // slot irrespective of type.
 2031|  2.08k|    int collision = -1; // no collision
 2032|  2.08k|    if (qualifier.isAnyPayload() || qualifier.isAnyCallable() || qualifier.isHitObjectAttrNV() || qualifier.isHitObjectAttrEXT()) {
  ------------------
  |  Branch (2032:9): [True: 0, False: 2.08k]
  |  Branch (2032:37): [True: 0, False: 2.08k]
  |  Branch (2032:66): [True: 0, False: 2.08k]
  |  Branch (2032:99): [True: 0, False: 2.08k]
  ------------------
 2033|      0|        TRange range(qualifier.layoutLocation, qualifier.layoutLocation);
 2034|      0|        collision = checkLocationRT(set, qualifier.layoutLocation);
 2035|      0|        if (collision < 0)
  ------------------
  |  Branch (2035:13): [True: 0, False: 0]
  ------------------
 2036|      0|            usedIoRT[set].push_back(range);
 2037|      0|        return collision;
 2038|      0|    }
 2039|  2.08k|    if (size == 2 && type.getBasicType() == EbtDouble && type.getVectorSize() == 3 &&
  ------------------
  |  Branch (2039:9): [True: 20, False: 2.06k]
  |  Branch (2039:22): [True: 0, False: 20]
  |  Branch (2039:58): [True: 0, False: 0]
  ------------------
 2040|      0|        (qualifier.isPipeInput() || qualifier.isPipeOutput())) {
  ------------------
  |  Branch (2040:10): [True: 0, False: 0]
  |  Branch (2040:37): [True: 0, False: 0]
  ------------------
 2041|       |        // Dealing with dvec3 in/out split across two locations.
 2042|       |        // Need two io-ranges.
 2043|       |        // The case where the dvec3 doesn't start at component 0 was previously caught as overflow.
 2044|       |
 2045|       |        // First range:
 2046|      0|        TRange locationRange(qualifier.layoutLocation, qualifier.layoutLocation);
 2047|      0|        TRange componentRange(0, 3);
 2048|      0|        TIoRange range(locationRange, componentRange, type.getBasicType(), 0, qualifier.centroid, qualifier.smooth, qualifier.flat, qualifier.sample, qualifier.patch);
 2049|       |
 2050|       |        // check for collisions
 2051|      0|        collision = checkLocationRange(set, range, type, typeCollision);
 2052|      0|        if (collision < 0) {
  ------------------
  |  Branch (2052:13): [True: 0, False: 0]
  ------------------
 2053|      0|            usedIo[set].push_back(range);
 2054|       |
 2055|       |            // Second range:
 2056|      0|            TRange locationRange2(qualifier.layoutLocation + 1, qualifier.layoutLocation + 1);
 2057|      0|            TRange componentRange2(0, 1);
 2058|      0|            TIoRange range2(locationRange2, componentRange2, type.getBasicType(), 0, qualifier.centroid, qualifier.smooth, qualifier.flat, qualifier.sample, qualifier.patch);
 2059|       |
 2060|       |            // check for collisions
 2061|      0|            collision = checkLocationRange(set, range2, type, typeCollision);
 2062|      0|            if (collision < 0)
  ------------------
  |  Branch (2062:17): [True: 0, False: 0]
  ------------------
 2063|      0|                usedIo[set].push_back(range2);
 2064|      0|        }
 2065|      0|        return collision;
 2066|      0|    }
 2067|       |
 2068|       |    // Not a dvec3 in/out split across two locations, generic path.
 2069|       |    // Need a single IO-range block.
 2070|       |
 2071|  2.08k|    TRange locationRange(qualifier.layoutLocation, qualifier.layoutLocation + size - 1);
 2072|  2.08k|    TRange componentRange(0, 3);
 2073|  2.08k|    if (qualifier.hasComponent() || type.getVectorSize() > 0) {
  ------------------
  |  Branch (2073:9): [True: 326, False: 1.76k]
  |  Branch (2073:37): [True: 1.66k, False: 103]
  ------------------
 2074|  1.98k|        int consumedComponents = type.getVectorSize() * (type.getBasicType() == EbtDouble ? 2 : 1);
  ------------------
  |  Branch (2074:58): [True: 0, False: 1.98k]
  ------------------
 2075|  1.98k|        if (qualifier.hasComponent())
  ------------------
  |  Branch (2075:13): [True: 326, False: 1.66k]
  ------------------
 2076|    326|            componentRange.start = qualifier.layoutComponent;
 2077|  1.98k|        componentRange.last  = componentRange.start + consumedComponents - 1;
 2078|  1.98k|    }
 2079|       |
 2080|       |    // combine location and component ranges
 2081|  2.08k|    TBasicType basicTy = type.getBasicType();
 2082|  2.08k|    if (basicTy == EbtSampler && type.getSampler().isAttachmentEXT())
  ------------------
  |  Branch (2082:9): [True: 0, False: 2.08k]
  |  Branch (2082:34): [True: 0, False: 0]
  ------------------
 2083|      0|        basicTy = type.getSampler().type;
 2084|  2.08k|    TIoRange range(locationRange, componentRange, basicTy, qualifier.hasIndex() ? qualifier.getIndex() : 0u, qualifier.centroid, qualifier.smooth, qualifier.flat, qualifier.sample, qualifier.patch);
  ------------------
  |  Branch (2084:60): [True: 119, False: 1.97k]
  ------------------
 2085|       |
 2086|       |    // check for collisions, except for vertex inputs on desktop targeting OpenGL
 2087|  2.08k|    if (! (!isEsProfile() && language == EShLangVertex && qualifier.isPipeInput()) || spvVersion.vulkan > 0)
  ------------------
  |  Branch (2087:12): [True: 1.46k, False: 622]
  |  Branch (2087:30): [True: 0, False: 1.46k]
  |  Branch (2087:59): [True: 0, False: 0]
  |  Branch (2087:87): [True: 0, False: 0]
  ------------------
 2088|  2.08k|        collision = checkLocationRange(set, range, type, typeCollision);
 2089|       |
 2090|  2.08k|    if (collision < 0)
  ------------------
  |  Branch (2090:9): [True: 1.66k, False: 420]
  ------------------
 2091|  1.66k|        usedIo[set].push_back(range);
 2092|       |
 2093|  2.08k|    return collision;
 2094|  2.08k|}
_ZN7glslang13TIntermediate18checkLocationRangeEiRKNS_8TIoRangeERKNS_5TTypeERb:
 2120|  2.08k|{
 2121|  10.8k|    for (size_t r = 0; r < usedIo[set].size(); ++r) {
  ------------------
  |  Branch (2121:24): [True: 9.19k, False: 1.66k]
  ------------------
 2122|  9.19k|        if (range.overlap(usedIo[set][r])) {
  ------------------
  |  Branch (2122:13): [True: 379, False: 8.81k]
  ------------------
 2123|       |            // there is a collision; pick one
 2124|    379|            return std::max(range.location.start, usedIo[set][r].location.start);
 2125|  8.81k|        } else if (range.location.overlap(usedIo[set][r].location) &&
  ------------------
  |  Branch (2125:20): [True: 163, False: 8.65k]
  ------------------
 2126|    163|                   (!checkCompatibleTypes(type.getBasicType(), usedIo[set][r].basicType) ||
  ------------------
  |  Branch (2126:21): [True: 41, False: 122]
  ------------------
 2127|    122|                    type.getQualifier().centroid != usedIo[set][r].centroid ||
  ------------------
  |  Branch (2127:21): [True: 0, False: 122]
  ------------------
 2128|    122|                    type.getQualifier().smooth != usedIo[set][r].smooth ||
  ------------------
  |  Branch (2128:21): [True: 0, False: 122]
  ------------------
 2129|    122|                    type.getQualifier().flat != usedIo[set][r].flat ||
  ------------------
  |  Branch (2129:21): [True: 0, False: 122]
  ------------------
 2130|    122|                    type.getQualifier().sample != usedIo[set][r].sample ||
  ------------------
  |  Branch (2130:21): [True: 0, False: 122]
  ------------------
 2131|    122|                    type.getQualifier().patch != usedIo[set][r].patch)) {
  ------------------
  |  Branch (2131:21): [True: 0, False: 122]
  ------------------
 2132|       |            // aliased-type mismatch
 2133|     41|            typeCollision = true;
 2134|     41|            return std::max(range.location.start, usedIo[set][r].location.start);
 2135|     41|        }
 2136|  9.19k|    }
 2137|       |
 2138|       |    // check typeCollision between tileImageEXT and out
 2139|  1.66k|    if (set == 4 || set == 1) {
  ------------------
  |  Branch (2139:9): [True: 0, False: 1.66k]
  |  Branch (2139:21): [True: 288, False: 1.38k]
  ------------------
 2140|       |      // if the set is "tileImageEXT", check against "out" and vice versa
 2141|    288|      int againstSet = (set == 4) ? 1 : 4;
  ------------------
  |  Branch (2141:24): [True: 0, False: 288]
  ------------------
 2142|    288|      for (size_t r = 0; r < usedIo[againstSet].size(); ++r) {
  ------------------
  |  Branch (2142:26): [True: 0, False: 288]
  ------------------
 2143|      0|        if (range.location.overlap(usedIo[againstSet][r].location) && type.getBasicType() != usedIo[againstSet][r].basicType) {
  ------------------
  |  Branch (2143:13): [True: 0, False: 0]
  |  Branch (2143:71): [True: 0, False: 0]
  ------------------
 2144|       |            // aliased-type mismatch
 2145|      0|            typeCollision = true;
 2146|      0|            return std::max(range.location.start, usedIo[againstSet][r].location.start);
 2147|      0|        }
 2148|      0|      }
 2149|    288|    }
 2150|       |
 2151|  1.66k|    return -1; // no collision
 2152|  1.66k|}
_ZN7glslang13TIntermediate14addUsedOffsetsEiii:
 2170|     76|{
 2171|     76|    TRange bindingRange(binding, binding);
 2172|     76|    TRange offsetRange(offset, offset + numOffsets - 1);
 2173|     76|    TOffsetRange range(bindingRange, offsetRange);
 2174|       |
 2175|       |    // check for collisions, except for vertex inputs on desktop
 2176|     76|    for (size_t r = 0; r < usedAtomics.size(); ++r) {
  ------------------
  |  Branch (2176:24): [True: 0, False: 76]
  ------------------
 2177|      0|        if (range.overlap(usedAtomics[r])) {
  ------------------
  |  Branch (2177:13): [True: 0, False: 0]
  ------------------
 2178|       |            // there is a collision; pick one
 2179|      0|            return std::max(offset, usedAtomics[r].offset.start);
 2180|      0|        }
 2181|      0|    }
 2182|       |
 2183|     76|    usedAtomics.push_back(range);
 2184|       |
 2185|     76|    return -1; // no collision
 2186|     76|}
_ZN7glslang13TIntermediate17addUsedConstantIdEi:
 2192|    343|{
 2193|    343|    if (usedConstantId.find(id) != usedConstantId.end())
  ------------------
  |  Branch (2193:9): [True: 28, False: 315]
  ------------------
 2194|     28|        return false;
 2195|       |
 2196|    315|    usedConstantId.insert(id);
 2197|       |
 2198|    315|    return true;
 2199|    343|}
_ZN7glslang13TIntermediate23computeTypeLocationSizeERKNS_5TTypeE11EShLanguage:
 2204|  2.84k|{
 2205|       |    // "If the declared input is an array of size n and each element takes m locations, it will be assigned m * n
 2206|       |    // consecutive locations..."
 2207|  2.84k|    if (type.isArray()) {
  ------------------
  |  Branch (2207:9): [True: 110, False: 2.73k]
  ------------------
 2208|       |        // TODO: perf: this can be flattened by using getCumulativeArraySize(), and a deref that discards all arrayness
 2209|       |        // TODO: are there valid cases of having an unsized array with a location?  If so, running this code too early.
 2210|    110|        TType elementType(type, 0);
 2211|    110|        if (type.isSizedArray() && !type.getQualifier().isPerView())
  ------------------
  |  Branch (2211:13): [True: 109, False: 1]
  |  Branch (2211:36): [True: 109, False: 0]
  ------------------
 2212|    109|            return type.getOuterArraySize() * computeTypeLocationSize(elementType, stage);
 2213|      1|        else {
 2214|       |            // unset perViewNV attributes for arrayed per-view outputs: "perviewNV vec4 v[MAX_VIEWS][3];"
 2215|      1|            elementType.getQualifier().perViewNV = false;
 2216|      1|            return computeTypeLocationSize(elementType, stage);
 2217|      1|        }
 2218|    110|    }
 2219|       |
 2220|       |    // "The locations consumed by block and structure members are determined by applying the rules above
 2221|       |    // recursively..."
 2222|  2.73k|    if (type.isStruct()) {
  ------------------
  |  Branch (2222:9): [True: 65, False: 2.66k]
  ------------------
 2223|     65|        int size = 0;
 2224|    211|        for (int member = 0; member < (int)type.getStruct()->size(); ++member) {
  ------------------
  |  Branch (2224:30): [True: 146, False: 65]
  ------------------
 2225|    146|            TType memberType(type, member);
 2226|    146|            size += computeTypeLocationSize(memberType, stage);
 2227|    146|        }
 2228|     65|        return size;
 2229|     65|    }
 2230|       |
 2231|       |    // ES: "If a shader input is any scalar or vector type, it will consume a single location."
 2232|       |
 2233|       |    // Desktop: "If a vertex shader input is any scalar or vector type, it will consume a single location. If a non-vertex
 2234|       |    // shader input is a scalar or vector type other than dvec3 or dvec4, it will consume a single location, while
 2235|       |    // types dvec3 or dvec4 will consume two consecutive locations. Inputs of type double and dvec2 will
 2236|       |    // consume only a single location, in all stages."
 2237|  2.66k|    if (type.isScalar())
  ------------------
  |  Branch (2237:9): [True: 868, False: 1.80k]
  ------------------
 2238|    868|        return 1;
 2239|  1.80k|    if (type.isVector()) {
  ------------------
  |  Branch (2239:9): [True: 1.68k, False: 119]
  ------------------
 2240|  1.68k|        if (stage == EShLangVertex && type.getQualifier().isPipeInput())
  ------------------
  |  Branch (2240:13): [True: 0, False: 1.68k]
  |  Branch (2240:39): [True: 0, False: 0]
  ------------------
 2241|      0|            return 1;
 2242|  1.68k|        if (type.getBasicType() == EbtDouble && type.getVectorSize() > 2)
  ------------------
  |  Branch (2242:13): [True: 0, False: 1.68k]
  |  Branch (2242:49): [True: 0, False: 0]
  ------------------
 2243|      0|            return 2;
 2244|  1.68k|        else
 2245|  1.68k|            return 1;
 2246|  1.68k|    }
 2247|       |
 2248|       |    // "If the declared input is an n x m single- or double-precision matrix, ...
 2249|       |    // The number of locations assigned for each matrix will be the same as
 2250|       |    // for an n-element array of m-component vectors..."
 2251|    119|    if (type.isMatrix()) {
  ------------------
  |  Branch (2251:9): [True: 119, False: 0]
  ------------------
 2252|    119|        TType columnType(type, 0);
 2253|    119|        return type.getMatrixCols() * computeTypeLocationSize(columnType, stage);
 2254|    119|    }
 2255|       |
 2256|    119|    assert(0);
 2257|      0|    return 1;
 2258|    119|}
_ZN7glslang13TIntermediate22getBaseAlignmentScalarERKNS_5TTypeERi:
 2414|  3.33k|{
 2415|  3.33k|    switch (type.getBasicType()) {
 2416|     25|    case EbtInt64:
  ------------------
  |  Branch (2416:5): [True: 25, False: 3.31k]
  ------------------
 2417|     50|    case EbtUint64:
  ------------------
  |  Branch (2417:5): [True: 25, False: 3.31k]
  ------------------
 2418|    199|    case EbtDouble:  size = 8; return 8;
  ------------------
  |  Branch (2418:5): [True: 149, False: 3.18k]
  ------------------
 2419|    399|    case EbtFloat16: size = 2; return 2;
  ------------------
  |  Branch (2419:5): [True: 399, False: 2.93k]
  ------------------
 2420|      0|    case EbtBFloat16: size = 2; return 2;
  ------------------
  |  Branch (2420:5): [True: 0, False: 3.33k]
  ------------------
 2421|      0|    case EbtFloatE5M2:
  ------------------
  |  Branch (2421:5): [True: 0, False: 3.33k]
  ------------------
 2422|      0|    case EbtFloatE4M3:
  ------------------
  |  Branch (2422:5): [True: 0, False: 3.33k]
  ------------------
 2423|      0|    case EbtFloatUE8M0:
  ------------------
  |  Branch (2423:5): [True: 0, False: 3.33k]
  ------------------
 2424|      0|    case EbtFloatMXINT8:
  ------------------
  |  Branch (2424:5): [True: 0, False: 3.33k]
  ------------------
 2425|     56|    case EbtInt8:
  ------------------
  |  Branch (2425:5): [True: 56, False: 3.27k]
  ------------------
 2426|    112|    case EbtUint8:   size = 1; return 1;
  ------------------
  |  Branch (2426:5): [True: 56, False: 3.27k]
  ------------------
 2427|    261|    case EbtInt16:
  ------------------
  |  Branch (2427:5): [True: 261, False: 3.07k]
  ------------------
 2428|    699|    case EbtUint16:  size = 2; return 2;
  ------------------
  |  Branch (2428:5): [True: 438, False: 2.89k]
  ------------------
 2429|      0|    case EbtReference: size = 8; return 8;
  ------------------
  |  Branch (2429:5): [True: 0, False: 3.33k]
  ------------------
 2430|      0|    case EbtSampler:
  ------------------
  |  Branch (2430:5): [True: 0, False: 3.33k]
  ------------------
 2431|      0|    {
 2432|      0|        if (type.isBindlessImage() || type.isBindlessTexture()) {
  ------------------
  |  Branch (2432:13): [True: 0, False: 0]
  |  Branch (2432:39): [True: 0, False: 0]
  ------------------
 2433|      0|            size = 8; return 8;
 2434|      0|        }
 2435|      0|        else {
 2436|      0|            size = 4; return 4;
 2437|      0|        }
 2438|      0|    }
 2439|  1.92k|    default:         size = 4; return 4;
  ------------------
  |  Branch (2439:5): [True: 1.92k, False: 1.40k]
  ------------------
 2440|  3.33k|    }
 2441|  3.33k|}
_ZN7glslang13TIntermediate16getBaseAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb:
 2458|  3.11k|{
 2459|  3.11k|    int alignment;
 2460|       |
 2461|  3.11k|    bool std140 = layoutPacking == glslang::ElpStd140;
 2462|       |    // When using the std140 storage layout, structures will be laid out in buffer
 2463|       |    // storage with its members stored in monotonically increasing order based on their
 2464|       |    // location in the declaration. A structure and each structure member have a base
 2465|       |    // offset and a base alignment, from which an aligned offset is computed by rounding
 2466|       |    // the base offset up to a multiple of the base alignment. The base offset of the first
 2467|       |    // member of a structure is taken from the aligned offset of the structure itself. The
 2468|       |    // base offset of all other structure members is derived by taking the offset of the
 2469|       |    // last basic machine unit consumed by the previous member and adding one. Each
 2470|       |    // structure member is stored in memory at its aligned offset. The members of a top-
 2471|       |    // level uniform block are laid out in buffer storage by treating the uniform block as
 2472|       |    // a structure with a base offset of zero.
 2473|       |    //
 2474|       |    //   1. If the member is a scalar consuming N basic machine units, the base alignment is N.
 2475|       |    //
 2476|       |    //   2. If the member is a two- or four-component vector with components consuming N basic
 2477|       |    //      machine units, the base alignment is 2N or 4N, respectively.
 2478|       |    //
 2479|       |    //   3. If the member is a three-component vector with components consuming N
 2480|       |    //      basic machine units, the base alignment is 4N.
 2481|       |    //
 2482|       |    //   4. If the member is an array of scalars or vectors, the base alignment and array
 2483|       |    //      stride are set to match the base alignment of a single array element, according
 2484|       |    //      to rules (1), (2), and (3), and rounded up to the base alignment of a vec4. The
 2485|       |    //      array may have padding at the end; the base offset of the member following
 2486|       |    //      the array is rounded up to the next multiple of the base alignment.
 2487|       |    //
 2488|       |    //   5. If the member is a column-major matrix with C columns and R rows, the
 2489|       |    //      matrix is stored identically to an array of C column vectors with R
 2490|       |    //      components each, according to rule (4).
 2491|       |    //
 2492|       |    //   6. If the member is an array of S column-major matrices with C columns and
 2493|       |    //      R rows, the matrix is stored identically to a row of S X C column vectors
 2494|       |    //      with R components each, according to rule (4).
 2495|       |    //
 2496|       |    //   7. If the member is a row-major matrix with C columns and R rows, the matrix
 2497|       |    //      is stored identically to an array of R row vectors with C components each,
 2498|       |    //      according to rule (4).
 2499|       |    //
 2500|       |    //   8. If the member is an array of S row-major matrices with C columns and R
 2501|       |    //      rows, the matrix is stored identically to a row of S X R row vectors with C
 2502|       |    //      components each, according to rule (4).
 2503|       |    //
 2504|       |    //   9. If the member is a structure, the base alignment of the structure is N , where
 2505|       |    //      N is the largest base alignment value of any    of its members, and rounded
 2506|       |    //      up to the base alignment of a vec4. The individual members of this substructure
 2507|       |    //      are then assigned offsets by applying this set of rules recursively,
 2508|       |    //      where the base offset of the first member of the sub-structure is equal to the
 2509|       |    //      aligned offset of the structure. The structure may have padding at the end;
 2510|       |    //      the base offset of the member following the sub-structure is rounded up to
 2511|       |    //      the next multiple of the base alignment of the structure.
 2512|       |    //
 2513|       |    //   10. If the member is an array of S structures, the S elements of the array are laid
 2514|       |    //       out in order, according to rule (9).
 2515|       |    //
 2516|       |    //   Assuming, for rule 10:  The stride is the same as the size of an element.
 2517|       |
 2518|  3.11k|    stride = 0;
 2519|  3.11k|    int dummyStride;
 2520|       |
 2521|       |    // rules 4, 6, 8, and 10
 2522|  3.11k|    if (type.isArray()) {
  ------------------
  |  Branch (2522:9): [True: 213, False: 2.90k]
  ------------------
 2523|       |        // TODO: perf: this might be flattened by using getCumulativeArraySize(), and a deref that discards all arrayness
 2524|    213|        TType derefType(type, 0);
 2525|    213|        alignment = getBaseAlignment(derefType, size, dummyStride, layoutPacking, rowMajor);
 2526|    213|        if (std140)
  ------------------
  |  Branch (2526:13): [True: 138, False: 75]
  ------------------
 2527|    138|            alignment = std::max(baseAlignmentVec4Std140, alignment);
 2528|    213|        RoundToPow2(size, alignment);
 2529|    213|        stride = size;  // uses full matrix size for stride of an array of matrices (not quite what rule 6/8, but what's expected)
 2530|       |                        // uses the assumption for rule 10 in the comment above
 2531|       |        // use one element to represent the last member of SSBO which is unsized array
 2532|    213|        int arraySize = (type.isUnsizedArray() && (type.getOuterArraySize() == 0)) ? 1 : type.getOuterArraySize();
  ------------------
  |  Branch (2532:26): [True: 33, False: 180]
  |  Branch (2532:51): [True: 33, False: 0]
  ------------------
 2533|    213|        size = stride * arraySize;
 2534|    213|        return alignment;
 2535|    213|    }
 2536|       |
 2537|       |    // rule 9
 2538|  2.90k|    if (type.getBasicType() == EbtStruct || type.getBasicType() == EbtBlock) {
  ------------------
  |  Branch (2538:9): [True: 180, False: 2.72k]
  |  Branch (2538:45): [True: 0, False: 2.72k]
  ------------------
 2539|    180|        const TTypeList& memberList = *type.getStruct();
 2540|       |
 2541|    180|        size = 0;
 2542|    180|        int maxAlignment = std140 ? baseAlignmentVec4Std140 : 0;
  ------------------
  |  Branch (2542:28): [True: 125, False: 55]
  ------------------
 2543|  1.08k|        for (size_t m = 0; m < memberList.size(); ++m) {
  ------------------
  |  Branch (2543:28): [True: 906, False: 180]
  ------------------
 2544|    906|            int memberSize;
 2545|       |            // modify just the children's view of matrix layout, if there is one for this member
 2546|    906|            TLayoutMatrix subMatrixLayout = memberList[m].type->getQualifier().layoutMatrix;
 2547|    906|            int memberAlignment = getBaseAlignment(*memberList[m].type, memberSize, dummyStride, layoutPacking,
 2548|    906|                                                   (subMatrixLayout != ElmNone) ? (subMatrixLayout == ElmRowMajor) : rowMajor);
  ------------------
  |  Branch (2548:52): [True: 4, False: 902]
  ------------------
 2549|    906|            maxAlignment = std::max(maxAlignment, memberAlignment);
 2550|    906|            RoundToPow2(size, memberAlignment);
 2551|    906|            size += memberSize;
 2552|    906|        }
 2553|       |
 2554|       |        // The structure may have padding at the end; the base offset of
 2555|       |        // the member following the sub-structure is rounded up to the next
 2556|       |        // multiple of the base alignment of the structure.
 2557|    180|        RoundToPow2(size, maxAlignment);
 2558|       |
 2559|    180|        return maxAlignment;
 2560|    180|    }
 2561|       |
 2562|       |    // rule 1
 2563|  2.72k|    if (type.isScalar())
  ------------------
  |  Branch (2563:9): [True: 812, False: 1.90k]
  ------------------
 2564|    812|        return getBaseAlignmentScalar(type, size);
 2565|       |
 2566|       |    // rules 2 and 3
 2567|  1.90k|    if (type.isVector()) {
  ------------------
  |  Branch (2567:9): [True: 1.55k, False: 355]
  ------------------
 2568|  1.55k|        int scalarAlign = getBaseAlignmentScalar(type, size);
 2569|  1.55k|        switch (type.getVectorSize()) {
 2570|      0|        case 1: // HLSL has this, GLSL does not
  ------------------
  |  Branch (2570:9): [True: 0, False: 1.55k]
  ------------------
 2571|      0|            return scalarAlign;
 2572|    295|        case 2:
  ------------------
  |  Branch (2572:9): [True: 295, False: 1.25k]
  ------------------
 2573|    295|            size *= 2;
 2574|    295|            return 2 * scalarAlign;
 2575|  1.25k|        default:
  ------------------
  |  Branch (2575:9): [True: 1.25k, False: 295]
  ------------------
 2576|  1.25k|            size *= type.getVectorSize();
 2577|  1.25k|            return 4 * scalarAlign;
 2578|  1.55k|        }
 2579|  1.55k|    }
 2580|       |
 2581|       |    // rules 2 and 3
 2582|    355|    if (type.isLongVector()) {
  ------------------
  |  Branch (2582:9): [True: 0, False: 355]
  ------------------
 2583|      0|        int scalarAlign = getBaseAlignmentScalar(type, size);
 2584|      0|        uint32_t vectorSize = type.getTypeParameters()->arraySizes->getDimSize(0);
 2585|      0|        switch (vectorSize) {
 2586|      0|        case 1: // HLSL has this, GLSL does not
  ------------------
  |  Branch (2586:9): [True: 0, False: 0]
  ------------------
 2587|      0|            return scalarAlign;
 2588|      0|        case 2:
  ------------------
  |  Branch (2588:9): [True: 0, False: 0]
  ------------------
 2589|      0|            size *= 2;
 2590|      0|            return 2 * scalarAlign;
 2591|      0|        default:
  ------------------
  |  Branch (2591:9): [True: 0, False: 0]
  ------------------
 2592|      0|            size *= vectorSize;
 2593|      0|            return 4 * scalarAlign;
 2594|      0|        }
 2595|      0|    }
 2596|       |
 2597|       |    // rules 5 and 7
 2598|    355|    if (type.isMatrix()) {
  ------------------
  |  Branch (2598:9): [True: 355, False: 0]
  ------------------
 2599|       |        // rule 5: deref to row, not to column, meaning the size of vector is num columns instead of num rows
 2600|    355|        TType derefType(type, 0, rowMajor);
 2601|       |
 2602|    355|        alignment = getBaseAlignment(derefType, size, dummyStride, layoutPacking, rowMajor);
 2603|    355|        if (std140)
  ------------------
  |  Branch (2603:13): [True: 334, False: 21]
  ------------------
 2604|    334|            alignment = std::max(baseAlignmentVec4Std140, alignment);
 2605|    355|        RoundToPow2(size, alignment);
 2606|    355|        stride = size;  // use intra-matrix stride for stride of a just a matrix
 2607|    355|        if (rowMajor)
  ------------------
  |  Branch (2607:13): [True: 19, False: 336]
  ------------------
 2608|     19|            size = stride * type.getMatrixRows();
 2609|    336|        else
 2610|    336|            size = stride * type.getMatrixCols();
 2611|       |
 2612|    355|        return alignment;
 2613|    355|    }
 2614|       |
 2615|    355|    assert(0);  // all cases should be covered above
 2616|      0|    size = baseAlignmentVec4Std140;
 2617|      0|    return baseAlignmentVec4Std140;
 2618|    355|}
_ZN7glslang13TIntermediate16improperStraddleERKNS_5TTypeEiib:
 2622|    225|{
 2623|    225|    if (! vectorLike || type.isArray())
  ------------------
  |  Branch (2623:9): [True: 103, False: 122]
  |  Branch (2623:25): [True: 0, False: 122]
  ------------------
 2624|    103|        return false;
 2625|       |
 2626|    122|    return size <= 16 ? offset / 16 != (offset + size - 1) / 16
  ------------------
  |  Branch (2626:12): [True: 111, False: 11]
  ------------------
 2627|    122|                      : offset % 16 != 0;
 2628|    225|}
_ZN7glslang13TIntermediate18getMemberAlignmentERKNS_5TTypeERiS4_NS_14TLayoutPackingEb:
 2705|  1.64k|{
 2706|  1.64k|    if (layoutPacking == glslang::ElpScalar) {
  ------------------
  |  Branch (2706:9): [True: 0, False: 1.64k]
  ------------------
 2707|      0|        return getScalarAlignment(type, size, stride, rowMajor);
 2708|  1.64k|    } else {
 2709|  1.64k|        return getBaseAlignment(type, size, stride, layoutPacking, rowMajor);
 2710|  1.64k|    }
 2711|  1.64k|}
linkValidate.cpp:_ZN7glslangL20checkCompatibleTypesENS_10TBasicTypeES0_:
 2098|    163|static bool checkCompatibleTypes(TBasicType t1, TBasicType t2) {
 2099|    163|    if (t1 != t2) {
  ------------------
  |  Branch (2099:9): [True: 41, False: 122]
  ------------------
 2100|     41|        if ((t1 == EbtInt8 && t2 == EbtUint8) ||
  ------------------
  |  Branch (2100:14): [True: 0, False: 41]
  |  Branch (2100:31): [True: 0, False: 0]
  ------------------
 2101|     41|            (t2 == EbtInt8 && t1 == EbtUint8) ||
  ------------------
  |  Branch (2101:14): [True: 0, False: 41]
  |  Branch (2101:31): [True: 0, False: 0]
  ------------------
 2102|     41|            (t1 == EbtInt16 && t2 == EbtUint16) ||
  ------------------
  |  Branch (2102:14): [True: 0, False: 41]
  |  Branch (2102:32): [True: 0, False: 0]
  ------------------
 2103|     41|            (t2 == EbtInt16 && t1 == EbtUint16)||
  ------------------
  |  Branch (2103:14): [True: 0, False: 41]
  |  Branch (2103:32): [True: 0, False: 0]
  ------------------
 2104|     41|            (t1 == EbtInt && t2 == EbtUint) ||
  ------------------
  |  Branch (2104:14): [True: 0, False: 41]
  |  Branch (2104:30): [True: 0, False: 0]
  ------------------
 2105|     41|            (t2 == EbtInt && t1 == EbtUint)||
  ------------------
  |  Branch (2105:14): [True: 41, False: 0]
  |  Branch (2105:30): [True: 0, False: 41]
  ------------------
 2106|     41|            (t1 == EbtInt64 && t2 == EbtUint64) ||
  ------------------
  |  Branch (2106:14): [True: 0, False: 41]
  |  Branch (2106:32): [True: 0, False: 0]
  ------------------
 2107|     41|            (t2 == EbtInt64 && t1 == EbtUint64)) {
  ------------------
  |  Branch (2107:14): [True: 0, False: 41]
  |  Branch (2107:32): [True: 0, False: 0]
  ------------------
 2108|      0|            return true;
 2109|      0|        }
 2110|     41|    }
 2111|    163|    return t1 == t2;
 2112|    163|}

_ZN7glslang15TConstTraverser14visitAggregateENS_6TVisitEPNS_16TIntermAggregateE:
   72|  57.2k|{
   73|  57.2k|    if (! node->isConstructor() && node->getOp() != EOpComma) {
  ------------------
  |  Branch (73:9): [True: 0, False: 57.2k]
  |  Branch (73:36): [True: 0, False: 0]
  ------------------
   74|      0|        error = true;
   75|       |
   76|      0|        return false;
   77|      0|    }
   78|       |
   79|  57.2k|    bool flag = node->getSequence().size() == 1 && node->getSequence()[0]->getAsTyped()->getAsConstantUnion();
  ------------------
  |  Branch (79:17): [True: 44.3k, False: 12.9k]
  |  Branch (79:52): [True: 44.3k, False: 0]
  ------------------
   80|  57.2k|    if (flag) {
  ------------------
  |  Branch (80:9): [True: 44.3k, False: 12.9k]
  ------------------
   81|  44.3k|        singleConstantParam = true;
   82|  44.3k|        constructorType = node->getOp();
   83|  44.3k|        size = node->getType().computeNumComponents();
   84|       |
   85|  44.3k|        if (node->getType().isMatrix()) {
  ------------------
  |  Branch (85:13): [True: 82, False: 44.3k]
  ------------------
   86|     82|            isMatrix = true;
   87|     82|            matrixCols = node->getType().getMatrixCols();
   88|     82|            matrixRows = node->getType().getMatrixRows();
   89|     82|        }
   90|  44.3k|    }
   91|       |
   92|  57.2k|    for (TIntermSequence::iterator p = node->getSequence().begin();
   93|   138k|                                   p != node->getSequence().end(); p++) {
  ------------------
  |  Branch (93:36): [True: 81.4k, False: 57.2k]
  ------------------
   94|       |
   95|  81.4k|        if (node->getOp() == EOpComma)
  ------------------
  |  Branch (95:13): [True: 0, False: 81.4k]
  ------------------
   96|      0|            index = 0;
   97|       |
   98|  81.4k|        (*p)->traverse(this);
   99|  81.4k|    }
  100|  57.2k|    if (flag)
  ------------------
  |  Branch (100:9): [True: 44.3k, False: 12.9k]
  ------------------
  101|  44.3k|    {
  102|  44.3k|        singleConstantParam = false;
  103|  44.3k|        constructorType = EOpNull;
  104|  44.3k|        size = 0;
  105|  44.3k|        isMatrix = false;
  106|  44.3k|        matrixCols = 0;
  107|  44.3k|        matrixRows = 0;
  108|  44.3k|    }
  109|       |
  110|  57.2k|    return false;
  111|  57.2k|}
_ZN7glslang15TConstTraverser18visitConstantUnionEPNS_20TIntermConstantUnionE:
  114|  81.4k|{
  115|  81.4k|    TConstUnionArray leftUnionArray(unionArray);
  116|  81.4k|    int instanceSize = type.computeNumComponents();
  117|       |
  118|  81.4k|    if (index >= instanceSize)
  ------------------
  |  Branch (118:9): [True: 0, False: 81.4k]
  ------------------
  119|      0|        return;
  120|       |
  121|  81.4k|    if (! singleConstantParam) {
  ------------------
  |  Branch (121:9): [True: 37.0k, False: 44.3k]
  ------------------
  122|  37.0k|        int rightUnionSize = node->getType().computeNumComponents();
  123|       |
  124|  37.0k|        const TConstUnionArray& rightUnionArray = node->getConstArray();
  125|  86.3k|        for (int i = 0; i < rightUnionSize; i++) {
  ------------------
  |  Branch (125:25): [True: 49.2k, False: 37.0k]
  ------------------
  126|  49.2k|            if (index >= instanceSize)
  ------------------
  |  Branch (126:17): [True: 5, False: 49.2k]
  ------------------
  127|      5|                return;
  128|  49.2k|            leftUnionArray[index] = rightUnionArray[i];
  129|       |
  130|  49.2k|            index++;
  131|  49.2k|        }
  132|  44.3k|    } else {
  133|  44.3k|        int endIndex = index + size;
  134|  44.3k|        const TConstUnionArray& rightUnionArray = node->getConstArray();
  135|  44.3k|        if (! isMatrix) {
  ------------------
  |  Branch (135:13): [True: 44.3k, False: 82]
  ------------------
  136|  44.3k|            int count = 0;
  137|  44.3k|            int nodeComps = node->getType().computeNumComponents();
  138|   170k|            for (int i = index; i < endIndex; i++) {
  ------------------
  |  Branch (138:33): [True: 125k, False: 44.3k]
  ------------------
  139|   125k|                if (i >= instanceSize)
  ------------------
  |  Branch (139:21): [True: 0, False: 125k]
  ------------------
  140|      0|                    return;
  141|       |
  142|   125k|                leftUnionArray[i] = rightUnionArray[count];
  143|       |
  144|   125k|                (index)++;
  145|       |
  146|   125k|                if (nodeComps > 1)
  ------------------
  |  Branch (146:21): [True: 133, False: 125k]
  ------------------
  147|    133|                    count++;
  148|   125k|            }
  149|  44.3k|        } else {
  150|       |            // constructing a matrix, but from what?
  151|     82|            if (node->isMatrix()) {
  ------------------
  |  Branch (151:17): [True: 31, False: 51]
  ------------------
  152|       |                // Matrix from a matrix; this has the outer matrix, node is the argument matrix.
  153|       |                // Traverse the outer, potentially bigger matrix, fill in missing pieces with the
  154|       |                // identity matrix.
  155|    124|                for (int c = 0; c < matrixCols; ++c) {
  ------------------
  |  Branch (155:33): [True: 93, False: 31]
  ------------------
  156|    372|                    for (int r = 0; r < matrixRows; ++r) {
  ------------------
  |  Branch (156:37): [True: 279, False: 93]
  ------------------
  157|    279|                        int targetOffset = index + c * matrixRows + r;
  158|    279|                        if (r < node->getType().getMatrixRows() && c < node->getType().getMatrixCols()) {
  ------------------
  |  Branch (158:29): [True: 186, False: 93]
  |  Branch (158:68): [True: 124, False: 62]
  ------------------
  159|    124|                            int srcOffset = c * node->getType().getMatrixRows() + r;
  160|    124|                            leftUnionArray[targetOffset] = rightUnionArray[srcOffset];
  161|    155|                        } else if (r == c)
  ------------------
  |  Branch (161:36): [True: 31, False: 124]
  ------------------
  162|     31|                            leftUnionArray[targetOffset].setDConst(1.0);
  163|    124|                        else
  164|    124|                            leftUnionArray[targetOffset].setDConst(0.0);
  165|    279|                    }
  166|     93|                }
  167|     51|            } else {
  168|       |                // matrix from vector or scalar
  169|     51|                int nodeComps = node->getType().computeNumComponents();
  170|     51|                if (nodeComps == 1) {
  ------------------
  |  Branch (170:21): [True: 29, False: 22]
  ------------------
  171|    120|                    for (int c = 0; c < matrixCols; ++c) {
  ------------------
  |  Branch (171:37): [True: 91, False: 29]
  ------------------
  172|    443|                        for (int r = 0; r < matrixRows; ++r) {
  ------------------
  |  Branch (172:41): [True: 352, False: 91]
  ------------------
  173|    352|                            if (r == c)
  ------------------
  |  Branch (173:33): [True: 91, False: 261]
  ------------------
  174|     91|                                leftUnionArray[index] = rightUnionArray[0];
  175|    261|                            else
  176|    261|                                leftUnionArray[index].setDConst(0.0);
  177|    352|                            index++;
  178|    352|                        }
  179|     91|                    }
  180|     29|                } else {
  181|     22|                    int count = 0;
  182|    110|                    for (int i = index; i < endIndex; i++) {
  ------------------
  |  Branch (182:41): [True: 88, False: 22]
  ------------------
  183|     88|                        if (i >= instanceSize)
  ------------------
  |  Branch (183:29): [True: 0, False: 88]
  ------------------
  184|      0|                            return;
  185|       |
  186|       |                        // construct the matrix in column-major order, from
  187|       |                        // the components provided, in order
  188|     88|                        leftUnionArray[i] = rightUnionArray[count];
  189|       |
  190|     88|                        index++;
  191|     88|                        count++;
  192|     88|                    }
  193|     22|                }
  194|     51|            }
  195|     82|        }
  196|  44.3k|    }
  197|  81.4k|}
_ZN7glslang13TIntermediate14parseConstTreeEP11TIntermNodeNS_16TConstUnionArrayENS_9TOperatorERKNS_5TTypeEb:
  200|  57.2k|{
  201|  57.2k|    if (root == nullptr)
  ------------------
  |  Branch (201:9): [True: 0, False: 57.2k]
  ------------------
  202|      0|        return false;
  203|       |
  204|  57.2k|    TConstTraverser it(unionArray, singleConstantParam, constructorType, t);
  205|       |
  206|  57.2k|    root->traverse(&it);
  207|  57.2k|    if (it.error)
  ------------------
  |  Branch (207:9): [True: 0, False: 57.2k]
  ------------------
  208|      0|        return true;
  209|  57.2k|    else
  210|  57.2k|        return false;
  211|  57.2k|}
_ZN7glslang15TConstTraverserC2ERKNS_16TConstUnionArrayEbNS_9TOperatorERKNS_5TTypeE:
   47|  57.2k|      : unionArray(cUnion), type(t),
   48|  57.2k|        constructorType(constructType), singleConstantParam(singleConstParam), error(false), isMatrix(false),
   49|  57.2k|        matrixCols(0), matrixRows(0) {  index = 0; tOp = EOpNull; }

_ZN7glslang10TPpContext9CPPdefineEPNS_8TPpTokenE:
   96|   684k|{
   97|   684k|    MacroSymbol mac;
   98|       |
   99|       |    // get the macro name
  100|   684k|    int token = scanToken(ppToken);
  101|   684k|    if (token != PpAtomIdentifier) {
  ------------------
  |  Branch (101:9): [True: 21, False: 684k]
  ------------------
  102|     21|        parseContext.ppError(ppToken->loc, "must be followed by macro name", "#define", "");
  103|     21|        return token;
  104|     21|    }
  105|   684k|    if (ppToken->loc.string >= 0) {
  ------------------
  |  Branch (105:9): [True: 7.84k, False: 676k]
  ------------------
  106|       |        // We are in user code; check for reserved name use:
  107|  7.84k|        parseContext.reservedPpErrorCheck(ppToken->loc, ppToken->name, "#define");
  108|  7.84k|    }
  109|       |
  110|       |    // save the macro name
  111|   684k|    const int defAtom = atomStrings.getAddAtom(ppToken->name);
  112|   684k|    TSourceLoc defineLoc = ppToken->loc; // because ppToken might go to the next line before we report errors
  113|       |
  114|       |    // gather parameters to the macro, between (...)
  115|   684k|    token = scanToken(ppToken);
  116|   684k|    if (token == '(' && !ppToken->space) {
  ------------------
  |  Branch (116:9): [True: 2.38k, False: 682k]
  |  Branch (116:25): [True: 2.35k, False: 26]
  ------------------
  117|  2.35k|        mac.functionLike = 1;
  118|  4.40k|        do {
  119|  4.40k|            token = scanToken(ppToken);
  120|  4.40k|            if (mac.args.size() == 0 && token == ')')
  ------------------
  |  Branch (120:17): [True: 2.35k, False: 2.04k]
  |  Branch (120:41): [True: 34, False: 2.32k]
  ------------------
  121|     34|                break;
  122|  4.36k|            if (token != PpAtomIdentifier) {
  ------------------
  |  Branch (122:17): [True: 180, False: 4.18k]
  ------------------
  123|    180|                parseContext.ppError(ppToken->loc, "bad argument", "#define", "");
  124|       |
  125|    180|                return token;
  126|    180|            }
  127|  4.18k|            const int argAtom = atomStrings.getAddAtom(ppToken->name);
  128|       |
  129|       |            // check for duplication of parameter name
  130|  4.18k|            bool duplicate = false;
  131|  6.23k|            for (size_t a = 0; a < mac.args.size(); ++a) {
  ------------------
  |  Branch (131:32): [True: 2.04k, False: 4.18k]
  ------------------
  132|  2.04k|                if (mac.args[a] == argAtom) {
  ------------------
  |  Branch (132:21): [True: 2, False: 2.04k]
  ------------------
  133|      2|                    parseContext.ppError(ppToken->loc, "duplicate macro parameter", "#define", "");
  134|      2|                    duplicate = true;
  135|      2|                    break;
  136|      2|                }
  137|  2.04k|            }
  138|  4.18k|            if (! duplicate)
  ------------------
  |  Branch (138:17): [True: 4.18k, False: 2]
  ------------------
  139|  4.18k|                mac.args.push_back(argAtom);
  140|  4.18k|            token = scanToken(ppToken);
  141|  4.18k|        } while (token == ',');
  ------------------
  |  Branch (141:18): [True: 2.04k, False: 2.14k]
  ------------------
  142|  2.17k|        if (token != ')') {
  ------------------
  |  Branch (142:13): [True: 463, False: 1.71k]
  ------------------
  143|    463|            parseContext.ppError(ppToken->loc, "missing parenthesis", "#define", "");
  144|       |
  145|    463|            return token;
  146|    463|        }
  147|       |
  148|  1.71k|        token = scanToken(ppToken);
  149|   682k|    } else if (token != '\n' && token != EndOfInput && !ppToken->space) {
  ------------------
  |  Branch (149:16): [True: 681k, False: 659]
  |  Branch (149:33): [True: 681k, False: 10]
  |  Branch (149:56): [True: 171, False: 681k]
  ------------------
  150|    171|        parseContext.ppWarn(ppToken->loc, "missing space after macro name", "#define", "");
  151|       |
  152|    171|        return token;
  153|    171|    }
  154|       |
  155|   683k|    int pendingPoundSymbols = 0;
  156|   683k|    TPpToken savePound;
  157|       |    // record the definition of the macro
  158|  1.39M|    while (token != '\n' && token != EndOfInput) {
  ------------------
  |  Branch (158:12): [True: 711k, False: 683k]
  |  Branch (158:29): [True: 711k, False: 26]
  ------------------
  159|   711k|        if (token == '#') {
  ------------------
  |  Branch (159:13): [True: 1.08k, False: 710k]
  ------------------
  160|  1.08k|            pendingPoundSymbols++;
  161|  1.08k|            if (pendingPoundSymbols == 0) {
  ------------------
  |  Branch (161:17): [True: 0, False: 1.08k]
  ------------------
  162|      0|                savePound = *ppToken;
  163|      0|            }
  164|   710k|        } else if (pendingPoundSymbols == 0) {
  ------------------
  |  Branch (164:20): [True: 709k, False: 640]
  ------------------
  165|   709k|            mac.body.putToken(token, ppToken);
  166|   709k|        } else if (pendingPoundSymbols == 1) {
  ------------------
  |  Branch (166:20): [True: 206, False: 434]
  ------------------
  167|       |            // A single #: stringify
  168|    206|            parseContext.requireProfile(ppToken->loc, ~EEsProfile, "stringify (#)");
  169|    206|            parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, nullptr, "stringify (#)");
  170|    206|            bool isArg = false;
  171|    206|            if (token == PpAtomIdentifier) {
  ------------------
  |  Branch (171:17): [True: 135, False: 71]
  ------------------
  172|    202|                for (int i = (int)mac.args.size() - 1; i >= 0; i--) {
  ------------------
  |  Branch (172:56): [True: 67, False: 135]
  ------------------
  173|     67|                    if (strcmp(atomStrings.getString(mac.args[i]), ppToken->name) == 0) {
  ------------------
  |  Branch (173:25): [True: 0, False: 67]
  ------------------
  174|      0|                        isArg = true;
  175|      0|                        break;
  176|      0|                    }
  177|     67|                }
  178|    135|            }
  179|    206|            if (!isArg) {
  ------------------
  |  Branch (179:17): [True: 206, False: 0]
  ------------------
  180|    206|                parseContext.ppError(ppToken->loc, "'#' is not followed by a macro parameter.", "#", "");
  181|    206|                return token;
  182|    206|            }
  183|      0|            mac.body.putToken(tStringifyLevelInput::PUSH, ppToken);
  184|      0|            mac.body.putToken(token, ppToken);
  185|      0|            mac.body.putToken(tStringifyLevelInput::POP, ppToken);
  186|      0|            pendingPoundSymbols = 0;
  187|    434|        } else if (pendingPoundSymbols % 2 == 0) {
  ------------------
  |  Branch (187:20): [True: 428, False: 6]
  ------------------
  188|       |            // Any number of pastes '##' in a row: idempotent, just becomes one paste
  189|    428|            parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)");
  190|    428|            parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, nullptr, "token pasting (##)");
  191|    856|            for (int i = 0; i < pendingPoundSymbols / 2; i++) {
  ------------------
  |  Branch (191:29): [True: 428, False: 428]
  ------------------
  192|    428|                mac.body.putToken(PpAtomPaste, &savePound);
  193|    428|            }
  194|    428|            mac.body.putToken(token, ppToken);
  195|    428|            pendingPoundSymbols = 0;
  196|    428|        } else {
  197|       |            // An odd number of '#' i.e., mix of paste and stringify: does not give valid preprocessing token
  198|      6|            parseContext.ppError(ppToken->loc, "Illegal sequence of paste (##) and stringify (#).", "#", "");
  199|      6|            return token;
  200|      6|        }
  201|       |
  202|   711k|        token = scanToken(ppToken);
  203|   711k|    }
  204|   683k|    if (pendingPoundSymbols != 0) {
  ------------------
  |  Branch (204:9): [True: 0, False: 683k]
  ------------------
  205|      0|        parseContext.ppError(ppToken->loc, "Macro ended with incomplete '#' paste/stringify operators", "#", "");
  206|      0|    }
  207|       |
  208|       |    // check for duplicate definition
  209|   683k|    MacroSymbol* existing = lookupMacroDef(defAtom);
  210|   683k|    if (existing != nullptr) {
  ------------------
  |  Branch (210:9): [True: 4.44k, False: 679k]
  ------------------
  211|  4.44k|        if (! existing->undef) {
  ------------------
  |  Branch (211:13): [True: 4.44k, False: 0]
  ------------------
  212|       |            // Already defined -- need to make sure they are identical:
  213|       |            // "Two replacement lists are identical if and only if the
  214|       |            // preprocessing tokens in both have the same number,
  215|       |            // ordering, spelling, and white-space separation, where all
  216|       |            // white-space separations are considered identical."
  217|  4.44k|            if (existing->functionLike != mac.functionLike) {
  ------------------
  |  Branch (217:17): [True: 0, False: 4.44k]
  ------------------
  218|      0|                parseContext.ppError(defineLoc, "Macro redefined; function-like versus object-like:", "#define",
  219|      0|                    "%s", atomStrings.getString(defAtom));
  220|  4.44k|            } else if (existing->args.size() != mac.args.size()) {
  ------------------
  |  Branch (220:24): [True: 8, False: 4.43k]
  ------------------
  221|      8|                parseContext.ppError(defineLoc, "Macro redefined; different number of arguments:", "#define",
  222|      8|                    "%s", atomStrings.getString(defAtom));
  223|  4.43k|            } else {
  224|  4.43k|                if (existing->args != mac.args) {
  ------------------
  |  Branch (224:21): [True: 4, False: 4.43k]
  ------------------
  225|      4|                    parseContext.ppError(defineLoc, "Macro redefined; different argument names:", "#define",
  226|      4|                       "%s", atomStrings.getString(defAtom));
  227|      4|                }
  228|       |                // set up to compare the two
  229|  4.43k|                existing->body.reset();
  230|  4.43k|                mac.body.reset();
  231|  4.43k|                int newToken;
  232|  4.43k|                bool firstToken = true;
  233|  17.3k|                do {
  234|  17.3k|                    int oldToken;
  235|  17.3k|                    TPpToken oldPpToken;
  236|  17.3k|                    TPpToken newPpToken;
  237|  17.3k|                    oldToken = existing->body.getToken(parseContext, &oldPpToken);
  238|  17.3k|                    newToken = mac.body.getToken(parseContext, &newPpToken);
  239|       |                    // for the first token, preceding spaces don't matter
  240|  17.3k|                    if (firstToken) {
  ------------------
  |  Branch (240:25): [True: 4.43k, False: 12.9k]
  ------------------
  241|  4.43k|                        newPpToken.space = oldPpToken.space;
  242|  4.43k|                        firstToken = false;
  243|  4.43k|                    }
  244|  17.3k|                    if (oldToken != newToken || oldPpToken != newPpToken) {
  ------------------
  |  Branch (244:25): [True: 863, False: 16.5k]
  |  Branch (244:49): [True: 665, False: 15.8k]
  ------------------
  245|  1.52k|                        parseContext.ppError(defineLoc, "Macro redefined; different substitutions:", "#define",
  246|  1.52k|                            "%s", atomStrings.getString(defAtom));
  247|  1.52k|                        break;
  248|  1.52k|                    }
  249|  17.3k|                } while (newToken != EndOfInput);
  ------------------
  |  Branch (249:26): [True: 12.9k, False: 2.90k]
  ------------------
  250|  4.43k|            }
  251|  4.44k|        }
  252|  4.44k|        *existing = mac;
  253|  4.44k|    } else
  254|   679k|        addMacroDef(defAtom, mac);
  255|       |
  256|   683k|    return '\n';
  257|   683k|}
_ZN7glslang10TPpContext7CPPelseEiPNS_8TPpTokenE:
  287|  1.45k|{
  288|  1.45k|    inElseSkip = true;
  289|  1.45k|    int depth = 0;
  290|  1.45k|    int token = scanToken(ppToken);
  291|       |
  292|  28.2k|    while (token != EndOfInput) {
  ------------------
  |  Branch (292:12): [True: 28.1k, False: 16]
  ------------------
  293|  28.1k|        if (token != '#') {
  ------------------
  |  Branch (293:13): [True: 23.0k, False: 5.12k]
  ------------------
  294|   528k|            while (token != '\n' && token != EndOfInput)
  ------------------
  |  Branch (294:20): [True: 505k, False: 23.0k]
  |  Branch (294:37): [True: 505k, False: 44]
  ------------------
  295|   505k|                token = scanToken(ppToken);
  296|       |
  297|  23.0k|            if (token == EndOfInput)
  ------------------
  |  Branch (297:17): [True: 44, False: 23.0k]
  ------------------
  298|     44|                return token;
  299|       |
  300|  23.0k|            token = scanToken(ppToken);
  301|  23.0k|            continue;
  302|  23.0k|        }
  303|       |
  304|  5.12k|        if ((token = scanToken(ppToken)) != PpAtomIdentifier)
  ------------------
  |  Branch (304:13): [True: 86, False: 5.03k]
  ------------------
  305|     86|            continue;
  306|       |
  307|  5.03k|        int nextAtom = atomStrings.getAtom(ppToken->name);
  308|  5.03k|        if (nextAtom == PpAtomIf || nextAtom == PpAtomIfdef || nextAtom == PpAtomIfndef) {
  ------------------
  |  Branch (308:13): [True: 174, False: 4.86k]
  |  Branch (308:37): [True: 384, False: 4.48k]
  |  Branch (308:64): [True: 49, False: 4.43k]
  ------------------
  309|    607|            depth++;
  310|    607|            if (ifdepth >= maxIfNesting || elsetracker >= maxIfNesting) {
  ------------------
  |  Branch (310:17): [True: 0, False: 607]
  |  Branch (310:44): [True: 0, False: 607]
  ------------------
  311|      0|                parseContext.ppError(ppToken->loc, "maximum nesting depth exceeded", "#if/#ifdef/#ifndef", "");
  312|      0|                return EndOfInput;
  313|    607|            } else {
  314|    607|                ifdepth++;
  315|    607|                elsetracker++;
  316|    607|            }
  317|  4.43k|        } else if (nextAtom == PpAtomEndif) {
  ------------------
  |  Branch (317:20): [True: 1.66k, False: 2.76k]
  ------------------
  318|  1.66k|            token = extraTokenCheck(nextAtom, ppToken, scanToken(ppToken));
  319|  1.66k|            if (elsetracker >= 0)
  ------------------
  |  Branch (319:17): [True: 1.66k, False: 0]
  ------------------
  320|  1.66k|                elseSeen[elsetracker] = false;
  321|  1.66k|            if (elsetracker > 0)
  ------------------
  |  Branch (321:17): [True: 1.47k, False: 188]
  ------------------
  322|  1.47k|                --elsetracker;
  323|  1.66k|            if (depth == 0) {
  ------------------
  |  Branch (323:17): [True: 1.11k, False: 544]
  ------------------
  324|       |                // found the #endif we are looking for
  325|  1.11k|                if (ifdepth > 0)
  ------------------
  |  Branch (325:21): [True: 930, False: 188]
  ------------------
  326|    930|                    --ifdepth;
  327|  1.11k|                break;
  328|  1.11k|            }
  329|    544|            --depth;
  330|    544|            if (ifdepth > 0)
  ------------------
  |  Branch (330:17): [True: 544, False: 0]
  ------------------
  331|    544|                --ifdepth;
  332|  2.76k|        } else if (matchelse && depth == 0) {
  ------------------
  |  Branch (332:20): [True: 1.80k, False: 965]
  |  Branch (332:33): [True: 1.37k, False: 434]
  ------------------
  333|  1.37k|            if (nextAtom == PpAtomElse) {
  ------------------
  |  Branch (333:17): [True: 265, False: 1.10k]
  ------------------
  334|    265|                elseSeen[elsetracker] = true;
  335|    265|                token = extraTokenCheck(nextAtom, ppToken, scanToken(ppToken));
  336|       |                // found the #else we are looking for
  337|    265|                break;
  338|  1.10k|            } else if (nextAtom == PpAtomElif) {
  ------------------
  |  Branch (338:24): [True: 7, False: 1.09k]
  ------------------
  339|      7|                if (elseSeen[elsetracker])
  ------------------
  |  Branch (339:21): [True: 0, False: 7]
  ------------------
  340|      0|                    parseContext.ppError(ppToken->loc, "#elif after #else", "#elif", "");
  341|       |                /* we decrement ifdepth here, because CPPif will increment
  342|       |                * it and we really want to leave it alone */
  343|      7|                if (ifdepth > 0) {
  ------------------
  |  Branch (343:21): [True: 7, False: 0]
  ------------------
  344|      7|                    --ifdepth;
  345|      7|                    elseSeen[elsetracker] = false;
  346|      7|                    --elsetracker;
  347|      7|                }
  348|      7|                inElseSkip = false;
  349|      7|                return CPPif(ppToken);
  350|      7|            }
  351|  1.39k|        } else if (nextAtom == PpAtomElse) {
  ------------------
  |  Branch (351:20): [True: 241, False: 1.15k]
  ------------------
  352|    241|            if (elseSeen[elsetracker])
  ------------------
  |  Branch (352:17): [True: 20, False: 221]
  ------------------
  353|     20|                parseContext.ppError(ppToken->loc, "#else after #else", "#else", "");
  354|    221|            else
  355|    221|                elseSeen[elsetracker] = true;
  356|    241|            token = extraTokenCheck(nextAtom, ppToken, scanToken(ppToken));
  357|  1.15k|        } else if (nextAtom == PpAtomElif) {
  ------------------
  |  Branch (357:20): [True: 60, False: 1.09k]
  ------------------
  358|     60|            if (elseSeen[elsetracker])
  ------------------
  |  Branch (358:17): [True: 0, False: 60]
  ------------------
  359|      0|                parseContext.ppError(ppToken->loc, "#elif after #else", "#elif", "");
  360|     60|        }
  361|  5.03k|    }
  362|       |
  363|  1.39k|    inElseSkip = false;
  364|  1.39k|    return token;
  365|  1.45k|}
_ZN7glslang10TPpContext15extraTokenCheckEiPNS_8TPpTokenEi:
  369|  4.50k|{
  370|  4.50k|    if (token != '\n' && token != EndOfInput) {
  ------------------
  |  Branch (370:9): [True: 236, False: 4.26k]
  |  Branch (370:26): [True: 236, False: 0]
  ------------------
  371|    236|        static const char* message = "unexpected tokens following directive";
  372|       |
  373|    236|        const char* label;
  374|    236|        if (contextAtom == PpAtomElse)
  ------------------
  |  Branch (374:13): [True: 0, False: 236]
  ------------------
  375|      0|            label = "#else";
  376|    236|        else if (contextAtom == PpAtomElif)
  ------------------
  |  Branch (376:18): [True: 0, False: 236]
  ------------------
  377|      0|            label = "#elif";
  378|    236|        else if (contextAtom == PpAtomEndif)
  ------------------
  |  Branch (378:18): [True: 30, False: 206]
  ------------------
  379|     30|            label = "#endif";
  380|    206|        else if (contextAtom == PpAtomIf)
  ------------------
  |  Branch (380:18): [True: 184, False: 22]
  ------------------
  381|    184|            label = "#if";
  382|     22|        else if (contextAtom == PpAtomLine)
  ------------------
  |  Branch (382:18): [True: 22, False: 0]
  ------------------
  383|     22|            label = "#line";
  384|      0|        else
  385|      0|            label = "";
  386|       |
  387|    236|        if (parseContext.relaxedErrors())
  ------------------
  |  Branch (387:13): [True: 0, False: 236]
  ------------------
  388|      0|            parseContext.ppWarn(ppToken->loc, message, label, "");
  389|    236|        else
  390|    236|            parseContext.ppError(ppToken->loc, message, label, "");
  391|       |
  392|  1.83k|        while (token != '\n' && token != EndOfInput)
  ------------------
  |  Branch (392:16): [True: 1.60k, False: 234]
  |  Branch (392:33): [True: 1.60k, False: 2]
  ------------------
  393|  1.60k|            token = scanToken(ppToken);
  394|    236|    }
  395|       |
  396|  4.50k|    return token;
  397|  4.50k|}
_ZN7glslang10TPpContext4evalEiibRiRbPNS_8TPpTokenE:
  471|  1.43k|{
  472|  1.43k|    TSourceLoc loc = ppToken->loc;  // because we sometimes read the newline before reporting the error
  473|  1.43k|    if (token == PpAtomIdentifier) {
  ------------------
  |  Branch (473:9): [True: 749, False: 686]
  ------------------
  474|    749|        if (strcmp("defined", ppToken->name) == 0) {
  ------------------
  |  Branch (474:13): [True: 500, False: 249]
  ------------------
  475|    500|            if (! parseContext.isReadingHLSL() && isMacroInput()) {
  ------------------
  |  Branch (475:17): [True: 500, False: 0]
  |  Branch (475:51): [True: 0, False: 500]
  ------------------
  476|      0|                if (parseContext.relaxedErrors())
  ------------------
  |  Branch (476:21): [True: 0, False: 0]
  ------------------
  477|      0|                    parseContext.ppWarn(ppToken->loc, "nonportable when expanded from macros for preprocessor expression",
  478|      0|                        "defined", "");
  479|      0|                else
  480|      0|                    parseContext.ppError(ppToken->loc, "cannot use in preprocessor expression when expanded from macros",
  481|      0|                        "defined", "");
  482|      0|            }
  483|    500|            bool needclose = 0;
  484|    500|            token = scanToken(ppToken);
  485|    500|            if (token == '(') {
  ------------------
  |  Branch (485:17): [True: 246, False: 254]
  ------------------
  486|    246|                needclose = true;
  487|    246|                token = scanToken(ppToken);
  488|    246|            }
  489|    500|            if (token != PpAtomIdentifier) {
  ------------------
  |  Branch (489:17): [True: 2, False: 498]
  ------------------
  490|      2|                parseContext.ppError(loc, "incorrect directive, expected identifier", "preprocessor evaluation", "");
  491|      2|                err = true;
  492|      2|                res = 0;
  493|       |
  494|      2|                return token;
  495|      2|            }
  496|       |
  497|    498|            MacroSymbol* macro = lookupMacroDef(atomStrings.getAtom(ppToken->name));
  498|    498|            res = macro != nullptr ? !macro->undef : 0;
  ------------------
  |  Branch (498:19): [True: 211, False: 287]
  ------------------
  499|    498|            token = scanToken(ppToken);
  500|    498|            if (needclose) {
  ------------------
  |  Branch (500:17): [True: 246, False: 252]
  ------------------
  501|    246|                if (token != ')') {
  ------------------
  |  Branch (501:21): [True: 8, False: 238]
  ------------------
  502|      8|                    parseContext.ppError(loc, "expected ')'", "preprocessor evaluation", "");
  503|      8|                    err = true;
  504|      8|                    res = 0;
  505|       |
  506|      8|                    return token;
  507|      8|                }
  508|    238|                token = scanToken(ppToken);
  509|    238|            }
  510|    498|        } else {
  511|    249|            token = tokenPaste(token, *ppToken);
  512|    249|            token = evalToToken(token, shortCircuit, res, err, ppToken);
  513|    249|            return eval(token, precedence, shortCircuit, res, err, ppToken);
  514|    249|        }
  515|    749|    } else if (token == PpAtomConstInt) {
  ------------------
  |  Branch (515:16): [True: 455, False: 231]
  ------------------
  516|    455|        res = ppToken->ival;
  517|    455|        token = scanToken(ppToken);
  518|    455|    } else if (token == '(') {
  ------------------
  |  Branch (518:16): [True: 16, False: 215]
  ------------------
  519|     16|        token = scanToken(ppToken);
  520|     16|        token = eval(token, MIN_PRECEDENCE, shortCircuit, res, err, ppToken);
  521|     16|        if (! err) {
  ------------------
  |  Branch (521:13): [True: 16, False: 0]
  ------------------
  522|     16|            if (token != ')') {
  ------------------
  |  Branch (522:17): [True: 0, False: 16]
  ------------------
  523|      0|                parseContext.ppError(loc, "expected ')'", "preprocessor evaluation", "");
  524|      0|                err = true;
  525|      0|                res = 0;
  526|       |
  527|      0|                return token;
  528|      0|            }
  529|     16|            token = scanToken(ppToken);
  530|     16|        }
  531|    215|    } else {
  532|    215|        int op = NUM_ELEMENTS(unop) - 1;
  ------------------
  |  |  468|    215|#define NUM_ELEMENTS(A) (sizeof(A) / sizeof(A[0]))
  ------------------
  533|    311|        for (; op >= 0; op--) {
  ------------------
  |  Branch (533:16): [True: 289, False: 22]
  ------------------
  534|    289|            if (unop[op].token == token)
  ------------------
  |  Branch (534:17): [True: 193, False: 96]
  ------------------
  535|    193|                break;
  536|    289|        }
  537|    215|        if (op >= 0) {
  ------------------
  |  Branch (537:13): [True: 193, False: 22]
  ------------------
  538|    193|            token = scanToken(ppToken);
  539|    193|            token = eval(token, UNARY, shortCircuit, res, err, ppToken);
  540|    193|            res = unop[op].op(res);
  541|    193|        } else {
  542|     22|            parseContext.ppError(loc, "bad expression", "preprocessor evaluation", "");
  543|     22|            err = true;
  544|     22|            res = 0;
  545|       |
  546|     22|            return token;
  547|     22|        }
  548|    215|    }
  549|       |
  550|  1.15k|    token = evalToToken(token, shortCircuit, res, err, ppToken);
  551|       |
  552|       |    // Perform evaluation of binary operation, if there is one, otherwise we are done.
  553|  1.40k|    while (! err) {
  ------------------
  |  Branch (553:12): [True: 1.40k, False: 4]
  ------------------
  554|  1.40k|        if (token == ')' || token == '\n')
  ------------------
  |  Branch (554:13): [True: 82, False: 1.32k]
  |  Branch (554:29): [True: 654, False: 669]
  ------------------
  555|    736|            break;
  556|    669|        int op;
  557|  11.3k|        for (op = NUM_ELEMENTS(binop) - 1; op >= 0; op--) {
  ------------------
  |  |  468|    669|#define NUM_ELEMENTS(A) (sizeof(A) / sizeof(A[0]))
  ------------------
  |  Branch (557:44): [True: 11.0k, False: 335]
  ------------------
  558|  11.0k|            if (binop[op].token == token)
  ------------------
  |  Branch (558:17): [True: 334, False: 10.6k]
  ------------------
  559|    334|                break;
  560|  11.0k|        }
  561|    669|        if (op < 0 || binop[op].precedence <= precedence)
  ------------------
  |  Branch (561:13): [True: 335, False: 334]
  |  Branch (561:23): [True: 79, False: 255]
  ------------------
  562|    414|            break;
  563|    255|        int leftSide = res;
  564|       |
  565|       |        // Setup short-circuiting, needed for ES, unless already in a short circuit.
  566|       |        // (Once in a short-circuit, can't turn off again, until that whole subexpression is done.
  567|    255|        if (! shortCircuit) {
  ------------------
  |  Branch (567:13): [True: 239, False: 16]
  ------------------
  568|    239|            if ((token == PpAtomOr  && leftSide == 1) ||
  ------------------
  |  Branch (568:18): [True: 66, False: 173]
  |  Branch (568:40): [True: 0, False: 66]
  ------------------
  569|    239|                (token == PpAtomAnd && leftSide == 0))
  ------------------
  |  Branch (569:18): [True: 71, False: 168]
  |  Branch (569:40): [True: 47, False: 24]
  ------------------
  570|     47|                shortCircuit = true;
  571|    239|        }
  572|       |
  573|    255|        token = scanToken(ppToken);
  574|    255|        token = eval(token, binop[op].precedence, shortCircuit, res, err, ppToken);
  575|       |
  576|    255|        if (binop[op].op == op_div || binop[op].op == op_mod) {
  ------------------
  |  Branch (576:13): [True: 12, False: 243]
  |  Branch (576:39): [True: 2, False: 241]
  ------------------
  577|     14|            if (res == 0) {
  ------------------
  |  Branch (577:17): [True: 0, False: 14]
  ------------------
  578|      0|                parseContext.ppError(loc, "division by 0", "preprocessor evaluation", "");
  579|      0|                res = 1;
  580|      0|            }
  581|     14|        }
  582|    255|        res = binop[op].op(leftSide, res);
  583|    255|    }
  584|       |
  585|  1.15k|    return token;
  586|  1.43k|}
_ZN7glslang10TPpContext11evalToTokenEibRiRbPNS_8TPpTokenE:
  590|  1.40k|{
  591|  1.66k|    while (token == PpAtomIdentifier && strcmp("defined", ppToken->name) != 0) {
  ------------------
  |  Branch (591:12): [True: 264, False: 1.40k]
  |  Branch (591:41): [True: 264, False: 0]
  ------------------
  592|    264|        switch (MacroExpand(ppToken, true, false)) {
  ------------------
  |  Branch (592:17): [True: 264, False: 0]
  ------------------
  593|      0|        case MacroExpandNotStarted:
  ------------------
  |  Branch (593:9): [True: 0, False: 264]
  ------------------
  594|      0|        case MacroExpandError:
  ------------------
  |  Branch (594:9): [True: 0, False: 264]
  ------------------
  595|      0|            parseContext.ppError(ppToken->loc, "can't evaluate expression", "preprocessor evaluation", "");
  596|      0|            err = true;
  597|      0|            res = 0;
  598|      0|            break;
  599|     16|        case MacroExpandStarted:
  ------------------
  |  Branch (599:9): [True: 16, False: 248]
  ------------------
  600|     16|            break;
  601|    248|        case MacroExpandUndef:
  ------------------
  |  Branch (601:9): [True: 248, False: 16]
  ------------------
  602|    248|            if (! shortCircuit && parseContext.isEsProfile()) {
  ------------------
  |  Branch (602:17): [True: 236, False: 12]
  |  Branch (602:35): [True: 14, False: 222]
  ------------------
  603|     14|                const char* message = "undefined macro in expression not allowed in es profile";
  604|     14|                if (parseContext.relaxedErrors())
  ------------------
  |  Branch (604:21): [True: 0, False: 14]
  ------------------
  605|      0|                    parseContext.ppWarn(ppToken->loc, message, "preprocessor evaluation", "%s", ppToken->name);
  606|     14|                else
  607|     14|                    parseContext.ppError(ppToken->loc, message, "preprocessor evaluation", "%s", ppToken->name);
  608|     14|            }
  609|    248|            break;
  610|    264|        }
  611|    264|        token = scanToken(ppToken);
  612|    264|        if (err)
  ------------------
  |  Branch (612:13): [True: 0, False: 264]
  ------------------
  613|      0|            break;
  614|    264|    }
  615|       |
  616|  1.40k|    return token;
  617|  1.40k|}
_ZN7glslang10TPpContext5CPPifEPNS_8TPpTokenE:
  621|    606|{
  622|    606|    int token = scanToken(ppToken);
  623|    606|    if (ifdepth >= maxIfNesting || elsetracker >= maxIfNesting) {
  ------------------
  |  Branch (623:9): [True: 0, False: 606]
  |  Branch (623:36): [True: 0, False: 606]
  ------------------
  624|      0|        parseContext.ppError(ppToken->loc, "maximum nesting depth exceeded", "#if", "");
  625|      0|        return EndOfInput;
  626|    606|    } else {
  627|    606|        elsetracker++;
  628|    606|        ifdepth++;
  629|    606|    }
  630|    606|    int res = 0;
  631|    606|    bool err = false;
  632|    606|    token = eval(token, MIN_PRECEDENCE, false, res, err, ppToken);
  633|    606|    token = extraTokenCheck(PpAtomIf, ppToken, token);
  634|    606|    if (!res && !err)
  ------------------
  |  Branch (634:9): [True: 287, False: 319]
  |  Branch (634:17): [True: 267, False: 20]
  ------------------
  635|    267|        token = CPPelse(1, ppToken);
  636|       |
  637|    606|    return token;
  638|    606|}
_ZN7glslang10TPpContext8CPPifdefEiPNS_8TPpTokenE:
  642|  2.02k|{
  643|  2.02k|    int token = scanToken(ppToken);
  644|  2.02k|    if (ifdepth >= maxIfNesting || elsetracker >= maxIfNesting) {
  ------------------
  |  Branch (644:9): [True: 0, False: 2.02k]
  |  Branch (644:36): [True: 0, False: 2.02k]
  ------------------
  645|      0|        parseContext.ppError(ppToken->loc, "maximum nesting depth exceeded", "#ifdef", "");
  646|      0|        return EndOfInput;
  647|  2.02k|    } else {
  648|  2.02k|        elsetracker++;
  649|  2.02k|        ifdepth++;
  650|  2.02k|    }
  651|       |
  652|  2.02k|    if (token != PpAtomIdentifier) {
  ------------------
  |  Branch (652:9): [True: 4, False: 2.01k]
  ------------------
  653|      4|        if (defined)
  ------------------
  |  Branch (653:13): [True: 4, False: 0]
  ------------------
  654|      4|            parseContext.ppError(ppToken->loc, "must be followed by macro name", "#ifdef", "");
  655|      0|        else
  656|      0|            parseContext.ppError(ppToken->loc, "must be followed by macro name", "#ifndef", "");
  657|  2.01k|    } else {
  658|  2.01k|        MacroSymbol* macro = lookupMacroDef(atomStrings.getAtom(ppToken->name));
  659|  2.01k|        token = scanToken(ppToken);
  660|  2.01k|        if (token != '\n') {
  ------------------
  |  Branch (660:13): [True: 50, False: 1.96k]
  ------------------
  661|     50|            parseContext.ppError(ppToken->loc, "unexpected tokens following #ifdef directive - expected a newline", "#ifdef", "");
  662|  18.6k|            while (token != '\n' && token != EndOfInput)
  ------------------
  |  Branch (662:20): [True: 18.5k, False: 50]
  |  Branch (662:37): [True: 18.5k, False: 0]
  ------------------
  663|  18.5k|                token = scanToken(ppToken);
  664|     50|        }
  665|  2.01k|        if (((macro != nullptr && !macro->undef) ? 1 : 0) != defined)
  ------------------
  |  Branch (665:13): [True: 896, False: 1.12k]
  |  Branch (665:15): [True: 1.30k, False: 714]
  |  Branch (665:35): [True: 1.30k, False: 0]
  ------------------
  666|    896|            token = CPPelse(1, ppToken);
  667|  2.01k|    }
  668|       |
  669|  2.02k|    return token;
  670|  2.02k|}
_ZN7glslang10TPpContext10CPPincludeEPNS_8TPpTokenE:
  675|    221|{
  676|    221|    const TSourceLoc directiveLoc = ppToken->loc;
  677|    221|    bool startWithLocalSearch = true; // to additionally include the extra "" paths
  678|    221|    int token;
  679|       |
  680|       |    // Find the first non-whitespace char after #include
  681|    221|    int ch = getChar();
  682|    458|    while (ch == ' ' || ch == '\t') {
  ------------------
  |  Branch (682:12): [True: 237, False: 221]
  |  Branch (682:25): [True: 0, False: 221]
  ------------------
  683|    237|        ch = getChar();
  684|    237|    }
  685|    221|    if (ch == '<') {
  ------------------
  |  Branch (685:9): [True: 11, False: 210]
  ------------------
  686|       |        // <header-name> style
  687|     11|        startWithLocalSearch = false;
  688|     11|        token = scanHeaderName(ppToken, '>');
  689|    210|    } else if (ch == '"') {
  ------------------
  |  Branch (689:16): [True: 194, False: 16]
  ------------------
  690|       |        // "header-name" style
  691|    194|        token = scanHeaderName(ppToken, '"');
  692|    194|    } else {
  693|       |        // unexpected, get the full token to generate the error
  694|     16|        ungetChar();
  695|     16|        token = scanToken(ppToken);
  696|     16|    }
  697|       |
  698|    221|    if (token != PpAtomConstString) {
  ------------------
  |  Branch (698:9): [True: 24, False: 197]
  ------------------
  699|     24|        parseContext.ppError(directiveLoc, "must be followed by a header name", "#include", "");
  700|     24|        return token;
  701|     24|    }
  702|       |
  703|       |    // Make a copy of the name because it will be overwritten by the next token scan.
  704|    197|    const std::string filename = ppToken->name;
  705|       |
  706|       |    // See if the directive was well formed
  707|    197|    token = scanToken(ppToken);
  708|    197|    if (token != '\n') {
  ------------------
  |  Branch (708:9): [True: 16, False: 181]
  ------------------
  709|     16|        if (token == EndOfInput)
  ------------------
  |  Branch (709:13): [True: 0, False: 16]
  ------------------
  710|      0|            parseContext.ppError(ppToken->loc, "expected newline after header name:", "#include", "%s", filename.c_str());
  711|     16|        else
  712|     16|            parseContext.ppError(ppToken->loc, "extra content after header name:", "#include", "%s", filename.c_str());
  713|     16|        return token;
  714|     16|    }
  715|       |
  716|       |    // Process well-formed directive
  717|       |
  718|       |    // Find the inclusion, first look in "Local" ("") paths, if requested,
  719|       |    // otherwise, only search the "System" (<>) paths.
  720|    181|    TShader::Includer::IncludeResult* res = nullptr;
  721|    181|    if (startWithLocalSearch)
  ------------------
  |  Branch (721:9): [True: 174, False: 7]
  ------------------
  722|    174|        res = includer.includeLocal(filename.c_str(), currentSourceFile.c_str(), includeStack.size() + 1);
  723|    181|    if (res == nullptr || res->headerName.empty()) {
  ------------------
  |  Branch (723:9): [True: 7, False: 174]
  |  Branch (723:27): [True: 170, False: 4]
  ------------------
  724|    177|        includer.releaseInclude(res);
  725|    177|        res = includer.includeSystem(filename.c_str(), currentSourceFile.c_str(), includeStack.size() + 1);
  726|    177|    }
  727|       |
  728|       |    // Process the results
  729|    181|    if (res != nullptr && !res->headerName.empty()) {
  ------------------
  |  Branch (729:9): [True: 181, False: 0]
  |  Branch (729:27): [True: 4, False: 177]
  ------------------
  730|      4|        if (res->headerData != nullptr && res->headerLength > 0) {
  ------------------
  |  Branch (730:13): [True: 0, False: 4]
  |  Branch (730:43): [True: 0, False: 0]
  ------------------
  731|       |            // path for processing one or more tokens from an included header, hand off 'res'
  732|      0|            const bool forNextLine = parseContext.lineDirectiveShouldSetNextLine();
  733|      0|            std::string prologue = "#line " + std::to_string((int)forNextLine) + " \"" + res->headerName + "\"\n";
  734|      0|            std::string epilogue = (res->headerData[res->headerLength - 1] == '\n' ? "" : "\n") +
  ------------------
  |  Branch (734:37): [True: 0, False: 0]
  ------------------
  735|      0|                                       std::string("#line ") + std::to_string(directiveLoc.line + forNextLine) + " " +
  736|      0|                                       directiveLoc.getStringNameOrNum() + "\n";
  737|      0|            pushInput(new TokenizableIncludeFile(directiveLoc, prologue, res, epilogue, this));
  738|      0|            parseContext.intermediate.addIncludeText(res->headerName.c_str(), res->headerData, res->headerLength);
  739|       |            // There's no "current" location anymore.
  740|      0|            parseContext.setCurrentColumn(0);
  741|      4|        } else {
  742|       |            // things are okay, but there is nothing to process
  743|      4|            includer.releaseInclude(res);
  744|      4|        }
  745|    177|    } else {
  746|       |        // error path, clean up
  747|    177|        std::string message =
  748|    177|            res != nullptr ? std::string(res->headerData, res->headerLength)
  ------------------
  |  Branch (748:13): [True: 177, False: 0]
  ------------------
  749|    177|                           : std::string("Could not process include directive");
  750|    177|        parseContext.ppError(directiveLoc, message.c_str(), "#include", "for header name: %s", filename.c_str());
  751|    177|        includer.releaseInclude(res);
  752|    177|    }
  753|       |
  754|    181|    return token;
  755|    197|}
_ZN7glslang10TPpContext7CPPlineEPNS_8TPpTokenE:
  759|    100|{
  760|       |    // "#line must have, after macro substitution, one of the following forms:
  761|       |    // "#line line
  762|       |    // "#line line source-string-number"
  763|       |
  764|    100|    int token = scanToken(ppToken);
  765|    100|    const TSourceLoc directiveLoc = ppToken->loc;
  766|    100|    if (token == '\n') {
  ------------------
  |  Branch (766:9): [True: 0, False: 100]
  ------------------
  767|      0|        parseContext.ppError(ppToken->loc, "must by followed by an integral literal", "#line", "");
  768|      0|        return token;
  769|      0|    }
  770|       |
  771|    100|    int lineRes = 0; // Line number after macro expansion.
  772|    100|    int lineToken = 0;
  773|    100|    bool hasFile = false;
  774|    100|    int fileRes = 0; // Source file number after macro expansion.
  775|    100|    const char* sourceName = nullptr; // Optional source file name.
  776|    100|    bool lineErr = false;
  777|    100|    bool fileErr = false;
  778|    100|    disableEscapeSequences = true;
  779|    100|    token = eval(token, MIN_PRECEDENCE, false, lineRes, lineErr, ppToken);
  780|    100|    disableEscapeSequences = false;
  781|    100|    if (! lineErr) {
  ------------------
  |  Branch (781:9): [True: 100, False: 0]
  ------------------
  782|    100|        lineToken = lineRes;
  783|    100|        if (token == '\n')
  ------------------
  |  Branch (783:13): [True: 45, False: 55]
  ------------------
  784|     45|            ++lineRes;
  785|       |
  786|    100|        if (parseContext.lineDirectiveShouldSetNextLine())
  ------------------
  |  Branch (786:13): [True: 11, False: 89]
  ------------------
  787|     11|            --lineRes;
  788|    100|        parseContext.setCurrentLine(lineRes);
  789|       |
  790|    100|        if (token != '\n') {
  ------------------
  |  Branch (790:13): [True: 55, False: 45]
  ------------------
  791|     55|            if (token == PpAtomConstString) {
  ------------------
  |  Branch (791:17): [True: 39, False: 16]
  ------------------
  792|     39|                parseContext.ppRequireExtensions(directiveLoc, 1, &E_GL_GOOGLE_cpp_style_line_directive, "filename-based #line");
  793|       |                // We need to save a copy of the string instead of pointing
  794|       |                // to the name field of the token since the name field
  795|       |                // will likely be overwritten by the next token scan.
  796|     39|                sourceName = atomStrings.getString(atomStrings.getAddAtom(ppToken->name));
  797|     39|                parseContext.setCurrentSourceName(sourceName);
  798|     39|                hasFile = true;
  799|     39|                token = scanToken(ppToken);
  800|     39|            } else {
  801|     16|                token = eval(token, MIN_PRECEDENCE, false, fileRes, fileErr, ppToken);
  802|     16|                if (! fileErr) {
  ------------------
  |  Branch (802:21): [True: 6, False: 10]
  ------------------
  803|      6|                    parseContext.setCurrentString(fileRes);
  804|      6|                    hasFile = true;
  805|      6|                }
  806|     16|            }
  807|     55|        }
  808|    100|    }
  809|    100|    if (!fileErr && !lineErr) {
  ------------------
  |  Branch (809:9): [True: 90, False: 10]
  |  Branch (809:21): [True: 90, False: 0]
  ------------------
  810|     90|        parseContext.notifyLineDirective(directiveLoc.line, lineToken, hasFile, fileRes, sourceName);
  811|     90|    }
  812|    100|    token = extraTokenCheck(PpAtomLine, ppToken, token);
  813|       |
  814|    100|    return token;
  815|    100|}
_ZN7glslang10TPpContext8CPPerrorEPNS_8TPpTokenE:
  819|    351|{
  820|    351|    disableEscapeSequences = true;
  821|    351|    int token = scanToken(ppToken);
  822|    351|    disableEscapeSequences = false;
  823|    351|    std::string message;
  824|    351|    TSourceLoc loc = ppToken->loc;
  825|       |
  826|  2.87k|    while (token != '\n' && token != EndOfInput) {
  ------------------
  |  Branch (826:12): [True: 2.52k, False: 351]
  |  Branch (826:29): [True: 2.52k, False: 0]
  ------------------
  827|  2.52k|        if (token == PpAtomConstInt16 || token == PpAtomConstUint16 ||
  ------------------
  |  Branch (827:13): [True: 0, False: 2.52k]
  |  Branch (827:42): [True: 0, False: 2.52k]
  ------------------
  828|  2.52k|            token == PpAtomConstInt   || token == PpAtomConstUint   ||
  ------------------
  |  Branch (828:13): [True: 41, False: 2.48k]
  |  Branch (828:42): [True: 0, False: 2.48k]
  ------------------
  829|  2.48k|            token == PpAtomConstInt64 || token == PpAtomConstUint64 ||
  ------------------
  |  Branch (829:13): [True: 0, False: 2.48k]
  |  Branch (829:42): [True: 0, False: 2.48k]
  ------------------
  830|  2.48k|            token == PpAtomConstFloat16 ||
  ------------------
  |  Branch (830:13): [True: 0, False: 2.48k]
  ------------------
  831|  2.48k|            token == PpAtomConstFloatE2M1 ||
  ------------------
  |  Branch (831:13): [True: 0, False: 2.48k]
  ------------------
  832|  2.48k|            token == PpAtomConstFloatE3M2 ||
  ------------------
  |  Branch (832:13): [True: 0, False: 2.48k]
  ------------------
  833|  2.48k|            token == PpAtomConstFloatE2M3 ||
  ------------------
  |  Branch (833:13): [True: 0, False: 2.48k]
  ------------------
  834|  2.48k|            token == PpAtomConstFloatUE8M0 ||
  ------------------
  |  Branch (834:13): [True: 0, False: 2.48k]
  ------------------
  835|  2.48k|            token == PpAtomConstFloatMXINT8 ||
  ------------------
  |  Branch (835:13): [True: 0, False: 2.48k]
  ------------------
  836|  2.48k|            token == PpAtomConstFloat || token == PpAtomConstDouble) {
  ------------------
  |  Branch (836:13): [True: 4, False: 2.48k]
  |  Branch (836:42): [True: 0, False: 2.48k]
  ------------------
  837|     45|                message.append(ppToken->name);
  838|  2.48k|        } else if (token == PpAtomIdentifier || token == PpAtomConstString) {
  ------------------
  |  Branch (838:20): [True: 1.27k, False: 1.20k]
  |  Branch (838:49): [True: 0, False: 1.20k]
  ------------------
  839|  1.27k|            message.append(ppToken->name);
  840|  1.27k|        } else {
  841|  1.20k|            message.append(atomStrings.getString(token));
  842|  1.20k|        }
  843|  2.52k|        message.append(" ");
  844|  2.52k|        token = scanToken(ppToken);
  845|  2.52k|    }
  846|    351|    parseContext.notifyErrorDirective(loc.line, message.c_str());
  847|       |    // store this msg into the shader's information log..set the Compile Error flag!!!!
  848|    351|    parseContext.ppError(loc, message.c_str(), "#error", "");
  849|       |
  850|    351|    return '\n';
  851|    351|}
_ZN7glslang10TPpContext9CPPpragmaEPNS_8TPpTokenE:
  855|     40|{
  856|     40|    char SrcStrName[2];
  857|     40|    TVector<TString> tokens;
  858|       |
  859|     40|    TSourceLoc loc = ppToken->loc;  // because we go to the next line before processing
  860|     40|    int token = scanToken(ppToken);
  861|    380|    while (token != '\n' && token != EndOfInput) {
  ------------------
  |  Branch (861:12): [True: 340, False: 40]
  |  Branch (861:29): [True: 340, False: 0]
  ------------------
  862|    340|        switch (token) {
  863|    108|        case PpAtomIdentifier:
  ------------------
  |  Branch (863:9): [True: 108, False: 232]
  ------------------
  864|    126|        case PpAtomConstInt:
  ------------------
  |  Branch (864:9): [True: 18, False: 322]
  ------------------
  865|    126|        case PpAtomConstUint:
  ------------------
  |  Branch (865:9): [True: 0, False: 340]
  ------------------
  866|    128|        case PpAtomConstInt64:
  ------------------
  |  Branch (866:9): [True: 2, False: 338]
  ------------------
  867|    128|        case PpAtomConstUint64:
  ------------------
  |  Branch (867:9): [True: 0, False: 340]
  ------------------
  868|    128|        case PpAtomConstInt16:
  ------------------
  |  Branch (868:9): [True: 0, False: 340]
  ------------------
  869|    128|        case PpAtomConstUint16:
  ------------------
  |  Branch (869:9): [True: 0, False: 340]
  ------------------
  870|    130|        case PpAtomConstFloat:
  ------------------
  |  Branch (870:9): [True: 2, False: 338]
  ------------------
  871|    130|        case PpAtomConstDouble:
  ------------------
  |  Branch (871:9): [True: 0, False: 340]
  ------------------
  872|    130|        case PpAtomConstFloat16:
  ------------------
  |  Branch (872:9): [True: 0, False: 340]
  ------------------
  873|    130|        case PpAtomConstFloatE2M1:
  ------------------
  |  Branch (873:9): [True: 0, False: 340]
  ------------------
  874|    130|        case PpAtomConstFloatE3M2:
  ------------------
  |  Branch (874:9): [True: 0, False: 340]
  ------------------
  875|    130|        case PpAtomConstFloatE2M3:
  ------------------
  |  Branch (875:9): [True: 0, False: 340]
  ------------------
  876|    130|        case PpAtomConstFloatUE8M0:
  ------------------
  |  Branch (876:9): [True: 0, False: 340]
  ------------------
  877|    130|        case PpAtomConstFloatMXINT8:
  ------------------
  |  Branch (877:9): [True: 0, False: 340]
  ------------------
  878|    130|            tokens.push_back(ppToken->name);
  879|    130|            break;
  880|    210|        default:
  ------------------
  |  Branch (880:9): [True: 210, False: 130]
  ------------------
  881|    210|            SrcStrName[0] = (char)token;
  882|    210|            SrcStrName[1] = '\0';
  883|    210|            tokens.push_back(SrcStrName);
  884|    340|        }
  885|    340|        token = scanToken(ppToken);
  886|    340|    }
  887|       |
  888|     40|    if (token == EndOfInput)
  ------------------
  |  Branch (888:9): [True: 0, False: 40]
  ------------------
  889|      0|        parseContext.ppError(loc, "directive must end with a newline", "#pragma", "");
  890|     40|    else
  891|     40|        parseContext.handlePragma(loc, tokens);
  892|       |
  893|     40|    return token;
  894|     40|}
_ZN7glslang10TPpContext10CPPversionEPNS_8TPpTokenE:
  898|  3.13k|{
  899|  3.13k|    int token = scanToken(ppToken);
  900|       |
  901|  3.13k|    if (errorOnVersion || versionSeen) {
  ------------------
  |  Branch (901:9): [True: 230, False: 2.90k]
  |  Branch (901:27): [True: 154, False: 2.75k]
  ------------------
  902|    384|        if (parseContext.isReadingHLSL())
  ------------------
  |  Branch (902:13): [True: 0, False: 384]
  ------------------
  903|      0|            parseContext.ppError(ppToken->loc, "invalid preprocessor command", "#version", "");
  904|    384|        else
  905|    384|            parseContext.ppError(ppToken->loc, "must occur first in shader", "#version", "");
  906|    384|    }
  907|  3.13k|    versionSeen = true;
  908|       |
  909|  3.13k|    if (token == '\n') {
  ------------------
  |  Branch (909:9): [True: 0, False: 3.13k]
  ------------------
  910|      0|        parseContext.ppError(ppToken->loc, "must be followed by version number", "#version", "");
  911|       |
  912|      0|        return token;
  913|      0|    }
  914|       |
  915|  3.13k|    if (token != PpAtomConstInt)
  ------------------
  |  Branch (915:9): [True: 39, False: 3.09k]
  ------------------
  916|     39|        parseContext.ppError(ppToken->loc, "must be followed by version number", "#version", "");
  917|       |
  918|  3.13k|    ppToken->ival = atoi(ppToken->name);
  919|  3.13k|    int versionNumber = ppToken->ival;
  920|  3.13k|    int line = ppToken->loc.line;
  921|  3.13k|    token = scanToken(ppToken);
  922|       |
  923|  3.13k|    if (token == '\n') {
  ------------------
  |  Branch (923:9): [True: 1.91k, False: 1.22k]
  ------------------
  924|  1.91k|        parseContext.notifyVersion(line, versionNumber, nullptr);
  925|  1.91k|        return token;
  926|  1.91k|    } else {
  927|  1.22k|        int profileAtom = atomStrings.getAtom(ppToken->name);
  928|  1.22k|        if (profileAtom != PpAtomCore &&
  ------------------
  |  Branch (928:13): [True: 735, False: 491]
  ------------------
  929|    735|            profileAtom != PpAtomCompatibility &&
  ------------------
  |  Branch (929:13): [True: 570, False: 165]
  ------------------
  930|    570|            profileAtom != PpAtomEs)
  ------------------
  |  Branch (930:13): [True: 186, False: 384]
  ------------------
  931|    186|            parseContext.ppError(ppToken->loc, "bad profile name; use es, core, or compatibility", "#version", "");
  932|  1.22k|        parseContext.notifyVersion(line, versionNumber, ppToken->name);
  933|  1.22k|        token = scanToken(ppToken);
  934|       |
  935|  1.22k|        if (token == '\n')
  ------------------
  |  Branch (935:13): [True: 1.06k, False: 162]
  ------------------
  936|  1.06k|            return token;
  937|    162|        else
  938|    162|            parseContext.ppError(ppToken->loc, "bad tokens following profile -- expected newline", "#version", "");
  939|  1.22k|    }
  940|       |
  941|    162|    return token;
  942|  3.13k|}
_ZN7glslang10TPpContext12CPPextensionEPNS_8TPpTokenE:
  946|  16.2k|{
  947|  16.2k|    int line = ppToken->loc.line;
  948|  16.2k|    int token = scanToken(ppToken);
  949|  16.2k|    char extensionName[MaxTokenLength + 1];
  950|       |
  951|  16.2k|    if (token=='\n') {
  ------------------
  |  Branch (951:9): [True: 0, False: 16.2k]
  ------------------
  952|      0|        parseContext.ppError(ppToken->loc, "extension name not specified", "#extension", "");
  953|      0|        return token;
  954|      0|    }
  955|       |
  956|  16.2k|    if (token != PpAtomIdentifier)
  ------------------
  |  Branch (956:9): [True: 17, False: 16.2k]
  ------------------
  957|     17|        parseContext.ppError(ppToken->loc, "extension name expected", "#extension", "");
  958|       |
  959|  16.2k|    snprintf(extensionName, sizeof(extensionName), "%s", ppToken->name);
  960|       |
  961|  16.2k|    token = scanToken(ppToken);
  962|  16.2k|    if (token != ':') {
  ------------------
  |  Branch (962:9): [True: 511, False: 15.7k]
  ------------------
  963|    511|        parseContext.ppError(ppToken->loc, "':' missing after extension name", "#extension", "");
  964|    511|        return token;
  965|    511|    }
  966|       |
  967|  15.7k|    token = scanToken(ppToken);
  968|  15.7k|    if (token != PpAtomIdentifier) {
  ------------------
  |  Branch (968:9): [True: 216, False: 15.5k]
  ------------------
  969|    216|        parseContext.ppError(ppToken->loc, "behavior for extension not specified", "#extension", "");
  970|    216|        return token;
  971|    216|    }
  972|       |
  973|  15.5k|    parseContext.updateExtensionBehavior(line, extensionName, ppToken->name);
  974|  15.5k|    parseContext.notifyExtensionDirective(line, extensionName, ppToken->name);
  975|       |
  976|  15.5k|    token = scanToken(ppToken);
  977|  15.5k|    if (token == '\n')
  ------------------
  |  Branch (977:9): [True: 15.4k, False: 76]
  ------------------
  978|  15.4k|        return token;
  979|     76|    else
  980|     76|        parseContext.ppError(ppToken->loc,  "extra tokens -- expected newline", "#extension","");
  981|       |
  982|     76|    return token;
  983|  15.5k|}
_ZN7glslang10TPpContext11readCPPlineEPNS_8TPpTokenE:
  986|   742k|{
  987|   742k|    int token = scanToken(ppToken);
  988|       |
  989|   742k|    if (token == PpAtomIdentifier) {
  ------------------
  |  Branch (989:9): [True: 713k, False: 28.9k]
  ------------------
  990|   713k|        switch (atomStrings.getAtom(ppToken->name)) {
  991|   684k|        case PpAtomDefine:
  ------------------
  |  Branch (991:9): [True: 684k, False: 29.4k]
  ------------------
  992|   684k|            token = CPPdefine(ppToken);
  993|   684k|            break;
  994|     56|        case PpAtomElse:
  ------------------
  |  Branch (994:9): [True: 56, False: 713k]
  ------------------
  995|     56|            if (elseSeen[elsetracker])
  ------------------
  |  Branch (995:17): [True: 2, False: 54]
  ------------------
  996|      2|                parseContext.ppError(ppToken->loc, "#else after #else", "#else", "");
  997|     56|            elseSeen[elsetracker] = true;
  998|     56|            if (ifdepth == 0)
  ------------------
  |  Branch (998:17): [True: 8, False: 48]
  ------------------
  999|      8|                parseContext.ppError(ppToken->loc, "mismatched statements", "#else", "");
 1000|     56|            token = extraTokenCheck(PpAtomElse, ppToken, scanToken(ppToken));
 1001|     56|            token = CPPelse(0, ppToken);
 1002|     56|            break;
 1003|    231|        case PpAtomElif:
  ------------------
  |  Branch (1003:9): [True: 231, False: 713k]
  ------------------
 1004|    231|            if (ifdepth == 0)
  ------------------
  |  Branch (1004:17): [True: 186, False: 45]
  ------------------
 1005|    186|                parseContext.ppError(ppToken->loc, "mismatched statements", "#elif", "");
 1006|    231|            if (elseSeen[elsetracker])
  ------------------
  |  Branch (1006:17): [True: 0, False: 231]
  ------------------
 1007|      0|                parseContext.ppError(ppToken->loc, "#elif after #else", "#elif", "");
 1008|       |            // this token is really a dont care, but we still need to eat the tokens
 1009|    231|            token = scanToken(ppToken);
 1010|  1.16k|            while (token != '\n' && token != EndOfInput)
  ------------------
  |  Branch (1010:20): [True: 929, False: 231]
  |  Branch (1010:37): [True: 929, False: 0]
  ------------------
 1011|    929|                token = scanToken(ppToken);
 1012|    231|            token = CPPelse(0, ppToken);
 1013|    231|            break;
 1014|  1.57k|        case PpAtomEndif:
  ------------------
  |  Branch (1014:9): [True: 1.57k, False: 712k]
  ------------------
 1015|  1.57k|            if (ifdepth == 0)
  ------------------
  |  Branch (1015:17): [True: 96, False: 1.47k]
  ------------------
 1016|     96|                parseContext.ppError(ppToken->loc, "mismatched statements", "#endif", "");
 1017|  1.47k|            else {
 1018|  1.47k|                if (elsetracker >= 0)
  ------------------
  |  Branch (1018:21): [True: 1.47k, False: 0]
  ------------------
 1019|  1.47k|                    elseSeen[elsetracker] = false;
 1020|  1.47k|                if (elsetracker > 0)
  ------------------
  |  Branch (1020:21): [True: 1.47k, False: 0]
  ------------------
 1021|  1.47k|                    --elsetracker;
 1022|  1.47k|                --ifdepth;
 1023|  1.47k|            }
 1024|  1.57k|            token = extraTokenCheck(PpAtomEndif, ppToken, scanToken(ppToken));
 1025|  1.57k|            break;
 1026|    599|        case PpAtomIf:
  ------------------
  |  Branch (1026:9): [True: 599, False: 713k]
  ------------------
 1027|    599|            token = CPPif(ppToken);
 1028|    599|            break;
 1029|  1.64k|        case PpAtomIfdef:
  ------------------
  |  Branch (1029:9): [True: 1.64k, False: 712k]
  ------------------
 1030|  1.64k|            token = CPPifdef(1, ppToken);
 1031|  1.64k|            break;
 1032|    380|        case PpAtomIfndef:
  ------------------
  |  Branch (1032:9): [True: 380, False: 713k]
  ------------------
 1033|    380|            token = CPPifdef(0, ppToken);
 1034|    380|            break;
 1035|    100|        case PpAtomLine:
  ------------------
  |  Branch (1035:9): [True: 100, False: 713k]
  ------------------
 1036|    100|            token = CPPline(ppToken);
 1037|    100|            break;
 1038|    221|        case PpAtomInclude:
  ------------------
  |  Branch (1038:9): [True: 221, False: 713k]
  ------------------
 1039|    221|            if(!parseContext.isReadingHLSL()) {
  ------------------
  |  Branch (1039:16): [True: 221, False: 0]
  ------------------
 1040|    221|                const std::array exts = { E_GL_GOOGLE_include_directive, E_GL_ARB_shading_language_include };
 1041|    221|                parseContext.ppRequireExtensions(ppToken->loc, exts, "#include");
 1042|    221|            }
 1043|    221|            token = CPPinclude(ppToken);
 1044|    221|            break;
 1045|     40|        case PpAtomPragma:
  ------------------
  |  Branch (1045:9): [True: 40, False: 713k]
  ------------------
 1046|     40|            token = CPPpragma(ppToken);
 1047|     40|            break;
 1048|      0|        case PpAtomUndef:
  ------------------
  |  Branch (1048:9): [True: 0, False: 713k]
  ------------------
 1049|      0|            token = CPPundef(ppToken);
 1050|      0|            break;
 1051|    351|        case PpAtomError:
  ------------------
  |  Branch (1051:9): [True: 351, False: 713k]
  ------------------
 1052|    351|            token = CPPerror(ppToken);
 1053|    351|            break;
 1054|  3.13k|        case PpAtomVersion:
  ------------------
  |  Branch (1054:9): [True: 3.13k, False: 710k]
  ------------------
 1055|  3.13k|            token = CPPversion(ppToken);
 1056|  3.13k|            break;
 1057|  16.2k|        case PpAtomExtension:
  ------------------
  |  Branch (1057:9): [True: 16.2k, False: 697k]
  ------------------
 1058|  16.2k|            token = CPPextension(ppToken);
 1059|  16.2k|            break;
 1060|  4.82k|        default:
  ------------------
  |  Branch (1060:9): [True: 4.82k, False: 709k]
  ------------------
 1061|  4.82k|            parseContext.ppError(ppToken->loc, "invalid directive:", "#", "%s", ppToken->name);
 1062|  4.82k|            break;
 1063|   713k|        }
 1064|   713k|    } else if (token != '\n' && token != EndOfInput)
  ------------------
  |  Branch (1064:16): [True: 14.5k, False: 14.3k]
  |  Branch (1064:33): [True: 14.5k, False: 0]
  ------------------
 1065|  14.5k|        parseContext.ppError(ppToken->loc, "invalid directive", "#", "");
 1066|       |
 1067|  1.23M|    while (token != '\n' && token != EndOfInput)
  ------------------
  |  Branch (1067:12): [True: 490k, False: 742k]
  |  Branch (1067:29): [True: 490k, False: 96]
  ------------------
 1068|   490k|        token = scanToken(ppToken);
 1069|       |
 1070|   742k|    return token;
 1071|   742k|}
_ZN7glslang10TPpContext14scanHeaderNameEPNS_8TPpTokenEc:
 1077|    205|{
 1078|    205|    bool tooLong = false;
 1079|       |
 1080|    205|    if (inputStack.empty())
  ------------------
  |  Branch (1080:9): [True: 0, False: 205]
  ------------------
 1081|      0|        return EndOfInput;
 1082|       |
 1083|    205|    int len = 0;
 1084|    205|    ppToken->name[0] = '\0';
 1085|  63.2k|    do {
 1086|  63.2k|        int ch = inputStack.back()->getch();
 1087|       |
 1088|       |        // done yet?
 1089|  63.2k|        if (ch == delimit) {
  ------------------
  |  Branch (1089:13): [True: 197, False: 63.0k]
  ------------------
 1090|    197|            ppToken->name[len] = '\0';
 1091|    197|            if (tooLong)
  ------------------
  |  Branch (1091:17): [True: 7, False: 190]
  ------------------
 1092|      7|                parseContext.ppError(ppToken->loc, "header name too long", "", "");
 1093|    197|            return PpAtomConstString;
 1094|  63.0k|        } else if (ch == EndOfInput)
  ------------------
  |  Branch (1094:20): [True: 8, False: 63.0k]
  ------------------
 1095|      8|            return EndOfInput;
 1096|       |
 1097|       |        // found a character to expand the name with
 1098|  63.0k|        if (len < MaxTokenLength)
  ------------------
  |  Branch (1098:13): [True: 20.8k, False: 42.1k]
  ------------------
 1099|  20.8k|            ppToken->name[len++] = (char)ch;
 1100|  42.1k|        else
 1101|  42.1k|            tooLong = true;
 1102|  63.0k|    } while (true);
  ------------------
  |  Branch (1102:14): [True: 63.0k, Folded]
  ------------------
 1103|    205|}
_ZN7glslang10TPpContext15PrescanMacroArgERNS0_11TokenStreamEPNS_8TPpTokenEb:
 1109|    557|{
 1110|       |    // expand the argument
 1111|    557|    TokenStream* expandedArg = new TokenStream;
 1112|    557|    pushInput(new tMarkerInput(this));
 1113|    557|    pushTokenStreamInput(arg);
 1114|    557|    int token;
 1115|  22.6k|    while ((token = scanToken(ppToken)) != tMarkerInput::marker && token != EndOfInput) {
  ------------------
  |  Branch (1115:12): [True: 22.0k, False: 557]
  |  Branch (1115:68): [True: 22.0k, False: 0]
  ------------------
 1116|  22.0k|        token = tokenPaste(token, *ppToken);
 1117|  22.0k|        if (token == PpAtomIdentifier) {
  ------------------
  |  Branch (1117:13): [True: 6.69k, False: 15.3k]
  ------------------
 1118|  6.69k|            switch (MacroExpand(ppToken, false, newLineOkay)) {
  ------------------
  |  Branch (1118:21): [True: 6.69k, False: 0]
  ------------------
 1119|  6.63k|            case MacroExpandNotStarted:
  ------------------
  |  Branch (1119:13): [True: 6.63k, False: 54]
  ------------------
 1120|  6.63k|                break;
 1121|      0|            case MacroExpandError:
  ------------------
  |  Branch (1121:13): [True: 0, False: 6.69k]
  ------------------
 1122|       |                // toss the rest of the pushed-input argument by scanning until tMarkerInput
 1123|      0|                while ((token = scanToken(ppToken)) != tMarkerInput::marker && token != EndOfInput)
  ------------------
  |  Branch (1123:24): [True: 0, False: 0]
  |  Branch (1123:80): [True: 0, False: 0]
  ------------------
 1124|      0|                    ;
 1125|      0|                break;
 1126|     54|            case MacroExpandStarted:
  ------------------
  |  Branch (1126:13): [True: 54, False: 6.63k]
  ------------------
 1127|     54|            case MacroExpandUndef:
  ------------------
  |  Branch (1127:13): [True: 0, False: 6.69k]
  ------------------
 1128|     54|                continue;
 1129|  6.69k|            }
 1130|  6.69k|        }
 1131|  22.0k|        if (token == tMarkerInput::marker || token == EndOfInput)
  ------------------
  |  Branch (1131:13): [True: 0, False: 22.0k]
  |  Branch (1131:46): [True: 0, False: 22.0k]
  ------------------
 1132|      0|            break;
 1133|  22.0k|        expandedArg->putToken(token, ppToken);
 1134|  22.0k|    }
 1135|       |
 1136|    557|    if (token != tMarkerInput::marker) {
  ------------------
  |  Branch (1136:9): [True: 0, False: 557]
  ------------------
 1137|       |        // Error, or MacroExpand ate the marker, so had bad input, recover
 1138|      0|        delete expandedArg;
 1139|      0|        expandedArg = nullptr;
 1140|      0|    }
 1141|       |
 1142|    557|    return expandedArg;
 1143|    557|}
_ZN7glslang10TPpContext11tMacroInput4scanEPNS_8TPpTokenE:
 1150|  16.8k|{
 1151|  16.8k|    int token;
 1152|  16.8k|    do {
 1153|  16.8k|        token = mac->body.getToken(pp->parseContext, ppToken);
 1154|  16.8k|    } while (token == ' ');  // handle white space in macro
  ------------------
  |  Branch (1154:14): [True: 0, False: 16.8k]
  ------------------
 1155|       |
 1156|       |    // Hash operators basically turn off a round of macro substitution
 1157|       |    // (the round done on the argument before the round done on the RHS of the
 1158|       |    // macro definition):
 1159|       |    //
 1160|       |    // "A parameter in the replacement list, unless preceded by a # or ##
 1161|       |    // preprocessing token or followed by a ## preprocessing token (see below),
 1162|       |    // is replaced by the corresponding argument after all macros contained
 1163|       |    // therein have been expanded."
 1164|       |    //
 1165|       |    // "If, in the replacement list, a parameter is immediately preceded or
 1166|       |    // followed by a ## preprocessing token, the parameter is replaced by the
 1167|       |    // corresponding argument's preprocessing token sequence."
 1168|       |
 1169|  16.8k|    bool pasting = false;
 1170|  16.8k|    if (postpaste) {
  ------------------
  |  Branch (1170:9): [True: 44, False: 16.8k]
  ------------------
 1171|       |        // don't expand next token
 1172|     44|        pasting = true;
 1173|     44|        postpaste = false;
 1174|     44|    }
 1175|       |
 1176|  16.8k|    if (prepaste) {
  ------------------
  |  Branch (1176:9): [True: 44, False: 16.8k]
  ------------------
 1177|       |        // already know we should be on a ##, verify
 1178|     44|        assert(token == PpAtomPaste);
 1179|     44|        prepaste = false;
 1180|     44|        postpaste = true;
 1181|     44|    }
 1182|       |
 1183|       |    // see if are preceding a ##
 1184|  16.8k|    if (mac->body.peekTokenizedPasting(false)) {
  ------------------
  |  Branch (1184:9): [True: 44, False: 16.8k]
  ------------------
 1185|     44|        prepaste = true;
 1186|     44|        pasting = true;
 1187|     44|    }
 1188|       |
 1189|       |
 1190|       |    // TODO: preprocessor:  properly handle whitespace (or lack of it) between tokens when expanding
 1191|  16.8k|    if (token == PpAtomIdentifier) {
  ------------------
  |  Branch (1191:9): [True: 3.03k, False: 13.8k]
  ------------------
 1192|  3.03k|        int i;
 1193|  4.94k|        for (i = (int)mac->args.size() - 1; i >= 0; i--)
  ------------------
  |  Branch (1193:45): [True: 2.53k, False: 2.40k]
  ------------------
 1194|  2.53k|            if (strcmp(pp->atomStrings.getString(mac->args[i]), ppToken->name) == 0)
  ------------------
  |  Branch (1194:17): [True: 625, False: 1.91k]
  ------------------
 1195|    625|                break;
 1196|  3.03k|        if (i >= 0) {
  ------------------
  |  Branch (1196:13): [True: 625, False: 2.40k]
  ------------------
 1197|    625|            TokenStream* arg = expandedArgs[i];
 1198|    625|            bool expanded = !!arg && !pasting;
  ------------------
  |  Branch (1198:29): [True: 625, False: 0]
  |  Branch (1198:38): [True: 625, False: 0]
  ------------------
 1199|       |            // HLSL does expand macros before concatenation
 1200|    625|            if (arg == nullptr || (pasting && !pp->parseContext.isReadingHLSL()) ) {
  ------------------
  |  Branch (1200:17): [True: 0, False: 625]
  |  Branch (1200:36): [True: 0, False: 625]
  |  Branch (1200:47): [True: 0, False: 0]
  ------------------
 1201|      0|                arg = args[i];
 1202|      0|            }
 1203|    625|            pp->pushTokenStreamInput(*arg, prepaste, expanded);
 1204|       |
 1205|    625|            return pp->scanToken(ppToken);
 1206|    625|        }
 1207|  3.03k|    }
 1208|       |
 1209|  16.2k|    if (token == EndOfInput)
  ------------------
  |  Branch (1209:9): [True: 2.09k, False: 14.1k]
  ------------------
 1210|  2.09k|        mac->busy = 0;
 1211|       |
 1212|  16.2k|    return token;
 1213|  16.8k|}
_ZN7glslang10TPpContext10tZeroInput4scanEPNS_8TPpTokenE:
 1217|    496|{
 1218|    496|    if (done)
  ------------------
  |  Branch (1218:9): [True: 248, False: 248]
  ------------------
 1219|    248|        return EndOfInput;
 1220|       |
 1221|    248|    ppToken->name[0] = '0';
 1222|    248|    ppToken->name[1] = 0;
 1223|    248|    ppToken->ival = 0;
 1224|    248|    ppToken->space = false;
 1225|    248|    done = true;
 1226|       |
 1227|    248|    return PpAtomConstInt;
 1228|    496|}
_ZN7glslang10TPpContext11MacroExpandEPNS_8TPpTokenEbb:
 1243|  62.2M|{
 1244|  62.2M|    ppToken->space = false;
 1245|  62.2M|    int macroAtom = atomStrings.getAtom(ppToken->name);
 1246|       |
 1247|       |    // Bound total MacroExpand nesting depth to prevent stack overflow
 1248|       |    // via unbounded MacroExpand <-> PrescanMacroArg mutual recursion.
 1249|  62.2M|    if (macroExpandDepth >= maxMacroExpandDepth) {
  ------------------
  |  Branch (1249:9): [True: 0, False: 62.2M]
  ------------------
 1250|      0|        parseContext.ppError(ppToken->loc, "macro expansion depth limit exceeded",
 1251|      0|                             "macro expansion", "%s", ppToken->name);
 1252|      0|        return MacroExpandNotStarted;
 1253|      0|    }
 1254|  62.2M|    struct DepthGuard {
 1255|  62.2M|        int& d;
 1256|  62.2M|        explicit DepthGuard(int& d_) : d(d_) { ++d; }
 1257|  62.2M|        ~DepthGuard() { --d; }
 1258|  62.2M|    } guard(macroExpandDepth);
 1259|       |
 1260|  62.2M|    if (ppToken->fullyExpanded)
  ------------------
  |  Branch (1260:9): [True: 7.06k, False: 62.2M]
  ------------------
 1261|  7.06k|        return MacroExpandNotStarted;
 1262|       |
 1263|  62.2M|    switch (macroAtom) {
 1264|      0|    case PpAtomLineMacro:
  ------------------
  |  Branch (1264:5): [True: 0, False: 62.2M]
  ------------------
 1265|       |        // Arguments which are macro have been replaced in the first stage.
 1266|      0|        if (ppToken->ival == 0)
  ------------------
  |  Branch (1266:13): [True: 0, False: 0]
  ------------------
 1267|      0|            ppToken->ival = parseContext.getCurrentLoc().line;
 1268|      0|        snprintf(ppToken->name, sizeof(ppToken->name), "%d", ppToken->ival);
 1269|      0|        UngetToken(PpAtomConstInt, ppToken);
 1270|      0|        return MacroExpandStarted;
 1271|       |
 1272|      0|    case PpAtomFileMacro: {
  ------------------
  |  Branch (1272:5): [True: 0, False: 62.2M]
  ------------------
 1273|      0|        if (parseContext.getCurrentLoc().name)
  ------------------
  |  Branch (1273:13): [True: 0, False: 0]
  ------------------
 1274|      0|            parseContext.ppRequireExtensions(ppToken->loc, 1, &E_GL_GOOGLE_cpp_style_line_directive, "filename-based __FILE__");
 1275|      0|        ppToken->ival = parseContext.getCurrentLoc().string;
 1276|      0|        snprintf(ppToken->name, sizeof(ppToken->name), "%s", ppToken->loc.getStringNameOrNum().c_str());
 1277|      0|        UngetToken(PpAtomConstInt, ppToken);
 1278|      0|        return MacroExpandStarted;
 1279|      0|    }
 1280|       |
 1281|      0|    case PpAtomVersionMacro:
  ------------------
  |  Branch (1281:5): [True: 0, False: 62.2M]
  ------------------
 1282|      0|        ppToken->ival = parseContext.version;
 1283|      0|        snprintf(ppToken->name, sizeof(ppToken->name), "%d", ppToken->ival);
 1284|      0|        UngetToken(PpAtomConstInt, ppToken);
 1285|      0|        return MacroExpandStarted;
 1286|       |
 1287|  62.2M|    default:
  ------------------
  |  Branch (1287:5): [True: 62.2M, False: 0]
  ------------------
 1288|  62.2M|        break;
 1289|  62.2M|    }
 1290|       |
 1291|  62.2M|    MacroSymbol* macro = macroAtom == 0 ? nullptr : lookupMacroDef(macroAtom);
  ------------------
  |  Branch (1291:26): [True: 62.1M, False: 11.3k]
  ------------------
 1292|       |
 1293|       |    // no recursive expansions
 1294|  62.2M|    if (macro != nullptr && macro->busy) {
  ------------------
  |  Branch (1294:9): [True: 2.10k, False: 62.2M]
  |  Branch (1294:29): [True: 0, False: 2.10k]
  ------------------
 1295|      0|        ppToken->fullyExpanded = true;
 1296|      0|        return MacroExpandNotStarted;
 1297|      0|    }
 1298|       |
 1299|       |    // not expanding undefined macros
 1300|  62.2M|    if ((macro == nullptr || macro->undef) && ! expandUndef)
  ------------------
  |  Branch (1300:10): [True: 62.2M, False: 2.10k]
  |  Branch (1300:30): [True: 0, False: 2.10k]
  |  Branch (1300:47): [True: 62.2M, False: 248]
  ------------------
 1301|  62.2M|        return MacroExpandNotStarted;
 1302|       |
 1303|       |    // 0 is the value of an undefined macro
 1304|  2.35k|    if ((macro == nullptr || macro->undef) && expandUndef) {
  ------------------
  |  Branch (1304:10): [True: 248, False: 2.10k]
  |  Branch (1304:30): [True: 0, False: 2.10k]
  |  Branch (1304:47): [True: 248, False: 0]
  ------------------
 1305|    248|        pushInput(new tZeroInput(this));
 1306|    248|        return MacroExpandUndef;
 1307|    248|    }
 1308|       |
 1309|  2.10k|    tMacroInput *in = new tMacroInput(this);
 1310|       |
 1311|  2.10k|    TSourceLoc loc = ppToken->loc;  // in case we go to the next line before discovering the error
 1312|  2.10k|    in->mac = macro;
 1313|  2.10k|    if (macro->functionLike) {
  ------------------
  |  Branch (1313:9): [True: 250, False: 1.85k]
  ------------------
 1314|       |        // We don't know yet if this will be a successful call of a
 1315|       |        // function-like macro; need to look for a '(', but without trashing
 1316|       |        // the passed in ppToken, until we know we are no longer speculative.
 1317|    250|        TPpToken parenToken;
 1318|    250|        int token = scanToken(&parenToken);
 1319|    250|        if (newLineOkay) {
  ------------------
  |  Branch (1319:13): [True: 250, False: 0]
  ------------------
 1320|    252|            while (token == '\n')
  ------------------
  |  Branch (1320:20): [True: 2, False: 250]
  ------------------
 1321|      2|                token = scanToken(&parenToken);
 1322|    250|        }
 1323|    250|        if (token != '(') {
  ------------------
  |  Branch (1323:13): [True: 10, False: 240]
  ------------------
 1324|       |            // Function-like macro called with object-like syntax: okay, don't expand.
 1325|       |            // (We ate exactly one token that might not be white space; put it back.
 1326|     10|            UngetToken(token, &parenToken);
 1327|     10|            delete in;
 1328|     10|            return MacroExpandNotStarted;
 1329|     10|        }
 1330|    240|        in->args.resize(in->mac->args.size());
 1331|    797|        for (size_t i = 0; i < in->mac->args.size(); i++)
  ------------------
  |  Branch (1331:28): [True: 557, False: 240]
  ------------------
 1332|    557|            in->args[i] = new TokenStream;
 1333|    240|        in->expandedArgs.resize(in->mac->args.size());
 1334|    797|        for (size_t i = 0; i < in->mac->args.size(); i++)
  ------------------
  |  Branch (1334:28): [True: 557, False: 240]
  ------------------
 1335|    557|            in->expandedArgs[i] = nullptr;
 1336|    240|        size_t arg = 0;
 1337|    240|        bool tokenRecorded = false;
 1338|    581|        do {
 1339|    581|            TVector<char> nestStack;
 1340|  19.0k|            while (true) {
  ------------------
  |  Branch (1340:20): [True: 19.0k, Folded]
  ------------------
 1341|  19.0k|                token = scanToken(ppToken);
 1342|  19.0k|                if (token == EndOfInput || token == tMarkerInput::marker) {
  ------------------
  |  Branch (1342:21): [True: 0, False: 19.0k]
  |  Branch (1342:44): [True: 0, False: 19.0k]
  ------------------
 1343|      0|                    parseContext.ppError(loc, "End of input in macro", "macro expansion", "%s", atomStrings.getString(macroAtom));
 1344|      0|                    delete in;
 1345|      0|                    return MacroExpandError;
 1346|      0|                }
 1347|  19.0k|                if (token == '\n') {
  ------------------
  |  Branch (1347:21): [True: 406, False: 18.6k]
  ------------------
 1348|    406|                    if (! newLineOkay) {
  ------------------
  |  Branch (1348:25): [True: 0, False: 406]
  ------------------
 1349|      0|                        parseContext.ppError(loc, "End of line in macro substitution:", "macro expansion", "%s", atomStrings.getString(macroAtom));
 1350|      0|                        delete in;
 1351|      0|                        return MacroExpandError;
 1352|      0|                    }
 1353|    406|                    continue;
 1354|    406|                }
 1355|  18.6k|                if (token == '#') {
  ------------------
  |  Branch (1355:21): [True: 0, False: 18.6k]
  ------------------
 1356|      0|                    parseContext.ppError(ppToken->loc, "unexpected '#'", "macro expansion", "%s", atomStrings.getString(macroAtom));
 1357|      0|                    delete in;
 1358|      0|                    return MacroExpandError;
 1359|      0|                }
 1360|  18.6k|                if (in->mac->args.size() == 0 && token != ')')
  ------------------
  |  Branch (1360:21): [True: 36, False: 18.5k]
  |  Branch (1360:50): [True: 2, False: 34]
  ------------------
 1361|      2|                    break;
 1362|  18.6k|                if (nestStack.size() == 0 && (token == ',' || token == ')'))
  ------------------
  |  Branch (1362:21): [True: 4.07k, False: 14.5k]
  |  Branch (1362:47): [True: 348, False: 3.72k]
  |  Branch (1362:63): [True: 231, False: 3.49k]
  ------------------
 1363|    579|                    break;
 1364|  18.0k|                if (token == '(')
  ------------------
  |  Branch (1364:21): [True: 2.07k, False: 15.9k]
  ------------------
 1365|  2.07k|                    nestStack.push_back(')');
 1366|  15.9k|                else if (token == '{' && parseContext.isReadingHLSL())
  ------------------
  |  Branch (1366:26): [True: 62, False: 15.8k]
  |  Branch (1366:42): [True: 0, False: 62]
  ------------------
 1367|      0|                    nestStack.push_back('}');
 1368|  15.9k|                else if (nestStack.size() > 0 && token == nestStack.back())
  ------------------
  |  Branch (1368:26): [True: 12.9k, False: 3.05k]
  |  Branch (1368:50): [True: 2.07k, False: 10.8k]
  ------------------
 1369|  2.07k|                    nestStack.pop_back();
 1370|       |
 1371|       |                //Macro replacement list is expanded in the last stage.
 1372|  18.0k|                if (atomStrings.getAtom(ppToken->name) == PpAtomLineMacro)
  ------------------
  |  Branch (1372:21): [True: 0, False: 18.0k]
  ------------------
 1373|      0|                    ppToken->ival = parseContext.getCurrentLoc().line;
 1374|       |
 1375|  18.0k|                in->args[arg]->putToken(token, ppToken);
 1376|  18.0k|                tokenRecorded = true;
 1377|  18.0k|            }
 1378|       |            // end of single argument scan
 1379|       |
 1380|    581|            if (token == ')') {
  ------------------
  |  Branch (1380:17): [True: 231, False: 350]
  ------------------
 1381|       |                // closing paren of call
 1382|    231|                if (in->mac->args.size() == 1 && !tokenRecorded)
  ------------------
  |  Branch (1382:21): [True: 30, False: 201]
  |  Branch (1382:50): [True: 6, False: 24]
  ------------------
 1383|      6|                    break;
 1384|    225|                arg++;
 1385|    225|                break;
 1386|    231|            }
 1387|    350|            arg++;
 1388|    350|        } while (arg < in->mac->args.size());
  ------------------
  |  Branch (1388:18): [True: 341, False: 9]
  ------------------
 1389|       |        // end of all arguments scan
 1390|       |
 1391|    240|        if (arg < in->mac->args.size())
  ------------------
  |  Branch (1391:13): [True: 18, False: 222]
  ------------------
 1392|     18|            parseContext.ppError(loc, "Too few args in Macro", "macro expansion", "%s", atomStrings.getString(macroAtom));
 1393|    222|        else if (token != ')') {
  ------------------
  |  Branch (1393:18): [True: 9, False: 213]
  ------------------
 1394|       |            // Error recover code; find end of call, if possible
 1395|      9|            int depth = 0;
 1396|  1.05k|            while (token != EndOfInput && (depth > 0 || token != ')')) {
  ------------------
  |  Branch (1396:20): [True: 1.05k, False: 0]
  |  Branch (1396:44): [True: 495, False: 559]
  |  Branch (1396:57): [True: 550, False: 9]
  ------------------
 1397|  1.04k|                if (token == ')' || token == '}')
  ------------------
  |  Branch (1397:21): [True: 43, False: 1.00k]
  |  Branch (1397:37): [True: 48, False: 954]
  ------------------
 1398|     91|                    depth--;
 1399|  1.04k|                token = scanToken(ppToken);
 1400|  1.04k|                if (token == '(' || token == '{')
  ------------------
  |  Branch (1400:21): [True: 53, False: 992]
  |  Branch (1400:37): [True: 38, False: 954]
  ------------------
 1401|     91|                    depth++;
 1402|  1.04k|            }
 1403|       |
 1404|      9|            if (token == EndOfInput) {
  ------------------
  |  Branch (1404:17): [True: 0, False: 9]
  ------------------
 1405|      0|                parseContext.ppError(loc, "End of input in macro", "macro expansion", "%s", atomStrings.getString(macroAtom));
 1406|      0|                delete in;
 1407|      0|                return MacroExpandError;
 1408|      0|            }
 1409|      9|            parseContext.ppError(loc, "Too many args in macro", "macro expansion", "%s", atomStrings.getString(macroAtom));
 1410|      9|        }
 1411|       |
 1412|       |        // We need both expanded and non-expanded forms of the argument, for whether or
 1413|       |        // not token pasting will be applied later when the argument is consumed next to ##.
 1414|    797|        for (size_t i = 0; i < in->mac->args.size(); i++)
  ------------------
  |  Branch (1414:28): [True: 557, False: 240]
  ------------------
 1415|    557|            in->expandedArgs[i] = PrescanMacroArg(*in->args[i], ppToken, newLineOkay);
 1416|    240|    }
 1417|       |
 1418|  2.09k|    pushInput(in);
 1419|  2.09k|    macro->busy = 1;
 1420|  2.09k|    macro->body.reset();
 1421|       |
 1422|  2.09k|    return MacroExpandStarted;
 1423|  2.10k|}
Pp.cpp:_ZN7glslang12_GLOBAL__N_16op_negEi:
  430|      4|    int op_neg(int a) { return a == INT_MIN ? INT_MIN : -a; }
  ------------------
  |  Branch (430:32): [True: 2, False: 2]
  ------------------
Pp.cpp:_ZN7glslang12_GLOBAL__N_16op_notEi:
  432|    189|    int op_not(int a) { return !a; }
Pp.cpp:_ZN7glslang12_GLOBAL__N_18op_logorEii:
  407|     68|    int op_logor(int a, int b) { return a || b; }
  ------------------
  |  Branch (407:41): [True: 0, False: 68]
  |  Branch (407:46): [True: 0, False: 68]
  ------------------
Pp.cpp:_ZN7glslang12_GLOBAL__N_19op_logandEii:
  408|     73|    int op_logand(int a, int b) { return a && b; }
  ------------------
  |  Branch (408:42): [True: 24, False: 49]
  |  Branch (408:47): [True: 8, False: 16]
  ------------------
Pp.cpp:_ZN7glslang12_GLOBAL__N_15op_orEii:
  409|      2|    int op_or(int a, int b) { return a | b; }
Pp.cpp:_ZN7glslang12_GLOBAL__N_16op_xorEii:
  410|      2|    int op_xor(int a, int b) { return a ^ b; }
Pp.cpp:_ZN7glslang12_GLOBAL__N_15op_eqEii:
  412|     76|    int op_eq(int a, int b) { return a == b; }
Pp.cpp:_ZN7glslang12_GLOBAL__N_15op_geEii:
  414|     12|    int op_ge(int a, int b) { return a >= b; }
Pp.cpp:_ZN7glslang12_GLOBAL__N_16op_subEii:
  425|      8|    int op_sub(int a, int b) { return (int)((unsigned)a - (unsigned)b); }
Pp.cpp:_ZN7glslang12_GLOBAL__N_16op_divEii:
  427|     12|    int op_div(int a, int b) { return a == INT_MIN && b == -1 ? 0 : a / b; }
  ------------------
  |  Branch (427:39): [True: 0, False: 12]
  |  Branch (427:55): [True: 0, False: 0]
  ------------------
Pp.cpp:_ZN7glslang12_GLOBAL__N_16op_modEii:
  428|      2|    int op_mod(int a, int b) { return a == INT_MIN && b == -1 ? 0 : a % b; }
  ------------------
  |  Branch (428:39): [True: 2, False: 0]
  |  Branch (428:55): [True: 2, False: 0]
  ------------------
Pp.cpp:_ZZN7glslang10TPpContext11MacroExpandEPNS_8TPpTokenEbbEN10DepthGuardC2ERi:
 1256|  62.2M|        explicit DepthGuard(int& d_) : d(d_) { ++d; }
Pp.cpp:_ZZN7glslang10TPpContext11MacroExpandEPNS_8TPpTokenEbbEN10DepthGuardD2Ev:
 1257|  62.2M|        ~DepthGuard() { --d; }

_ZN7glslang14TStringAtomMapC2Ev:
  160|  18.7k|{
  161|  18.7k|    badToken.assign("<bad token>");
  162|       |
  163|       |    // Add single character tokens to the atom table:
  164|  18.7k|    const char* s = "~!%^&*()-+=|,.<>/?;:[]{}#\\";
  165|  18.7k|    char t[2];
  166|       |
  167|  18.7k|    t[1] = '\0';
  168|   506k|    while (*s) {
  ------------------
  |  Branch (168:12): [True: 487k, False: 18.7k]
  ------------------
  169|   487k|        t[0] = *s;
  170|   487k|        addAtomFixed(t, s[0]);
  171|   487k|        s++;
  172|   487k|    }
  173|       |
  174|       |    // Add multiple character scanner tokens :
  175|   806k|    for (size_t ii = 0; ii < sizeof(tokens)/sizeof(tokens[0]); ii++)
  ------------------
  |  Branch (175:25): [True: 787k, False: 18.7k]
  ------------------
  176|   787k|        addAtomFixed(tokens[ii].str, tokens[ii].val);
  177|       |
  178|  18.7k|    nextAtom = PpAtomLast;
  179|  18.7k|}

_ZN7glslang10TPpContextC2ERNS_17TParseContextBaseERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7TShader8IncluderE:
   88|  18.7k|    preamble(nullptr), strings(nullptr), previous_token('\n'), parseContext(pc), includer(inclr), inComment(false),
   89|  18.7k|    rootFileName(rootFileName),
   90|  18.7k|    currentSourceFile(rootFileName),
   91|  18.7k|    disableEscapeSequences(false),
   92|  18.7k|    inElseSkip(false)
   93|  18.7k|{
   94|  18.7k|    ifdepth = 0;
   95|  1.25M|    for (elsetracker = 0; elsetracker <= maxIfNesting; elsetracker++)
  ------------------
  |  Branch (95:27): [True: 1.23M, False: 18.7k]
  ------------------
   96|  1.23M|        elseSeen[elsetracker] = false;
   97|  18.7k|    elsetracker = 0;
   98|       |
   99|  18.7k|    strtodStream.imbue(std::locale::classic());
  100|  18.7k|}
_ZN7glslang10TPpContextD2Ev:
  103|  18.7k|{
  104|  18.7k|    delete [] preamble;
  105|       |
  106|       |    // free up the inputStack
  107|  20.1k|    while (! inputStack.empty())
  ------------------
  |  Branch (107:12): [True: 1.42k, False: 18.7k]
  ------------------
  108|  1.42k|        popInput();
  109|  18.7k|}
_ZN7glslang10TPpContext8setInputERNS_13TInputScannerEb:
  112|  18.7k|{
  113|  18.7k|    assert(inputStack.size() == 0);
  114|       |
  115|  18.7k|    pushInput(new tStringInput(this, input));
  116|       |
  117|  18.7k|    errorOnVersion = versionWillBeError;
  118|  18.7k|    versionSeen = false;
  119|  18.7k|}

_ZN7glslang8TPpTokenC2Ev:
   93|   252M|    TPpToken() { clear(); }
_ZN7glslang8TPpToken5clearEv:
   95|   422M|    {
   96|   422M|        space = false;
   97|   422M|        i64val = 0;
   98|   422M|        loc.init();
   99|   422M|        name[0] = 0;
  100|   422M|        fullyExpanded = false;
  101|   422M|    }
_ZNK7glslang8TPpTokeneqERKS0_:
  105|  16.5k|    {
  106|  16.5k|        return space == right.space &&
  ------------------
  |  Branch (106:16): [True: 16.5k, False: 2]
  ------------------
  107|  16.5k|               ival == right.ival && dval == right.dval && i64val == right.i64val &&
  ------------------
  |  Branch (107:16): [True: 16.5k, False: 0]
  |  Branch (107:38): [True: 16.5k, False: 0]
  |  Branch (107:60): [True: 16.5k, False: 0]
  ------------------
  108|  16.5k|               strncmp(name, right.name, MaxTokenLength) == 0;
  ------------------
  |  Branch (108:16): [True: 15.8k, False: 663]
  ------------------
  109|  16.5k|    }
_ZNK7glslang8TPpTokenneERKS0_:
  110|  16.5k|    bool operator!=(const TPpToken& right) const { return ! operator==(right); }
_ZNK7glslang14TStringAtomMap7getAtomEPKc:
  141|  63.6M|    {
  142|  63.6M|        auto it = atomMap.find(s);
  143|  63.6M|        return it == atomMap.end() ? 0 : it->second;
  ------------------
  |  Branch (143:16): [True: 62.9M, False: 737k]
  ------------------
  144|  63.6M|    }
_ZN7glslang14TStringAtomMap10getAddAtomEPKc:
  148|   688k|    {
  149|   688k|        int atom = getAtom(s);
  150|   688k|        if (atom == 0) {
  ------------------
  |  Branch (150:13): [True: 679k, False: 8.77k]
  ------------------
  151|   679k|            atom = nextAtom++;
  152|   679k|            addAtomFixed(s, atom);
  153|   679k|        }
  154|   688k|        return atom;
  155|   688k|    }
_ZNK7glslang14TStringAtomMap9getStringEi:
  158|  78.6M|    const char* getString(int atom) const { return stringMap[atom]->c_str(); }
_ZN7glslang14TStringAtomMap12addAtomFixedEPKci:
  176|  1.95M|    {
  177|  1.95M|        auto it = atomMap.insert(std::pair<TString, int>(s, atom)).first;
  178|  1.95M|        if (stringMap.size() < (size_t)atom + 1)
  ------------------
  |  Branch (178:13): [True: 26.8k, False: 1.92M]
  ------------------
  179|  26.8k|            stringMap.resize(atom + 100, &badToken);
  180|  1.95M|        stringMap[atom] = &it->first;
  181|  1.95M|    }
_ZN7glslang10TPpContext6tInputC2EPS0_:
  208|  22.8k|        tInput(TPpContext* p) : done(false), pp(p) { }
_ZN7glslang10TPpContext6tInputD2Ev:
  209|  22.8k|        virtual ~tInput() { }
_ZN7glslang10TPpContext6tInput11peekPastingEv:
  214|   165M|        virtual bool peekPasting() { return false; }             // true when about to see ##
_ZN7glslang10TPpContext6tInput20endOfReplacementListEv:
  216|     36|        virtual bool endOfReplacementList() { return false; } // true when at the end of a macro replacement list (RHS of #define)
_ZN7glslang10TPpContext6tInput12isMacroInputEv:
  217|    500|        virtual bool isMacroInput() { return false; }
_ZN7glslang10TPpContext6tInput13isStringInputEv:
  218|  65.7k|        virtual bool isStringInput() { return false; }
_ZN7glslang10TPpContext6tInput15notifyActivatedEv:
  221|  22.8k|        virtual void notifyActivated() {}
_ZN7glslang10TPpContext6tInput13notifyDeletedEv:
  223|  22.8k|        virtual void notifyDeleted() {}
_ZN7glslang10TPpContext9pushInputEPNS0_6tInputE:
  232|  22.8k|    {
  233|  22.8k|        inputStack.push_back(in);
  234|  22.8k|        in->notifyActivated();
  235|  22.8k|    }
_ZN7glslang10TPpContext8popInputEv:
  237|  22.8k|    {
  238|  22.8k|        inputStack.back()->notifyDeleted();
  239|  22.8k|        delete inputStack.back();
  240|  22.8k|        inputStack.pop_back();
  241|  22.8k|    }
_ZN7glslang10TPpContext11TokenStream5TokenC2EiRKNS_8TPpTokenE:
  255|   750k|                atom(atom),
  256|   750k|                space(ppToken.space),
  257|   750k|                i64val(ppToken.i64val),
  258|   750k|                name(ppToken.name) { }
_ZN7glslang10TPpContext11TokenStream5Token3getERNS_8TPpTokenE:
  260|  93.3k|            {
  261|  93.3k|                ppToken.clear();
  262|  93.3k|                ppToken.space = space;
  263|  93.3k|                ppToken.i64val = i64val;
  264|  93.3k|                snprintf(ppToken.name, sizeof(ppToken.name), "%s", name.c_str());
  265|  93.3k|                return atom;
  266|  93.3k|            }
_ZNK7glslang10TPpContext11TokenStream5Token6isAtomEi:
  267|  98.9k|            bool isAtom(int a) const { return atom == a; }
_ZNK7glslang10TPpContext11TokenStream5Token7getAtomEv:
  268|     44|            int getAtom() const { return atom; }
_ZNK7glslang10TPpContext11TokenStream5Token9nonSpacedEv:
  269|     44|            bool nonSpaced() const { return !space; }
_ZN7glslang10TPpContext11TokenStreamC2Ev:
  278|  1.36M|        TokenStream() : currentPos(0) { }
_ZN7glslang10TPpContext11TokenStream9peekTokenEi:
  281|   109k|        bool peekToken(int atom) { return !atEnd() && stream[currentPos].isAtom(atom); }
  ------------------
  |  Branch (281:43): [True: 98.9k, False: 10.3k]
  |  Branch (281:55): [True: 80, False: 98.8k]
  ------------------
_ZN7glslang10TPpContext11TokenStream20peekContinuedPastingEi:
  283|     52|        {
  284|       |            // This is basically necessary because, for example, the PP
  285|       |            // tokenizer only accepts valid numeric-literals plus suffixes, so
  286|       |            // separates numeric-literals plus bad suffix into two tokens, which
  287|       |            // should get both pasted together as one token when token pasting.
  288|       |            //
  289|       |            // The following code is a bit more generalized than the above example.
  290|     52|            if (!atEnd() && atom == PpAtomIdentifier && stream[currentPos].nonSpaced()) {
  ------------------
  |  Branch (290:17): [True: 44, False: 8]
  |  Branch (290:29): [True: 44, False: 0]
  |  Branch (290:57): [True: 44, False: 0]
  ------------------
  291|     44|                switch(stream[currentPos].getAtom()) {
  292|      0|                    case PpAtomConstInt:
  ------------------
  |  Branch (292:21): [True: 0, False: 44]
  ------------------
  293|      0|                    case PpAtomConstUint:
  ------------------
  |  Branch (293:21): [True: 0, False: 44]
  ------------------
  294|      0|                    case PpAtomConstInt64:
  ------------------
  |  Branch (294:21): [True: 0, False: 44]
  ------------------
  295|      0|                    case PpAtomConstUint64:
  ------------------
  |  Branch (295:21): [True: 0, False: 44]
  ------------------
  296|      0|                    case PpAtomConstInt16:
  ------------------
  |  Branch (296:21): [True: 0, False: 44]
  ------------------
  297|      0|                    case PpAtomConstUint16:
  ------------------
  |  Branch (297:21): [True: 0, False: 44]
  ------------------
  298|      0|                    case PpAtomConstFloat:
  ------------------
  |  Branch (298:21): [True: 0, False: 44]
  ------------------
  299|      0|                    case PpAtomConstDouble:
  ------------------
  |  Branch (299:21): [True: 0, False: 44]
  ------------------
  300|      0|                    case PpAtomConstFloat16:
  ------------------
  |  Branch (300:21): [True: 0, False: 44]
  ------------------
  301|      0|                    case PpAtomConstFloatE2M1:
  ------------------
  |  Branch (301:21): [True: 0, False: 44]
  ------------------
  302|      0|                    case PpAtomConstFloatE3M2:
  ------------------
  |  Branch (302:21): [True: 0, False: 44]
  ------------------
  303|      0|                    case PpAtomConstFloatE2M3:
  ------------------
  |  Branch (303:21): [True: 0, False: 44]
  ------------------
  304|      0|                    case PpAtomConstFloatUE8M0:
  ------------------
  |  Branch (304:21): [True: 0, False: 44]
  ------------------
  305|      0|                    case PpAtomConstFloatMXINT8:
  ------------------
  |  Branch (305:21): [True: 0, False: 44]
  ------------------
  306|      8|                    case PpAtomConstString:
  ------------------
  |  Branch (306:21): [True: 8, False: 36]
  ------------------
  307|      8|                    case PpAtomIdentifier:
  ------------------
  |  Branch (307:21): [True: 0, False: 44]
  ------------------
  308|      8|                        return true;
  309|     36|                    default:
  ------------------
  |  Branch (309:21): [True: 36, False: 8]
  ------------------
  310|     36|                        break;
  311|     44|                }
  312|     44|            }
  313|       |
  314|     44|            return false;
  315|     52|        }
_ZN7glslang10TPpContext11TokenStream5atEndEv:
  317|   263k|        bool atEnd() { return currentPos >= stream.size(); }
_ZN7glslang10TPpContext11TokenStream5resetEv:
  319|  12.1k|        void reset() { currentPos = 0; }
_ZN7glslang10TPpContext11MacroSymbolC2Ev:
  331|  1.36M|        MacroSymbol() : functionLike(0), busy(0), undef(0) { }
_ZN7glslang10TPpContext14lookupMacroDefEi:
  342|   697k|    {
  343|   697k|        auto existingMacroIt = macroDefs.find(atom);
  344|   697k|        return (existingMacroIt == macroDefs.end()) ? nullptr : &(existingMacroIt->second);
  ------------------
  |  Branch (344:16): [True: 689k, False: 8.07k]
  ------------------
  345|   697k|    }
_ZN7glslang10TPpContext11addMacroDefEiRNS0_11MacroSymbolE:
  346|   679k|    void addMacroDef(int atom, MacroSymbol& macroDef) { macroDefs[atom] = macroDef; }
_ZN7glslang10TPpContext9scanTokenEPNS_8TPpTokenE:
  369|   169M|    {
  370|   169M|        int token = EndOfInput;
  371|       |
  372|   169M|        while (! inputStack.empty()) {
  ------------------
  |  Branch (372:16): [True: 169M, False: 17.3k]
  ------------------
  373|   169M|            token = inputStack.back()->scan(ppToken);
  374|   169M|            if (token != EndOfInput || inputStack.empty())
  ------------------
  |  Branch (374:17): [True: 169M, False: 21.4k]
  |  Branch (374:40): [True: 0, False: 21.4k]
  ------------------
  375|   169M|                break;
  376|  21.4k|            popInput();
  377|  21.4k|        }
  378|   169M|        if (!inputStack.empty() && inputStack.back()->isStringInput() && !inElseSkip) {
  ------------------
  |  Branch (378:13): [True: 169M, False: 17.3k]
  |  Branch (378:36): [True: 169M, False: 65.7k]
  |  Branch (378:74): [True: 169M, False: 536k]
  ------------------
  379|   169M|            if (token == '\n') {
  ------------------
  |  Branch (379:17): [True: 19.7M, False: 149M]
  ------------------
  380|  19.7M|                lastLineTokens.clear();
  381|  19.7M|                lastLineTokenLocs.clear();
  382|   149M|            } else {
  383|   149M|                lastLineTokens.push_back(token);
  384|   149M|                lastLineTokenLocs.push_back(ppToken->loc);
  385|   149M|            }
  386|   169M|        }
  387|   169M|        return token;
  388|   169M|    }
_ZN7glslang10TPpContext7getCharEv:
  389|   675k|    int  getChar() { return inputStack.back()->getch(); }
_ZN7glslang10TPpContext9ungetCharEv:
  390|   177k|    void ungetChar() { inputStack.back()->ungetch(); }
_ZN7glslang10TPpContext11peekPastingEv:
  391|   165M|    bool peekPasting() { return !inputStack.empty() && inputStack.back()->peekPasting(); }
  ------------------
  |  Branch (391:33): [True: 165M, False: 17.2k]
  |  Branch (391:56): [True: 44, False: 165M]
  ------------------
_ZN7glslang10TPpContext20peekContinuedPastingEi:
  393|     52|    {
  394|     52|        return !inputStack.empty() && inputStack.back()->peekContinuedPasting(a);
  ------------------
  |  Branch (394:16): [True: 52, False: 0]
  |  Branch (394:39): [True: 8, False: 44]
  ------------------
  395|     52|    }
_ZN7glslang10TPpContext20endOfReplacementListEv:
  396|     44|    bool endOfReplacementList() { return inputStack.empty() || inputStack.back()->endOfReplacementList(); }
  ------------------
  |  Branch (396:42): [True: 0, False: 44]
  |  Branch (396:64): [True: 0, False: 44]
  ------------------
_ZN7glslang10TPpContext12isMacroInputEv:
  397|    500|    bool isMacroInput() { return inputStack.size() > 0 && inputStack.back()->isMacroInput(); }
  ------------------
  |  Branch (397:34): [True: 500, False: 0]
  |  Branch (397:59): [True: 0, False: 500]
  ------------------
_ZN7glslang10TPpContext11tMacroInputC2EPS0_:
  407|  2.10k|        tMacroInput(TPpContext* pp) : tInput(pp), prepaste(false), postpaste(false) { }
_ZN7glslang10TPpContext11tMacroInputD2Ev:
  409|  2.10k|        {
  410|  2.66k|            for (size_t i = 0; i < args.size(); ++i)
  ------------------
  |  Branch (410:32): [True: 557, False: 2.10k]
  ------------------
  411|    557|                delete args[i];
  412|  2.66k|            for (size_t i = 0; i < expandedArgs.size(); ++i)
  ------------------
  |  Branch (412:32): [True: 557, False: 2.10k]
  ------------------
  413|    557|                delete expandedArgs[i];
  414|  2.10k|        }
_ZN7glslang10TPpContext11tMacroInput11peekPastingEv:
  419|  13.4k|        bool peekPasting() override { return prepaste; }
_ZN7glslang10TPpContext11tMacroInput20peekContinuedPastingEi:
  420|     16|        bool peekContinuedPasting(int a) override { return mac->body.peekContinuedPasting(a); }
_ZN7glslang10TPpContext11tMacroInput20endOfReplacementListEv:
  421|      8|        bool endOfReplacementList() override { return mac->body.atEnd(); }
_ZN7glslang10TPpContext12tMarkerInputC2EPS0_:
  435|    557|        tMarkerInput(TPpContext* pp) : tInput(pp) { }
_ZN7glslang10TPpContext12tMarkerInput4scanEPNS_8TPpTokenE:
  437|  1.11k|        {
  438|  1.11k|            if (done)
  ------------------
  |  Branch (438:17): [True: 554, False: 557]
  ------------------
  439|    554|                return EndOfInput;
  440|    557|            done = true;
  441|       |
  442|    557|            return marker;
  443|  1.11k|        }
_ZN7glslang10TPpContext10tZeroInputC2EPS0_:
  460|    248|        tZeroInput(TPpContext* pp) : tInput(pp) { }
_ZN7glslang10TPpContext11tTokenInputC2EPS0_PNS0_11TokenStreamEbb:
  509|  1.18k|            tInput(pp),
  510|  1.18k|            tokens(t),
  511|  1.18k|            lastTokenPastes(prepasting),
  512|  1.18k|            preExpanded(expanded) { }
_ZN7glslang10TPpContext11tTokenInput4scanEPNS_8TPpTokenE:
  513|  51.2k|        virtual int scan(TPpToken *ppToken) override {
  514|  51.2k|            int token = tokens->getToken(pp->parseContext, ppToken);
  515|  51.2k|            ppToken->fullyExpanded = preExpanded;
  516|  51.2k|            if (tokens->atEnd() && token == PpAtomIdentifier) {
  ------------------
  |  Branch (516:17): [True: 2.29k, False: 49.0k]
  |  Branch (516:36): [True: 626, False: 1.67k]
  ------------------
  517|    626|                int macroAtom = pp->atomStrings.getAtom(ppToken->name);
  518|    626|                MacroSymbol* macro = macroAtom == 0 ? nullptr : pp->lookupMacroDef(macroAtom);
  ------------------
  |  Branch (518:38): [True: 534, False: 92]
  ------------------
  519|    626|                if (macro && macro->functionLike)
  ------------------
  |  Branch (519:21): [True: 6, False: 620]
  |  Branch (519:30): [True: 6, False: 0]
  ------------------
  520|      6|                    ppToken->fullyExpanded = false;
  521|    626|            }
  522|  51.2k|            return token;
  523|  51.2k|        }
_ZN7glslang10TPpContext11tTokenInput11peekPastingEv:
  526|  37.7k|        virtual bool peekPasting() override { return tokens->peekTokenizedPasting(lastTokenPastes); }
_ZN7glslang10TPpContext11tTokenInput20peekContinuedPastingEi:
  527|     36|        bool peekContinuedPasting(int a) override { return tokens->peekContinuedPasting(a); }
_ZN7glslang10TPpContext16tUngotTokenInputC2EPS0_iPNS_8TPpTokenE:
  536|     10|        tUngotTokenInput(TPpContext* pp, int t, TPpToken* p) : tInput(pp), token(t), lval(*p) { }
_ZN7glslang10TPpContext12tStringInputC2EPS0_RNS_13TInputScannerE:
  550|  18.7k|        tStringInput(TPpContext* pp, TInputScanner& i) : tInput(pp), input(&i) { }
_ZN7glslang10TPpContext12tStringInput13isStringInputEv:
  552|   169M|        bool isStringInput() override { return true; }
_ZN7glslang10TPpContext12tStringInput5getchEv:
  557|   804M|        {
  558|   804M|            int ch = input->get();
  559|       |
  560|   804M|            if (ch == '\\') {
  ------------------
  |  Branch (560:17): [True: 1.94M, False: 802M]
  ------------------
  561|       |                // Move past escaped newlines, as many as sequentially exist
  562|  1.94M|                do {
  563|  1.94M|                    if (input->peek() == '\r' || input->peek() == '\n') {
  ------------------
  |  Branch (563:25): [True: 2.34k, False: 1.94M]
  |  Branch (563:50): [True: 5.60k, False: 1.93M]
  ------------------
  564|  7.95k|                        bool allowed = pp->parseContext.lineContinuationCheck(input->getSourceLoc(), pp->inComment);
  565|  7.95k|                        if (! allowed && pp->inComment)
  ------------------
  |  Branch (565:29): [True: 7.88k, False: 62]
  |  Branch (565:42): [True: 24, False: 7.86k]
  ------------------
  566|     24|                            return '\\';
  567|       |
  568|       |                        // escape one newline now
  569|  7.92k|                        ch = input->get();
  570|  7.92k|                        int nextch = input->get();
  571|  7.92k|                        if (ch == '\r' && nextch == '\n')
  ------------------
  |  Branch (571:29): [True: 2.34k, False: 5.58k]
  |  Branch (571:43): [True: 2.04k, False: 294]
  ------------------
  572|  2.04k|                            ch = input->get();
  573|  5.88k|                        else
  574|  5.88k|                            ch = nextch;
  575|  7.92k|                    } else
  576|  1.93M|                        return '\\';
  577|  1.94M|                } while (ch == '\\');
  ------------------
  |  Branch (577:26): [True: 98, False: 7.82k]
  ------------------
  578|  1.94M|            }
  579|       |
  580|       |            // handle any non-escaped newline
  581|   802M|            if (ch == '\r' || ch == '\n') {
  ------------------
  |  Branch (581:17): [True: 5.95M, False: 796M]
  |  Branch (581:31): [True: 16.1M, False: 780M]
  ------------------
  582|  22.0M|                if (ch == '\r' && input->peek() == '\n')
  ------------------
  |  Branch (582:21): [True: 5.95M, False: 16.1M]
  |  Branch (582:35): [True: 1.07M, False: 4.88M]
  ------------------
  583|  1.07M|                    input->get();
  584|  22.0M|                return '\n';
  585|  22.0M|            }
  586|       |
  587|   780M|            return ch;
  588|   802M|        }
_ZN7glslang10TPpContext12tStringInput7ungetchEv:
  595|  72.9M|        {
  596|  72.9M|            input->unget();
  597|       |
  598|  72.9M|            do {
  599|  72.9M|                int ch = input->peek();
  600|  72.9M|                if (ch == '\r' || ch == '\n') {
  ------------------
  |  Branch (600:21): [True: 33.7k, False: 72.9M]
  |  Branch (600:35): [True: 2.28M, False: 70.6M]
  ------------------
  601|  2.32M|                    if (ch == '\n') {
  ------------------
  |  Branch (601:25): [True: 2.28M, False: 33.7k]
  ------------------
  602|       |                        // correct for two-character newline
  603|  2.28M|                        input->unget();
  604|  2.28M|                        if (input->peek() != '\r')
  ------------------
  |  Branch (604:29): [True: 2.26M, False: 24.8k]
  ------------------
  605|  2.26M|                            input->get();
  606|  2.28M|                    }
  607|       |                    // now in front of a complete newline, move past an escape character
  608|  2.32M|                    input->unget();
  609|  2.32M|                    if (input->peek() == '\\')
  ------------------
  |  Branch (609:25): [True: 0, False: 2.32M]
  ------------------
  610|      0|                        input->unget();
  611|  2.32M|                    else {
  612|  2.32M|                        input->get();
  613|  2.32M|                        break;
  614|  2.32M|                    }
  615|  2.32M|                } else
  616|  70.6M|                    break;
  617|  72.9M|            } while (true);
  ------------------
  |  Branch (617:22): [True: 0, Folded]
  ------------------
  618|  72.9M|        }

_ZN7glslang10TPpContext11lFloatConstEiiPNS_8TPpTokenE:
  113|   136k|{
  114|   136k|    const auto saveName = [&](int ch) {
  115|   136k|        if (len <= MaxTokenLength)
  116|   136k|            ppToken->name[len++] = static_cast<char>(ch);
  117|   136k|    };
  118|       |
  119|       |    // find the range of non-zero digits before the decimal point
  120|   136k|    int startNonZero = 0;
  121|   214k|    while (startNonZero < len && ppToken->name[startNonZero] == '0')
  ------------------
  |  Branch (121:12): [True: 149k, False: 65.2k]
  |  Branch (121:34): [True: 77.5k, False: 71.4k]
  ------------------
  122|  77.5k|        ++startNonZero;
  123|   136k|    int endNonZero = len;
  124|   149k|    while (endNonZero > startNonZero && ppToken->name[endNonZero-1] == '0')
  ------------------
  |  Branch (124:12): [True: 84.4k, False: 65.2k]
  |  Branch (124:41): [True: 12.9k, False: 71.4k]
  ------------------
  125|  12.9k|        --endNonZero;
  126|   136k|    int numWholeNumberDigits = endNonZero - startNonZero;
  127|       |
  128|       |    // accumulate the range's value
  129|   136k|    bool fastPath = numWholeNumberDigits <= 15;  // when the number gets too complex, set to false
  130|   136k|    unsigned long long wholeNumber = 0;
  131|   136k|    if (fastPath) {
  ------------------
  |  Branch (131:9): [True: 131k, False: 5.37k]
  ------------------
  132|   267k|        for (int i = startNonZero; i < endNonZero; ++i)
  ------------------
  |  Branch (132:36): [True: 136k, False: 131k]
  ------------------
  133|   136k|            wholeNumber = wholeNumber * 10 + (ppToken->name[i] - '0');
  134|   131k|    }
  135|   136k|    int decimalShift = len - endNonZero;
  136|       |
  137|       |    // Decimal point:
  138|   136k|    bool hasDecimalOrExponent = false;
  139|   136k|    if (ch == '.') {
  ------------------
  |  Branch (139:9): [True: 102k, False: 34.5k]
  ------------------
  140|   102k|        hasDecimalOrExponent = true;
  141|   102k|        saveName(ch);
  142|   102k|        ch = getChar();
  143|   102k|        int firstDecimal = len;
  144|       |
  145|   102k|#ifdef ENABLE_HLSL
  146|       |        // 1.#INF or -1.#INF
  147|   102k|        if (ch == '#' && (ifdepth > 0 || parseContext.intermediate.getSource() == EShSourceHlsl)) {
  ------------------
  |  Branch (147:13): [True: 0, False: 102k]
  |  Branch (147:27): [True: 0, False: 0]
  |  Branch (147:42): [True: 0, False: 0]
  ------------------
  148|      0|            if ((len <  2) ||
  ------------------
  |  Branch (148:17): [True: 0, False: 0]
  ------------------
  149|      0|                (len == 2 && ppToken->name[0] != '1') ||
  ------------------
  |  Branch (149:18): [True: 0, False: 0]
  |  Branch (149:30): [True: 0, False: 0]
  ------------------
  150|      0|                (len == 3 && ppToken->name[1] != '1' && !(ppToken->name[0] == '-' || ppToken->name[0] == '+')) ||
  ------------------
  |  Branch (150:18): [True: 0, False: 0]
  |  Branch (150:30): [True: 0, False: 0]
  |  Branch (150:59): [True: 0, False: 0]
  |  Branch (150:86): [True: 0, False: 0]
  ------------------
  151|      0|                (len >  3))
  ------------------
  |  Branch (151:17): [True: 0, False: 0]
  ------------------
  152|      0|                parseContext.ppError(ppToken->loc, "unexpected use of", "#", "");
  153|      0|            else {
  154|       |                // we have 1.# or -1.# or +1.#, check for 'INF'
  155|      0|                if ((ch = getChar()) != 'I' ||
  ------------------
  |  Branch (155:21): [True: 0, False: 0]
  ------------------
  156|      0|                    (ch = getChar()) != 'N' ||
  ------------------
  |  Branch (156:21): [True: 0, False: 0]
  ------------------
  157|      0|                    (ch = getChar()) != 'F')
  ------------------
  |  Branch (157:21): [True: 0, False: 0]
  ------------------
  158|      0|                    parseContext.ppError(ppToken->loc, "expected 'INF'", "#", "");
  159|      0|                else {
  160|       |                    // we have [+-].#INF, and we are targeting IEEE 754, so wrap it up:
  161|      0|                    saveName('I');
  162|      0|                    saveName('N');
  163|      0|                    saveName('F');
  164|      0|                    ppToken->name[len] = '\0';
  165|      0|                    if (ppToken->name[0] == '-')
  ------------------
  |  Branch (165:25): [True: 0, False: 0]
  ------------------
  166|      0|                        ppToken->i64val = 0xfff0000000000000; // -Infinity
  167|      0|                    else
  168|      0|                        ppToken->i64val = 0x7ff0000000000000; // +Infinity
  169|      0|                    return PpAtomConstFloat;
  170|      0|                }
  171|      0|            }
  172|      0|        }
  173|   102k|#endif
  174|       |
  175|       |        // Consume leading-zero digits after the decimal point
  176|   237k|        while (ch == '0') {
  ------------------
  |  Branch (176:16): [True: 135k, False: 102k]
  ------------------
  177|   135k|            saveName(ch);
  178|   135k|            ch = getChar();
  179|   135k|        }
  180|   102k|        int startNonZeroDecimal = len;
  181|   102k|        int endNonZeroDecimal = len;
  182|       |
  183|       |        // Consume remaining digits, up to the exponent
  184|   393k|        while (ch >= '0' && ch <= '9') {
  ------------------
  |  Branch (184:16): [True: 311k, False: 82.6k]
  |  Branch (184:29): [True: 291k, False: 19.4k]
  ------------------
  185|   291k|            saveName(ch);
  186|   291k|            if (ch != '0')
  ------------------
  |  Branch (186:17): [True: 232k, False: 59.5k]
  ------------------
  187|   232k|                endNonZeroDecimal = len;
  188|   291k|            ch = getChar();
  189|   291k|        }
  190|       |
  191|       |        // Compute accumulation up to the last non-zero digit
  192|   102k|        if (endNonZeroDecimal > startNonZeroDecimal) {
  ------------------
  |  Branch (192:13): [True: 48.2k, False: 53.8k]
  ------------------
  193|  48.2k|            numWholeNumberDigits += endNonZeroDecimal - endNonZero - 1; // don't include the "."
  194|  48.2k|            if (numWholeNumberDigits > 15)
  ------------------
  |  Branch (194:17): [True: 3.56k, False: 44.7k]
  ------------------
  195|  3.56k|                fastPath = false;
  196|  48.2k|            if (fastPath) {
  ------------------
  |  Branch (196:17): [True: 44.7k, False: 3.56k]
  ------------------
  197|   241k|                for (int i = endNonZero; i < endNonZeroDecimal; ++i) {
  ------------------
  |  Branch (197:42): [True: 196k, False: 44.7k]
  ------------------
  198|   196k|                    if (ppToken->name[i] != '.')
  ------------------
  |  Branch (198:25): [True: 151k, False: 44.7k]
  ------------------
  199|   151k|                        wholeNumber = wholeNumber * 10 + (ppToken->name[i] - '0');
  200|   196k|                }
  201|  44.7k|            }
  202|  48.2k|            decimalShift = firstDecimal - endNonZeroDecimal;
  203|  48.2k|        }
  204|   102k|    }
  205|       |
  206|       |    // Exponent:
  207|   136k|    bool negativeExponent = false;
  208|   136k|    double exponentValue = 0.0;
  209|   136k|    int exponent = 0;
  210|   136k|    {
  211|   136k|        if (ch == 'e' || ch == 'E') {
  ------------------
  |  Branch (211:13): [True: 4.02k, False: 132k]
  |  Branch (211:26): [True: 13.2k, False: 119k]
  ------------------
  212|  17.2k|            hasDecimalOrExponent = true;
  213|  17.2k|            saveName(ch);
  214|  17.2k|            ch = getChar();
  215|  17.2k|            if (ch == '+' || ch == '-') {
  ------------------
  |  Branch (215:17): [True: 242, False: 17.0k]
  |  Branch (215:30): [True: 2.81k, False: 14.2k]
  ------------------
  216|  3.06k|                negativeExponent = ch == '-';
  217|  3.06k|                saveName(ch);
  218|  3.06k|                ch = getChar();
  219|  3.06k|            }
  220|  17.2k|            if (ch >= '0' && ch <= '9') {
  ------------------
  |  Branch (220:17): [True: 16.1k, False: 1.13k]
  |  Branch (220:30): [True: 14.3k, False: 1.80k]
  ------------------
  221|  83.5k|                while (ch >= '0' && ch <= '9') {
  ------------------
  |  Branch (221:24): [True: 79.6k, False: 3.89k]
  |  Branch (221:37): [True: 69.2k, False: 10.4k]
  ------------------
  222|  69.2k|                    if (exponent < 500) {
  ------------------
  |  Branch (222:25): [True: 38.2k, False: 30.9k]
  ------------------
  223|  38.2k|                        exponent = exponent * 10 + (ch - '0');
  224|  38.2k|                    }
  225|  69.2k|                    saveName(ch);
  226|  69.2k|                    ch = getChar();
  227|  69.2k|                }
  228|  14.3k|            } else {
  229|  2.94k|                parseContext.ppError(ppToken->loc, "bad character in float exponent", "", "");
  230|  2.94k|            }
  231|  17.2k|        }
  232|       |
  233|       |        // Compensate for location of decimal
  234|   136k|        if (negativeExponent)
  ------------------
  |  Branch (234:13): [True: 2.81k, False: 133k]
  ------------------
  235|  2.81k|            exponent -= decimalShift;
  236|   133k|        else {
  237|   133k|            exponent += decimalShift;
  238|   133k|            if (exponent < 0) {
  ------------------
  |  Branch (238:17): [True: 45.7k, False: 88.1k]
  ------------------
  239|  45.7k|                negativeExponent = true;
  240|  45.7k|                exponent = -exponent;
  241|  45.7k|            }
  242|   133k|        }
  243|   136k|        if (exponent > 22)
  ------------------
  |  Branch (243:13): [True: 6.89k, False: 129k]
  ------------------
  244|  6.89k|            fastPath = false;
  245|       |
  246|   136k|        if (fastPath) {
  ------------------
  |  Branch (246:13): [True: 125k, False: 11.6k]
  ------------------
  247|       |            // Compute the floating-point value of the exponent
  248|   125k|            exponentValue = 1.0;
  249|   125k|            if (exponent > 0) {
  ------------------
  |  Branch (249:17): [True: 52.6k, False: 72.3k]
  ------------------
  250|  52.6k|                double expFactor = 10;
  251|   172k|                while (exponent > 0) {
  ------------------
  |  Branch (251:24): [True: 119k, False: 52.6k]
  ------------------
  252|   119k|                    if (exponent & 0x1)
  ------------------
  |  Branch (252:25): [True: 81.9k, False: 37.7k]
  ------------------
  253|  81.9k|                        exponentValue *= expFactor;
  254|   119k|                    expFactor *= expFactor;
  255|   119k|                    exponent >>= 1;
  256|   119k|                }
  257|  52.6k|            }
  258|   125k|        }
  259|   136k|    }
  260|       |
  261|       |    // Suffix:
  262|   136k|    bool isDouble = false;
  263|   136k|    bool isFloat16 = false;
  264|   136k|    bool isFE2M1 = false;
  265|   136k|    bool isFE3M2 = false;
  266|   136k|    bool isFE2M3 = false;
  267|   136k|    bool isFUE8M0 = false;
  268|   136k|    bool isFMXINT8 = false;
  269|   136k|    if (ch == 'l' || ch == 'L') {
  ------------------
  |  Branch (269:9): [True: 246, False: 136k]
  |  Branch (269:22): [True: 260, False: 136k]
  ------------------
  270|    506|        if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl)
  ------------------
  |  Branch (270:13): [True: 416, False: 90]
  |  Branch (270:29): [True: 416, False: 0]
  ------------------
  271|    416|            parseContext.doubleCheck(ppToken->loc, "double floating-point suffix");
  272|    506|        if (ifdepth == 0 && !hasDecimalOrExponent)
  ------------------
  |  Branch (272:13): [True: 416, False: 90]
  |  Branch (272:29): [True: 0, False: 416]
  ------------------
  273|      0|            parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", "");
  274|    506|        if (parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (274:13): [True: 506, False: 0]
  ------------------
  275|    506|            int ch2 = getChar();
  276|    506|            if (ch2 != 'f' && ch2 != 'F') {
  ------------------
  |  Branch (276:17): [True: 361, False: 145]
  |  Branch (276:31): [True: 239, False: 122]
  ------------------
  277|    239|                ungetChar();
  278|    239|                ungetChar();
  279|    267|            } else {
  280|    267|                saveName(ch);
  281|    267|                saveName(ch2);
  282|    267|                isDouble = true;
  283|    267|            }
  284|    506|        } else if (parseContext.intermediate.getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (284:20): [True: 0, False: 0]
  ------------------
  285|      0|            saveName(ch);
  286|      0|            isDouble = true;
  287|      0|        }
  288|   136k|    } else if (ch == 'h' || ch == 'H') {
  ------------------
  |  Branch (288:16): [True: 2.72k, False: 133k]
  |  Branch (288:29): [True: 8.19k, False: 125k]
  ------------------
  289|  10.9k|        if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl)
  ------------------
  |  Branch (289:13): [True: 7.86k, False: 3.06k]
  |  Branch (289:29): [True: 7.86k, False: 0]
  ------------------
  290|  7.86k|            parseContext.float16Check(ppToken->loc, "half floating-point suffix");
  291|  10.9k|        if (ifdepth == 0 && !hasDecimalOrExponent)
  ------------------
  |  Branch (291:13): [True: 7.86k, False: 3.06k]
  |  Branch (291:29): [True: 5.03k, False: 2.83k]
  ------------------
  292|  5.03k|            parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", "");
  293|  10.9k|        if (parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (293:13): [True: 10.9k, False: 0]
  ------------------
  294|  10.9k|            int ch2 = getChar();
  295|  10.9k|            if (ch2 != 'f' && ch2 != 'F') {
  ------------------
  |  Branch (295:17): [True: 10.2k, False: 705]
  |  Branch (295:31): [True: 10.1k, False: 116]
  ------------------
  296|  10.1k|                ungetChar();
  297|  10.1k|                ungetChar();
  298|  10.1k|            } else {
  299|    821|                saveName(ch);
  300|    821|                saveName(ch2);
  301|    821|                isFloat16 = true;
  302|    821|            }
  303|  10.9k|        } else if (parseContext.intermediate.getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (303:20): [True: 0, False: 0]
  ------------------
  304|      0|            saveName(ch);
  305|      0|            isFloat16 = true;
  306|      0|        }
  307|  10.9k|    } else
  308|   125k|    if (ch == 'f' || ch == 'F') {
  ------------------
  |  Branch (308:9): [True: 9.08k, False: 116k]
  |  Branch (308:22): [True: 4.48k, False: 111k]
  ------------------
  309|  13.5k|        if (ifdepth == 0)
  ------------------
  |  Branch (309:13): [True: 13.0k, False: 500]
  ------------------
  310|  13.0k|            parseContext.profileRequires(ppToken->loc,  EEsProfile, 300, nullptr, "floating-point suffix");
  311|  13.5k|        if (ifdepth == 0 && !parseContext.relaxedErrors())
  ------------------
  |  Branch (311:13): [True: 13.0k, False: 500]
  |  Branch (311:29): [True: 13.0k, False: 0]
  ------------------
  312|  13.0k|            parseContext.profileRequires(ppToken->loc, ~EEsProfile, 120, nullptr, "floating-point suffix");
  313|  13.5k|        if (ifdepth == 0 && !hasDecimalOrExponent)
  ------------------
  |  Branch (313:13): [True: 13.0k, False: 500]
  |  Branch (313:29): [True: 11.3k, False: 1.73k]
  ------------------
  314|  11.3k|            parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", "");
  315|  13.5k|        saveName(ch);
  316|       |
  317|  13.5k|        auto const &try_str = [&](const char *str, size_t numChar) {
  318|  13.5k|            size_t counter = 0;
  319|  13.5k|            for (size_t i = 0; i < numChar; ++i) {
  320|  13.5k|                if (getChar() != str[i]) {
  321|  13.5k|                    break;
  322|  13.5k|                }
  323|  13.5k|                counter++;
  324|  13.5k|            }
  325|  13.5k|            if (counter == numChar) {
  326|  13.5k|                for (size_t i = 0; i < numChar; ++i) {
  327|  13.5k|                    saveName(str[i]);
  328|  13.5k|                }
  329|  13.5k|                return true;
  330|  13.5k|            } else {
  331|       |                // called getChar one more than counter times
  332|  13.5k|                counter++;
  333|  13.5k|                while (counter) {
  334|  13.5k|                    ungetChar();
  335|  13.5k|                    counter--;
  336|  13.5k|                }
  337|  13.5k|                return false;
  338|  13.5k|            }
  339|  13.5k|        };
  340|       |
  341|  13.5k|        if (ch == 'f') {
  ------------------
  |  Branch (341:13): [True: 9.08k, False: 4.48k]
  ------------------
  342|  9.08k|            if (try_str("e2m1", 4)) {
  ------------------
  |  Branch (342:17): [True: 0, False: 9.08k]
  ------------------
  343|      0|                isFE2M1 = true;
  344|  9.08k|            } else if (try_str("e3m2", 4)) {
  ------------------
  |  Branch (344:24): [True: 0, False: 9.08k]
  ------------------
  345|      0|                isFE3M2 = true;
  346|  9.08k|            } else if (try_str("e2m3", 4)) {
  ------------------
  |  Branch (346:24): [True: 0, False: 9.08k]
  ------------------
  347|      0|                isFE2M3 = true;
  348|  9.08k|            } else if (try_str("ue8m0", 5)) {
  ------------------
  |  Branch (348:24): [True: 0, False: 9.08k]
  ------------------
  349|      0|                isFUE8M0 = true;
  350|  9.08k|            } else if (try_str("mxint8", 6)) {
  ------------------
  |  Branch (350:24): [True: 0, False: 9.08k]
  ------------------
  351|      0|                isFMXINT8 = true;
  352|      0|            }
  353|  9.08k|        }
  354|  13.5k|    } else
  355|   111k|        ungetChar();
  356|       |
  357|       |    // Patch up the name and length for overflow
  358|       |
  359|   136k|    if (len > MaxTokenLength) {
  ------------------
  |  Branch (359:9): [True: 58, False: 136k]
  ------------------
  360|     58|        len = MaxTokenLength;
  361|     58|        parseContext.ppError(ppToken->loc, "float literal too long", "", "");
  362|     58|    }
  363|   136k|    ppToken->name[len] = '\0';
  364|       |
  365|       |    // Compute the numerical value
  366|   136k|    if (fastPath) {
  ------------------
  |  Branch (366:9): [True: 125k, False: 11.6k]
  ------------------
  367|       |        // compute the floating-point value of the exponent
  368|   125k|        if (exponentValue == 0.0)
  ------------------
  |  Branch (368:13): [True: 0, False: 125k]
  ------------------
  369|      0|            ppToken->dval = (double)wholeNumber;
  370|   125k|        else if (negativeExponent)
  ------------------
  |  Branch (370:18): [True: 42.5k, False: 82.4k]
  ------------------
  371|  42.5k|            ppToken->dval = (double)wholeNumber / exponentValue;
  372|  82.4k|        else
  373|  82.4k|            ppToken->dval = (double)wholeNumber * exponentValue;
  374|   125k|    } else {
  375|       |        // slow path
  376|  11.6k|        ppToken->dval = 0.0;
  377|       |
  378|       |        // remove suffix
  379|  11.6k|        TString numstr(ppToken->name);
  380|  11.6k|        if (numstr.back() == 'f' || numstr.back() == 'F')
  ------------------
  |  Branch (380:13): [True: 662, False: 11.0k]
  |  Branch (380:37): [True: 685, False: 10.3k]
  ------------------
  381|  1.34k|            numstr.pop_back();
  382|  11.6k|        if (numstr.back() == 'h' || numstr.back() == 'H')
  ------------------
  |  Branch (382:13): [True: 0, False: 11.6k]
  |  Branch (382:37): [True: 0, False: 11.6k]
  ------------------
  383|      0|            numstr.pop_back();
  384|  11.6k|        if (numstr.back() == 'l' || numstr.back() == 'L')
  ------------------
  |  Branch (384:13): [True: 0, False: 11.6k]
  |  Branch (384:37): [True: 0, False: 11.6k]
  ------------------
  385|      0|            numstr.pop_back();
  386|       |
  387|       |        // use platform library
  388|  11.6k|        strtodStream.clear();
  389|  11.6k|        strtodStream.str(numstr.c_str());
  390|  11.6k|        strtodStream >> ppToken->dval;
  391|  11.6k|        if (strtodStream.fail()) {
  ------------------
  |  Branch (391:13): [True: 3.16k, False: 8.50k]
  ------------------
  392|       |            // Assume failure combined with a large exponent was overflow, in
  393|       |            // an attempt to set INF.
  394|  3.16k|            if (!negativeExponent && exponent + numWholeNumberDigits > 300)
  ------------------
  |  Branch (394:17): [True: 890, False: 2.27k]
  |  Branch (394:38): [True: 850, False: 40]
  ------------------
  395|    850|                ppToken->i64val = 0x7ff0000000000000; // +Infinity
  396|       |            // Assume failure combined with a small exponent was overflow.
  397|  3.16k|            if (negativeExponent && exponent + numWholeNumberDigits > 300)
  ------------------
  |  Branch (397:17): [True: 2.27k, False: 890]
  |  Branch (397:37): [True: 2.25k, False: 18]
  ------------------
  398|  2.25k|                ppToken->dval = 0.0;
  399|       |            // Unknown reason for failure. Theory is that either
  400|       |            //  - the 0.0 is still there, or
  401|       |            //  - something reasonable was written that is better than 0.0
  402|  3.16k|        }
  403|  11.6k|    }
  404|       |
  405|       |    // Return the right token type
  406|   136k|    if (isDouble)
  ------------------
  |  Branch (406:9): [True: 267, False: 136k]
  ------------------
  407|    267|        return PpAtomConstDouble;
  408|   136k|    else if (isFloat16)
  ------------------
  |  Branch (408:14): [True: 821, False: 135k]
  ------------------
  409|    821|        return PpAtomConstFloat16;
  410|   135k|    else if (isFE2M1)
  ------------------
  |  Branch (410:14): [True: 0, False: 135k]
  ------------------
  411|      0|        return PpAtomConstFloatE2M1;
  412|   135k|    else if (isFE3M2)
  ------------------
  |  Branch (412:14): [True: 0, False: 135k]
  ------------------
  413|      0|        return PpAtomConstFloatE3M2;
  414|   135k|    else if (isFE2M3)
  ------------------
  |  Branch (414:14): [True: 0, False: 135k]
  ------------------
  415|      0|        return PpAtomConstFloatE2M3;
  416|   135k|    else if (isFUE8M0)
  ------------------
  |  Branch (416:14): [True: 0, False: 135k]
  ------------------
  417|      0|        return PpAtomConstFloatUE8M0;
  418|   135k|    else if (isFMXINT8)
  ------------------
  |  Branch (418:14): [True: 0, False: 135k]
  ------------------
  419|      0|        return PpAtomConstFloatMXINT8;
  420|   135k|    else
  421|   135k|        return PpAtomConstFloat;
  422|   136k|}
_ZN7glslang10TPpContext16characterLiteralEPNS_8TPpTokenE:
  431|  1.84M|{
  432|  1.84M|    ppToken->name[0] = 0;
  433|  1.84M|    ppToken->ival = 0;
  434|       |
  435|  1.84M|    if (parseContext.intermediate.getSource() != EShSourceHlsl) {
  ------------------
  |  Branch (435:9): [True: 1.84M, False: 0]
  ------------------
  436|       |        // illegal, except in macro definition, for which case we report the character
  437|  1.84M|        return '\'';
  438|  1.84M|    }
  439|       |
  440|      0|    int ch = getChar();
  441|      0|    switch (ch) {
  442|      0|    case '\'':
  ------------------
  |  Branch (442:5): [True: 0, False: 0]
  ------------------
  443|       |        // As empty sequence:  ''
  444|      0|        parseContext.ppError(ppToken->loc, "unexpected", "\'", "");
  445|      0|        return PpAtomConstInt;
  446|      0|    case '\\':
  ------------------
  |  Branch (446:5): [True: 0, False: 0]
  ------------------
  447|       |        // As escape sequence:  '\XXX'
  448|      0|        switch (ch = getChar()) {
  449|      0|        case 'a':
  ------------------
  |  Branch (449:9): [True: 0, False: 0]
  ------------------
  450|      0|            ppToken->ival = 7;
  451|      0|            break;
  452|      0|        case 'b':
  ------------------
  |  Branch (452:9): [True: 0, False: 0]
  ------------------
  453|      0|            ppToken->ival = 8;
  454|      0|            break;
  455|      0|        case 't':
  ------------------
  |  Branch (455:9): [True: 0, False: 0]
  ------------------
  456|      0|            ppToken->ival = 9;
  457|      0|            break;
  458|      0|        case 'n':
  ------------------
  |  Branch (458:9): [True: 0, False: 0]
  ------------------
  459|      0|            ppToken->ival = 10;
  460|      0|            break;
  461|      0|        case 'v':
  ------------------
  |  Branch (461:9): [True: 0, False: 0]
  ------------------
  462|      0|            ppToken->ival = 11;
  463|      0|            break;
  464|      0|        case 'f':
  ------------------
  |  Branch (464:9): [True: 0, False: 0]
  ------------------
  465|      0|            ppToken->ival = 12;
  466|      0|            break;
  467|      0|        case 'r':
  ------------------
  |  Branch (467:9): [True: 0, False: 0]
  ------------------
  468|      0|            ppToken->ival = 13;
  469|      0|            break;
  470|      0|        case 'x':
  ------------------
  |  Branch (470:9): [True: 0, False: 0]
  ------------------
  471|      0|        case '0':
  ------------------
  |  Branch (471:9): [True: 0, False: 0]
  ------------------
  472|      0|            parseContext.ppError(ppToken->loc, "octal and hex sequences not supported", "\\", "");
  473|      0|            break;
  474|      0|        default:
  ------------------
  |  Branch (474:9): [True: 0, False: 0]
  ------------------
  475|       |            // This catches '\'', '\"', '\?', etc.
  476|       |            // Also, things like '\C' mean the same thing as 'C'
  477|       |            // (after the above cases are filtered out).
  478|      0|            ppToken->ival = ch;
  479|      0|            break;
  480|      0|        }
  481|      0|        break;
  482|      0|    default:
  ------------------
  |  Branch (482:5): [True: 0, False: 0]
  ------------------
  483|      0|        ppToken->ival = ch;
  484|      0|        break;
  485|      0|    }
  486|      0|    ppToken->name[0] = (char)ppToken->ival;
  487|      0|    ppToken->name[1] = '\0';
  488|      0|    ch = getChar();
  489|      0|    if (ch != '\'') {
  ------------------
  |  Branch (489:9): [True: 0, False: 0]
  ------------------
  490|      0|        parseContext.ppError(ppToken->loc, "expected", "\'", "");
  491|       |        // Look ahead for a closing '
  492|      0|        do {
  493|      0|            ch = getChar();
  494|      0|        } while (ch != '\'' && ch != EndOfInput && ch != '\n');
  ------------------
  |  Branch (494:18): [True: 0, False: 0]
  |  Branch (494:32): [True: 0, False: 0]
  |  Branch (494:52): [True: 0, False: 0]
  ------------------
  495|      0|    }
  496|       |
  497|      0|    return PpAtomConstInt;
  498|      0|}
_ZN7glslang10TPpContext12tStringInput4scanEPNS_8TPpTokenE:
  512|   169M|{
  513|   169M|    int AlreadyComplained = 0;
  514|   169M|    int len = 0;
  515|   169M|    int ch = 0;
  516|   169M|    int ii = 0;
  517|   169M|    unsigned long long ival = 0;
  518|   169M|    const auto floatingPointChar = [&](int ch) { return ch == '.' || ch == 'e' || ch == 'E' ||
  519|   169M|                                                                     ch == 'f' || ch == 'F' ||
  520|   169M|                                                                     ch == 'h' || ch == 'H'; };
  521|       |
  522|   169M|    static const char* const Int64_Extensions[] = {
  523|   169M|        E_GL_ARB_gpu_shader_int64,
  524|   169M|        E_GL_EXT_shader_explicit_arithmetic_types,
  525|   169M|        E_GL_NV_gpu_shader5,
  526|   169M|        E_GL_EXT_shader_explicit_arithmetic_types_int64 };
  527|   169M|    static const int Num_Int64_Extensions = sizeof(Int64_Extensions) / sizeof(Int64_Extensions[0]);
  528|       |
  529|   169M|    static const char* const Int16_Extensions[] = {
  530|   169M|        E_GL_AMD_gpu_shader_int16,
  531|   169M|        E_GL_EXT_shader_explicit_arithmetic_types,
  532|   169M|        E_GL_EXT_shader_explicit_arithmetic_types_int16 };
  533|   169M|    static const int Num_Int16_Extensions = sizeof(Int16_Extensions) / sizeof(Int16_Extensions[0]);
  534|       |
  535|   169M|    ppToken->clear();
  536|   169M|    ch = getch();
  537|   169M|    for (;;) {
  538|   236M|        while (ch == ' ' || ch == '\t') {
  ------------------
  |  Branch (538:16): [True: 66.8M, False: 169M]
  |  Branch (538:29): [True: 91.1k, False: 169M]
  ------------------
  539|  66.9M|            ppToken->space = true;
  540|  66.9M|            ch = getch();
  541|  66.9M|        }
  542|       |
  543|   169M|        ppToken->loc = pp->parseContext.getCurrentLoc();
  544|   169M|        len = 0;
  545|   169M|        switch (ch) {
  546|  94.0M|        default:
  ------------------
  |  Branch (546:9): [True: 94.0M, False: 75.7M]
  ------------------
  547|       |            // Single character token, including EndOfInput, '#' and '\' (escaped newlines are handled at a lower level, so this is just a '\' token)
  548|  94.0M|            if (ch > PpAtomMaxSingle)
  ------------------
  |  Branch (548:17): [True: 3.62M, False: 90.4M]
  ------------------
  549|  3.62M|                ch = PpAtomBadToken;
  550|  94.0M|            return ch;
  551|       |
  552|   296k|        case 'A': case 'B': case 'C': case 'D': case 'E':
  ------------------
  |  Branch (552:9): [True: 27.8k, False: 169M]
  |  Branch (552:19): [True: 21.4k, False: 169M]
  |  Branch (552:29): [True: 186k, False: 169M]
  |  Branch (552:39): [True: 39.1k, False: 169M]
  |  Branch (552:49): [True: 22.2k, False: 169M]
  ------------------
  553|  1.13M|        case 'F': case 'G': case 'H': case 'I': case 'J':
  ------------------
  |  Branch (553:9): [True: 26.3k, False: 169M]
  |  Branch (553:19): [True: 710k, False: 169M]
  |  Branch (553:29): [True: 60.3k, False: 169M]
  |  Branch (553:39): [True: 21.1k, False: 169M]
  |  Branch (553:49): [True: 14.5k, False: 169M]
  ------------------
  554|  1.36M|        case 'K': case 'L': case 'M': case 'N': case 'O':
  ------------------
  |  Branch (554:9): [True: 82.1k, False: 169M]
  |  Branch (554:19): [True: 9.12k, False: 169M]
  |  Branch (554:29): [True: 100k, False: 169M]
  |  Branch (554:39): [True: 10.0k, False: 169M]
  |  Branch (554:49): [True: 33.5k, False: 169M]
  ------------------
  555|  1.50M|        case 'P': case 'Q': case 'R': case 'S': case 'T':
  ------------------
  |  Branch (555:9): [True: 40.1k, False: 169M]
  |  Branch (555:19): [True: 10.4k, False: 169M]
  |  Branch (555:29): [True: 7.03k, False: 169M]
  |  Branch (555:39): [True: 36.6k, False: 169M]
  |  Branch (555:49): [True: 48.6k, False: 169M]
  ------------------
  556|  2.02M|        case 'U': case 'V': case 'W': case 'X': case 'Y':
  ------------------
  |  Branch (556:9): [True: 9.47k, False: 169M]
  |  Branch (556:19): [True: 490k, False: 169M]
  |  Branch (556:29): [True: 3.95k, False: 169M]
  |  Branch (556:39): [True: 7.84k, False: 169M]
  |  Branch (556:49): [True: 3.10k, False: 169M]
  ------------------
  557|  2.06M|        case 'Z': case '_':
  ------------------
  |  Branch (557:9): [True: 16.0k, False: 169M]
  |  Branch (557:19): [True: 23.3k, False: 169M]
  ------------------
  558|  10.6M|        case 'a': case 'b': case 'c': case 'd': case 'e':
  ------------------
  |  Branch (558:9): [True: 697k, False: 169M]
  |  Branch (558:19): [True: 3.11M, False: 166M]
  |  Branch (558:29): [True: 2.55M, False: 167M]
  |  Branch (558:39): [True: 1.97M, False: 167M]
  |  Branch (558:49): [True: 251k, False: 169M]
  ------------------
  559|  33.4M|        case 'f': case 'g': case 'h': case 'i': case 'j':
  ------------------
  |  Branch (559:9): [True: 5.13M, False: 164M]
  |  Branch (559:19): [True: 722k, False: 169M]
  |  Branch (559:29): [True: 1.98M, False: 167M]
  |  Branch (559:39): [True: 14.9M, False: 154M]
  |  Branch (559:49): [True: 1.94k, False: 169M]
  ------------------
  560|  37.1M|        case 'k': case 'l': case 'm': case 'n': case 'o':
  ------------------
  |  Branch (560:9): [True: 4.98k, False: 169M]
  |  Branch (560:19): [True: 410k, False: 169M]
  |  Branch (560:29): [True: 1.24M, False: 168M]
  |  Branch (560:39): [True: 1.40M, False: 168M]
  |  Branch (560:49): [True: 701k, False: 169M]
  ------------------
  561|  45.8M|        case 'p': case 'q': case 'r': case 's': case 't':
  ------------------
  |  Branch (561:9): [True: 265k, False: 169M]
  |  Branch (561:19): [True: 11.2k, False: 169M]
  |  Branch (561:29): [True: 627k, False: 169M]
  |  Branch (561:39): [True: 5.45M, False: 164M]
  |  Branch (561:49): [True: 2.26M, False: 167M]
  ------------------
  562|  63.8M|        case 'u': case 'v': case 'w': case 'x': case 'y':
  ------------------
  |  Branch (562:9): [True: 10.7M, False: 159M]
  |  Branch (562:19): [True: 6.96M, False: 162M]
  |  Branch (562:29): [True: 153k, False: 169M]
  |  Branch (562:39): [True: 113k, False: 169M]
  |  Branch (562:49): [True: 46.4k, False: 169M]
  ------------------
  563|  63.8M|        case 'z':
  ------------------
  |  Branch (563:9): [True: 30.7k, False: 169M]
  ------------------
  564|   526M|            do {
  565|   526M|                if (len < MaxTokenLength) {
  ------------------
  |  Branch (565:21): [True: 519M, False: 7.60M]
  ------------------
  566|   519M|                    ppToken->name[len++] = (char)ch;
  567|   519M|                    ch = getch();
  568|   519M|                } else {
  569|  7.60M|                    if (! AlreadyComplained) {
  ------------------
  |  Branch (569:25): [True: 1.15k, False: 7.60M]
  ------------------
  570|  1.15k|                        pp->parseContext.ppError(ppToken->loc, "name too long", "", "");
  571|  1.15k|                        AlreadyComplained = 1;
  572|  1.15k|                    }
  573|  7.60M|                    ch = getch();
  574|  7.60M|                }
  575|   526M|            } while ((ch >= 'a' && ch <= 'z') ||
  ------------------
  |  Branch (575:23): [True: 364M, False: 162M]
  |  Branch (575:36): [True: 363M, False: 258k]
  ------------------
  576|   162M|                     (ch >= 'A' && ch <= 'Z') ||
  ------------------
  |  Branch (576:23): [True: 51.9M, False: 110M]
  |  Branch (576:36): [True: 44.3M, False: 7.55M]
  ------------------
  577|   118M|                     (ch >= '0' && ch <= '9') ||
  ------------------
  |  Branch (577:23): [True: 57.3M, False: 61.2M]
  |  Branch (577:36): [True: 47.9M, False: 9.37M]
  ------------------
  578|  70.5M|                     ch == '_');
  ------------------
  |  Branch (578:22): [True: 6.73M, False: 63.8M]
  ------------------
  579|       |
  580|       |            // line continuation with no token before or after makes len == 0, and need to start over skipping white space, etc.
  581|  63.8M|            if (len == 0)
  ------------------
  |  Branch (581:17): [True: 0, False: 63.8M]
  ------------------
  582|      0|                continue;
  583|       |
  584|  63.8M|            ppToken->name[len] = '\0';
  585|  63.8M|            ungetch();
  586|  63.8M|            return PpAtomIdentifier;
  587|   718k|        case '0':
  ------------------
  |  Branch (587:9): [True: 718k, False: 169M]
  ------------------
  588|   718k|            ppToken->name[len++] = (char)ch;
  589|   718k|            ch = getch();
  590|   718k|            if (ch == 'x' || ch == 'X') {
  ------------------
  |  Branch (590:17): [True: 25.7k, False: 692k]
  |  Branch (590:30): [True: 1.24k, False: 691k]
  ------------------
  591|       |                // must be hexadecimal
  592|       |
  593|  27.0k|                bool isUnsigned = false;
  594|  27.0k|                bool isInt64 = false;
  595|  27.0k|                bool isInt16 = false;
  596|  27.0k|                ppToken->name[len++] = (char)ch;
  597|  27.0k|                ch = getch();
  598|  27.0k|                if ((ch >= '0' && ch <= '9') ||
  ------------------
  |  Branch (598:22): [True: 26.8k, False: 136]
  |  Branch (598:35): [True: 25.0k, False: 1.82k]
  ------------------
  599|  1.96k|                    (ch >= 'A' && ch <= 'F') ||
  ------------------
  |  Branch (599:22): [True: 1.63k, False: 331]
  |  Branch (599:35): [True: 783, False: 849]
  ------------------
  600|  26.2k|                    (ch >= 'a' && ch <= 'f')) {
  ------------------
  |  Branch (600:22): [True: 469, False: 711]
  |  Branch (600:35): [True: 391, False: 78]
  ------------------
  601|       |
  602|  26.2k|                    ival = 0;
  603|  67.8k|                    do {
  604|  67.8k|                        if (len < MaxTokenLength && ival <= 0x7fffffffffffffffull) {
  ------------------
  |  Branch (604:29): [True: 67.8k, False: 0]
  |  Branch (604:53): [True: 67.3k, False: 528]
  ------------------
  605|  67.3k|                            ppToken->name[len++] = (char)ch;
  606|  67.3k|                            if (ch >= '0' && ch <= '9') {
  ------------------
  |  Branch (606:33): [True: 67.3k, False: 0]
  |  Branch (606:46): [True: 58.2k, False: 9.07k]
  ------------------
  607|  58.2k|                                ii = ch - '0';
  608|  58.2k|                            } else if (ch >= 'A' && ch <= 'F') {
  ------------------
  |  Branch (608:40): [True: 9.07k, False: 0]
  |  Branch (608:53): [True: 4.67k, False: 4.39k]
  ------------------
  609|  4.67k|                                ii = ch - 'A' + 10;
  610|  4.67k|                            } else if (ch >= 'a' && ch <= 'f') {
  ------------------
  |  Branch (610:40): [True: 4.39k, False: 0]
  |  Branch (610:53): [True: 4.39k, False: 0]
  ------------------
  611|  4.39k|                                ii = ch - 'a' + 10;
  612|  4.39k|                            } else
  613|      0|                                pp->parseContext.ppError(ppToken->loc, "bad digit in hexadecimal literal", "", "");
  614|  67.3k|                            ival = (ival << 4) | ii;
  615|  67.3k|                        } else {
  616|    528|                            if (! AlreadyComplained) {
  ------------------
  |  Branch (616:33): [True: 61, False: 467]
  ------------------
  617|     61|                                if(len < MaxTokenLength)
  ------------------
  |  Branch (617:36): [True: 61, False: 0]
  ------------------
  618|     61|                                    pp->parseContext.ppError(ppToken->loc, "hexadecimal literal too big", "", "");
  619|      0|                                else
  620|      0|                                    pp->parseContext.ppError(ppToken->loc, "hexadecimal literal too long", "", "");
  621|     61|                                AlreadyComplained = 1;
  622|     61|                            }
  623|    528|                            ival = 0xffffffffffffffffull;
  624|    528|                        }
  625|  67.8k|                        ch = getch();
  626|  67.8k|                    } while ((ch >= '0' && ch <= '9') ||
  ------------------
  |  Branch (626:31): [True: 65.3k, False: 2.54k]
  |  Branch (626:44): [True: 33.6k, False: 31.6k]
  ------------------
  627|  34.1k|                             (ch >= 'A' && ch <= 'F') ||
  ------------------
  |  Branch (627:31): [True: 17.1k, False: 16.9k]
  |  Branch (627:44): [True: 3.88k, False: 13.2k]
  ------------------
  628|  30.2k|                             (ch >= 'a' && ch <= 'f'));
  ------------------
  |  Branch (628:31): [True: 5.03k, False: 25.2k]
  |  Branch (628:44): [True: 4.02k, False: 1.00k]
  ------------------
  629|  26.2k|                } else {
  630|    789|                    pp->parseContext.ppError(ppToken->loc, "bad digit in hexadecimal literal", "", "");
  631|    789|                }
  632|  27.0k|                if (ch == 'u' || ch == 'U') {
  ------------------
  |  Branch (632:21): [True: 594, False: 26.4k]
  |  Branch (632:34): [True: 4.16k, False: 22.2k]
  ------------------
  633|  4.75k|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (633:25): [True: 4.75k, False: 0]
  ------------------
  634|  4.75k|                        ppToken->name[len++] = (char)ch;
  635|  4.75k|                    isUnsigned = true;
  636|       |
  637|  4.75k|                    int nextCh = getch();
  638|  4.75k|                    if (nextCh == 'l' || nextCh == 'L') {
  ------------------
  |  Branch (638:25): [True: 75, False: 4.68k]
  |  Branch (638:42): [True: 0, False: 4.68k]
  ------------------
  639|     75|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (639:29): [True: 75, False: 0]
  ------------------
  640|     75|                            ppToken->name[len++] = (char)nextCh;
  641|     75|                        isInt64 = true;
  642|     75|                    } else
  643|  4.68k|                        ungetch();
  644|       |
  645|  4.75k|                    nextCh = getch();
  646|  4.75k|                    if ((nextCh == 's' || nextCh == 'S') &&
  ------------------
  |  Branch (646:26): [True: 231, False: 4.52k]
  |  Branch (646:43): [True: 0, False: 4.52k]
  ------------------
  647|    231|                            pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (647:29): [True: 231, False: 0]
  ------------------
  648|    231|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (648:29): [True: 231, False: 0]
  ------------------
  649|    231|                            ppToken->name[len++] = (char)nextCh;
  650|    231|                        isInt16 = true;
  651|    231|                    } else
  652|  4.52k|                        ungetch();
  653|  22.2k|                } else if (ch == 'l' || ch == 'L') {
  ------------------
  |  Branch (653:28): [True: 187, False: 22.0k]
  |  Branch (653:41): [True: 0, False: 22.0k]
  ------------------
  654|    187|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (654:25): [True: 187, False: 0]
  ------------------
  655|    187|                        ppToken->name[len++] = (char)ch;
  656|    187|                    isInt64 = true;
  657|  22.0k|                } else if ((ch == 's' || ch == 'S') &&
  ------------------
  |  Branch (657:29): [True: 6, False: 22.0k]
  |  Branch (657:42): [True: 3.67k, False: 18.4k]
  ------------------
  658|  3.68k|                           pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (658:28): [True: 3.68k, False: 0]
  ------------------
  659|  3.68k|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (659:25): [True: 3.68k, False: 0]
  ------------------
  660|  3.68k|                        ppToken->name[len++] = (char)ch;
  661|  3.68k|                    isInt16 = true;
  662|  3.68k|                } else
  663|  18.4k|                    ungetch();
  664|  27.0k|                ppToken->name[len] = '\0';
  665|       |
  666|  27.0k|                if (isInt64 && pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (666:21): [True: 262, False: 26.7k]
  |  Branch (666:32): [True: 262, False: 0]
  ------------------
  667|    262|                    if (pp->ifdepth == 0) {
  ------------------
  |  Branch (667:25): [True: 262, False: 0]
  ------------------
  668|    262|                        pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  669|    262|                                                        "64-bit hexadecimal literal");
  670|    262|                        pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  671|    262|                            Num_Int64_Extensions, Int64_Extensions, "64-bit hexadecimal literal");
  672|    262|                    }
  673|    262|                    ppToken->i64val = ival;
  674|    262|                    return isUnsigned ? PpAtomConstUint64 : PpAtomConstInt64;
  ------------------
  |  Branch (674:28): [True: 75, False: 187]
  ------------------
  675|  26.7k|                } else if (isInt16) {
  ------------------
  |  Branch (675:28): [True: 3.91k, False: 22.8k]
  ------------------
  676|  3.91k|                    if (pp->ifdepth == 0) {
  ------------------
  |  Branch (676:25): [True: 3.86k, False: 44]
  ------------------
  677|  3.86k|                        if (pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (677:29): [True: 3.86k, False: 0]
  ------------------
  678|  3.86k|                            pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  679|  3.86k|                                                             "16-bit hexadecimal literal");
  680|  3.86k|                            pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  681|  3.86k|                                Num_Int16_Extensions, Int16_Extensions, "16-bit hexadecimal literal");
  682|  3.86k|                        }
  683|  3.86k|                    }
  684|  3.91k|                    ppToken->ival = (int)ival;
  685|  3.91k|                    return isUnsigned ? PpAtomConstUint16 : PpAtomConstInt16;
  ------------------
  |  Branch (685:28): [True: 231, False: 3.68k]
  ------------------
  686|  22.8k|                } else {
  687|  22.8k|                    if (ival > 0xffffffffu && !AlreadyComplained)
  ------------------
  |  Branch (687:25): [True: 579, False: 22.2k]
  |  Branch (687:47): [True: 518, False: 61]
  ------------------
  688|    518|                        pp->parseContext.ppError(ppToken->loc, "hexadecimal literal too big", "", "");
  689|  22.8k|                    ppToken->ival = (int)ival;
  690|  22.8k|                    return isUnsigned ? PpAtomConstUint : PpAtomConstInt;
  ------------------
  |  Branch (690:28): [True: 4.45k, False: 18.4k]
  ------------------
  691|  22.8k|                }
  692|   691k|            } else if ((ch == 'b' || ch == 'B') && pp->parseContext.intermediate.getSource() == EShSourceHlsl) {
  ------------------
  |  Branch (692:25): [True: 376, False: 690k]
  |  Branch (692:38): [True: 36, False: 690k]
  |  Branch (692:52): [True: 0, False: 412]
  ------------------
  693|       |                // must be binary
  694|      0|                bool isUnsigned = false;
  695|      0|                bool isInt64 = false;
  696|      0|                bool isInt16 = false;
  697|      0|                ppToken->name[len++] = (char)ch;
  698|      0|                ch = getch();
  699|       |
  700|       |                // Check value
  701|      0|                if ((ch == '0' || ch == '1'))
  ------------------
  |  Branch (701:22): [True: 0, False: 0]
  |  Branch (701:35): [True: 0, False: 0]
  ------------------
  702|      0|                {
  703|      0|                    ival = 0;
  704|      0|                    do {
  705|      0|                        if (len < MaxTokenLength && ival <= 0x7fffffffffffffffull) {
  ------------------
  |  Branch (705:29): [True: 0, False: 0]
  |  Branch (705:53): [True: 0, False: 0]
  ------------------
  706|      0|                            ppToken->name[len++] = (char)ch;
  707|      0|                            if (ch == '0' || ch == '1') {
  ------------------
  |  Branch (707:33): [True: 0, False: 0]
  |  Branch (707:46): [True: 0, False: 0]
  ------------------
  708|      0|                                ii = ch - '0';
  709|      0|                            } else {
  710|      0|                                pp->parseContext.ppError(ppToken->loc, "bad digit in binary literal", "", "");
  711|      0|                            }
  712|      0|                            ival = (ival << 1) | ii;
  713|      0|                        }
  714|      0|                        else
  715|      0|                        {
  716|      0|                            if (! AlreadyComplained) {
  ------------------
  |  Branch (716:33): [True: 0, False: 0]
  ------------------
  717|      0|                                if(len < MaxTokenLength)
  ------------------
  |  Branch (717:36): [True: 0, False: 0]
  ------------------
  718|      0|                                    pp->parseContext.ppError(ppToken->loc, "binary literal too big", "", "");
  719|      0|                                else
  720|      0|                                    pp->parseContext.ppError(ppToken->loc, "binary literal too long", "", "");
  721|      0|                                AlreadyComplained = 1;
  722|      0|                            }
  723|      0|                            ival = 0xffffffffffffffffull;
  724|      0|                        }
  725|      0|                        ch = getch();
  726|      0|                    } while (ch == '0' || ch == '1');
  ------------------
  |  Branch (726:30): [True: 0, False: 0]
  |  Branch (726:43): [True: 0, False: 0]
  ------------------
  727|      0|                }
  728|      0|                else
  729|      0|                {
  730|      0|                   pp->parseContext.ppError(ppToken->loc, "bad digit in binary literal", "", "");
  731|      0|                }
  732|       |
  733|       |                // check type
  734|      0|                if (ch == 'u' || ch == 'U') {
  ------------------
  |  Branch (734:21): [True: 0, False: 0]
  |  Branch (734:34): [True: 0, False: 0]
  ------------------
  735|      0|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (735:25): [True: 0, False: 0]
  ------------------
  736|      0|                        ppToken->name[len++] = (char)ch;
  737|      0|                    isUnsigned = true;
  738|       |
  739|      0|                    int nextCh = getch();
  740|      0|                    if (nextCh == 'l' || nextCh == 'L') {
  ------------------
  |  Branch (740:25): [True: 0, False: 0]
  |  Branch (740:42): [True: 0, False: 0]
  ------------------
  741|      0|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (741:29): [True: 0, False: 0]
  ------------------
  742|      0|                            ppToken->name[len++] = (char)nextCh;
  743|      0|                        isInt64 = true;
  744|      0|                    } else
  745|      0|                        ungetch();
  746|       |
  747|      0|                    nextCh = getch();
  748|      0|                    if ((nextCh == 's' || nextCh == 'S') &&
  ------------------
  |  Branch (748:26): [True: 0, False: 0]
  |  Branch (748:43): [True: 0, False: 0]
  ------------------
  749|      0|                                pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (749:33): [True: 0, False: 0]
  ------------------
  750|      0|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (750:29): [True: 0, False: 0]
  ------------------
  751|      0|                            ppToken->name[len++] = (char)nextCh;
  752|      0|                        isInt16 = true;
  753|      0|                    } else
  754|      0|                        ungetch();
  755|      0|                } else if (ch == 'l' || ch == 'L') {
  ------------------
  |  Branch (755:28): [True: 0, False: 0]
  |  Branch (755:41): [True: 0, False: 0]
  ------------------
  756|      0|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (756:25): [True: 0, False: 0]
  ------------------
  757|      0|                        ppToken->name[len++] = (char)ch;
  758|      0|                    isInt64 = true;
  759|      0|                } else if ((ch == 's' || ch == 'S') &&
  ------------------
  |  Branch (759:29): [True: 0, False: 0]
  |  Branch (759:42): [True: 0, False: 0]
  ------------------
  760|      0|                                pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (760:33): [True: 0, False: 0]
  ------------------
  761|      0|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (761:25): [True: 0, False: 0]
  ------------------
  762|      0|                        ppToken->name[len++] = (char)ch;
  763|      0|                    isInt16 = true;
  764|      0|                } else {
  765|      0|                    ungetch();
  766|      0|                }
  767|      0|                ppToken->name[len] = '\0';
  768|       |
  769|       |                // Assign value
  770|      0|                if (isInt64 && pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (770:21): [True: 0, False: 0]
  |  Branch (770:32): [True: 0, False: 0]
  ------------------
  771|      0|                    if (pp->ifdepth == 0) {
  ------------------
  |  Branch (771:25): [True: 0, False: 0]
  ------------------
  772|      0|                        pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  773|      0|                                                        "64-bit binary literal");
  774|      0|                        pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  775|      0|                            Num_Int64_Extensions, Int64_Extensions, "64-bit binary literal");
  776|      0|                    }
  777|      0|                    ppToken->i64val = ival;
  778|      0|                    return isUnsigned ? PpAtomConstUint64 : PpAtomConstInt64;
  ------------------
  |  Branch (778:28): [True: 0, False: 0]
  ------------------
  779|      0|                } else if (isInt16) {
  ------------------
  |  Branch (779:28): [True: 0, False: 0]
  ------------------
  780|      0|                    if (pp->ifdepth == 0) {
  ------------------
  |  Branch (780:25): [True: 0, False: 0]
  ------------------
  781|      0|                        if (pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (781:29): [True: 0, False: 0]
  ------------------
  782|      0|                            pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  783|      0|                                                            "16-bit binary literal");
  784|      0|                            pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  785|      0|                                Num_Int16_Extensions, Int16_Extensions, "16-bit binary literal");
  786|      0|                        }
  787|      0|                    }
  788|      0|                    ppToken->ival = (int)ival;
  789|      0|                    return isUnsigned ? PpAtomConstUint16 : PpAtomConstInt16;
  ------------------
  |  Branch (789:28): [True: 0, False: 0]
  ------------------
  790|      0|                } else {
  791|      0|                    ppToken->ival = (int)ival;
  792|      0|                    return isUnsigned ? PpAtomConstUint : PpAtomConstInt;
  ------------------
  |  Branch (792:28): [True: 0, False: 0]
  ------------------
  793|      0|                }
  794|   691k|            } else {
  795|       |                // could be octal integer or floating point, speculative pursue octal until it must be floating point
  796|       |
  797|   691k|                bool isUnsigned = false;
  798|   691k|                bool isInt64 = false;
  799|   691k|                bool isInt16 = false;
  800|   691k|                bool octalOverflow = false;
  801|   691k|                bool nonOctal = false;
  802|   691k|                ival = 0;
  803|       |
  804|       |                // see how much octal-like stuff we can read
  805|  5.53M|                while (ch >= '0' && ch <= '7') {
  ------------------
  |  Branch (805:24): [True: 5.13M, False: 404k]
  |  Branch (805:37): [True: 4.84M, False: 286k]
  ------------------
  806|  4.84M|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (806:25): [True: 1.46M, False: 3.37M]
  ------------------
  807|  1.46M|                        ppToken->name[len++] = (char)ch;
  808|  3.37M|                    else if (! AlreadyComplained) {
  ------------------
  |  Branch (808:30): [True: 1.00k, False: 3.37M]
  ------------------
  809|  1.00k|                        pp->parseContext.ppError(ppToken->loc, "numeric literal too long", "", "");
  810|  1.00k|                        AlreadyComplained = 1;
  811|  1.00k|                    }
  812|  4.84M|                    if (ival <= 0x1fffffffffffffffull) {
  ------------------
  |  Branch (812:25): [True: 4.50M, False: 346k]
  ------------------
  813|  4.50M|                        ii = ch - '0';
  814|  4.50M|                        ival = (ival << 3) | ii;
  815|  4.50M|                    } else
  816|   346k|                        octalOverflow = true;
  817|  4.84M|                    ch = getch();
  818|  4.84M|                }
  819|       |
  820|       |                // could be part of a float...
  821|   691k|                if (ch == '8' || ch == '9') {
  ------------------
  |  Branch (821:21): [True: 2.14k, False: 689k]
  |  Branch (821:34): [True: 3.29k, False: 685k]
  ------------------
  822|  5.44k|                    nonOctal = true;
  823|   519k|                    do {
  824|   519k|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (824:29): [True: 149k, False: 370k]
  ------------------
  825|   149k|                            ppToken->name[len++] = (char)ch;
  826|   370k|                        else if (! AlreadyComplained) {
  ------------------
  |  Branch (826:34): [True: 87, False: 369k]
  ------------------
  827|     87|                            pp->parseContext.ppError(ppToken->loc, "numeric literal too long", "", "");
  828|     87|                            AlreadyComplained = 1;
  829|     87|                        }
  830|   519k|                        ch = getch();
  831|   519k|                    } while (ch >= '0' && ch <= '9');
  ------------------
  |  Branch (831:30): [True: 517k, False: 2.28k]
  |  Branch (831:43): [True: 514k, False: 3.16k]
  ------------------
  832|  5.44k|                }
  833|   691k|                if (floatingPointChar(ch))
  ------------------
  |  Branch (833:21): [True: 47.6k, False: 643k]
  ------------------
  834|  47.6k|                    return pp->lFloatConst(len, ch, ppToken);
  835|       |
  836|       |                // wasn't a float, so must be octal...
  837|   643k|                if (nonOctal)
  ------------------
  |  Branch (837:21): [True: 4.79k, False: 638k]
  ------------------
  838|  4.79k|                    pp->parseContext.ppError(ppToken->loc, "octal literal digit too large", "", "");
  839|       |
  840|   643k|                if (ch == 'u' || ch == 'U') {
  ------------------
  |  Branch (840:21): [True: 2.28k, False: 641k]
  |  Branch (840:34): [True: 18.3k, False: 623k]
  ------------------
  841|  20.6k|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (841:25): [True: 20.6k, False: 22]
  ------------------
  842|  20.6k|                        ppToken->name[len++] = (char)ch;
  843|  20.6k|                    isUnsigned = true;
  844|       |
  845|  20.6k|                    int nextCh = getch();
  846|  20.6k|                    if (nextCh == 'l' || nextCh == 'L') {
  ------------------
  |  Branch (846:25): [True: 75, False: 20.5k]
  |  Branch (846:42): [True: 14, False: 20.5k]
  ------------------
  847|     89|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (847:29): [True: 89, False: 0]
  ------------------
  848|     89|                            ppToken->name[len++] = (char)nextCh;
  849|     89|                        isInt64 = true;
  850|     89|                    } else
  851|  20.5k|                        ungetch();
  852|       |
  853|  20.6k|                    nextCh = getch();
  854|  20.6k|                    if ((nextCh == 's' || nextCh == 'S') &&
  ------------------
  |  Branch (854:26): [True: 758, False: 19.8k]
  |  Branch (854:43): [True: 0, False: 19.8k]
  ------------------
  855|    758|                                pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (855:33): [True: 758, False: 0]
  ------------------
  856|    758|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (856:29): [True: 756, False: 2]
  ------------------
  857|    756|                            ppToken->name[len++] = (char)nextCh;
  858|    758|                        isInt16 = true;
  859|    758|                    } else
  860|  19.8k|                        ungetch();
  861|   623k|                } else if (ch == 'l' || ch == 'L') {
  ------------------
  |  Branch (861:28): [True: 173, False: 622k]
  |  Branch (861:41): [True: 50, False: 622k]
  ------------------
  862|    223|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (862:25): [True: 209, False: 14]
  ------------------
  863|    209|                        ppToken->name[len++] = (char)ch;
  864|    223|                    isInt64 = true;
  865|   622k|                } else if ((ch == 's' || ch == 'S') &&
  ------------------
  |  Branch (865:29): [True: 1.17k, False: 621k]
  |  Branch (865:42): [True: 174, False: 621k]
  ------------------
  866|  1.35k|                                pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (866:33): [True: 1.35k, False: 0]
  ------------------
  867|  1.35k|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (867:25): [True: 1.33k, False: 20]
  ------------------
  868|  1.33k|                        ppToken->name[len++] = (char)ch;
  869|  1.35k|                    isInt16 = true;
  870|  1.35k|                } else
  871|   621k|                    ungetch();
  872|   643k|                ppToken->name[len] = '\0';
  873|       |
  874|   643k|                if (!isInt64 && ival > 0xffffffffu)
  ------------------
  |  Branch (874:21): [True: 643k, False: 312]
  |  Branch (874:33): [True: 1.92k, False: 641k]
  ------------------
  875|  1.92k|                    octalOverflow = true;
  876|       |
  877|   643k|                if (octalOverflow)
  ------------------
  |  Branch (877:21): [True: 1.93k, False: 641k]
  ------------------
  878|  1.93k|                    pp->parseContext.ppError(ppToken->loc, "octal literal too big", "", "");
  879|       |
  880|   643k|                if (isInt64 && pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (880:21): [True: 312, False: 643k]
  |  Branch (880:32): [True: 312, False: 0]
  ------------------
  881|    312|                    if (pp->ifdepth == 0) {
  ------------------
  |  Branch (881:25): [True: 299, False: 13]
  ------------------
  882|    299|                        pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  883|    299|                                                        "64-bit octal literal");
  884|    299|                        pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  885|    299|                            Num_Int64_Extensions, Int64_Extensions, "64-bit octal literal");
  886|    299|                    }
  887|    312|                    ppToken->i64val = ival;
  888|    312|                    return isUnsigned ? PpAtomConstUint64 : PpAtomConstInt64;
  ------------------
  |  Branch (888:28): [True: 89, False: 223]
  ------------------
  889|   643k|                } else if (isInt16) {
  ------------------
  |  Branch (889:28): [True: 2.10k, False: 641k]
  ------------------
  890|  2.10k|                    if (pp->ifdepth == 0) {
  ------------------
  |  Branch (890:25): [True: 2.04k, False: 64]
  ------------------
  891|  2.04k|                        if (pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (891:29): [True: 2.04k, False: 0]
  ------------------
  892|  2.04k|                            pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  893|  2.04k|                                                            "16-bit octal literal");
  894|  2.04k|                            pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  895|  2.04k|                                Num_Int16_Extensions, Int16_Extensions, "16-bit octal literal");
  896|  2.04k|                        }
  897|  2.04k|                    }
  898|  2.10k|                    ppToken->ival = (int)ival;
  899|  2.10k|                    return isUnsigned ? PpAtomConstUint16 : PpAtomConstInt16;
  ------------------
  |  Branch (899:28): [True: 758, False: 1.35k]
  ------------------
  900|   641k|                } else {
  901|   641k|                    ppToken->ival = (int)ival;
  902|   641k|                    return isUnsigned ? PpAtomConstUint : PpAtomConstInt;
  ------------------
  |  Branch (902:28): [True: 19.7k, False: 621k]
  ------------------
  903|   641k|                }
  904|   643k|            }
  905|      0|            break;
  906|  2.86M|        case '1': case '2': case '3': case '4':
  ------------------
  |  Branch (906:9): [True: 1.95M, False: 167M]
  |  Branch (906:19): [True: 546k, False: 169M]
  |  Branch (906:29): [True: 197k, False: 169M]
  |  Branch (906:39): [True: 168k, False: 169M]
  ------------------
  907|  3.20M|        case '5': case '6': case '7': case '8': case '9':
  ------------------
  |  Branch (907:9): [True: 44.8k, False: 169M]
  |  Branch (907:19): [True: 101k, False: 169M]
  |  Branch (907:29): [True: 38.3k, False: 169M]
  |  Branch (907:39): [True: 110k, False: 169M]
  |  Branch (907:49): [True: 42.6k, False: 169M]
  ------------------
  908|       |            // can't be hexadecimal or octal, is either decimal or floating point
  909|       |
  910|  11.6M|            do {
  911|  11.6M|                if (len < MaxTokenLength)
  ------------------
  |  Branch (911:21): [True: 6.76M, False: 4.84M]
  ------------------
  912|  6.76M|                    ppToken->name[len++] = (char)ch;
  913|  4.84M|                else if (! AlreadyComplained) {
  ------------------
  |  Branch (913:26): [True: 580, False: 4.84M]
  ------------------
  914|    580|                    pp->parseContext.ppError(ppToken->loc, "numeric literal too long", "", "");
  915|    580|                    AlreadyComplained = 1;
  916|    580|                }
  917|  11.6M|                ch = getch();
  918|  11.6M|            } while (ch >= '0' && ch <= '9');
  ------------------
  |  Branch (918:22): [True: 9.57M, False: 2.04M]
  |  Branch (918:35): [True: 8.41M, False: 1.15M]
  ------------------
  919|  3.20M|            if (floatingPointChar(ch))
  ------------------
  |  Branch (919:17): [True: 67.0k, False: 3.13M]
  ------------------
  920|  67.0k|                return pp->lFloatConst(len, ch, ppToken);
  921|  3.13M|            else {
  922|       |                // Finish handling signed and unsigned integers
  923|  3.13M|                int numericLen = len;
  924|  3.13M|                bool isUnsigned = false;
  925|  3.13M|                bool isInt64 = false;
  926|  3.13M|                bool isInt16 = false;
  927|  3.13M|                if (ch == 'u' || ch == 'U') {
  ------------------
  |  Branch (927:21): [True: 3.48k, False: 3.12M]
  |  Branch (927:34): [True: 2.08k, False: 3.12M]
  ------------------
  928|  5.56k|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (928:25): [True: 5.53k, False: 34]
  ------------------
  929|  5.53k|                        ppToken->name[len++] = (char)ch;
  930|  5.56k|                    isUnsigned = true;
  931|       |
  932|  5.56k|                    int nextCh = getch();
  933|  5.56k|                    if (nextCh == 'l' || nextCh == 'L') {
  ------------------
  |  Branch (933:25): [True: 21, False: 5.54k]
  |  Branch (933:42): [True: 278, False: 5.26k]
  ------------------
  934|    299|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (934:29): [True: 299, False: 0]
  ------------------
  935|    299|                            ppToken->name[len++] = (char)nextCh;
  936|    299|                        isInt64 = true;
  937|    299|                    } else
  938|  5.26k|                        ungetch();
  939|       |
  940|  5.56k|                    nextCh = getch();
  941|  5.56k|                    if ((nextCh == 's' || nextCh == 'S') &&
  ------------------
  |  Branch (941:26): [True: 68, False: 5.50k]
  |  Branch (941:43): [True: 383, False: 5.11k]
  ------------------
  942|    451|                                pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (942:33): [True: 451, False: 0]
  ------------------
  943|    451|                        if (len < MaxTokenLength)
  ------------------
  |  Branch (943:29): [True: 439, False: 12]
  ------------------
  944|    439|                            ppToken->name[len++] = (char)nextCh;
  945|    451|                        isInt16 = true;
  946|    451|                    } else
  947|  5.11k|                        ungetch();
  948|  3.12M|                } else if (ch == 'l' || ch == 'L') {
  ------------------
  |  Branch (948:28): [True: 374, False: 3.12M]
  |  Branch (948:41): [True: 1.50k, False: 3.12M]
  ------------------
  949|  1.87k|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (949:25): [True: 1.86k, False: 10]
  ------------------
  950|  1.86k|                        ppToken->name[len++] = (char)ch;
  951|  1.87k|                    isInt64 = true;
  952|  3.12M|                } else if ((ch == 's' || ch == 'S') &&
  ------------------
  |  Branch (952:29): [True: 2.94k, False: 3.12M]
  |  Branch (952:42): [True: 787, False: 3.12M]
  ------------------
  953|  3.72k|                                pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (953:33): [True: 3.72k, False: 0]
  ------------------
  954|  3.72k|                    if (len < MaxTokenLength)
  ------------------
  |  Branch (954:25): [True: 3.72k, False: 6]
  ------------------
  955|  3.72k|                        ppToken->name[len++] = (char)ch;
  956|  3.72k|                    isInt16 = true;
  957|  3.72k|                } else
  958|  3.12M|                    ungetch();
  959|       |
  960|  3.13M|                ppToken->name[len] = '\0';
  961|  3.13M|                ival = 0;
  962|  3.13M|                const unsigned oneTenthMaxInt  = 0xFFFFFFFFu / 10;
  963|  3.13M|                const unsigned remainderMaxInt = 0xFFFFFFFFu - 10 * oneTenthMaxInt;
  964|  3.13M|                const unsigned long long oneTenthMaxInt64  = 0xFFFFFFFFFFFFFFFFull / 10;
  965|  3.13M|                const unsigned long long remainderMaxInt64 = 0xFFFFFFFFFFFFFFFFull - 10 * oneTenthMaxInt64;
  966|  3.13M|                const unsigned short oneTenthMaxInt16  = 0xFFFFu / 10;
  967|  3.13M|                const unsigned short remainderMaxInt16 = 0xFFFFu - 10 * oneTenthMaxInt16;
  968|  8.67M|                for (int i = 0; i < numericLen; i++) {
  ------------------
  |  Branch (968:33): [True: 5.57M, False: 3.10M]
  ------------------
  969|  5.57M|                    ch = ppToken->name[i] - '0';
  970|  5.57M|                    bool overflow = false;
  971|  5.57M|                    if (isInt64)
  ------------------
  |  Branch (971:25): [True: 6.33k, False: 5.56M]
  ------------------
  972|  6.33k|                        overflow = (ival > oneTenthMaxInt64 || (ival == oneTenthMaxInt64 && (unsigned long long)ch > remainderMaxInt64));
  ------------------
  |  Branch (972:37): [True: 58, False: 6.27k]
  |  Branch (972:65): [True: 67, False: 6.20k]
  |  Branch (972:93): [True: 58, False: 9]
  ------------------
  973|  5.56M|                    else if (isInt16)
  ------------------
  |  Branch (973:30): [True: 15.5k, False: 5.55M]
  ------------------
  974|  15.5k|                        overflow = (ival > oneTenthMaxInt16 || (ival == oneTenthMaxInt16 && (unsigned short)ch > remainderMaxInt16));
  ------------------
  |  Branch (974:37): [True: 2.49k, False: 13.0k]
  |  Branch (974:65): [True: 234, False: 12.8k]
  |  Branch (974:93): [True: 0, False: 234]
  ------------------
  975|  5.55M|                    else
  976|  5.55M|                        overflow = (ival > oneTenthMaxInt || (ival == oneTenthMaxInt && (unsigned)ch > remainderMaxInt));
  ------------------
  |  Branch (976:37): [True: 23.6k, False: 5.52M]
  |  Branch (976:63): [True: 348, False: 5.52M]
  |  Branch (976:89): [True: 132, False: 216]
  ------------------
  977|  5.57M|                    if (overflow) {
  ------------------
  |  Branch (977:25): [True: 26.3k, False: 5.54M]
  ------------------
  978|  26.3k|                        pp->parseContext.ppError(ppToken->loc, "numeric literal too big", "", "");
  979|  26.3k|                        ival = 0xFFFFFFFFFFFFFFFFull;
  980|  26.3k|                        break;
  981|  26.3k|                    } else
  982|  5.54M|                        ival = ival * 10 + ch;
  983|  5.57M|                }
  984|       |
  985|  3.13M|                if (isInt64 && pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (985:21): [True: 2.17k, False: 3.13M]
  |  Branch (985:32): [True: 2.17k, False: 0]
  ------------------
  986|  2.17k|                    if (pp->ifdepth == 0) {
  ------------------
  |  Branch (986:25): [True: 2.15k, False: 18]
  ------------------
  987|  2.15k|                        pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  988|  2.15k|                                                        "64-bit literal");
  989|  2.15k|                        pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  990|  2.15k|                            Num_Int64_Extensions, Int64_Extensions, "64-bit literal");
  991|  2.15k|                    }
  992|  2.17k|                    ppToken->i64val = ival;
  993|  2.17k|                    return isUnsigned ? PpAtomConstUint64 : PpAtomConstInt64;
  ------------------
  |  Branch (993:28): [True: 299, False: 1.87k]
  ------------------
  994|  3.13M|                } else if (isInt16) {
  ------------------
  |  Branch (994:28): [True: 4.17k, False: 3.12M]
  ------------------
  995|  4.17k|                    if (pp->ifdepth == 0 && pp->parseContext.intermediate.getSource() == EShSourceGlsl) {
  ------------------
  |  Branch (995:25): [True: 4.08k, False: 96]
  |  Branch (995:45): [True: 4.08k, False: 0]
  ------------------
  996|  4.08k|                        pp->parseContext.requireProfile(ppToken->loc, ~EEsProfile,
  997|  4.08k|                                                        "16-bit  literal");
  998|  4.08k|                        pp->parseContext.profileRequires(ppToken->loc, ~EEsProfile, 0,
  999|  4.08k|                            Num_Int16_Extensions, Int16_Extensions, "16-bit literal");
 1000|  4.08k|                    }
 1001|  4.17k|                    ppToken->ival = (int)ival;
 1002|  4.17k|                    return isUnsigned ? PpAtomConstUint16 : PpAtomConstInt16;
  ------------------
  |  Branch (1002:28): [True: 451, False: 3.72k]
  ------------------
 1003|  3.12M|                } else {
 1004|  3.12M|                    ppToken->ival = (int)ival;
 1005|  3.12M|                    return isUnsigned ? PpAtomConstUint : PpAtomConstInt;
  ------------------
  |  Branch (1005:28): [True: 4.81k, False: 3.12M]
  ------------------
 1006|  3.12M|                }
 1007|  3.13M|            }
 1008|      0|            break;
 1009|   377k|        case '-':
  ------------------
  |  Branch (1009:9): [True: 377k, False: 169M]
  ------------------
 1010|   377k|            ch = getch();
 1011|   377k|            if (ch == '-') {
  ------------------
  |  Branch (1011:17): [True: 73.9k, False: 303k]
  ------------------
 1012|  73.9k|                return PpAtomDecrement;
 1013|   303k|            } else if (ch == '=') {
  ------------------
  |  Branch (1013:24): [True: 888, False: 302k]
  ------------------
 1014|    888|                return PPAtomSubAssign;
 1015|   302k|            } else {
 1016|   302k|                ungetch();
 1017|   302k|                return '-';
 1018|   302k|            }
 1019|   241k|        case '+':
  ------------------
  |  Branch (1019:9): [True: 241k, False: 169M]
  ------------------
 1020|   241k|            ch = getch();
 1021|   241k|            if (ch == '+') {
  ------------------
  |  Branch (1021:17): [True: 73.1k, False: 168k]
  ------------------
 1022|  73.1k|                return PpAtomIncrement;
 1023|   168k|            } else if (ch == '=') {
  ------------------
  |  Branch (1023:24): [True: 27.2k, False: 141k]
  ------------------
 1024|  27.2k|                return PPAtomAddAssign;
 1025|   141k|            } else {
 1026|   141k|                ungetch();
 1027|   141k|                return '+';
 1028|   141k|            }
 1029|  27.3k|        case '*':
  ------------------
  |  Branch (1029:9): [True: 27.3k, False: 169M]
  ------------------
 1030|  27.3k|            ch = getch();
 1031|  27.3k|            if (ch == '=') {
  ------------------
  |  Branch (1031:17): [True: 1.62k, False: 25.6k]
  ------------------
 1032|  1.62k|                return PPAtomMulAssign;
 1033|  25.6k|            } else {
 1034|  25.6k|                ungetch();
 1035|  25.6k|                return '*';
 1036|  25.6k|            }
 1037|  46.1k|        case '%':
  ------------------
  |  Branch (1037:9): [True: 46.1k, False: 169M]
  ------------------
 1038|  46.1k|            ch = getch();
 1039|  46.1k|            if (ch == '=') {
  ------------------
  |  Branch (1039:17): [True: 628, False: 45.5k]
  ------------------
 1040|    628|                return PPAtomModAssign;
 1041|  45.5k|            } else {
 1042|  45.5k|                ungetch();
 1043|  45.5k|                return '%';
 1044|  45.5k|            }
 1045|  4.27k|        case '^':
  ------------------
  |  Branch (1045:9): [True: 4.27k, False: 169M]
  ------------------
 1046|  4.27k|            ch = getch();
 1047|  4.27k|            if (ch == '^') {
  ------------------
  |  Branch (1047:17): [True: 1.37k, False: 2.90k]
  ------------------
 1048|  1.37k|                return PpAtomXor;
 1049|  2.90k|            } else {
 1050|  2.90k|                if (ch == '=')
  ------------------
  |  Branch (1050:21): [True: 536, False: 2.36k]
  ------------------
 1051|    536|                    return PpAtomXorAssign;
 1052|  2.36k|                else{
 1053|  2.36k|                    ungetch();
 1054|  2.36k|                    return '^';
 1055|  2.36k|                }
 1056|  2.90k|            }
 1057|       |
 1058|  1.39M|        case '=':
  ------------------
  |  Branch (1058:9): [True: 1.39M, False: 168M]
  ------------------
 1059|  1.39M|            ch = getch();
 1060|  1.39M|            if (ch == '=') {
  ------------------
  |  Branch (1060:17): [True: 7.41k, False: 1.38M]
  ------------------
 1061|  7.41k|                return PpAtomEQ;
 1062|  1.38M|            } else {
 1063|  1.38M|                ungetch();
 1064|  1.38M|                return '=';
 1065|  1.38M|            }
 1066|  35.6k|        case '!':
  ------------------
  |  Branch (1066:9): [True: 35.6k, False: 169M]
  ------------------
 1067|  35.6k|            ch = getch();
 1068|  35.6k|            if (ch == '=') {
  ------------------
  |  Branch (1068:17): [True: 4.28k, False: 31.4k]
  ------------------
 1069|  4.28k|                return PpAtomNE;
 1070|  31.4k|            } else {
 1071|  31.4k|                ungetch();
 1072|  31.4k|                return '!';
 1073|  31.4k|            }
 1074|  5.22k|        case '|':
  ------------------
  |  Branch (1074:9): [True: 5.22k, False: 169M]
  ------------------
 1075|  5.22k|            ch = getch();
 1076|  5.22k|            if (ch == '|') {
  ------------------
  |  Branch (1076:17): [True: 1.10k, False: 4.11k]
  ------------------
 1077|  1.10k|                return PpAtomOr;
 1078|  4.11k|            } else if (ch == '=') {
  ------------------
  |  Branch (1078:24): [True: 601, False: 3.51k]
  ------------------
 1079|    601|                return PpAtomOrAssign;
 1080|  3.51k|            } else {
 1081|  3.51k|                ungetch();
 1082|  3.51k|                return '|';
 1083|  3.51k|            }
 1084|  10.4k|        case '&':
  ------------------
  |  Branch (1084:9): [True: 10.4k, False: 169M]
  ------------------
 1085|  10.4k|            ch = getch();
 1086|  10.4k|            if (ch == '&') {
  ------------------
  |  Branch (1086:17): [True: 850, False: 9.57k]
  ------------------
 1087|    850|                return PpAtomAnd;
 1088|  9.57k|            } else if (ch == '=') {
  ------------------
  |  Branch (1088:24): [True: 394, False: 9.17k]
  ------------------
 1089|    394|                return PpAtomAndAssign;
 1090|  9.17k|            } else {
 1091|  9.17k|                ungetch();
 1092|  9.17k|                return '&';
 1093|  9.17k|            }
 1094|   520k|        case '<':
  ------------------
  |  Branch (1094:9): [True: 520k, False: 169M]
  ------------------
 1095|   520k|            ch = getch();
 1096|   520k|            if (ch == '<') {
  ------------------
  |  Branch (1096:17): [True: 104k, False: 416k]
  ------------------
 1097|   104k|                ch = getch();
 1098|   104k|                if (ch == '=')
  ------------------
  |  Branch (1098:21): [True: 2.18k, False: 101k]
  ------------------
 1099|  2.18k|                    return PpAtomLeftAssign;
 1100|   101k|                else {
 1101|   101k|                    ungetch();
 1102|   101k|                    return PpAtomLeft;
 1103|   101k|                }
 1104|   416k|            } else if (ch == '=') {
  ------------------
  |  Branch (1104:24): [True: 1.14k, False: 415k]
  ------------------
 1105|  1.14k|                return PpAtomLE;
 1106|   415k|            } else {
 1107|   415k|                ungetch();
 1108|   415k|                return '<';
 1109|   415k|            }
 1110|   575k|        case '>':
  ------------------
  |  Branch (1110:9): [True: 575k, False: 169M]
  ------------------
 1111|   575k|            ch = getch();
 1112|   575k|            if (ch == '>') {
  ------------------
  |  Branch (1112:17): [True: 4.61k, False: 570k]
  ------------------
 1113|  4.61k|                ch = getch();
 1114|  4.61k|                if (ch == '=')
  ------------------
  |  Branch (1114:21): [True: 416, False: 4.19k]
  ------------------
 1115|    416|                    return PpAtomRightAssign;
 1116|  4.19k|                else {
 1117|  4.19k|                    ungetch();
 1118|  4.19k|                    return PpAtomRight;
 1119|  4.19k|                }
 1120|   570k|            } else if (ch == '=') {
  ------------------
  |  Branch (1120:24): [True: 1.23k, False: 569k]
  ------------------
 1121|  1.23k|                return PpAtomGE;
 1122|   569k|            } else {
 1123|   569k|                ungetch();
 1124|   569k|                return '>';
 1125|   569k|            }
 1126|   372k|        case '.':
  ------------------
  |  Branch (1126:9): [True: 372k, False: 169M]
  ------------------
 1127|   372k|            ch = getch();
 1128|   372k|            if (ch >= '0' && ch <= '9') {
  ------------------
  |  Branch (1128:17): [True: 92.3k, False: 280k]
  |  Branch (1128:30): [True: 22.0k, False: 70.3k]
  ------------------
 1129|  22.0k|                ungetch();
 1130|  22.0k|                return pp->lFloatConst(0, '.', ppToken);
 1131|   350k|            } else {
 1132|   350k|                ungetch();
 1133|   350k|                return '.';
 1134|   350k|            }
 1135|   822k|        case '/':
  ------------------
  |  Branch (1135:9): [True: 822k, False: 169M]
  ------------------
 1136|   822k|            ch = getch();
 1137|   822k|            if (ch == '/') {
  ------------------
  |  Branch (1137:17): [True: 603k, False: 218k]
  ------------------
 1138|   603k|                pp->inComment = true;
 1139|  11.7M|                do {
 1140|  11.7M|                    ch = getch();
 1141|  11.7M|                } while (ch != '\n' && ch != EndOfInput);
  ------------------
  |  Branch (1141:26): [True: 11.1M, False: 603k]
  |  Branch (1141:40): [True: 11.1M, False: 170]
  ------------------
 1142|   603k|                ppToken->space = true;
 1143|   603k|                pp->inComment = false;
 1144|       |
 1145|   603k|                return ch;
 1146|   603k|            } else if (ch == '*') {
  ------------------
  |  Branch (1146:24): [True: 2.83k, False: 215k]
  ------------------
 1147|  2.83k|                ch = getch();
 1148|  5.12k|                do {
 1149|   521k|                    while (ch != '*') {
  ------------------
  |  Branch (1149:28): [True: 516k, False: 5.11k]
  ------------------
 1150|   516k|                        if (ch == EndOfInput) {
  ------------------
  |  Branch (1150:29): [True: 4, False: 516k]
  ------------------
 1151|      4|                            pp->parseContext.ppError(ppToken->loc, "End of input in comment", "comment", "");
 1152|      4|                            return ch;
 1153|      4|                        }
 1154|   516k|                        ch = getch();
 1155|   516k|                    }
 1156|  5.11k|                    ch = getch();
 1157|  5.11k|                    if (ch == EndOfInput) {
  ------------------
  |  Branch (1157:25): [True: 2, False: 5.11k]
  ------------------
 1158|      2|                        pp->parseContext.ppError(ppToken->loc, "End of input in comment", "comment", "");
 1159|      2|                        return ch;
 1160|      2|                    }
 1161|  5.11k|                } while (ch != '/');
  ------------------
  |  Branch (1161:26): [True: 2.28k, False: 2.82k]
  ------------------
 1162|  2.82k|                ppToken->space = true;
 1163|       |                // loop again to get the next token...
 1164|  2.82k|                break;
 1165|   215k|            } else if (ch == '=') {
  ------------------
  |  Branch (1165:24): [True: 543, False: 215k]
  ------------------
 1166|    543|                return PPAtomDivAssign;
 1167|   215k|            } else {
 1168|   215k|                ungetch();
 1169|   215k|                return '/';
 1170|   215k|            }
 1171|      0|            break;
 1172|  1.84M|        case '\'':
  ------------------
  |  Branch (1172:9): [True: 1.84M, False: 167M]
  ------------------
 1173|  1.84M|            return pp->characterLiteral(ppToken);
 1174|   230k|        case '"':
  ------------------
  |  Branch (1174:9): [True: 230k, False: 169M]
  ------------------
 1175|       |            // #include uses scanHeaderName() to ignore these escape sequences.
 1176|   230k|            ch = getch();
 1177|  3.67M|            while (ch != '"' && ch != '\n' && ch != EndOfInput) {
  ------------------
  |  Branch (1177:20): [True: 3.49M, False: 183k]
  |  Branch (1177:33): [True: 3.45M, False: 46.2k]
  |  Branch (1177:47): [True: 3.45M, False: 34]
  ------------------
 1178|  3.45M|                if (len < MaxTokenLength) {
  ------------------
  |  Branch (1178:21): [True: 3.44M, False: 624]
  ------------------
 1179|  3.44M|                    if (ch == '\\' && !pp->disableEscapeSequences) {
  ------------------
  |  Branch (1179:25): [True: 142k, False: 3.30M]
  |  Branch (1179:39): [True: 142k, False: 0]
  ------------------
 1180|   142k|                        int nextCh = getch();
 1181|   142k|                        switch (nextCh) {
 1182|     50|                        case '\'': ch = 0x27; break;
  ------------------
  |  Branch (1182:25): [True: 50, False: 142k]
  ------------------
 1183|    690|                        case '"':  ch = 0x22; break;
  ------------------
  |  Branch (1183:25): [True: 690, False: 141k]
  ------------------
 1184|    148|                        case '?':  ch = 0x3f; break;
  ------------------
  |  Branch (1184:25): [True: 148, False: 142k]
  ------------------
 1185|  13.3k|                        case '\\': ch = 0x5c; break;
  ------------------
  |  Branch (1185:25): [True: 13.3k, False: 128k]
  ------------------
 1186|      6|                        case 'a':  ch = 0x07; break;
  ------------------
  |  Branch (1186:25): [True: 6, False: 142k]
  ------------------
 1187|    418|                        case 'b':  ch = 0x08; break;
  ------------------
  |  Branch (1187:25): [True: 418, False: 141k]
  ------------------
 1188|      0|                        case 'f':  ch = 0x0c; break;
  ------------------
  |  Branch (1188:25): [True: 0, False: 142k]
  ------------------
 1189|  1.03k|                        case 'n':  ch = 0x0a; break;
  ------------------
  |  Branch (1189:25): [True: 1.03k, False: 141k]
  ------------------
 1190|    154|                        case 'r':  ch = 0x0d; break;
  ------------------
  |  Branch (1190:25): [True: 154, False: 142k]
  ------------------
 1191|    134|                        case 't':  ch = 0x09; break;
  ------------------
  |  Branch (1191:25): [True: 134, False: 142k]
  ------------------
 1192|     28|                        case 'v':  ch = 0x0b; break;
  ------------------
  |  Branch (1192:25): [True: 28, False: 142k]
  ------------------
 1193|  1.13k|                        case 'x':
  ------------------
  |  Branch (1193:25): [True: 1.13k, False: 141k]
  ------------------
 1194|       |                            // Hex value, arbitrary number of characters. Terminated by the first
 1195|       |                            // non-hex digit
 1196|  1.13k|                            {
 1197|  1.13k|                                int numDigits = 0;
 1198|  1.13k|                                ch = 0;
 1199|  3.28k|                                while (true) {
  ------------------
  |  Branch (1199:40): [True: 3.28k, Folded]
  ------------------
 1200|  3.28k|                                    nextCh = getch();
 1201|  3.28k|                                    if (nextCh >= '0' && nextCh <= '9')
  ------------------
  |  Branch (1201:41): [True: 3.16k, False: 124]
  |  Branch (1201:58): [True: 1.45k, False: 1.71k]
  ------------------
 1202|  1.45k|                                        nextCh -= '0';
 1203|  1.83k|                                    else if (nextCh >= 'A' && nextCh <= 'F')
  ------------------
  |  Branch (1203:46): [True: 1.64k, False: 192]
  |  Branch (1203:63): [True: 344, False: 1.29k]
  ------------------
 1204|    344|                                        nextCh -= 'A' - 10;
 1205|  1.49k|                                    else if (nextCh >= 'a' && nextCh <= 'f')
  ------------------
  |  Branch (1205:46): [True: 600, False: 890]
  |  Branch (1205:63): [True: 352, False: 248]
  ------------------
 1206|    352|                                        nextCh -= 'a' - 10;
 1207|  1.13k|                                    else {
 1208|  1.13k|                                        ungetch();
 1209|  1.13k|                                        break;
 1210|  1.13k|                                    }
 1211|  2.15k|                                    numDigits++;
 1212|  2.15k|                                    ch = ch * 0x10 + nextCh;
 1213|  2.15k|                                }
 1214|  1.13k|                                if (numDigits == 0) {
  ------------------
  |  Branch (1214:37): [True: 130, False: 1.00k]
  ------------------
 1215|    130|                                    pp->parseContext.ppError(ppToken->loc, "Expected hex value in escape sequence", "string", "");
 1216|    130|                                }
 1217|  1.13k|                                break;
 1218|      0|                            }
 1219|    902|                        case '0':
  ------------------
  |  Branch (1219:25): [True: 902, False: 141k]
  ------------------
 1220|  1.47k|                        case '1':
  ------------------
  |  Branch (1220:25): [True: 574, False: 141k]
  ------------------
 1221|  3.01k|                        case '2':
  ------------------
  |  Branch (1221:25): [True: 1.53k, False: 140k]
  ------------------
 1222|  3.53k|                        case '3':
  ------------------
  |  Branch (1222:25): [True: 520, False: 141k]
  ------------------
 1223|  3.63k|                        case '4':
  ------------------
  |  Branch (1223:25): [True: 102, False: 142k]
  ------------------
 1224|  3.63k|                        case '5':
  ------------------
  |  Branch (1224:25): [True: 4, False: 142k]
  ------------------
 1225|  3.63k|                        case '6':
  ------------------
  |  Branch (1225:25): [True: 0, False: 142k]
  ------------------
 1226|  3.64k|                        case '7':
  ------------------
  |  Branch (1226:25): [True: 10, False: 142k]
  ------------------
 1227|       |                            // Octal value, up to three octal digits
 1228|  3.64k|                            {
 1229|  3.64k|                                int numDigits = 1;
 1230|  3.64k|                                ch = nextCh - '0';
 1231|  10.1k|                                while (numDigits < 3) {
  ------------------
  |  Branch (1231:40): [True: 6.95k, False: 3.20k]
  ------------------
 1232|  6.95k|                                    nextCh = getch();
 1233|  6.95k|                                    if (nextCh >= '0' && nextCh <= '7')
  ------------------
  |  Branch (1233:41): [True: 6.93k, False: 26]
  |  Branch (1233:58): [True: 6.51k, False: 418]
  ------------------
 1234|  6.51k|                                        nextCh -= '0';
 1235|    444|                                    else {
 1236|    444|                                        ungetch();
 1237|    444|                                        break;
 1238|    444|                                    }
 1239|  6.51k|                                    numDigits++;
 1240|  6.51k|                                    ch = ch * 8 + nextCh;
 1241|  6.51k|                                }
 1242|  3.64k|                                break;
 1243|  3.63k|                            }
 1244|   121k|                        default:
  ------------------
  |  Branch (1244:25): [True: 121k, False: 20.8k]
  ------------------
 1245|   121k|                            pp->parseContext.ppError(ppToken->loc, "Invalid escape sequence", "string", "");
 1246|   121k|                            break;
 1247|   142k|                        }
 1248|   142k|                    }
 1249|  3.44M|                    ppToken->name[len] = (char)ch;
 1250|  3.44M|                    len++;
 1251|  3.44M|                    ch = getch();
 1252|  3.44M|                } else
 1253|    624|                    break;
 1254|  3.45M|            };
 1255|   230k|            ppToken->name[len] = '\0';
 1256|   230k|            if (ch != '"') {
  ------------------
  |  Branch (1256:17): [True: 46.9k, False: 183k]
  ------------------
 1257|  46.9k|                ungetch();
 1258|  46.9k|                pp->parseContext.ppError(ppToken->loc, "End of line in string", "string", "");
 1259|  46.9k|            }
 1260|   230k|            return PpAtomConstString;
 1261|  1.47M|        case ':':
  ------------------
  |  Branch (1261:9): [True: 1.47M, False: 168M]
  ------------------
 1262|  1.47M|            ch = getch();
 1263|  1.47M|            if (ch == ':')
  ------------------
  |  Branch (1263:17): [True: 14.2k, False: 1.46M]
  ------------------
 1264|  14.2k|                return PpAtomColonColon;
 1265|  1.46M|            ungetch();
 1266|  1.46M|            return ':';
 1267|   169M|        }
 1268|       |
 1269|  2.82k|        ch = getch();
 1270|  2.82k|    }
 1271|   169M|}
_ZN7glslang10TPpContext8tokenizeERNS_8TPpTokenE:
 1280|   144M|{
 1281|   144M|    int stringifyDepth = 0;
 1282|   144M|    TPpToken stringifiedToken; // Tokens are appended to this as they come in
 1283|   165M|    for (;;) {
 1284|   165M|        int token = scanToken(&ppToken);
 1285|       |
 1286|       |        // Handle token-pasting logic
 1287|   165M|        token = tokenPaste(token, ppToken);
 1288|       |
 1289|   165M|        if (token == EndOfInput) {
  ------------------
  |  Branch (1289:13): [True: 17.2k, False: 165M]
  ------------------
 1290|  17.2k|            missingEndifCheck();
 1291|  17.2k|            return EndOfInput;
 1292|  17.2k|        }
 1293|   165M|        if (token == '#') {
  ------------------
  |  Branch (1293:13): [True: 743k, False: 165M]
  ------------------
 1294|   743k|            if (previous_token == '\n') {
  ------------------
  |  Branch (1294:17): [True: 742k, False: 250]
  ------------------
 1295|   742k|                token = readCPPline(&ppToken);
 1296|   742k|                if (token == EndOfInput) {
  ------------------
  |  Branch (1296:21): [True: 96, False: 742k]
  ------------------
 1297|     96|                    missingEndifCheck();
 1298|     96|                    return EndOfInput;
 1299|     96|                }
 1300|   742k|                continue;
 1301|   742k|            } else {
 1302|    250|                parseContext.ppError(ppToken.loc, "preprocessor directive cannot be preceded by another token", "#", "");
 1303|    250|                return EndOfInput;
 1304|    250|            }
 1305|   743k|        }
 1306|   165M|        previous_token = token;
 1307|       |
 1308|   165M|        if (token == '\n')
  ------------------
  |  Branch (1308:13): [True: 18.9M, False: 146M]
  ------------------
 1309|  18.9M|            continue;
 1310|       |
 1311|   146M|        if (token == tStringifyLevelInput::PUSH) {
  ------------------
  |  Branch (1311:13): [True: 0, False: 146M]
  ------------------
 1312|      0|            stringifyDepth++;
 1313|      0|            continue;
 1314|      0|        }
 1315|   146M|        if (token == tStringifyLevelInput::POP) {
  ------------------
  |  Branch (1315:13): [True: 0, False: 146M]
  ------------------
 1316|      0|            assert(stringifyDepth > 0);
 1317|      0|            stringifyDepth--;
 1318|      0|            if (stringifyDepth == 0) {
  ------------------
  |  Branch (1318:17): [True: 0, False: 0]
  ------------------
 1319|      0|                snprintf(ppToken.name, sizeof(ppToken.name), "%s", stringifiedToken.name);
 1320|      0|                return PpAtomConstString;
 1321|      0|            }
 1322|      0|            continue;
 1323|      0|        }
 1324|       |
 1325|       |        // expand macros
 1326|   146M|        if (token == PpAtomIdentifier) {
  ------------------
  |  Branch (1326:13): [True: 62.2M, False: 83.9M]
  ------------------
 1327|  62.2M|            switch (MacroExpand(&ppToken, false, true)) {
  ------------------
  |  Branch (1327:21): [True: 62.2M, False: 0]
  ------------------
 1328|  62.2M|            case MacroExpandNotStarted:
  ------------------
  |  Branch (1328:13): [True: 62.2M, False: 2.02k]
  ------------------
 1329|  62.2M|                break;
 1330|      0|            case MacroExpandError:
  ------------------
  |  Branch (1330:13): [True: 0, False: 62.2M]
  ------------------
 1331|      0|                return EndOfInput;
 1332|  2.02k|            case MacroExpandStarted:
  ------------------
  |  Branch (1332:13): [True: 2.02k, False: 62.2M]
  ------------------
 1333|  2.02k|            case MacroExpandUndef:
  ------------------
  |  Branch (1333:13): [True: 0, False: 62.2M]
  ------------------
 1334|  2.02k|                continue;
 1335|  62.2M|            }
 1336|  62.2M|        }
 1337|       |
 1338|   146M|        bool needStringSupport = ifdepth == 0 && (token == PpAtomConstString || stringifyDepth > 0);
  ------------------
  |  Branch (1338:34): [True: 145M, False: 152k]
  |  Branch (1338:51): [True: 214k, False: 145M]
  |  Branch (1338:81): [True: 0, False: 145M]
  ------------------
 1339|   146M|        if (needStringSupport && parseContext.intermediate.getSource() != EShSourceHlsl) {
  ------------------
  |  Branch (1339:13): [True: 214k, False: 145M]
  |  Branch (1339:34): [True: 214k, False: 0]
  ------------------
 1340|       |            // HLSL allows string literals.
 1341|       |            // GLSL allows string literals with GL_EXT_debug_printf.
 1342|   214k|            const char* const string_literal_EXTs[] = { E_GL_EXT_debug_printf, E_GL_EXT_spirv_intrinsics, E_GL_EXT_abort };
 1343|   214k|            parseContext.requireExtensions(ppToken.loc, 3, string_literal_EXTs, "string literal");
 1344|   214k|            if (!parseContext.extensionTurnedOn(E_GL_EXT_debug_printf) &&
  ------------------
  |  Branch (1344:17): [True: 213k, False: 724]
  ------------------
 1345|   213k|                !parseContext.extensionTurnedOn(E_GL_EXT_spirv_intrinsics)&&
  ------------------
  |  Branch (1345:17): [True: 213k, False: 0]
  ------------------
 1346|   213k|                !parseContext.extensionTurnedOn(E_GL_EXT_abort)) {
  ------------------
  |  Branch (1346:17): [True: 213k, False: 0]
  ------------------
 1347|   213k|                continue;
 1348|   213k|            }
 1349|   214k|        }
 1350|       |
 1351|   145M|        switch (token) {
 1352|    848|        case PpAtomConstString:
  ------------------
  |  Branch (1352:9): [True: 848, False: 145M]
  ------------------
 1353|    848|            break;
 1354|  62.2M|        case PpAtomIdentifier:
  ------------------
  |  Branch (1354:9): [True: 62.2M, False: 83.7M]
  ------------------
 1355|  65.2M|        case PpAtomConstInt:
  ------------------
  |  Branch (1355:9): [True: 3.05M, False: 142M]
  ------------------
 1356|  65.2M|        case PpAtomConstUint:
  ------------------
  |  Branch (1356:9): [True: 28.9k, False: 145M]
  ------------------
 1357|  65.4M|        case PpAtomConstFloat:
  ------------------
  |  Branch (1357:9): [True: 126k, False: 145M]
  ------------------
 1358|  65.4M|        case PpAtomConstInt64:
  ------------------
  |  Branch (1358:9): [True: 2.25k, False: 145M]
  ------------------
 1359|  65.4M|        case PpAtomConstUint64:
  ------------------
  |  Branch (1359:9): [True: 463, False: 145M]
  ------------------
 1360|  65.4M|        case PpAtomConstInt16:
  ------------------
  |  Branch (1360:9): [True: 8.75k, False: 145M]
  ------------------
 1361|  65.4M|        case PpAtomConstUint16:
  ------------------
  |  Branch (1361:9): [True: 1.43k, False: 145M]
  ------------------
 1362|  65.4M|        case PpAtomConstDouble:
  ------------------
  |  Branch (1362:9): [True: 177, False: 145M]
  ------------------
 1363|  65.4M|        case PpAtomConstFloat16:
  ------------------
  |  Branch (1363:9): [True: 745, False: 145M]
  ------------------
 1364|  65.4M|        case PpAtomConstFloatE2M1:
  ------------------
  |  Branch (1364:9): [True: 0, False: 145M]
  ------------------
 1365|  65.4M|        case PpAtomConstFloatE3M2:
  ------------------
  |  Branch (1365:9): [True: 0, False: 145M]
  ------------------
 1366|  65.4M|        case PpAtomConstFloatE2M3:
  ------------------
  |  Branch (1366:9): [True: 0, False: 145M]
  ------------------
 1367|  65.4M|        case PpAtomConstFloatUE8M0:
  ------------------
  |  Branch (1367:9): [True: 0, False: 145M]
  ------------------
 1368|  65.4M|        case PpAtomConstFloatMXINT8:
  ------------------
  |  Branch (1368:9): [True: 0, False: 145M]
  ------------------
 1369|  65.4M|            if (ppToken.name[0] == '\0')
  ------------------
  |  Branch (1369:17): [True: 0, False: 65.4M]
  ------------------
 1370|      0|                continue;
 1371|  65.4M|            break;
 1372|  65.4M|        case '\'':
  ------------------
  |  Branch (1372:9): [True: 1.84M, False: 144M]
  ------------------
 1373|  1.84M|            parseContext.ppError(ppToken.loc, "character literals not supported", "\'", "");
 1374|  1.84M|            continue;
 1375|  78.6M|        default:
  ------------------
  |  Branch (1375:9): [True: 78.6M, False: 67.2M]
  ------------------
 1376|  78.6M|            snprintf(ppToken.name, sizeof(ppToken.name), "%s", atomStrings.getString(token));
 1377|  78.6M|            break;
 1378|   145M|        }
 1379|   144M|        if (stringifyDepth > 0) {
  ------------------
  |  Branch (1379:13): [True: 0, False: 144M]
  ------------------
 1380|      0|            size_t existingLen = strlen(stringifiedToken.name);
 1381|      0|            char* dst = stringifiedToken.name + existingLen;
 1382|       |            // stringify_depth would determine how many layers of \\\"\\\" are needed, if we wanted to.
 1383|      0|            if (ppToken.space) {
  ------------------
  |  Branch (1383:17): [True: 0, False: 0]
  ------------------
 1384|      0|                snprintf(dst, sizeof(stringifiedToken.name) - existingLen - 1, " %s", ppToken.name);
 1385|      0|            } else {
 1386|      0|                snprintf(dst, sizeof(stringifiedToken.name) - existingLen, "%s", ppToken.name);
 1387|      0|            }
 1388|      0|            continue;
 1389|      0|        }
 1390|       |
 1391|   144M|        return token;
 1392|   144M|    }
 1393|   144M|}
_ZN7glslang10TPpContext10tokenPasteEiRNS_8TPpTokenE:
 1401|   165M|{
 1402|       |    // starting with ## is illegal, skip to next token
 1403|   165M|    if (token == PpAtomPaste) {
  ------------------
  |  Branch (1403:9): [True: 0, False: 165M]
  ------------------
 1404|      0|        parseContext.ppError(ppToken.loc, "unexpected location", "##", "");
 1405|      0|        return scanToken(&ppToken);
 1406|      0|    }
 1407|       |
 1408|   165M|    int resultToken = token; // "foo" pasted with "35" is an identifier, not a number
 1409|       |
 1410|       |    // ## can be chained, process all in the chain at once
 1411|   165M|    while (peekPasting()) {
  ------------------
  |  Branch (1411:12): [True: 44, False: 165M]
  ------------------
 1412|     44|        TPpToken pastedPpToken;
 1413|       |
 1414|       |        // next token has to be ##
 1415|     44|        token = scanToken(&pastedPpToken);
 1416|     44|        assert(token == PpAtomPaste);
 1417|       |
 1418|       |        // This covers end of macro expansion
 1419|     44|        if (endOfReplacementList()) {
  ------------------
  |  Branch (1419:13): [True: 0, False: 44]
  ------------------
 1420|       |            // this should be unreachable, incomplete #/## sequences are caught at macro parsing time.
 1421|      0|            parseContext.ppError(ppToken.loc, "unexpected location; end of replacement list", "##", "");
 1422|      0|            break;
 1423|      0|        }
 1424|       |
 1425|       |        // Get the token(s) after the ##.
 1426|       |        // Because of "space" semantics, and prior tokenization, what
 1427|       |        // appeared a single token, e.g. "3A", might have been tokenized
 1428|       |        // into two tokens "3" and "A", but the "A" will have 'space' set to
 1429|       |        // false.  Accumulate all of these to recreate the original lexical
 1430|       |        // appearing token.
 1431|     52|        do {
 1432|     52|            token = scanToken(&pastedPpToken);
 1433|       |
 1434|       |            // This covers end of argument expansion
 1435|     52|            if (token == tMarkerInput::marker) {
  ------------------
  |  Branch (1435:17): [True: 0, False: 52]
  ------------------
 1436|      0|                parseContext.ppError(ppToken.loc, "unexpected location; end of argument", "##", "");
 1437|      0|                return resultToken;
 1438|      0|            }
 1439|       |
 1440|       |            // get the token text
 1441|     52|            switch (resultToken) {
 1442|     52|            case PpAtomIdentifier:
  ------------------
  |  Branch (1442:13): [True: 52, False: 0]
  ------------------
 1443|       |                // already have the correct text in token.names
 1444|     52|                break;
 1445|      0|            case '=':
  ------------------
  |  Branch (1445:13): [True: 0, False: 52]
  ------------------
 1446|      0|            case '!':
  ------------------
  |  Branch (1446:13): [True: 0, False: 52]
  ------------------
 1447|      0|            case '-':
  ------------------
  |  Branch (1447:13): [True: 0, False: 52]
  ------------------
 1448|      0|            case '~':
  ------------------
  |  Branch (1448:13): [True: 0, False: 52]
  ------------------
 1449|      0|            case '+':
  ------------------
  |  Branch (1449:13): [True: 0, False: 52]
  ------------------
 1450|      0|            case '*':
  ------------------
  |  Branch (1450:13): [True: 0, False: 52]
  ------------------
 1451|      0|            case '/':
  ------------------
  |  Branch (1451:13): [True: 0, False: 52]
  ------------------
 1452|      0|            case '%':
  ------------------
  |  Branch (1452:13): [True: 0, False: 52]
  ------------------
 1453|      0|            case '<':
  ------------------
  |  Branch (1453:13): [True: 0, False: 52]
  ------------------
 1454|      0|            case '>':
  ------------------
  |  Branch (1454:13): [True: 0, False: 52]
  ------------------
 1455|      0|            case '|':
  ------------------
  |  Branch (1455:13): [True: 0, False: 52]
  ------------------
 1456|      0|            case '^':
  ------------------
  |  Branch (1456:13): [True: 0, False: 52]
  ------------------
 1457|      0|            case '&':
  ------------------
  |  Branch (1457:13): [True: 0, False: 52]
  ------------------
 1458|      0|            case PpAtomRight:
  ------------------
  |  Branch (1458:13): [True: 0, False: 52]
  ------------------
 1459|      0|            case PpAtomLeft:
  ------------------
  |  Branch (1459:13): [True: 0, False: 52]
  ------------------
 1460|      0|            case PpAtomAnd:
  ------------------
  |  Branch (1460:13): [True: 0, False: 52]
  ------------------
 1461|      0|            case PpAtomOr:
  ------------------
  |  Branch (1461:13): [True: 0, False: 52]
  ------------------
 1462|      0|            case PpAtomXor:
  ------------------
  |  Branch (1462:13): [True: 0, False: 52]
  ------------------
 1463|      0|                snprintf(ppToken.name, sizeof(ppToken.name), "%s", atomStrings.getString(resultToken));
 1464|      0|                snprintf(pastedPpToken.name, sizeof(pastedPpToken.name), "%s", atomStrings.getString(token));
 1465|      0|                break;
 1466|      0|            default:
  ------------------
  |  Branch (1466:13): [True: 0, False: 52]
  ------------------
 1467|      0|                parseContext.ppError(ppToken.loc, "not supported for these tokens", "##", "");
 1468|      0|                return resultToken;
 1469|     52|            }
 1470|       |
 1471|       |            // combine the tokens
 1472|     52|            if (strlen(ppToken.name) + strlen(pastedPpToken.name) > MaxTokenLength) {
  ------------------
  |  Branch (1472:17): [True: 0, False: 52]
  ------------------
 1473|      0|                parseContext.ppError(ppToken.loc, "combined tokens are too long", "##", "");
 1474|      0|                return resultToken;
 1475|      0|            }
 1476|     52|            snprintf(&ppToken.name[0] + strlen(ppToken.name), sizeof(ppToken.name) - strlen(ppToken.name),
 1477|     52|                "%s", pastedPpToken.name);
 1478|       |
 1479|       |            // correct the kind of token we are making, if needed (identifiers stay identifiers)
 1480|     52|            if (resultToken != PpAtomIdentifier) {
  ------------------
  |  Branch (1480:17): [True: 0, False: 52]
  ------------------
 1481|      0|                int newToken = atomStrings.getAtom(ppToken.name);
 1482|      0|                if (newToken > 0)
  ------------------
  |  Branch (1482:21): [True: 0, False: 0]
  ------------------
 1483|      0|                    resultToken = newToken;
 1484|      0|                else
 1485|      0|                    parseContext.ppError(ppToken.loc, "combined token is invalid", "##", "");
 1486|      0|            }
 1487|     52|        } while (peekContinuedPasting(resultToken));
  ------------------
  |  Branch (1487:18): [True: 8, False: 44]
  ------------------
 1488|     44|    }
 1489|       |
 1490|   165M|    return resultToken;
 1491|   165M|}
_ZN7glslang10TPpContext17missingEndifCheckEv:
 1495|  17.3k|{
 1496|  17.3k|    if (ifdepth > 0)
  ------------------
  |  Branch (1496:9): [True: 134, False: 17.2k]
  ------------------
 1497|    134|        parseContext.ppError(parseContext.getCurrentLoc(), "missing #endif", "", "");
 1498|  17.3k|}
PpScanner.cpp:_ZZN7glslang10TPpContext11lFloatConstEiiPNS_8TPpTokenEENK3$_0clEi:
  114|   634k|    const auto saveName = [&](int ch) {
  115|   634k|        if (len <= MaxTokenLength)
  ------------------
  |  Branch (115:13): [True: 504k, False: 129k]
  ------------------
  116|   504k|            ppToken->name[len++] = static_cast<char>(ch);
  117|   634k|    };
PpScanner.cpp:_ZZN7glslang10TPpContext11lFloatConstEiiPNS_8TPpTokenEENK3$_1clEPKcm:
  317|  45.4k|        auto const &try_str = [&](const char *str, size_t numChar) {
  318|  45.4k|            size_t counter = 0;
  319|  45.4k|            for (size_t i = 0; i < numChar; ++i) {
  ------------------
  |  Branch (319:32): [True: 45.4k, False: 0]
  ------------------
  320|  45.4k|                if (getChar() != str[i]) {
  ------------------
  |  Branch (320:21): [True: 45.4k, False: 32]
  ------------------
  321|  45.4k|                    break;
  322|  45.4k|                }
  323|     32|                counter++;
  324|     32|            }
  325|  45.4k|            if (counter == numChar) {
  ------------------
  |  Branch (325:17): [True: 0, False: 45.4k]
  ------------------
  326|      0|                for (size_t i = 0; i < numChar; ++i) {
  ------------------
  |  Branch (326:36): [True: 0, False: 0]
  ------------------
  327|      0|                    saveName(str[i]);
  328|      0|                }
  329|      0|                return true;
  330|  45.4k|            } else {
  331|       |                // called getChar one more than counter times
  332|  45.4k|                counter++;
  333|  90.9k|                while (counter) {
  ------------------
  |  Branch (333:24): [True: 45.4k, False: 45.4k]
  ------------------
  334|  45.4k|                    ungetChar();
  335|  45.4k|                    counter--;
  336|  45.4k|                }
  337|  45.4k|                return false;
  338|  45.4k|            }
  339|  45.4k|        };
PpScanner.cpp:_ZZN7glslang10TPpContext12tStringInput4scanEPNS_8TPpTokenEENK3$_0clEi:
  518|  3.89M|    const auto floatingPointChar = [&](int ch) { return ch == '.' || ch == 'e' || ch == 'E' ||
  ------------------
  |  Branch (518:57): [True: 80.0k, False: 3.81M]
  |  Branch (518:70): [True: 3.50k, False: 3.80M]
  |  Branch (518:83): [True: 11.1k, False: 3.79M]
  ------------------
  519|  3.79M|                                                                     ch == 'f' || ch == 'F' ||
  ------------------
  |  Branch (519:70): [True: 7.46k, False: 3.78M]
  |  Branch (519:83): [True: 4.37k, False: 3.78M]
  ------------------
  520|  3.78M|                                                                     ch == 'h' || ch == 'H'; };
  ------------------
  |  Branch (520:70): [True: 1.98k, False: 3.78M]
  |  Branch (520:83): [True: 6.07k, False: 3.77M]
  ------------------

_ZN7glslang10TPpContext11TokenStream8putTokenEiPNS_8TPpTokenE:
  102|   750k|{
  103|   750k|    TokenStream::Token streamToken(atom, *ppToken);
  104|   750k|    stream.push_back(streamToken);
  105|   750k|}
_ZN7glslang10TPpContext11TokenStream8getTokenERNS_17TParseContextBaseEPNS_8TPpTokenE:
  109|   102k|{
  110|   102k|    if (atEnd())
  ------------------
  |  Branch (110:9): [True: 9.54k, False: 93.3k]
  ------------------
  111|  9.54k|        return EndOfInput;
  112|       |
  113|  93.3k|    int atom = stream[currentPos++].get(*ppToken);
  114|  93.3k|    ppToken->loc = parseContext.getCurrentLoc();
  115|       |
  116|  93.3k|    return atom;
  117|   102k|}
_ZN7glslang10TPpContext11TokenStream20peekTokenizedPastingEb:
  125|  54.6k|{
  126|       |    // 1. preceding ##?
  127|       |
  128|  54.6k|    size_t savePos = currentPos;
  129|       |    // skip white space
  130|  54.6k|    while (peekToken(' '))
  ------------------
  |  Branch (130:12): [True: 0, False: 54.6k]
  ------------------
  131|      0|        ++currentPos;
  132|  54.6k|    if (peekToken(PpAtomPaste)) {
  ------------------
  |  Branch (132:9): [True: 80, False: 54.5k]
  ------------------
  133|     80|        currentPos = savePos;
  134|     80|        return true;
  135|     80|    }
  136|       |
  137|       |    // 2. last token and we've been told after this there will be a ##
  138|       |
  139|  54.5k|    if (! lastTokenPastes) {
  ------------------
  |  Branch (139:9): [True: 54.5k, False: 0]
  ------------------
  140|  54.5k|        currentPos = savePos;
  141|  54.5k|        return false;
  142|  54.5k|    }
  143|       |    // Getting here means the last token will be pasted, after this
  144|       |
  145|       |    // Are we at the last non-whitespace token?
  146|      0|    savePos = currentPos;
  147|      0|    bool moreTokens = false;
  148|      0|    do {
  149|      0|        if (atEnd())
  ------------------
  |  Branch (149:13): [True: 0, False: 0]
  ------------------
  150|      0|            break;
  151|      0|        if (!peekToken(' ')) {
  ------------------
  |  Branch (151:13): [True: 0, False: 0]
  ------------------
  152|      0|            moreTokens = true;
  153|      0|            break;
  154|      0|        }
  155|      0|        ++currentPos;
  156|      0|    } while (true);
  ------------------
  |  Branch (156:14): [True: 0, Folded]
  ------------------
  157|      0|    currentPos = savePos;
  158|       |
  159|      0|    return !moreTokens;
  160|  54.5k|}
_ZN7glslang10TPpContext20pushTokenStreamInputERNS0_11TokenStreamEbb:
  163|  1.18k|{
  164|  1.18k|    pushInput(new tTokenInput(this, &ts, prepasting, expanded));
  165|  1.18k|    ts.reset();
  166|  1.18k|}
_ZN7glslang10TPpContext16tUngotTokenInput4scanEPNS_8TPpTokenE:
  169|     20|{
  170|     20|    if (done)
  ------------------
  |  Branch (170:9): [True: 10, False: 10]
  ------------------
  171|     10|        return EndOfInput;
  172|       |
  173|     10|    int ret = token;
  174|     10|    *ppToken = lval;
  175|     10|    done = true;
  176|       |
  177|     10|    return ret;
  178|     20|}
_ZN7glslang10TPpContext10UngetTokenEiPNS_8TPpTokenE:
  181|     10|{
  182|     10|    pushInput(new tUngotTokenInput(this, token, ppToken));
  183|     10|}

_ZN7glslang22PropagateNoContractionERKNS_13TIntermediateE:
  792|     43|{
  793|       |    // First, traverses the AST, records symbols with their defining operations
  794|       |    // and collects the initial set of precise symbols (symbol nodes that marked
  795|       |    // as 'noContraction') and precise return nodes.
  796|     43|    auto mappings_and_precise_objects =
  797|     43|        getSymbolToDefinitionMappingAndPreciseSymbolIDs(intermediate);
  798|       |
  799|       |    // The mapping of symbol node IDs to their defining nodes. This enables us
  800|       |    // to get the defining node directly from a given symbol ID without
  801|       |    // traversing the tree again.
  802|     43|    NodeMapping& symbol_definition_mapping = std::get<0>(mappings_and_precise_objects);
  803|       |
  804|       |    // The mapping of object nodes to their access chains recorded.
  805|     43|    AccessChainMapping& accesschain_mapping = std::get<1>(mappings_and_precise_objects);
  806|       |
  807|       |    // The initial set of 'precise' objects which are represented as the
  808|       |    // access chain toward them.
  809|     43|    ObjectAccesschainSet& precise_object_accesschains = std::get<2>(mappings_and_precise_objects);
  810|       |
  811|       |    // The set of 'precise' return nodes.
  812|     43|    ReturnBranchNodeSet& precise_return_nodes = std::get<3>(mappings_and_precise_objects);
  813|       |
  814|       |    // Second, uses the initial set of precise objects as a work list, pops an
  815|       |    // access chain, extract the symbol ID from it. Then:
  816|       |    //  1) Check the assignee object, see if it is 'precise' object node or
  817|       |    //  contains 'precise' object. Obtain the incremental access chain from the
  818|       |    //  assignee node to its nested 'precise' node (if any).
  819|       |    //  2) If the assignee object node is 'precise' or it contains 'precise'
  820|       |    //  objects, traverses the right side of the assignment operation
  821|       |    //  expression to mark arithmetic operations as 'noContration' and update
  822|       |    //  'precise' access chain work list with new found object nodes.
  823|       |    // Repeat above steps until the work list is empty.
  824|     43|    TNoContractionAssigneeCheckingTraverser checker(accesschain_mapping);
  825|     43|    TNoContractionPropagator propagator(&precise_object_accesschains, accesschain_mapping);
  826|       |
  827|       |    // We have two initial precise work lists to handle:
  828|       |    //  1) precise return nodes
  829|       |    //  2) precise object access chains
  830|       |    // We should process the precise return nodes first and the involved
  831|       |    // objects in the return expression should be added to the precise object
  832|       |    // access chain set.
  833|     43|    while (!precise_return_nodes.empty()) {
  ------------------
  |  Branch (833:12): [True: 0, False: 43]
  ------------------
  834|      0|        glslang::TIntermBranch* precise_return_node = *precise_return_nodes.begin();
  835|      0|        propagator.propagateNoContractionInReturnNode(precise_return_node);
  836|      0|        precise_return_nodes.erase(precise_return_node);
  837|      0|    }
  838|       |
  839|     43|    while (!precise_object_accesschains.empty()) {
  ------------------
  |  Branch (839:12): [True: 0, False: 43]
  ------------------
  840|       |        // Get the access chain of a precise object from the work list.
  841|      0|        ObjectAccessChain precise_object_accesschain = *precise_object_accesschains.begin();
  842|       |        // Get the symbol id from the access chain.
  843|      0|        ObjectAccessChain symbol_id = getFrontElement(precise_object_accesschain);
  844|       |        // Get all the defining nodes of that symbol ID.
  845|      0|        std::pair<NodeMapping::iterator, NodeMapping::iterator> range =
  846|      0|            symbol_definition_mapping.equal_range(symbol_id);
  847|       |        // Visits all the assignment nodes of that symbol ID and
  848|       |        //  1) Check if the assignee node is 'precise' or contains 'precise'
  849|       |        //  objects.
  850|       |        //  2) Propagate the 'precise' to the top layer object nodes
  851|       |        //  in the right side of the assignment operation, update the 'precise'
  852|       |        //  work list with new access chains representing the new 'precise'
  853|       |        //  objects, and mark arithmetic operations as 'noContraction'.
  854|      0|        for (NodeMapping::iterator defining_node_iter = range.first;
  855|      0|             defining_node_iter != range.second; defining_node_iter++) {
  ------------------
  |  Branch (855:14): [True: 0, False: 0]
  ------------------
  856|      0|            TIntermOperator* defining_node = defining_node_iter->second;
  857|       |            // Check the assignee node.
  858|      0|            auto checker_result = checker.getPrecisenessAndRemainedAccessChain(
  859|      0|                defining_node, precise_object_accesschain);
  860|      0|            bool& contain_precise = std::get<0>(checker_result);
  861|      0|            ObjectAccessChain& remained_accesschain = std::get<1>(checker_result);
  862|       |            // If the assignee node is 'precise' or contains 'precise', propagate the
  863|       |            // 'precise' to the right. Otherwise just skip this assignment node.
  864|      0|            if (contain_precise) {
  ------------------
  |  Branch (864:17): [True: 0, False: 0]
  ------------------
  865|      0|                propagator.propagateNoContractionInOneExpression(defining_node,
  866|      0|                                                                 remained_accesschain);
  867|      0|            }
  868|      0|        }
  869|       |        // Remove the last processed 'precise' object from the work list.
  870|      0|        precise_object_accesschains.erase(precise_object_accesschain);
  871|      0|    }
  872|     43|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_147getSymbolToDefinitionMappingAndPreciseSymbolIDsERKN7glslang13TIntermediateE:
  422|     43|{
  423|     43|    auto result_tuple = std::make_tuple(NodeMapping(), AccessChainMapping(), ObjectAccesschainSet(),
  424|     43|                                        ReturnBranchNodeSet());
  425|       |
  426|     43|    TIntermNode* root = intermediate.getTreeRoot();
  427|     43|    if (root == nullptr)
  ------------------
  |  Branch (427:9): [True: 0, False: 43]
  ------------------
  428|      0|        return result_tuple;
  429|       |
  430|     43|    NodeMapping& symbol_definition_mapping = std::get<0>(result_tuple);
  431|     43|    AccessChainMapping& accesschain_mapping = std::get<1>(result_tuple);
  432|     43|    ObjectAccesschainSet& precise_objects = std::get<2>(result_tuple);
  433|     43|    ReturnBranchNodeSet& precise_return_nodes = std::get<3>(result_tuple);
  434|       |
  435|       |    // Traverses the AST and populate the results.
  436|     43|    TSymbolDefinitionCollectingTraverser collector(&symbol_definition_mapping, &accesschain_mapping,
  437|     43|                                                   &precise_objects, &precise_return_nodes);
  438|     43|    root->traverse(&collector);
  439|       |
  440|     43|    return result_tuple;
  441|     43|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_136TSymbolDefinitionCollectingTraverserC2EPNSt3__118unordered_multimapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPN7glslang15TIntermOperatorENS1_4hashIS8_EENS1_8equal_toIS8_EENS6_INS1_4pairIKS8_SB_EEEEEEPNS1_13unordered_mapIPNS9_12TIntermTypedES8_NSC_ISO_EENSE_ISO_EENS6_INSG_IKSO_S8_EEEEEEPNS1_13unordered_setIS8_SD_SF_NS6_IS8_EEEEPNSW_IPNS9_13TIntermBranchENSC_IS11_EENSE_IS11_EENS6_IS11_EEEE:
  278|     43|    : TIntermTraverser(true, false, false), symbol_definition_mapping_(*symbol_definition_mapping),
  279|     43|      precise_objects_(*precise_objects), precise_return_nodes_(*precise_return_nodes),
  280|     43|      current_object_(), accesschain_mapping_(*accesschain_mapping),
  281|     43|      current_function_definition_node_(nullptr) {}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_136TSymbolDefinitionCollectingTraverser11visitSymbolEPN7glslang13TIntermSymbolE:
  288|  13.6k|{
  289|  13.6k|    current_object_ = generateSymbolLabel(node);
  290|  13.6k|    accesschain_mapping_[node] = current_object_;
  291|  13.6k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_119generateSymbolLabelEPN7glslang13TIntermSymbolE:
  141|  13.6k|{
  142|  13.6k|    ObjectAccessChain symbol_id =
  143|  13.6k|        std::to_string(node->getId()) + "(" + node->getName().c_str() + ")";
  144|  13.6k|    return symbol_id;
  145|  13.6k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_136TSymbolDefinitionCollectingTraverser11visitBinaryEN7glslang6TVisitEPNS1_13TIntermBinaryE:
  364|  6.71k|{
  365|       |    // Traverses the left node to build the access chain info for the object.
  366|  6.71k|    current_object_.clear();
  367|  6.71k|    node->getLeft()->traverse(this);
  368|       |
  369|  6.71k|    if (isAssignOperation(node->getOp())) {
  ------------------
  |  Branch (369:9): [True: 4.08k, False: 2.63k]
  ------------------
  370|       |        // We should always be able to get an access chain for the left node.
  371|  4.08k|        assert(!current_object_.empty());
  372|       |
  373|       |        // If the left node object is 'precise', it is an initial precise object
  374|       |        // specified in the shader source. Adds it to the initial work list to
  375|       |        // process later.
  376|  4.08k|        if (isPreciseObjectNode(node->getLeft())) {
  ------------------
  |  Branch (376:13): [True: 0, False: 4.08k]
  ------------------
  377|       |            // The left node is an 'precise' object node, add its access chain to
  378|       |            // the set of 'precise' objects. This is to collect the initial set
  379|       |            // of 'precise' objects.
  380|      0|            precise_objects_.insert(current_object_);
  381|      0|        }
  382|       |        // Gets the symbol ID from the object access chain, which should be the
  383|       |        // first element recorded in the access chain.
  384|  4.08k|        ObjectAccessChain id_symbol = getFrontElement(current_object_);
  385|       |        // Adds a mapping from the symbol ID to this assignment operation node.
  386|  4.08k|        symbol_definition_mapping_.insert(std::make_pair(id_symbol, node));
  387|       |
  388|       |        // Traverses the right node, there may be other 'assignment'
  389|       |        // operations in the right.
  390|  4.08k|        current_object_.clear();
  391|  4.08k|        node->getRight()->traverse(this);
  392|       |
  393|  4.08k|    } else if (isDereferenceOperation(node->getOp())) {
  ------------------
  |  Branch (393:16): [True: 2.09k, False: 536]
  ------------------
  394|       |        // The left node (parent node) is a struct type object. We need to
  395|       |        // record the access chain information of the current node into its
  396|       |        // object id.
  397|  2.09k|        if (node->getOp() == glslang::EOpIndexDirectStruct) {
  ------------------
  |  Branch (397:13): [True: 854, False: 1.24k]
  ------------------
  398|    854|            unsigned struct_dereference_index = getStructIndexFromConstantUnion(node->getRight());
  399|    854|            current_object_.push_back(ObjectAccesschainDelimiter);
  400|    854|            current_object_.append(std::to_string(struct_dereference_index));
  401|    854|        }
  402|  2.09k|        accesschain_mapping_[node] = current_object_;
  403|       |
  404|       |        // For a dereference node, there is no need to traverse the right child
  405|       |        // node as the right node should always be an integer type object.
  406|       |
  407|  2.09k|    } else {
  408|       |        // For other binary nodes, still traverse the right node.
  409|    536|        current_object_.clear();
  410|    536|        node->getRight()->traverse(this);
  411|    536|    }
  412|  6.71k|    return false;
  413|  6.71k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_117isAssignOperationEN7glslang9TOperatorE:
  102|  9.03k|{
  103|  9.03k|    switch (op) {
  104|  2.81k|    case glslang::EOpAssign:
  ------------------
  |  Branch (104:5): [True: 2.81k, False: 6.22k]
  ------------------
  105|  3.91k|    case glslang::EOpAddAssign:
  ------------------
  |  Branch (105:5): [True: 1.09k, False: 7.94k]
  ------------------
  106|  3.92k|    case glslang::EOpSubAssign:
  ------------------
  |  Branch (106:5): [True: 19, False: 9.01k]
  ------------------
  107|  3.94k|    case glslang::EOpMulAssign:
  ------------------
  |  Branch (107:5): [True: 19, False: 9.01k]
  ------------------
  108|  3.94k|    case glslang::EOpVectorTimesMatrixAssign:
  ------------------
  |  Branch (108:5): [True: 0, False: 9.03k]
  ------------------
  109|  3.95k|    case glslang::EOpVectorTimesScalarAssign:
  ------------------
  |  Branch (109:5): [True: 2, False: 9.03k]
  ------------------
  110|  3.95k|    case glslang::EOpMatrixTimesScalarAssign:
  ------------------
  |  Branch (110:5): [True: 0, False: 9.03k]
  ------------------
  111|  3.95k|    case glslang::EOpMatrixTimesMatrixAssign:
  ------------------
  |  Branch (111:5): [True: 0, False: 9.03k]
  ------------------
  112|  3.97k|    case glslang::EOpDivAssign:
  ------------------
  |  Branch (112:5): [True: 20, False: 9.01k]
  ------------------
  113|  3.98k|    case glslang::EOpModAssign:
  ------------------
  |  Branch (113:5): [True: 19, False: 9.01k]
  ------------------
  114|  4.00k|    case glslang::EOpAndAssign:
  ------------------
  |  Branch (114:5): [True: 19, False: 9.01k]
  ------------------
  115|  4.02k|    case glslang::EOpLeftShiftAssign:
  ------------------
  |  Branch (115:5): [True: 19, False: 9.01k]
  ------------------
  116|  4.04k|    case glslang::EOpRightShiftAssign:
  ------------------
  |  Branch (116:5): [True: 19, False: 9.01k]
  ------------------
  117|  4.06k|    case glslang::EOpInclusiveOrAssign:
  ------------------
  |  Branch (117:5): [True: 19, False: 9.01k]
  ------------------
  118|  4.08k|    case glslang::EOpExclusiveOrAssign:
  ------------------
  |  Branch (118:5): [True: 19, False: 9.01k]
  ------------------
  119|       |
  120|  4.10k|    case glslang::EOpPostIncrement:
  ------------------
  |  Branch (120:5): [True: 24, False: 9.01k]
  ------------------
  121|  4.12k|    case glslang::EOpPostDecrement:
  ------------------
  |  Branch (121:5): [True: 19, False: 9.01k]
  ------------------
  122|  4.14k|    case glslang::EOpPreIncrement:
  ------------------
  |  Branch (122:5): [True: 22, False: 9.01k]
  ------------------
  123|  4.16k|    case glslang::EOpPreDecrement:
  ------------------
  |  Branch (123:5): [True: 19, False: 9.01k]
  ------------------
  124|  4.16k|        return true;
  125|  4.87k|    default:
  ------------------
  |  Branch (125:5): [True: 4.87k, False: 4.16k]
  ------------------
  126|  4.87k|        return false;
  127|  9.03k|    }
  128|  9.03k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_119isPreciseObjectNodeEPN7glslang12TIntermTypedE:
   81|  4.16k|{
   82|  4.16k|    return node->getType().getQualifier().isNoContraction();
   83|  4.16k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_122isDereferenceOperationEN7glslang9TOperatorE:
   87|  2.63k|{
   88|  2.63k|    switch (op) {
   89|    711|    case glslang::EOpIndexDirect:
  ------------------
  |  Branch (89:5): [True: 711, False: 1.92k]
  ------------------
   90|  1.56k|    case glslang::EOpIndexDirectStruct:
  ------------------
  |  Branch (90:5): [True: 854, False: 1.78k]
  ------------------
   91|  1.64k|    case glslang::EOpIndexIndirect:
  ------------------
  |  Branch (91:5): [True: 75, False: 2.55k]
  ------------------
   92|  2.09k|    case glslang::EOpVectorSwizzle:
  ------------------
  |  Branch (92:5): [True: 458, False: 2.17k]
  ------------------
   93|  2.09k|    case glslang::EOpMatrixSwizzle:
  ------------------
  |  Branch (93:5): [True: 0, False: 2.63k]
  ------------------
   94|  2.09k|        return true;
   95|    536|    default:
  ------------------
  |  Branch (95:5): [True: 536, False: 2.09k]
  ------------------
   96|    536|        return false;
   97|  2.63k|    }
   98|  2.63k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_131getStructIndexFromConstantUnionEPN7glslang12TIntermTypedE:
  133|    854|{
  134|       |    assert(node->getAsConstantUnion() && node->getAsConstantUnion()->isScalar());
  135|    854|    unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst();
  136|    854|    return struct_dereference_index;
  137|    854|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_136TSymbolDefinitionCollectingTraverser10visitUnaryEN7glslang6TVisitEPNS1_12TIntermUnaryE:
  334|  2.32k|{
  335|  2.32k|    current_object_.clear();
  336|  2.32k|    node->getOperand()->traverse(this);
  337|  2.32k|    if (isAssignOperation(node->getOp())) {
  ------------------
  |  Branch (337:9): [True: 84, False: 2.23k]
  ------------------
  338|       |        // We should always be able to get an access chain of the operand node.
  339|     84|        assert(!current_object_.empty());
  340|       |
  341|       |        // If the operand node object is 'precise', we collect its access chain
  342|       |        // for the initial set of 'precise' objects.
  343|     84|        if (isPreciseObjectNode(node->getOperand())) {
  ------------------
  |  Branch (343:13): [True: 0, False: 84]
  ------------------
  344|       |            // The operand node is an 'precise' object node, add its
  345|       |            // access chain to the set of 'precise' objects. This is to collect
  346|       |            // the initial set of 'precise' objects.
  347|      0|            precise_objects_.insert(current_object_);
  348|      0|        }
  349|       |        // Gets the symbol ID from the object's access chain.
  350|     84|        ObjectAccessChain id_symbol = getFrontElement(current_object_);
  351|       |        // Add a mapping from the symbol ID to this assignment operation node.
  352|     84|        symbol_definition_mapping_.insert(std::make_pair(id_symbol, node));
  353|     84|    }
  354|       |    // A unary node is not a dereference node, so we clear the access chain which
  355|       |    // is under construction.
  356|  2.32k|    current_object_.clear();
  357|  2.32k|    return false;
  358|  2.32k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_136TSymbolDefinitionCollectingTraverser14visitAggregateEN7glslang6TVisitEPNS1_16TIntermAggregateE:
  296|  4.46k|{
  297|       |    // This aggregate node might be a function definition node, in which case we need to
  298|       |    // cache this node, so we can get the preciseness information of the return value
  299|       |    // of this function later.
  300|  4.46k|    StateSettingGuard<glslang::TIntermAggregate*> current_function_definition_node_setting_guard(
  301|  4.46k|        &current_function_definition_node_);
  302|  4.46k|    if (node->getOp() == glslang::EOpFunction) {
  ------------------
  |  Branch (302:9): [True: 253, False: 4.20k]
  ------------------
  303|       |        // This is function definition node, we need to cache this node so that we can
  304|       |        // get the preciseness of the return value later.
  305|    253|        current_function_definition_node_setting_guard.setState(node);
  306|    253|    }
  307|       |    // Traverse the items in the sequence.
  308|  4.46k|    glslang::TIntermSequence& seq = node->getSequence();
  309|  19.7k|    for (int i = 0; i < (int)seq.size(); ++i) {
  ------------------
  |  Branch (309:21): [True: 15.3k, False: 4.46k]
  ------------------
  310|  15.3k|        current_object_.clear();
  311|  15.3k|        seq[i]->traverse(this);
  312|  15.3k|    }
  313|  4.46k|    return false;
  314|  4.46k|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_117StateSettingGuardIPN7glslang16TIntermAggregateEEC2EPS3_:
  199|  4.46k|    StateSettingGuard(T* state_ptr) : state_ptr_(state_ptr), previous_state_(*state_ptr) {}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_117StateSettingGuardIPN7glslang16TIntermAggregateEE8setStateES3_:
  200|    253|    void setState(T new_state_value) { *state_ptr_ = new_state_value; }
propagateNoContraction.cpp:_ZN12_GLOBAL__N_117StateSettingGuardIPN7glslang16TIntermAggregateEED2Ev:
  201|  4.46k|    ~StateSettingGuard() { *state_ptr_ = previous_state_; }
propagateNoContraction.cpp:_ZN12_GLOBAL__N_136TSymbolDefinitionCollectingTraverser11visitBranchEN7glslang6TVisitEPNS1_13TIntermBranchE:
  318|    190|{
  319|    190|    if (node->getFlowOp() == glslang::EOpReturn && node->getExpression() &&
  ------------------
  |  Branch (319:9): [True: 112, False: 78]
  |  Branch (319:52): [True: 110, False: 2]
  ------------------
  320|    110|        current_function_definition_node_ &&
  ------------------
  |  Branch (320:9): [True: 110, False: 0]
  ------------------
  321|    110|        current_function_definition_node_->getType().getQualifier().noContraction) {
  ------------------
  |  Branch (321:9): [True: 0, False: 110]
  ------------------
  322|       |        // This node is a return node with an expression, and its function has a
  323|       |        // precise return value. We need to find the involved objects in its
  324|       |        // expression and add them to the set of initial precise objects.
  325|      0|        precise_return_nodes_.insert(node);
  326|      0|        node->getExpression()->traverse(this);
  327|      0|    }
  328|    190|    return false;
  329|    190|}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_139TNoContractionAssigneeCheckingTraverserC2ERKNSt3__113unordered_mapIPN7glslang12TIntermTypedENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_4hashIS5_EENS1_8equal_toIS5_EENS9_INS1_4pairIKS5_SB_EEEEEE:
  470|     43|        : TIntermTraverser(true, false, false), accesschain_mapping_(accesschain_mapping),
  471|     43|          precise_object_(nullptr) {}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_124TNoContractionPropagatorC2EPNSt3__113unordered_setINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_4hashIS8_EENS1_8equal_toIS8_EENS6_IS8_EEEERKNS1_13unordered_mapIPN7glslang12TIntermTypedES8_NS9_ISJ_EENSB_ISJ_EENS6_INS1_4pairIKSJ_S8_EEEEEE:
  623|     43|        : TIntermTraverser(true, false, false),
  624|     43|          precise_objects_(*precise_objects), added_precise_object_ids_(),
  625|     43|          remained_accesschain_(), accesschain_mapping_(accesschain_mapping) {}
propagateNoContraction.cpp:_ZN12_GLOBAL__N_115getFrontElementERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  210|  4.16k|{
  211|  4.16k|    size_t pos_delimiter = chain.find(ObjectAccesschainDelimiter);
  212|  4.16k|    return pos_delimiter == std::string::npos ? chain : chain.substr(0, pos_delimiter);
  ------------------
  |  Branch (212:12): [True: 3.88k, False: 283]
  ------------------
  213|  4.16k|}

Initialize.cpp:_ZN4spanIKN7glslang12_GLOBAL__N_110VersioningEEC2Ev:
   50|     90|    span() = default;
Initialize.cpp:_ZNK4spanIKN7glslang12_GLOBAL__N_115BuiltInFunctionEE5beginEv:
   58|  3.14k|    const_iterator begin() const { return data_; }
Initialize.cpp:_ZNK4spanIKN7glslang12_GLOBAL__N_115BuiltInFunctionEE3endEv:
   61|  3.14k|    const_iterator end() const { return data_ + count_; }
Initialize.cpp:_ZNK4spanIKN7glslang12_GLOBAL__N_110VersioningEE5emptyEv:
   73|   117k|    bool empty() const { return count_ == 0; }
Initialize.cpp:_ZNK4spanIKN7glslang12_GLOBAL__N_110VersioningEE5beginEv:
   58|  48.2k|    const_iterator begin() const { return data_; }
Initialize.cpp:_ZNK4spanIKN7glslang12_GLOBAL__N_110VersioningEE3endEv:
   61|  48.2k|    const_iterator end() const { return data_ + count_; }
Initialize.cpp:_ZN4spanIKN7glslang12_GLOBAL__N_110VersioningEEC2IKNSt3__15arrayIS2_Lm2EEEEERT_:
   55|     68|    span(Container &c) : data_(c.data()), count_(c.size()) {}
Initialize.cpp:_ZN4spanIKN7glslang12_GLOBAL__N_115BuiltInFunctionEEC2IKNSt3__15arrayIS2_Lm79EEEEERT_:
   55|  1.42k|    span(Container &c) : data_(c.data()), count_(c.size()) {}
Initialize.cpp:_ZN4spanIKN7glslang12_GLOBAL__N_115BuiltInFunctionEEC2IKNSt3__15arrayIS2_Lm3EEEEERT_:
   55|  1.72k|    span(Container &c) : data_(c.data()), count_(c.size()) {}

_ZN7glslang7TShader8IncluderD2Ev:
  669|  4.26k|        virtual ~Includer() {}
_ZN7glslang7TShader8Includer13IncludeResultC2ERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPKcmPv:
  616|    351|                headerName(headerName), headerData(headerData), headerLength(headerLength), userData(userData) { }
_ZN7glslang7TShader11setPreambleEPKc:
  479|  4.26k|    void setPreamble(const char* s) { preamble = s; }
_ZN7glslang7TShader12setEnvClientENS_9EShClientENS_22EShTargetClientVersionE:
  570|  4.26k|    {
  571|  4.26k|        environment.client.client = client;
  572|  4.26k|        environment.client.version = version;
  573|  4.26k|    }
_ZN7glslang7TShader12setEnvTargetENS_17EShTargetLanguageENS_24EShTargetLanguageVersionE:
  575|  1.42k|    {
  576|  1.42k|        environment.target.language = lang;
  577|  1.42k|        environment.target.version = version;
  578|  1.42k|    }
_ZN7glslang8TProgram9addShaderEPNS_7TShaderE:
  940|     43|    void addShader(TShader* shader) { stages[shader->stage].push_back(shader); }
_ZNK7glslang8TProgram15getIntermediateE11EShLanguage:
  947|     42|    TIntermediate* getIntermediate(EShLanguage stage) const { return intermediate[stage]; }

_ZN3spvorENS_17ImageOperandsMaskES0_:
 5884|  2.32k|constexpr ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
_ZN3spvorENS_19MemorySemanticsMaskES0_:
 5904|    702|constexpr MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) | unsigned(b)); }

_ZN8spvtools3optorENS0_9IRContext8AnalysisES2_:
  856|      2|                                     IRContext::Analysis rhs) {
  857|      2|  return static_cast<IRContext::Analysis>(static_cast<int>(lhs) |
  858|      2|                                          static_cast<int>(rhs));
  859|      2|}

